Template:Skill: Difference between revisions
imported>Quietust mNo edit summary |
imported>Quietust rework template - change "effect" to display the blue-text, and change the existing effect field to "explain" and make it optional if there's an effect |
||
Line 17: | Line 17: | ||
{{{description}}} | {{{description}}} | ||
{{#if:{{{effect|}}}|<p style="text-align:center; color:blue; font-weight:bold;">{{{effect}}}</p>}} | |||
{| cellpadding="0" cellspacing="4" border="0" | {| cellpadding="0" cellspacing="4" border="0" | ||
Line 27: | Line 29: | ||
|- style="text-align: left" valign="top" | |- style="text-align: left" valign="top" | ||
| '''Level:''' || {{#if:{{{level|}}}|{{{level}}}|N/A}} | | '''Level:''' || {{#if:{{{level|}}}|{{{level}}}|N/A}} | ||
|- style="text-align: left" valign="top" | {{#if:{{#if:{{{effect|}}}|0|1}}}{{{explain|}}}|| | ||
{{!}}- style="text-align: left" valign="top" | |||
{{!}} '''Effect:''' {{!!}} {{#if:{{{explain|}}}|{{{explain}}}|''This skill needs its effect described.''{{#switch:{{NAMESPACE}}|Template=|Category=|[[Category:Incomplete]]}}}} | |||
|} | |||
|- | |- | ||
{{#if:{{{usemsg|}}}|{{#ifeq:{{{usemsg|}}}|N/A|| | {{#if:{{{usemsg|}}}|{{#ifeq:{{{usemsg|}}}|N/A|| | ||
Line 49: | Line 53: | ||
|mpcost=''MP cost'' | |mpcost=''MP cost'' | ||
|description=''description'' | |description=''description'' | ||
|effect=''(blue) skill effect'' | |||
|source=''source of skill'' | |source=''source of skill'' | ||
|price=''purchase price'' | |price=''purchase price'' | ||
|class=''required class'' | |class=''required class'' | ||
|level=''required level'' | |level=''required level'' | ||
| | |explain=''skill's effect, optional if "effect" specified above'' | ||
|permable=''0, 1, or a (can omit; default is 1)'' | |permable=''0, 1, or a (can omit; default is 1)'' | ||
|usemsg=''skill's "Use Skill" message (omit for passive skills)''}} | |usemsg=''skill's "Use Skill" message (omit for passive skills)''}} | ||
Line 61: | Line 66: | ||
*Mpcost: How many MP the skill uses (if applicable). | *Mpcost: How many MP the skill uses (if applicable). | ||
*Description: The official description of the skill, as found in the Kingdom. | *Description: The official description of the skill, as found in the Kingdom. | ||
*Effect: The official effect of the skill, as displayed in blue text (as with item [[enchantments]]). | |||
*Source: Guild trainer? Gnomes? Starting skill? Item? | *Source: Guild trainer? Gnomes? Starting skill? Item? | ||
*Price: How much the skill costs to learn (if applicable). | *Price: How much the skill costs to learn (if applicable). | ||
*Class: Character class (if applicable). | *Class: Character class (if applicable). | ||
*Level: Level at which skill can be acquired (if applicable). | *Level: Level at which skill can be acquired (if applicable). | ||
* | *Explain: The actual effect, in terms of game mechanics, the player experiences. If the skill has an effect visible in blue-text, this field is optional. | ||
**[[Bonus Spell Damage|Spell Damage]] +10 ''(links to [[Bonus Spell Damage]])'' | **[[Bonus Spell Damage|Spell Damage]] +10 ''(links to [[Bonus Spell Damage]])'' | ||
*Permable: 1 (or omit) if the skill can be learned permanently; 0 if it cannot; a if it is automatically hardcore permed | *Permable: 1 (or omit) if the skill can be learned permanently; 0 if it cannot; a if it is automatically hardcore permed | ||
Line 86: | Line 89: | ||
|level=42<br /> | |level=42<br /> | ||
|description=Your deoxygenated blood has been replaced with lime juice. You're way more alert than usually.<br /> | |description=Your deoxygenated blood has been replaced with lime juice. You're way more alert than usually.<br /> | ||
|effect= | |effect=+100% Combat Initiative<br /> | ||
|price=83 Meat<br /> | |price=83 Meat<br /> | ||
|usemsg=You conjure a lime around yourself...<br /> | |usemsg=You conjure a lime around yourself...<br /> | ||
Line 94: | Line 97: | ||
<div style="border:1px solid black; padding:1em;"> | <div style="border:1px solid black; padding:1em;"> | ||
{{skill|skillid=-1|name=Limetasticality|source=Lime Trainer|class=[[lime|Limeface]]|level=42|description=Your deoxygenated blood has been replaced with lime juice. You're way more alert than usually.|effect= | {{skill|skillid=-1|name=Limetasticality|source=Lime Trainer|class=[[lime|Limeface]]|level=42|description=Your deoxygenated blood has been replaced with lime juice. You're way more alert than usually.|effect=+100% Combat Initiative|type=Buff|mpcost=19|price=83 Meat|usemsg=You conjure a lime around yourself... | ||
{{AcquireEffect|effect=Limetastic!|duration=10}}}} | {{AcquireEffect|effect=Limetastic!|duration=10}}}} | ||
</div> | </div> |
Revision as of 20:18, 25 January 2012
#if:{{{skillid|}}}|<div style="font-size:80%;text-align:right;position:absolute;top:0px; right:15px;">{{#ifexist:Data:{{PAGENAME}}|[[Data:{{PAGENAME}}|View metadata]]|<span class="plainlinks">[{{fullurle:Data:{{PAGENAME}}|action=edit&preload=Template:Skill/data}} Create metadata]</span><span style="display:none">[[Data:{{PAGENAME}}]]</span>}}<br />'''[[Skills by number|Skill number]]:''' {{{skillid}}}{{ #ifeq:{{{ingamelink|1}}}|1|<br />'''View in-game:''' {{ingame link|path=desc_skill.php?whichskill={{{skillid}}}}}}}</div>|Skill ID not known!{{#switch:{{NAMESPACE}}|Template=|Category=|[[Category:Incomplete]]}}}} <center> [[File:{{Data|{{PAGENAME}}|image|nopic2.gif}}|{{Data|{{PAGENAME}}|name|undefined skill name}}|30px]] '''{{Data|{{PAGENAME}}|name|undefined skill name}}'''</center> {| style="text-align: left; margin: 1em auto" cellpadding="0" cellspacing="0" |- | '''Type:''' | style="padding-left: .5em" | {{#switch:{{{type}}}|Bookshelf|bookshelf=[[Your Mystical Bookshelf|Mystical Bookshelf]]|Combat|combat=Combat|Noncombat|noncombat=Noncombat|Passive|passive=Passive|Buff|buff=Buff|Combat Spell|combat spell=Combat Spell|#default=''unrecognized skill type''{{#switch:{{NAMESPACE}}|Template=|Category=|[[Category:Incomplete]]}}}}{{#if:{{{type2|}}}| / {{#switch:{{{type2}}}|Bookshelf|bookshelf=[[Your Mystical Bookshelf|Mystical Bookshelf]]|Combat|combat=Combat|Noncombat|noncombat=Noncombat|Passive|passive=Passive|Buff|buff=Buff|Combat Spell|combat spell=Combat Spell|''?''}}|}} |- | '''MP Cost:''' | style="padding-left: .5em" | {{#if:{{{mpcost|}}}|{{{mpcost}}}|N/A}} |} {{{description}}} {{#if:{{{effect|}}}|<p style="text-align:center; color:blue; font-weight:bold;">{{{effect}}}</p>}} {| cellpadding="0" cellspacing="4" border="0" |- style="text-align: left; vertical-align: top" | '''Source:''' || {{#if:{{{source|}}}|{{{source}}}|''This skill needs its source specified.''{{#switch:{{NAMESPACE}}|Template=|Category=|[[Category:Incomplete]]}}}} |- style="text-align: left" valign="top" | '''Price:''' || {{#if:{{{price|}}}|{{{price}}}|N/A}} |- style="text-align: left" valign="top" | '''Class:''' || {{#if:{{{class|}}}|{{{class}}}|N/A}} |- style="text-align: left" valign="top" | '''Level:''' || {{#if:{{{level|}}}|{{{level}}}|N/A}} {{#if:{{#if:{{{effect|}}}|0|1}}}{{{explain|}}}|| {{!}}- style="text-align: left" valign="top" {{!}} '''Effect:''' {{!!}} {{#if:{{{explain|}}}|{{{explain}}}|''This skill needs its effect described.''{{#switch:{{NAMESPACE}}|Template=|Category=|[[Category:Incomplete]]}}}} |} |- {{#if:{{{usemsg|}}}|{{#ifeq:{{{usemsg|}}}|N/A|| {{!}}'''When Used:'''}}}} |}</div>{{ #if:{{{usemsg|}}}|{{#ifeq:{{{usemsg}}}|N/A|| <table style="text-align: center; margin: auto;" width="100%"> <tr><td style="line-height: 1.5;">{{{usemsg}}}</td></tr> </table>}}|{{#ifexpr:{{#ifeq:{{{type}}}|Passive|0|1}} and {{#ifeq:{{{type}}}|passive|0|1}} and {{#ifeq:{{{usemsg}}}|N/A|0|1}}|''This skill needs its in-game message specified via the "usemsg" parameter; see {{tl|Skill}} for more details.''{{#switch:{{NAMESPACE}}|Template=|Category=|[[Category:Incomplete]]}}}}}}{{<!-- The following is for auto-categorizing skill pages and other pages that call this template --> #ifeq:{{FULLPAGENAME}}|Template:Skill|[[Category:Skills| {{FULLPAGENAME}}]]|{{#ifeq:{{FULLPAGENAME}}|Established Standards: Skill Pages|[[Category:Skills| {{PAGENAME}}]]|{{#ifeq:{{NAMESPACE}}|Category||{{#if:{{{type|}}}|{{#switch:{{{type}}}|buff=[[Category:Buffs]]|bookshelf=[[Category:Noncombat Skills]]|combat=[[Category:Combat Skills]]|noncombat=[[Category:Noncombat Skills]]|passive=[[Category:Passive Skills]]|Bookshelf=[[Category:Noncombat Skills]]|Combat=[[Category:Combat Skills]]|Noncombat=[[Category:Noncombat Skills]]|Buff=[[Category:Buffs]]|Passive=[[Category:Passive Skills]]|Combat Spell=[[Category:Combat Skills]]|combat spell=[[Category:Combat Skills]]|[[Category:Skills]]}}{{#switch: {{{permable|1}}}| 0 = [[Category:Skills Which Cannot Be Permed]] | 1 = [[Category:Skills Which Can Be Permed]] | a = [[Category:Skills Which Are Automatically Hardcore Permed]] | default [[Category:Skills Which Can Be Permed]]}}|[[Category:Incomplete]]}}}}}}}}{{<!-- Auto-cating for second skill type, if exists --> #if:{{{type2|}}}|{{#ifeq:{{FULLPAGENAME}}|Template:Skill||{{#ifeq:{{FULLPAGENAME}}|Established Standards: Skill Pages||{{#ifeq:{{NAMESPACE}}|Category||{{#switch:{{{type2}}}|Buff|buff=[[Category:Buffs]]|Bookshelf|bookshelf=[[Category:Noncombat Skills]]|Combat|combat=[[Category:Combat Skills]]|Noncombat|noncombat=[[Category:Noncombat Skills]]|Passive|passive=[[Category:Passive Skills]]|Combat Spell|combat spell=[[Category:Combat Skills]]|#default=[[Category:Skills]]}}}}}}}}|}}
Usage
{{skill |skillid=id |ingamelink=0 or 1 (can be omitted) |type=skill type |type2=second skill type |mpcost=MP cost |description=description |effect=(blue) skill effect |source=source of skill |price=purchase price |class=required class |level=required level |explain=skill's effect, optional if "effect" specified above |permable=0, 1, or a (can omit; default is 1) |usemsg=skill's "Use Skill" message (omit for passive skills)}}
- Type: Buff/Passive/Combat/Noncombat/Bookshelf
- Type2: Buff/Passive/Combat/Noncombat/Bookshelf (optional; only needs to be provided for skills that serve multiple roles, such as Lasagna Bandages)
- Mpcost: How many MP the skill uses (if applicable).
- Description: The official description of the skill, as found in the Kingdom.
- Effect: The official effect of the skill, as displayed in blue text (as with item enchantments).
- Source: Guild trainer? Gnomes? Starting skill? Item?
- Price: How much the skill costs to learn (if applicable).
- Class: Character class (if applicable).
- Level: Level at which skill can be acquired (if applicable).
- Explain: The actual effect, in terms of game mechanics, the player experiences. If the skill has an effect visible in blue-text, this field is optional.
- Spell Damage +10 (links to Bonus Spell Damage)
- Permable: 1 (or omit) if the skill can be learned permanently; 0 if it cannot; a if it is automatically hardcore permed
- Usemsg: The text displayed in-game when using the skill. Not applicable for Passive skills.
Example
Use the following template:
{{skill
|skillid=-1
|name=Limetasticality
|type=Buff
|mpcost=19
|source=Lime Trainer
|class=[[lime|Limeface]]
|level=42
|description=Your deoxygenated blood has been replaced with lime juice. You're way more alert than usually.
|effect=+100% Combat Initiative
|price=83 Meat
|usemsg=You conjure a lime around yourself...
The above example yields:
Type: | Buff |
MP Cost: | 19 |
Your deoxygenated blood has been replaced with lime juice. You're way more alert than usually.
+100% Combat Initiative
Source: | Lime Trainer |
Price: | 83 Meat |
Class: | Limeface |
Level: | 42
{{#if:0}|| |
Effect: ]], [[ This skill needs its effect described. |
|- |When Used:
|}You conjure a lime around yourself...
|
Try to wiki-link anything you can.