Difference between revisions of "Template:Infobox Item"

From Twinsuniverse
Jump to: navigation, search
m
(added infobox)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is used as an infobox in items' 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=Items
 +
|var1=infobox_messages!Infobox!active
 +
|var2=maintenance_message!Infobox!active
 +
}}
 +
 
 +
This template is used as an infobox in items' 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>)
 
* '''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 item (case sensitive, defaults to empty image, see [[Template:Articleimage]])
 
* '''image''': An image filename of the item (case sensitive, defaults to empty image, see [[Template:Articleimage]])
* '''type''': The type of the item; equipment, tool, weapon etc. (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/type|type]] subpage)
+
* '''type''': The type of the item; equipment, tool, weapon etc. (case insensitive, defaults to "unknown", see the [[/type]] subpage)
* '''critical''': Whether this item is critical to the default storyline; yes, no or acquired (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/critical|critical]] subpage)
+
* '''critical''': Whether this item is critical to the default storyline; yes, no or acquired (case insensitive, defaults to "unknown", see the [[/critical]] subpage)
* '''magical''': Whether the item is magical; yes or no (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/magical|magical]] subpage)
+
* '''magical''': Whether the item is magical; yes or no (case insensitive, defaults to "unknown", see the [[/magical]] subpage)
* '''unique''': Whether the item can be found only once during an adventure (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/unique|unique]] subpage)
+
* '''unique''': Whether the item can be found only once during an adventure (case insensitive, defaults to "unknown", see the [[/unique]] subpage)
* '''lba1''', '''lba2''' and '''lba3''': Whether the item is encountered in said adventure (defaults to "no", see the [[Template:{{PAGENAME}}/adventure|adventure]] subpage)
+
* '''lba1''', '''lba2''' and '''lba3''': Whether the item is encountered in said adventure (defaults to "no", see the [[/adventure]] subpage)
* '''upgrades''': Whether this item can upgrade into a more powerful or completed state; yes, no or final (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/upgrades|upgrades]] subpage)
+
* '''upgrades''': Whether this item can upgrade into a more powerful or completed state; yes, no or final (case insensitive, defaults to "unknown", see the [[/upgrades]] subpage)
* '''rowposition''' and '''columnposition''': The position of the item in the inventory if it has one (positive numeric, defaults to "unknown", see the [[Template:{{PAGENAME}}/position|position]] subpage)
+
* '''rowposition''' and '''columnposition''': The position of the item in the inventory if it has one (positive numeric, defaults to "unknown", see the [[/position]] subpage)
* '''effect''': The effect this item has on [[Twinsen]] or his environment (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/effect|effect]] subpage)
+
* '''effect''': The effect this item has on [[Twinsen]] or his environment (case insensitive, defaults to "unknown", see the [[/effect]] subpage)
* '''effectamount''': A specific amount for the above effect (case insensitive, defaults to no specific value, see the [[Template:{{PAGENAME}}/effect|effect]] subpage)
+
* '''effectamount''': A specific amount for the above effect (case insensitive, defaults to no specific value, see the [[/effect]] subpage)
 
* '''purpose''': A short phrase about the item's (special) purpose if it has one (case sensitive, defaults to not displayed)
 
* '''purpose''': A short phrase about the item's (special) purpose if it has one (case sensitive, defaults to not displayed)
* '''combattype''': What kind of combat this (weapon) item targets, enemies, area, etc. (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/combattype|combattype]] subpage)
+
* '''combattype''': What kind of combat this (weapon) item targets, enemies, area, etc. (case insensitive, defaults to "unknown", see the [[/combattype]] subpage)
* '''powerlevel''': What level of power does this item have, yellow, green, red, etc. (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/powerlevel|powerlevel]] subpage)
+
* '''powerlevel''': What level of power does this item have, yellow, green, red, etc. (case insensitive, defaults to "unknown", see the [[/powerlevel]] subpage)
* '''rate''': How fast this (weapon) item can repeat an attack (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/rate|rate]] subpage)
+
* '''rate''': How fast this (weapon) item can repeat an attack (case insensitive, defaults to "unknown", see the [[/rate]] subpage)
* '''range''': The longest distance this (weapon) item can attack at (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/range|range]] subpage)
+
* '''range''': The longest distance this (weapon) item can attack at (case insensitive, defaults to "unknown", see the [[/range]] subpage)
* '''damage''': How much damage an attack from this (weapon) item causes (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/damage|damage]] subpage)
+
* '''damage''': How much damage an attack from this (weapon) item causes (case insensitive, defaults to "unknown", see the [[/damage]] subpage)
 
* '''nocat''': Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization).
 
* '''nocat''': Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization).
  
Line 49: Line 61:
 
==Example==
 
==Example==
 
On a page called "Magic Ball":
 
On a page called "Magic Ball":
</noinclude><includeonly>{{#ifeq: {{lc: {{{nocat|false}}} }} | false | [[Category:Items]] }}</includeonly>
+
</noinclude><includeonly>{{categorizer|category=Items|display=emptyinfobox|nocat={{{nocat|false}}}}}</includeonly>
 
{{Infobox
 
{{Infobox
  |<includeonly>{{#if: {{{title|}}} |title={{{title|}}}}}</includeonly><noinclude>title=Magic Ball</noinclude>
+
  |title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Magic Ball</noinclude>
  |class=item
+
  |theme=red
 
  |infoboxname=Infobox Item
 
  |infoboxname=Infobox Item
 
  |float=yes
 
  |float=yes
  |image={{{image|<noinclude>Yellow Ball.gif</noinclude>}}}
+
  |image={{{image|<noinclude>Yellowball.gif</noinclude>}}}
 
  |imagecaption=Image of <includeonly>{{PAGENAME}}</includeonly><noinclude>Magic Ball</noinclude>
 
  |imagecaption=Image of <includeonly>{{PAGENAME}}</includeonly><noinclude>Magic Ball</noinclude>
 
  |nocat=<includeonly>{{{nocat|false}}}</includeonly><noinclude>true</noinclude>
 
  |nocat=<includeonly>{{{nocat|false}}}</includeonly><noinclude>true</noinclude>
  
 
  |label1=Type
 
  |label1=Type
  |data1=<includeonly>{{Infobox Item/type|{{{type|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/type|weapon|nocat=true}}</noinclude>
+
  |data1=<includeonly>{{Infobox Item/type|{{{type|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/type|weapon|nocat=true}}</noinclude>
  
 
  |label2=Critical
 
  |label2=Critical
  |data2=<includeonly>{{Infobox Item/critical|{{{critical|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/critical|yes|nocat=true}}</noinclude>
+
  |data2=<includeonly>{{Infobox Item/critical|{{{critical|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/critical|yes|nocat=true}}</noinclude>
  
 
  |label3=Magical
 
  |label3=Magical
  |data3=<includeonly>{{Infobox Item/magical|{{{magical|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/magical|yes|nocat=true}}</noinclude>
+
  |data3=<includeonly>{{Infobox Item/magical|{{{magical|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/magical|yes|nocat=true}}</noinclude>
  
 
  |label4=Unique
 
  |label4=Unique
  |data4=<includeonly>{{Infobox Item/unique|{{{unique|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/unique|yes|nocat=true}}</noinclude>
+
  |data4=<includeonly>{{Infobox Item/unique|{{{unique|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/unique|yes|nocat=true}}</noinclude>
  
 
  |label5=Adventure
 
  |label5=Adventure
  |data5=<includeonly>{{Infobox Item/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/adventure|lba1=yes|lba2=yes|nocat=true}}</noinclude>
+
  |data5=<includeonly>{{Infobox Item/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/adventure|lba1=yes|lba2=yes|nocat=true}}</noinclude>
  
 
  |header6=Item
 
  |header6=Item
Line 78: Line 90:
  
 
  |label7=Upgrades
 
  |label7=Upgrades
  |data7=<includeonly>{{Infobox Item/upgrades|{{{upgrades|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/upgrades|yes|nocat=true}}</noinclude>
+
  |data7=<includeonly>{{Infobox Item/upgrades|{{{upgrades|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/upgrades|yes|nocat=true}}</noinclude>
  
 
  |label8=Position
 
  |label8=Position
  |data8=<includeonly>{{Infobox Item/position|row={{{rowposition|}}}|column={{{columnposition|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/position|row=1|column=1|nocat=true}}</noinclude>
+
  |data8=<includeonly>{{Infobox Item/position|row={{{rowposition|}}}|column={{{columnposition|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/position|row=1|column=1|nocat=true}}</noinclude>
  
 
  |label9=Effect
 
  |label9=Effect
  |data9=<includeonly>{{Infobox Item/effect|{{{effect|}}}|amount={{{effectamount|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/effect|uses magic|amount=one|nocat=true}}</noinclude>
+
  |data9=<includeonly>{{Infobox Item/effect|{{{effect|}}}|amount={{{effectamount|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/effect|uses magic|amount=one|nocat=true}}</noinclude>
  
 
  |label10=Purpose
 
  |label10=Purpose
Line 93: Line 105:
  
 
  |label12=Combattype
 
  |label12=Combattype
  |data12=<includeonly>{{Infobox Item/combattype|{{{combattype|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/combattype|enemies|nocat=true}}</noinclude>
+
  |data12=<includeonly>{{Infobox Item/combattype|{{{combattype|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/combattype|enemies|nocat=true}}</noinclude>
  
 
  |label13=Powerlevel
 
  |label13=Powerlevel
  |data13=<includeonly>{{Infobox Item/powerlevel|{{{powerlevel|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/powerlevel|all|nocat=true}}</noinclude>
+
  |data13=<includeonly>{{Infobox Item/powerlevel|{{{powerlevel|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/powerlevel|all|nocat=true}}</noinclude>
  
 
  |label14=Rate
 
  |label14=Rate
  |data14=<includeonly>{{Infobox Item/rate|{{{rate|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/rate|low|nocat=true}}</noinclude>
+
  |data14=<includeonly>{{Infobox Item/rate|{{{rate|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/rate|low|nocat=true}}</noinclude>
  
 
  |label15=Range
 
  |label15=Range
  |data15=<includeonly>{{Infobox Item/range|{{{range|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/range|varies behavior|nocat=true}}</noinclude>
+
  |data15=<includeonly>{{Infobox Item/range|{{{range|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/range|varies behavior|nocat=true}}</noinclude>
  
 
  |label16=Damage
 
  |label16=Damage
  |data16=<includeonly>{{Infobox Item/damage|{{{damage|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/damage|varies magic|nocat=true}}</noinclude>
+
  |data16=<includeonly>{{Infobox Item/damage|{{{damage|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/damage|varies magic|nocat=true}}</noinclude>
 
}}<noinclude>
 
}}<noinclude>
 
  <nowiki>{{Infobox Item
 
  <nowiki>{{Infobox Item
  |image=Yellow Ball.gif
+
  |image=Yellowball.gif
 
  |type=weapon
 
  |type=weapon
 
  |critical=yes
 
  |critical=yes
Line 130: Line 142:
 
''example paragraph: ''Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball.
 
''example paragraph: ''Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball.
  
[[Category:Infoboxes|Item]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:01, 5 June 2014

Infobox Item
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 items' 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 item (case sensitive, defaults to empty image, see Template:Articleimage)
  • type: The type of the item; equipment, tool, weapon etc. (case insensitive, defaults to "unknown", see the /type subpage)
  • critical: Whether this item is critical to the default storyline; yes, no or acquired (case insensitive, defaults to "unknown", see the /critical subpage)
  • magical: Whether the item is magical; yes or no (case insensitive, defaults to "unknown", see the /magical subpage)
  • unique: Whether the item can be found only once during an adventure (case insensitive, defaults to "unknown", see the /unique subpage)
  • lba1, lba2 and lba3: Whether the item is encountered in said adventure (defaults to "no", see the /adventure subpage)
  • upgrades: Whether this item can upgrade into a more powerful or completed state; yes, no or final (case insensitive, defaults to "unknown", see the /upgrades subpage)
  • rowposition and columnposition: The position of the item in the inventory if it has one (positive numeric, defaults to "unknown", see the /position subpage)
  • effect: The effect this item has on Twinsen or his environment (case insensitive, defaults to "unknown", see the /effect subpage)
  • effectamount: A specific amount for the above effect (case insensitive, defaults to no specific value, see the /effect subpage)
  • purpose: A short phrase about the item's (special) purpose if it has one (case sensitive, defaults to not displayed)
  • combattype: What kind of combat this (weapon) item targets, enemies, area, etc. (case insensitive, defaults to "unknown", see the /combattype subpage)
  • powerlevel: What level of power does this item have, yellow, green, red, etc. (case insensitive, defaults to "unknown", see the /powerlevel subpage)
  • rate: How fast this (weapon) item can repeat an attack (case insensitive, defaults to "unknown", see the /rate subpage)
  • range: The longest distance this (weapon) item can attack at (case insensitive, defaults to "unknown", see the /range subpage)
  • damage: How much damage an attack from this (weapon) item causes (case insensitive, defaults to "unknown", see the /damage subpage)
  • 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 Item
 |image=
 |type=
 |critical=
 |magical=
 |unique=
 |lba1=
 |lba2=
 |upgrades=
 |rowposition=
 |columnposition=
 |effect=
 |effectamount=
 |purpose=
 |combattype=
 |powerlevel=
 |rate=
 |range=
 |damage=
}}

Example

On a page called "Magic Ball":
Magic Ball
Image of Magic Ball
Type

Weapon [list all]

Critical

Yes [list all]

Magical

Yes [list all]

Unique

Yes [list all]

Adventure

Multiple: [list all]

Item
Upgrades

Yes [list all]

Position

Row 1 [list all] Column 1 [list all]

Effect

Uses Magic [list all] (one)

Purpose

Remote control, key magnet

Combat
Combattype

Enemy Targets [list all]

Powerlevel

All Magic Levels [list all]

Rate

Low [list all]

Range

Varies [list all] (depends on bahavior)

Damage

Varies [list all] (depends on magic)

{{Infobox Item
 |image=Yellowball.gif
 |type=weapon
 |critical=yes
 |magical=yes
 |unique=yes
 |lba1=yes
 |lba2=yes
 |upgrades=yes
 |rowposition=1
 |columnposition=1
 |effect=uses magic
 |effectamount=one
 |purpose=Remote control, key magnet
 |combattype=enemies
 |powerlevel=all
 |rate=low
 |range=varies behavior
 |damage=varies magic
}}

example paragraph: Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball. Description text about the item, in this case the Magic Ball.