Difference between revisions of "Template:Infobox Character/family"

From Twinsuniverse
Jump to: navigation, search
(Created page with "<includeonly>{{ #vardefine: fam1 | {{{1|}}} }}{{ #vardefine: fam2 | {{{2|}}} }}{{ #vardefine: fam3 | {{{3|}}} }}{{ #vardefine: fam4 | {{{4|}}} }}{{ #vardefine: fam5 | {{{5|}}}...")
 
m
Line 22: Line 22:
 
     </ul>
 
     </ul>
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
This template offers a way of optionally defining 5 family members a (character) article is related to. If no family members are specified, nothing is displayed.
+
This template offers a way of optionally defining up to 5 family members a (character) article is related to. If no family members are specified, nothing is displayed.
  
 
==Parameters==
 
==Parameters==
* '''fam1''': The name of the first family member of the character (case sensitive, specified by any nonempty value)
+
* '''fam1''': The name of the first family member of the character (existing character article, specified by any nonempty value)
* '''fam2''': The name of the second family member of the character (case sensitive, specified by any nonempty value)
+
* '''fam2''': The name of the second family member of the character (existing character article, specified by any nonempty value)
* '''fam3''': The name of the third family member of the character (case sensitive, specified by any nonempty value)
+
* '''fam3''': The name of the third family member of the character (existing character article, specified by any nonempty value)
* '''fam4''': The name of the fourth family member of the character (case sensitive, specified by any nonempty value)
+
* '''fam4''': The name of the fourth family member of the character (existing character article, specified by any nonelink talue)
* '''fam5''': The name of the fifth family member of the character (case sensitive, specified by any nonempty value)
+
* '''fam5''': The name of the fifth family member of the character (existing character article, specified by any nonempty value)
  
  
'''''Note:''' this categorizer doesn't actually categegorize the article under any category, because there is no way yet to do this ([[Template talk:{{PAGENAME}}|discuss]]).''
+
'''''Note:''' this categorizer doesn't actually categorize the article under any category, because there has been no decision yet how to do this for family relations ([[Template talk:{{PAGENAME}}|discuss]]).''
  
'''''Note:''' if multiple family member are specified, they are wrapped in a list, and nothing is displayed when none are specified.''
+
'''''Note:''' if multiple family members are specified, they are wrapped in a list, and nothing is displayed when none are specified.''
  
 
==Syntax==
 
==Syntax==

Revision as of 02:51, 25 November 2012

This template offers a way of optionally defining up to 5 family members a (character) article is related to. If no family members are specified, nothing is displayed.

Parameters

  • fam1: The name of the first family member of the character (existing character article, specified by any nonempty value)
  • fam2: The name of the second family member of the character (existing character article, specified by any nonempty value)
  • fam3: The name of the third family member of the character (existing character article, specified by any nonempty value)
  • fam4: The name of the fourth family member of the character (existing character article, specified by any nonelink talue)
  • fam5: The name of the fifth family member of the character (existing character article, specified by any nonempty value)


Note: this categorizer doesn't actually categorize the article under any category, because there has been no decision yet how to do this for family relations (discuss).

Note: if multiple family members are specified, they are wrapped in a list, and nothing is displayed when none are specified.

Syntax

{{family|fam1=value|fam2=value|fam3=value|fam4=value|fam5=value}}

Examples

Common use include any of the fam1, fam2, fam3, fam4 or fam5 parameters to specify the family members a character is related to:

{{family|fam1=Twinsen}}
{{family|fam1=Zoé}}
Twinsen
Zoé


You can also specify multiple family members for one character (warning: this will force a table cell to split in two, so do not do this outside table cells!):

{{family|fam1=Twinsen|fam2=Zoé}}
Multiple:


You may specify up to five family members, and you can define the order in which they appear (gaps are omitted):

{{family|fam4=Twinsen|fam1=Zoé}}
Multiple:


The value you specify will be rendered as an article link directly, but there are no checks made whether the articles actually exist, so this will render as a red-link:

{{family|fam1=Nonexistent character}}
Nonexisting character


You may leave "family" undefined (which would not raise any maintenance task) by not specifying any valid value, so these all have the same result (nothing displayed):

{{family}}
{{family|fam1=}}
{{family|fam3=}}
{{family|fam1=|fam2=|fam3=|fam4=|fam5=}}
{{family|fam5=|fam4=|fam3=|fam2=|fam1=}}
{{family|fam4=|fam5=|fam3=|fam1=|fam2=}}