Difference between revisions of "Template:SpellLevel"

From DDO Compendium
 
(23 intermediate revisions by the same user not shown)
Line 7: Line 7:
|example2 = <nowiki>{{SpellLevel|Pal|3}}</nowiki>
|example2 = <nowiki>{{SpellLevel|Pal|3}}</nowiki>
|example2output = {{SpellLevel|Pal|3}}
|example2output = {{SpellLevel|Pal|3}}
|example3 = <nowiki>{{SpellLevel|Sor|3|Wiz|3}}</nowiki>
|example3output = {{SpellLevel|Sor|3|Wiz|3}}
|example4 = <nowiki>{{SpellLevel|Arm}}</nowiki>
|example4output = {{SpellLevel|Arm}}
|parameter1name = Class
|parameter1name = Class
|parameter1description = The spell abbreviation for the class, class and level can be repeated 10 times
|parameter1description = The spell abbreviation for the class, class and level can be repeated 20 times
|parameter1values =  
|parameter1values =  
* Alc
* Art
* Art
* Brd
* Brd
* Ss
* Clr
* Clr
* Da
* Drd
* Drd
* Bc
* Fvs
* Fvs
* Pal
* Pal
* Sf
* Rgr
* Rgr
* Dh
* Sor
* Sor
* Wm
* Wiz
* Wiz
* Wlk
* AotS
* Arm - This spell is a Rune Arm Imbue Only - This has to be the first one and the level isn't used
* SLA - Spell Like Ability - This has to be the first one and the level isn't used
* Clk - This spell is on an item as a clickie
|parameter2name = level
|parameter2name = level
|parameter2description = The spell level for the class.
|parameter2description = The spell level for the class.
}}
}}
</noinclude>
</noinclude>
<onlyinclude>[[{{ClassNameFromAbbr|{{{1}}}}} Spells#Level {{{2}}}|{{ClassNameFromAbbr|{{{1}}}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{1}}}}} Level {{{2|}}} Spells]]}}}}{{#if: {{{3|}}}|, [[{{ClassNameFromAbbr|{{{3}}}}} Spells#Level {{{4}}}|{{ClassNameFromAbbr|{{{3}}}}} {{{4}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{3}}}}} Level {{{4|}}} Spells]]}}}}}}{{#if: {{{5|}}}|, [[{{ClassNameFromAbbr|{{{5}}}}} Spells#Level {{{6}}}|{{ClassNameFromAbbr|{{{5}}}}} {{{6}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{5}}}}} Level {{{6|}}} Spells]]}}}}}}{{#if: {{{7|}}}|, [[{{ClassNameFromAbbr|{{{7}}}}} Spells#Level {{{8}}}|{{ClassNameFromAbbr|{{{7}}}}} {{{8}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{7}}}}} Level {{{8|}}} Spells]]}}}}}}{{#if: {{{9|}}}|, [[{{ClassNameFromAbbr|{{{9}}}}} Spells#Level {{{10}}}|{{ClassNameFromAbbr|{{{9}}}}} {{{10}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{9}}}}} Level {{{10|}}} Spells]]}}}}}}{{#if: {{{11|}}}|, [[{{ClassNameFromAbbr|{{{11}}}}} Spells#Level {{{12}}}|{{ClassNameFromAbbr|{{{11}}}}} {{{12}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{11}}}}} Level {{{12|}}} Spells]]}}}}}}{{#if: {{{13|}}}|, [[{{ClassNameFromAbbr|{{{13}}}}} Spells#Level {{{14}}}|{{ClassNameFromAbbr|{{{13}}}}} {{{14}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{13}}}}} Level {{{14|}}} Spells]]}}}}}}{{#if: {{{15|}}}|, [[{{ClassNameFromAbbr|{{{15}}}}} Spells#Level {{{16}}}|{{ClassNameFromAbbr|{{{15}}}}} {{{16}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{15}}}}} Level {{{16|}}} Spells]]}}}}}}{{#if: {{{17|}}}|, [[{{ClassNameFromAbbr|{{{17}}}}} Spells#Level {{{18}}}|{{ClassNameFromAbbr|{{{17}}}}} {{{18}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{17}}}}} Level {{{18|}}} Spells]]}}}}}}{{#if: {{{19|}}}|, [[{{ClassNameFromAbbr|{{{19}}}}} Spells#Level {{{20}}}|{{ClassNameFromAbbr|{{{19}}}}} {{{20}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{19}}}}} Level {{{20|}}} Spells]]}}}}}}/onlyinclude>
<onlyinclude>{{#switch: {{lc:{{{1|}}}}}
|arm=Rune Arm Shot{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:Rune Arm Shots]]}}}}
|sla=Spell Like Ability{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:Spell Like Abilities]]}}}}
|#default={{SingleSpellLevel|{{{1}}}|{{{2}}}}}{{#if: {{{3|}}}|{{SingleSpellLevel|{{{3}}}|{{{4}}}|True}}}}{{#if: {{{5|}}}|{{SingleSpellLevel|{{{5}}}|{{{6}}}|True}}}}{{#if: {{{7|}}}|{{SingleSpellLevel|{{{7}}}|{{{8}}}|True}}}}{{#if: {{{9|}}}|{{SingleSpellLevel|{{{9}}}|{{{10}}}|True}}}}{{#if: {{{11|}}}|{{SingleSpellLevel|{{{11}}}|{{{12}}}|True}}}}{{#if: {{{13|}}}|{{SingleSpellLevel|{{{13}}}|{{{14}}}|True}}}}{{#if: {{{15|}}}|{{SingleSpellLevel|{{{15}}}|{{{16}}}|True}}}}{{#if: {{{17|}}}|{{SingleSpellLevel|{{{17}}}|{{{18}}}|True}}}}{{#if: {{{19|}}}|{{SingleSpellLevel|{{{19}}}|{{{20}}}|True}}}}{{#if: {{{21|}}}|{{SingleSpellLevel|{{{21}}}|{{{22}}}|True}}}}{{#if: {{{23|}}}|{{SingleSpellLevel|{{{23}}}|{{{24}}}|True}}}}{{#if: {{{25|}}}|{{SingleSpellLevel|{{{25}}}|{{{26}}}|True}}}}{{#if: {{{27|}}}|{{SingleSpellLevel|{{{27}}}|{{{28}}}|True}}}}{{#if: {{{29|}}}|{{SingleSpellLevel|{{{29}}}|{{{30}}}|True}}}}{{#if: {{{31|}}}|{{SingleSpellLevel|{{{31}}}|{{{32}}}|True}}}}{{#if: {{{33|}}}|{{SingleSpellLevel|{{{33}}}|{{{34}}}|True}}}}{{#if: {{{35|}}}|{{SingleSpellLevel|{{{35}}}|{{{36}}}|True}}}}{{#if: {{{37|}}}|{{SingleSpellLevel|{{{37}}}|{{{38}}}|True}}}}{{#if: {{{39|}}}|{{SingleSpellLevel|{{{39}}}|{{{40}}}|True}}}}
}}</onlyinclude>

Latest revision as of 12:34, 6 June 2024

SpellLevel[edit]

This template is used to nicely format the class and level necessary for a spell.

Example Usage
{{SpellLevel|Art|1}}Artificer 1
{{SpellLevel|Pal|3}}Paladin 3
{{SpellLevel|Sor|3|Wiz|3}}Sorcerer 3Wizard 3
{{SpellLevel|Arm}}Rune Arm Shot

Usage[edit]

{{SpellLevel|(Class)|(level)}}

Parameter Documentation
ClassThe spell abbreviation for the class, class and level can be repeated 20 times
Possible Values:
  • Alc
  • Art
  • Brd
  • Ss
  • Clr
  • Da
  • Drd
  • Bc
  • Fvs
  • Pal
  • Sf
  • Rgr
  • Dh
  • Sor
  • Wm
  • Wiz
  • Wlk
  • AotS
  • Arm - This spell is a Rune Arm Imbue Only - This has to be the first one and the level isn't used
  • SLA - Spell Like Ability - This has to be the first one and the level isn't used
  • Clk - This spell is on an item as a clickie
levelThe spell level for the class.

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


[[{{{1}}} Spells#Level {{{2}}} Spells|{{{1}}} {{{2}}}]]