Template:Infobox critter: Difference between revisions
From Everafter Falls Wiki
mNo edit summary |
mNo edit summary |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 15: | Line 15: | ||
|Season={{{season|}}} | |Season={{{season|}}} | ||
|Size={{{size|}}} | |Size={{{size|}}} | ||
|Rarity={{{rarity|}}} | |||
|SellPrice={{{sell|}}} | |SellPrice={{{sell|}}} | ||
|StacksTo={{{stack|}}} | |||
|SortIndex={{#switch: {{lc:{{{size|}}}}} | |SortIndex={{#switch: {{lc:{{{size|}}}}} | ||
| giant | large = 2 | | giant | large = 2 | ||
| mid-sized | medium | regular = 1 | | mid-sized | mid sized | medium | regular = 1 | ||
| tiny | small = 0 | | tiny | small = 0 | ||
}} | }} | ||
}} }}<!-- | }} | ||
}}<!-- | |||
| Line 38: | Line 41: | ||
<data source="size"><label>Size</label></data> | <data source="size"><label>Size</label></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> | ||
| Line 43: | Line 47: | ||
<data source="season"><label>Season</label></data> | <data source="season"><label>Season</label></data> | ||
<data source="location"><label>Location</label></data> | <data source="location"><label>Location</label></data> | ||
<data source=" | <data source="rarity"><label>Spawn chance</label><format>{{drop chance|{{{rarity|}}}|{{{type|}}}}}</format></data> | ||
<data source="size"><label>Hatches from</label><format>{{Hatches from|{{{rarity|}}}|{{{type|}}}|{{{size|}}}}}</format></data> | |||
| | |||
| | |||
<data source="source"><label>Other sources</label></data> | <data source="source"><label>Other sources</label></data> | ||
</group> | </group> | ||
| Line 62: | Line 61: | ||
| flutterfly | flutterflies = [[Category:Flutterflies]] | | flutterfly | flutterflies = [[Category:Flutterflies]] | ||
| #default = [[Category:Critters]] | | #default = [[Category:Critters]] | ||
}}</includeonly><noinclude>{{documentation}}[[Category:Infobox templates| | }}</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|critter]]</noinclude> | ||
Latest revision as of 17:57, 2 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 critter pages and store data in Special:CargoTables/Items.
The template also assigns categories based on the type parameter.
Syntax
{{Infobox critter
|name =
|description =
|collection =
|type =
|size =
|rarity =
|sell =
}}
- collection should be one of these:
- Common Critters · Tiny Frogs · Mid Sized Frogs · Giant Frogs · Iridescent Frogs · Tiny Flutterflies · Mid Sized Flutterflies · Giant Flutterflies · Iridescent Flutterflies · Tiny Dragonflies · Mid Sized Dragonflies · Giant Dragonflies · Iridescent Dragonflies
- size is one of these:
- Tiny · Mid Sized · Giant
- Omit for special critters like silkworms or bees
- rarity is the drop rarity value; 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