Template:Card List/doc: Difference between revisions
Created page with "{{Documentation/Header}} {{High Risk|pagetype=Main}} {{Lua|Card List}} Creates a list of {{T|Card}}. ==Syntax== * {{F|1}} — List of items. ** {{F|*((amount))}} — Indicate amount exclusive to the item. ** {{F|/((note))}} — Indicate note exclusive to the item. ** {{F|1={ ((param1)) = ((value1)) $ ((param2)) = ((value2)) $ ((value 3)) } }} — indicate parameters exclusive to the item, allows unnamed parameters. * {{F|amount}} — Default amount o..." |
mNo edit summary |
||
| Line 36: | Line 36: | ||
{{T|Card List|Aspect Gems; Azure Mood; Ramen Cup|_Ybr_=1}}<br /> | {{T|Card List|Aspect Gems; Azure Mood; Ramen Cup|_Ybr_=1}}<br /> | ||
{{T|Card List|_Ybr_=1|block=1 | {{T|Card List|_Ybr_=1|block=1 | ||
|p1=delim= | |p1=delim=, | ||
|p2=show_caption=1 | |p2=show_caption=1 | ||
|p3=1=Sopot/Drink? | |p3=1=Sopot/Drink?, | ||
{ name = Lucky Star $ link = Food $ show_caption = 1 } | { name = Lucky Star $ link = Food $ show_caption = 1 }, | ||
Mighty Pork Sausages*3{ note = Not Food } | Mighty Pork Sausages*3{ note = Not Food } | ||
}}<br /> | }}<br /> | ||
==Template Data== | ==Template Data== | ||
| Line 63: | Line 62: | ||
"label": "Input Delimiter", | "label": "Input Delimiter", | ||
"description": "Character(s) to split input items by.", | "description": "Character(s) to split input items by.", | ||
"example": " | "example": ",", | ||
"type": "string", | "type": "string", | ||
"default": ";" | "default": ";" | ||
Latest revision as of 04:32, 15 July 2026
This is the documentation page for Card List. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Creates a list of {{Card}}.
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.
- amount — Default amount of items if not stated. Default —.
- 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 $.
- autosort — Boolean to automatically sort the cards as they would appear in-game. Default 0.
- The following arguments of {{Card}} can be set to apply to all items by including them as normal parameters.
- text
- caption
- show_caption
- caption_width
- stars
- type
- set
- mini
- element
- link
- nolink
- path
- multiline_text
- suffix
- notext
Examples
{{Card List|Popsicle; Lucky Star; Genius Lollipop|show_caption = 1}} yields:
{{Card List|Aspect Gems; Azure Mood; Ramen Cup}} yields:
{{Card List
|delim = ,
|show_caption = 1
|1 = Sopot/Drink?,
{ name = Lucky Star $ link = Food $ show_caption = 1 },
Mighty Pork Sausages*3{ note = Not Food }
}}
yields:
Template Data
Creates a list of {{Card}}.
| 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 Card parameters.
| String | optional |
| Auto-Sort | autosort | Automatically sorts the cards as they would appear in-game, based on rarity and ID. Does not work for certain card types, such as Enemy. | Boolean | optional |