Template:Class: Difference between revisions

Jump to navigation Jump to search
add some documentation and TemplateData
(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>

Navigation menu