Geekahedron (talk | contribs) No edit summary |
Geekahedron (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:items| | <includeonly>{{#arraydefine:items|{{#rreplace:{{{1}}}|([^<>]*<<)?([^<>]*)>>?|\2}}}}{{#ifexpr:{{#count: {{{1}}} |<<}}| {{#explode: {{{1}}} |<<}}| {{{2|List}}} }}{{{3|{{!!}}}}}{{#arrayprint:items|{{{4|,}}}}}</includeonly><noinclude>{{/doc}}</noinclude> | ||
{{#rreplace:{{{1}}}|([^<>]*<<)?([^<>]*)>>?|\2}} | |||
}} | |||
{{#ifexpr: | |||
{{#count: {{{1}}} | | |||
| {{#explode: {{{1}}} | | |||
| {{{2|List}}} }} | |||
{{{3| |
Latest revision as of 03:38, 14 April 2022
This documentation is transcluded from Template:NamedGroup/doc. Changes can be proposed in the talk page.
This template takes a list of items with an optional name and formats them for insertion into a table. Used to process individual list from within the Template:NamedList template.
Titled group with << >> list:
{{NamedGroup|Title << item 1, item 2, item 3>>}}
Title||item 1,item 2,item 3
Group with title parameter and ~~ delimiter:
{{NamedGroup|item 1, item 2, item 3 | Title|~~}}
Title~~item 1,item 2,item 3
Group with no title and "-" list delimiter:
{{NamedGroup|item 1, item2, item 3}}
item 1-item2-item 3
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | List of items in group (optionally << >> encapsed with group name in front) | Unknown | optional |
2 | 2 | Title of group (if not included in parameter 1) | Unknown | optional |
3 | 3 | Delimiter between group title and list of items | Unknown | optional |
4 | 4 | Delimiter between list items | Unknown | optional |