Difference between revisions of "Template:Skill List"

From Project Alfheim Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#if: {{{simple|}}} | {{#if: {{{icon|}}} | [[Image:{{{icon}}}.png]] | [[Image:{{{skill}}}.png]] }} {{#if: {{{name|}}} | [[{{{skill}}}|{{{name}}}]] | [[{{{skill}}}]] }} {{#if:{{{level|}}} | Lv. {{{level}}} }} | {{{!}} style="background:none; padding:1px; border-spacing:0px;"
+
<includeonly>{| style="background:none; padding:1px; border-spacing:0px;"
{{!}} style="text-align:center; width:30px; border:none;" {{!}} {{#if: {{{icon|}}} | [[Image:{{{icon}}}.png]] | [[Image:{{{skill}}}.png]] }}
+
| style="align:center; width:30px; border: none;" | {{#if: {{{icon|}}} | [[Image:{{{icon}}}.png]] | [[Image:{{{skill}}}.png]] }}
{{!}} style="border:none; white-space:nowrap;" {{!}} {{#if: {{{name|}}} | [[{{{skill}}}|{{{name}}}]] | [[{{{skill}}}]] }} {{#if:{{{level|}}} | Lv. {{{level}}} }}
+
| style="border: none;" | [[{{{skill}}}]]
{{!}}}
+
|}</includeonly><noinclude>
}}</includeonly><noinclude>__NOTOC__
+
 
== Description ==
+
==Description==
 
The purpose of this template is to link a skill, complete with icon.
 
The purpose of this template is to link a skill, complete with icon.
  
 
''Note: The correct capitalization is '''S'''kill '''L'''ist. Do not forget the second capitalized letter!''
 
''Note: The correct capitalization is '''S'''kill '''L'''ist. Do not forget the second capitalized letter!''
  
=== Usage ===
+
====Usage====
<pre>
+
<nowiki>
{{Skill List |skill=<skill>}}
+
{{Skill List |skill=</nowiki>''<skill name>''<nowiki>}}
{{Skill List |skill=<skill> |icon=<icon>}}
+
{{Skill List |skill=</nowiki>''<skill name>''<nowiki> |icon=</nowiki>''<skill icon>''<nowiki>}}</nowiki>
{{Skill List |skill=<skill> |level=<level>}}
+
 
{{Skill List |skill=<skill> |name=<name>}}
 
{{Skill List |skill=<skill> |name=<name> |level=<level>}}
 
</pre>
 
  
 
{| class="wikitable"
 
{| class="wikitable"
! Example !! Output
+
! Example !! Output
|-
+
|-
| <code><nowiki>{{Skill List |skill=Basic Skill}}</nowiki></code>
+
| <nowiki>{{Skill List |skill=Basic Skill}}</nowiki> |{{Skill List |skill=Basic Skill}}
| {{Skill List |skill=Basic Skill}}
+
|-
|-
+
| <nowiki>{{Skill List |skill=Sight |icon=Mercenary Sight}}</nowiki> |{{Skill List |skill=Sight |icon=Mercenary Sight}}
| <code><nowiki>{{Skill List |skill=Sight |icon=Mercenary Sight}}</nowiki></code>
 
| {{Skill List |skill=Sight |icon=Mercenary Sight}}
 
|-
 
| <code><nowiki>{{Skill List |skill=Fire Bolt |level=8}}</nowiki></code>
 
| {{Skill List |skill=Fire Bolt |level=8}}
 
|-
 
| <code><nowiki>* {{Skill List |skill=Bash |level=5 |simple=yes}} is required for [[Magnum Break]]</nowiki></code>
 
|
 
* {{Skill List |skill=Bash |level=5 |simple=yes}} is required for [[Magnum Break]]
 
|-
 
| <code><nowiki>{{Skill List |skill=NPC_FIREATTACK |name=Fire Attack |icon=NPC Skill Icon |level=3}}</nowiki></code>
 
| {{Skill List |skill=NPC_FIREATTACK |name=Fire Attack |icon=NPC Skill Icon |level=3}}
 
 
|}
 
|}
  
=== Fields ===
+
====Fields====
{| class="wikitable"
+
{| class="wikitable" style="text-align: left"
! skill
+
| ''skill name'' || The name of the skill (and the skill page)
| The name of the skill (and the skill page)
 
|-
 
! icon
 
| Optional. The alternate skill icon to use.
 
|-
 
! name
 
| Optional. A different name than the skill page.
 
 
|-
 
|-
! level
+
| ''skill icon'' || (optional) Specify an alternate skill icon to use.
| Optional. The number of the skill level to show.
 
 
|}
 
|}
  
== See Also ==
+
==See Also==
* [[Template:Skill Info]]
+
*[[Template:Skill Info]]
  
[[Category:Templates]]
+
[[Category:Templates|Skill List]]
 
</noinclude>
 
</noinclude>

Revision as of 21:11, 10 October 2022


Description

The purpose of this template is to link a skill, complete with icon.

Note: The correct capitalization is Skill List. Do not forget the second capitalized letter!

Usage

{{Skill List |skill=<skill name>}}
{{Skill List |skill=<skill name> |icon=<skill icon>}}


Example Output
{{Skill List |skill=Basic Skill}}
Basic Skill.png Basic Skill
{{Skill List |skill=Sight |icon=Mercenary Sight}}
File:Mercenary Sight.png Sight

Fields

skill name The name of the skill (and the skill page)
skill icon (optional) Specify an alternate skill icon to use.

See Also