Template:Starring/doc

From Itora Wiki

Description

This template is used to standardize the "Starring" and "Guest Starring" sections of Template:Infobox Episode.  It can accommodate up to twenty actor/character pairings.

Syntax

  • Format:  {{Starring|<param1>|<param2>|<param3>|<param4>|<etc.>}}
  • Every two parameters are considered an actor/character pairing, accepting as many such pairings as you need to include.
  • Required:  param1 is the actor name, with wiki markup for a link if desired:  [[Matthew Mercer]]
  • Required:  param2 is the character name (or "-self" designation), and this parameter accepts one of three options:
    1. Any custom text, including wiki markup or HTML;
    2. The letters DM or dm for a Dungeon Master line; or
    3. A single letter from the table below, allowing editors to quickly pick a gendered "-self":
Gender Parameter Purpose Produces Text
f
female Herself
m
male Himself
z
gender-neutral singular Zirself
i
inanimate singular Itself
t    -or-    p
gender-neutral plural Themselves

Example

'''Starring:'''
{{Starring
| [[Versa]] | f
| [[Pine]] | m
| [[Malice]] | i
| [[BBESM|]] | z
| Orphans | t
| [[Gandalf]] | An Adorable Companion
| [[Bunnies]] | dm
}}

results in...
Starring:
Versa – Herself
Pine – Himself
Malice – Itself
BBESM – z
Orphans – Themselves
Gandalf – An Adorable Companion
and
Bunnies as the Dungeon Master

See Also

History

The original format of this template was limited due to the code specifying a limited number of parameters with repetitive #if statements and #switches.  Revision 19215 marked the transition to new code using Extension:Variables and Extension:Loops.

Author

This template was created by VeganCritter.  Feedback is welcome, as this template can surely be improved.