Template:Quote class: Difference between revisions
mNo edit summary |
(Added parameter to specify custom quote or icon) |
||
Line 1: | Line 1: | ||
<includeonly>{{NoExcerpt|{{Quote fancy | <includeonly>{{NoExcerpt|{{Quote fancy | ||
| quote = {{#switch: {{trim|{{{1|}}}}} | | quote = {{{quote|{{#switch: {{trim|{{{1|}}}}} | ||
<!-- Quotes extracted from patch 6 game files --> | <!-- Quotes extracted from patch 6 game files --> | ||
<!-- Barbarian --> | <!-- Barbarian --> | ||
Line 94: | Line 94: | ||
| Illusion School = You specialise in unravelling and restitching the fabric of reality to fool the unwary, the gullible, and the monstrous. | | Illusion School = You specialise in unravelling and restitching the fabric of reality to fool the unwary, the gullible, and the monstrous. | ||
| Transmutation School = Your innate fascination with the structure of things has granted you an incredible power over crude matter and its manipulation. | | Transmutation School = Your innate fascination with the structure of things has granted you an incredible power over crude matter and its manipulation. | ||
}} | }}}}} | ||
| image = {{{1|}}} Icon.png | | image = {{{image|{{{1|}}} Icon.png}}} | ||
| image-position = right | | image-position = right | ||
| height = 160 | | height = 160 | ||
| font-size = 120% | | font-size = 120% | ||
| link = {{{1|}}} | | link = {{{1|}}} | ||
| align = center | | align = {{{align|center}}} | ||
}}}}</includeonly><noinclude>{{documentation|content= | }}}}</includeonly><noinclude>{{documentation|content= | ||
Display a class/subclass description quote accompanied by the beautiful class icon. This is intended for use in class pages where <nowiki>{{PAGENAME}}</nowiki> is used as the parameter to the template. | Display a class/subclass description quote accompanied by the beautiful class icon. This is intended for use in class pages where <nowiki>{{PAGENAME}}</nowiki> is used as the parameter to the template. | ||
Line 111: | Line 111: | ||
| <nowiki>{{Quote class|Warlock}}</nowiki> | | <nowiki>{{Quote class|Warlock}}</nowiki> | ||
| <nowiki>{{Quote class|College of Swords}}</nowiki> | | <nowiki>{{Quote class|College of Swords}}</nowiki> | ||
| <nowiki> | |||
{{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 | |||
}} | |||
</nowiki> | |||
}} | }} | ||
Line 266: | Line 272: | ||
], | ], | ||
"required": true | "required": true | ||
} | }, | ||
"quote": { | |||
"label": "Quote override", | |||
"description": "Use this parameter to specify a custom quote instead of a predefined one.", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"label": "Image override", | |||
"description": "Use this parameter to specify a custom icon instead of a predefined one.", | |||
"type": "wiki-file-name" | |||
}, | |||
"align": { | |||
"label": "Alignment override", | |||
"description": "Override the alignment from the default centered position", | |||
"type": "string", | |||
"default": "center", | |||
"suggestedvalues": ["center", "left", "right"] | |||
} | |||
}, | }, | ||
"description": "Display a class/subclass quote", | "description": "Display a class/subclass quote", |
Revision as of 18:55, 22 July 2024
Display a class/subclass description quote accompanied by the beautiful class icon. This is intended for use in class pages where {{PAGENAME}} is used as the parameter to the template.
This template is a subtype of Template:Quote fancy.
Examples
{{Quote class|Warlock}}Renders as
{{Quote class|College of Swords}}Renders as
{{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 |
Alignment override | align | Override the alignment from the default centered position
| String | optional |