Template:Item List: Difference between revisions
Appearance
ReisuDesign (talk | contribs) Created page with "<includeonly>{{#invoke:Item List|main}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>" |
Added TemplateStyles |
||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Item List|main}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | <includeonly><templatestyles src="Template:Item/styles.css" />{{#invoke:Item List|main}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | ||
Revision as of 15:21, 25 November 2025
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:Item List, a script written in Lua.
Creates a list of {{Item}}.
Syntax
- 1 — List of items.
- *amount — Indicate amount exclusive to the item.
- /note — Indicate note exclusive to the item.
- { param1 = value1 $ param2 = value2 $ value 3 } — indicate parameters exclusive to the item, allows unnamed parameters.
- 2 — Size of items' images. Default 20.
- mode — The resulting list format and/or delimiter:
- bullet Bullet list format. Default
- br Use <br>.
- sent Sentence format, use , as delimiter except the last instance, where , and is used
- amount — Default amount of items if not stated.
- delim — Delimiter of the list in 1. Default ;.
- amount_delim — Delimiter of amount in 1. Default *.
- note_delim — Delimiter of the notes in 1. Default /.
- param_delim — Delimiter of the parameters in 1. Default $.
- The following arguments of {{Item}} can be set to apply to all items by including them as normal parameters:
- text
- link
- notext
- blueprint
- count / x
- type
- ref
Examples
Page Template:Item/styles.css has no content.
Template Data
Creates a list of {{Item}}.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Input List | 1 | "delim" delimited list of items. Within each item, delimited by "amount_delim", "note_delim", and "param_delim". | String | required |
| Default Amount | amount | Default amount of items if not stated.
| Number | optional |
| Input Delimiter | delim | Character(s) to split input items by.
| String | optional |
| Amount Delimiter | amount_delim | Character(s) to separate item name from amount.
| String | optional |
| Note Delimiter | note_delim | Character(s) to separate item from note.
| String | optional |
| Parameter Delimiter | param_delim | Character(s) to split item from Item parameters.
| String | optional |