Template:Chest: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Updated documentation) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
{{{contents|Empty}}}</div> | {{{contents|Empty}}}</div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{see also|Template:Trader}} | |||
Display the contents of a chest, inventory, trader, etc. in a collapsible box. | |||
All the parameters are optional. You don't have to set a DC. You don't even have to set an image or a link! | |||
== Examples == | |||
{{Template demo | |||
| style = list | |||
| <nowiki> | |||
{{Chest | |||
| icon = Jeweled Chest A Faded.webp | |||
| link = Gilded Chest | |||
| DC = 25 | |||
| contents = | |||
* {{RarityItem|Acquisitions Record}} | |||
|contents=* {{RarityItem|Acquisitions Record}} | |||
* {{RarityItem|Torch of Revocation}} | * {{RarityItem|Torch of Revocation}} | ||
* {{RarityItem|Gold}} 54pcs | * {{RarityItem|Gold}} 54pcs | ||
* {{RarityItem|Topaz}} | * {{RarityItem|Topaz}} | ||
* {{RarityItem|Arrow of Ilmater}} | * {{RarityItem|Arrow of Ilmater}} | ||
* {{RarityItem|Arrow of Dragon Slaying}} | * {{RarityItem|Arrow of Dragon Slaying}} | ||
}} | |||
</nowiki> | |||
| <nowiki> | |||
{{Chest | |||
| link = Gilded Chest | |||
| nograd = 1 | |||
| contents = | |||
* {{SmIconLink|Book Note M Image.png|Acquisitions Record}} | |||
* {{RarityItem|Torch of Revocation}} | * {{RarityItem|Torch of Revocation}} | ||
* {{RarityItem|Gold}} 54pcs | * {{RarityItem|Gold}} 54pcs | ||
* {{RarityItem|Topaz}} | * {{RarityItem|Topaz}} | ||
* {{RarityItem|Arrow of Ilmater}} | * {{RarityItem|Arrow of Ilmater}} | ||
* {{RarityItem|Arrow of Dragon Slaying}}}} | * {{RarityItem|Arrow of Dragon Slaying}} | ||
}} | |||
</nowiki> | |||
| <nowiki> | |||
{{Trader | |||
| title_override = This shop | |||
| contents = | |||
* {{GoldIcon|592}} 592 [[Gold]] | |||
}} | |||
{{ | </nowiki> | ||
}} | |||
== Template data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"link": { | |||
"label": "Link", | |||
"description": "A link to the chest item.", | |||
"type": "wiki-page-name", | |||
"required": false | |||
}, | |||
"DC": { | |||
"label": "DC", | |||
"description": "The difficulty class to pick the chest's lock, if applicable.", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"title_override": { | |||
"label": "Title override", | |||
"description": "Ignore all the previous parameters used for title creation and use this instead.", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"icon": { | |||
"label": "Icon", | |||
"description": "An icon to display for the collapsible box.", | |||
"type": "wiki-file-name", | |||
"default": "Concentration Icon.png", | |||
"required": false | |||
}, | |||
"nograd": { | |||
"label": "No gradient", | |||
"description": "Don't display the color gradient for the collapsible box.", | |||
"type": "boolean", | |||
"required": false | |||
} | |||
}, | |||
"description": "Display the contents of a chest in a collapsible box.", | |||
"format": "block" | |||
} | |||
</templatedata> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 06:11, 20 July 2024
See also: Template:Trader
Display the contents of a chest, inventory, trader, etc. in a collapsible box.
All the parameters are optional. You don't have to set a DC. You don't even have to set an image or a link!
Examples
Markup
{{Chest | icon = Jeweled Chest A Faded.webp | link = Gilded Chest | DC = 25 | contents = * {{RarityItem|Acquisitions Record}} * {{RarityItem|Torch of Revocation}} * {{RarityItem|Gold}} 54pcs * {{RarityItem|Topaz}} * {{RarityItem|Arrow of Ilmater}} * {{RarityItem|Arrow of Dragon Slaying}} }}Renders as
Gilded Chest with the DC 25 to lockpick contains the following items:
Markup
{{Chest | link = Gilded Chest | nograd = 1 | contents = * {{SmIconLink|Book Note M Image.png|Acquisitions Record}} * {{RarityItem|Torch of Revocation}} * {{RarityItem|Gold}} 54pcs * {{RarityItem|Topaz}} * {{RarityItem|Arrow of Ilmater}} * {{RarityItem|Arrow of Dragon Slaying}} }}Renders as
Gilded Chest contains the following items:
Markup
{{Trader | title_override = This shop | contents = * {{GoldIcon|592}} 592 [[Gold]] }}Renders as
This shop contains the following items:
- 592 Gold
Template data
Display the contents of a chest in a collapsible box.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link | link | A link to the chest item. | Page name | optional |
DC | DC | The difficulty class to pick the chest's lock, if applicable. | String | optional |
Title override | title_override | Ignore all the previous parameters used for title creation and use this instead. | String | optional |
Icon | icon | An icon to display for the collapsible box.
| File | optional |
No gradient | nograd | Don't display the color gradient for the collapsible box. | Boolean | optional |