Geekahedron (talk | contribs) No edit summary |
Geekahedron (talk | contribs) No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:items|{{#rreplace:{{{1}}}|([^<>]*<<)?([^<>]*)>>?|\2}}}}{{#ifexpr: {{#count: {{{1}}} |{}} | {{#explode: {{{1}}} |{}} | {{{2|List}}} }}{{{3|:{{!!}}}}}{{#arrayprint:items|{{{4|,}}}}}</includeonly><noinclude>{{/doc}}</noinclude> | <includeonly>{{documentation}} | ||
{{#arraydefine:items|{{#rreplace:{{{1}}}|([^<>]*<<)?([^<>]*)>>?|\2}}}}{{#ifexpr: {{#count: {{{1}}} |{}} | {{#explode: {{{1}}} |{}} | {{{2|List}}} }}{{{3|:{{!!}}}}}{{#arrayprint:items|{{{4|,}}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
Revision as of 20:20, 13 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>>}}
Template:documentation
List:||item 1,item 2,item 3 Group with title parameter and ~~ delimiter:
{{NamedGroup|item 1, item 2, item 3 | Title|~~}}
Template:documentation
Title~~item 1,item 2,item 3 Group with no title and "-" list delimiter:
{{NamedGroup|item 1, item2, item 3}}
Template:documentation
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 |