Difference between revisions of "Template:Infobox Character"

From Twinsuniverse
Jump to: navigation, search
m (J McKalling moved page Template:Character to Template:Infobox Character without leaving a redirect)
m
Line 1: Line 1:
<includeonly>{| style="width:143px; font-size: 90%; text-align: left; border: 1px solid #CCCCCC; margin-left: 5px;" cellpadding="3" cellspacing="1" align="right"
+
<noinclude>This template is used as an infobox in characters' articles. It should be the first of the article, before the general description.
! colspan="2" style="font-size:110%; text-align: center; background-color: #CCCCFF; border: 1px solid #CCCCCC;"  | ''{{{Name}}}''
+
|-
+
! colspan="2" style="background-color: white; font-size:110%; text-align: center; border: 1px solid #CCCCCC; margin-left: 5px;" | [[Image:{{{Image|DIVERS.gif}}}|{{PAGENAME}}]]
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Race
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Race}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Gender
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Gender}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Size
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Size}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Age
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Age}}}
+
|}</includeonly><noinclude>This template is used as an infobox in characters' articles. It should be on top of the page, above the quote.
+
  
 
==Parameters==
 
==Parameters==
* '''Name''': The name of the character.
+
* '''image''': An image filename of the character (case sensitive, defaults to empty portrait, see [[Template:Articleimage]])
* '''Image''': An image name of the character. Only the file name, without "[[Image:" etc. If none is available, remove the parameter, and a question mark will appear instead.
+
* '''race''': The race of the character; quetch, grobo, sphero etc. (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/race|race]] subpage)
* '''Race''': The race of the character- quetch, grobo, etc. If unknown, write "Unknown".
+
* '''gender''': Male or female (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/gender|gender]] subpage)
* '''Gender''': Male or female. If unknown, write "Unknown".
+
* '''size''': The length of the character; small, average, large (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/size|size]] subpage)
* '''Size''': Small/Medium/Large.
+
* '''age''': The general age of the character; child or adult (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/age|age]] subpage)
* '''Age''': Young/Adult/Unknown.
+
* '''magical''': Whether the character is magical; yes or no (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/magical|magical]] subpage)
 +
* '''lba#''': Whether the character is encountered in the #(=1, 2 or 3) adventure (defaults to "no", see the [[Template:{{PAGENAME}}/adventure|adventure]] subpage)
 +
* '''occupation''': A short phrase about the character's profession if it has one (case sensitive, defaults to not displayed)
 +
* '''requires''': An articlename of an [[:Category:Inventory Items|Inventory Item]] (case sensitive, defaults to none displayed, see the [[Template:{{PAGENAME}}/requires|requires]] subpage)
 +
* '''amount''': An amount for the above requirement (positive numeric, defaults to "none of:", see the [[Template:{{PAGENAME}}/requires|requires]] subpage)
 +
* '''fam#''': The #(=1, 2, 3, 4 or 5) family member the character is related to (defaults to none displayed, see the [[Template:{{PAGENAME}}/family|family]] subpage)
 +
* '''planet''': The planet this character lives on (case insensitive, defaults to none displayed, see [[Template:Planetlink]])
 +
* '''island''': The island this character lives on (case sensitive, defaults to none displayed, see [[Template:Islandlink]])
 +
* '''building''': The building of residence of this character (case sensitive, defaults to none displayed)
 +
* '''nocat''': Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization).
 +
 
 +
 
 +
