Geekahedron (talk | contribs) No edit summary |
Geekahedron (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:groups| {{{1}}} |;|}}{{#arrayprint:groups|{{{4|<br />}}}|@@@@|{{{3|}}}{{NamedGroup|@@@@|{{{2|List}}}|{{!!}}|, }}}}</includeonly> | <includeonly>{{#ifeq: {{{infobox}}} |1| {{#arraydefine:groups| {{{1}}} |;|}}{{#arrayprint:groups|{{n}}{{!-}} class="infobox-tr" |@@@@|{{!}} class="infobox-parameter" {{!}} {{NamedGroup|@@@@|{{{2|List}}}|{{!!}}|, }}}} | | ||
{{#arraydefine:groups| {{{1}}} |;|}}{{#arrayprint:groups|{{{4|<br />}}}|@@@@|{{{3|}}}{{NamedGroup|@@@@|{{{2|List}}}|{{!!}}|, }}}} }}</includeonly> | |||
<noinclude>{{/doc}}</noinclude> | <noinclude>{{/doc}}</noinclude> |
Revision as of 03:41, 14 April 2022
This documentation is transcluded from Template:NamedList/doc. Changes can be proposed in the talk page.
This template parses a list (or multiple lists) of items and displays them, making use of Template:NamedGroup.
Items within a list should be comma-delimited, and separate groups should be semicolo-delimited. Each list can be preceded by a title, in which case the list itself should be encapsed in << >> marks.
Simple list with no title:
{{NamedList| item 1, item 2}}
List||item 1,item 2
Multiple named lists:
{{NamedList | title <<element 1, element 2 >>; title2 <<element 2, element 3>>}}
title||element 1,element 2
title2||element 2,element 3
Infobox style:
{{NamedList | title <<element 1, element 2 >>; title2 <<element 2, element 3>> | infobox = 1}}
| class="infobox-parameter" | title||element 1,element 2|- class="infobox-tr"| class="infobox-parameter" | title2||element 2,element 3
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | String to parse, containing a list or multiple list of items, each with optional title and << >> encapsulation | Unknown | required |
2 | 2 | Title to use for lists that do not have a specified title | Unknown | optional |
3 | 3 | Optional text, code, or formatting to place in front of each group | Unknown | optional |
4 | 4 | Delimiter to place between groups of formatted lists
| Unknown | optional |