Difference between revisions of "Template:Class"

From Holdfast: Nations At War
Jump to navigation Jump to search
m (Added space for other equipment. Page to be refactored with plugins.)
m
 
(15 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Usage:
 
Usage:
 
<pre>
 
<pre>
 +
This assumes the following naming convention for images:
 +
Portrait (will be resized to 120x117): Class_Portrait_[Faction]_[Class].png  e.g. Class_Portrait_British_LightInfantry.png
 +
Full Image (will be resized to 150x300): Class_Full_[Faction]_[Class].png  e.g. Class_Full_British_LightInfantry.png
 +
Weapons: Weapon_[WeaponEnum].png
 +
Equipment: Equipment_[WeaponEnum].png
 +
 +
Weapon data is managed in templates
 +
 
{{Class
 
{{Class
 
|enum=LightInfantry
 
|enum=LightInfantry
Line 8: Line 16:
 
|traits=LightFooted,Skirmisher
 
|traits=LightFooted,Skirmisher
 
|abilities=
 
|abilities=
|factions=British,French,Prussian
+
|factions=British,French,Prussian,Russian
 
|healthbase=100
 
|healthbase=100
 
|agilitybase=65
 
|agilitybase=65
Line 37: Line 45:
 
|weapon_prussian=Musket_CharlevilleIXXII
 
|weapon_prussian=Musket_CharlevilleIXXII
 
|weapon_french=Musket_CharlevilleDragoonPattern,Sabre_Briquet
 
|weapon_french=Musket_CharlevilleDragoonPattern,Sabre_Briquet
 +
|weapon_russian=Musket_CharlevilleDragoonPattern,Sabre_Briquet
 
|h=== }}
 
|h=== }}
 
</pre>
 
</pre>
Line 43: Line 52:
 
|enum=LightInfantry
 
|enum=LightInfantry
 
|name=Light Infantry
 
|name=Light Infantry
|description=Quick footed skirmisher. Moves about at a greater pace.
+
|description=The infantry officers govern the course of battles on land. They are able to issue Orders to gather their troops into firing lines, and provide bonuses to men who follow them. They are by no means slouches in combat, armed with a punchy pistol and sabre combination to fight with their line in a charge. They can be distinguished from other soldiers due to the cross icon on the mini-map.
 
|traits=LightFooted,Skirmisher
 
|traits=LightFooted,Skirmisher
 
|abilities=
 
|abilities=
|factions=British,French,Prussian
+
|factions=British,French,Prussian,Russian
 
|healthbase=100
 
|healthbase=100
 
|agilitybase=65
 
|agilitybase=65
Line 56: Line 65:
 
|weapon_prussian=Musket_CharlevilleIXXII
 
|weapon_prussian=Musket_CharlevilleIXXII
 
|weapon_french=Musket_CharlevilleDragoonPattern,Sabre_Briquet
 
|weapon_french=Musket_CharlevilleDragoonPattern,Sabre_Briquet
 +
|weapon_russian=Musket_CharlevilleDragoonPattern,Sabre_Briquet
 +
|equipment=Lantern,Spyglass
 
|h=== }}
 
|h=== }}
 
</noinclude>
 
</noinclude>
Line 61: Line 72:
 
