User:Trang Oul/Sandbox/Template:Class only
< User:Trang Oul | Sandbox
Jump to navigation
Jump to search
Usage
{{Class only|class}}
Parameters
| Parameter | Description | Default |
|---|---|---|
1 (class)
|
The class code or full class name. | Empty; displays (Class Only).
|
Behavior
This template displays the class-restriction label corresponding to the specified Diablo II character class.
- Recognized class: Displays the corresponding predefined class-restriction label, matching the wording used in the game files.
- Unrecognized or missing class: Displays the generic
(Class Only)label.
The following class codes and names are supported:
| Class code | Class name |
|---|---|
ama
|
Amazon |
sor
|
Sorceress |
nec
|
Necromancer |
pal
|
Paladin |
bar
|
Barbarian |
dru
|
Druid |
ass
|
Assassin |
war
|
Warlock |
Examples
| Input | Result | Description |
|---|---|---|
{{Class only|ama}}
|
(Amazon Only) | Amazon class code. |
{{Class only|Sorceress}}
|
(Sorceress Only) | Full class name. |
{{Class only|war}}
|
(Warlock Only) | Warlock class code. |
{{Class only|unknown}}
|
(Class Only) | Unrecognized class. |
{{Class only}}
|
(Class Only) | No class specified. |