'''''Note''': The article is automatically categorized under [[:Category:Articles without an image]] if no filename was specified, or [[:Category:Articles with a missing image]] if the specified filename doesn't exist. The '''nocat''' parameter will also suppress these.''
  
 
==Syntax==
 
==Syntax==
 
Copy and paste the following for quick use:
 
Copy and paste the following for quick use:
<pre><nowiki>{{Character|
+
<nowiki>{{Infobox Character
Name=|
+
|image=
Image=|
+
|race=
Race=|
+
|gender=
Gender=|
+
|size=
Size=|
+
|age=
Age=}}</nowiki></pre>
+
|magical=
 +
|lba1=
 +
|lba2=
 +
|occupation=
 +
|requires=
 +
|amount=
 +
|fam1=
 +
|fam2=
 +
|planet=
 +
|island=
 +
|building=
 +
}}</nowiki>
 +
 
 +
==Example==
 +
On a page called "Twinsen":
 +
<nowiki>{{Infobox Character
 +
|image=Twinsen.jpg
 +
|race=Quetch
 +
|gender=male
 +
|size=average
 +
|age=adult
 +
|magical=aye!!
 +
|lba1=yes
 +
|lba2=yes
 +
|occupation=Hero
 +
|fam1=Zoé
 +
|planet=Twinsun
 +
|island=Citadel Island
 +
|building=Twinsen's House
 +
}}</nowiki>
 +
</noinclude><includeonly>{{#ifeq: {{lc: {{{nocat|false}}} }} | false | [[Category:Characters]] }}</includeonly>
 +
{{Infobox
 +
|<includeonly>{{#if: {{{title|}}} |title={{{title|}}}}}</includeonly><noinclude>title=Twinsen</noinclude>
 +
|class=life
 +
|float=yes
 +
|image={{{image|<noinclude>Twinsen.jpg</noinclude>}}}
 +
|imagecaption=Character Portrait of <includeonly>{{PAGENAME}}</includeonly><noinclude>Twinsen</noinclude>
 +
|nocat=<includeonly>{{{nocat|false}}}</includeonly><noinclude>true</noinclude>
 +
 
 +
|label1=Race
 +
|data1=<includeonly>{{Infobox Character/race|{{{race|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/race|quetch|nocat=true}}</noinclude>
 +
 
 +
|label2=Gender
 +
|data2=<includeonly>{{Infobox Character/gender|{{{gender|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/gender|male|nocat=true}}</noinclude>
 +
 
 +
|label3=Size
 +
|data3=<includeonly>{{Infobox Character/size|{{{size|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/size|average|nocat=true}}</noinclude>
 +
 
 +
|label4=Age
 +
|data4=<includeonly>{{Infobox Character/age|{{{age|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/age|adult|nocat=true}}</noinclude>
 +
 
 +
|label5=Magical
 +
|data5=<includeonly>{{Infobox Character/magical|{{{magical|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/magical|aye!!|nocat=true}}</noinclude>
 +
 
 +
|label6=Adventure
 +
|data6=<includeonly>{{Infobox Character/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/adventure|lba1=yes|lba2=yes|nocat=true}}</noinclude>
 +
 
 +
|header7=Character
 +
|class7=subtitle
 +
 
 +
|label8=Occupation
 +
|data8={{{occupation|<noinclude>Hero</noinclude>}}}
 +
 
 +
|label9=Requires
 +
|data9=<includeonly>{{Infobox Character/requires|{{{requires|}}}|amount={{{amount|1}}}|nocat={{{nocat|false}}}}}</includeonly>
 +
 
 +
|label10=Family
 +
|data10=<includeonly>{{Infobox Character/family|fam1={{{fam1|}}}|fam2={{{fam2|}}}|fam3={{{fam3|}}}|fam4={{{fam4|}}}|fam5={{{fam5|}}}}}</includeonly><noinclude>{{{{PAGENAME}}/family|fam1=Zoé}}</noinclude>
 +
 
 +
|header11={{#if: {{{planet|}}}{{{island|}}}{{{building|}}}|Residence|<noinclude>Residence</noinclude>}}
 +
|class11=subtitle
 +
 
 +
|label12=Planet
 +
|data12={{#if: {{{planet|}}} | {{planetlink|{{{planet}}}|nocat={{{nocat|false}}}}} | <noinclude>{{planetlink|Twinsun|nocat=true}}</noinclude> }}
 +
 
 +
|label13=Island
 +
|data13={{#if: {{{island|}}} | {{islandlink|{{{planet|}}}|{{{island}}}|nocat={{{nocat|false}}}}} | <noinclude>{{islandlink|Twinsun|Citadel Island|nocat=true}}</noinclude> }}
 +
 
 +
|label14=Building
 +
|data14={{#if: {{{building|}}} | [[{{{building}}}]] | <noinclude>[[Twinsen's House]]</noinclude> }}
 +
}}<noinclude>
 +
''example paragraph: ''Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen.
  
[[Category:Twinsunica - Templates|{{PAGENAME}}]]
+
[[Category:Article Infoboxes|C]]
 
</noinclude>
 
</noinclude>

Revision as of 22:18, 6 December 2012

This template is used as an infobox in characters' articles. It should be the first of the article, before the general description.

Parameters

  • image: An image filename of the character (case sensitive, defaults to empty portrait, see Template:Articleimage)
  • race: The race of the character; quetch, grobo, sphero etc. (case insensitive, defaults to "unknown", see the race subpage)
  • gender: Male or female (case insensitive, defaults to "unknown", see the gender subpage)
  • size: The length of the character; small, average, large (case insensitive, defaults to "unknown", see the size subpage)
  • age: The general age of the character; child or adult (case insensitive, defaults to "unknown", see the age subpage)
  • magical: Whether the character is magical; yes or no (case insensitive, defaults to "unknown", see the magical subpage)
  • lba#: Whether the character is encountered in the #(=1, 2 or 3) adventure (defaults to "no", see the adventure subpage)
  • occupation: A short phrase about the character's profession if it has one (case sensitive, defaults to not displayed)
  • requires: An articlename of an Inventory Item (case sensitive, defaults to none displayed, see the requires subpage)
  • amount: An amount for the above requirement (positive numeric, defaults to "none of:", see the requires subpage)
  • fam#: The #(=1, 2, 3, 4 or 5) family member the character is related to (defaults to none displayed, see the family subpage)
  • planet: The planet this character lives on (case insensitive, defaults to none displayed, see Template:Planetlink)
  • island: The island this character lives on (case sensitive, defaults to none displayed, see Template:Islandlink)
  • building: The building of residence of this character (case sensitive, defaults to none displayed)
  • nocat: Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization).


Note: The article is automatically categorized under Category:Articles without an image if no filename was specified, or Category:Articles with a missing image if the specified filename doesn't exist. The nocat parameter will also suppress these.

Syntax

Copy and paste the following for quick use:

{{Infobox Character
 |image=
 |race=
 |gender=
 |size=
 |age=
 |magical=
 |lba1=
 |lba2=
 |occupation=
 |requires=
 |amount=
 |fam1=
 |fam2=
 |planet=
 |island=
 |building=
}}

Example

On a page called "Twinsen":

{{Infobox Character
 |image=Twinsen.jpg
 |race=Quetch
 |gender=male
 |size=average
 |age=adult
 |magical=aye!!
 |lba1=yes
 |lba2=yes
 |occupation=Hero
 |fam1=Zoé
 |planet=Twinsun
 |island=Citadel Island
 |building=Twinsen's House
}}
Twinsen
Character Portrait of Twinsen
Race

Quetch [list all]

Gender

Male [list all]

Size

Average [list all]

Age

Adult [list all]

Magical

unknown [list all]

Adventure

Multiple: [list all]

Character
Occupation

Hero

Family

Zoé

Residence
Planet

Twinsun

Island

Citadel Island

Building

Twinsen's House

example paragraph: Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen. Description text about the character, in this case Twinsen.