Difference between revisions of "Template:Infobox Item"
J McKalling (Talk | contribs) |
J McKalling (Talk | contribs) (added infobox) |
||
(9 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 [[ | + | * '''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''': 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''': 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''': 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 [[ | + | * '''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''': 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) | |
− | * '''effect''': The effect this item has on [[Twinsen]] or his environment (case insensitive, defaults to "unknown", see the [[ | + | * '''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) |
− | * '''rate''': | + | * '''powerlevel''': What level of power does this item have, yellow, green, red, etc. (case insensitive, defaults to "unknown", see the [[/powerlevel]] subpage) |
− | * '''range''': | + | * '''rate''': How fast this (weapon) item can repeat an attack (case insensitive, defaults to "unknown", see the [[/rate]] subpage) |
− | * '''damage''': | + | * '''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). | * '''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.'' | '''''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.'' | ||
Line 35: | Line 47: | ||
|lba2= | |lba2= | ||
|upgrades= | |upgrades= | ||
− | |||
− | |||
− | |||
− | |||
|rowposition= | |rowposition= | ||
|columnposition= | |columnposition= | ||
+ | |effect= | ||
+ | |effectamount= | ||
+ | |purpose= | ||
+ | |combattype= | ||
+ | |powerlevel= | ||
|rate= | |rate= | ||
|range= | |range= | ||
Line 48: | Line 61: | ||
==Example== | ==Example== | ||
On a page called "Magic Ball": | On a page called "Magic Ball": | ||
− | </noinclude><includeonly>{{ | + | </noinclude><includeonly>{{categorizer|category=Items|display=emptyinfobox|nocat={{{nocat|false}}}}}</includeonly> |
{{Infobox | {{Infobox | ||
− | |<includeonly>{{#if: {{{title|}}} | | + | |title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Magic Ball</noinclude> |
− | | | + | |theme=red |
|infoboxname=Infobox Item | |infoboxname=Infobox Item | ||
|float=yes | |float=yes | ||
− | |image={{{image|<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>{{ | + | |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>{{ | + | |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>{{ | + | |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>{{ | + | |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>{{ | + | |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 77: | Line 90: | ||
|label7=Upgrades | |label7=Upgrades | ||
− | |data7=<includeonly>{{Infobox Item/upgrades|{{{upgrades|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{ | + | |data7=<includeonly>{{Infobox Item/upgrades|{{{upgrades|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/upgrades|yes|nocat=true}}</noinclude> |
− | |label8= | + | |label8=Position |
− | |data8=<includeonly>{{Infobox Item/ | + | |data8=<includeonly>{{Infobox Item/position|row={{{rowposition|}}}|column={{{columnposition|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/position|row=1|column=1|nocat=true}}</noinclude> |
− | |label9= | + | |label9=Effect |
− | |data9=<includeonly>{{Infobox Item/ | + | |data9=<includeonly>{{Infobox Item/effect|{{{effect|}}}|amount={{{effectamount|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/effect|uses magic|amount=one|nocat=true}}</noinclude> |
− | |label10= | + | |label10=Purpose |
− | |data10= | + | |data10={{{purpose|<noinclude>Remote control, key magnet</noinclude>}}} |
− | | | + | |header11=Combat |
− | | | + | |class11=subtitle |
− | |label12= | + | |label12=Combattype |
− | |data12=<includeonly>{{Infobox Item/ | + | |data12=<includeonly>{{Infobox Item/combattype|{{{combattype|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/combattype|enemies|nocat=true}}</noinclude> |
− | |label13= | + | |label13=Powerlevel |
− | |data13=<includeonly>{{Infobox Item/ | + | |data13=<includeonly>{{Infobox Item/powerlevel|{{{powerlevel|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/powerlevel|all|nocat=true}}</noinclude> |
− | |label14= | + | |label14=Rate |
− | |data14=<includeonly>{{Infobox Item/ | + | |data14=<includeonly>{{Infobox Item/rate|{{{rate|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/rate|low|nocat=true}}</noinclude> |
+ | |||
+ | |label15=Range | ||
+ | |data15=<includeonly>{{Infobox Item/range|{{{range|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/range|varies behavior|nocat=true}}</noinclude> | ||
+ | |||
+ | |label16=Damage | ||
+ | |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= | + | |image=Yellowball.gif |
|type=weapon | |type=weapon | ||
|critical=yes | |critical=yes | ||
Line 109: | Line 128: | ||
|lba2=yes | |lba2=yes | ||
|upgrades=yes | |upgrades=yes | ||
− | |||
− | |||
− | |||
− | |||
|rowposition=1 | |rowposition=1 | ||
|columnposition=1 | |columnposition=1 | ||
− | |rate= | + | |effect=uses magic |
− | |range=varies | + | |effectamount=one |
− | |damage=varies | + | |purpose=Remote control, key magnet |
+ | |combattype=enemies | ||
+ | |powerlevel=all | ||
+ | |rate=low | ||
+ | |range=varies behavior | ||
+ | |damage=varies magic | ||
}}</nowiki> | }}</nowiki> | ||
''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. | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 23:01, 4 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] |
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 | |
---|---|
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 | |
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.