Difference between revisions of "Template:NPC Skill"

From Project Alfheim Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if: {{{type|}}} | [[Category:{{{type}}} Skills{{!}}{{{name}}}]] }}{{#if: {{{area|}}} | [[Category:AoE Skills{{!}}{{{name}}}]] }}{{#if: {{{knock|}}} | Categor...")
 
 
Line 1: Line 1:
<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}}}]] }} }}
+
<includeonly>{| class="skill info" style="border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; width: 30em; text-align: left, top; font-size: 100% cellspacing=2"
{| class="infobox" style="width:30em;"
 
 
|-
 
|-
! colspan=2 style="background:#{{#switch: {{{type}}} | Active = CCFFCC | Offensive = FFCCCC | Supportive = CCFFFF | CCCCCC }}; font-size:130%;" | [[File:NPC_Skill_Icon.png]] {{{name}}}
+
| align="center" colspan="2" style="background:#ccccff" | '''{{{name}}} ({{PAGENAME}}) Skill Info'''
 
|-
 
|-
| style="width:10em;" | '''Type:''' || {{{type}}} Skill
+
| width=10em | '''[[Skill Types|Type]]:''' || {{{type}}} Skill
 
|-
 
|-
 
| '''Levels:''' || {{{levels}}}   
 
| '''Levels:''' || {{{levels}}}   
 
|-
 
|-
{{#if: {{{duration|}}} |
 
{{!}} '''Duration:''' {{!}}{{!}} {{{duration}}}
 
{{!}}- }}
 
{{#if: {{{target|}}} |
 
{{!}} '''Target:''' {{!}}{{!}} {{{target}}}
 
{{!}}- }}
 
 
{{#if: {{{range|}}} |
 
{{#if: {{{range|}}} |
{{!}} '''Range:''' {{!}}{{!}} {{#switch: {{{range}}} | Melee={{{range}}} | Magic={{{range}}} | {{{range}}} cells }}
+
{{!}} '''Range:''' {{!}}{{!}} {{{range}}}
{{!}}- }}
+
{{!}}- }}
{{#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}}}]]
+
{{!}} '''Element:''' {{!}}{{!}} [[{{{element}}}]]
{{!}}- }}
+
{{!}}- }}
 
{{#if: {{{status|}}} |
 
{{#if: {{{status|}}} |
{{!}} '''Status:''' {{!}}{{!}} [[Status Effects#{{{status}}}|{{{status}}}]]
+
{{!}} '''[[Status Effect]]:''' {{!}}{{!}} [[{{{status}}}]]
{{!}}- }}
+
{{!}}- }}
{{#if: {{{status2|}}} |
+
{{#if: {{{duration|}}} |
{{!}} '''Status:''' {{!}}{{!}} {{{status2}}}
+
{{!}} '''Duration:''' {{!}}{{!}} {{{duration}}}
{{!}}- }}
+
{{!}}- }}
{{#if: {{{s_icon|}}} |
+
{{#if: {{{target|}}} |
{{!}} '''Status Icon:''' {{!}}{{!}} [[Image:I_{{{s_icon}}}.png]] }}
+
{{!}} '''Target:''' {{!}}{{!}} {{{target}}}
 +
{{!}}}}
 
|}
 
|}
{{#ifeq: {{FULLPAGENAME}} | Template:NPC Skill | | [[Category:Monster Exclusive Skills{{!}}{{{name}}}]] }}</includeonly><noinclude>__NOTOC__
+
{{#ifeq: {{FULLPAGENAME}} | Template:NPC Skill | | [[Category:Monster Exclusive Skills]] }}</includeonly><noinclude>
{| class="infobox" style="width:30em;"
+
 
|-
+
==Description==
! colspan=2 style="background:#CCCCCC; font-size:130%;" | [[File:NPC_Skill_Icon.png]] {{{name}}}
+
This template displays a small info box for an [[NPC]] skill and should be used at the beginning of all [[NPC]] skill pages.  
|-
+
 
| style="width:10em;" | '''Type:''' || {{{type}}} Skill
+
====Usage====
|-
 
| '''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]].
 
  
== Usage ==
 
 
<pre>{{NPC Skill
 
<pre>{{NPC Skill
| name =  
+
| name =
| type =  
+
| type =
| levels =  
+
| levels =
| duration =  
+
| range =
 +
| area =
 +
| element =
 +
| status =
 +
| duration =
 
| target =  
 
| target =  
| range =
 
| range_x =
 
| area =
 
| knock =
 
| element =
 
| status =
 
| status2 =
 
| s_icon =
 
 
}}</pre>
 
}}</pre>
  
=== Mandatory Fields ===
+
[[Category:Templates|NPC Skill]]
{| 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 13:21, 7 October 2022


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

{{NPC Skill
| name =
| type =
| levels =
| range =
| area =
| element =
| status =
| duration =
| target = 
}}