Template:Quote background: 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 --> | Acolyte = You have spent your life in service to a temple, learning sacred rites and providing sacrifices to the god or gods you worship. Serving the gods and discovering their sacred works will guide you to greatness. | Charlatan = You're an expert in manipulation, prone to exaggeration and more than happy to profit from it. Bending...")
 
(image-align = edge)
Line 33: Line 33:
| image-border-shape = none
| image-border-shape = none
| link = {{{1|}}}
| link = {{{1|}}}
| align = {{{align|center}}}
| image-align = edge
}}}}</includeonly><noinclude>{{documentation|content=
}}}}</includeonly><noinclude>{{documentation|content=
Display a [[background]] description quote accompanied by the corresponding icon.
Display a [[background]] description quote accompanied by the corresponding icon.
Line 121: Line 121:
             "description": "Use this parameter to specify a custom icon instead of a predefined one.",
             "description": "Use this parameter to specify a custom icon instead of a predefined one.",
             "type": "wiki-file-name"
             "type": "wiki-file-name"
        },
        "align": {
            "label": "Alignment override",
            "description": "Override the alignment from the default centered position",
            "type": "string",
            "default": "center",
            "suggestedvalues": ["center", "left", "right"]
         },
         },
         "image-position": {
         "image-position": {

Revision as of 07:54, 23 July 2024

Template documentation

Display a background description quote accompanied by the corresponding icon.

This template is a subtype of {{Quote fancy}}.

Usage

This template has a table of all the background quotes in the game extracted directly from the game files so the only required parameter is the name of the background. This parameter should match the name of a background page exactly. On the background pages themselves, you can use {{PAGENAME}} as the parameter to this template.

Alternatively, the quote and image can be overridden with the parameters quote and image, but generally you should stick with the default behaviour.

Examples

Markup
{{Quote background|Outlander}}
Renders as

Change the default image position.

Markup
{{Quote background|Haunted One|image-position=left}}
Renders as

A custom quote with a custom image.

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

Exhaustive list

The quote blocks for every background are displayed below for easy verification.

Available backgrounds

Unused character-specific backgrounds

Template data

Display a class/subclass quote

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Class1

The name of a background. It should match exactly the pagename of the background. When used on a background page, you can use {{PAGENAME}} for this parameter.

Suggested values
Acolyte Charlatan Criminal Entertainer Folk Hero Guild Artisan Noble Outlander Sage Soldier Urchin Haunted One
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.

Fileoptional
Image position overrideimage-position

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

Suggested values
right left
Default
right
Stringoptional