Template:BadgeAlignedRestriction: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
(whitespace for readability, added SMW Requires alignment property)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
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]]
| hr
| hero resistance = [[Requires alignment::Hero (Alignment)|hero]], [[Requires alignment::Vigilante (Alignment)|vigilante]], or [[Requires alignment::Resistance (Alignment)|resistance]]
| v
| v
| 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]]
| hr
| hero resistance = [[Villain (Alignment)|villains]], [[Rogue (Alignment)|rogues]], or [[Loyalist (Alignment)|loyalists]]
| v
| v
| 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>

Latest revision as of 03:49, 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.