Template:PersonBadges: Difference between revisions

From London Book Trades
Jump to navigation Jump to search
Created page with "<noinclude> 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.: <code><nowiki>{{PersonBadges|rotary=1|smith_family=1}}</nowiki></code> </noinclude><includeonly>{{#if: {{{rotary|}}} {{{smith_family|}}} {{{veteran|}}} {{{founding_member|}}} | <div class="person-badges" style="float: right; clear: right; margin: 0 0 1em 1em; padding: 0.5em; border: 1px solid #aaa; background: #f9f9f9;..."
 
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: {{{rotary|}}}        | [[File:Badge-rotary.png|40px|link=|Rotary member]]<br> }}
{{#if: {{{apprentices|}}}        | [[File:Badge-apprentices.png|40px|link=|Rotary member]]<br> }}
{{#if: {{{smith_family|}}}  | [[File:Badge-smith-family.png|40px|link=|Smith family]]<br> }}
{{#if: {{{female|}}}  | [[File:Badge-female.png|40px|link=|Smith family]]<br> }}
{{#if: {{{veteran|}}}        | [[File:Badge-veteran.png|40px|link=|Veteran]]<br> }}
{{#if: {{{married|}}}        | [[File:Badge-married.png|40px|link=|Veteran]]<br> }}
{{#if: {{{founding_member|}}}| [[File:Badge-founding-member.png|40px|link=|Founding member]]<br> }}
{{#if: {{{stationers|}}}| [[File:Badge-stationers.png|40px|link=|Founding member]]<br> }}
</div>
</div>
}}</includeonly>
}}</includeonly>

Revision as of 11:12, 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|rotary=1|smith_family=1}}