Template:InfoboxFaction: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
<templatestyles src="Template:InfoboxFaction/styles.css" /> | <templatestyles src="Template:InfoboxFaction/styles.css" /> | ||
<table class="infobox"> | <table class="infobox"> | ||
<tr><th colspan="2" class="infobox-title">{{{name|Faction}}}</th></tr> | <tr><th colspan="2" class="infobox-title">{{{name|Faction}}}</th></tr><!-- | ||
-->{{#if:{{{image|}}}|<tr><th colspan="2" class="infobox-image">[[File:{{{image}}}|250px|center|]]</th></tr>}}<!-- | |||
{{#if:{{{image|}}}|<tr><th colspan="2" class="infobox-image">[[File:{{{image}}}|250px|center|]]</th></tr>}} | -->{{#if:{{{caption|}}}|<tr><th colspan="2" class="infobox-caption">{{{caption}}}</th></tr>}}<!-- | ||
{{#if:{{{caption|}}}|<tr><th colspan="2" class="infobox-caption">{{{caption}}}</th></tr>}} | |||
-->{{#if:{{{aka|}}}|<tr><th colspan="2" class="infobox-header">General</th></tr><!-- | |||
{{#if:{{{aka|}}} | -->{{#if:{{{aka|}}}|<tr><th class="infobox-label">Also known as</td><td>{{{aka}}}</td></tr>}} | ||
| | }}<!-- | ||
<tr><th colspan="2" class="infobox-header">General</th></tr> | |||
{{#if:{{{aka|}}}|<tr><th class="infobox-label">Also known as</td><td>{{{aka}}}</td></tr>}} | -->{{#if:{{{type|}}}{{{capital|}}}{{{leader|}}}|<tr><th colspan="2" class="infobox-header">Governance</th></tr><!-- | ||
}} | -->{{#if:{{{type|}}}|<tr><th class="infobox-label">Type</td><td>{{{type}}}</td></tr>}}<!-- | ||
{{#if:{{{type|}}}{{{capital|}}}{{{leader|}}} | -->{{#if:{{{capital|}}}|<tr><th class="infobox-label">Capital</th><td>{{{capital}}}</td></tr>}}<!-- | ||
| | -->{{#if:{{{leader|}}}|<tr><th class="infobox-label">Leader</th><td>{{{leader}}}</td></tr>}} | ||
<tr><th colspan="2" class="infobox-header">Governance</th></tr> | |||
{{#if:{{{type|}}}|<tr><th class="infobox-label">Type</td><td>{{{type}}}</td></tr>}} | |||
{{#if:{{{capital|}}}|<tr><th class="infobox-label">Capital</th><td>{{{capital}}}</td></tr>}} | |||
{{#if:{{{leader|}}}|<tr><th class="infobox-label">Leader</th><td>{{{leader}}}</td></tr>}} | |||
}} | }} | ||
</table> | </table> | ||
| Line 31: | Line 27: | ||
}} | }} | ||
Use this template at the top of a page to insert a faction infobox. | Use this template at the top of a page to insert a faction infobox. | ||
TemplateStyles CSS: [[Template:{{PAGENAME}}/styles.css]] | |||
== Copy/Paste This == | == Copy/Paste This == | ||