Template:Class: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(there's a better way of doing this but this should so for now ... maybe)
Tag: Reverted
mNo edit summary
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}
| Barbarian = {{Icon|Class Barbarian Hotbar Icon.png|{{{2|25}}}|link=Barbarian}} [[Barbarian]]
| Barbarian = {{#lvardef: icon | Barbarian Icon Small.webp}}
| barbarian = {{Icon|Class Barbarian Hotbar Icon.png|{{{2|25}}}|link=Barbarian}} [[Barbarian|barbarian]]
| Bard = {{#lvardef: icon | Class Bard Hotbar Icon.png}}
| Bard = {{Icon|Class Bard Hotbar Icon.png|{{{2|25}}}|link=Bard}} [[Bard]]
| Cleric = {{#lvardef: icon | Class Cleric Hotbar Icon.png}}
| bard = {{Icon|Class Bard Hotbar Icon.png|{{{2|25}}}|link=Bard}} [[Bard|bard]]
| Druid = {{#lvardef: icon | Druid Icon Small.webp}}
| Cleric = {{Icon|Class Cleric Hotbar Icon.png|{{{2|25}}}|link=Cleric}} [[Cleric]]
| Fighter = {{#lvardef: icon | Class Fighter Hotbar Icon.png}}
| cleric = {{Icon|Class Cleric Hotbar Icon.png|{{{2|25}}}|link=Cleric}} [[Cleric|cleric]]
| Monk = {{#lvardef: icon | Monk Icon Small.webp}}
| Druid = {{Icon|Class Druid Hotbar Icon.png|{{{2|25}}}|link=Druid}} [[Druid]]
| Paladin = {{#lvardef: icon | Paladin Icon Small.webp}}
| druid = {{Icon|Class Druid Hotbar Icon.png|{{{2|25}}}|link=Druid}} [[Druid|druid]]
| Ranger = {{#lvardef: icon | Class Ranger Hotbar Icon.png}}
| Fighter = {{Icon|Class Fighter Hotbar Icon.png|{{{2|25}}}|link=Fighter}} [[Fighter]]
| Rogue = {{#lvardef: icon | Class Rogue Hotbar Icon.png}}
| fighter = {{Icon|Class Fighter Hotbar Icon.png|{{{2|25}}}|link=Fighter}} [[Fighter|fighter]]
| Sorcerer = {{#lvardef: icon | Class Sorcerer Hotbar Icon.png}}
| Monk = {{Icon|Class Monk Hotbar Icon.png|{{{2|25}}}|link=Monk}} [[Monk]]
| Warlock = {{#lvardef: icon | Class Warlock Hotbar Icon.png}}
| monk = {{Icon|Class Monk Hotbar Icon.png|{{{2|25}}}|link=Monk}} [[Monk|monk]]
| Wizard = {{#lvardef: icon | Class Wizard Hotbar Icon.png}}
| Paladin = {{Icon|Class Paladin Hotbar Icon.png|{{{2|25}}}|link=Paladin}} [[Paladin]]
| Berserker = {{#lvardef: icon | Class Barbarian Berserker Hotbar Icon.png}}
| paladin = {{Icon|Class Paladin Hotbar Icon.png|{{{2|25}}}|link=Paladin}} [[Paladin|paladin]]
| Wildheart = {{#lvardef: icon | Class Barbarian Wildheart Hotbar Icon.png}}
| Ranger = {{Icon|Class Ranger Hotbar Icon.png|{{{2|25}}}|link=Ranger}} [[Ranger]]
| Giant (barbarian subclass) | Giant Barbarian = {{#lvardef: icon | Class Barbarian Giant Hotbar Icon.png}}
| ranger = {{Icon|Class Ranger Hotbar Icon.png|{{{2|25}}}|link=Ranger}} [[Ranger|ranger]]
| Wild Magic (barbarian subclass) | Wild Magic Barbarian = {{#lvardef: icon | Class Barbarian Wild Magic Hotbar Icon.png}}
| Rogue = {{Icon|Class Rogue Hotbar Icon.png|{{{2|25}}}|link=Rogue}} [[Rogue]]
| College of Glamour = {{#lvardef: icon | Class Bard Glamour Hotbar Icon.png}}
| rogue = {{Icon|Class Rogue Hotbar Icon.png|{{{2|25}}}|link=Rogue}} [[Rogue|rogue]]
| College of Lore = {{#lvardef: icon | Class Bard Lore Hotbar Icon.png}}
| Sorcerer = {{Icon|Class Sorcerer Hotbar Icon.png|{{{2|25}}}|link=Sorcerer}} [[Sorcerer]]
| College of Valour = {{#lvardef: icon | Class Bard Valour Hotbar Icon.png}}
| sorcerer = {{Icon|Class Sorcerer Hotbar Icon.png|{{{2|25}}}|link=Sorcerer}} [[Sorcerer|sorcerer]]
| College of Swords = {{#lvardef: icon | Class Bard Swords Hotbar Icon.png}}
| Warlock = {{Icon|Class Warlock Hotbar Icon.png|{{{2|25}}}|link=Warlock}} [[Warlock]]
| Death Domain = {{#lvardef: icon | Class Cleric Death Hotbar Icon.png}}
| warlock = {{Icon|Class Warlock Hotbar Icon.png|{{{2|25}}}|link=Warlock}} [[Warlock|warlock]]
| Knowledge Domain = {{#lvardef: icon | Class Cleric Knowledge Hotbar Icon.png}}
| Wizard = {{Icon|Class Wizard Hotbar Icon.png|{{{2|25}}}|link=Wizard}} [[Wizard]]
| Life Domain = {{#lvardef: icon | Class Cleric Life Hotbar Icon.png}}
| wizard = {{Icon|Class Wizard Hotbar Icon.png|{{{2|25}}}|link=Wizard}} [[Wizard|wizard]]
| Light Domain = {{#lvardef: icon | Class Cleric Light Hotbar Icon.png}}
| Berserker = {{Icon|Class Barbarian Berserker Hotbar Icon.png|{{{2|25}}}|link=Berserker}} [[Berserker]] {{#if: {{{noparent|}}}||[[Barbarian]]}}
| Nature Domain = {{#lvardef: icon | Class Cleric Nature Hotbar Icon.png}}
| Wildheart = {{Icon|Class Barbarian Wildheart Hotbar Icon.png|{{{2|25}}}|link=Wildheart}} [[Wildheart]] {{#if: {{{noparent|}}}||[[Barbarian]]}}
| Tempest Domain = {{#lvardef: icon | Class Cleric Tempest Hotbar Icon.png}}
| Wild Magic Barbarian = {{Icon|Class Barbarian Wild Magic Hotbar Icon.png|{{{2|25}}}|link=Wild Magic (Barbarian Subclass)}} [[Wild Magic (Barbarian Subclass)|Wild Magic]] {{#if: {{{noparent|}}}||[[Barbarian]]}}
| Trickery Domain = {{#lvardef: icon | Class Cleric Trickery Hotbar Icon.png}}
| College of Lore = {{Icon|Class Bard Lore Hotbar Icon.png|{{{2|25}}}|link=College of Lore}} [[College of Lore]] {{#if: {{{noparent|}}}||[[Bard]]}}
| War Domain = {{#lvardef: icon | Class Cleric War Hotbar Icon.png}}
| College of Valour = {{Icon|Class Bard Valour Hotbar Icon.png|{{{2|25}}}|link=College of Valour}} [[College of Valour]] {{#if: {{{noparent|}}}||[[Bard]]}}
| Circle of Stars = {{#lvardef: icon | Class Druid Stars Hotbar Icon.png}}
| College of Swords = {{Icon|Class Bard Swords Hotbar Icon.png|{{{2|25}}}|link=College of Swords}} [[College of Swords]] {{#if: {{{noparent|}}}||[[Bard]]}}
| Circle of the Land = {{#lvardef: icon | Class Druid Land Hotbar Icon.png}}
| Knowledge Domain = {{Icon|Class Cleric Knowledge Hotbar Icon.png|{{{2|25}}}|link=Knowledge Domain}} [[Knowledge Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}}
| Circle of the Moon = {{#lvardef: icon | Class Druid Moon Hotbar Icon.png}}
| Life Domain = {{Icon|Class Cleric Life Hotbar Icon.png|{{{2|25}}}|link=Life Domain}} [[Life Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}}
| Circle of the Spores = {{#lvardef: icon | Class Druid Spores Hotbar Icon.png}}
| Light Domain = {{Icon|Class Cleric Light Hotbar Icon.png|{{{2|25}}}|link=Light Domain}} [[Light Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}}
| Arcane Archer = {{#lvardef: icon | Class Fighter Arcane Archer Hotbar Icon.png}}
| Nature Domain = {{Icon|Class Cleric Nature Hotbar Icon.png|{{{2|25}}}|link=Nature Domain}} [[Nature Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}}
| Battle Master = {{#lvardef: icon | Class Fighter Battle Master Hotbar Icon.png}}
| Tempest Domain = {{Icon|Class Cleric Tempest Hotbar Icon.png|{{{2|25}}}|link=Tempest Domain}} [[Tempest Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}}
| Champion = {{#lvardef: icon | Class Fighter Champion Hotbar Icon.png}}
| Trickery Domain = {{Icon|Class Cleric Trickery Hotbar Icon.png|{{{2|25}}}|link=Trickery Domain}} [[Trickery Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}}
| Eldritch Knight = {{#lvardef: icon | Class Fighter Eldritch Knight Hotbar Icon.png}}
| War Domain = {{Icon|Class Cleric War Hotbar Icon.png|{{{2|25}}}|link=War Domain}} [[War Domain]] {{#if: {{{noparent|}}}||[[Cleric]]}}
| Way of the Drunken Master = {{#lvardef: icon | Class Monk Drunken Master Hotbar Icon.png}}
| Circle of the Land = {{Icon|Class Druid Land Hotbar Icon.png|{{{2|25}}}|link=Circle of the Land}} [[Circle of the Land]] {{#if: {{{noparent|}}}||[[Druid]]}}
| Way of the Four Elements = {{#lvardef: icon | Class Monk Four Elements Hotbar Icon.png}}
| Circle of the Moon = {{Icon|Class Druid Moon Hotbar Icon.png|{{{2|25}}}|link=Circle of the Moon}} [[Circle of the Moon]] {{#if: {{{noparent|}}}||[[Druid]]}}
| Way of the Open Hand = {{#lvardef: icon | Class Monk Open Hand Hotbar Icon.png}}
| Circle of the Spores = {{Icon|Class Druid Spores Hotbar Icon.png|{{{2|25}}}|link=Circle the of Spores}} [[Circle of the Spores]] {{#if: {{{noparent|}}}||[[Druid]]}}
| Way of Shadow = {{#lvardef: icon | Class Monk Shadow Hotbar Icon.png}}
| Battle Master = {{Icon|Class Fighter Battle Master Hotbar Icon.png|{{{2|25}}}|link=Battle Master}} [[Battle Master]] {{#if: {{{noparent|}}}||[[Fighter]]}}
| Oath of the Ancients = {{#lvardef: icon | Class Paladin Ancients Hotbar Icon.png}}
| Champion = {{Icon|Class Fighter Champion Hotbar Icon.png|{{{2|25}}}|link=Champion}} [[Champion]] {{#if: {{{noparent|}}}||[[Fighter]]}}
| Oath of the Crown = {{#lvardef: icon | Class Paladin Crown Hotbar Icon.png}}
| Eldritch Knight = {{Icon|Class Fighter Eldritch Knight Hotbar Icon.png|{{{2|25}}}|link=Eldritch Knight}} [[Eldritch Knight]] {{#if: {{{noparent|}}}||[[Fighter]]}}
| Oath of Devotion = {{#lvardef: icon | Class Paladin Devotion Hotbar Icon.png}}
| Way of the Four Elements = {{Icon|Class Monk Four Elements Hotbar Icon.png|{{{2|25}}}|link=Way of the Four Elements}} [[Way of the Four Elements]] {{#if: {{{noparent|}}}||[[Monk]]}}
| Oath of Vengeance = {{#lvardef: icon | Class Paladin Vengeance Hotbar Icon.png}}
| Way of the Open Hand = {{Icon|Class Monk Open Hand Hotbar Icon.png|{{{2|25}}}|link=Way of the Open Hand}} [[Way of the Open Hand]] {{#if: {{{noparent|}}}||[[Monk]]}}
| Oathbreaker = {{#lvardef: icon | Class Paladin Oathbreaker Hotbar Icon.png}}
| Way of Shadow = {{Icon|Class Monk Shadow Hotbar Icon.png|{{{2|25}}}|link=Way of Shadow}} [[Way of Shadow]] {{#if: {{{noparent|}}}||[[Monk]]}}
| Hunter = {{#lvardef: icon | Class Ranger Hunter Hotbar Icon.png}}
| Oath of the Ancients = {{Icon|Class Paladin Ancients Hotbar Icon.png|{{{2|25}}}|link=Oath of the Ancients}} [[Oath of the Ancients]] {{#if: {{{noparent|}}}||[[Paladin]]}}
| Beast Master = {{#lvardef: icon | Class Ranger Beast Master Hotbar Icon.png}}
| Oath of Devotion = {{Icon|Class Paladin Devotion Hotbar Icon.png|{{{2|25}}}|link=Oath of Devotion}} [[Oath of Devotion]] {{#if: {{{noparent|}}}||[[Paladin]]}}
| Gloom Stalker = {{#lvardef: icon | Class Ranger Gloom Stalker Hotbar Icon.png}}
| Oath of Vengeance = {{Icon|Class Paladin Vengeance Hotbar Icon.png|{{{2|25}}}|link=Oath of Vengeance}} [[Oath of Vengeance]] {{#if: {{{noparent|}}}||[[Paladin]]}}
| Swarmkeeper = {{#lvardef: icon | Class Ranger Swarmkeeper Hotbar Icon.png}}
| Oathbreaker = {{Icon|Class Paladin Oathbreaker Hotbar Icon.png|{{{2|25}}}|link=Oathbreaker}} [[Oathbreaker]] {{#if: {{{noparent|}}}||[[Paladin]]}}
| Arcane Trickster = {{#lvardef: icon | Class Rogue Arcane Trickster Hotbar Icon.png}}
| Hunter = {{Icon|Class Ranger Hunter Hotbar Icon.png|{{{2|25}}}|link=Hunter}} [[Hunter]] {{#if: {{{noparent|}}}||[[Ranger]]}}
| Assassin  = {{#lvardef: icon | Class Rogue Assassin Hotbar Icon.png}}
| Beast Master = {{Icon|Class Ranger Beast Master Hotbar Icon.png|{{{2|25}}}|link=Beast Master}} [[Beast Master]] {{#if: {{{noparent|}}}||[[Ranger]]}}
| Swashbuckler = {{#lvardef: icon | Class Rogue Swashbuckler Hotbar Icon.png}}
| Gloom Stalker = {{Icon|Class Ranger Gloom Stalker Hotbar Icon.png|{{{2|25}}}|link=Gloom Stalker}} [[Gloom Stalker]] {{#if: {{{noparent|}}}||[[Ranger]]}}
| Thief = {{#lvardef: icon | Class Rogue Thief Hotbar Icon.png}}
| Arcane Trickster = {{Icon|Class Rogue Arcane Trickster Hotbar Icon.png|{{{2|25}}}|link=Arcane Trickster}} [[Arcane Trickster]] {{#if: {{{noparent|}}}||[[Rogue]]}}
| Draconic Bloodline = {{#lvardef: icon | Class Sorcerer Draconic Bloodline Hotbar Icon.png}}
| Thief = {{Icon|Class Rogue Thief Hotbar Icon.png|{{{2|25}}}|link=Thief}} [[Thief]] {{#if: {{{noparent|}}}||[[Rogue]]}}
| Shadow Magic = {{#lvardef: icon | Class Sorcerer Shadow Magic Hotbar Icon.png}}
| Assassin = {{Icon|Class Rogue Assassin Hotbar Icon.png|{{{2|25}}}|link=Assassin}} [[Assassin]] {{#if: {{{noparent|}}}||[[Rogue]]}}
| Storm Sorcery = {{#lvardef: icon | Class Sorcerer Storm Sorcery Hotbar Icon.png}}
| Draconic Bloodline = {{Icon|Class Sorcerer Draconic Bloodline Hotbar Icon.png|{{{2|25}}}|link=Draconic Bloodline}} [[Draconic Bloodline]] {{#if: {{{noparent|}}}||[[Sorcerer]]}}
| Wild Magic Sorcerer| Wild Magic (sorcerer subclass) = {{#lvardef: icon | Class Sorcerer Wild Magic Hotbar Icon.png}}
| Storm Sorcery = {{Icon|Class Sorcerer Storm Sorcery Hotbar Icon.png|{{{2|25}}}|link=Storm Sorcery}} [[Storm Sorcery]] {{#if: {{{noparent|}}}||[[Sorcerer]]}}
| The Archfey = {{#lvardef: icon | Class Warlock Archfey Hotbar Icon.png}}
| Wild Magic Sorcerer =  {{Icon|Class Sorcerer Wild Magic Hotbar Icon.png|{{{2|25}}}|link=Wild Magic}} [[Wild Magic (Sorcerer Subclass)|Wild Magic]] {{#if: {{{noparent|}}}||[[Sorcerer]]}}
| The Fiend = {{#lvardef: icon | Class Warlock Fiend Hotbar Icon.png}}
| Fiend = {{Icon|Class Warlock Fiend Hotbar Icon.png|{{{2|25}}}|link=The Fiend}} [[The Fiend|Fiend]] {{#if: {{{noparent|}}}||[[Warlock]]}}
| The Great Old One = {{#lvardef: icon | Class Warlock Great Old One Hotbar Icon.png}}
| Great Old One = {{Icon|Class Warlock Great Old One Hotbar Icon.png|{{{2|25}}}|link=The Great Old One|Great Old One}} [[The Great Old One|Great Old One]] {{#if: {{{noparent|}}}||[[Warlock]]}}
| The Hexblade = {{#lvardef: icon | Class Warlock Hexblade Hotbar Icon.png}}
| Archfey = {{Icon|Class Warlock Archfey Hotbar Icon.png|{{{2|25}}}|link=The Archfey|Archfey}} [[The Archfey|Archfey]] {{#if: {{{noparent|}}}||[[Warlock]]}}
| Abjuration School = {{#lvardef: icon | Class Wizard Abjuration Hotbar Icon.png}}
| Abjuration = {{Icon|Class Wizard Abjuration Hotbar Icon.png|{{{2|25}}}|link=Abjuration School}} [[Abjuration School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Bladesinging = {{#lvardef: icon | Class Wizard Bladesinging Hotbar Icon.png}}
| Conjuration = {{Icon|Class Wizard Conjuration Hotbar Icon.png|{{{2|25}}}|link=Conjuration School}} [[Conjuration School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Conjuration School = {{#lvardef: icon | Class Wizard Conjuration Hotbar Icon.png}}
| Divination = {{Icon|Class Wizard Divination Hotbar Icon.png|{{{2|25}}}|link=Divination School}} [[Divination School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Divination School = {{#lvardef: icon | Class Wizard Divination Hotbar Icon.png}}
| Enchantment = {{Icon|Class Wizard Enchantment Hotbar Icon.png|{{{2|25}}}|link=Enchantment School}} [[Enchantment School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Enchantment School = {{#lvardef: icon | Class Wizard Enchantment Hotbar Icon.png}}
| Evocation = {{Icon|Class Wizard Evocation Hotbar Icon.png|{{{2|25}}}|link=Evocation School}} [[Evocation School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Evocation School = {{#lvardef: icon | Class Wizard Evocation Hotbar Icon.png}}
| Illusion = {{Icon|Class Wizard Illusion Hotbar Icon.png|{{{2|25}}}|link=Illusion School}} [[Illusion School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Illusion School = {{#lvardef: icon | Class Wizard Illusion Hotbar Icon.png}}
| Necromancy = {{Icon|Class Wizard Necromancy Hotbar Icon.png|{{{2|25}}}|link=Necromancy School}} [[Necromancy School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Necromancy School = {{#lvardef: icon | Class Wizard Necromancy Hotbar Icon.png}}
| Transmutation = {{Icon|Class Wizard Transmutation Hotbar Icon.png|{{{2|25}}}|link=Transmutation School}} [[Transmutation School]] {{#if: {{{noparent|}}}||[[Wizard]]}}
| Transmutation School = {{#lvardef: icon | Class Wizard Transmutation Hotbar Icon.png}}
| {{{1|}}}
}}{{#if: {{#lvar: icon}}
}}</includeonly><noinclude>
| {{IconLink|{{#lvar: icon}}|{{{1}}}|{{{2|{{{1}}}}}}|size={{{w|25}}}|nowrap=y}}
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.'''
| [[{{{1}}}|{{{2|{{{1}}}}}}]]
}}</includeonly><noinclude>{{documentation|content=
Insert a link to one of the [[Classes|classes]], accompanied by the associated icon.


Usage:
== Usage ==
This is intended mainly for lists, not in-line in body content as per the [[Help:Style manual|Style Manual]]. The skill name is case sensitive and needs to exactly match (e.g. The Archfey, not The-Archfey).


{{code|<nowiki>{{Class|Wizard}}</nowiki>}}
== Examples ==
{{Template demo
| style = table
| caption 1 = Basic usage
| <nowiki>{{Class|Wizard}}</nowiki>
| caption 2 = Adjusted icon size
| <nowiki>{{Class|Barbarian|w=40}}</nowiki>
| caption 3 = Link alias
| <nowiki>{{Class|Oath of the Ancients|Ancients}}</nowiki>
| caption 4 = Alias and adjusted size
| <nowiki>{{Class|Wild Magic (barbarian subclass)|Wild Magic|w=20}}</nowiki>
}}


Result: {{Class|Wizard}}
== Exhaustive list ==
For sanity check:
* {{Class|Barbarian}}
* {{Class|Bard}}
* {{Class|Cleric}}
* {{Class|Druid}}
* {{Class|Fighter}}
* {{Class|Monk}}
* {{Class|Paladin}}
* {{Class|Ranger}}
* {{Class|Rogue}}
* {{Class|Sorcerer}}
* {{Class|Warlock}}
* {{Class|Wizard}}
* {{Class|Berserker}}
* {{Class|Giant (barbarian subclass)}}
* {{Class|Giant Barbarian}}
* {{Class|Wildheart}}
* {{Class|Wild Magic (barbarian subclass)}}
* {{Class|Wild Magic Barbarian}}
* {{Class|College of Glamour}}
* {{Class|College of Lore}}
* {{Class|College of Swords}}
* {{Class|College of Valour}}
* {{Class|Death Domain}}
* {{Class|Knowledge Domain}}
* {{Class|Life Domain}}
* {{Class|Light Domain}}
* {{Class|Nature Domain}}
* {{Class|Tempest Domain}}
* {{Class|Trickery Domain}}
* {{Class|War Domain}}
* {{Class|Circle of Stars}}
* {{Class|Circle of the Land}}
* {{Class|Circle of the Moon}}
* {{Class|Circle of the Spores}}
* {{Class|Arcane Archer}}
* {{Class|Battle Master}}
* {{Class|Champion}}
* {{Class|Eldritch Knight}}
* {{Class|Way of the Drunken Master}}
* {{Class|Way of the Four Elements}}
* {{Class|Way of the Open Hand}}
* {{Class|Way of Shadow}}
* {{Class|Oath of the Ancients}}
* {{Class|Oath of the Crown}}
* {{Class|Oath of Devotion}}
* {{Class|Oath of Vengeance}}
* {{Class|Oathbreaker}}
* {{Class|Hunter}}
* {{Class|Beast Master}}
* {{Class|Gloom Stalker}}
* {{Class|Swarmkeeper}}
* {{Class|Arcane Trickster}}
* {{Class|Assassin}}
* {{Class|Swashbuckler}}
* {{Class|Thief}}
* {{Class|Draconic Bloodline}}
* {{Class|Shadow Magic}}
* {{Class|Storm Sorcery}}
* {{Class|Wild Magic Sorcerer}}
* {{Class|Wild Magic (sorcerer subclass)}}
* {{Class|The Archfey}}
* {{Class|The Fiend}}
* {{Class|The Great Old One}}
* {{Class|The Hexblade}}
* {{Class|Abjuration School}}
* {{Class|Bladesinging}}
* {{Class|Conjuration School}}
* {{Class|Divination School}}
* {{Class|Enchantment School}}
* {{Class|Evocation School}}
* {{Class|Illusion School}}
* {{Class|Necromancy School}}
* {{Class|Transmutation School}}


----
== See also ==
 
* {{t link|Ability}} - An equivalent template for [[abilities|ability scores]]
Second parameter is optional, for adjusting the size of the icon.
* {{t link|Background}} - An equivalent template for [[backgrounds]]
 
* {{t link|Deity}} - An equivalent template for [[deities]]
Usage:
* {{t link|Race}} - An equivalent template for [[races]]
 
* {{t link|Skill}} - An equivalent template for [[skills]]
{{code|<nowiki>{{Class|Barbarian|35}}</nowiki>}}
 
Result: {{Class|Barbarian|35}}
 
----
 
For subclasses, only name the subclass:
 
Usage:
 
{{code|<nowiki>{{Class|Oath of the Ancients}}</nowiki>}}
 
Result: {{Class|Oath of the Ancients}}
 
"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}}</nowiki>}}
 
Result: {{Class|Oath of the Ancients|noparent=yes}}
 
[[Category:Templates]]
----
 
Auto-generated TemplateData documentation follows.


== Template data==
<templatedata>
<templatedata>
{
{
Line 136: Line 195:
"Wizard",
"Wizard",
"Berserker",
"Berserker",
"Giant Barbarian",
                "Giant (barbarian subclass)",
"Wildheart",
"Wildheart",
"Wild Magic Barbarian",
"Wild Magic Barbarian",
                "Wild Magic (barbarian subclass)",
"College of Lore",
"College of Lore",
"College of Valour",
"College of Valour",
"College of Swords",
"College of Swords",
"Death Domain",
"Knowledge Domain",
"Knowledge Domain",
"Life Domain",
"Life Domain",
Line 151: Line 214:
"Circle of the Moon",
"Circle of the Moon",
"Circle of the Spores",
"Circle of the Spores",
"Circle of the Stars",
"Arcane Archer",
"Battle Master",
"Battle Master",
"Champion",
"Champion",
"Eldritch Knight",
"Eldritch Knight",
"Way of the Drunken Master",
"Way of the Four Elements",
"Way of the Four Elements",
"Way of the Open Hand",
"Way of the Open Hand",
"Way of Shadow",
"Way of Shadow",
"Oath of the Ancients",
"Oath of the Ancients",
"Oath of the Crown",
"Oath of Devotion",
"Oath of Devotion",
"Oath of Vengeance",
"Oath of Vengeance",
Line 164: Line 231:
"Beast Master",
"Beast Master",
"Gloom Stalker",
"Gloom Stalker",
"Swarmkeeper",
"Assassin",
"Assassin",
"Arcane Trickster",
"Arcane Trickster",
"Swashbuckler",
"Thief",
"Thief",
"Draconic Bloodline",
"Draconic Bloodline",
"Shadow Magic",
"Storm Sorcery",
"Storm Sorcery",
"Wild Magic",
"Wild Magic Sorcerer",
                 "Wild Magic Sorcerer",
                 "Wild Magic (sorcerer subclass)",
"Fiend",
                "The Archfey",
"Great Old One",
"The Fiend",
"Abjuration",
"The Great Old One",
"Conjuration",
                "The Hexblade",
"Divination",
"Abjuration School",
"Enchantment",
"Bladesinging",
"Evocation",
"Conjuration School",
"Illusion",
"Divination School",
"Necromancy",
"Enchantment School",
"Transmutation"
"Evocation School",
"Illusion School",
"Necromancy School",
"Transmutation School"
],
],
"required": true,
"required": true,
"label": "class or subclass",
"label": "class or subclass",
"description": "The class or subclass page you want to link to. Subclasses will automatically insert the parent class name for you."
"description": "The class or subclass page you want to link to. Subclasses will automatically insert the parent class name for you."
},
        "2": {
"label": "Alias",
"description": "A user-defined alias to be shown instead of the class name.",
"type": "string"
},
},
"2": {
"2": {
Line 194: Line 272:
"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>}}
[[Category:Templates]]
[[Category:Link templates]]
</noinclude>

Latest revision as of 19:22, 28 January 2025

Template documentation

Insert a link to one of the classes, accompanied by the associated icon.

Usage

This is intended mainly for lists, not in-line in body content as per the Style Manual. The skill name is case sensitive and needs to exactly match (e.g. The Archfey, not The-Archfey).

Examples

Example Markup Renders as
Basic usage
{{Class|Wizard}}
Wizard Wizard
Adjusted icon size
{{Class|Barbarian|w=40}}
Barbarian Barbarian
Link alias
{{Class|Oath of the Ancients|Ancients}}
Ancients Ancients
Alias and adjusted size
{{Class|Wild Magic (barbarian subclass)|Wild Magic|w=20}}
Wild Magic Wild Magic

Exhaustive list

For sanity check:

See also

Template data

Insert a pre-formatted link and icon to a class or subclass page.

Template parameters

ParameterDescriptionTypeStatus
class or subclass1

The class or subclass page you want to link to. Subclasses will automatically insert the parent class name for you.

Suggested values
Barbarian Bard Cleric Druid Fighter Monk Paladin Ranger Rogue Sorcerer Warlock Wizard Berserker Giant Barbarian Giant (barbarian subclass) Wildheart Wild Magic Barbarian Wild Magic (barbarian subclass) College of Lore College of Valour College of Swords Death Domain Knowledge Domain Life Domain Light Domain Nature Domain Tempest Domain Trickery Domain War Domain Circle of the Land Circle of the Moon Circle of the Spores Circle of the Stars Arcane Archer Battle Master Champion Eldritch Knight Way of the Drunken Master Way of the Four Elements Way of the Open Hand Way of Shadow Oath of the Ancients Oath of the Crown Oath of Devotion Oath of Vengeance Oathbreaker Hunter Beast Master Gloom Stalker Swarmkeeper Assassin Arcane Trickster Swashbuckler Thief Draconic Bloodline Shadow Magic Storm Sorcery Wild Magic Sorcerer Wild Magic (sorcerer subclass) The Archfey The Fiend The Great Old One The Hexblade Abjuration School Bladesinging Conjuration School Divination School Enchantment School Evocation School Illusion School Necromancy School Transmutation School
Stringrequired
icon size2

(Optional) The size of the icon to display. Default is 25 (pixels).

Suggested values
25 35
Numberoptional