{{{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:525px;margin-left:10px"
 
|+ '''Class Stats'''
 
|+ '''Class Stats'''
 
|-  
 
|-  
| colspan="2" align=center| [[File:Class_Portrait_French_{{{enum}}}.png|frameless|120px]][[File:Class_Portrait_British_{{{enum}}}.png|frameless|120px]][[File:Class_Portrait_Prussian_{{{enum}}}.png|frameless|120px]]
+
| colspan="2" align=center| {{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassPortrait|%pattern%|{{{enum}}}}} }}
 
|-  
 
|-  
| style="text-align:right;font-weight:bold;width:100px" | Factions: || {{{factions}}}
+
| style="text-align:right;font-weight:bold;width:100px" | Factions: || {{#invoke: ApplyPattern | applyTemplate | {{{factions}}} | Faction/FactionName | 1 |, | test}}
 
|-  
 
|-  
| style="text-align:right;font-weight:bold;" | Health: || {{{healthbase}}} + {{{healthbonus}}}
+
| style="text-align:right;font-weight:bold;" | Health: || {{StatBar|max=125|value={{{healthbase}}}|bonus={{{healthbonus}}}|width=200|sections=5}} '''{{{healthbase}}}''' (+{{{healthbonus}}})
 
|-  
 
|-  
| style="text-align:right;font-weight:bold;" | Agility: || {{{agilitybase}}} + {{{agilitybonus}}}
+
| style="text-align:right;font-weight:bold;" | Agility: || {{StatBar|max=100|value={{{agilitybase}}}|bonus={{{agilitybonus}}}|width=200|sections=4}} '''{{{agilitybase}}}''' (+{{{agilitybonus}}})
 
|-  
 
|-  
| style="text-align:right;font-weight:bold;" | Swimming: || {{{swimmingbase}}} + {{{swimmingbonus}}}
+
| style="text-align:right;font-weight:bold;" | Swimming: || {{StatBar|max=100|value={{{swimmingbase}}}|bonus={{{swimmingbonus}}}|width=200|sections=4}} '''{{{swimmingbase}}}''' (+{{{swimmingbonus}}})
 
|-
 
|-
| colspan="2" align=center|[[File:Class_Header_{{{enum}}}.png|550px]]
+
| colspan="2" align=center| {{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassFull|%pattern%|{{{enum}}}}} }}
 
|}
 
|}
  
 
{{{description}}}
 
{{{description}}}
  
 
+
{{{h|=}}}=[[Traits and Abilities]]={{{h|=}}}
 
