Difference between revisions of "Template:Infobox"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{| class="infobox" ! colspan="2" class="infobox-name" | {{{name|{{PAGENAME}}}}} | colspan="2" class="infobox-image" | File:{{#if:{{{image|}}}|{{{image}}}|{{PAGENAME}}.png }}...")
 
m
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox"
+
<div class="infobox" style="width: unset;min-width:320px;margin: 0 0 1em 1em;">
! colspan="2" class="infobox-name" | {{{name|{{PAGENAME}}}}}
+
<div class="infobox-name">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
| colspan="2" class="infobox-image" | [[File:{{#if:{{{image|}}}|{{{image}}}|{{PAGENAME}}.png }}|{{#if:{{{size|}}}|{{{size}}}|90px}}]]
+
<div class="infobox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|Iso_Unknown.png}}|128x128px]]</div>
{{#if:{{{rows|}}}|{{{rows}}}}}
+
{{#if:{{{rows|}}}|
|}
+
<table class="infobox-rows">
 +
{{{rows}}}
 +
</table>
 +
}}
 +
</div><noinclude>{{Documentation}}</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