Difference between revisions of "Template:Class"

From Holdfast: Nations At War
Jump to navigation Jump to search
m (Outputs trait templates)
Line 79: Line 79:
  
 
{{{description}}}
 
{{{description}}}
 
 
  
 
{{{h|=}}}=[[Traits and Abilities]]={{{h|=}}}
 
{{{h|=}}}=[[Traits and Abilities]]={{{h|=}}}
 
{{#ifeq: {{{traits|}}}|||
 
{{#ifeq: {{{traits|}}}|||
Traits:
+
'''Traits:'''
{{#invoke: ApplyPattern | apply | {{{traits|}}} |{{TraitAbilityDisplay|enum=%pattern%}}}}
+
{{#invoke: ApplyPattern | applyTemplate | {{{traits}}} |TraitAbilityDisplay|enum}} }}
}}
 
 
{{#ifeq: {{{abilities|}}}|||
 
{{#ifeq: {{{abilities|}}}|||
Abilities:
+
'''Abilities:'''
{{#invoke: ApplyPattern | apply |{{{abilities|}}}|* %pattern%
+
{{#invoke: ApplyPattern | applyTemplate | {{{abilities}}} |TraitAbilityDisplay|enum}} }}
}} }}
 
 
 
 
{{{h|=}}}=[[Weapons|Weapons]]={{{h|=}}}
 
{{{h|=}}}=[[Weapons|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. -->
{| class=wikitable
+
{{#ifeq: {{{weapon_british|}}}|||
! width=10px | Faction
+
'''British:'''
! width=800px | Weapons
+
{{#invoke: ApplyPattern | apply | {{{weapon_british}}} |* %pattern%
|-
+
}} }}
|'''French: ''' || {{{weapon_british}}}
+
{{#ifeq: {{{weapon_french|}}}|||
|-
+
 
|'''British: ''' || {{{weapon_prussian}}}
+
'''French:'''
|-
+
{{#invoke: ApplyPattern | apply | {{{weapon_french}}} |* %pattern%
|'''Prussian: ''' || {{{weapon_french}}}
+
}} }}
|}
+
{{#ifeq: {{{weapon_prussian|}}}|||
 +
 
 +
'''Prussian:'''
 +
{{#invoke: ApplyPattern | apply | {{{weapon_prussian}}} |* %pattern%
 +
}} }}
 
{{{h|=}}}=[[Equipment|Other Equipment]]={{{h|=}}}
 
{{{h|=}}}=[[Equipment|Other Equipment]]={{{h|=}}}
 
{{#ifeq: {{{equipment|}}}||No added equipment|
 
{{#ifeq: {{{equipment|}}}||No added equipment|

Revision as of 17:12, 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:

Trait LightFooted.png Light Footed Fast and nimble. Your running speed is increased by 5% but you deal less damage with melee weapons.
Trait Skirmisher.png Skirmisher Drilled with knowledge on skirmishing tactics. Your accuracy when using firearms while crouching is increased by 10% but you receive more damage when stricken by melee weapons.

Weapons

British:

  • Musket_NewLandPatternBrownBess

French:

  • Musket_CharlevilleDragoonPattern
  • Sabre_Briquet

Prussian:

  • Musket_CharlevilleIXXII

Other Equipment

  • Lantern
  • Spyglass