Template:Quote race: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Shrunk the default image size and added parameter to adjust it)
(Corrected mummy link)
 
(2 intermediate revisions by 2 users not shown)
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 Dwarf.png
| 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
Line 173: Line 201:
| font-size = 110%
| font-size = 110%
| image-border-shape = rounded
| image-border-shape = rounded
| link = {{{1|}}}
| link = {{#if:{{{nolink|}}}||{{{link|{{{1|}}}}}}}}
| image-align = edge
| image-align = edge
| author = {{#if:{{{noattribution|}}}||In-game racial description}}
| author = {{#if:{{{noattribution|}}}||In-game racial description}}
Line 373: Line 401:
{{Quote race|Ghoul}}
{{Quote race|Ghoul}}
{{Quote race|Grim Visage}}
{{Quote race|Grim Visage}}
{{Quote race|Mummy|image=Portrait Mummy (race).png}}
{{Quote race|Mummy|image=Portrait Mummy (race).png|link=Mummy (race)}}
{{Quote race|Mummy Lord}}
{{Quote race|Mummy Lord}}
{{Quote race|Shadow}}
{{Quote race|Shadow}}
Line 424: Line 452:
             "type": "number",
             "type": "number",
             "default": "100"
             "default": "100"
        },
        "link": {
            "label": "Link override",
            "description": "Override where clicking the image links to.",
            "type": "wiki-page-name"
        },
        "nolink": {
            "label": "Disable link",
            "description": "Entirely remove the link. This is the same as setting \"link=\". For use with cut backgrounds that don't have dedicated pages.",
            "type": "boolean"
         }
         }
},
},

Latest revision as of 21:52, 4 November 2024

Template documentation

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.

Markup
{{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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Race1

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.

Stringrequired
Quote overridequote

Use this parameter to specify a custom quote instead of a predefined one.

Stringoptional
Image overrideimage

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.

Example
Portrait Owlbear.png
Filesuggested
Disable attributionnoattribution

Disable the "In-game racial description" attribution text.

Booleanoptional
Image position overrideimage-position

Override the image position from its default position on the right.

Suggested values
right left
Default
right
Stringoptional
Image height overrideheight

Override the image height from its default of 100px.

Default
100
Numberoptional
Link overridelink

Override where clicking the image links to.

Page nameoptional
Disable linknolink

Entirely remove the link. This is the same as setting "link=". For use with cut backgrounds that don't have dedicated pages.

Booleanoptional