Difference between revisions of "Template:SpellClassNameFromAbbr"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(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}}</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 | ||
* dd | |||
* Pal | * Pal | ||
* sf | |||
* Rgr | * Rgr | ||
* Dh | |||
* Rog | * Rog | ||
* Sor | * Sor | ||
* Wm | |||
* Wlk | * Wlk | ||
* AotS | |||
* Wiz | * Wiz | ||
* SLA - Spell Like Ability for Levels | * SLA - Spell Like Ability for Levels | ||
Line 31: | Line 40: | ||
* 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) | ||
|parameter2name = Include Class Link | |||
|parameter2description = Any value will cause a class name to have a link | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
Line 39: | Line 50: | ||
| r2 = Rank 2 | | r2 = Rank 2 | ||
| r3 = Rank 3 | | r3 = Rank 3 | ||
|#default = {{ClassNameFromAbbr|{{{1}}}}} | |#default = {{#if: {{{2|}}}|[[{{ClassNameFromAbbr|{{{1}}}}}]]|{{ClassNameFromAbbr|{{{1}}}}}}} | ||
}}</onlyinclude> | }}</onlyinclude> |
Latest revision as of 02:15, 13 February 2025
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 | |
Class | The abbreviation for the class Possible Values:
|
Include Class Link | Any 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}}}