Template:Class: Difference between revisions
Guybrush42 (talk | contribs) m (Added note about Wild Magic subclasses) |
No edit summary |
||
(17 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1|}}} | <includeonly>{{#switch:{{{1|}}} | ||
| Barbarian = | | Barbarian = [[Barbarian]] | ||
| Bard = | | Bard = [[Bard]] | ||
| | | Cleric = [[Cleric]] | ||
| | | Druid = [[Druid]] | ||
| | | Fighter = [[Fighter]] | ||
| | | Monk = [[Monk]] | ||
| | | Paladin = [[Paladin]] | ||
| | | Ranger = [[Ranger]] | ||
| Rogue = [[Rogue]] | |||
| | | Sorcerer = [[Sorcerer]] | ||
| | | Warlock = [[Warlock]] | ||
| | | Wizard = [[Wizard]] | ||
| | | Berserker = [[Berserker]] {{#if: {{{noparent|}}}||[[Barbarian]]}} | ||
| Wildheart = [[Wildheart]] {{#if: {{{noparent|}}}||[[Barbarian]]}} | |||
| Wild Magic Barbarian = [[Wild Magic (Barbarian subclass)|Wild Magic]] {{#if: {{{noparent|}}}||[[Barbarian]]}} | |||
| | | College of Lore = [[College of Lore]] {{#if: {{{noparent|}}}||[[Bard]]}} | ||
| College of Valour = [[College of Valour]] {{#if: {{{noparent|}}}||[[Bard]]}} | |||
| College of Swords = [[College of Swords]] {{#if: {{{noparent|}}}||[[Bard]]}} | |||
| Knowledge Domain = [[Knowledge Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}} | |||
| Life Domain = [[Life Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}} | |||
| Light Domain = [[Light Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}} | |||
| Nature Domain = [[Nature Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}} | |||
| Tempest Domain = [[Tempest Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}} | |||
| Trickery Domain = [[Trickery Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}} | |||
| | | War Domain =[[War Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}} | ||
| | | Circle of the Land = [[Circle of the Land]] {{#if: {{{noparent|}}}||[[Druid]]}} | ||
| Circle of the Moon = [[Circle of the Moon]] {{#if: {{{noparent|}}}||[[Druid]]}} | |||
| Circle of the Spores = [[Circle of the Spores]] {{#if: {{{noparent|}}}||[[Druid]]}} | |||
| Battle Master = [[Battle Master]] {{#if: {{{noparent|}}}||[[Fighter]]}} | |||
| Champion = [[Champion]] {{#if: {{{noparent|}}}||[[Fighter]]}} | |||
| Eldritch Knight = [[Eldritch Knight]] {{#if: {{{noparent|}}}||[[Fighter]]}} | |||
| | | Way of the Four Elements = [[Way of the Four Elements]] {{#if: {{{noparent|}}}||[[Monk]]}} | ||
| Way of the Open Hand = [[Way of the Open Hand]] {{#if: {{{noparent|}}}||[[Monk]]}} | |||
| Way of Shadow = [[Way of Shadow]] {{#if: {{{noparent|}}}||[[Monk]]}} | |||
| Oath of the Ancients = [[Oath of the Ancients]] {{#if: {{{noparent|}}}||[[Paladin]]}} | |||
| Oath of Devotion = [[Oath of Devotion]] {{#if: {{{noparent|}}}||[[Paladin]]}} | |||
| Oath of Vengeance = [[Oath of Vengeance]] {{#if: {{{noparent|}}}||[[Paladin]]}} | |||
| Oathbreaker = [[Oathbreaker]] {{#if: {{{noparent|}}}||[[Paladin]]}} | |||
| Hunter = [[Hunter]] {{#if: {{{noparent|}}}||[[Ranger]]}} | |||
| Beast Master = [[Beast Master]] {{#if: {{{noparent|}}}||[[Ranger]]}} | |||
| Gloom Stalker = [[Gloom Stalker]] {{#if: {{{noparent|}}}||[[Ranger]]}} | |||
| Arcane Trickster = [[Arcane Trickster]] {{#if: {{{noparent|}}}||[[Rogue]]}} | |||
| Thief = [[Thief]] {{#if: {{{noparent|}}}||[[Rogue]]}} | |||
| | | Assassin = [[Assassin]] {{#if: {{{noparent|}}}||[[Rogue]]}} | ||
| Draconic Bloodline = [[Draconic Bloodline]] {{#if: {{{noparent|}}}||[[Sorcerer]]}} | |||
| Storm Sorcery = [[Storm Sorcery]] {{#if: {{{noparent|}}}||[[Sorcerer]]}} | |||
| Wild Magic Sorcerer = [[Wild Magic (Sorcerer subclass)|Wild Magic]] {{#if: {{{noparent|}}}||[[Sorcerer]]}} | |||
| Fiend = [[The Fiend|Fiend]] {{#if: {{{noparent|}}}||[[Warlock]]}} | |||
| Great Old One = [[The Great Old One|Great Old One]] {{#if: {{{noparent|}}}||[[Warlock]]}} | |||
| Archfey =[[The Archfey|Archfey]] {{#if: {{{noparent|}}}||[[Warlock]]}} | |||
| Abjuration = [[Abjuration School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| Conjuration = [[Conjuration School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| Divination =[[Divination School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| Enchantment = [[Enchantment School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| Evocation = [[Evocation School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| Illusion = [[Illusion School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| Necromancy = [[Necromancy School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| Transmutation = [[Transmutation School]] {{#if: {{{noparent|}}}||[[Wizard]]}} | |||
| {{{1|}}} | | {{{1|}}} | ||
}}</includeonly><noinclude> | }}</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 89: | Line 88: | ||
Result: {{Class|Oath of the Ancients}} | Result: {{Class|Oath of the Ancients}} | ||
"Wild Magic" | "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: | |||
{{code|<nowiki>{{Class|Oath of the Ancients|noparent=yes}}</nowiki>}} | |||
Result: {{Class|Oath of the Ancients|noparent=yes}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
Line 148: | Line 157: | ||
"Draconic Bloodline", | "Draconic Bloodline", | ||
"Storm Sorcery", | "Storm Sorcery", | ||
"Wild Magic", | "Wild Magic Barbarian", | ||
"Wild Magic Sorcerer", | "Wild Magic Sorcerer", | ||
"Fiend", | "Fiend", | ||
Line 173: | Line 182: | ||
"label": "icon size", | "label": "icon size", | ||
"description": "(Optional) The size of the icon to display. Default is 25 (pixels)." | "description": "(Optional) The size of the icon to display. Default is 25 (pixels)." | ||
}, | |||
"noparent": { | |||
"label": "no parent link", | |||
"description": "(Optional) Ignore adding the parent class" | |||
} | } | ||
}, | }, | ||
"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> |
Latest revision as of 17: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 |