Difference between revisions of "Template:ClassNameFromAbbr"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = ClassNameFromAbbr |description = This template converts the class abbreviation to the full name. |category=Shared Templates |example...")
 
Line 5: Line 5:
|example1 = <nowiki>{{ClassNameFromAbbr|Art}}</nowiki>
|example1 = <nowiki>{{ClassNameFromAbbr|Art}}</nowiki>
|example1output = {{ClassNameFromAbbr|Art}}
|example1output = {{ClassNameFromAbbr|Art}}
|example2 = <nowiki>{{ClassNameFromAbbr|P}}</nowiki>
|example2 = <nowiki>{{ClassNameFromAbbr|Pal}}</nowiki>
|example2output = {{ClassNameFromAbbr|P}}
|example2output = {{ClassNameFromAbbr|Pal}}
|parameter1name = Class
|parameter1name = Class
|parameter1description = The abbreviation for the class
|parameter1description = The abbreviation for the class
Line 27: Line 27:
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| Art = Artificer
| art = Artificer
| Bbn = Barbarian
| bbn = Barbarian
| Brd = Bard
| brd = Bard
| Clr = Cleric
| vlr = Cleric
| Drd = Druid
| drd = Druid
| Fvs = Favored Soul
| fvs = Favored Soul
| Ftr = Fighter
| ftr = Fighter
| Mnk = Monk
| mnk = Monk
| Pal = Paladin
| pal = Paladin
| Rgr = Ranger
| rgr = Ranger
| Rog = Rogue
| rog = Rogue
| Sor = Sorcerer
| sor = Sorcerer
| Wlk = Warlock
| wlk = Warlock
| Wiz = Wizard
| wiz = Wizard
|#default =  
|#default =  
}}</onlyinclude>
}}</onlyinclude>

Revision as of 02:25, 20 June 2019

ClassNameFromAbbr[edit]

This template converts the class abbreviation to the full name.

Example Usage
{{ClassNameFromAbbr|Art}}Artificer
{{ClassNameFromAbbr|Pal}}Paladin

Usage[edit]

{{ClassNameFromAbbr|(Class)}}

Parameter Documentation
ClassThe abbreviation for the class
Possible Values:
  • Art
  • Bbn
  • Brd
  • Clr
  • Drd
  • Fvs
  • Ftr
  • Mnk
  • Pal
  • Rgr
  • Rog
  • Sor
  • Wlk
  • Wiz

Template

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