Difference between revisions of "Template:Profession"
(make this template output profession icon after expanded name) |
|||
Line 1: | Line 1: | ||
{{ #switch: {{ lc: {{{1|}}} }} | {{ #switch: {{ lc: {{{1|}}} }} | ||
− | | warrior | w = {{ #if: {{{2|}}} | W | Warrior | + | | warrior | w = {{ #if: {{{2|}}} | W | Warrior }} |
− | | ranger | r = {{ #if: {{{2|}}} | R | Ranger | + | | ranger | r = {{ #if: {{{2|}}} | R | Ranger }} |
− | | monk | mo = {{ #if: {{{2|}}} | Mo | Monk | + | | monk | mo = {{ #if: {{{2|}}} | Mo | Monk }} |
− | | necromancer | n = {{ #if: {{{2|}}} | N | Necromancer | + | | necromancer | n = {{ #if: {{{2|}}} | N | Necromancer }} |
− | | mesmer | me = {{ #if: {{{2|}}} | Me | Mesmer | + | | mesmer | me = {{ #if: {{{2|}}} | Me | Mesmer }} |
− | | elementalist | e = {{ #if: {{{2|}}} | E | Elementalist | + | | elementalist | e = {{ #if: {{{2|}}} | E | Elementalist }} |
− | | Assassin | a = {{ #if: {{{2|}}} | A | Assassin | + | | Assassin | a = {{ #if: {{{2|}}} | A | Assassin }} |
− | | Ritualist | rt = {{ #if: {{{2|}}} | Rt | Ritualist | + | | Ritualist | rt = {{ #if: {{{2|}}} | Rt | Ritualist }} |
− | | Paragon | p = {{ #if: {{{2|}}} | P | Paragon | + | | Paragon | p = {{ #if: {{{2|}}} | P | Paragon }} |
− | | Dervish | d = {{ #if: {{{2|}}} | D | Dervish | + | | Dervish | d = {{ #if: {{{2|}}} | D | Dervish }} |
| #default = {{{3|Any}}} | | #default = {{{3|Any}}} | ||
}}<noinclude> | }}<noinclude> |
Latest revision as of 21:27, 6 October 2007
Any
Description
This template is used to get the profession name or its abbreviation from the given profession. This template returns Any or the given parameter if no valid profession name is given.
Parameters
- parameter 1
- Profession name or profession abbreviation; case insensitive.
- parameter 2
- Optional. Set this to any value, to display the profession's abbreviation.
- parameter 3
- Optional. Set this to a default return value. (Default: Any)