Template:Infobox shroom: Difference between revisions
From Everafter Falls Wiki
No edit summary |
mNo edit summary |
||
| Line 42: | Line 42: | ||
<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><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><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> | ||
Revision as of 02:40, 3 August 2024
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