Difference between revisions of "Template:Skill/doc"

From Stoneshard wiki
Jump to navigation Jump to search
m (11 revisions imported)
m
 
(9 intermediate revisions by the same user 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}}}
{{ {{{1|Tooltip hover box}}}
|title= {{Skill
|title={{Skill|Stone Armor}}}}
|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|Cleaving Strike}}}}
|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
|title={{Skill|Offensive Tactic}}}}
|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 Modifiers and Requirements
|title={{Skill|Hammer and Anvil}}}}
|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=Active Skill with Modifiers but no Requirements
|title={{Skill|Campfire}}}}
|body={{Skill
|Active=active
|Type=Target Area, 3 Tiles
|Range=1
|Energy=20
|Cooldown=16
|Modifiers=Strength, Agility
|Requirements=
|Description=Performs a strike against three adjacent enemies.<br><br>Deals {{W|[ 1 + 0.2*STR + 0.2*AGL ]}} Crushing Damage with a {{W|[ 68 + AGL ] %}} chance to {{W|Immobilize}} all affected targets for {{W|2}} turns and then retreats to a targeted tile.<br><br>{{Pos|+10%}} Accuracy


|Passivebonus=
}}}}
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title=Passive Skill w/ Requirements
|title={{Skill|Honed Edge}}}}
|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
}}}}
{{ {{{1|Tooltip hover box}}}
{{ {{{1|Tooltip hover box}}}
|title=Active Basic Skill
|title={{Skill|Skinning}}}}
|body={{Skill
 
|Active=Active
|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|Element of Surprise}}}}
|body={{Skill
 
|Active=Passive
Example of a tooltip version (doesn't show the skill image, helps with some plugin limitations):
|Description= Successful attacks against unaware targets are always critical.
{{ {{{1|Tooltip hover box}}}
}}}}
|title={{Skill|Campfire|tooltip=1}}}}
 
Example of a non-existing skill:
{{ {{{1|Tooltip hover box}}}
|title={{Skill|I don't exist}}}}
 
{{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
20 Icon skill energycost.png 20 Icon skill cooldown.png

Type
No Target
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
10 Icon skill energycost.png 8 Icon skill cooldown.png

Type
Target Area, 3 Tiles
Range
1

Modified by: Strength,Agility,Perception

- Requires a one-handed sword
Skill

Show formulasHide formulas
Offensive Tactic
Offensive Tactic
Maneuver
18 Icon skill energycost.png 24 Icon skill cooldown.png

Type
No Target
Range
1

Skill

Show formulasHide formulas
Hammer and Anvil
Hammer and Anvil
Stance
14 Icon skill energycost.png 12 Icon skill cooldown.png

Type
No Target

- Requires a one-handed mace
Skill

Show formulasHide formulas
Skill with name "Campfire" does not exist.

Add it to Skill data or fix the Skill name.
Honed Edge
Honed Edge
Passive
- Requires a one-handed sword
Skill

Show formulasHide formulas
Skill with name "Skinning" does not exist.

Add it to Skill data or fix the Skill name.
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):

Skill with name "Campfire" does not exist.

Add it to Skill data or fix the Skill name.

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.