Difference between revisions of "Template:Infobox Character"

From Twinsuniverse
Jump to: navigation, search
m
(Undo revision 11810 by J McKalling (talk) - it didn't work)
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is used as an infobox in characters' articles. It should be the first of the article, before the general description.
+
<noinclude>{{Infobox Template
 +
|purpose=infobox
 +
|singletag=no
 +
|multiline=yes
 +
|gamerelated=yes
 +
|suppressible=recursively
 +
|choice=none
 +
|cat1=Characters
 +
|var1=infobox_messages!Infobox!active
 +
|var2=maintenance_message!Infobox!active
 +
}}
 +
 
 +
This template is used as an infobox in characters' articles. It should be the first of the article, before the general description.
  
 
==Parameters==
 
==Parameters==
 +
* '''title''': An optional title to display at the top of the infobox (case sensitive, defaults to <nowiki>{{</nowiki>PAGENAME<nowiki>}}</nowiki>)
 
* '''image''': An image filename of the character (case sensitive, defaults to empty portrait, see [[Template:Articleimage]])
 
* '''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 [[Template:{{PAGENAME}}/race|race]] subpage)
+
* '''race''' and '''label''': 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 [[Template:{{PAGENAME}}/gender|gender]] 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 [[Template:{{PAGENAME}}/size|size]] 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 [[Template:{{PAGENAME}}/age|age]] 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 [[Template:{{PAGENAME}}/magical|magical]] 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 [[Template:{{PAGENAME}}/adventure|adventure]] subpage)
+
* '''lba1''', '''lba2''' and '''lba3''': Whether the character is encountered in said adventure (defaults to "no", see the [[/adventure]] subpage)
 +
* '''alignment''': The deity this character follows (defaults to "unknown", see the [[/alignment]] subpage)
 
* '''occupation''': A short phrase about the character's profession if it has one (case sensitive, defaults to not displayed)
 
* '''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)
+
* '''requires''': An articlename of an [[:Category:Items|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 [[Template:{{PAGENAME}}/requires|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 [[Template:{{PAGENAME}}/family|family]] subpage)
+
* '''fam1''', '''fam2''', '''fam3''', '''fam4''' and '''fam5''': The family members 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]])
 
