Jump to content

Template:Item List: Difference between revisions

From The Petit Planet Wiki
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.
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

{{Item List|Rice;Loomi}} yields:
Page Template:Item/styles.css has no content.

Template Data

Creates a list of {{Item}}.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Input List1

"delim" delimited list of items. Within each item, delimited by "amount_delim", "note_delim", and "param_delim".

Stringrequired
Default Amountamount

Default amount of items if not stated.

Default
—
Example
0
Numberoptional
Input Delimiterdelim

Character(s) to split input items by.

Default
;
Example
;
Stringoptional
Amount Delimiteramount_delim

Character(s) to separate item name from amount.

Default
*
Stringoptional
Note Delimiternote_delim

Character(s) to separate item from note.

Default
/
Stringoptional
Parameter Delimiterparam_delim

Character(s) to split item from Item parameters.

Default
$
Stringoptional