Template:Class: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Knowledge domain added)
(add some documentation and TemplateData)
Line 39: Line 39:
| {{{1|}}}
| {{{1|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
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:
Usage:


Line 44: Line 46:


Result: {{Class|Wizard}}
Result: {{Class|Wizard}}
----
Second parameter is optional, for adjusting the size of the icon.
Usage:


{{code|<nowiki>{{Class|Barbarian|35}}</nowiki>}}
{{code|<nowiki>{{Class|Barbarian|35}}</nowiki>}}
Line 49: Line 57:
Result: {{Class|Barbarian|35}}
Result: {{Class|Barbarian|35}}


For subclasses just name the subclass (case sensitive!):
----
 
For subclasses, only name the subclass:


Usage:
Usage:
Line 57: Line 67:
Result: {{Class|Oath of the Ancients}}
Result: {{Class|Oath of the Ancients}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
----
Auto-generated TemplateData documentation follows.
 
<templatedata>
{
"params": {
"1": {
"type": "string",
"suggestedvalues": [
"Barbarian",
"Bard",
"Cleric",
"Druid",
"Fighter",
"Monk",
"Paladin",
"Ranger",
"Rogue",
"Sorcerer",
"Warlock",
"Wizard",
"Berserker",
"Wildheart",
"College of Lore",
"College of Valor",
"Life Domain",
"Light Domain",
"Knowledge Domain",
"Trickery Domain",
"Circle of the Land",
"Circle of the Moon",
"Battle Master",
"Eldritch Knight",
"Oath of the Ancients",
"Oath of Devotion",
"Oathbreaker",
"Hunter",
"Beast Master",
"Arcane Trickster",
"Thief",
"Draconic Bloodline",
"Fiend",
"Great Old One",
"Abjuration",
"Evocation",
"! SUBCLASS LIST CURRENTLY INCOMPLETE FOR THIS TEMPLATE - to be updated after release when each subclass has a page and icon !"
],
"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": {
"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></noinclude>

Revision as of 23:26, 31 July 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 Wizard


Second parameter is optional, for adjusting the size of the icon.

Usage:

{{Class|Barbarian|35}}

Result: Barbarian Barbarian


For subclasses, only name the subclass:

Usage:

{{Class|Oath of the Ancients}}

Result: Oath of the Ancients Oath of the Ancients Paladin


Auto-generated TemplateData documentation follows.

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 College of Lore College of Valor Life Domain Light Domain Knowledge Domain Trickery Domain Circle of the Land Circle of the Moon Battle Master Eldritch Knight Oath of the Ancients Oath of Devotion Oathbreaker Hunter Beast Master Arcane Trickster Thief Draconic Bloodline Fiend Great Old One Abjuration Evocation ! SUBCLASS LIST CURRENTLY INCOMPLETE FOR THIS TEMPLATE - to be updated after release when each subclass has a page and icon !
Stringrequired
icon size2

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

Suggested values
25 35
Numberoptional