Template:Chest: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
m (Add title_override, for use as shop banner)
Line 1: Line 1:
<includeonly><div class="mw-collapsible mw-collapsed" data-expandtext="Show Contents" data-collapsetext="Hide Contents" style="{{#if:{{{nograd|}}} | background:transparent; | background: linear-gradient(to right, #252f42, #232323, #232323, #232323); align-items:center; border-radius:10px; padding: 5px;}}">
<includeonly><div class="mw-collapsible mw-collapsed" data-expandtext="Show Contents" data-collapsetext="Hide Contents" style="{{#if:{{{nograd|}}} | background:transparent; | background: linear-gradient(to right, #252f42, #232323, #232323, #232323); align-items:center; border-radius:10px; padding: 5px;}}">


[[File:{{{icon|Concentration Icons.png}}}|32px|link={{{link|}}}]] '''[[{{{link|Items}}}|{{{link|This chest}}}]] {{#if:{{{DC|}}}|with the [[Difficulty Class|DC {{{DC|}}}]] to lockpick|}} contains the following items:'''
[[File:{{{icon|Concentration Icons.png}}}|32px|link={{{link|}}}]] '''{{#if:{{{title_override|}}}|{{{title_override|}}}|[[{{{link|Items}}}|{{{link|This chest}}}]] {{#if:{{{DC|}}}|with the [[Difficulty Class|DC {{{DC|}}}]] to lockpick|}} }} contains the following items:'''
<div class="mw-collapsible-content noexcerpt" style="{{#if:{{{nograd|}}} | background:transparent; | background:#232323; border-radius:10px; padding: 15px;}}">
<div class="mw-collapsible-content noexcerpt" style="{{#if:{{{nograd|}}} | background:transparent; | background:#232323; border-radius:10px; padding: 15px;}}">
{{{contents|Empty}}}</div>
{{{contents|Empty}}}</div>
Line 52: Line 52:
* {{SmIconLink|Arrow of Ilmater Icon.png|Arrow of Ilmater}}
* {{SmIconLink|Arrow of Ilmater Icon.png|Arrow of Ilmater}}
* {{SmIconLink|Arrow of Slaying Icon.png|Arrow of Dragon Slaying}}}}
* {{SmIconLink|Arrow of Slaying Icon.png|Arrow of Dragon Slaying}}}}
Usage:
<nowiki>{{Chest</nowiki>
<nowiki>|title_override=Auntie Ethel's shop</nowiki>
<nowiki>|contents=</nowiki>
<nowiki>* {{GoldIcon|592}} 592 [[Gold]]</nowiki>
<nowiki>}}</nowiki>
{{Chest|title_override=This shop|contents=* {{GoldIcon|592}} 592 [[Gold]]}}


And as always, {{InfoBlob|nograd}}=1 will remove the gradient.
And as always, {{InfoBlob|nograd}}=1 will remove the gradient.
</noinclude>
</noinclude>

Revision as of 11:53, 1 September 2023

Everything is optional. You don't have to set a DC. You don't even have to set an image or a link!

Usage:

{{Chest
|icon=Gilded Chest A Icon.png
|link=Gilded Chest
|DC=25
|contents=
* {{SmIconLink|Book Note M Image.png|Acquisitions Record}}
* {{SmIconLink|Torch of Revocation Icon.png|Torch of Revocation}}
* {{SmIconLink|Gold Pile Single Icon.png|Gold}} 54pcs
* {{SmIconLink|Topaz Icon.png|Topaz}}
* {{SmIconLink|Arrow of Ilmater Icon.png|Arrow of Ilmater}}
* {{SmIconLink|Arrow of Slaying Icon.png|Arrow of Dragon Slaying}}
}}
Result:

Or even:


Usage:

{{Chest
|link=Gilded Chest
|contents=
* {{SmIconLink|Book Note M Image.png|Acquisitions Record}}
* {{SmIconLink|Torch of Revocation Icon.png|Torch of Revocation}}
* {{SmIconLink|Gold Pile Single Icon.png|Gold}} 54pcs
* {{SmIconLink|Topaz Icon.png|Topaz}}
* {{SmIconLink|Arrow of Ilmater Icon.png|Arrow of Ilmater}}
* {{SmIconLink|Arrow of Slaying Icon.png|Arrow of Dragon Slaying}}
}}
Result:

Usage:

{{Chest
|title_override=Auntie Ethel's shop
|contents=
* {{GoldIcon|592}} 592 [[Gold]]
}}

Concentration Icons.png This shop contains the following items:

And as always, nograd=1 will remove the gradient.