Difference between revisions of "Template:Skill"

From Tree of Savior Wiki
Jump to: navigation, search
("default icon" for missing Icons added)
Line 37: Line 37:
<!--- Template--->
<!--- Template--->
</noinclude><includeonly>{{#if: {{{Horizontal|}}} |<!--- horizontal display --->[[File:{{#if: {{{Icon|}}} |{{{Icon}}}|Icon_{{{Name}}}.jpg}}|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>[[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/{{{Id}}}/}}]]<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.


  • {{{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)


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

Not advised : please specify Id and Circle if possible

Icon Telepath.jpg
{{Skill | Name=Bounce Shot | Circle=3 | Id=30106 | Icon=Icon_BounceShot.jpg}}
Icon BounceShot.jpg
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