Template:List/doc: Difference between revisions

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=Item1;Item2;Yunguo|_Y_=1}}
{{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": {
"description": ""
"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>