Template:Background: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(easy inline icons, for future use)
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{BackgroundIcon|{{{1}}}|{{{2|25}}}}} [[{{{1}}}|{{{alias|{{{1}}}}}}]]</includeonly><noinclude>
<includeonly>{{BackgroundIcon|{{{1}}}|{{{2|25}}}}} [[{{{1}}}|{{{alias|{{{1}}}}}}]]</includeonly><noinclude>
Usage: {{code|<nowiki>{{Background|Urchin}}</nowiki>}}
{{documentation|content=
 
This template is used to visually represent Backgrounds.
 
Usage: <code><nowiki>{{Background|Urchin}}</nowiki></code>


Result: {{Background|Urchin}}
Result: {{Background|Urchin}}


or Result: {{Background|Urchin|40}} {{code|<nowiki>{{Background|Urchin|40}}</nowiki>}}
Usage: <code><nowiki>{{Background|Acolyte|40}}</nowiki></code>
 
Result: {{Background|Acolyte|40}}
 
Usage: <code><nowiki>{{Background|Charlatan|alias=Trickster}}</nowiki></code>


With Alias: {{code|<nowiki>{{Background|Urchins|alias=Urchin}}</nowiki>}}
Result: {{Background|Charlatan|alias=Trickster}}


Result: {{Background|Urchin|alias=Urchins}}
Usage: <code><nowiki>{{Background|Entertainer|20|alias=Musician}}</nowiki></code>


Result: {{Background|Entertainer|20|alias=Musician}}


[[Category:Weapon Property Templates]]
[[Category:Templates]]
</noinclude>
== Template data==
<templatedata>
{
"params": {
"1": {
"label": "Background name",
"description": "The name of the Background.",
"type": "string",
"required": true
},
"2": {
"label": "Icon size",
"description": "The pixel size of the accompanying icon.",
"type": "number"
},
        "alias": {
"label": "Alias",
"description": "A user-defined alias to be shown instead of the Background name.",
"type": "string"
}
}
}
</templatedata>}}</noinclude>

Latest revision as of 00:15, 27 January 2024

Template documentation

This template is used to visually represent Backgrounds.

Usage: {{Background|Urchin}}

Result: Urchin Urchin

Usage: {{Background|Acolyte|40}}

Result: Acolyte Acolyte

Usage: {{Background|Charlatan|alias=Trickster}}

Result: Charlatan Trickster

Usage: {{Background|Entertainer|20|alias=Musician}}

Result: Entertainer Musician

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Background name1

The name of the Background.

Stringrequired
Icon size2

The pixel size of the accompanying icon.

Numberoptional
Aliasalias

A user-defined alias to be shown instead of the Background name.

Stringoptional