Template:Creature Infobox: Difference between revisions
m adding description parameter |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 5: | Line 5: | ||
</title> | </title> | ||
<image source="image"/> | <image source="image"/> | ||
<data source="type"> | <group layout="horizontal"> | ||
<data source="type"> | |||
<label>Type</label> | |||
<format>[[{{{type}}}]]</format> | |||
</data> | |||
<data source="category"> | |||
<label>Category</label> | |||
<format>[[{{{category}}}]]</format> | |||
</data> | |||
</group> | |||
<data source="min_size"> | |||
<label>Size</label> | |||
<format>{{{min_size}}} - {{{max_size}}} Li</format> | |||
</data> | |||
<data source="habitat"> | |||
<label>Habitat</label> | |||
<format>[[{{{habitat}}}]]</format> | |||
</data> | |||
<data source="distribution"> | |||
<label>Distribution</label> | |||
<format>{{#switch:{{{distribution|}}}|All Regions=All Regions|#default=[[{{{distribution}}}]]}}</format> | |||
</data> | |||
<data source="time"> | |||
<label>Active Time</label> | |||
<format>{{#switch:{{{time|}}}|All Day=All Day|#default=[[{{{time}}}]]}}</format> | |||
</data> | </data> | ||
<data source="description"> | <data source="description"> | ||
<format>'''Description'''<br | <format>'''Description'''<br>{{{description}}}</format> | ||
</data> | </data> | ||
</infobox><!-- | </infobox><!-- | ||
| Line 17: | Line 39: | ||
Sort | Sort | ||
-->{{#if:{{{number|}}}|[[Category:Creature|{{{number}}}]]|[[Category:Creature]][[Category:Creature Missing Number]]}}<!-- | -->{{#if:{{{number|}}}|[[Category:Creature|{{{number}}}]]|[[Category:Creature]][[Category:Creature Missing Number]]}}<!-- | ||
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!-- | -->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!-- | ||
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | |||
-->{{#if:{{{distribution|}}}|[[Category:{{{distribution}}} Creatures]]{{#if:{{{type|}}}|[[Category:{{{distribution}}} {{{type|}}}]]}}}}<!-- | |||
-->{{#if:{{{time|}}}|[[Category:{{{time}}} Creatures]]{{#if:{{{type|}}}|[[Category:{{{time}}} {{{type|}}}]]}}}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | --></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||
Revision as of 10:03, 11 November 2025
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
{{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
- 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
{{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 = ???
}}
<infobox>
<title source="name"> <format>001 Calico Koi</format> </title> <image source="image"/> <group layout="horizontal"> <label>Type</label> <format>Freshwater Fish</format> <label>Category</label> <format>Fish</format> </group> <label>Size</label> <format>60.00 - 86.00 Li</format> <label>Habitat</label> <format>Lowland Lake</format> <label>Distribution</label> <format>Exclusive to Islets</format> <label>Active Time</label> <format>All Day</format> <format>Description
Whether it actually brings good fortune or not depends on the definition of "good fortune."</format>
</infobox>
Template Data
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 |