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...")
 
 
(10 intermediate revisions by the same user not shown)
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}}
|example3 = <nowiki>{{ClassNameFromAbbr|All}}</nowiki>
|example3output = {{ClassNameFromAbbr|All}}
|parameter1name = Class
|parameter1name = Class
|parameter1description = The abbreviation for the class
|parameter1description = The abbreviation for the class
|parameter1values =  
|parameter1values =  
* all - All classes
* 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
* all
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| Art = Artificer
| all = All Classes
| Bbn = Barbarian
| alc = Alchemist
| Brd = Bard
| art = Artificer
| Clr = Cleric
| bbn = Barbarian
| Drd = Druid
| brd = Bard
| Fvs = Favored Soul
| ss = Stormsinger
| Ftr = Fighter
| clr = Cleric
| Mnk = Monk
| da = Dark Apostate
| Pal = Paladin
| drd = Druid
| Rgr = Ranger
| bc = Blight Caster
| Rog = Rogue
| fvs = Favored Soul
| Sor = Sorcerer
| ftr = Fighter
| Wlk = Warlock
| mnk = Monk
| Wiz = Wizard
| pal = Paladin
|#default =  
| sf = Sacred Fist
| rgr = Ranger
| dh = Dark Hunter
| rog = Rogue
| sor = Sorcerer
| wlk = Warlock
| aots = Acolyte of the Skin
| wiz = Wizard
|#default = {{{1}}}
}}</onlyinclude>
}}</onlyinclude>

Latest revision as of 01:30, 18 November 2023

ClassNameFromAbbr[edit]

This template converts the class abbreviation to the full name.

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

Usage[edit]

{{ClassNameFromAbbr|(Class)}}

Parameter Documentation
ClassThe abbreviation for the class
Possible Values:
  • all - All classes
  • Alc
  • Art
  • Bbn
  • Brd
  • ss
  • Clr
  • da
  • Drd
  • Bc
  • Fvs
  • Ftr
  • Mnk
  • Pal
  • sf
  • Rgr
  • Dh
  • Rog
  • Sor
  • Wlk
  • AotS
  • Wiz
  • all

Template

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


{{{1}}}