Welcome to Wars Wiki!
Welcome to Wars Wiki. Please log in or create an account to make changes.

Template:Faction Infobox: Difference between revisions

From Wars Wiki
Jump to navigationJump to search
(Updated infobox styling to use Infobox style template)
(Revamping template, will update all factions after)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Infobox style/styles.css"/>
<includeonly><templatestyles src="Template:Infobox style/styles.css"/>
{| {{Infobox style|infobox|theme={{{country|allies}}}|}}
{| {{Infobox style|infobox|theme={{{theme|allies}}}|}}
|-
|-
! {{Infobox style|infobox_title|theme={{{country|allies}}}|}} | {{#if:{{{country|}}}|{{{country|}}}|{{PAGENAME}}}}
! {{Infobox style|infobox_title|theme={{{theme|allies}}}|}} | {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}{{#if:{{{JPchar|}}}|<br />'''{{{JPchar|}}}''' {{#if:{{{JPname|}}}|''{{{JPname|}}}''|}}|}}
|-
|-
<!-- Keeping this here so that infobox using the older parameters still work -->
{{#if:{{{logo|}}}{{{image|}}}|
{{#if:{{{imagename|}}}|
{{!}} {{Infobox style|infobox_image|theme={{{theme|allies}}}|}} {{!}} <!--
{{!}} {{Infobox style|infobox_image|theme={{{country|allies}}}|}} {{!}} [[File:{{{imagename}}}|{{{imagesize|120px}}}]]<br><small>{{{caption}}}</small>}}
-->{{#if:{{{logo|}}}|<div style="padding: 6px; width: auto;">[[File:{{{logo|}}}|{{{logosize|80px}}}|center|Logo]]</div>|}}<!--
-->{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imgsize|300px}}}]]{{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''</small>}}|}}<!--
-->}}
|-
|-
{{#if:{{{logo|}}}|
{{#if:{{{color|}}}|
{{!}} {{Infobox style|infobox_image|theme={{{country|allies}}}|}} {{!}} <!--
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} Color
  -->{{#if:{{{logo|}}}|<div style="padding: 6px; width: auto;">[[File:{{{logo|}}}|{{{logosize|80px}}}|center|Logo]]</div>|}}<!--
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{{color|}}}
  -->{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imagesize|300px}}}]]{{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''</small>}}|}}<!--
|-
-->}}
{{#if:{{{COs|}}}|
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} [[Commanding Officer|COs]]
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{Plainlist|{{{COs|}}}|}}
|-
|-
! {{Infobox style|infobox_data_label|theme={{{country|allies}}}|}} | Commanding Officers
{{#if:{{{military|}}}|
| {{Infobox style|infobox_data_value|theme={{{country|allies}}}|}} | [[{{{CO1}}}]]<!--
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} Military
-->{{#if:{{{CO2|}}}|, [[{{{CO2}}}]]}}<!--
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{{military|}}}
-->{{#if:{{{CO3|}}}|, [[{{{CO3}}}]]}}<!--
-->{{#if:{{{CO4|}}}|, [[{{{CO4}}}]]}}<!--
-->{{#if:{{{CO5|}}}|, [[{{{CO5}}}]]}}<!--
-->{{#if:{{{CO6|}}}|, [[{{{CO6}}}]]}}<!--
-->{{#if:{{{CO7|}}}|, [[{{{CO7}}}]]}}<!--
-->{{#if:{{{CO8|}}}|, [[{{{CO8}}}]]}}<!--
-->{{#if:{{{CO9|}}}|, [[{{{CO9}}}]]}}<!--
-->{{#if:{{{CO10|}}}|, [[{{{CO10}}}]]}}
|-
|-
! {{Infobox style|infobox_data_label|theme={{{country|allies}}}|}} | Games
{{#if:{{{games|}}}|
| {{Infobox style|infobox_data_value|theme={{{country|allies}}}|}} | {{#if:{{{games|}}}|{{{games|}}}|}}{{#if:{{{game1|}}}|{{{game1}}}|}}<!--
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} Games
-->{{#if:{{{game2|}}}|<br>{{{game2}}}}}<!--
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{Plainlist|{{{games|}}}|}}
-->{{#if:{{{game3|}}}|<br>{{{game3}}}}}<!--
-->{{#if:{{{game4|}}}|<br>{{{game4}}}}}
|}</includeonly><noinclude>{{Doc}}</noinclude>
|}</includeonly><noinclude>{{Doc}}</noinclude>

Revision as of 01:23, 5 July 2023

This page has been transcluded from Template:Faction Infobox/doc.


This template uses TemplateStyles:

This infobox template provides basic information on a faction or country.

Usage

{{#if:| {{#if:* General Herman {{#if:| {{#if:* Battalion Wars
Western Frontier

The COs of the Western Frontier
Color
COs
Military
Games

Code

{{Faction Infobox
|theme=
|name=
|logo=
|image=
|caption=
|color=
|COs=
|military=
|games=
}}

Parameters

  • name - name of the faction
  • image - name of the relevant image (include file extension (.png, .jpg, ...))
  • caption - enter a caption for the country image
  • COs - the names of the Commanding Officers associated with that faction
  • games - the names of each game that this faction has appeared in