⚠️ Please see plans to display ads on bg3.wiki. ⚠️

Template:Quote race: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(image-align = edge)
(Shrunk the default image size and added parameter to adjust it)
 
(One intermediate revision by the same user not shown)
Line 170: Line 170:
}}}}}}}
}}}}}}}
| image-position = {{{image-position|left}}}
| image-position = {{{image-position|left}}}
| height = 120
| height = {{{height|100}}}
| font-size = 110%
| font-size = 110%
| image-border-shape = rounded
| image-border-shape = rounded
Line 204: Line 204:
| quote = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
| 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
| image = Background Hermit Icon.png
| height = 80
}}
}}
</nowiki>
</nowiki>
Line 209: Line 210:


== Exhaustive list ==
== Exhaustive list ==
=== Playable races ==={{Quote race|Human}}
=== Playable races ===
{{Quote race|Human}}
{{Quote race|Elf}}
{{Quote race|Elf}}
{{Quote race|High Elf}}
{{Quote race|High Elf}}
Line 416: Line 418:
             "default": "right",
             "default": "right",
             "suggestedvalues": ["right", "left"]
             "suggestedvalues": ["right", "left"]
        },
        "height": {
            "label": "Image height override",
            "description": "Override the image height from its default of 100px.",
            "type": "number",
            "default": "100"
         }
         }
},
},

Latest revision as of 08:38, 23 July 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