Template:Quote deity: Difference between revisions
HiddenDragon (talk | contribs) (Added more deities) |
(optional author param) |
||
Line 62: | Line 62: | ||
| link = {{#if:{{{nolink|}}}||{{{link|{{{1|}}}}}}}} | | link = {{#if:{{{nolink|}}}||{{{link|{{{1|}}}}}}}} | ||
| image-align = edge | | image-align = edge | ||
| author = {{#if:{{{noattribution|}}}||In-game deity description}} | | author = {{#if:{{{noattribution|}}}||{{{author|In-game deity description}}}}} | ||
}}}}</includeonly><noinclude>{{documentation|content= | }}}}</includeonly><noinclude>{{documentation|content= | ||
Display a [[deity]] description quote accompanied by the corresponding icon. | Display a [[deity]] description quote accompanied by the corresponding icon. | ||
Line 146: | Line 146: | ||
"description": "Disable the \"In-game deity description\" attribution text.", | "description": "Disable the \"In-game deity description\" attribution text.", | ||
"type": "boolean" | "type": "boolean" | ||
}, | |||
"author": { | |||
"label": "Author override", | |||
"description": "Replace the \"In-game deity description\" attribution text.", | |||
"type": "string" | |||
}, | }, | ||
"image-position": { | "image-position": { |
Latest revision as of 17:31, 30 July 2024
Display a deity description quote accompanied by the corresponding icon.
This template is a subtype of {{Quote fancy}}.
Usage
This template has a table of all the deity quotes (including Vlaakith) in the game extracted directly from the game files so the only required parameter is the name of the deity. On the deity pages themselves, you can use {{PAGENAME}}
as the parameter to this template. For the image, it uses <deity> Icon.png
which exist for the player-selectable deities.
Alternatively, the quote and image can be overridden with the parameters quote
and image
. The option image = none
may be preferred for deities without dedicated icons.
Examples
Deity example.
Markup{{Quote deity|Selune}}Renders as
Disable attribution text.
Markup{{Quote deity|Shar|noattribution=1}}Renders as
{{Quote deity|Tyr|image=Tyr Statue.webp}}Renders as
Deity example with a specified portrait.
Markup{{Quote deity|Helm|image=none}}Renders as
No image.
Markup{{Quote deity | quote = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | image = Vlaakith-thumbnail.png | height = 80 }}Renders as
Exhaustive list
Template data
Display a deity quote
Parameter | Description | Type | Status | |
---|---|---|---|---|
Deity | 1 | The name of a deity. When used on a deity page, you can use {{PAGENAME}} for this parameter. There are description quotes for every player-selectable deity in the game | String | required |
Quote override | quote | Use this parameter to specify a custom quote instead of a predefined one. | String | optional |
Image override | image | Use this parameter to specify a custom icon instead of a predefined one. There are only deity icons corresponding to the player-selectable deities so you will need to specify an icon for other deities. Typically this will be a portrait image.
| File | suggested |
Disable attribution | noattribution | Disable the "In-game deity description" attribution text. | Boolean | optional |
Author override | author | Replace the "In-game deity description" attribution text. | String | optional |
Image position override | image-position | Override the image position from its default position on the right.
| String | optional |
Image height override | height | Override the image height from its default of 100px.
| Number | optional |
Link override | link | Override where clicking the image links to. | Page name | optional |
Disable link | nolink | Entirely remove the link. This is the same as setting "link=". For use with cut backgrounds that don't have dedicated pages. | Boolean | optional |