Template:Quote race: Difference between revisions
(Added noattribution parameter) |
(Image handling for playable subraces) |
||
Line 162: | Line 162: | ||
| Drider = Favoured drow that fail the tests of the Webmother Lolth have their forms warped and made wicked - grafted with spiders to serve as symbols of her power. | | Drider = Favoured drow that fail the tests of the Webmother Lolth have their forms warped and made wicked - grafted with spiders to serve as symbols of her power. | ||
}}}}} | }}}}} | ||
| image = {{#ifeq:{{{image|}}}|none||{{ | | image = {{#ifeq: {{{image|}}}|none| | ||
| | | {{{image|{{#switch:{{{1|}}} | ||
| Portrait {{{1|}}}.png | | Human = Race Human.png | ||
}}}} | | Elf | High Elf | Wood Elf = Race Elf.png | ||
| image-position = {{{image-position| | | Drow | Lolth-Sworn Drow | Seldarine Drow = Race Drow.png | ||
| Dwarf | Gold Dwarf | Shield Dwarf | Duergar = Race Dwarf.png | |||
| Half-Elf | High Half-Elf | Wood Half-Elf | Drow Half-Elf = Race Half Elf.png | |||
| Gnome | Rock Gnome | Deep Gnome | Forest Gnome = Race Gnome.png | |||
| Halfling | Lightfoot Halfling | Strongheart Halfling = Race Halfling.png | |||
| Tiefling | Asmodeus Tiefling | Mephistopheles Tiefling | Zariel Tiefling = Race Tiefling.png | |||
| Githyanki = Race Githyanki.png | |||
| Dragonborn | Black Dragonborn | Blue Dragonborn | Brass Dragonborn | Bronze Dragonborn | Copper Dragonborn | Gold Dragonborn | Green Dragonborn | Red Dragonborn | Silver Dragonborn | White Dragonborn = Race Dragonborn.png | |||
| Half-Orc = Race Half-Orc.png | |||
| #default = Portrait {{{1|}}}.png | |||
}}}}}}} | |||
| image-position = {{{image-position|left}}} | |||
| height = 120 | | height = 120 | ||
| font-size = 110% | | font-size = 110% | ||
Line 189: | Line 200: | ||
| <nowiki>{{Quote race|Human}}</nowiki> | | <nowiki>{{Quote race|Human}}</nowiki> | ||
| caption 2 = Disable attribution text. | | caption 2 = Disable attribution text. | ||
| <nowiki>{{Quote race|Dragonborn|noattribution=1}}</nowiki> | | <nowiki>{{Quote race|Copper Dragonborn|noattribution=1}}</nowiki> | ||
| caption 3 = Non-playable race example which falls back to using {{c|Portrait Meenlock.png}} for the image. | | caption 3 = Non-playable race example which falls back to using {{c|Portrait Meenlock.png}} for the image. | ||
| <nowiki>{{Quote race|Meenlock}}</nowiki> | | <nowiki>{{Quote race|Meenlock}}</nowiki> |
Revision as of 23:33, 22 July 2024
Display a race description quote accompanied by the corresponding icon.
This template is a subtype of {{Quote fancy}}.
Usage
This template has a table of all the race quotes in the game extracted directly from the game files so the only required parameter is the name of the race. On the race pages themselves, you can use {{PAGENAME}}
as the parameter to this template. For the image, it uses Race <race>.png
which exist for the player-selectable races and falls back to Portrait <race>.png
for everything else.
Alternatively, the quote and image can be overridden with the parameters quote
and image
. The option image = none
may be preferred for races without dedicated icons.
Examples
Playable race example.
Markup{{Quote race|Human}}Renders as
Disable attribution text.
Markup{{Quote race|Copper Dragonborn|noattribution=1}}Renders as
Non-playable race example which falls back to using Portrait Meenlock.png
for the image.
{{Quote race|Meenlock}}Renders as
Non-playable race example with a specified portrait.
Markup{{Quote race|Hobgoblin|image=Portrait Dror Ragzlin.png}}Renders as
No image.
Markup{{Quote race|Cambion|image=none}}Renders as
A custom quote with a custom image.
Markup{{Quote race | quote = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | image = Background Hermit Icon.png }}Renders as
Template data
Display a race quote
Parameter | Description | Type | Status | |
---|---|---|---|---|
Race | 1 | The name of a race. When used on a race page, you can use {{PAGENAME}} for this parameter. Aside from the player-selectable races, there are description quotes for every race defined in the game. | 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. There are only race icons corresponding the player-selectable races so you will need to specify an icon for other races. Typically this will be a portrait image.
| File | suggested |
Disable attribution | noattribution | Disable the "In-game racial description" attribution text. | Boolean | optional |
Alignment override | align | Override the alignment from the default centered position
| String | optional |
Image position override | image-position | Override the image position from its default position on the right.
| String | optional |