Template:Class: Difference between revisions
HiddenDragon (talk | contribs) No edit summary |
(there's a better way of doing this but this should so for now ... maybe) Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1|}}} | <includeonly>{{#switch:{{{1|}}} | ||
| Barbarian = {{Icon|Class Barbarian Hotbar Icon.png|{{{2|25}}}|link=Barbarian}} [[Barbarian]] | | Barbarian = {{Icon|Class Barbarian Hotbar Icon.png|{{{2|25}}}|link=Barbarian}} [[Barbarian]] | ||
| barbarian = {{Icon|Class Barbarian Hotbar Icon.png|{{{2|25}}}|link=Barbarian}} [[Barbarian|barbarian]] | |||
| Bard = {{Icon|Class Bard Hotbar Icon.png|{{{2|25}}}|link=Bard}} [[Bard]] | | Bard = {{Icon|Class Bard Hotbar Icon.png|{{{2|25}}}|link=Bard}} [[Bard]] | ||
| bard = {{Icon|Class Bard Hotbar Icon.png|{{{2|25}}}|link=Bard}} [[Bard|bard]] | |||
| Cleric = {{Icon|Class Cleric Hotbar Icon.png|{{{2|25}}}|link=Cleric}} [[Cleric]] | | Cleric = {{Icon|Class Cleric Hotbar Icon.png|{{{2|25}}}|link=Cleric}} [[Cleric]] | ||
| cleric = {{Icon|Class Cleric Hotbar Icon.png|{{{2|25}}}|link=Cleric}} [[Cleric|cleric]] | |||
| Druid = {{Icon|Class Druid Hotbar Icon.png|{{{2|25}}}|link=Druid}} [[Druid]] | | Druid = {{Icon|Class Druid Hotbar Icon.png|{{{2|25}}}|link=Druid}} [[Druid]] | ||
| druid = {{Icon|Class Druid Hotbar Icon.png|{{{2|25}}}|link=Druid}} [[Druid|druid]] | |||
| Fighter = {{Icon|Class Fighter Hotbar Icon.png|{{{2|25}}}|link=Fighter}} [[Fighter]] | | Fighter = {{Icon|Class Fighter Hotbar Icon.png|{{{2|25}}}|link=Fighter}} [[Fighter]] | ||
| fighter = {{Icon|Class Fighter Hotbar Icon.png|{{{2|25}}}|link=Fighter}} [[Fighter|fighter]] | |||
| Monk = {{Icon|Class Monk Hotbar Icon.png|{{{2|25}}}|link=Monk}} [[Monk]] | | Monk = {{Icon|Class Monk Hotbar Icon.png|{{{2|25}}}|link=Monk}} [[Monk]] | ||
| monk = {{Icon|Class Monk Hotbar Icon.png|{{{2|25}}}|link=Monk}} [[Monk|monk]] | |||
| Paladin = {{Icon|Class Paladin Hotbar Icon.png|{{{2|25}}}|link=Paladin}} [[Paladin]] | | Paladin = {{Icon|Class Paladin Hotbar Icon.png|{{{2|25}}}|link=Paladin}} [[Paladin]] | ||
| paladin = {{Icon|Class Paladin Hotbar Icon.png|{{{2|25}}}|link=Paladin}} [[Paladin|paladin]] | |||
| Ranger = {{Icon|Class Ranger Hotbar Icon.png|{{{2|25}}}|link=Ranger}} [[Ranger]] | | Ranger = {{Icon|Class Ranger Hotbar Icon.png|{{{2|25}}}|link=Ranger}} [[Ranger]] | ||
| ranger = {{Icon|Class Ranger Hotbar Icon.png|{{{2|25}}}|link=Ranger}} [[Ranger|ranger]] | |||
| Rogue = {{Icon|Class Rogue Hotbar Icon.png|{{{2|25}}}|link=Rogue}} [[Rogue]] | | Rogue = {{Icon|Class Rogue Hotbar Icon.png|{{{2|25}}}|link=Rogue}} [[Rogue]] | ||
| rogue = {{Icon|Class Rogue Hotbar Icon.png|{{{2|25}}}|link=Rogue}} [[Rogue|rogue]] | |||
| Sorcerer = {{Icon|Class Sorcerer Hotbar Icon.png|{{{2|25}}}|link=Sorcerer}} [[Sorcerer]] | | Sorcerer = {{Icon|Class Sorcerer Hotbar Icon.png|{{{2|25}}}|link=Sorcerer}} [[Sorcerer]] | ||
| sorcerer = {{Icon|Class Sorcerer Hotbar Icon.png|{{{2|25}}}|link=Sorcerer}} [[Sorcerer|sorcerer]] | |||
| Warlock = {{Icon|Class Warlock Hotbar Icon.png|{{{2|25}}}|link=Warlock}} [[Warlock]] | | Warlock = {{Icon|Class Warlock Hotbar Icon.png|{{{2|25}}}|link=Warlock}} [[Warlock]] | ||
| warlock = {{Icon|Class Warlock Hotbar Icon.png|{{{2|25}}}|link=Warlock}} [[Warlock|warlock]] | |||
| Wizard = {{Icon|Class Wizard Hotbar Icon.png|{{{2|25}}}|link=Wizard}} [[Wizard]] | | Wizard = {{Icon|Class Wizard Hotbar Icon.png|{{{2|25}}}|link=Wizard}} [[Wizard]] | ||
| wizard = {{Icon|Class Wizard Hotbar Icon.png|{{{2|25}}}|link=Wizard}} [[Wizard|wizard]] | |||
| Berserker = {{Icon|Class Barbarian Berserker Hotbar Icon.png|{{{2|25}}}|link=Berserker}} [[Berserker]] {{#if: {{{noparent|}}}||[[Barbarian]]}} | | Berserker = {{Icon|Class Barbarian Berserker Hotbar Icon.png|{{{2|25}}}|link=Berserker}} [[Berserker]] {{#if: {{{noparent|}}}||[[Barbarian]]}} | ||
| Wildheart = {{Icon|Class Barbarian Wildheart Hotbar Icon.png|{{{2|25}}}|link=Wildheart}} [[Wildheart]] {{#if: {{{noparent|}}}||[[Barbarian]]}} | | Wildheart = {{Icon|Class Barbarian Wildheart Hotbar Icon.png|{{{2|25}}}|link=Wildheart}} [[Wildheart]] {{#if: {{{noparent|}}}||[[Barbarian]]}} |
Revision as of 18:09, 27 October 2023
Insert a pre-formatted link and icon to a class or subclass page. See below for the full list of accepted class and subclass values. All values are case sensitive.
Usage:
{{Class|Wizard}}
Result: Wizard
Second parameter is optional, for adjusting the size of the icon.
Usage:
{{Class|Barbarian|35}}
Result: File:Class Barbarian Hotbar Icon.png Barbarian
For subclasses, only name the subclass:
Usage:
{{Class|Oath of the Ancients}}
Result: Oath of the Ancients Paladin
"Wild Magic" is ambiguous, as there is a Barbarian and Sorcerer version; use "Wild Magic Barbarian" or "Wild Magic Sorcerer" to specify which you mean.
If you don't wish to have the parent class shown while displaying a subclass, use 'noparent':
Usage:
{{Class|Oath of the Ancients|noparent}}
Result: Oath of the Ancients
Auto-generated TemplateData documentation follows.
Insert a pre-formatted link and icon to a class or subclass page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
class or subclass | 1 | The class or subclass page you want to link to. Subclasses will automatically insert the parent class name for you.
| String | required |
icon size | 2 | (Optional) The size of the icon to display. Default is 25 (pixels).
| Number | optional |
no parent link | noparent | (Optional) Ignore adding the parent class | Unknown | optional |