Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!
Template:BundleboxTest: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#arraymap:{{{yield|}}}|;|y|{{#vardefine:pagename|{{#sub:y|{{#pos:y| |2}}}}}}{{#vardefine:minquan|{{#explode:y| |0}}}}{{#vardefine:maxquan|{{#explode:y| |1}}}}{{#ifeq:{{#show: {{#var:pagename}}|?has icon}}||[[File:Wiki_image_needed_logo.png|20px|link={{#var:pagename}}|alt={{#var:pagename}}]]|[[{{#show: {{#var:pagename}} | ?has icon|link=none}}|20px|link={{#var:pagename}}|alt={{#var:pagename}}]]}} [[{{lc:{{{name}}}}} loot::{{#var:pagename}}|{{#var:pagename}}]] ({{#var:minquan}}-{{#var:maxquan}})|, }} | <noinclude>==Purpose== | ||
This template may be used to display what items can be found in a loot bundle. | |||
==Usage== | |||
{| style="background:transparent; border:none;" | |||
|<pre> | |||
{{Bundlebox | |||
|name= | |||
|yield= | |||
|specialyield= | |||
|special= | |||
}} | |||
</pre> | |||
|} | |||
==Parameters== | |||
{| class="sotawikitable" | |||
! Parameter | |||
! Explanation | |||
|- | |||
| name | |||
| The name of the bundle. | |||
|- | |||
| yield | |||
| List each item that can be obtained from the bundle. Enter each item in a colon-separated list preceded by the maximum number possible for that item in a single extraction (e.g., "0 5 Gold Ore" for "[[Gold Ore]] (0-5)") | |||
|} | |||
==Examples== | |||
{| width=100% | |||
| valign="top" | | |||
<pre>{{Bundlebox | |||
|name=Supply Bundle (Grey) | |||
|yield=0 1 Brown Cap Mushroom;0 1 Carrot;0 1 Coconut;0 1 Map of Ardoris;0 1 Poison Potion;0 1 Recipe: White Iron Longsword Blade;0 1 Short Bread Loaf;0 1 Smelling Salts;0 1 Trout | |||
|special= | |||
|specialyield= | |||
}}</pre> | |||
|- | |||
| valign="top" | | |||
{{Bundleboxtop}} | |||
{{Bundlebox | |||
|name=Supply Bundle (Grey) | |||
|yield=0 1 Brown Cap Mushroom;0 1 Carrot;0 1 Coconut;0 1 Map of Ardoris;0 1 Poison Potion;0 1 Recipe: White Iron Longsword Blade;0 1 Short Bread Loaf;0 1 Smelling Salts;0 1 Trout | |||
|special= | |||
|specialyield= | |||
}} | |||
{{Bundleboxbottom}} | |||
|} | |||
[[Category:Resource templates| 2]]</noinclude><includeonly>|- | |||
| style="vertical-align:middle;width:25%" | {{#ask: [[has pagename::{{{name|}}}]] |mainlabel=- |?has icon |?has itemname |?has pagename |format=template |template=Show item |link=none }}[[bundle type::{{{name|}}}| ]] || {{#arraymap:{{{yield|}}}|;|y|{{#vardefine:pagename|{{#sub:y|{{#pos:y| |2}}}}}}{{#vardefine:minquan|{{#explode:y| |0}}}}{{#vardefine:maxquan|{{#explode:y| |1}}}}{{#ifeq:{{#show: {{#var:pagename}}|?has icon}}||[[File:Wiki_image_needed_logo.png|20px|link={{#var:pagename}}|alt={{#var:pagename}}]]|[[{{#show: {{#var:pagename}} | ?has icon|link=none}}|20px|link={{#var:pagename}}|alt={{#var:pagename}}]]}} [[{{lc:{{{name}}}}} loot::{{#var:pagename}}|{{#var:pagename}}]] ({{#var:minquan}}-{{#var:maxquan}})|, }}</includeonly> | |||
Latest revision as of 00:26, 9 February 2019
Purpose
This template may be used to display what items can be found in a loot bundle.
Usage[edit]
{{Bundlebox
|name=
|yield=
|specialyield=
|special=
}}
|
Parameters[edit]
| Parameter | Explanation |
|---|---|
| name | The name of the bundle. |
| yield | List each item that can be obtained from the bundle. Enter each item in a colon-separated list preceded by the maximum number possible for that item in a single extraction (e.g., "0 5 Gold Ore" for "Gold Ore (0-5)") |
Examples[edit]
{{Bundlebox
|name=Supply Bundle (Grey)
|yield=0 1 Brown Cap Mushroom;0 1 Carrot;0 1 Coconut;0 1 Map of Ardoris;0 1 Poison Potion;0 1 Recipe: White Iron Longsword Blade;0 1 Short Bread Loaf;0 1 Smelling Salts;0 1 Trout
|special=
|specialyield=
}}
| ||||
|