Template:Infobox item: Difference between revisions
simplify link |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{infobox common | <includeonly>{{infobox common | ||
| title = {{ #if: {{{ | | title = {{ #if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ||
| imagearea = | | imagearea = <span style="color: red; font-size: 7.5pt">Template may be temporarily broken while updates are applied</span><br /> | ||
[[File:{{ #if: {{{image|}}} | {{{image}}} | No image.png }}|150px|center]] | [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No image.png}} }}|150px|center]]{{ | ||
{{ #if: {{{invimage|}}} | <div style="padding-top: | #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div> }} }} | ||
}}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }} | |||
| rows = | | rows = | ||
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | {{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | ||
{{infobox row|label=Durability|field={{ #if: {{{durability|}}} | {{{durability}}} | N/A }} }} | {{infobox row|label=Durability|field={{ #if: {{{durability|}}} | {{{durability}}} | N/A }} }} | ||
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }} | {{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }} | ||
{{ #if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }} | {{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }} | ||
{{ #if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }} | |||
}}{{#if:{{{type|}}}|[[Category:{{{type}}}{{!}}{{PAGENAME}}]]}}</includeonly><noinclude> | }}{{#if:{{{type|}}}|[[Category:{{{type}}}{{!}}{{PAGENAME}}]]}}</includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
[[Category:Infobox templates|I]]</noinclude> | [[Category:Infobox templates|I]]</noinclude> | ||