Template:Creature Infobox: Difference between revisions
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 12: | Line 12: | ||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | ||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | ||
|sections = Checkbox, Information | |sections = Checkbox, Information, Selling Prices | ||
|Checkbox_nolabel = 1 | |Checkbox_nolabel = 1 | ||
| Line 19: | Line 19: | ||
|Information_collapsible = Yes | |Information_collapsible = Yes | ||
|Information = Category, Group, Type, Quality, Size, | |Information = Category, Group, Type, Quality, Size, Collection Score, Distribution, Habitat, Season, Active Time, Active Weather | ||
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | |Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | ||
|Group = {{#if:{{{group|}}}|[[{{{group}}}]]}} | |Group = {{#if:{{{group|}}}|[[{{{group}}}]]}} | ||
| Line 25: | Line 25: | ||
|Quality = {{#if:{{{quality|}}}|{{#switch:{{{quality|}}}|Gray|Common= {{Common}}|Green|Blue|Uncommon = {{Uncommon}}|Purple|Rare = {{Rare}}|Gold|Yellow|Stellar = {{Stellar}}|Miracle= {{Miracle}}}}}} | |Quality = {{#if:{{{quality|}}}|{{#switch:{{{quality|}}}|Gray|Common= {{Common}}|Green|Blue|Uncommon = {{Uncommon}}|Purple|Rare = {{Rare}}|Gold|Yellow|Stellar = {{Stellar}}|Miracle= {{Miracle}}}}}} | ||
|Size = {{{min_size|???}}} – {{{max_size|???}}} cm | |Size = {{{min_size|???}}} – {{{max_size|???}}} cm | ||
| | |Collection Score = {{#switch:{{{quality|}}}|<!-- | ||
-->|Gray = <ul><li>★ +5</li><li>★★ + | -->|Gray|Common = <ul><li>★ +5</li><li>★★ +13</li><li>★★★ +23</li></ul><!-- | ||
-->|Purple = <ul><li>★ +10</li><li>★★ + | -->|Purple|Rare = <ul><li>★ +10</li><li>★★ +26</li><li>★★★ +46</li></ul><!-- | ||
-->|Gold = <ul><li>★ + | -->|Gold|Stellar = <ul><li>★ +30</li><li>★★ +78</li><li>★★★ +138</li></ul><!-- | ||
-->|#default = <ul><li>★ +?</li><li>★★ +?</li><li>★★★ +?</li></ul><!-- | -->|#default = <ul><li>★ +?</li><li>★★ +?</li><li>★★★ +?</li></ul><!-- | ||
-->}} | -->}} | ||
|Distribution = {{#if:{{{distribution|}}}|{{#switch:{{{distribution}}}|All Regions=All Regions|Exclusive to Islets=Exclusive to [[Islets]]|#default=[[{{{distribution}}}]]}}}} | |Distribution = {{#if:{{{distribution|}}}|{{#switch:{{{distribution}}}|All Regions=All Regions|Exclusive to Islets=Exclusive to [[Islets]]|#default=[[{{{distribution}}}]]}}}} | ||
|Habitat = {{{habitat|}}} | |Habitat = {{{habitat|}}} | ||
|Season = {{#if:{{{season|}}}|{{ | |Season = {{#if:{{{season|}}}|{{Array|{{{season|}}}|;|[[{item}]]|,{space} }}}} | ||
|Active Time = {{#if:{{{time|}}}|{{#switch:{{{time}}}|All Day=All Day|#default=[[{{{time}}}]]}}}} | |Active Time = {{#if:{{{time|}}}|{{#switch:{{{time}}}|All Day=All Day|#default=[[{{{time}}}]]}}}} | ||
|Active Weather = {{#if:{{{weather|}}}|{{#switch:{{{weather}}}|Any Weather=Any Weather|#default=[[{{{weather}}}]]}}}} | |Active Weather = {{#if:{{{weather|}}}|{{#switch:{{{weather}}}|Any Weather=Any Weather|#default=[[{{{weather}}}]]}}}} | ||
|Selling Prices_collapsible = Yes | |Selling Prices_collapsible = Yes | ||
| Line 48: | Line 43: | ||
|★★ = {{Item|Dough|x={{{sell2|{{{price2|?}}}}}}|notext=1}} | |★★ = {{Item|Dough|x={{{sell2|{{{price2|?}}}}}}|notext=1}} | ||
|★★★ = {{Item|Dough|x={{{sell3|{{{price3|?}}}}}}|notext=1}} | |★★★ = {{Item|Dough|x={{{sell3|{{{price3|?}}}}}}|notext=1}} | ||
}}<!-- | }}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!-- | ||
-->{{#invoke:Bucket|put|creatures | -->{{#invoke:Bucket|put|creatures | ||
| Line 91: | Line 86: | ||
-->{{#if:{{{distribution|}}}|[[Category:{{{distribution}}} Creatures]]}}<!-- | -->{{#if:{{{distribution|}}}|[[Category:{{{distribution}}} Creatures]]}}<!-- | ||
-->{{#if:{{{time|}}}|[[Category:{{{time}}} Creatures]]}}<!-- | -->{{#if:{{{time|}}}|[[Category:{{{time}}} Creatures]]}}<!-- | ||
-->{{#if:{{{season|}}}| | -->{{#if:{{{season|}}}|{{Array|{{{season|}}}|;|[[Category:{item} Creatures]]}}}}<!-- | ||
-->{{#if:{{{weather|}}}|[[Category:{{{weather}}} Creatures]]}}<!-- | -->{{#if:{{{weather|}}}|[[Category:{{{weather}}} Creatures]]}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | --></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||
Latest revision as of 15:37, 12 October 2026
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Template that creates an infobox for Creatures.
Syntax
[edit source]{{Creature Infobox
|name =
|number =
|category =
|group =
|type =
|quality =
|description =
|min_size =
|max_size =
|habitat =
|time =
|distribution =
|weather =
|time =
|sell1 =
|sell2 =
|sell3 =
}}
- name – Name of the creature.
- number – Zero-padded archive number of the creature.
- category – Category of the creature.
- group – Group of the creature.
- type – Type of the creature.
- quality – Quality of the creature.
- description – Description of the creature.
- min_size – Minimum size of the creature.
- max_size – Maximum size of the creature.
- distribution – Distribution of the creature.
- habitat – Habitat of the creature.
- time – Active time of the creature.
- weather – Active weather of the creature.
- sell1 – Selling price for a 1-star variant of the creature.
- sell2 – Selling price for a 2-star variant of the creature.
- sell3 – Selling price for a 3-star variant of the creature.
Other parameters
[edit source]- image – Override the default image with a single file. Default: name Icon.png.
- images – Override the default image with multiple files and tabs.
- Format: Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name.
Example
[edit source]
{{Creature Infobox
|name = Calico Koi
|number = 001
|category = Fish
|group = Serene Waters of the Islets (Hexia)
|type = Freshwater Fish
|quality = Purple
|description = Whether it actually brings good fortune or not depends on the definition of "good fortune."
|min_size = 60.00
|max_size = 86.00
|distribution = Exclusive to Islets
|habitat = Lowland Lake
|time = All Day
|weather = Any Weather
|sell1 = 30
|sell2 = 33
|sell3 = ???
}}
- ★ +10
- ★★ +26
- ★★★ +46
Template Data
[edit source]Template that creates an infobox for creatures.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the creature.
| String | required |
| Number | number | Zero-padded archive number of the creature.
| Number | suggested |
| Category | category | Category of the creature.
| String | suggested |
| Group | group | Group of the creature.
| String | suggested |
| Type | type | Type of the creature.
| String | suggested |
| Quality | quality | Quality of the creature.
| String | suggested |
| Description | description | Description of the creature. | Content | suggested |
| Minimum size | min_size | Minimum size of the creature.
| Number | suggested |
| Maximum size | max_size | Maximum size of the creature.
| Number | suggested |
| Distribution | distribution | Distribution of the creature.
| String | suggested |
| Habitat | habitat | Habitat of the creature.
| String | suggested |
| Active time | time | Active time of the creature.
| String | suggested |
| Active weather | weather | Active weather of the creature.
| String | suggested |
| Selling price 1 | sell1 price1 | Selling price for a 1-star variant of the creature.
| Number | suggested |
| Selling price 2 | sell2 price2 | Selling price for a 2-star variant of the creature.
| Number | suggested |
| Selling price 3 | sell3 price3 | Selling price for a 3-star variant of the creature.
| Number | suggested |
| Image | image | Override the default image with a single file.
| File | optional |
| Images | images | Override the default image with multiple files and tabs.
| Content | optional |