Difference between revisions of "Template:Class"
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 | | + | {{#invoke: ApplyPattern | applyTemplate | {{{traits}}} |TraitAbilityDisplay|enum}} }} |
− | }} | ||
{{#ifeq: {{{abilities|}}}||| | {{#ifeq: {{{abilities|}}}||| | ||
− | Abilities: | + | '''Abilities:''' |
− | {{#invoke: ApplyPattern | | + | {{#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. --> | ||
− | {| | + | {{#ifeq: {{{weapon_british|}}}||| |
− | + | '''British:''' | |
− | + | {{#invoke: ApplyPattern | apply | {{{weapon_british}}} |* %pattern% | |
− | | | + | }} }} |
− | + | {{#ifeq: {{{weapon_french|}}}||| | |
− | | | + | |
− | + | '''French:''' | |
− | + | {{#invoke: ApplyPattern | apply | {{{weapon_french}}} |* %pattern% | |
− | + | }} }} | |
− | + | {{#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
Factions: | British,French,Prussian |
Health: | 100 (+0) |
Agility: | 65 (+0) |
Swimming: | 35 (+0) |
Quick footed skirmisher. Moves about at a greater pace.
Traits and Abilities
Traits:
Light Footed | Fast and nimble. Your running speed is increased by 5% 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 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