Template:Item Infobox: Difference between revisions
Appearance
added Collection score with an IFEQ testing if |Category = Crop. |
mNo edit summary |
||
| Line 26: | Line 26: | ||
-->|Gray|Common = +5<!-- | -->|Gray|Common = +5<!-- | ||
-->|Blue|Uncommon = +10<!-- | -->|Blue|Uncommon = +10<!-- | ||
-->|Purple|Rare = + | -->|Purple|Rare = +15<!-- | ||
-->|Gold|Stellar = +30<!-- | -->|Gold|Stellar = +30<!-- | ||
-->|#default = +?<!-- | -->|#default = +?<!-- | ||
Revision as of 14:08, 10 October 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template uses Module:Infobox, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Infobox.css.
Template that creates an infobox for Items.
Syntax
{{Item Infobox
|name =
|category =
|type =
|quality =
|sell =
|description =
|source =
}}
- name – Name of the item.
- category – Category of the item.
- type – Type of the item.
- quality – Quality of the item.
- sell – Selling price of the item.
- description – Description of the item.
- source – Source(s) of the item as a semicolon separated list.
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
{{Item Infobox
|name = Wildgrass
|category = Materials
|type = Wildgrass
|quality = Gray
|sell = 1
|description = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|source = Example
}}
Wildgrass
Information
Category
Type
Quality
Gray
Description
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Selling Price
How to Obtain
Source
Example
{{Item Infobox
|name = Example
|images = Hexia Meadows Luca Fruit Icon.png:Icon; Hexia Meadows Preview.png:Preview
|category = Example
|type = Example
|quality = Green
|sell = 100
|description = Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|source = Example; Example; Example
}}
Example
Information
Category
Type
Quality
Green
Description
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Selling Price
How to Obtain
Sources
- Example
- Example
- Example
Template Data
Template that creates an infobox for items.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the item.
| String | required |
| Number | number | Sorting number for the item. | Number | suggested |
| Category | category | Category of the item.
| String | suggested |
| Type | type | Type of the item.
| String | optional |
| Quality | quality | Quality of the item.
| String | suggested |
| Selling price | sell price | Selling price of the item.
| Number | optional |
| Description | description | Description of the item. | Content | suggested |
| Source | source | Source(s) of the item as a semicolon separated list.
| Content | 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 |