* '''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]])
 
* '''island''': The island this character lives on (case sensitive, defaults to none displayed, see [[Template:Islandlink]])
Line 32: Line 46:
 
  |lba1=
 
  |lba1=
 
  |lba2=
 
  |lba2=
 +
|alignment=
 
  |occupation=
 
  |occupation=
 
  |requires=
 
  |requires=
Line 44: Line 59:
 
==Example==
 
==Example==
 
On a page called "Twinsen":
 
On a page called "Twinsen":
<nowiki>{{Infobox Character
+
</noinclude><includeonly>{{categorizer|category=Characters|display=emptyinfobox|nocat={{{nocat|false}}}}}</includeonly>
|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]] {{
+
    #if: {{#var_final: maintenance|}}
+
    | {{#vardefine: infobox_messages | {{#var:infobox_messages|}}{{mbox|class=cleanup
+
        |This article has some maintenance tasks:<ul>{{#var_final:maintenance}}</ul>}}}}}}
+
}}</includeonly>
+
 
{{Infobox
 
{{Infobox
  |<includeonly>{{#if: {{{title|}}} |title={{{title|}}}}}</includeonly><noinclude>title=Twinsen</noinclude>
+
  |title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Twinsen</noinclude>
  |class=life
+
  |theme=green
 +
|infoboxname=Infobox Character
 
  |float=yes
 
  |float=yes
 
  |image={{{image|<noinclude>Twinsen.jpg</noinclude>}}}
 
  |image={{{image|<noinclude>Twinsen.jpg</noinclude>}}}
Line 73: Line 70:
  
 
  |label1=Race
 
  |label1=Race
  |data1=<includeonly>{{Infobox Character/race|{{{race|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/race|quetch|nocat=true}}</noinclude>
+
  |data1=<includeonly>{{Infobox Character/race|{{{race|}}}|label={{{label|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/race|quetch|nocat=true}}</noinclude>
  
 
  |label2=Gender
 
  |label2=Gender
  |data2=<includeonly>{{Infobox Character/gender|{{{gender|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/gender|male|nocat=true}}</noinclude>
+
  |data2=<includeonly>{{Infobox Character/gender|{{{gender|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/gender|male|nocat=true}}</noinclude>
  
 
  |label3=Size
 
  |label3=Size
  |data3=<includeonly>{{Infobox Character/size|{{{size|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/size|average|nocat=true}}</noinclude>
+
  |data3=<includeonly>{{Infobox Character/size|{{{size|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/size|average|nocat=true}}</noinclude>
  
 
  |label4=Age
 
  |label4=Age
  |data4=<includeonly>{{Infobox Character/age|{{{age|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/age|adult|nocat=true}}</noinclude>
+
  |data4=<includeonly>{{Infobox Character/age|{{{age|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/age|adult|nocat=true}}</noinclude>
  
 
  |label5=Magical
 
  |label5=Magical
  |data5=<includeonly>{{Infobox Character/magical|{{{magical|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/magical|aye!!|nocat=true}}</noinclude>
+
  |data5=<includeonly>{{Infobox Character/magical|{{{magical|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/magical|YES|nocat=true}}</noinclude>
  
 
  |label6=Adventure
 
  |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>
+
  |data6=<includeonly>{{Infobox Character/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/adventure|lba1=yes|lba2=yes|nocat=true}}</noinclude>
  
 
  |header7=Character
 
  |header7=Character
 
  |class7=subtitle
 
  |class7=subtitle
  
  |label8=Occupation
+
  |label8=Alignment
  |data8={{{occupation|<noinclude>Hero</noinclude>}}}
+
  |data8=<includeonly>{{Infobox Character/alignment|{{{alignment|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/alignment|sendell|nocat=true}}</noinclude>
  
  |label9=Requires
+
  |label9=Occupation
  |data9=<includeonly>{{Infobox Character/requires|{{{requires|}}}|amount={{{amount|1}}}|nocat={{{nocat|false}}}}}</includeonly>
+
  |data9={{{occupation|<noinclude>Hero</noinclude>}}}
  
  |label10=Family
+
  |label10=Requires
  |data10=<includeonly>{{Infobox Character/family|fam1={{{fam1|}}}|fam2={{{fam2|}}}|fam3={{{fam3|}}}|fam4={{{fam4|}}}|fam5={{{fam5|}}}}}</includeonly><noinclude>{{{{PAGENAME}}/family|fam1=Zoé}}</noinclude>
+
  |data10=<includeonly>{{Infobox Character/requires|{{{requires|}}}|amount={{{amount|1}}}|nocat={{{nocat|false}}}}}</includeonly>
  
  |header11={{#if: {{{planet|}}}{{{island|}}}{{{building|}}}|Residence|<noinclude>Residence</noinclude>}}
+
  |label11=Family
|class11=subtitle
+
|data11=<includeonly>{{Infobox Character/family|fam1={{{fam1|}}}|fam2={{{fam2|}}}|fam3={{{fam3|}}}|fam4={{{fam4|}}}|fam5={{{fam5|}}}}}</includeonly><noinclude>{{/family|fam1=Zoé}}</noinclude>
  
  |label12=Planet
+
  |header12={{#if: {{{planet|}}}{{{island|}}}{{{building|}}}|Residence|<noinclude>Residence</noinclude>}}
|data12={{#if: {{{planet|}}} | {{planetlink|{{{planet}}}|nocat={{{nocat|false}}}}} | <noinclude>{{planetlink|Twinsun|nocat=true}}</noinclude> }}
+
|class12=subtitle
  
  |label13=Island
+
  |label13=Planet
  |data13={{#if: {{{island|}}} | {{islandlink|{{{planet|}}}|{{{island}}}|nocat={{{nocat|false}}}}} | <noinclude>{{islandlink|Twinsun|Citadel Island|nocat=true}}</noinclude> }}
+
  |data13={{#if: {{{planet|}}} | {{planetlink|{{{planet}}}|nocat={{{nocat|false}}}}} | <noinclude>{{planetlink|Twinsun|nocat=true}}</noinclude> }}
  
  |label14=Building
+
  |label14=Island
  |data14={{#if: {{{building|}}} | [[{{{building}}}]] | <noinclude>[[Twinsen's House]]</noinclude> }}
+
  |data14={{#if: {{{island|}}} | {{islandlink|{{{planet|}}}|{{{island}}}|nocat={{{nocat|false}}}}} | <noinclude>{{islandlink|Twinsun|Citadel Island|nocat=true}}</noinclude> }}
 +
 
 +
|label15=Building
 +
|data15={{#if: {{{building|}}} | [[{{{building}}}]] | <noinclude>[[Twinsen's House]]</noinclude> }}
 
}}<noinclude>
 
}}<noinclude>
 +
<nowiki>{{Infobox Character
 +
|image=Twinsen.jpg
 +
|race=Quetch
 +
|gender=male
 +
|size=average
 +
|age=adult
 +
|magical=YES
 +
|lba1=yes
 +
|lba2=yes
 +
|alignment=sendell
 +
|occupation=Hero
 +
|fam1=Zoé
 +
|planet=Twinsun
 +
|island=Citadel Island
 +
|building=Twinsen's House
 +
}}</nowiki>
 +
 
''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.
 
''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:Article Infoboxes|C]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:58, 4 June 2014

Infobox Character
Purpose

Infobox [list all]

Single tag

No [list all]

Multi-line

Yes [list all]

Protected

No [list all]

Game related

Yes [list all]

Categorization
Suppressible

Recursively [list all]

Choice

No choice [list all]

Categories

One: [list all]

Variables
Names

Multiple: [list all]

  • infobox_messages [template] (active)
  • maintenance_message [template] (active)
Subpages

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

Parameters

  • title: An optional title to display at the top of the infobox (case sensitive, defaults to {{PAGENAME}})
  • image: An image filename of the character (case sensitive, defaults to empty portrait, see Template:Articleimage)
  • race and label: 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)
  • lba1, lba2 and lba3: Whether the character is encountered in said adventure (defaults to "no", see the /adventure subpage)
  • alignment: The deity this character follows (defaults to "unknown", see the /alignment 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 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)
  • fam1, fam2, fam3, fam4 and fam5: The family members 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=
 |alignment=
 |occupation=
 |requires=
 |amount=
 |fam1=
 |fam2=
 |planet=
 |island=
 |building=
}}

Example

On a page called "Twinsen":
Twinsen
Character Portrait of Twinsen
Race

Quetch [list all]

Gender

Male [list all]

Size

Average [list all]

Age

Adult [list all]

Magical

Yes [list all]

Adventure

Multiple: [list all]

Character
Alignment

Sendell [list all]

Occupation

Hero

Family

Zoé

Residence
Planet

Twinsun

Island

Citadel Island

Building

Twinsen's House

{{Infobox Character
 |image=Twinsen.jpg
 |race=Quetch
 |gender=male
 |size=average
 |age=adult
 |magical=YES
 |lba1=yes
 |lba2=yes
 |alignment=sendell
 |occupation=Hero
 |fam1=Zoé
 |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.