Template:Background: Difference between revisions
Jump to navigation
Jump to search
m (Updated documentation with Template demo) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
| Legend of Baldur's Gate | | Legend of Baldur's Gate | ||
| Hermit | | Hermit | ||
| Sailor = {{IconLink|Background {{{1}}} Icon.png|{{{1}}}|{{{ | | Sailor = {{IconLink|Background {{{1}}} Icon.png|{{{1}}}|{{{2|{{{1}}}}}}|size={{{w|25}}}|nowrap=y}} | ||
| #default = [[{{{1}}}|{{{ | | #default = [[{{{1}}}|{{{2|{{{1}}}}}}]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation|content= | {{documentation|content= | ||
Line 36: | Line 36: | ||
| <nowiki>{{Background|Urchin}}</nowiki> | | <nowiki>{{Background|Urchin}}</nowiki> | ||
| caption 2 = Adjusted icon size | | caption 2 = Adjusted icon size | ||
| <nowiki>{{Background|Acolyte|40}}</nowiki> | | <nowiki>{{Background|Acolyte|w=40}}</nowiki> | ||
| caption 3 = Link alias | | caption 3 = Link alias | ||
| <nowiki>{{Background|Charlatan| | | <nowiki>{{Background|Charlatan|Trickster}}</nowiki> | ||
| caption 4 = Alias and adjusted size | | caption 4 = Alias and adjusted size | ||
| <nowiki>{{Background|Entertainer| | | <nowiki>{{Background|Entertainer|Musician|w=20}}</nowiki> | ||
}} | }} | ||
== See also == | |||
* {{t link|Ability}} - An equivalent template for [[abilities|ability scores]] | |||
* {{t link|Deity}} - An equivalent template for [[deities]] | |||
* {{t link|Class}} - An equivalent template for [[classes]] | |||
* {{t link|Race}} - An equivalent template for [[races|playable races]] | |||
* {{t link|Skill}} - An equivalent template for [[skills]] | |||
== Template data== | == Template data== | ||
Line 81: | Line 88: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "2": { | ||
"label": "Alias", | |||
"description": "A user-defined alias to be shown instead of the background name.", | |||
"type": "string" | |||
}, | |||
"w": { | |||
"label": "Icon size", | "label": "Icon size", | ||
"description": "The pixel size of the accompanying icon.", | "description": "The pixel size of the accompanying icon.", | ||
"type": "number" | "type": "number" | ||
} | } | ||
} | } |
Latest revision as of 21:42, 29 July 2024
Template documentation
This template is used to visually represent backgrounds.
Examples
Example | Markup | Renders as |
---|---|---|
Basic usage | {{Background|Urchin}} | |
Adjusted icon size | {{Background|Acolyte|w=40}} | |
Link alias | {{Background|Charlatan|Trickster}} | |
Alias and adjusted size | {{Background|Entertainer|Musician|w=20}} |
See also
- {{Ability}} - An equivalent template for ability scores
- {{Deity}} - An equivalent template for deities
- {{Class}} - An equivalent template for classes
- {{Race}} - An equivalent template for playable races
- {{Skill}} - An equivalent template for skills
Template data
Insert a link to a background accompanied by the associated icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background name | 1 | The name of the background.
| String | required |
Alias | 2 | A user-defined alias to be shown instead of the background name. | String | optional |
Icon size | w | The pixel size of the accompanying icon. | Number | optional |