Template:Quote class: Difference between revisions
(Added parameter to specify custom quote or icon) |
m (Better handling of wild magic subclasses) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
| Berserker = Violence is both a means and an end. You follow a path of untrammelled fury, slick with blood, as you thrill in the chaos of battle, heedless of your own well-being. | | Berserker = Violence is both a means and an end. You follow a path of untrammelled fury, slick with blood, as you thrill in the chaos of battle, heedless of your own well-being. | ||
| Wildheart = Your attunement with nature and its beasts inspires your rage, empowering you with supernatural might. | | Wildheart = Your attunement with nature and its beasts inspires your rage, empowering you with supernatural might. | ||
| Wild Magic (barbarian subclass) | |||
| Wild Magic (Barbarian subclass) | |||
| Wild Magic Barbarian = The wild influence of magic has transformed you, suffusing you with an arcane power that churns within you, waiting to be released. | | Wild Magic Barbarian = The wild influence of magic has transformed you, suffusing you with an arcane power that churns within you, waiting to be released. | ||
Line 73: | Line 75: | ||
| Sorcerer = Sorcerers are natural spellcasters, drawing on inherent magic from a gift or bloodline. | | Sorcerer = Sorcerers are natural spellcasters, drawing on inherent magic from a gift or bloodline. | ||
| Draconic Bloodline = Your veins carry draconic magic, the result of a powerful dragon ancestor. | | Draconic Bloodline = Your veins carry draconic magic, the result of a powerful dragon ancestor. | ||
| Wild Magic (sorcerer subclass) | |||
| Wild Magic (Sorcerer subclass) | |||
| Wild Magic Sorcerer = Your powers come from ancient forces of chaos. They churn within you - waiting to burst free at any time. | | Wild Magic Sorcerer = Your powers come from ancient forces of chaos. They churn within you - waiting to burst free at any time. | ||
| Storm Sorcery = Whether crackling with the energy of ancient deluges or pierced by gales and hurricanes, your lineage is a strange tapestry scrawled by a tempest. | | Storm Sorcery = Whether crackling with the energy of ancient deluges or pierced by gales and hurricanes, your lineage is a strange tapestry scrawled by a tempest. | ||
Line 97: | Line 101: | ||
| image = {{{image|{{{1|}}} Icon.png}}} | | image = {{{image|{{{1|}}} Icon.png}}} | ||
| image-position = right | | image-position = right | ||
| image-align = edge | |||
| height = 160 | | height = 160 | ||
| font-size = 120% | | font-size = 120% | ||
| image-border-shape = none | |||
| link = {{{1|}}} | | link = {{{1|}}} | ||
}}}}</includeonly><noinclude>{{documentation|content= | }}}}</includeonly><noinclude>{{documentation|content= | ||
Display a class/subclass description quote accompanied by the beautiful class icon | Display a class/subclass description quote accompanied by the beautiful class icon. | ||
This template is a subtype of [[Template:Quote fancy]]. | This template is a subtype of [[Template:Quote fancy]]. | ||
== Usage == | |||
This template has a table of all the class quotes in the game extracted directly from the game files so the only required parameter is the name of the class. This parameter should match the name of a class/subclass page exactly. This is intended for use in class pages where {{c|<nowiki>{{PAGENAME}}</nowiki>}} can be used as the parameter. | |||
Alternatively, the quote and class image can be overridden with the parameters {{c|quote}} and {{c|image}}, but generally you should stick with the default behaviour. | |||
== Examples == | == Examples == | ||
{{Template demo | {{Template demo | ||
| style = list | | style = list | ||
| caption 1 = A base class quote. | |||
| <nowiki>{{Quote class|Warlock}}</nowiki> | | <nowiki>{{Quote class|Warlock}}</nowiki> | ||
| caption 2 = A subclass quote. | |||
| <nowiki>{{Quote class|College of Swords}}</nowiki> | | <nowiki>{{Quote class|College of Swords}}</nowiki> | ||
| caption 3 = A custom quote with a custom image. | |||
| <nowiki> | | <nowiki> | ||
{{Quote class | {{Quote class | ||
Line 202: | Line 215: | ||
{{Quote class|Illusion School}} | {{Quote class|Illusion School}} | ||
{{Quote class|Transmutation School}} | {{Quote class|Transmutation School}} | ||
== Template data == | == Template data == | ||
Line 282: | Line 296: | ||
"description": "Use this parameter to specify a custom icon instead of a predefined one.", | "description": "Use this parameter to specify a custom icon instead of a predefined one.", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
} | } | ||
}, | }, |
Latest revision as of 04:02, 29 July 2024
Display a class/subclass description quote accompanied by the beautiful class icon.
This template is a subtype of Template:Quote fancy.
Usage
This template has a table of all the class quotes in the game extracted directly from the game files so the only required parameter is the name of the class. This parameter should match the name of a class/subclass page exactly. This is intended for use in class pages where {{PAGENAME}}
can be used as the parameter.
Alternatively, the quote and class image can be overridden with the parameters quote
and image
, but generally you should stick with the default behaviour.
Examples
A base class quote.
Markup{{Quote class|Warlock}}Renders as
A subclass quote.
Markup{{Quote class|College of Swords}}Renders as
A custom quote with a custom image.
Markup{{Quote class | quote = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | image = Barbarian Class Icon alt.png }}Renders as
Exhaustive list
The quote blocks for every class and subclass are displayed below for easy verification.
Barbarian
Bard
Cleric
Druid
Fighter
Monk
Paladin
Ranger
Rogue
Sorcerer
Warlock
Wizard
Template data
Display a class/subclass quote
Parameter | Description | Type | Status | |
---|---|---|---|---|
Class | 1 | The name of a class or subclass. It should match exactly the pagename of the class. When used on a class page, you can use {{PAGENAME}} for this parameter.
| String | required |
Quote override | quote | Use this parameter to specify a custom quote instead of a predefined one. | String | optional |
Image override | image | Use this parameter to specify a custom icon instead of a predefined one. | File | optional |