Template:BadgeDifferentNames: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
(rewrite, handles both body type and alignment)
m (alignment before body type (alignment badge name differences are more pronounced))
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  -->This badge displays different names, depending on a character's current <!--
  -->This badge displays different names, depending on a character's current <!--
     -->{{#switch:<!--
     -->{{#switch:<!--
        -->{{#if:{{#pos:{{lc:{{{1|}}}{{{3|}}}{{{5|}}}}}|h}}|Alignment}}<!--
         -->{{#if:{{#pos:{{lc:{{{1|}}}{{{3|}}}{{{5|}}}}}|m}}|Body}}<!--
         -->{{#if:{{#pos:{{lc:{{{1|}}}{{{3|}}}{{{5|}}}}}|m}}|Body}}<!--
        -->{{#if:{{#pos:{{lc:{{{1|}}}{{{3|}}}{{{5|}}}}}|h}}|Alignment}}<!--
    -->| Alignment     = alignment<!--
     -->| Body          = body type<!--
     -->| Body          = body type<!--
     -->| Alignment    = alignment<!--
     -->| AlignmentBody = alignment and body type<!--
    -->| BodyAlignment = body type and alignment<!--
     -->}}<!--
     -->}}<!--
  -->.
  -->.
Line 14: Line 14:


  --><li><!--
  --><li><!--
     -->'''{{{2}}}''' on <!--
     --><b>{{{2}}}</b> on <!--
     -->{{#switch:<!--
     -->{{#switch:<!--
         -->{{#if:{{#pos:{{lc:{{{1}}}}}|m}}|M}}<!--
         -->{{#if:{{#pos:{{lc:{{{1}}}}}|m}}|M}}<!--
Line 32: Line 32:


  --><li><!--
  --><li><!--
     -->'''{{{4}}}''' on <!--
     --><b>{{{4}}}</b> on <!--
     -->{{#switch:<!--
     -->{{#switch:<!--
         -->{{#if:{{#pos:{{lc:{{{3}}}}}|m}}|M}}<!--
         -->{{#if:{{#pos:{{lc:{{{3}}}}}|m}}|M}}<!--
Line 50: Line 50:


  -->{{#if:{{{5|}}}|<li><!--
  -->{{#if:{{{5|}}}|<li><!--
     -->'''{{{6}}}''' on <!--
     --><b>{{{6}}}</b> on <!--
     -->{{#switch:<!--
     -->{{#switch:<!--
         -->{{#if:{{#pos:{{lc:{{{5}}}}}|m}}|M}}<!--
         -->{{#if:{{#pos:{{lc:{{{5}}}}}|m}}|M}}<!--

Latest revision as of 16:42, 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 alignment and body type.

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

See also