Template:Race Infobox: Difference between revisions
Template page
More actions
Created page with "{{#invoke:Infobox|infobox_template |title = {{{name|{{PAGENAME}}}}} |image = {{{image|}}} |imgwidth = {{{imgwidth|280px}}} |caption = {{{caption|}}} |header1 = General |label2 = Formal Name |data2 = {{{formal_name|}}} |label3 = Common Name |data3 = {{{common_name|}}} |label4 = Founding |data4 = {{{founding|}}} |label5 = Founder / First Leader |data5 = {{{founder|}}} |label6 = Current Leader |data6..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<!-- =========================== | |||
Template:Race Infobox | |||
Fully functional Wikipedia-style infobox for races/factions | |||
=========================== --> | |||
<table class="infobox" role="presentation"> | |||
<!-- Name / Title --> | |||
{{#if:{{{name|}}}| | |||
<tr> | |||
<th class="infobox-title" colspan="2"> | |||
{{{name}}} | |||
</th> | |||
</tr> | |||
}} | |||
| | <!-- Image --> | ||
| | {{#if:{{{image|}}}| | ||
| | <tr> | ||
| | <td colspan="2" style="text-align:center; padding:6px;"> | ||
[[File:{{{image}}}|frameless|class=infobox-image|alt={{{alt|}}}|link=]] | |||
| | {{#if:{{{caption|}}}| | ||
<div class="infobox-caption">{{{caption}}}</div> | |||
}} | |||
</td> | |||
</tr> | |||
}} | |||
<!-- Founding --> | |||
{{#if:{{{founding|}}}| | |||
<tr><th class="infobox-section" colspan="2">Founding</th></tr> | |||
<tr><td class="infobox-label">Founded</td><td class="infobox-data">{{{founding}}}</td></tr> | |||
}} | |||
{{#if:{{{founder|}}}| | |||
<tr><td class="infobox-label">Founder</td><td class="infobox-data">{{{founder}}}</td></tr> | |||
}} | |||
| | {{#if:{{{current_leader|}}}| | ||
}} | <tr><td class="infobox-label">Current Leader</td><td class="infobox-data">{{{current_leader}}}</td></tr> | ||
}} | |||
<!-- Geography --> | |||
{{#if:{{{capital|}}}| | |||
<tr><th class="infobox-section" colspan="2">Geography</th></tr> | |||
<tr><td class="infobox-label">Capital</td><td class="infobox-data">{{{capital}}}</td></tr> | |||
}} | |||
{{#if:{{{major_cities|}}}| | |||
<tr><td class="infobox-label">Major Cities</td><td class="infobox-data">{{{major_cities}}}</td></tr> | |||
}} | |||
{{#if:{{{regions|}}}| | |||
<tr><td class="infobox-label">Regions</td><td class="infobox-data">{{{regions}}}</td></tr> | |||
}} | |||
<!-- Biology --> | |||
{{#if:{{{lifespan|}}}| | |||
<tr><th class="infobox-section" colspan="2">Biology</th></tr> | |||
<tr><td class="infobox-label">Lifespan</td><td class="infobox-data">{{{lifespan}}}</td></tr> | |||
}} | |||
{{#if:{{{height|}}}| | |||
<tr><td class="infobox-label">Height</td><td class="infobox-data">{{{height}}}</td></tr> | |||
}} | |||
<!-- Culture --> | |||
{{#if:{{{language|}}}| | |||
<tr><th class="infobox-section" colspan="2">Culture</th></tr> | |||
<tr><td class="infobox-label">Language</td><td class="infobox-data">{{{language}}}</td></tr> | |||
}} | |||
{{#if:{{{religion|}}}| | |||
<tr><td class="infobox-label">Religion</td><td class="infobox-data">{{{religion}}}</td></tr> | |||
}} | |||
<!-- Government --> | |||
{{#if:{{{government|}}}| | |||
<tr><th class="infobox-section" colspan="2">Government</th></tr> | |||
<tr><td class="infobox-label">Government</td><td class="infobox-data">{{{government}}}</td></tr> | |||
}} | |||
<!-- Relations --> | |||
{{#if:{{{allies|}}}| | |||
<tr><th class="infobox-section" colspan="2">Relations</th></tr> | |||
<tr><td class="infobox-label">Allies</td><td class="infobox-data">{{{allies}}}</td></tr> | |||
}} | |||
{{#if:{{{enemies|}}}| | |||
<tr><td class="infobox-label">Enemies</td><td class="infobox-data">{{{enemies}}}</td></tr> | |||
}} | |||
</table> | |||
Revision as of 12:31, 29 November 2025
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{#if:|
}}
{{{name}}}
|
|
|---|---|
[[File:{{{image}}}|frameless|class=infobox-image|alt=|link=]]
{{#if:|
{{{caption}}}
}} |
|
| Founding | |
| Founded | {{{founding}}} |
| Founder | {{{founder}}} |
| Current Leader | {{{current_leader}}} |
| Geography | |
| Capital | {{{capital}}} |
| Major Cities | {{{major_cities}}} |
| Regions | {{{regions}}} |
| Biology | |
| Lifespan | {{{lifespan}}} |
| Height | {{{height}}} |
| Culture | |
| Language | {{{language}}} |
| Religion | {{{religion}}} |
| Government | |
| Government | {{{government}}} |
| Relations | |
| Allies | {{{allies}}} |
| Enemies | {{{enemies}}} |