Template:InfoboxFaction: Difference between revisions
Created page with "<includeonly> <templatestyles src="Template:InfoboxFaction/styles.css" /> <table class="infobox"> {{#if: {{{type|}}}{{{capital|}}}{{{leader|}}} | <tr><td colspan="2" class="infobox-title">{{{name|Faction}}}</td></tr> {{#if:{{{image|}}}|<tr> <td colspan="2" class="infobox-image">[[File:{{{image}}}|250px|center|]]</td> </tr>}} {{#if:{{{caption|}}}|<tr> <td colspan="2" class="infobox-caption">{{{caption}}}</td> </tr>}} <tr><th colspan="2" class="infobox-header">Gene..." |
No edit summary |
||
| (6 intermediate revisions 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"> | ||
{{#if: {{{ | <tr><th colspan="2" class="infobox-title">{{{name|Faction}}}</th></tr> | ||
{{#if:{{{image|}}}{{{caption|}}} | |||
| | |||
{{#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:{{{aka|}}} | |||
| | | | ||
<tr><th colspan="2" class="infobox-header">General</th></tr> | <tr><th colspan="2" class="infobox-header">General</th></tr> | ||
{{#if:{{{type|}}}|<tr> | {{#if:{{{aka|}}}|<tr><th class="infobox-label">Also known as</td><td>{{{aka}}}</td></tr>}} | ||
}} | |||
{{#if:{{{type|}}}{{{capital|}}}{{{leader|}}} | |||
</tr>}} | | | ||
{{#if:{{{capital|}}}|<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>}} | |||
</tr>}} | {{#if:{{{leader|}}}|<tr><th class="infobox-label">Leader</th><td>{{{leader}}}</td></tr>}} | ||
{{#if:{{{leader|}}}|<tr> | |||
</tr>}} | |||
}} | }} | ||
</table> | </table> | ||
</includeonly><noinclude>{{InfoboxFaction | </includeonly><noinclude>{{InfoboxFaction | ||
| name = Faction Name | | name = Faction Name | ||
| image = | | image = | ||
| caption = | | caption = | ||
| aka = Aliases | |||
| type = Kingdom/Empire/etc | | type = Kingdom/Empire/etc | ||
| capital = Name of City | | capital = Name of City | ||
| Line 35: | Line 31: | ||
}} | }} | ||
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 == | ||
| Line 41: | Line 39: | ||
| image = Emblem.png | | image = Emblem.png | ||
| caption = Image caption | | caption = Image caption | ||
| aka = | |||
| type = | | type = | ||
| capital = | | capital = | ||
| leader = | | leader = | ||
}}</pre></noinclude> | }}</pre></noinclude> | ||