Template:Sublist

From QBWiki
Revision as of 16:03, 20 December 2025 by Kevin Wang (talk | contribs) (Created page with "<includeonly>{{Add|sublist_index|1}}{{#vardefine:sublist_{{#var:sublist_index}}|{{{1|}}}}}{{{1|}}}<noin<nowiki/>clude> Index of sublist: {{#var:sublist_index}} Length of subl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template documentation

An attempt to get around the 1000 character limit for functions in ParserFunctions when constructing a list that can be accessed with List lookup helper.

For long lists, subsections should be split into

{{Sublist|*entry 1}}
{{#var:sublist_index}}: {{#var:sublist_1}}
{{Sublist|*entry 2}}
{{#var:sublist_index}}: {{#var:sublist_2}}
  • entry 1<noinclude>

Index of sublist: 1

Length of sublist: 8</noinclude> 1:

  • entry 1
  • entry 2<noinclude>

Index of sublist: 2

Length of sublist: 8</noinclude> 2:

  • entry 2