Template:Spell: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(added tier field and updated category handling to be more robust...hopefully) |
||
Line 1: | Line 1: | ||
<includeonly> |
<includeonly> |
||
<!--Adds to the Articles That Are Incomplete category if any non-optional information is missing, unless the spell is planned --> |
<!--Adds to the Articles That Are Incomplete category if any non-optional information is missing, unless the spell is planned --> |
||
{{#ifeq: {{{planned|}}} | yes | {{PlannedSpell {{!}} {{{name|This spell}}} }}| |
{{#ifeq: {{lc:{{{planned|}}}}} | yes | {{PlannedSpell {{!}} {{{name|This spell}}} }}| |
||
{{#if: |
{{#if: |
||
{{#if:{{{name|}}}| |
{{#if:{{{name|}}}| |
||
Line 28: | Line 28: | ||
! width=20% style="background: #B9B59C;border-right: hidden;height: 35px"| |
! width=20% style="background: #B9B59C;border-right: hidden;height: 35px"| |
||
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden"|'''{{{name|Spell Infobox}}}''' |
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden"|'''{{{name|Spell Infobox}}}''' |
||
! valign="middle" width=20% style="background:#B9B59C;border-left:hidden"| {{# |
! valign="middle" width=20% style="background:#B9B59C;border-left:hidden"| {{#switch: {{lc:{{{scroll|}}}}} | yes | y=[[Image:miniscroll.jpg | Scroll-only Spell]]}} {{#switch: {{lc:{{{target|}}}}} | yes | y=[[Image:minitarget.jpg|Targetted Magic Spell]]}} {{#switch: {{lc:{{{held|}}}}} | yes | y=[[Image:miniheld.jpg|Held Mana spell]]}} |
||
|- |
|- |
||
! style="text-align:left"|'''Abbreviation:''' |
! style="text-align:left"|'''Abbreviation:''' |
||
Line 54: | Line 54: | ||
<!-- Categories --> |
<!-- Categories --> |
||
<!--do not add categories if it is a planned spell --> |
<!--do not add categories if it is a planned spell --> |
||
{{# |
{{#switch: {{lc:{{{planned|}}}}} |
||
| yes | y={{#if: {{{guild|}}} | [[Category:Planned {{{guild|}}} Spells]]}} |
|||
|{{#if: {{{guild|}}} | [[Category:{{{guild}}} Spells]]}} |
|||
{{#if: {{{spellbook|}}} | |
{{#if: {{{spellbook|}}} | |
||
{{# |
{{#switch: {{lc:{{{spellbook}}}}} |
||
{{# |
| protection= {{#switch: {{lc:{{{guild|}}}}} |
||
[[Category:Protection Spellbook (Empath)]] |
| empath= [[Category:Protection Spellbook (Empath)]] |
||
[[Category: |
| ranger= [[Category:Protection Spellbook (Ranger)]] |
||
}} |
}} |
||
⚫ | |||
}} |
|||
{{#ifeq: {{{guild|}}} | Ranger | | [[Category:{{{spellbook}}} Spellbook]] }} |
|||
}} |
}} |
||
#ifeq: {{{guild|}}} | Ranger | |
|||
{{#ifeq: {{{spellbook}}} | Protection | |
|||
[[Category:Protection Spellbook (Ranger)]] | |
|||
⚫ | |||
}} |
|||
| |
|||
⚫ | |||
}} |
}} |
||
⚫ | |||
| |
|||
⚫ | |||
}} |
|||
{{#switch: {{lc:{{{target}}}}} | yes | y=[[Category:Targeted Spells]]}} |
|||
{{#switch: {{lc:{{{scroll}}}}} | yes | y=[[Category:Scroll Spells ]]}} |
|||
{{#switch: {{{tier}}} | 1=[[Category:1st Tier Spells]] | 2=[[Category:2nd Tier Spells]] | 3=[[Category:3rd Tier Spells]] |4|5|6|7|8|9|10=[[Category:{{{tier}}}th Tier Spells]]}} |
|||
⚫ | |||
}} |
}} |
||
<!-- The 'notes' section below is so spell notes are still visible while the individual spell articles are edited to use the new template. Delete when the project is completed. --> |
<!-- The 'notes' section below is so spell notes are still visible while the individual spell articles are edited to use the new template. Delete when the project is completed. --> |
||
Line 86: | Line 78: | ||
{{{notes}}} |}} |
{{{notes}}} |}} |
||
<!-- end section to delete --> |
<!-- end section to delete --> |
||
</includeonly> |
</includeonly><noinclude> |
||
<noinclude> |
|||
This template provides an infobox for spell articles. Notes and commentary should be added on the individual spell articles via normal article editing. |
This template provides an infobox for spell articles. Notes and commentary should be added on the individual spell articles via normal article editing. |
||
Line 109: | Line 100: | ||
|scroll= yes/no |
|scroll= yes/no |
||
|planned= yes/no |
|planned= yes/no |
||
|tier= |
|||
}} |
}} |
||
</pre>[[Category:Templates|{{PAGENAME}}]] |
</pre>[[Category:Templates|{{PAGENAME}}]] |
Revision as of 16:13, 5 July 2008
|
Abbreviation: | ||
---|---|---|
Prerequisites: | ||
Minimum Prep: | ||
Casting Cap: | ||
Valid Spell Target: | ||
Description: | ||
Example Messaging: |
This template provides an infobox for spell articles. Notes and commentary should be added on the individual spell articles via normal article editing.
Usage
When making a new spell article, copy the text below into the edit window and fill in the parameter values as appropriate.
{{spell |name= |abbrev= |prereqs= <!--links to other spells if needed--> |minprep= |castcap= |validtarget= Self |desc= |messaging= |guild= |spellbook= |spelltype= |target= yes/no |held= yes/no |scroll= yes/no |planned= yes/no |tier= }}