Difference between revisions of "Template:Class"
m (Profile pictures now driven by faction list) |
m |
||
(14 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= | + | |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 | |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: || {{{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| | + | | colspan="2" align=center| {{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassFull|%pattern%|{{{enum}}}}} }} |
|} | |} | ||
{{{description}}} | {{{description}}} | ||
− | + | {{{h|=}}}=[[Traits and Abilities]]={{{h|=}}} | |
− | + | {{#ifeq: {{{traits|}}}||| | |
− | {{{h|=}}}=Traits | + | '''Traits:'''{{#invoke: ApplyPattern | applyTemplate | {{{traits}}} |TraitAbility|enum}} }} |
− | + | {{#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. --> | ||
− | + | {{{h|=}}}=[[Equipment|Other Equipment]]={{{h|=}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{{h|=}}}=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. |