User:Trang Oul/Sandbox/Template:Class only

From Basin Wiki
< User:Trang Oul‎ | Sandbox
Revision as of 20:36, 4 November 2026 by Trang Oul (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.