Difference between revisions of "Template:Skill List"

From TitanRO Wiki
Jump to navigation Jump to search
(Added credit and expanded how the template can be used)
Line 1: Line 1:
<includeonly><span>{{#if: {{{id|}}} | https://static.divine-pride.net/images/skill/{{{id}}}.png }} {{#if: {{{page_name|}}} | [[{{{page_name}}}]] }}</span>
<includeonly><span>{{#if: {{{id|}}} | https://static.divine-pride.net/images/skill/{{{id}}}.png }} {{#if: {{{link|}}} | {{{link}}} }}</span>
</includeonly><noinclude>
</includeonly><noinclude>
== Usage ==
== Usage ==
This template outputs a skill's icon and a text link to the skill page on the wiki. The icon comes from https://www.divine-pride.net, so search there for the skill you want, and pass that id into the template.


If no icon can be found, you can also output the skill with just the text by omitting the id parameter. Additionally, if you just want the icon, omit the page_name parameter.
 


{| class="wikitable"
{| class="wikitable"
  ! style="background-color:#9aff99;" | Usage
  ! style="background-color:#9aff99;" | Usage
! style="background-color:#9aff99;" | Description
  ! style="background-color:#9aff99;" | Output
  ! style="background-color:#9aff99;" | Output
  |-
  |-
  | <nowiki>{{Skill List |id=19 |page_name=Fire Bolt}}</nowiki>
  | <pre>{{Skill List |id=19 |link=[[Fire Bolt]]}}</pre>
  | {{Skill List |id=19 |page_name=Fire Bolt}}
| Output icon and link to the skill page on the wiki
  | {{Skill List |id=19 |link=[[Fire Bolt]]}}
  |-
  |-
  | <nowiki>{{Skill List |id=19}}</nowiki>
  | <pre>{{Skill List |id=19 |link=[https://irowiki.org/wiki/Fire_Bolt Fire Bolt]}}</pre>
| Output icon and link to an external page
| {{Skill List |id=19 |link=[https://irowiki.org/wiki/Fire_Bolt Fire Bolt]}}
|-
| <pre>{{Skill List |id=19 |link=Fire Bolt}}</pre>
| Output icon and text, no link
| {{Skill List |id=19 |link=Fire Bolt}}
|-
| <pre>{{Skill List |id=19}}</pre>
| Output just the icon
  | {{Skill List |id=19}}
  | {{Skill List |id=19}}
|-
|-
  | <nowiki>{{Skill List |page_name=Fire Bolt}}</nowiki>
  | <pre>{{Skill List |link=[[Fire Bolt]]}}</pre>
  | {{Skill List |page_name=Fire Bolt}}
| Output just the link
  | {{Skill List |link=[[Fire Bolt]]}}
|}
|}
== Credit ==
The original Skill List template comes from [https://irowiki.org/wiki/Template:Skill_List this iROWiki template]. They have given us permission to use it, and we have modified it to serve our purposes.


[[Category:Templates|Skill List]]
[[Category:Templates|Skill List]]
</noinclude>
</noinclude>

Revision as of 17:41, 8 May 2018

Usage

Usage Description Output
{{Skill List |id=19 |link=[[Fire Bolt]]}}
Output icon and link to the skill page on the wiki 19.png Fire Bolt
{{Skill List |id=19 |link=[https://irowiki.org/wiki/Fire_Bolt Fire Bolt]}}
Output icon and link to an external page 19.png Fire Bolt
{{Skill List |id=19 |link=Fire Bolt}}
Output icon and text, no link 19.png Fire Bolt
{{Skill List |id=19}}
Output just the icon 19.png
{{Skill List |link=[[Fire Bolt]]}}
Output just the link Fire Bolt

Credit

The original Skill List template comes from this iROWiki template. They have given us permission to use it, and we have modified it to serve our purposes.