Template:MainClass: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#switch:{{{1|}}} | Berserker = Barbarian | Wildheart = Barbarian | Wild Magic = Barbarian | College of Lore = Bard | College of Swords = Bard | College of Valor = Bard | Knowledge Domain = Cleric | Life Domain = Cleric | Light Domain = Cleric | Nature Domain = Cleric | Tempest Domain = Cleric | Trickery Domain = Cleric | War Domain = Cleric | Circle of the Land = Druid | Circle of the Moon = Druid | Circle of Spores = Druid | Battle Master = Fighter | Cham...") |
(Valor -> Valour) |
||
Line 5: | Line 5: | ||
| College of Lore = Bard | | College of Lore = Bard | ||
| College of Swords = Bard | | College of Swords = Bard | ||
| College of | | College of Valour = Bard | ||
| Knowledge Domain = Cleric | | Knowledge Domain = Cleric | ||
| Life Domain = Cleric | | Life Domain = Cleric |
Latest revision as of 18:05, 5 September 2023
Returns the main class based on a subclass. Useful for auto-generation, sometimes. Note that it is sensitive to capitalisation!
Usage:
{{MainClass|Illusion}}
{{MainClass|Circle of Spores}}
Result:
Wizard
Druid
It doesn't do anything if the entered value does not match to a subclass.
{{MainClass|Astarion}}
→ Astarion