Template:Infobox: Difference between revisions
Deploy generic infobox template |
Deploy generic infobox template |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Generic infobox template for The Natural Order wiki. | Generic infobox template for The Natural Order wiki. | ||
Supports up to 15 label/value pairs. | Supports up to 15 label/value pairs and an optional image. | ||
Usage: {{Infobox | name = Title | label1 = Field | value1 = Data | | Usage: {{Infobox | name = Title | image = Filename.png | label1 = Field | value1 = Data | ... }} | ||
</noinclude><div class="infobox" style="float:right; border:1px solid #aaa; background:#f9f9f9; padding: | </noinclude><div class="infobox" style="float:right; border:1px solid #aaa; background:#f9f9f9; padding:8px; margin:0 0 10px 10px; width:auto; min-width:180px; max-width:280px;"> | ||
<div style="text-align:center; font-size:1.2em; font-weight:bold; background:#333; color:#fff; padding:5px;">'''{{{name|}}}'''</div> | <div style="text-align:center; font-size:1.2em; font-weight:bold; background:#333; color:#fff; padding:5px;">'''{{{name|}}}'''</div> | ||
{{#if:{{{image|}}}| | |||
<div style="text-align:center; padding:5px 0;">[[File:{{{image}}}|220px]]</div> | |||
}} | |||
{{#if:{{{label1|}}}| | {{#if:{{{label1|}}}| | ||
<div style="padding:3px 0;">'''{{{label1}}}:''' {{{value1|}}}</div> | <div style="padding:3px 0;">'''{{{label1}}}:''' {{{value1|}}}</div> | ||
Latest revision as of 15:47, 2 May 2026
Generic infobox template for The Natural Order wiki. Supports up to 15 label/value pairs and an optional image.
Usage:
'