Template:Class: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1|}}} | |||
{{#switch:{{{1|}}} | |||
| Barbarian = [[Barbarian]] | | Barbarian = [[Barbarian]] | ||
| Bard = [[Bard]] | | Bard = [[Bard]] | ||
Line 60: | Line 59: | ||
| Transmutation = [[Transmutation School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | | Transmutation = [[Transmutation School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | ||
| {{{1|}}} | | {{{1|}}} | ||
}}</includeonly><noinclude>{{documentation|content=Should not be used in articles. | |||
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.''' | 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.''' | ||
Line 191: | Line 190: | ||
"description": "Insert a pre-formatted link and icon to a class or subclass page." | "description": "Insert a pre-formatted link and icon to a class or subclass page." | ||
} | } | ||
</templatedata></noinclude> | </templatedata>}}</noinclude> |
Revision as of 16:54, 5 January 2024
Should not be used in articles. 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: 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=yes}}
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 |