Difference between revisions of "Template:NPC Skill"
Jump to navigation
Jump to search
m |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{| | + | <includeonly>{{#if: {{{type|}}} | [[Category:{{{type}}} Skills{{!}}{{{name}}}]] }}{{#if: {{{area|}}} | [[Category:AoE Skills{{!}}{{{name}}}]] }}{{#if: {{{knock|}}} | [[Category:Knock Back Skills{{!}}{{{name}}}]] }}{{#if: {{{element|}}} | [[Category:Forced Element Skills{{!}}{{{name}}}]] [[Category:{{{element}}}{{!}}{{{name}}}]] }}{{#if: {{{status|}}} | [[Category:Status Inflicting Skills{{!}}{{{name}}}]] }}{{#if: {{{status2|}}} | [[Category:Status Inflicting Skills{{!}}{{{name}}}]] }}{{#if: {{{range|}}} | {{#switch: {{{range}}} | Melee=[[Category:Melee Skills{{!}}{{{name}}}]] | Magic=[[Category:Magic Skills{{!}}{{{name}}}]] | [[Category:Ranged Skills{{!}}{{{name}}}]] }} }} |
| + | {| class="infobox" style="width:30em; float:right;" | ||
|- | |- | ||
| − | + | ! colspan=2 style="background:#{{#switch: {{{type}}} | Active = CCFFCC | Offensive = FFCCCC | Supportive = CCFFFF | CCCCCC }}; font-size:130%;" | [[File:NPC_Skill_Icon.png]] {{{name}}} | |
|- | |- | ||
| − | | width | + | | style="width:10em;" | '''Type:''' || {{{type}}} Skill |
|- | |- | ||
| '''Levels:''' || {{{levels}}} | | '''Levels:''' || {{{levels}}} | ||
|- | |- | ||
| + | {{#if: {{{duration|}}} | | ||
| + | {{!}} '''Duration:''' {{!}}{{!}} {{{duration}}} | ||
| + | {{!}}- }} | ||
| + | {{#if: {{{target|}}} | | ||
| + | {{!}} '''Target:''' {{!}}{{!}} {{{target}}} | ||
| + | {{!}}- }} | ||
{{#if: {{{range|}}} | | {{#if: {{{range|}}} | | ||
| − | {{!}} '''Range:''' {{!}}{{!}} {{{range}}} | + | {{!}} '''Range:''' {{!}}{{!}} {{#switch: {{{range}}} | Melee={{{range}}} | Magic={{{range}}} | {{{range}}} cells }} |
| − | {{!}}- | + | {{!}}- }} |
| + | {{#if: {{{range_x|}}} | | ||
| + | {{!}} '''Range:''' {{!}}{{!}} {{{range_x}}} cells | ||
| + | {{!}}- }} | ||
| + | {{#if: {{{knock|}}} | | ||
| + | {{!}} '''Knock Back:''' {{!}}{{!}} {{{knock}}} cells | ||
| + | {{!}}- }} | ||
{{#if: {{{area|}}} | | {{#if: {{{area|}}} | | ||
{{!}} '''Area:''' {{!}}{{!}} {{{area}}} | {{!}} '''Area:''' {{!}}{{!}} {{{area}}} | ||
| − | {{!}}- | + | {{!}}- }} |
{{#if: {{{element|}}} | | {{#if: {{{element|}}} | | ||
| − | {{!}} ''' | + | {{!}} '''Property:''' {{!}}{{!}} [[{{{element}}}]] |
| − | {{!}}- | + | {{!}}- }} |
{{#if: {{{status|}}} | | {{#if: {{{status|}}} | | ||
| − | {{!}} ''' | + | {{!}} '''Status:''' {{!}}{{!}} [[Status Effects#{{{status}}}|{{{status}}}]] |
| − | {{!}}- | + | {{!}}- }} |
| − | {{#if: {{{ | + | {{#if: {{{status2|}}} | |
| − | {{!}} ''' | + | {{!}} '''Status:''' {{!}}{{!}} {{{status2}}} |
| − | {{!}}- | + | {{!}}- }} |
| − | {{#if: {{{ | + | {{#if: {{{s_icon|}}} | |
| − | {{!}} ''' | + | {{!}} '''Status Icon:''' {{!}}{{!}} [[Image:I_{{{s_icon}}}.png]] }} |
| − | {{!}}- }} | + | |} |
| + | {{#ifeq: {{FULLPAGENAME}} | Template:NPC Skill | | [[Category:Monster Exclusive Skills{{!}}{{{name}}}]] }}</includeonly><noinclude>__NOTOC__ | ||
| + | {| class="infobox" style="width:30em; float:right;" | ||
| + | |- | ||
| + | ! colspan=2 style="background:#CCCCCC; font-size:130%;" | [[File:NPC_Skill_Icon.png]] {{{name}}} | ||
| + | |- | ||
| + | | style="width:10em;" | '''Type:''' || {{{type}}} Skill | ||
| + | |- | ||
| + | | '''Levels:''' || {{{levels}}} | ||
| + | |- | ||
| + | | '''Duration:''' || {{{duration}}} | ||
| + | |- | ||
| + | | '''Target:''' || {{{target}}} | ||
| + | |- | ||
| + | | '''Range:''' || {{{range}}} cells | ||
| + | |- | ||
| + | | '''Range:''' || {{{range_x}}} cells | ||
| + | |- | ||
| + | | '''Knock Back:''' || {{{knock}}} cells | ||
| + | |- | ||
| + | | '''Area:''' || {{{area}}} | ||
| + | |- | ||
| + | | '''Property:''' || [[{{{element}}}]] | ||
| + | |- | ||
| + | | '''Status:''' || [[Status Effects#{{{status}}}|{{{status}}}]] | ||
| + | |- | ||
| + | | '''Status:''' || {{{status2}}} | ||
| + | |- | ||
| + | | '''Status Icon:''' || [[Image:I_{{{s_icon}}}.png]] | ||
|} | |} | ||
| − | + | == Description == | |
| − | + | This template displays a small info box for an [[NPC]] skill and should be used at the beginning of all [[NPC]] skill pages. Once this template is used, it auto-adds [[:Category:Monster Exclusive Skills]]. | |
| − | ==Description== | ||
| − | This template displays a small info box for an [[NPC]] skill and should be used at the beginning of all [[NPC]] skill pages. | ||
| − | |||
| − | |||
| + | == Usage == | ||
<pre>{{NPC Skill | <pre>{{NPC Skill | ||
| − | | name = | + | | name = |
| − | | type = | + | | type = |
| − | | levels | + | | levels = |
| − | + | | duration = | |
| − | |||
| − | |||
| − | |||
| − | | duration = | ||
| target = | | target = | ||
| + | | range = | ||
| + | | range_x = | ||
| + | | area = | ||
| + | | knock = | ||
| + | | element = | ||
| + | | status = | ||
| + | | status2 = | ||
| + | | s_icon = | ||
}}</pre> | }}</pre> | ||
| − | [[Category:Templates | + | === Mandatory Fields === |
| + | {| class="wikitable" | ||
| + | ! Field !! Description !! Auto-adds Category if used | ||
| + | |- | ||
| + | ! name | ||
| + | | The name from the skill, without "NPC" and with proper capitals. | ||
| + | | - | ||
| + | |- | ||
| + | ! type | ||
| + | | Main type of the skill. Values have to be Active, Supportive or Offensive. | ||
| + | | Category:<type> | ||
| + | |- | ||
| + | ! levels | ||
| + | | Maximum levels of the skill. | ||
| + | | - | ||
| + | |} | ||
| + | |||
| + | === Optional Fields === | ||
| + | {| class="wikitable" | ||
| + | ! Field !! Description !! Auto-adds Category if used | ||
| + | |- | ||
| + | ! duration | ||
| + | | Lasting time of the skill/skill's effect. (30 seconds, 1 minute, etc) | ||
| + | | - | ||
| + | |- | ||
| + | ! target | ||
| + | | Target. (ground, self, another monster, player, etc) | ||
| + | | Not yet implemented. | ||
| + | |- | ||
| + | ! range | ||
| + | | Range. (Melee, Magic, 3 cells, 4 cells, etc) | ||
| + | | If value is is "Melee", [[:Category:Melee Skills]]<br>If value is "Magic", [[:Category:Magic Skills]]<br>If value is numeric, [[:Category:Ranged Skills]] | ||
| + | |- | ||
| + | ! range_x | ||
| + | | Non-conditional ''Range'' value for skills that do have a cell-range, but where it is irrelevant from the standpoint of defensive skills or gears because of their non-offensive nature. | ||
| + | | - | ||
| + | |- | ||
| + | ! area | ||
| + | | Area of Effect. (3x3, 7x7, etc) | ||
| + | | [[:Category:AoE Skills]] | ||
| + | |- | ||
| + | ! knock | ||
| + | | Knock back push amount (2, 7, etc). | ||
| + | | [[:Category:Knock Back Skills]] | ||
| + | |- | ||
| + | ! element | ||
| + | | Primary [[Element|elemental]] property, if applicable. (Water, Holy, Neutral, etc) | ||
| + | | [[:Category:Forced Element Skills]] and Category:<element> | ||
| + | |- | ||
| + | ! status | ||
| + | | Status the skill inflicts on the Target. Links to [[Status Effects]]. | ||
| + | | [[:Category:Status Inflicting Skills]] | ||
| + | |- | ||
| + | ! status2 | ||
| + | | Status(es) the skill inflicts on the Target. | ||
| + | | [[:Category:Status Inflicting Skills]] | ||
| + | |- | ||
| + | ! s_icon | ||
| + | | Status Icon that is shown when the skill is in effect, if applicable. Use the filename found in [[Status Icons]] as <code>I_'''(field)'''.png</code> (between "I_" and ".png") | ||
| + | | - | ||
| + | |} | ||
| + | |||
| + | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 02:51, 2 April 2025
Description
This template displays a small info box for an NPC skill and should be used at the beginning of all NPC skill pages. Once this template is used, it auto-adds Category:Monster Exclusive Skills.
Usage
{{NPC Skill
| name =
| type =
| levels =
| duration =
| target =
| range =
| range_x =
| area =
| knock =
| element =
| status =
| status2 =
| s_icon =
}}
Mandatory Fields
| Field | Description | Auto-adds Category if used |
|---|---|---|
| name | The name from the skill, without "NPC" and with proper capitals. | - |
| type | Main type of the skill. Values have to be Active, Supportive or Offensive. | Category:<type> |
| levels | Maximum levels of the skill. | - |
Optional Fields
| Field | Description | Auto-adds Category if used |
|---|---|---|
| duration | Lasting time of the skill/skill's effect. (30 seconds, 1 minute, etc) | - |
| target | Target. (ground, self, another monster, player, etc) | Not yet implemented. |
| range | Range. (Melee, Magic, 3 cells, 4 cells, etc) | If value is is "Melee", Category:Melee Skills If value is "Magic", Category:Magic Skills If value is numeric, Category:Ranged Skills |
| range_x | Non-conditional Range value for skills that do have a cell-range, but where it is irrelevant from the standpoint of defensive skills or gears because of their non-offensive nature. | - |
| area | Area of Effect. (3x3, 7x7, etc) | Category:AoE Skills |
| knock | Knock back push amount (2, 7, etc). | Category:Knock Back Skills |
| element | Primary elemental property, if applicable. (Water, Holy, Neutral, etc) | Category:Forced Element Skills and Category:<element> |
| status | Status the skill inflicts on the Target. Links to Status Effects. | Category:Status Inflicting Skills |
| status2 | Status(es) the skill inflicts on the Target. | Category:Status Inflicting Skills |
| s_icon | Status Icon that is shown when the skill is in effect, if applicable. Use the filename found in Status Icons as I_(field).png (between "I_" and ".png")
|
- |