Template:BadgeAlignedRestriction: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
(hr to handle shop keeper)
(Adjusted whitespace and removed wrapping tag so that when the template is placed in a bulleted list, it doesn't break the formatting anymore.)
Line 1: Line 1:
<includeonly><p>
<includeonly>This badge is only awarded to characters of the {{#switch: {{lc:{{{1}}}}}
This badge is only awarded to characters of the
 
{{#switch: {{lc:{{{1}}}}}
| h
| h
| hero = [[Requires alignment::Hero (Alignment)|hero]] or [[Requires alignment::Vigilante (Alignment)|vigilante]]
| hero = [[Requires alignment::Hero (Alignment)|hero]] or [[Requires alignment::Vigilante (Alignment)|vigilante]]
Line 10: Line 7:
| villain = [[Requires alignment::Villain (Alignment)|villain]] or [[Requires alignment::Rogue (Alignment)|rogue]]
| villain = [[Requires alignment::Villain (Alignment)|villain]] or [[Requires alignment::Rogue (Alignment)|rogue]]
| #default = {{red|unknown}}
| #default = {{red|unknown}}
}}
}} alignments.  Although credit for this badge may be earned by {{#switch: {{lc:{{{1}}}}}
 
alignments.  Although credit for this badge may be earned by
 
{{#switch: {{lc:{{{1}}}}}
| h
| h
| hero = [[Villain (Alignment)|villains]] or [[Rogue (Alignment)|rogues]]
| hero = [[Villain (Alignment)|villains]] or [[Rogue (Alignment)|rogues]]
Line 22: Line 15:
| villain = [[Hero (Alignment)|heroes]] or [[Vigilante (Alignment)|vigilantes]]
| villain = [[Hero (Alignment)|heroes]] or [[Vigilante (Alignment)|vigilantes]]
| #default = {{red|unknown}}
| #default = {{red|unknown}}
}},
}}, the badge will not be awarded to a character until they change alignment.</includeonly>
 
<noinclude>
the badge will not be awarded to a character until they change alignment.
</p></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 03:46, 16 August 2024


[edit] [purge] Documentation

Usage

Requires one parameter.

  • badge alignment - This the alignment group that is capable of being awarded the badge.
    • h or hero - indicates heroes and vigilantes
    • v or villain - indicates villains and rogues

Examples

{{BadgeAlignedRestriction|h}}

This badge is only awarded to characters of the hero or vigilante alignments. Although credit for this badge may be earned by villains or rogues, the badge will not be awarded to a character until they change alignment.


{{BadgeAlignedRestriction|v}}

This badge is only awarded to characters of the villain or rogue alignments. Although credit for this badge may be earned by heroes or vigilantes, the badge will not be awarded to a character until they change alignment.