Difference between revisions of "Template:Skill Info"
From LeikaRO wiki
(cleaning up formatting and condensing some fields) |
(Updating template with newest/redesigned version) |
||
Line 2: | Line 2: | ||
{|class="infobox" style="width:30em;" | {|class="infobox" style="width:30em;" | ||
|- | |- | ||
− | ! colspan=2 style="background:#{{#switch:{{{type|}}} | Active=CCFFCC | Passive=CCCCCC | Offensive=FFCCCC | Supportive=CCFFFF | CCCCCC }}; font-size:130%;" | {{#ifexist:Media:{{PAGENAME}}.png | [[Image:{{PAGENAME}}.png]] | [[Image:No_Info.png|Needs proper Skill Icon]]}} {{PAGENAME}} | + | ! colspan=2 style="background:#{{#switch:{{{type|}}} | Active=CCFFCC | Passive=CCCCCC | Offensive=FFCCCC | Supportive=CCFFFF | CCCCCC }}; font-size:130%;" | {{#ifexist:Media:{{PAGENAME}}-icon.png | [[Image:{{PAGENAME}}-icon.png]] | [[Image:No_Info.png|Needs proper Skill Icon]]}} {{PAGENAME}} |
|- | |- | ||
− | | colspan=2 style="text-align:center;" | {{#ifexist:Media:{{PAGENAME}} | + | | colspan=2 style="text-align:center;" | {{#ifexist:Media:{{PAGENAME}}-screen.gif | [[Image:{{PAGENAME}}-screen.gif]] | {{#ifeq: {{{type|}}} | Passive | [[Image:Passive_Info.gif]] | [[Image:No_Image_Info.gif]] }} }} |
|- | |- | ||
| style="width:10em;" | '''Type:''' || {{{type}}} Skill | | style="width:10em;" | '''Type:''' || {{{type}}} Skill | ||
Line 16: | Line 16: | ||
{{!}} '''HP Cost:''' {{!}}{{!}} {{{hpcost}}} | {{!}} '''HP Cost:''' {{!}}{{!}} {{{hpcost}}} | ||
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{s_icon|}}} | |
− | {{!}} ''' | + | {{!}} '''Status Icon:''' {{!}}{{!}} [[Image:{{{s_icon}}}-icon.png]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{catalyst|}}} | |
− | {{!}} ''' | + | {{!}} '''Catalyst:''' {{!}}{{!}} {{{catalyst}}} |
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{item|}}} | |
− | {{!}} ''' | + | {{!}} '''Item:''' {{!}}{{!}} {{{item}}} |
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{ammo|}}} | |
− | {{!}} ''' | + | {{!}} '''Ammunition:''' {{!}}{{!}} {{{ammo}}} |
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{weapon|}}} | |
− | {{!}} ''' | + | {{!}} '''Weapons:''' {{!}}{{!}} [[{{{weapon}}}]] {{#if: {{{weapon2|}}} | or [[{{{weapon2}}}]] {{#if: {{{weapon3|}}} | or [[{{{weapon3}}}]] }} }} |
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{equip|}}} | |
− | {{!}} ''' | + | {{!}} '''Equipment:''' {{!}}{{!}} [[{{{equip}}}]] |
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{equip2|}}} | |
− | {{!}} ''' | + | {{!}} '''Alt. Equipment:''' {{!}}{{!}} [[{{{equip2}}}]] |
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{prereqs|}}} | |
− | {{!}} ''' | + | ! colspan=2 style="background:#{{#switch: {{{type}}} | Active=CCFFCC | Passive=CCCCCC | Offensive=FFCCCC | Supportive=CCFFFF | CCCCCC }};" {{!}} Prerequisites |
+ | {{!}}- | ||
+ | {{!}} colspan=2 {{!}} {{{prereqs}}} }} | ||
+ | {{#if: {{{quest|}}} | | ||
+ | ! colspan=2 style="background:#{{#switch: {{{type}}} | Active=CCFFCC | Passive=CCCCCC | Offensive=FFCCCC | Supportive=CCFFFF | CCCCCC }};" {{!}} Prerequisites | ||
+ | {{!}}- | ||
+ | {{!}} colspan=2 {{!}} ''In order to gain this skill, the player has to complete a [[{{{quest}}}{{!}}quest]].'' }} | ||
+ | {{!}}- | ||
+ | {{#if: {{{required|}}} | | ||
+ | ! colspan=2 style="background:#{{#switch: {{{type}}} | Active=CCFFCC | Passive=CCCCCC | Offensive=FFCCCC | Supportive=CCFFFF | CCCCCC }};" {{!}} Required For | ||
+ | {{!}}- | ||
+ | {{!}} colspan=2 {{!}} {{{required}}} }} | ||
+ | |} | ||
+ | </includeonly> | ||
+ | |||
+ | <noinclude> | ||
+ | __NOTOC__ | ||
+ | {|class="infobox" style="width:30em;" | ||
+ | |- | ||
+ | ! colspan=2 style="background:#{{#switch:{{{type|}}} | Active=CCFFCC | Passive=CCCCCC | Offensive=FFCCCC | Supportive=CCFFFF | CCCCCC }}; font-size:130%;" | {{#ifexist:Media:{{PAGENAME}}-icon.png | [[Image:{{PAGENAME}}-icon.png]] | [[Image:No_Info.png|Needs proper Skill Icon]]}} {{PAGENAME}} | ||
+ | |- | ||
+ | | colspan=2 style="text-align:center;" | {{#ifexist:Media:{{PAGENAME}}-screen.gif | [[Image:{{PAGENAME}}-screen.gif]] | {{#ifeq: {{{type|}}} | Passive | [[Image:Passive_Info.gif]] | [[Image:No_Image_Info.gif]] }} }} | ||
+ | |- | ||
+ | | style="width:10em;" | '''Type:''' || {{{type}}} Skill | ||
+ | |- | ||
+ | | '''Levels:''' || {{{levels}}} | ||
+ | |- | ||
+ | {{#if: {{{spcost|}}} | | ||
+ | {{!}} '''SP Cost:''' {{!}}{{!}} {{{spcost}}} | ||
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{hpcost|}}} | |
− | {{!}} ''' | + | {{!}} '''HP Cost:''' {{!}}{{!}} {{{hpcost}}} |
{{!}}- }} | {{!}}- }} | ||
− | {{#if: {{{ | + | {{#if: {{{s_icon|}}} | |
− | {{!}} ''' | + | {{!}} '''Status Icon:''' {{!}}{{!}} [[Image:{{{s_icon}}}-icon.png]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{{!}}- }} | {{!}}- }} | ||
{{#if: {{{catalyst|}}} | | {{#if: {{{catalyst|}}} | | ||
Line 80: | Line 94: | ||
{{#if: {{{cf_name|}}} | | {{#if: {{{cf_name|}}} | | ||
{{!}} '''{{{cf_name}}}:''' {{!}}{{!}} {{{cf_value}}} | {{!}} '''{{{cf_name}}}:''' {{!}}{{!}} {{{cf_value}}} | ||
− | |||
− | |||
− | |||
{{!}}- }} | {{!}}- }} | ||
{{#if: {{{prereqs|}}} | | {{#if: {{{prereqs|}}} | | ||
Line 92: | Line 103: | ||
{{!}}- | {{!}}- | ||
{{!}} colspan=2 {{!}} ''In order to gain this skill, the player has to complete a [[{{{quest}}}{{!}}quest]].'' }} | {{!}} colspan=2 {{!}} ''In order to gain this skill, the player has to complete a [[{{{quest}}}{{!}}quest]].'' }} | ||
− | + | {{!}}- | |
− | + | {{#if: {{{required|}}} | | |
− | + | ! colspan=2 style="background:#{{#switch: {{{type}}} | Active=CCFFCC | Passive=CCCCCC | Offensive=FFCCCC | Supportive=CCFFFF | CCCCCC }};" {{!}} Required For | |
− | + | {{!}}- | |
− | { | + | {{!}} colspan=2 {{!}} {{{required}}} }} |
− | + | ||
− | ! | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | | + | |
− | + | ||
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | | | + | |
− | | | + | |
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
This template displays an info box for a skill and should be used at the beginning of all skill pages. | This template displays an info box for a skill and should be used at the beginning of all skill pages. | ||
− | ==Usage== | + | == Usage == |
− | <pre>{{Skill Info | + | <pre> |
− | |type= | + | {{Skill Info |
− | |levels | + | |type = |
− | + | |levels = | |
− | + | |spcost = | |
− | |spcost= | + | |hpcost = |
− | |hpcost= | + | |s_icon = |
− | | | + | |consumable = |
− | + | |item = | |
− | + | |weapon = | |
− | + | |weapon2 = | |
− | + | |weapon3 = | |
− | + | |equip = | |
− | + | |equip2 = | |
− | + | |cf_name = | |
− | + | |cf_value = | |
− | + | |quest = | |
− | + | |prereqs = | |
− | + | |required = | |
− | + | }} | |
− | + | </pre> | |
− | |consumable= | + | |
− | |item= | + | |
− | |weapon= | + | |
− | |weapon2= | + | |
− | |weapon3= | + | |
− | |equip= | + | |
− | |equip2= | + | |
− | |cf_name= | + | |
− | |cf_value= | + | |
− | | | + | |
− | }}</pre> | + | |
Remember to erase the empty fields. | Remember to erase the empty fields. | ||
− | ===Mandatory Fields=== | + | === Mandatory Fields === |
{| class=wikitable | {| class=wikitable | ||
! Field !! Description !! Auto-adds Category | ! Field !! Description !! Auto-adds Category | ||
|- | |- | ||
! type | ! type | ||
− | | Main type of the skill. Values | + | | Main type of the skill. Values: "Active", "Passive", "Offensive", "Supportive". |
− | + | ||
|- | |- | ||
! levels | ! levels | ||
| Maximum levels of the skill. Being a string variable, adding comments after the number is possible. Ex: Levels: "5, selectable" | | Maximum levels of the skill. Being a string variable, adding comments after the number is possible. Ex: Levels: "5, selectable" | ||
| - | | - | ||
− | |||
! prereqs | ! prereqs | ||
− | | Additional skills that must have learned before acquiring this skill. | + | | Additional skills that must have learned before acquiring this skill. |
− | + | ||
|- | |- | ||
! quest | ! quest | ||
Line 226: | Line 165: | ||
| HP Cost required to initiate the skill. | | HP Cost required to initiate the skill. | ||
|- | |- | ||
− | ! | + | ! 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") |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
! consumable | ! consumable | ||
Line 294: | Line 194: | ||
! cf_value | ! cf_value | ||
| Custom Field Value, set this if you have cf_name set also. Setting this without cf_name, it will simply get ignored. | | Custom Field Value, set this if you have cf_name set also. Setting this without cf_name, it will simply get ignored. | ||
− | |||
− | |||
− | |||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 14:49, 6 August 2015
Skill Info | |
---|---|
Type: | {{{type}}} Skill |
Levels: | {{{levels}}} |
This template displays an info box for a skill and should be used at the beginning of all skill pages.
Usage
{{Skill Info |type = |levels = |spcost = |hpcost = |s_icon = |consumable = |item = |weapon = |weapon2 = |weapon3 = |equip = |equip2 = |cf_name = |cf_value = |quest = |prereqs = |required = }}
Remember to erase the empty fields.
Mandatory Fields
Field | Description | Auto-adds Category | ||
---|---|---|---|---|
type | Main type of the skill. Values: "Active", "Passive", "Offensive", "Supportive". | |||
levels | Maximum levels of the skill. Being a string variable, adding comments after the number is possible. Ex: Levels: "5, selectable" | - | prereqs | Additional skills that must have learned before acquiring this skill. |
quest | Quest that must be cleared before acquiring this skill. If it has one, set this field instead of {{{prereqs}}}. | Category:Quest Skills |
Optional Fields
Field | Description |
---|---|
spcost | SP Cost required to initiate the skill. |
hpcost | HP Cost required to initiate the skill. |
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")
|
consumable | Item or ammo the skill consumes upon casting. ("Arrows (1)", "Bullets (10)", etc) |
item | Specific item that must be present in the inventory, or equipped, prior to use the skill. |
weapon | Weapon that must be equipped in order for the skill to execute. |
weapon2 | For skills with multiple allowable weapons. |
weapon3 | For skills with multiple allowable weapons. |
equip | Equipment item that must be worn for the skill to execute. |
equip2 | For skills with multiple required equipment types. |
cf_name | Custom Field Name, in case none of the above field criteria apply. Set text will get bolded, use in conjunction with cf_value. |
cf_value | Custom Field Value, set this if you have cf_name set also. Setting this without cf_name, it will simply get ignored. |