Template:PersonBadges: Difference between revisions

From London Book Trades
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
Call with named parameters for each badge the person has earned, e.g.:
Call with named parameters for each badge the person has earned, e.g.:
<code><nowiki>{{PersonBadges|female=1|apprentices=1}}</nowiki></code>
<code><nowiki>{{PersonBadges|female=1|apprentices=1}}</nowiki></code>
</noinclude><includeonly>{{#if: {{{stationers|}}} {{{married|}}} {{{female|}}} {{{apprentices|}}}
</noinclude><includeonly>{{#if: {{{stationers|}}} {{{married|}}} {{{female|}}} {{{apprentices|}}} {{{occupations|}}}
| <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>
Line 10: Line 10:
{{#if: {{{married|}}}        | [[File:Badge-married.png|40px|link=|Married]]<br> }}
{{#if: {{{married|}}}        | [[File:Badge-married.png|40px|link=|Married]]<br> }}
{{#if: {{{stationers|}}}| [[File:Badge-stationers.png|40px|link=Category:Stationers Company|Stationers' Company]]<br> }}
{{#if: {{{stationers|}}}| [[File:Badge-stationers.png|40px|link=Category:Stationers Company|Stationers' Company]]<br> }}
{{#if: {{{occupations|}}} | [[File:Badge-occupations.png|40px|link=|Has more than 1 occupation]]<br> }}
</div>
</div>
}}</includeonly>
}}</includeonly>

Revision as of 11:29, 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}}