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...")
 
m (increased horizontal icon size)
Line 36: Line 36:
 
<!--- 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 --->[[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/30101/}}]]<br>'''{{#if: {{{Id|}}} | <span class="plainlinks">[http://www.tosbase.com/database/skills/{{{Id}}}/ {{{Name}}}]</span> | {{{Name}}} }}'''</center>}}</includeonly>

Revision as of 23:13, 25 August 2016

This template is used to uniformise skill display by showing them with their icons, circles and links to the TosBase database.


Parameters

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

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