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={{{ | {| {{Infobox style|infobox|theme={{{theme|allies}}}|}} | ||
|- | |- | ||
! {{Infobox style|infobox_title|theme={{{ | ! {{Infobox style|infobox_title|theme={{{theme|allies}}}|}} | {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}{{#if:{{{JPchar|}}}|<br />'''{{{JPchar|}}}''' {{#if:{{{JPname|}}}|''{{{JPname|}}}''|}}|}} | ||
|- | |- | ||
{{#if:{{{logo|}}}{{{image|}}}| | |||
{{#if:{{{ | {{!}} {{Infobox style|infobox_image|theme={{{theme|allies}}}|}} {{!}} <!-- | ||
{{!}} {{Infobox style|infobox_image|theme={{{ | -->{{#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:{{{ | {{#if:{{{color|}}}| | ||
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} Color | |||
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{{color|}}} | |||
|- | |||
{{#if:{{{COs|}}}| | |||
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} [[Commanding Officer|COs]] | |||
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{Plainlist|{{{COs|}}}|}} | |||
|- | |- | ||
{{#if:{{{military|}}}| | |||
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} Military | |||
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{{military|}}} | |||
|- | |- | ||
{{#if:{{{games|}}}| | |||
! {{Infobox style|infobox_data_label|theme={{{theme|allies}}}|}} {{!}} Games | |||
{{!}} {{Infobox style|infobox_data_value|theme={{{theme|allies}}}|}} {{!}} {{Plainlist|{{{games|}}}|}} | |||
|}</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 WarsWestern 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