Template:BadgeDifferentNames: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
(rewrite to clarify it's not different badges, and it's based on current alignment)
(rewrite, handles both body type and alignment)
Line 1: Line 1:
<includeonly>This badge displays different names, depending on a character's current alignment.<br>'''{{BadgeLink|{{{2}}}}}''' is the name on {{#switch: {{lc:{{{1}}}}}
<p><!--
| h
-->This badge displays different names, depending on a character's current <!--
| hero = [[Hero (Alignment)|hero]] or [[Vigilante (Alignment)|vigilante]]
    -->{{#switch:<!--
| v
        -->{{#if:{{#pos:{{lc:{{{1|}}}{{{3|}}}{{{5|}}}}}|m}}|Body}}<!--
| villain = [[Villain (Alignment)|villain]] and [[Rogue (Alignment)|rogue]]
        -->{{#if:{{#pos:{{lc:{{{1|}}}{{{3|}}}{{{5|}}}}}|h}}|Alignment}}<!--
| #default = {{red|unknown}}
    -->| Body          = body type<!--
}} characters.<br>'''{{BadgeLink|{{{4}}}}}''' is the name on {{#switch: {{lc:{{{3}}}}}
    -->| Alignment    = alignment<!--
| h
    -->| BodyAlignment = body type and alignment<!--
| hero = [[Hero (Alignment)|hero]] or [[Vigilante (Alignment)|vigilante]]
    -->}}<!--
| v
-->.
| villain = [[Villain (Alignment)|villain]] or [[Rogue (Alignment)|rogue]]
</p>
| #default = {{red|unknown}}
 
}} characters.</includeonly><noinclude>
<ul><!--
 
--><li><!--
    -->'''{{{2}}}''' on <!--
    -->{{#switch:<!--
        -->{{#if:{{#pos:{{lc:{{{1}}}}}|m}}|M}}<!--
        -->{{#if:{{#pos:{{lc:{{{1}}}}}|f}}|F}}<!--
        -->{{#if:{{#pos:{{lc:{{{1}}}}}|h}}|H}}<!--
        -->{{#if:{{#pos:{{lc:{{{1}}}}}|v}}|V}}<!--
    -->| M  = male and huge characters<!--
    -->| = female characters<!--
    -->| H  = heroes and vigilantes<!--
    -->| V  = villains and rogues<!--
    -->| MH = male and huge heroes and vigilantes<!--
    -->| MV = male and huge villains and rogues<!--
    -->| FH = female heroes and vigilantes<!--
    -->| FV = female villains and rogues<!--
    -->}}<!--
--></li><!--
 
--><li><!--
    -->'''{{{4}}}''' on <!--
    -->{{#switch:<!--
        -->{{#if:{{#pos:{{lc:{{{3}}}}}|m}}|M}}<!--
        -->{{#if:{{#pos:{{lc:{{{3}}}}}|f}}|F}}<!--
        -->{{#if:{{#pos:{{lc:{{{3}}}}}|h}}|H}}<!--
        -->{{#if:{{#pos:{{lc:{{{3}}}}}|v}}|V}}<!--
    -->| M  = male and huge characters<!--
    -->| F  = female characters<!--
    -->| H  = heroes and vigilantes<!--
    -->| V  = villains and rogues<!--
    -->| MH = male and huge heroes and vigilantes<!--
    -->| MV = male and huge villains and rogues<!--
    -->| FH = female heroes and vigilantes<!--
    -->| FV = female villains and rogues<!--
    -->}}<!--
--></li><!--
 
-->{{#if:{{{5|}}}|<li><!--
    -->'''{{{6}}}''' on <!--
    -->{{#switch:<!--
        -->{{#if:{{#pos:{{lc:{{{5}}}}}|m}}|M}}<!--
        -->{{#if:{{#pos:{{lc:{{{5}}}}}|f}}|F}}<!--
        -->{{#if:{{#pos:{{lc:{{{5}}}}}|h}}|H}}<!--
        -->{{#if:{{#pos:{{lc:{{{5}}}}}|v}}|V}}<!--
    -->| = male and huge characters<!--
    -->| F  = female characters<!--
    -->| H  = heroes and vigilantes<!--
    -->| V  = villains and rogues<!--
    -->| MH = male and huge heroes and vigilantes<!--
    -->| MV = male and huge villains and rogues<!--
    -->| FH = female heroes and vigilantes<!--
    -->| FV = female villains and rogues<!--
    -->}}<!--
--></li>}}
 
</ul><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 16:14, 3 May 2022

This badge displays different names, depending on a character's current .

  • {{{2}}} on
  • {{{4}}} on
[edit] [purge] Documentation

Usage

Requires four or six parameters. The parameters must be entered in the following order:

condition 1
Characters who display the first name of the badge
name 1
The first name of the badge
condition 2
Characters who display the second name of the badge
name 2
The second name of the badge
condition 3
Characters who display the third name of the badge (optional)
name 3
The third name of the badge (optional)

Conditions may be one of the following values, or combine two of the following values in any order:

  • m - male and huge characters
  • f - female characters
  • h or hero - heroes and vigilantes
  • v or villain - villains and rogues

Examples

{{BadgeDifferentNames
| m | Mystic King
| f | Mystic Queen
}}

This badge displays different names, depending on a character's current body type.

  • Mystic King on male and huge characters
  • Mystic Queen on female characters
{{BadgeDifferentNames
| villain | Marshal
| hero    | Ex-Marshal
}}

This badge displays different names, depending on a character's current alignment.

  • Marshal on villains and rogues
  • Ex-Marshal on heroes and vigilantes
{{BadgeDifferentNames
| h  | Adamant
| mv | Ironman
| fv | Ironwoman
}}

This badge displays different names, depending on a character's current body type and alignment.

  • Adamant on heroes and vigilantes
  • Ironman on male and huge villains and rogues
  • Ironwoman on female villains and rogues

See also