Template:Class: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Fixed incorrect icon for sorcerer)
 
(51 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}
| Barbarian = {{Icon|Barbarian Class 300px.png|{{{2|25}}}|link=Barbarian}} [[Barbarian]]
| Barbarian = {{#lvardef: icon | Barbarian Icon Small.webp}}
| Bard = {{Icon|Bard Class Icon.png|{{{2|25}}}|link=Bard}} [[Bard]]
| Bard = {{#lvardef: icon | Class Bard Hotbar Icon.png}}
| Cleric = {{Icon|Cleric Class 300px.png|{{{2|25}}}|link=Cleric}} [[Cleric]]
| Cleric = {{#lvardef: icon | Class Cleric Hotbar Icon.png}}
| Druid = {{Icon|Druid Class 300px.png|{{{2|25}}}|link=Druid}} [[Druid]]
| Druid = {{#lvardef: icon | Druid Icon Small.webp}}
| Fighter = {{Icon|Fighter Class Icon.png|{{{2|25}}}|link=Fighter}} [[Fighter]]
| Fighter = {{#lvardef: icon | Class Fighter Hotbar Icon.png}}
| Monk = {{Icon|Monk Class Icon.png|{{{2|25}}}|link=Monk}} [[Monk]]
| Monk = {{#lvardef: icon | Monk Icon Small.webp}}
| Paladin = {{Icon|Paladin Class Icon.png|{{{2|25}}}|link=Paladin}} [[Paladin]]
| Paladin = {{#lvardef: icon | Paladin Icon Small.webp}}
| Ranger = {{Icon|Ranger Class Icon.png|{{{2|25}}}|link=Ranger}} [[Ranger]]
| Ranger = {{#lvardef: icon | Class Ranger Hotbar Icon.png}}
| Rogue = {{Icon|Rogue Class Icon.png|{{{2|25}}}|link=Rogue}} [[Rogue]]
| Rogue = {{#lvardef: icon | Class Rogue Hotbar Icon.png}}
| Sorcerer = {{Icon|Sorcerer Class Icon.png|{{{2|25}}}|link=Sorcerer}} [[Sorcerer]]
| Sorcerer = {{#lvardef: icon | Class Sorcerer Hotbar Icon.png}}
| Warlock = {{Icon|Warlock Class Icon.png|{{{2|25}}}|link=Warlock}} [[Warlock]]
| Warlock = {{#lvardef: icon | Class Warlock Hotbar Icon.png}}
| Wizard = {{Icon|Wizard Class Icon.png|{{{2|25}}}|link=Wizard}} [[Wizard]]
| Wizard = {{#lvardef: icon | Class Wizard Hotbar Icon.png}}
| Berserker = {{Icon|Berserker Subclass 300px.png|{{{2|25}}}|link=Berserker}} [[Berserker]] [[Barbarian]]
| Berserker = {{#lvardef: icon | Class Barbarian Berserker Hotbar Icon.png}}
| Wildheart = {{Icon|Wildheart Subclass 300px.png|{{{2|25}}}|link=Wildheart}} [[Wildheart]] [[Barbarian]]
| Wildheart = {{#lvardef: icon | Class Barbarian Wildheart Hotbar Icon.png}}
| College Of Lore = {{Icon|College Of Lore Icon.png|{{{2|25}}}|link=College of Lore}} [[College of Lore]] [[Bard]]
| Wild Magic (barbarian subclass) | Wild Magic Barbarian = {{#lvardef: icon | Class Barbarian Wild Magic Hotbar Icon.png}}
| College Of Valor = {{Icon|College Of Valor Icon.png|{{{2|25}}}|link=College of Valour}} [[College of Valour]] [[Bard]]
| College of Lore = {{#lvardef: icon | Class Bard Lore Hotbar Icon.png}}
| Life Domain = {{Icon|Life Domain Subclass 300px.png|{{{2|25}}}|link=Life Domain}} [[Life Domain]] [[Cleric]]
| College of Valour = {{#lvardef: icon | Class Bard Valour Hotbar Icon.png}}
| Light Domain = {{Icon|Light Domain Subclass 300px.png|{{{2|25}}}|link=Light Domain}} [[Light Domain]] [[Cleric]]
| College of Swords = {{#lvardef: icon | Class Bard Swords Hotbar Icon.png}}
| Trickery Domain = {{Icon|Trickery Domain Subclass 300px.png|{{{2|25}}}|link=Trickery Domain}} [[Trickery Domain]] [[Cleric]]
| Knowledge Domain = {{#lvardef: icon | Class Cleric Knowledge Hotbar Icon.png}}
| Circle Of The Land = {{Icon|Circle Of The Land Icon.png|{{{2|25}}}|link=Circle of the Land}} [[Circle of the Land]] [[Druid]]
| Life Domain = {{#lvardef: icon | Class Cleric Life Hotbar Icon.png}}
| Circle Of The Moon = {{Icon|Circle_Of_The_Moon_Icon.png|{{{2|25}}}|link=Circle of the Moon}} [[Circle of the Moon]] [[Druid]]
| Light Domain = {{#lvardef: icon | Class Cleric Light Hotbar Icon.png}}
| Battle Master = {{Icon|Battle Master Icon.png|{{{2|25}}}|link=Battle Master}} [[Battle Master]] [[Fighter]]
| Nature Domain = {{#lvardef: icon | Class Cleric Nature Hotbar Icon.png}}
| Eldritch Knight = {{Icon|Eldritch Knight Icon.png|{{{2|25}}}|link=Eldritch Knight}} [[Eldritch Knight]] [[Fighter]]
| Tempest Domain = {{#lvardef: icon | Class Cleric Tempest Hotbar Icon.png}}
| Oath of the Ancients = {{Icon|Paladin Oath of the Ancients Icon.png|{{{2|25}}}|link=Oath of the Ancients}} [[Oath of the Ancients]] [[Paladin]]
| Trickery Domain = {{#lvardef: icon | Class Cleric Trickery Hotbar Icon.png}}
| Oath of Devotion = {{Icon|Paladin Oath of Devotion Icon.png|{{{2|25}}}|link=Oath of Devotion}} [[Oath of Devotion]] [[Paladin]]
| War Domain = {{#lvardef: icon | Class Cleric War Hotbar Icon.png}}
| Oathbreaker = {{Icon|Paladin Oathbreaker Icon.png|{{{2|25}}}|link=Oathbreaker}} [[Oathbreaker]] [[Paladin]]
| Circle of the Land = {{#lvardef: icon | Class Druid Land Hotbar Icon.png}}
| Hunter = {{Icon|Hunter Icon.png|{{{2|25}}}|link=Hunter}} [[Hunter]] [[Ranger]]
| Circle of the Moon = {{#lvardef: icon | Class Druid Moon Hotbar Icon.png}}
| Beast Master = {{Icon|Beast Master Icon.png|{{{2|25}}}|link=Beast Master}} [[Beast Master]] [[Ranger]]
| Circle of the Spores = {{#lvardef: icon | Class Druid Spores Hotbar Icon.png}}
| Arcane Trickster = {{Icon|Arcane Trickster Icon old.png|{{{2|25}}}|link=Arcane Trickster}} [[Arcane Trickster]] [[Rogue]]
| Battle Master = {{#lvardef: icon | Class Fighter Battle Master Hotbar Icon.png}}
| Thief = {{Icon|Thief Icon.png|{{{2|25}}}|link=Thief}} [[Thief]] [[Rogue]]
| Champion = {{#lvardef: icon | Class Fighter Champion Hotbar Icon.png}}
| Draconic Bloodline = {{Icon|Draconic Bloodline Subclass Icon.png|{{{2|25}}}|link=Draconic Bloodline}} [[Draconic Bloodline]] [[Sorcerer]]
| Eldritch Knight = {{#lvardef: icon | Class Fighter Eldritch Knight Hotbar Icon.png}}
| Wild Magic = {{Icon|Wild Magic Subclass Icon.png|{{{2|25}}}|link=Wild Magic}} [[Wild Magic]] [[Sorcerer]]
| Way of the Four Elements = {{#lvardef: icon | Class Monk Four Elements Hotbar Icon.png}}
| The Fiend = {{Icon|The Fiend Subclass Icon.png|{{{2|25}}}|link=The Fiend}} [[The Fiend]] [[Warlock]]
| Way of the Open Hand = {{#lvardef: icon | Class Monk Open Hand Hotbar Icon.png}}
| The Great Old One = {{Icon|The Great Old One Subclass Icon.png|{{{2|25}}}|link=The Great Old One}} [[The Great Old One]] [[Warlock]]
| Way of Shadow = {{#lvardef: icon | Class Monk Shadow Hotbar Icon.png}}
| Abjuration = {{Icon|Abjuration School Subclass Icon.png|{{{2|25}}}|link=Abjuration School}} [[Abjuration School]] [[Wizard]]
| Oath of the Ancients = {{#lvardef: icon | Class Paladin Ancients Hotbar Icon.png}}
| Evocation = {{Icon|Evocation School Subclass Icon.png|{{{2|25}}}|link=Evocation School}} [[Evocation School]] [[Wizard]]
| Oath of Devotion = {{#lvardef: icon | Class Paladin Devotion Hotbar Icon.png}}
}}</includeonly><noinclude>
| Oath of Vengeance = {{#lvardef: icon | Class Paladin Vengeance Hotbar Icon.png}}
Usage:
| Oathbreaker = {{#lvardef: icon | Class Paladin Oathbreaker Hotbar Icon.png}}
| Hunter = {{#lvardef: icon | Class Ranger Hunter Hotbar Icon.png}}
| Beast Master = {{#lvardef: icon | Class Ranger Beast Master Hotbar Icon.png}}
| Gloom Stalker = {{#lvardef: icon | Class Ranger Gloom Stalker Hotbar Icon.png}}
| Arcane Trickster = {{#lvardef: icon | Class Rogue Arcane Trickster Hotbar Icon.png}}
| Thief = {{#lvardef: icon | Class Rogue Thief Hotbar Icon.png}}
| Assassin  = {{#lvardef: icon | Class Rogue Assassin Hotbar Icon.png}}
| Draconic Bloodline = {{#lvardef: icon | Class Sorcerer Draconic Bloodline Hotbar Icon.png}}
| Storm Sorcery = {{#lvardef: icon | Class Sorcerer Storm Sorcery Hotbar Icon.png}}
| Wild Magic Sorcerer| Wild Magic (sorcerer subclass) = {{#lvardef: icon | Class Sorcerer Wild Magic Hotbar Icon.png}}
| The Fiend = {{#lvardef: icon | Class Warlock Fiend Hotbar Icon.png}}
| The Great Old One = {{#lvardef: icon | Class Warlock Great Old One Hotbar Icon.png}}
| The Archfey = {{#lvardef: icon | Class Warlock Archfey Hotbar Icon.png}}
| Abjuration School = {{#lvardef: icon | Class Wizard Abjuration Hotbar Icon.png}}
| Conjuration School = {{#lvardef: icon | Class Wizard Conjuration Hotbar Icon.png}}
| Divination School = {{#lvardef: icon | Class Wizard Divination Hotbar Icon.png}}
| Enchantment School = {{#lvardef: icon | Class Wizard Enchantment Hotbar Icon.png}}
| Evocation School = {{#lvardef: icon | Class Wizard Evocation Hotbar Icon.png}}
| Illusion School = {{#lvardef: icon | Class Wizard Illusion Hotbar Icon.png}}
| Necromancy School = {{#lvardef: icon | Class Wizard Necromancy Hotbar Icon.png}}
| Transmutation School = {{#lvardef: icon | Class Wizard Transmutation Hotbar Icon.png}}
}}{{#if: {{#lvar: icon}}
| {{IconLink|{{#lvar: icon}}|{{{1}}}|{{{2|{{{1}}}}}}|size={{{w|25}}}|nowrap=y}}
| [[{{{1}}}|{{{2|{{{1}}}}}}]]
}}</includeonly><noinclude>{{documentation|content=
Insert a link to one of the [[Classes|classes]], accompanied by the associated icon.


{{code|<nowiki>{{Class|Wizard}}</nowiki>}}
== 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).


Result: {{Class|Wizard}}
== 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>
}}


{{code|<nowiki>{{Class|Barbarian|35}}</nowiki>}}
== 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|Wildheart}}
* {{Class|Wild Magic (barbarian subclass)}}
* {{Class|Wild Magic Barbarian}}
* {{Class|College of Lore}}
* {{Class|College of Valour}}
* {{Class|College of Swords}}
* {{Class|Knowledge Domain}}
* {{Class|Life Domain}}
* {{Class|Light Domain}}
* {{Class|Nature Domain}}
* {{Class|Tempest Domain}}
* {{Class|Trickery Domain}}
* {{Class|War Domain}}
* {{Class|Circle of the Land}}
* {{Class|Circle of the Moon}}
* {{Class|Circle of the Spores}}
* {{Class|Battle Master}}
* {{Class|Champion}}
* {{Class|Eldritch Knight}}
* {{Class|Way of the Four Elements}}
* {{Class|Way of the Open Hand}}
* {{Class|Way of Shadow}}
* {{Class|Oath of the Ancients}}
* {{Class|Oath of Devotion}}
* {{Class|Oath of Vengeance}}
* {{Class|Oathbreaker}}
* {{Class|Hunter}}
* {{Class|Beast Master}}
* {{Class|Gloom Stalker}}
* {{Class|Arcane Trickster}}
* {{Class|Thief}}
* {{Class|Assassin}}
* {{Class|Draconic Bloodline}}
* {{Class|Storm Sorcery}}
* {{Class|Wild Magic Sorcerer}}
* {{Class|Wild Magic (sorcerer subclass)}}
* {{Class|The Fiend}}
* {{Class|The Great Old One}}
* {{Class|The Archfey}}
* {{Class|Abjuration School}}
* {{Class|Conjuration School}}
* {{Class|Divination School}}
* {{Class|Enchantment School}}
* {{Class|Evocation School}}
* {{Class|Illusion School}}
* {{Class|Necromancy School}}
* {{Class|Transmutation School}}


Result: {{Class|Barbarian|35}}
== See also ==
* {{t link|Ability}} - An equivalent template for [[abilities|ability scores]]
* {{t link|Background}} - An equivalent template for [[backgrounds]]
* {{t link|Deity}} - An equivalent template for [[deities]]
* {{t link|Race}} - An equivalent template for [[races]]
* {{t link|Skill}} - An equivalent template for [[skills]]


For subclasses just name the subclass (case sensitive!):
== Template data==
 
<templatedata>
Usage:
{
 
"params": {
{{code|<nowiki>{{Class|Oath of the Ancients}}</nowiki>}}
"1": {
 
"type": "string",
Result: {{Class|Oath of the Ancients}}
"suggestedvalues": [
[[Category:Templates]]
"Barbarian",
"Bard",
"Cleric",
"Druid",
"Fighter",
"Monk",
"Paladin",
"Ranger",
"Rogue",
"Sorcerer",
"Warlock",
"Wizard",
"Berserker",
"Wildheart",
"Wild Magic Barbarian",
                "Wild Magic (barbarian subclass)",
"College of Lore",
"College of Valour",
"College of Swords",
"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",
"Battle Master",
"Champion",
"Eldritch Knight",
"Way of the Four Elements",
"Way of the Open Hand",
"Way of Shadow",
"Oath of the Ancients",
"Oath of Devotion",
"Oath of Vengeance",
"Oathbreaker",
"Hunter",
"Beast Master",
"Gloom Stalker",
"Assassin",
"Arcane Trickster",
"Thief",
"Draconic Bloodline",
"Storm Sorcery",
"Wild Magic Sorcerer",
                "Wild Magic (sorcerer subclass)",
                "The Archfey",
"The Fiend",
"The Great Old One",
"Abjuration School",
"Conjuration School",
"Divination School",
"Enchantment School",
"Evocation School",
"Illusion School",
"Necromancy School",
"Transmutation School"
],
"required": true,
"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."
},
        "2": {
"label": "Alias",
"description": "A user-defined alias to be shown instead of the class name.",
"type": "string"
},
"2": {
"type": "number",
"suggestedvalues": [
"25",
"35"
],
"label": "icon size",
"description": "(Optional) The size of the icon to display. Default is 25 (pixels)."
}
},
"description": "Insert a pre-formatted link and icon to a class or subclass page."
}
</templatedata>}}
[[Category: Templates]]
[[Category: Link templates]]
</noinclude>
</noinclude>

Latest revision as of 16:29, 18 September 2024

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 Wildheart Wild Magic Barbarian Wild Magic (barbarian subclass) College of Lore College of Valour College of Swords 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 Battle Master Champion Eldritch Knight Way of the Four Elements Way of the Open Hand Way of Shadow Oath of the Ancients Oath of Devotion Oath of Vengeance Oathbreaker Hunter Beast Master Gloom Stalker Assassin Arcane Trickster Thief Draconic Bloodline Storm Sorcery Wild Magic Sorcerer Wild Magic (sorcerer subclass) The Archfey The Fiend The Great Old One Abjuration School 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