Difference between revisions of "Template:Infobox"

From ComputerCraft Wiki
Jump to: navigation, search
m
Line 1: Line 1:
<includeonly><div class="infobox">
+
<div class="infobox">
 
<div class="infobox-name">{{#if:{{{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>
Line 7: Line 7:
 
</table>
 
</table>
 
}}
 
}}
</div></includeonly><noinclude>
+
</div><noinclude>{{Documentation}}</noinclude>
{{Infobox
+
|name={{{name|}}}
+
|image={{{image|}}}
+
|rows=
+
{{Infobox row|Item ID|{{{id<includeonly>|</includeonly>}}}}}
+
{{Infobox row|Damage Value|{{{damage-value<includeonly>|</includeonly>}}}}}
+
{{Infobox row|Peripheral?|{{#if:{{{is-peripheral|}}}|{{{is-peripheral}}}<includeonly>[[Category:Peripherals]]</includeonly>{{#if:{{{peripheral-api|}}}| - [[{{{peripheral-api}}}]]}}|No}}}}
+
}}
+
</noinclude>
+

Revision as of 10:38, 2 August 2020

Infobox
Iso Unknown.png

[ view | edit | history ] Documentation

Parameter

  • {{{name}}} - Infobox name
  • {{{image}}} - Infobox image
  • {{{rows}}} - create custom infobox rows