Difference between revisions of "Template:Class"

From Holdfast: Nations At War
Jump to navigation Jump to search
m (Profile pictures now driven by faction list)
Line 62: Line 62:
 
{{{h|=}}}{{{name}}}{{{h|=}}}
 
{{{h|=}}}{{{name}}}{{{h|=}}}
 
<!-- This infobox should be recreated as a template -->
 
<!-- This infobox should be recreated as a template -->
{| style="float:right;border:1px solid black;width:600px"
+
{| style="float:right;border:1px solid black;width:650px"
 
|+ '''Class Stats'''
 
|+ '''Class Stats'''
 
|-  
 
|-  
Line 75: Line 75:
 
| style="text-align:right;font-weight:bold;" | Swimming: || {{{swimmingbase}}} (+{{{swimmingbonus}}})
 
| style="text-align:right;font-weight:bold;" | Swimming: || {{{swimmingbase}}} (+{{{swimmingbonus}}})
 
|-
 
|-
| colspan="2" align=center|[[File:Class_Header_{{{enum}}}.png|550px]]
+
| colspan="2" align=center| {{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassFull|%pattern%|{{{enum}}}}} }}
 
|}
 
|}
  
Line 82: Line 82:
  
  
{{{h|=}}}=Traits & Abilities={{{h|=}}}
+
{{{h|=}}}=[[Traits and Abilities]]={{{h|=}}}
<!-- Introduce a for-each here, or a Cargo query? -->
+
{{#ifeq: {{{traits|}}}|||
Traits: {{{traits}}}
+
Traits:
 +
{{#invoke: ApplyPattern | apply | {{{traits|}}} |{{TraitAbilityDisplay|enum=%pattern%}}}}
 +
}}
 +
{{#ifeq: {{{abilities|}}}|||
 +
Abilities:
 +
{{#invoke: ApplyPattern | apply |{{{abilities|}}}|* %pattern%
 +
}} }}
  
Abilities: {{{abilities}}}
+
{{{h|=}}}=[[Weapons|Weapons]]={{{h|=}}}
{{{h|=}}}=Weapons={{{h|=}}}
 
 
<!-- Introduce a for-each here, or a Cargo query? -->
 
<!-- Introduce a for-each here, or a Cargo query? -->
 
<!-- Weapon statistics, model, reach, etc. -->
 
<!-- Weapon statistics, model, reach, etc. -->
Line 100: Line 105:
 
|'''Prussian: ''' ||  {{{weapon_french}}}
 
|'''Prussian: ''' ||  {{{weapon_french}}}
 
|}
 
|}
{{{h|=}}}=Other Equipment={{{h|=}}}
+
{{{h|=}}}=[[Equipment|Other Equipment]]={{{h|=}}}
 
{{#ifeq: {{{equipment|}}}||No added equipment|
 
{{#ifeq: {{{equipment|}}}||No added equipment|
 
{{#invoke: ApplyPattern | apply |{{{equipment|}}}|* %pattern%
 
{{#invoke: ApplyPattern | apply |{{{equipment|}}}|* %pattern%

Revision as of 16:21, 17 August 2019

Usage:

{{Class
|enum=LightInfantry
|name=Light Infantry
|description=Quick footed skirmisher.  Moves about at a greater pace.
|traits=LightFooted,Skirmisher
|abilities=
|factions=British,French,Prussian
|healthbase=100
|agilitybase=65
|swimmingbase=35
|healthbonus=0
|agilitybonus=0
|swimmingbonus=0
|equipment=Lantern,Spyglass
|weapon_british=Musket_NewLandPatternBrownBess
|weapon_prussian=Musket_CharlevilleIXXII
|weapon_french=Musket_CharlevilleDragoonPattern,Sabre_Briquet
|h== }} <!-- Used for heading indentation -->
{Class
|enum=LightInfantry
|name=Light Infantry
|description=Quick footed skirmisher.  Moves about at a greater pace.
|traits=LightFooted,Skirmisher
|abilities=
|factions=British,French,Prussian
|healthbase=100
|agilitybase=65
|swimmingbase=35
|healthbonus=0
|agilitybonus=0
|swimmingbonus=0
|equipment=Lantern,Spyglass
|weapon_british=Musket_NewLandPatternBrownBess
|weapon_prussian=Musket_CharlevilleIXXII
|weapon_french=Musket_CharlevilleDragoonPattern,Sabre_Briquet
|h=== }}

Example

Light Infantry

Class Stats

Class Portrait British LightInfantry.png Class Portrait French LightInfantry.png Class Portrait Prussian LightInfantry.png

Factions: British,French,Prussian
Health: 100 (+0)
Agility: 65 (+0)
Swimming: 35 (+0)

Class Full British LightInfantry.png Class Full French LightInfantry.png Class Full Prussian LightInfantry.png

Quick footed skirmisher. Moves about at a greater pace.


Traits and Abilities

Traits:

File:LightFooted.png test
File:Skirmisher.png test


Weapons

Faction Weapons
French: Musket_NewLandPatternBrownBess
British: Musket_CharlevilleIXXII
Prussian: Musket_CharlevilleDragoonPattern,Sabre_Briquet

Other Equipment

  • Lantern
  • Spyglass