Template:Infobox shroom: Difference between revisions
From Everafter Falls Wiki
mNo edit summary |
mNo edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
|Collection={{{collection|}}} | |Collection={{{collection|}}} | ||
|Season={{{season|}}} | |Season={{{season|}}} | ||
|SpawnSummer={{#if:{{{summer|}}|1|0}} | |SpawnSummer={{#if:{{{summer|}}}|1|0}} | ||
|SpawnAutumn={{#if:{{{autumn|}}|1|0}} | |SpawnAutumn={{#if:{{{autumn|}}}|1|0}} | ||
|SpawnWinter={{#if:{{{winter|}}|1|0}} | |SpawnWinter={{#if:{{{winter|}}}|1|0}} | ||
|SpawnSpring={{#if:{{{spring|}}|1|0}} | |SpawnSpring={{#if:{{{spring|}}}|1|0}} | ||
|Rarity={{{rarity|}}} | |Rarity={{{rarity|}}} | ||
|SellPrice={{{sell|}}} | |SellPrice={{{sell|}}} | ||
|Size={{{patch_size|}}} | |Size={{{patch_size|}}} | ||
|StacksTo={{{stack|999}}} | |||
}} }}<!-- | }} }}<!-- | ||
| Line 37: | Line 38: | ||
<data source="type"><label>Type</label><default>Mushroom</default></data> | <data source="type"><label>Type</label><default>Mushroom</default></data> | ||
<data source="collection"><label>Collection</label><format>[[Museum#{{ucfirst:{{{collection|}}}}}|{{ucfirst:{{{collection|}}}}}]]</format></data> | <data source="collection"><label>Collection</label><format>[[Museum#{{ucfirst:{{{collection|}}}}}|{{ucfirst:{{{collection|}}}}}]]</format></data> | ||
<data source="stack"><label>Stack size</label><default>999</default></data> | |||
</group> | </group> | ||
<group> | <group> | ||
<header>Obtaining</header> | <header>Obtaining</header> | ||
<data | <data><label>Season</label><default>{{#if:{{{summer|}}}|[[Summer]] ({{drop chance|{{{rarity|}}}|Mushroom|season=summer}})<br />}}{{#if:{{{autumn|}}}|[[Autumn]] ({{drop chance|{{{rarity|}}}|Mushroom|season=autumn}})<br />}}{{#if:{{{winter|}}}|[[Winter]] ({{drop chance|{{{rarity|}}}|Mushroom|season=winter}})<br />}}{{#if:{{{spring|}}}|[[Spring]] ({{drop chance|{{{rarity|}}}|Mushroom|season=spring}})}}</default></data> | ||
<data source="location"><label>Location</label></data> | <data source="location"><label>Location</label></data> | ||
<data><label>Spawn chance</label><default>{{#ifeq:{{{type|}}}|Wood mushroom|{{drop chance|{{{rarity|}}}|Wood mushroom}}}}</default></data> | |||
<data source="patch_size"><label>Patch size</label></data> | <data source="patch_size"><label>Patch size</label></data> | ||
<data source="source"><label>Other sources</label></data> | <data source="source"><label>Other sources</label></data> | ||
Latest revision as of 15:09, 3 April 2025
This template adds rows to the table "Items", which is declared by the template Item declare. View table.
| Template documentation |
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Description
This template is used to create infoboxes on individual mushroom pages and store data in Special:CargoTables/Items.
The template also assigns mushrooms category to the pages it is used on.
Syntax
{{infobox shroom
|name =
|description =
|collection =
|location =
|season =
|summer =
|autumn =
|winter =
|spring =
|patch_size =
|rarity =
|sell =
}}
- collection should be one of these:
- Shroom Delicacies · Shrooms Of Everafter · Saprophytic Shrooms
- location allows wikitext formatting
- For every season parameter, use any value if the shroom spawns during that particular season
- patch_size is the max size of the patch. Integer only
- rarity is the drop rarity value of the item; omit if you don't know the number and place the stub template on the page so it gets filled in later
- sell should be number only, no icons or other symbols