Difference between revisions of "Template:Class"
m (Added padding to infobox) |
m |
||
(6 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 46: | Line 55: | ||
|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 | |equipment=Lantern,Spyglass | ||
|h=== }} | |h=== }} | ||
Line 62: | 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: | + | {| style="float:right;border:1px solid black;width:525px;margin-left:10px" |
|+ '''Class Stats''' | |+ '''Class Stats''' | ||
|- | |- | ||
| colspan="2" align=center| {{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassPortrait|%pattern%|{{{enum}}}}} }} | | 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: || {{StatBar|max=125|value={{{healthbase}}}|bonus={{{healthbonus}}}|width=200|sections=5}} '''{{{healthbase}}}''' (+{{{healthbonus}}}) | | style="text-align:right;font-weight:bold;" | Health: || {{StatBar|max=125|value={{{healthbase}}}|bonus={{{healthbonus}}}|width=200|sections=5}} '''{{{healthbase}}}''' (+{{{healthbonus}}}) | ||
Line 86: | Line 96: | ||
'''Abilities:'''{{#invoke: ApplyPattern | applyTemplate | {{{abilities}}} |TraitAbility|enum}} }} | '''Abilities:'''{{#invoke: ApplyPattern | applyTemplate | {{{abilities}}} |TraitAbility|enum}} }} | ||
{{{h|=}}}=[[Weapons|Weapons]]={{{h|=}}} | {{{h|=}}}=[[Weapons|Weapons]]={{{h|=}}} | ||
− | {|class=wikitable style="width: | + | {|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" |
{{#ifeq: {{{weapon_british|}}}||| | {{#ifeq: {{{weapon_british|}}}||| | ||
! '''British''' }} | ! '''British''' }} | ||
Line 93: | Line 103: | ||
{{#ifeq: {{{weapon_prussian|}}}||| | {{#ifeq: {{{weapon_prussian|}}}||| | ||
! '''Prussian''' }} | ! '''Prussian''' }} | ||
+ | {{#ifeq: {{{weapon_russian|}}}||| | ||
+ | ! '''Russian''' }} | ||
|- | |- | ||
{{#ifeq: {{{weapon_british|}}}||| | {{#ifeq: {{{weapon_british|}}}||| | ||
Line 100: | Line 112: | ||
{{#ifeq: {{{weapon_prussian|}}}||| | {{#ifeq: {{{weapon_prussian|}}}||| | ||
{{!}} style="vertical-align:top;horizontal-align:center" {{!}} {{#invoke: ApplyPattern | applyTemplate | {{{weapon_prussian}}} |WeaponDisplay|enum}} }} | {{!}} 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? --> | ||
Line 105: | Line 119: | ||
{{{h|=}}}=[[Equipment|Other Equipment]]={{{h|=}}} | {{{h|=}}}=[[Equipment|Other Equipment]]={{{h|=}}} | ||
{{#ifeq: {{{equipment|}}}||No added equipment| | {{#ifeq: {{{equipment|}}}||No added equipment| | ||
− | {{#invoke: ApplyPattern | | + | {{#invoke: ApplyPattern | applyTemplate |{{{equipment|}}}| Equipment | enum |
}} }} | }} }} | ||
<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
Factions: | British Empire, French Empire, Kingdom Of Prussia, |
Health: |
100 (+0) |
Agility: |
65 (+0) |
Swimming: |
35 (+0) |
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:
Light Footed | Fast and nimble. Your running speed is increased by 7% but you deal less damage with melee weapons. |
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
Other Equipment
Light your way through the dark or make known your position. Press 'H' to equip the lantern. |
Spot the enemy at a distance. Press 'G' to equip the spyglass. |