Difference between revisions of "Template:ClassNameFromAbbr"

From DDO Compendium
 
(6 intermediate revisions by the same user not shown)
Line 7: Line 7:
|example2 = <nowiki>{{ClassNameFromAbbr|Pal}}</nowiki>
|example2 = <nowiki>{{ClassNameFromAbbr|Pal}}</nowiki>
|example2output = {{ClassNameFromAbbr|Pal}}
|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
* Clk
* all
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| all = All Classes
| alc = Alchemist
| art = Artificer
| art = Artificer
| bbn = Barbarian
| bbn = Barbarian
| brd = Bard
| brd = Bard
| ss = Stormsinger
| clr = Cleric
| clr = Cleric
| da = Dark Apostate
| drd = Druid
| drd = Druid
| bc = Blight Caster
| fvs = Favored Soul
| fvs = Favored Soul
| ftr = Fighter
| ftr = Fighter
| mnk = Monk
| mnk = Monk
| pal = Paladin
| pal = Paladin
| sf = Sacred Fist
| rgr = Ranger
| rgr = Ranger
| dh = Dark Hunter
| rog = Rogue
| rog = Rogue
| sor = Sorcerer
| sor = Sorcerer
| wlk = Warlock
| wlk = Warlock
| aots = Acolyte of the Skin
| wiz = Wizard
| wiz = Wizard
| clk = Clickie
|#default = {{{1}}}
|#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}}}