Difference between revisions of "Template:Infobox"
From ComputerCraft Wiki
Magiczocker (Talk | contribs) m |
Magiczocker (Talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly><div class="infobox"> | <includeonly><div class="infobox"> | ||
− | <div class="infobox-name">{{{name|{{ | + | <div class="infobox-name">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div> |
<div class="infobox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|Iso_Unknown.png}}|128x128px]]</div> | <div class="infobox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|Iso_Unknown.png}}|128x128px]]</div> | ||
{{#if:{{{rows|}}}| | {{#if:{{{rows|}}}| | ||
Line 9: | Line 9: | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{Infobox | {{Infobox | ||
− | |name= | + | |name={{{name|}}} |
− | |image= | + | |image={{{image|}}} |
|rows= | |rows= | ||
− | {{Infobox row|Item ID| | + | {{Infobox row|Item ID|{{{id<includeonly>|</includeonly>}}}}} |
− | {{Infobox row|Damage Value| | + | {{Infobox row|Damage Value|{{{damage-value<includeonly>|</includeonly>}}}}} |
− | {{Infobox row|Peripheral?|No}} | + | {{Infobox row|Peripheral?|{{#if:{{{is-peripheral|}}}|{{{is-peripheral}}}<includeonly>[[Category:Peripherals]]</includeonly>{{#if:{{{peripheral-api|}}}| - [[{{{peripheral-api}}}]]}}|No}}}} |
}} | }} | ||
</noinclude> | </noinclude> |