Template:TreasureList/entry: Difference between revisions
Jump to navigation
Jump to search
Streetclaw (talk | contribs) m (Nowrap added) |
m (Add space to “Master Key”) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <onlyinclude><includeonly> | ||
|{{{acc}}} | |- | ||
{{#switch: {{{type}}} | | {{{acc}}} | ||
| {{#switch: {{lcfirst:{{{type}}}}} | |||
|normal | | normal | default = data-sort-value="0" {{!}} {{nowrap|[[File:Treasure-default.png]] '''Normal'''}} | ||
| bronze = data-sort-value="1" {{!}} {{nowrap|[[File:Treasure-bronze.png]] '''Bronze'''}} | |||
|default = | | silver = data-sort-value="2" {{!}} {{nowrap|[[File:Treasure-silver.png]] '''Silver'''}} | ||
| gold = data-sort-value="3" {{!}} {{nowrap|[[File:Treasure-gold.png]] '''Gold'''}} | |||
|bronze = | | key = data-sort-value="4" {{!}} {{nowrap|[[File:Treasure-key.png]] '''Key'''}} | ||
| masterkey = data-sort-value="5" {{!}} {{nowrap|[[File:Treasure-masterkey.png]] '''Master Key'''}} | |||
|silver = | }} | ||
| data-sort-value="{{{item}}} {{{amount}}}x" | {{nowrap|{{{amount}}} × {{ItemLink|{{{item}}}|showName={{{showName|}}}}}}} | |||
|gold = | | {{{loc|}}} | ||
| {{{info|}}} | |||
|key = | |- | ||
</includeonly></onlyinclude> | |||
|masterkey = | {{Doc}} | ||
|data-sort-value="{{{item}}} {{{amount}}}x" | {{ | |||
| | |||
|{{ |
Latest revision as of 08:00, 17 April 2021
Entry element for Template:TreasureList
About
Generates an entry for the Template:TreasureList
Parameter
Do not use named parameter for 1
... x
. The first Parameter will be automatically marked as 1
, the second as 2
and so on.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Access number | acc
|
Accessibility position
|
Number | Required |
Chest type | type
|
Set the chest type for this entry
|
["normal"|"default"|"bronze"|"silver"|"gold"|"key"|"masterkey"] | Required |
Item | item
|
Contained Item
|
String | Required |
Name override | showName
|
Specify a custom name
|
String | Required |
Amount | amount
|
Amount of the contained Item
|
Number | Required |
Location | loc
|
Chest Location
|
WikiCode | Optional |
Info | info
|
Chest info
|
WikiCode | Optional |
See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation
Test of raw TemplateData output:
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Access number | acc | Accessibility position | Number | required |
Chest type | type | Set the chest type for this entry | Content | required |
Item | item | Contained Item | String | required |
Name override | showName | Specify a custom name | String | required |
Amount | amount | Amount of the contained Item | Number | required |
Location | loc | Chest Location | Content | optional |
Info | info | Chest info | Content | optional |
Examples
Acc. | Type | Contains | Location | Info |
---|---|---|---|---|
1 | ![]() |
3 × ![]() |
Location | Info |
2 | ![]() |
3 × ![]() |
Location | |
3 | ![]() |
3 × ![]() |
Info | |
4 | ![]() |
3 × ![]() |
||
5 | ![]() |
3 × ![]() |
||
3 | ![]() |
3 × ![]() |
Info | |
6 | ![]() |
3 × ![]() |
{{TreasureList| {{TreasureList/entry|acc=1|type=default|item=Hi-Sandwich|amount=3|loc=Location|info=Info}} {{TreasureList/entry|acc=2|type=bronze|item=Hi-Sandwich|amount=3|loc=Location}} {{TreasureList/entry|acc=3|type=silver|item=Hi-Sandwich|amount=3|info=Info}} {{TreasureList/entry|acc=4|type=gold|item=Hi-Sandwich|amount=3}} {{TreasureList/entry|acc=5|type=key|item=Hi-Sandwich|amount=3}} {{TreasureList/entry|acc=3|type=silver|item=Hi-Sandwich|showName=Other name|amount=3|info=Info}} {{TreasureList/entry|acc=6|type=masterkey|item=Hi-Sandwich|amount=3}} }}