Template:PersonBadges: Difference between revisions

From London Book Trades
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
| <div class="person-badges" style="float: right; clear: right; margin: 0 0 1em 1em; padding: 0.5em; border: 1px solid #aaa; background: #f9f9f9; font-size: 0.85em; text-align: center; line-height: 1.4;">
| <div class="person-badges" style="float: right; clear: right; margin: 0 0 1em 1em; padding: 0.5em; border: 1px solid #aaa; background: #f9f9f9; font-size: 0.85em; text-align: center; line-height: 1.4;">
'''Badges'''<br/>
'''Badges'''<br/>
{{#if: {{{female|}}}       | [[File:Badge-female.png    |50px|link=Category:Female|Is Female]]<br/> }}
{{#if: {{{female|}}}       | [[File:Badge-female.png    |50px|link=Category:Female|Is Female]]<br/> }}<!--
{{#if: {{{married|}}}     | [[File:Badge-married.png    |50px|link=              |Married]]<br/> }}
-->{{#if: {{{married|}}}   | [[File:Badge-married.png    |50px|link=              |Married]]<br/> }}<!--
{{#if: {{{occupations|}}} | [[File:Badge-occupations.png|50px|link=              |Has more than 1 occupation]]<br/> }}
-->{{#if: {{{occupations|}}}| [[File:Badge-occupations.png|50px|link=              |Has more than 1 occupation]]<br/> }}<!--
{{#if: {{{apprentices|}}} | [[File:Badge-apprentices.png|50px|link=              |Has Apprentices]]<br/> }}
-->{{#if: {{{apprentices|}}}| [[File:Badge-apprentices.png|50px|link=              |Has Apprentices]]<br/> }}<!--
{{#if: {{{stationers|}}}   | [[File:Badge-stationers.png |50px|link=Category:Stationers Company|Stationers' Company]]<br/> }}
-->{{#if: {{{stationers|}}} | [[File:Badge-stationers.png |50px|link=Category:Stationers Company|Stationers' Company]]<br/> }}
</div>
</div>
}}</includeonly>
}}</includeonly>

Revision as of 15:48, 21 February 2026

Displays a floating badge panel in the upper right of a person's page. Call with named parameters for each badge the person has earned, e.g.: {{PersonBadges|female=1|apprentices=1}}