Difference between revisions of "Template:NPC Skill"

From Project Alfheim Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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"
+
<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;"
 
|-
 
|-
| align="center" colspan="2" style="background:#ccccff" | '''{{{name}}} ({{PAGENAME}}) Skill Info'''
+
! colspan=2 style="background:#{{#switch: {{{type}}} | Active = CCFFCC | Offensive = FFCCCC | Supportive = CCFFFF | CCCCCC }}; font-size:130%;" | [[File:NPC_Skill_Icon.png]] {{{name}}}
 
|-
 
|-
| width=10em | '''[[Skill Types|Type]]:''' || {{{type}}} Skill
+
| 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|}}} |
{{!}} '''Element:''' {{!}}{{!}} [[{{{element}}}]]
+
{{!}} '''Property:''' {{!}}{{!}} [[{{{element}}}]]
{{!}}- }}
+
{{!}}- }}
 
{{#if: {{{status|}}} |
 
{{#if: {{{status|}}} |
{{!}} '''[[Status Effect]]:''' {{!}}{{!}} [[{{{status}}}]]
+
{{!}} '''Status:''' {{!}}{{!}} [[Status Effects#{{{status}}}|{{{status}}}]]
{{!}}- }}
+
{{!}}- }}
{{#if: {{{duration|}}} |
+
{{#if: {{{status2|}}} |
{{!}} '''Duration:''' {{!}}{{!}} {{{duration}}}
+
{{!}} '''Status:''' {{!}}{{!}} {{{status2}}}
{{!}}- }}
+
{{!}}- }}
{{#if: {{{target|}}} |
+
{{#if: {{{s_icon|}}} |
{{!}} '''Target:''' {{!}}{{!}} {{{target}}}
+
{{!}} '''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]]
 
|}
 
|}
{{#ifeq: {{FULLPAGENAME}} | Template:NPC Skill | | [[Category:Monster Exclusive Skills]] }}</includeonly><noinclude>
+
== 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====
 
  
 +
== Usage ==
 
<pre>{{NPC Skill
 
<pre>{{NPC Skill
| name =
+
| name =  
| type =
+
| type =  
| levels =
+
| levels =  
| range =
+
| duration =  
| area =
 
| element =
 
| status =
 
| duration =
 
 
| target =  
 
| target =  
 +
| range =
 +
| range_x =
 +
| area =
 +
| knock =
 +
| element =
 +
| status =
 +
| status2 =
 +
| s_icon =
 
}}</pre>
 
}}</pre>
  
[[Category:Templates|NPC Skill]]
+
=== 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

NPC Skill Icon.png {{{name}}}
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.

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") -