Difference between revisions of "Template:SpellClassNameFromAbbr"

From DDO Compendium
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|description = This template converts the class abbreviation to the full name for use in spells.
|description = This template converts the class abbreviation to the full name for use in spells.
|category=Spell and Feat Templates
|category=Spell and Feat Templates
|example1 = <nowiki>{{SpellClassNameFromAbbr|Art}}</nowiki>
|example1 = <nowiki>{{SpellClassNameFromAbbr|Art|True}}</nowiki>
|example1output = {{SpellClassNameFromAbbr|Art}}
|example1output = {{SpellClassNameFromAbbr|Art|True}}
|example2 = <nowiki>{{SpellClassNameFromAbbr|Clk}}</nowiki>
|example2 = <nowiki>{{SpellClassNameFromAbbr|Clk}}</nowiki>
|example2output = {{SpellClassNameFromAbbr|Clk}}
|example2output = {{SpellClassNameFromAbbr|Clk}}
|example3 = <nowiki>{{SpellClassNameFromAbbr|R1}}</nowiki>
|example3 = <nowiki>{{SpellClassNameFromAbbr|R1|True}}</nowiki>
|example3output = {{SpellClassNameFromAbbr|R1}}
|example3output = {{SpellClassNameFromAbbr|R1|True}}
|parameter1name = Class
|parameter1name = Class
|parameter1description = The abbreviation for the class
|parameter1description = The abbreviation for the class
|parameter1values =  
|parameter1values =  
* Alc
* Art
* Art
* Bbn
* Bbn
* Brd
* Brd
* ss
* Clr
* Clr
* da
* Drd
* Drd
* Bc
* Fvs
* Fvs
* Ftr
* Ftr
* Mnk
* Mnk
* Pal
* Pal
* sf
* Rgr
* Rgr
* Dh
* Rog
* Rog
* Sor
* Sor
* Wlk
* Wlk
* AotS
* Wiz
* Wiz
* SLA - Spell Like Ability for Levels
* SLA - Spell Like Ability for Levels
Line 31: Line 38:
* R2 - Rank 2 (Used for SLA spells cost per rank)
* R2 - Rank 2 (Used for SLA spells cost per rank)
* R3 - Rank 3 (Used for SLA spells cost per rank)
* R3 - Rank 3 (Used for SLA spells cost per rank)
|parameter1name = Include Class Link
|parameter2name = Include Class Link
|parameter1description = Any value will cause a class name to have a link
|parameter2description = Any value will cause a class name to have a link
}}
}}
</noinclude>
</noinclude>

Latest revision as of 00:42, 15 February 2023

Template:SpellClassNameFromAbbr[edit]

This template converts the class abbreviation to the full name for use in spells.

Example Usage
{{SpellClassNameFromAbbr|Art|True}}Artificer
{{SpellClassNameFromAbbr|Clk}}Clickie
{{SpellClassNameFromAbbr|R1|True}}Rank 1

Usage[edit]

{{Template:SpellClassNameFromAbbr|(Class)|(Include Class Link)}}

Parameter Documentation
ClassThe abbreviation for the class
Possible Values:
  • Alc
  • Art
  • Bbn
  • Brd
  • ss
  • Clr
  • da
  • Drd
  • Bc
  • Fvs
  • Ftr
  • Mnk
  • Pal
  • sf
  • Rgr
  • Dh
  • Rog
  • Sor
  • Wlk
  • AotS
  • Wiz
  • SLA - Spell Like Ability for Levels
  • Clk - Clickie
  • R1 - Rank 1 (Used for SLA spells cost per rank)
  • R2 - Rank 2 (Used for SLA spells cost per rank)
  • R3 - Rank 3 (Used for SLA spells cost per rank)
Include Class LinkAny value will cause a class name to have a link

Template

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


{{{1}}}