Difference between revisions of "Template:Profession"

From DotBWiki
Jump to: navigation, search
(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 [[Image:Warrior-icon.png|25px]] }}
| ranger      | r  = {{ #if: {{{2|}}} | R  | Ranger }}
+
| ranger      | r  = {{ #if: {{{2|}}} | R  | Ranger [[Image:Ranger-icon.png|25px]] }}
| monk        | mo = {{ #if: {{{2|}}} | Mo | Monk }}
+
| monk        | mo = {{ #if: {{{2|}}} | Mo | Monk [[Image:Monk-icon.png|25px]] }}
| necromancer  | n  = {{ #if: {{{2|}}} | N  | Necromancer }}
+
| necromancer  | n  = {{ #if: {{{2|}}} | N  | Necromancer [[Image:Necromancer-icon.png|25px]] }}
| mesmer      | me = {{ #if: {{{2|}}} | Me | Mesmer }}
+
| mesmer      | me = {{ #if: {{{2|}}} | Me | Mesmer [[Image:Mesmer-icon.png|25px]] }}
| elementalist | e  = {{ #if: {{{2|}}} | E  | Elementalist }}
+
| elementalist | e  = {{ #if: {{{2|}}} | E  | Elementalist [[Image:Elementalist-icon.png|25px]] }}
| Assassin    | a  = {{ #if: {{{2|}}} | A  | Assassin }}
+
| Assassin    | a  = {{ #if: {{{2|}}} | A  | Assassin [[Image:Assassin-icon.png|25px]] }}
| Ritualist    | rt = {{ #if: {{{2|}}} | Rt | Ritualist }}
+
| Ritualist    | rt = {{ #if: {{{2|}}} | Rt | Ritualist [[Image:Ritualist-icon.png|25px]] }}
| Paragon      | p  = {{ #if: {{{2|}}} | P  | Paragon }}
+
| Paragon      | p  = {{ #if: {{{2|}}} | P  | Paragon [[Image:Paragon-icon.png|25px]] }}
| Dervish      | d  = {{ #if: {{{2|}}} | D  | Dervish }}
+
| Dervish      | d  = {{ #if: {{{2|}}} | D  | Dervish [[Image:Dervish-icon.png|25px]] }}
 
| #default = {{{3|Any}}}
 
| #default = {{{3|Any}}}
 
}}<noinclude>
 
}}<noinclude>

Revision as of 22:23, 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)