Difference between revisions of "Template:Infobox"

From ComputerCraft Wiki
Jump to: navigation, search
m (test)
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox">
+
<div class="infobox" style="width: unset;min-width:320px;margin: 0 0 1em 1em;">
<div class="infobox-name">{{{name|{{PAGENAME}}}}}</div>
+
<div class="infobox-name">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
<div class="infobox-image">[[File:Iso_Unknown.png|128x128px]]</div>
+
<div class="infobox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|Iso_Unknown.png}}|128x128px]]</div>
 
{{#if:{{{rows|}}}|
 
{{#if:{{{rows|}}}|
 
<table class="infobox-rows">
 
<table class="infobox-rows">
Line 7: Line 7:
 
</table>
 
</table>
 
}}
 
}}
</div></includeonly><noinclude>
+
</div><noinclude>{{Documentation}}</noinclude>
{{Infobox
+
|name=test
+
|image=Iso_Unknown.png
+
|rows=
+
{{Infobox row|Item ID|1}}
+
{{Infobox row|Damage Value|1}}
+
{{Infobox row|Peripheral?|No}}
+
}}
+
</noinclude>
+

Latest revision as of 05:16, 4 August 2020

Infobox
Iso Unknown.png

[ view | edit | history ] Documentation

Parameter

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