Difference between revisions of "Template:SpellClassNameFromAbbr"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = Template:SpellClassNameFromAbbr |description = This template converts the class abbreviation to the full name for use in spells. |ca...")
 
 
(7 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|True}}</nowiki>
|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
* Wm
* Wlk
* Wlk
* AotS
* Wiz
* Wiz
* Clk
* 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)
|parameter2name = Include Class Link
|parameter2description = Any value will cause a class name to have a link
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| clk = Clickie
| clk = Clickie
|#default = {{ClassNameFromAbbr|{{{1}}}}}
| sla = SLA
| r1 = Rank 1
| r2 = Rank 2
| r3 = Rank 3
|#default = {{#if: {{{2|}}}|[[{{ClassNameFromAbbr|{{{1}}}}}]]|{{ClassNameFromAbbr|{{{1}}}}}}}
}}</onlyinclude>
}}</onlyinclude>

Latest revision as of 12:35, 6 June 2024

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
  • Wm
  • 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}}}