Template:Quote race: Difference between revisions
(Shrunk the default image size and added parameter to adjust it) |
HiddenDragon (talk | contribs) (Race icons for each playable subrace) |
||
Line 157: | Line 157: | ||
| {{{image|{{#switch:{{{1|}}} | | {{{image|{{#switch:{{{1|}}} | ||
| Human = Race Human.png | | Human = Race Human.png | ||
| Elf | High Elf | Wood Elf = Race Elf.png | | Elf = Race Elf.png | ||
| Drow | Lolth-Sworn Drow | Seldarine Drow = Race Drow.png | | High Elf = Race High Elf.png | ||
| Dwarf | Gold Dwarf | Shield Dwarf | Duergar = Race | | Wood Elf = Race Wood Elf.png | ||
| Half-Elf | High Half-Elf | Wood Half-Elf | Drow Half-Elf = Race Half-Elf.png | | Drow = Race Drow.png | ||
| Gnome | Rock Gnome | Deep Gnome | Forest Gnome = Race Gnome.png | | Lolth-Sworn Drow = Race Lolth-Sworn Drow.png | ||
| Halfling | Lightfoot Halfling | Strongheart Halfling = Race Halfling.png | | Seldarine Drow = Race Seldarine Drow.png | ||
| Tiefling | Asmodeus Tiefling | Mephistopheles Tiefling | Zariel Tiefling = Race Tiefling.png | | Dwarf = Race Dwarf.png | ||
| Gold Dwarf = Race Gold Dwarf.png | |||
| Shield Dwarf = Race Shield Dwarf.png | |||
| Duergar = Race Duergar.png | |||
| Half-Elf = Race Half-Elf.png | |||
| High Half-Elf = Race High Half-Elf.png | |||
| Wood Half-Elf = Race Wood Half-Elf.png | |||
| Drow Half-Elf = Race Drow Half-Elf.png | |||
| Gnome = Race Gnome.png | |||
| Rock Gnome = Race Rock Gnome.png | |||
| Deep Gnome = Race Deep Gnome.png | |||
| Forest Gnome = Race Forest Gnome.png | |||
| Halfling = Race Halfling.png | |||
| Lightfoot Halfling = Race Lightfoot Halfling.png | |||
| Strongheart Halfling = Race Strongheart Halfling.png | |||
| Tiefling = Race Tiefling.png | |||
| Asmodeus Tiefling = Race Asmodeus Tiefling.png | |||
| Mephistopheles Tiefling = Race Mephistopheles Tiefling.png | |||
| Zariel Tiefling = Race Zariel Tiefling.png | |||
| Githyanki = Race Githyanki.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 | | Dragonborn = Race Dragonborn.png | ||
| Black Dragonborn = Race Black Dragonborn.png | |||
| Blue Dragonborn = Race Blue Dragonborn.png | |||
| Brass Dragonborn = Race Brass Dragonborn.png | |||
| Bronze Dragonborn = Race Bronze Dragonborn.png | |||
| Copper Dragonborn = Race Copper Dragonborn.png | |||
| Gold Dragonborn = Race Gold Dragonborn.png | |||
| Green Dragonborn = Race Green Dragonborn.png | |||
| Red Dragonborn = Race Red Dragonborn.png | |||
| Silver Dragonborn = Race Silver Dragonborn.png | |||
| White Dragonborn = Race White Dragonborn.png | |||
| Half-Orc = Race Half-Orc.png | | Half-Orc = Race Half-Orc.png | ||
| #default = Portrait {{{1|}}}.png | | #default = Portrait {{{1|}}}.png |
Revision as of 01:44, 29 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|Humanoid|image=Portrait Custom.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 | height = 80 }}Renders as
Exhaustive list
Playable races
Non-playable races
Aberrations
Beasts
Celestials
Constructs
Elementals
Dragons
Fey
Giants
Humanoids
Monstrosities
Oozes
Plants
Fiends
Undead
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 |
Image position override | image-position | Override the image position from its default position on the right.
| String | optional |
Image height override | height | Override the image height from its default of 100px.
| Number | optional |