Template:Infobox Item: Difference between revisions

m
Text replacement - "↵↵|}" to " |}"
(New page: {| {| style="border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; width:23em; min-width: 20e...)
 
m (Text replacement - "↵↵|}" to " |}")
 
(46 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{| {| style="border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; width:23em; min-width: 20em; font-size: 90%; text-align: left;" cellpadding="3"  
{| class="infobox bordered" style="width:23em; min-width:18em" cellpadding="3"
|-
! colspan="2" style="font-size:110%; text-align:center; background:#6fbfff" | {{#if:{{{name|{{{title<includeonly>|</includeonly>}}}}}}|{{{name|{{{title}}}}}}|{{PAGENAME}}}}
! colspan="4" style="font-size:125%;text-align:center; background:#0066CC;"| {{{name}}}
|-
|-
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} colspan="4" style="text-align:center;padding-bottom:.5em;background:#FFF;border:0px;" {{!}}{{{image}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
{{!}} colspan="2" style="text-align:center; background:#fff" {{!}}{{{image}}}{{#if:{{{caption|}}}|<br>{{{caption}}}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{series<includeonly>|</includeonly>}}} |
{{#if:{{{universe|{{{series<includeonly>|</includeonly>}}}}}} |
{{!}} colspan="2" style="text-align:center; background:transparent;"{{!}}'''Series'''
{{!}} style="background:#eee" {{!}}'''[[Universe]]'''
{{!}}{{{series}}}
{{!}}{{{universe|{{{series}}}}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{game1|{{{appearance|{{{appearances|{{{games<includeonly>|</includeonly>}}}}}}}}}}}} |
{{!}} style="background:#eee" {{!}}'''Appears in'''
{{!}}{{#if:{{{game2|}}}
|''[[{{{game1|}}}]]''<br>''[[{{{game2|}}}]]''{{#if:{{{game3|}}}|<br>''[[{{{game3|}}}]]''{{#if:{{{game4|}}}|<br>''[[{{{game4|}}}]]''{{#if:{{{game5|}}}|<br>''[[{{{game5|}}}]]''}}}}}}
|{{#if:{{{game1|}}}|''[[{{{game1|}}}]]''|{{{games|{{{game|{{{appearances|{{{appearance}}} }}} }}} }}}
}} }}}}
{{!}}-
{{#if:{{{item class<includeonly>|</includeonly>}}} |
{{#if:{{{item class<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="text-align:center; background:transparent;"{{!}}'''Item class'''
{{!}} style="background:#eee" {{!}}'''Item class'''
{{!}}{{{item class}}}
{{!}}{{{item class}}}
{{!}}-
}}
{{#if:{{{appearance<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="text-align:center; background:transparent;"{{!}}'''Appearance(s)'''
{{!}}{{{appearance}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{requirements<includeonly>|</includeonly>}}} |
{{#if:{{{requirements<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="text-align:center; background:transparent;"{{!}}'''Reqirements'''
{{!}} style="background:#eee" {{!}}'''Requirements'''
{{!}}{{{requirements}}}
{{!}}{{{requirements}}}
{{!}}-
{{!}}-
}}
{{#if:{{{interwiki<includeonly>|</includeonly>}}} |
{{InterwikiInfobox|{{{interwikiname}}}|{{{interwiki}}}|{{{interwikipage}}}|{{{interwikipage}}}}}
}}
}}
|}<noinclude>
|}<noinclude>
Line 32: Line 36:
==Usage==
==Usage==
<pre>
<pre>
{{Infobox Game
{{Infobox Item
| title        =  
| title        =  
| image        =  
| image        =  
| caption      =  
| caption      =  
| series of origin  =  
| series       =  
| item class  =  
| item class  =  
| appearance  =  
| game1        = ssb *or* melee *or* brawl *or* ssb4 *or* ultimate
| game2        = ssb *or* melee *or* brawl *or* ssb4 *or* ultimate
| game3        = ssb *or* melee *or* brawl *or* ssb4 *or* ultimate
| game4        = ssb *or* melee *or* brawl *or* ssb4 *or* ultimate
| game5        = ssb *or* melee *or* brawl *or* ssb4 *or* ultimate
| requirements =  
| requirements =  
|interwiki    =
|interwikiname =
|interwikipage =
}}</pre>
}}</pre>
All fields other than "title" are optional. For the item class field put what it's usage is, such as: projectile, melee weapon, pokeball, KO item, etc. Requirements applies to area specific items such as the apple's requirement os playing on the Green Greens stage
All fields are optional (title will use the page title if not explicitly filled in). For the item class field put what it's usage is, such as: projectile, melee weapon, pokeball, KO item, etc. Requirements applies to area specific items such as the apple's requirement of playing on the Green Greens stage.
[[Category:Infoboxes|Item]]</noinclude>
 
To add an interwiki link, put the interwiki prefix in the <code>interwiki</code> slot, the target wiki's name in the <code>interwikiname</code> slot, and the name of the target page in the <code>interwikipage</code> slot.
[[Category:Infobox templates|Item]]</noinclude>