Difference between revisions of "Template:Skill/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Added examples of other skills with different params)
m
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Doc/start}}
{{Doc/start}}
This is skill template created for use as an infobox on a specific skill's tooltip page.
This is skill template used to create an infobox on a specific skill's Tooltip page. It loads the skill data from the respective [[Skill data]] page.


Usage: Copy this code to any <skillname>/Tooltip page and replace/fill in the values. If a skill doesn't have a certain value (like Sorceries don't have any Requirements), then leave it empty or delete it.
Usage: Copy this code to any page. The name of the page will be used as the skill name parameter.


  <nowiki>
  <nowiki>
{{ {{{1|Tooltip hover box}}}|title={{Skill}}}}</nowiki>
You can specify a different skill name to be used instead of the page name. For example:
<nowiki>
{{ {{{1|Tooltip hover box}}}|title={{Skill|My skill name}}}}</nowiki>
Skill pages also display icons and skill formulae for skills that have them, but this doesn't work for tooltips.<br>
For this case, you can define a tooltip=1 parameter to not show the skill image.
<nowiki>
{{ {{{1|Tooltip hover box}}}|title={{Skill|My skill name|tooltip=1}}}}</nowiki>
If you don't want a skill to display skill formulae (and hide the button), remove the
<nowiki>|Formuladesc = ...</nowiki>
parameter from the skill's data.
{{Tooltip rule}}
This template is also used by:
* {{tl|TooltipImage}} to generate toolipts on hover
* {{tl|SkillTable/row}} to populate skill tables on skilltree landing pages
See [[Swords_(skill_tree)]] for examples.
{{Tooltip rule}}
Examples without icons below:
{{ {{{1|Tooltip hover box}}}
|title={{Skill|Stone Armor}}}}
{{ {{{1|Tooltip hover box}}}
|title={{Skill|Cleaving Strike}}}}
{{ {{{1|Tooltip hover box}}}
|title={{Skill|Offensive Tactic}}}}
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title= {{Skill
|title={{Skill|Hammer and Anvil}}}}
|Active=active
|Type=Target Area
|Range=1
|Energy=15
|Cooldown=10
|Modifiers=Strength, Agility
|Requirements=- Requires one-handed sword
|Description=Performs an attack which hits three adjacent tiles. It deals {{Positive|+(STR/2 + AGI/2)%}} Damage with {{Positive|+(15 + AGI)%}} Bleed Chance.<br><br>Provides {{Positive|+10%}} Counter Chance for <span style="color:white;">4</span> turns for each enemy hit.
|Passivebonus={{Positive|-5%}} Cooldowns Duration for this skill tree
}}}}</nowiki>
It will produce this result:


{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title= {{Skill
|title={{Skill|Campfire}}}}
|Active=active
|Type=Target Area
|Range=1
|Energy=15
|Cooldown=10
|Modifiers=Strength, Agility
|Requirements=- Requires one-handed sword
|Description=Performs an attack which hits three adjacent tiles. It deals {{Positive|+(STR/2 + AGI/2)%}} Damage with {{Positive|+(15 + AGI)%}} Bleed Chance.<br><br>Provides {{Positive|+10%}} Counter Chance for <span style="color:white;">4</span> turns for each enemy hit.
|Passivebonus={{Positive|-5%}} Cooldowns Duration for this skill tree
}}}}


