Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Template:Faction"

From TWC Wiki
Jump to navigationJump to search
(have taken out the symbol section the 'if image' section does same thing - full width box for image)
(standardising)
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="infobox bordered vevent" style="float: {{{align|right}}}; width: {{#if:{{{width|}}}|{{{width|}}}|23em}}; font-size: 90%; text-align: left;" cellpadding="3"  
+
{| class="infobox bordered info-right"
! colspan="2" style="font-size:110%; text-align: center; background-color: #F4E9DF;" class="summary" | ''{{{title|{{PAGENAME}}}}}''<!--
+
! colspan="2" style="font-size:110%; text-align:center;"| ''{{{title|{{PAGENAME}}}}}''<!--
-->{{#if:{{{image|}}}|<tr><td colspan="2" style="background-color: #F4E9DF; font-size: 100%; text-align: center;"> {{{image|}}}{{#if:{{{caption|}}}|<br/><cite>{{{caption|}}}</cite>|}}}}</td></tr>
+
-->{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center;"> {{{image|}}}{{#if:{{{caption|}}}|<br/><cite>{{{caption|}}}</cite>|}}}}</td></tr>
|-
 
 
|-
 
|-
! style="background-color: #F4E9DF;" | Name:
+
! Name:
 
| {{{Name|<noinclude>eg England</noinclude>}}}
 
| {{{Name|<noinclude>eg England</noinclude>}}}
 
|-  
 
|-  
! style="background-color: #F4E9DF;" | From Game:
+
! From Game:
| {{{Game|<noinclude>ie Rome, Medieval 2 etc</noinclude>}}}
+
| {{{Game|<noinclude>ie Rome, Medieval 2 etc</noinclude>}}}<!--
 +
-->{{#if:{{{Religion|}}}|<tr><th>Religion:</th><td>{{{Religion}}}</td></tr>}}
 +
|-
 +
! Culture:
 +
| {{{Culture|<noinclude>eg Roman, barbarian - Western Europeon, Aztec etc</noinclude>}}}
 
|-  
 
|-  
! style="background-color: #F4E9DF;" | Religion/Culture:
+
! Playable:
| {{{Religion / Culture|<noinclude>ie Catholic, Muslim etc</noinclude>}}}
+
| {{{Playable|<noinclude>Yes or No</noinclude>}}}
 
|-
 
|-
 
|}
 
|}
 
<noinclude>
 
<noinclude>
 
----
 
----
Yeah i stole this code from the current mod3 template..
+
Format is similar to mod3 template, to use include
 +
'''<nowiki>{{Faction|image=[[Image:blah.png|blah]]|Name='''blah'''|Game=[[blah]]|Religion=[[blah]]|Culture=[[blah]]}}</nowiki>'''
 +
 
 +
image and religion sections are optional so if you don't have image and religion is not relevant eg for RTW, use:
 +
 
 +
'''<nowiki>{{Faction|Name='''blah'''|Game=[[blah]]|Culture=[[blah]]}}</nowiki>'''
  
[[Category:Template]]</noinclude>
+
[[Category:Infobox Template]]
 +
</noinclude>

Latest revision as of 08:45, 19 April 2020

Faction
Name: eg England
From Game: ie Rome, Medieval 2 etc
Culture: eg Roman, barbarian - Western Europeon, Aztec etc
Playable: Yes or No

Format is similar to mod3 template, to use include {{Faction|image=[[Image:blah.png|blah]]|Name='''blah'''|Game=[[blah]]|Religion=[[blah]]|Culture=[[blah]]}}

image and religion sections are optional so if you don't have image and religion is not relevant eg for RTW, use:

{{Faction|Name='''blah'''|Game=[[blah]]|Culture=[[blah]]}}