Template:List/doc: Difference between revisions
Appearance
ReisuDesign (talk | contribs) Created page with "{{Documentation/Header}} Creates a list using {{T|Array}} separated with semicolon {{F|;}}. ==Syntax== {{T|{{subst:BASEPAGENAME}}|v1=Item1;Item2}} ==Examples== {{T|{{subst:BASEPAGENAME}}|p1=Item1;Item2;Yunguo|_Y_=1}} ==Template Data== <!-- Edit the Template Data through the "MANAGE TEMPLATEDATA" button at the top left --><templatedata> { "params": {}, "description": "" } </templatedata>" |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
Creates a list using {{T|Array}} separated with semicolon {{F|;}}. | Creates a list using {{T|Array}} separated with semicolon {{F|;}}. | ||
==Syntax== | ==Syntax== | ||
{{T|List|v1=Item1;Item2}} | {{T|List|v1=Item1;Item2|v2=mode=link|v3=delim=delimiter}} | ||
==Examples== | ==Examples== | ||
{{T|List|p1= | {{T|List|p1=Rice;Bamboo;Yunguo|_Y_=1}} | ||
{{T|List|p1=Rice;Bamboo;Yunguo|mode=link|_Y_=1}} | |||
{{T|List|p1=Rice$$Bamboo$$Yunguo|delim=$$|_Y_=1}} | |||
==Template Data== | ==Template Data== | ||
| Line 12: | Line 14: | ||
--><templatedata> | --><templatedata> | ||
{ | { | ||
"params": {}, | "params": { | ||
"1": { | |||
"label": "List", | |||
"description": "Your list items delimited by semicolon or the delimiter of your choice", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"mode": { | |||
"label": "Mode", | |||
"description": "default (plain text) or Link" | |||
}, | |||
"delim": { | |||
"label": "Delimiter", | |||
"description": "Used to define your list items", | |||
"default": ";" | |||
} | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 12:01, 2 September 2026
This is the documentation page for List. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Creates a list using {{Array}} separated with semicolon ;.
Syntax
[edit source]{{List|Item1;Item2|mode = link|delim = delimiter}}
Examples
[edit source]{{List|Rice;Bamboo;Yunguo}} yields:
- Rice
- Bamboo
- Yunguo
{{List|Rice;Bamboo;Yunguo|mode = link}} yields:
{{List|Rice$$Bamboo$$Yunguo|delim = $$}} yields:
- Rice
- Bamboo
- Yunguo
Template Data
[edit source]No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| List | 1 | Your list items delimited by semicolon or the delimiter of your choice | String | required |
| Mode | mode | default (plain text) or Link | Unknown | optional |
| Delimiter | delim | Used to define your list items
| Unknown | optional |