+
{{#ifeq: {{{traits|}}}|||
{{{h|=}}}=Traits & Abilities={{{h|=}}}
+
'''Traits:'''{{#invoke: ApplyPattern | applyTemplate | {{{traits}}} |TraitAbility|enum}} }}
<!-- Introduce a for-each here, or a Cargo query? -->
+
{{#ifeq: {{{abilities|}}}|||
Traits: {{{traits}}}
+
'''Abilities:'''{{#invoke: ApplyPattern | applyTemplate | {{{abilities}}} |TraitAbility|enum}} }}
 
+
{{{h|=}}}=[[Weapons|Weapons]]={{{h|=}}}
Abilities: {{{abilities}}}
+
{|class=wikitable style="width:{{#expr: 150 * ({{#ifeq: {{{weapon_british|}}}||0|1}} + {{#ifeq: {{{weapon_french|}}}||0|1}} + {{#ifeq: {{{weapon_prussian|}}}||0|1}} + {{#ifeq: {{{weapon_russian|}}}||0|1}} )}}px;vertical-align:top"
{{{h|=}}}=Weapons={{{h|=}}}
+
{{#ifeq: {{{weapon_british|}}}|||
 +
! '''British''' }}
 +
{{#ifeq: {{{weapon_french|}}}|||
 +
! '''French''' }}
 +
{{#ifeq: {{{weapon_prussian|}}}|||
 +
! '''Prussian''' }}
 +
{{#ifeq: {{{weapon_russian|}}}|||
 +
! '''Russian''' }}
 +
|-
 +
{{#ifeq: {{{weapon_british|}}}|||
 +
{{!}} style="vertical-align:top;horizontal-align:center" {{!}}  {{#invoke: ApplyPattern | applyTemplate | {{{weapon_british}}} |WeaponDisplay|enum}} }}
 +
{{#ifeq: {{{weapon_french|}}}|||
 +
{{!}} style="vertical-align:top;horizontal-align:center" {{!}} {{#invoke: ApplyPattern | applyTemplate | {{{weapon_french}}} |WeaponDisplay|enum}} }}
 +
{{#ifeq: {{{weapon_prussian|}}}|||
 +
{{!}} style="vertical-align:top;horizontal-align:center" {{!}} {{#invoke: ApplyPattern | applyTemplate | {{{weapon_prussian}}} |WeaponDisplay|enum}} }}
 +
{{#ifeq: {{{weapon_russian|}}}|||
 +
{{!}} style="vertical-align:top;horizontal-align:center" {{!}} {{#invoke: ApplyPattern | applyTemplate | {{{weapon_russian}}} |WeaponDisplay|enum}} }}
 +
|}
 
<!-- 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
+
{{{h|=}}}=[[Equipment|Other Equipment]]={{{h|=}}}
! width=10px | Faction
+
{{#ifeq: {{{equipment|}}}||No added equipment|
! width=800px | Weapons
+
{{#invoke: ApplyPattern | applyTemplate |{{{equipment|}}}| Equipment | enum
|-
+
}} }}
|'''French: ''' || {{{weapon_british}}}
 
|-
 
|'''British: ''' || {{{weapon_prussian}}}
 
|-
 
|'''Prussian: ''' |{{{weapon_french}}}
 
|}
 
{{{h|=}}}=Other Equipment={{{h|=}}}
 
{{{equipment|No added equipment}}}
 
 
<div style="clear:both;"></div>
 
<div style="clear:both;"></div>
 
</includeonly>
 
</includeonly>

Latest revision as of 21:46, 6 March 2020

Usage:

This assumes the following naming convention for images:
Portrait (will be resized to 120x117): Class_Portrait_[Faction]_[Class].png  e.g. Class_Portrait_British_LightInfantry.png
Full Image (will be resized to 150x300): Class_Full_[Faction]_[Class].png  e.g. Class_Full_British_LightInfantry.png
Weapons: Weapon_[WeaponEnum].png
Equipment: Equipment_[WeaponEnum].png

Weapon data is managed in templates

{{Class
|enum=LightInfantry
|name=Light Infantry
|description=Quick footed skirmisher.  Moves about at a greater pace.
|traits=LightFooted,Skirmisher
|abilities=
|factions=British,French,Prussian,Russian
|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
|weapon_russian=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 Class Portrait Russian LightInfantry.png

Factions: British Empire, French Empire, Kingdom Of Prussia,
Health:

100 (+0)

Agility:

65 (+0)

Swimming:

35 (+0)

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

The infantry officers govern the course of battles on land. They are able to issue Orders to gather their troops into firing lines, and provide bonuses to men who follow them. They are by no means slouches in combat, armed with a punchy pistol and sabre combination to fight with their line in a charge. They can be distinguished from other soldiers due to the cross icon on the mini-map.

Traits and Abilities

Traits:

Trait LightFooted.png Light Footed Fast and nimble. Your running speed is increased by 7% 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 15% but you receive more damage when stricken by melee weapons.

Weapons

British French Prussian Russian
New Land Pattern Brown Bess Musket
Weapon Musket NewLandPatternBrownBess.png
Muzzle loaded firearm equipped with a pointy end. Manufactured en masse, they're your best bet at making quick work of your enemy.
Base Weapon Stats
Damage:

100

Range:

70

Accuracy:

50

Bayonet
Damage:

80

Reach:

65

Speed:

50

Reload Speed: 12s
Starting Ammo: 25s
Charleville Musket Dragoon Pattern
Weapon Musket CharlevilleDragoonPattern.png
Muzzle loaded firearm equipped with a pointy end. Manufactured en masse, they're your best bet at making quick work of your enemy.
Base Weapon Stats
Damage:

100

Range:

70

Accuracy:

50

Bayonet
Damage:

60

Reach:

55

Speed:

50

Reload Speed: 12s
Starting Ammo: 25s
Sabre Briquet
Weapon Sabre Briquet.png
Short-bladed sword. Equip this when things get up close and personal.
Base Weapon Stats
Damage:

50

Reach:

40

Speed:

70

Charleville Musket IX/XII
Weapon Musket CharlevilleIXXII.png
Muzzle loaded firearm equipped with a pointy end. Manufactured en masse, they're your best bet at making quick work of your enemy.
Base Weapon Stats
Damage:

100

Range:

70

Accuracy:

50

Bayonet
Damage:

60

Reach:

55

Speed:

50

Reload Speed: 12s
Starting Ammo: 25s
Charleville Musket Dragoon Pattern
Weapon Musket CharlevilleDragoonPattern.png
Muzzle loaded firearm equipped with a pointy end. Manufactured en masse, they're your best bet at making quick work of your enemy.
Base Weapon Stats
Damage:

100

Range:

70

Accuracy:

50

Bayonet
Damage:

60

Reach:

55

Speed:

50

Reload Speed: 12s
Starting Ammo: 25s
Sabre Briquet
Weapon Sabre Briquet.png
Short-bladed sword. Equip this when things get up close and personal.
Base Weapon Stats
Damage:

50

Reach:

40

Speed:

70

Other Equipment

Lantern
Equipment Lantern.png
Light your way through the dark or make known your position. Press 'H' to equip the lantern.
Spyglass
Equipment Spyglass.png
Spot the enemy at a distance. Press 'G' to equip the spyglass.