Template:Card List

Revision as of 08:48, 10 November 2025 by ReisuDesign (talk | contribs) (Created page with "<includeonly>{{#invoke:Card List|main}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Card List, a script written in Lua.
This template is used primarily on pages in the Main namespace. It can be found on 2,349 pages, or on about 58.42% of those pages.
Edits to this template will be widely noticed. To avoid large-scale disruption and unnecessary server load, any changes to this template should be tested in its sandbox or testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit.
Please consider discussing any changes in the wiki's Discord.

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 &mdash;.
  • 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 $.
  • header — Header text to display. Arguments include {items} for number of items in the list and {count} for sum of all counts.
  • 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

Examples

{{Card List|Mobai,Elsasani,Frostia|show_caption = 1}} yields:
MobaiMobaiMobai
ElsasaniElsasaniElsasani
FrostiaFrostiaFrostia

{{Card List|Mobai,Elsasani,Frostia}} yields:
MobaiMobai
ElsasaniElsasani
FrostiaFrostia

{{Card List|Mobai;Elsasani;Frostia|delim = ;|show_caption = 1}} yields:
MobaiMobaiMobai
ElsasaniElsasaniElsasani
FrostiaFrostiaFrostia

{{Card List|Red-Line Torpedo Barb*5,Piranha*2|type = Fish|amount = 1|show_caption = 1}} yields:

{{Card List
|delim = ;
|type = Enemy
|show_caption = 1
|1 = ‎
{ name = Mobai $ link = Mobai/Gallery };
{ name = Elsasani $ link = Elsasani/Gallery $ caption = Elsasani's Gallery };
{ name = Elsasani $ caption = Starsea Racer };
}}

yields:

Template Data

Creates a list of {{Card}}.

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 Card parameters.

Default
$
Stringoptional
Show Captionshow_caption

Set to 1 to show caption.

Booleansuggested
Header Textheader

Header text to display. Arguments include "{items}" for number of items in the list and "{count}" for sum of all counts.

Stringoptional