Difference between revisions of "Template:Infobox"

From ComputerCraft Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 
<includeonly><div class="infobox">
 
<includeonly><div class="infobox">
<div class="infobox-name">{{{name|{{PAGENAME}}}}}</div>
+
<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=test
+
|name={{{name|}}}
|image=Iso_Unknown.png
+
|image={{{image|}}}
 
|rows=
 
|rows=
{{Infobox row|Item ID|1}}
+
{{Infobox row|Item ID|{{{id<includeonly>|</includeonly>}}}}}
{{Infobox row|Damage Value|1}}
+
{{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>

Revision as of 16:35, 1 August 2020

Infobox
Iso Unknown.png
Item ID{{{id}}}
Damage Value{{{damage-value}}}
Peripheral?No