Difference between revisions of "Template:Skill"

From Tree of Savior Wiki
Jump to: navigation, search
(Created page with "<noinclude> This template is used to uniformise skill display by showing them with their icons, circles and links to the TosBase database. ===Parameters=== *{{{Name}}} name...")
 
("default icon" for missing Icons added)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>[[Category:Templates]]
This template is used to uniformise skill display by showing them with their icons, circles and links to the TosBase database.
+
This template is used to display skill along with their icons, circles and links to the TosBase database.
 +
<br>Icon display is automated if the icon have the following naming pattern : <code>Icon_''Skill_Name''.jpg</code> with <code>''Skill_Name''</code> being the name of the skill with its spaces replaced by underscores.  
  
  
Line 36: Line 37:
 
<!--- Template--->
 
<!--- Template--->
  
</noinclude><includeonly>{{#if: {{{Horizontal|}}} |<!--- horizontal display --->[[File:{{#if: {{{Icon|}}} |{{{Icon}}}|Icon_{{{Name}}}.jpg}}|20px{{#if: {{{Id|}}} |{{!}}link=http://www.tosbase.com/database/skills/{{{Id}}}/}}]] '''{{#if: {{{Id|}}} | <span class="plainlinks">[http://www.tosbase.com/database/skills/{{{Id}}}/ {{{Name}}}]</span> | {{{Name}}} }}'''|<!--- vertical display---><center>[[File:{{#if: {{{Icon|}}} |{{{Icon}}}|Icon_{{{Name}}}.jpg}}|78px|{{#if: {{{Id|}}} |link=http://www.tosbase.com/database/skills/{{{Id}}}/}}]]<br>[[File:Circle{{{Circle|1}}}.png|78px{{#if: {{{Id|}}} |{{!}}link=http://www.tosbase.com/database/skills/30101/}}]]<br>'''{{#if: {{{Id|}}} | <span class="plainlinks">[http://www.tosbase.com/database/skills/{{{Id}}}/ {{{Name}}}]</span> | {{{Name}}} }}'''</center>}}</includeonly>
+
</noinclude><includeonly>{{#if: {{{Horizontal|}}} |<!--- horizontal display --->[[{{#ifexist: File:{{#if: {{{Icon|}}} |{{{Icon}}}|Icon_{{{Name}}}.jpg}}|File:{{#if: {{{Icon|}}} |{{{Icon}}}|Icon_{{{Name}}}.jpg}}| File:Unknown.png}}|25px{{#if: {{{Id|}}} |{{!}}link=http://www.tosbase.com/database/skills/{{{Id}}}/}}]] '''{{#if: {{{Id|}}} | <span class="plainlinks">[http://www.tosbase.com/database/skills/{{{Id}}}/ {{{Name}}}]</span> | {{{Name}}} }}'''|<!--- vertical display---><center>[[{{#ifexist: File:{{#if: {{{Icon|}}} |{{{Icon}}}|Icon_{{{Name}}}.jpg}}|File:{{#if: {{{Icon|}}} |{{{Icon}}}|Icon_{{{Name}}}.jpg}}|File:Unknown.png}}|78px|{{#if: {{{Id|}}} |link=http://www.tosbase.com/database/skills/{{{Id}}}/}}]]<br>[[File:Circle{{{Circle|1}}}.png|78px{{#if: {{{Id|}}} |{{!}}link=http://www.tosbase.com/database/skills/{{{Id}}}/}}]]<br>'''{{#if: {{{Id|}}} | <span class="plainlinks">[http://www.tosbase.com/database/skills/{{{Id}}}/ {{{Name}}}]</span> | {{{Name}}} }}'''</center>}}</includeonly>

Latest revision as of 10:30, 3 September 2016

This template is used to display skill along with their icons, circles and links to the TosBase database.
Icon display is automated if the icon have the following naming pattern : Icon_Skill_Name.jpg with Skill_Name being the name of the skill with its spaces replaced by underscores.


Parameters[edit]

  • {{{Name}}} name of the skill
  • {{{Circle}}} circle of the skill (non mandatory if horizontal is set to yes)
  • {{{Id}}} Tosbase database id
  • {{{Icon}}} name of the icon file. Should be used only if the automatic generation fail, especially in case of multiple-word skill name (non mandatory)
  • {{{Horizontal}}} the skill will be displayed horizontally if this value is set to yes. By default, the skill will be displayed vertically. This option allow the skill to be easily embedded in text for example (non mandatory)


Examples[edit]

Input Output
{{Skill | Name=Barrage | Circle=1 | Id=30101}}
Icon Barrage.jpg
Circle1.png
Barrage
{{Skill | Name=Telepath}}

Not advised : please specify Id and Circle if possible

Icon Telepath.jpg
Circle1.png
Telepath
{{Skill | Name=Bounce Shot | Circle=3 | Id=30106 | Icon=Icon_BounceShot.jpg}}
Icon BounceShot.jpg
Circle3.png
Bounce Shot
{{Skill | Name=Carnivory | Horizontal=yes | Id=40902}} Icon Carnivory.jpg Carnivory
{{Skill | Name=Rune of Ice | Icon=Icon_RuneOfIce.jpg | Horizontal=yes}}

Not advised : please specify Id if possible

Icon RuneOfIce.jpg Rune of Ice