Template:Quote race: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{NoExcerpt|{{Quote fancy | quote = {{{quote|{{#switch: {{trim|{{{1|}}}}} <!-- Quotes extracted from patch 6 game files --> | Humanoid = A collection of bipedal races, ranging from humans, elves, and halflings to goblins, gnolls, and kobolds. | Human = The most common face in Faerûn, humans are known for their tenacity, creativity, and endless capacity for growth. | Elf = With ethereal countenances and long lifespans, elves are at home with nature's power,...")
 
(Added noattribution parameter)
Line 172: Line 172:
| link = {{{1|}}}
| link = {{{1|}}}
| align = {{{align|center}}}
| align = {{{align|center}}}
| author = {{#if:{{{noattribution|}}}||In-game racial description}}
}}}}</includeonly><noinclude>{{documentation|content=
}}}}</includeonly><noinclude>{{documentation|content=
Display a [[race]] description quote accompanied by the corresponding icon.
Display a [[race]] description quote accompanied by the corresponding icon.
Line 184: Line 185:
== Examples ==
== Examples ==
{{Template demo
{{Template demo
| style = list
| caption 1 = Playable race example.
| caption 1 = Playable race example.
| style = list
| <nowiki>{{Quote race|Human}}</nowiki>
| <nowiki>{{Quote race|Human}}</nowiki>
| caption 2 = Non-playable race example which falls back to using {{c|Portrait Meenlock.png}} for the image.
| caption 2 = Disable attribution text.
| <nowiki>{{Quote race|Dragonborn|noattribution=1}}</nowiki>
| 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>
| caption 3 = Non-playable race example with a specified portrait.
| caption 4 = Non-playable race example with a specified portrait.
| <nowiki>{{Quote race|Hobgoblin|image=Portrait Dror Ragzlin.png}}</nowiki>
| <nowiki>{{Quote race|Hobgoblin|image=Portrait Dror Ragzlin.png}}</nowiki>
| caption 4 = No image.
| caption 5 = No image.
| <nowiki>{{Quote race|Cambion|image=none}}</nowiki>
| <nowiki>{{Quote race|Cambion|image=none}}</nowiki>
| caption 5 = A custom quote with a custom image.
| caption 6 = A custom quote with a custom image.
| <nowiki>
| <nowiki>
{{Quote race
{{Quote race
Line 224: Line 227:
             "example": "Portrait Owlbear.png",
             "example": "Portrait Owlbear.png",
             "type": "wiki-file-name"
             "type": "wiki-file-name"
        },
        "noattribution": {
            "label": "Disable attribution",
            "description": "Disable the \"In-game racial description\" attribution text.",
            "type": "boolean"
         },
         },
         "align": {
         "align": {

Revision as of 22:48, 22 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|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|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

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
Alignment overridealign

Override the alignment from the default centered position

Suggested values
center left right
Default
center
Stringoptional
Image position overrideimage-position

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

Suggested values
right left
Default
right
Stringoptional