Template:PersonBadges: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| 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|}}} {{{occupations|}}} | </noinclude><includeonly>{{#if: {{{stationers|}}} {{{married|}}} {{{female|}}} {{{apprentices|}}} {{{occupations|}}} {{{dynasty|}}} | ||
| <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: {{{apprentices|}}} | -->{{#if: {{{stationers|}}} | [[File:Badge-stationers.png |50px|link=Category:Stationers Company|Stationers' Company]]<br/> }}<!-- | ||
{{#if: {{{ | -->{{#if: {{{officer|}}} | [[File:Badge-officer.png |50px|link= |Office holder in Stationers' Company]]<br/> }}<!-- | ||
{{#if: {{{ | -->{{#if: {{{apprentices|}}}| [[File:Badge-apprentices.png|50px|link= |Has Apprentices]]<br/> }}<!-- | ||
{{#if: {{{ | -->{{#if: {{{occupations|}}}| [[File:Badge-occupations.png|50px|link= |Has more than 1 occupation]]<br/> }}<!-- | ||
{{#if: {{{ | -->{{#if: {{{dynasty|}}} | [[File:Badge-dynasty.png |50px|link= |Part of Print-related Trade Dynasty]]<br/>{{{dynmatch}}}<br/> }}<!-- | ||
</div> | -->{{#if: {{{female|}}} | [[File:Badge-female.png |50px|link=Category:Female|Is Female]]<br/> }}<!-- | ||
-->{{#if: {{{male|}}} | [[File:Badge-male.png |50px|link=Category:Male |Is Male]]<br/> }}<!-- | |||
-->{{#if: {{{married|}}} | [[File:Badge-married.png |50px|link= |Married]]<br/> }}<!-- | |||
--></div> | |||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 19:49, 12 April 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}}