Other examples of skills:
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title=Active Skill w/ no Modifiers and Range
|title={{Skill|Honed Edge}}}}
|body={{Skill
|Active=active
|Type=No Target
|Range=
|Energy=25
|Cooldown=20
|Modifiers=
|Requirements=- Requires a mace
|Description=Activates the following effect for {{W|6}} turns:<br><br>{{Pos|-4%}} Fumble Chance<br>{{Pos|+30%}} Armor Damage<br>{{Pos|+7.5%}} Daze Chance<br>{{Pos|+5%}} Accuracy<br><br>Each successful attack prolongs the duration of this effect by {{Pos|1}} turn (up to {{W|15}} turns) and grants {{Neg|1}} stack of it (up to {{W|6}} stacks).<br><br>Each successful {{W|Daze}} prolongs the duration of the effect by {{Pos|1}} turn, but decreases its number of stacks by {{Neg|2}}.


|Passivebonus={{Pos|-5%}} Cooldowns Duration for this skill tree
}}}}
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title=Active Skill w/ no Range, Modifiers and Requirements
|title={{Skill|Skinning}}}}
|body={{Skill
|Active=active
|Type=Target Area 21x21
|Range=
|Energy=20
|Cooldown=20
|Modifiers=
|Requirements=
|Description=Unleashes a war cry, dealing {{Psionic|[ 2 * MP ] Psionic Damage}} to all surrounding enemies within the area of effect.<br><br>Applies {{Neg|"Weakness"}} to each affected enemy for {{W|10}} turns:<br><br>{{Neg|-15%}} Weapon Damage<br>{{Neg|-15%}} Crit Chance<br>{{Neg|-15%}} Crit Efficiency<br>{{Neg|-15%}} Block Chance<br>{{Neg|-25%}} Block Power<br><br>Receive {{Pos|"Battle Rage"}} for {{W|5}} turns plus one additional turn per affected enemy.


|Passivebonus={{Pos|-5%}} Cooldowns Duration for this skill tree
}}}}
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title=Passive Skill
|title={{Skill|Element of Surprise}}}}
|body={{Skill
|Active=passive
|Requirements=- Requires one-handed sword
|Description=Swords' durability deteriorates {{W|50%}} slower.<br>If the equipped sword's durability is {{W|75%}} or more, grants {{Pos|+10%}} Weapon Damage.


|Passivebonus={{Pos|-5%}} Cooldowns Duration for this skill tree<br>{{Pos|-3%}} Fumble Chance
Example of a tooltip version (doesn't show the skill image, helps with some plugin limitations):
}}}}
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title=Active Basic Skill
|title={{Skill|Campfire|tooltip=1}}}}
|body={{Skill
 
|Active=Active
Example of a non-existing skill:
|Type=No Target
|Description=Has a chance to reveal hidden traps within your Vision.
}}}}
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title=Passive Basic Skill
|title={{Skill|I don't exist}}}}
|body={{Skill
 
|Active=Passive
|Description= Successful attacks against unaware targets are always critical.
}}}}
{{Doc/end}}
{{Doc/end}}

Latest revision as of 11:36, 22 September 2023

Template-info.png Documentation

This is skill template used to create an infobox on a specific skill's Tooltip page. It loads the skill data from the respective Skill data page.

Usage: Copy this code to any page. The name of the page will be used as the skill name parameter.

{{ {{{1|Tooltip hover box}}}|title={{Skill}}}}


You can specify a different skill name to be used instead of the page name. For example:

{{ {{{1|Tooltip hover box}}}|title={{Skill|My skill name}}}}


Skill pages also display icons and skill formulae for skills that have them, but this doesn't work for tooltips.
For this case, you can define a tooltip=1 parameter to not show the skill image.

{{ {{{1|Tooltip hover box}}}|title={{Skill|My skill name|tooltip=1}}}}


If you don't want a skill to display skill formulae (and hide the button), remove the

|Formuladesc = ...

parameter from the skill's data.


This template is also used by:

See Swords_(skill_tree) for examples.


Examples without icons below:

Stone Armor
Stone Armor
Spell
Type
No Target
Energy
20
Cooldown
20
Backfire Chance
-10
Modified by: Magic Power,Geomantic Power
Skill

Passive bonus:
+2.5% Geomantic Power
-1% Power of other Magic Schools

Show formulasHide formulas
Cleaving Strike
Cleaving Strike
Attack
Type
Target Area, 3 Tiles
Range
1
Energy
16
Cooldown
8
Modified by: Strength,Agility

- Requires one-handed sword
Skill

Show formulasHide formulas
Offensive Tactic
Offensive Tactic
Maneuver
Type
No Target
Range
1
Energy
16
Cooldown
24

Skill

Show formulasHide formulas
Hammer and Anvil
Hammer and Anvil
Stance
Type
No Target
Energy
8
Cooldown
10

- Requires a one-handed mace
Skill

Show formulasHide formulas
Campfire
Campfire
Maneuver
Type
Target Tile
Range
1
Energy
1

- Requires specific materials
Skill

Required materials:
Stick [х4]

Show formulasHide formulas
Honed Edge
Honed Edge
Passive
- Requires one-handed sword
Skill

Show formulasHide formulas
Skinning
Skinning
Active
Type
Target Object
Range
1
Energy
5

- Requires a sword, an axe, a dagger, a two-handed sword, or a two-handed axe.
Skill

Show formulasHide formulas
Element of Surprise
Element of Surprise
Passive
Skill

Show formulasHide formulas

Example of a tooltip version (doesn't show the skill image, helps with some plugin limitations):

Campfire
Maneuver
Type
Target Tile
Range
1
Energy
1

- Requires specific materials
Skill

Required materials:
Stick [х4]

Show formulasHide formulas

Example of a non-existing skill:

Skill with name "I don't exist" does not exist.

Add it to Skill data or fix the Skill name.