Difference between revisions of "Template:Skill list"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(added check for existence of skill icon, show locked skill if the skill isnt on the wiki yet)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="position:relative;float:left;">
<includeonly><div><!--
{{#if: {{{1|}}} | {{MapArea|{{{1}}}|0|0|64|62}} {{#ifexist: File:{{{1}}}.png | [[File:{{{1}}}.png|{{{1}}}]] | [[File:Skill_locked.png]]}}}}
-->{{#if: {{{1|}}} | {{MapArea|{{{1}}}|0|0|64|62}} {{#ifexist: File:{{{1}}}.png | [[File:{{{1}}}.png|{{{1}}}]] | [[File:Skill_locked.png]]}}}}<!--
{{#if: {{{2|}}} | {{MapArea|{{{2}}}|68|0|64|62}} {{#ifexist: File:{{{2}}}.png | [[File:{{{2}}}.png|{{{2}}}]] | [[File:Skill_locked.png]]}}}}
-->{{#if: {{{2|}}} | {{MapArea|{{{2}}}|68|0|64|62}} {{#ifexist: File:{{{2}}}.png | [[File:{{{2}}}.png|{{{2}}}]] | [[File:Skill_locked.png]]}}}}<!--
{{#if: {{{3|}}} | {{MapArea|{{{3}}}|136|0|64|62}} {{#ifexist: File:{{{3}}}.png | [[File:{{{3}}}.png|{{{3}}}]] | [[File:Skill_locked.png]]}}}}
-->{{#if: {{{3|}}} | {{MapArea|{{{3}}}|136|0|64|62}} {{#ifexist: File:{{{3}}}.png | [[File:{{{3}}}.png|{{{3}}}]] | [[File:Skill_locked.png]]}}}}<!--
{{#if: {{{4|}}} | {{MapArea|{{{4}}}|204|0|64|62}} {{#ifexist: File:{{{4}}}.png | [[File:{{{4}}}.png|{{{4}}}]] | [[File:Skill_locked.png]]}}}}
-->{{#if: {{{4|}}} | {{MapArea|{{{4}}}|204|0|64|62}} {{#ifexist: File:{{{4}}}.png | [[File:{{{4}}}.png|{{{4}}}]] | [[File:Skill_locked.png]]}}}}<!--
{{#if: {{{5|}}} | {{MapArea|{{{5}}}|272|0|64|62}} {{#ifexist: File:{{{5}}}.png | [[File:{{{5}}}.png|{{{5}}}]] | [[File:Skill_locked.png]]}}}}
-->{{#if: {{{5|}}} | {{MapArea|{{{5}}}|272|0|64|62}} {{#ifexist: File:{{{5}}}.png | [[File:{{{5}}}.png|{{{5}}}]] | [[File:Skill_locked.png]]}}}}<!--
{{#if: {{{6|}}} | {{MapArea|{{{6}}}|340|0|64|62}} {{#ifexist: File:{{{6}}}.png | [[File:{{{6}}}.png|{{{6}}}]] | [[File:Skill_locked.png]]}}}}
-->{{#if: {{{6|}}} | {{MapArea|{{{6}}}|340|0|64|62}} {{#ifexist: File:{{{6}}}.png | [[File:{{{6}}}.png|{{{6}}}]] | [[File:Skill_locked.png]]}}}}<!--
{{#if: {{{7|}}} | {{MapArea|{{{7}}}|408|0|64|62}} {{#ifexist: File:{{{7}}}.png | [[File:{{{7}}}.png|{{{7}}}]] | [[File:Skill_locked.png]]}}}}</div>
-->{{#if: {{{7|}}} | {{MapArea|{{{7}}}|408|0|64|62}} {{#ifexist: File:{{{7}}}.png | [[File:{{{7}}}.png|{{{7}}}]] | [[File:Skill_locked.png]]}}}}<!--
-->{{#if: {{{8|}}} | {{MapArea|{{{8}}}|476|0|64|62}} {{#ifexist: File:{{{8}}}.png | [[File:{{{8}}}.png|{{{8}}}]] | [[File:Skill_locked.png]]}}}}<!--
-->{{#if: {{{9|}}} | {{MapArea|{{{9}}}|544|0|64|62}} {{#ifexist: File:{{{9}}}.png | [[File:{{{9}}}.png|{{{9}}}]] | [[File:Skill_locked.png]]}}}}<!--
-->{{#if: {{{10|}}} | {{MapArea|{{{10}}}|612|0|64|62}} {{#ifexist: File:{{{10}}}.png | [[File:{{{10}}}.png|{{{10}}}]] | [[File:Skill_locked.png]]}}}}<!--
-->{{#if: {{{11|}}} | {{MapArea|{{{11}}}|680|0|64|62}} {{#ifexist: File:{{{11}}}.png | [[File:{{{11}}}.png|{{{11}}}]] | [[File:Skill_locked.png]]}}}}<!--
-->{{#if: {{{12|}}} | {{MapArea|{{{12}}}|748|0|64|62}} {{#ifexist: File:{{{12}}}.png | [[File:{{{12}}}.png|{{{12}}}]] | [[File:Skill_locked.png]]}}}}</div>
</includeonly><noinclude>{{doc}}
</includeonly><noinclude>{{doc}}


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 14:59, 20 September 2022

Template-info.png Documentation

This template creates a row of left-floated skill icons that can be used on the Enemy NPC pages. {{MapArea}} is used to display skill tooltips on mouseover (used by ImageMap trick for skill templates).

Usage: Copy this code to any enemy NPC page and fill in the skill names.

{{Template:Skill_list|skill1|skill2|skill3|skill4|skill5|skill6|skill7}}

For example, filling in the skills of the Ancient Troll

{{Template:Skill_list|Rock Toss|Troll Regeneration|Claw Swipe|Deafening Roar|Shockwave}}

produces this result:


If the skills don't exist, instead it will produce locked skill icons. For example: