Vorlage:Skill List: Unterschied zwischen den Versionen

Aus NyanWiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „<includeonly>{| style="background:none; padding:1px; border-spacing:0px;" | style="align:center; width:30px; border: none;" | {{#if: {{{icon|}}} | Image:{{{i…“)
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>{| style="background:none; padding:1px; border-spacing:0px;"
+
<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;"
| style="align:center; width:30px; border: none;" | {{#if: {{{icon|}}} | [[Image:{{{icon}}}.png]] | [[Image:{{{skill}}}.png]] }}
+
{{!}} style="text-align:center; width:30px; border:none;" {{!}} {{#if: {{{icon|}}} | [[Image:{{{icon}}}.png]] | [[Image:{{{skill}}}.png]] }}
| style="border: none;" | [[{{{skill}}}]]
+
{{!}} style="border:none; white-space:nowrap;" {{!}} {{#if: {{{name|}}} | [[{{{skill}}}|{{{name}}}]] | [[{{{skill}}}]] }} {{#if:{{{level|}}} | Lv. {{{level}}} }}
|}</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 ===
<nowiki>
+
<pre>
{{Skill List |skill=</nowiki>''<skill name>''<nowiki>}}
+
{{Skill List |skill=<skill>}}
{{Skill List |skill=</nowiki>''<skill name>''<nowiki> |icon=</nowiki>''<skill icon>''<nowiki>}}</nowiki>
+
{{Skill List |skill=<skill> |icon=<icon>}}
 
+
{{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
|-
+
|-
| <nowiki>{{Skill List |skill=Basic Skill}}</nowiki> |{{Skill List |skill=Basic Skill}}
+
| <code><nowiki>{{Skill List |skill=Basic Skill}}</nowiki></code>
|-
+
| {{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" style="text-align: left"
+
{| class="wikitable"
| ''skill name'' || The name of the skill (and the skill page)
+
! skill
 +
| 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.
 
|-
 
|-
| ''skill icon'' || (optional) Specify an alternate skill icon to use.
+
! level
 +
| Optional. The number of the skill level to show.
 
|}
 
|}
  
==See Also==
+
== See Also ==
*[[Template:Skill Info]]
+
* [[Template:Skill Info]]
  
[[Category:Templates|Skill List]]
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 30. Juni 2020, 19:31 Uhr

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>}}
{{Skill List |skill=<skill> |icon=<icon>}}
{{Skill List |skill=<skill> |level=<level>}}
{{Skill List |skill=<skill> |name=<name>}}
{{Skill List |skill=<skill> |name=<name> |level=<level>}}
Example Output
{{Skill List |skill=Basic Skill}}
Datei:Basic Skill.png Basic Skill
{{Skill List |skill=Sight |icon=Mercenary Sight}}
Datei:Mercenary Sight.png Sight
{{Skill List |skill=Fire Bolt |level=8}}
Datei:Fire Bolt.png Fire Bolt Lv. 8
* {{Skill List |skill=Bash |level=5 |simple=yes}} is required for [[Magnum Break]]
{{Skill List |skill=NPC_FIREATTACK |name=Fire Attack |icon=NPC Skill Icon |level=3}}
Datei:NPC Skill Icon.png Fire Attack Lv. 3

Fields

skill 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 Optional. The number of the skill level to show.

See Also