Jump to content

Template:Infobox item: Difference between revisions

Seddik (talk | contribs)
No edit summary
Seddik (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:300px; float:right; border:1px solid #999;"
<includeonly>{{#if:{{{header|}}}
! colspan="2" style="text-align:center; font-size:110%; color:#fff;" | {{{name|Unnamed Item}}}
|<tr class="infobox-header {{{class|}}}"><th colspan="2">{{{header}}}</th></tr>
|-
|{{#if:{{{data|}}}
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|250px]]
|<tr class="infobox-row {{{class|}}}">{{#if:{{{label|}}}
|-
  |<th class="infobox-label">{{{label}}}</th><td class="infobox-data">{{{data}}}</td>
! Type
  |<td colspan="2" class="infobox-data">{{{data}}}</td>
| {{{type|}}}
}}</tr>
|-
}}
! Rarity
}}</includeonly><noinclude>
| {{{rarity|}}}
Renders one infobox row. If `header` is set, renders a full-width section header row.
|-
Else if `data` is set, renders a label+data row (or full-width data-only row if no label).
! Attunement
Empty rows (no header, no data) render nothing.
| {{{attunement|None}}}
</noinclude><noinclude>
|-
! Properties
| {{{properties|}}}
|-
! Origin
| {{{origin|}}}
|-
! Owner
| {{{owner|}}}
|}</includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>