Difference between revisions of "Template:List lookup helper/sublist case"

From QBWiki
Jump to navigation Jump to search
m
Line 35: Line 35:
 
* 1
 
* 1
 
* 2
 
* 2
}}
+
}}{{Sublist|
{{#var:length}}
 
{{Sublist|
 
 
* 3
 
* 3
 
* 4
 
* 4
Line 47: Line 45:
 
* 1
 
* 1
 
* 2
 
* 2
}}
+
}}{{Sublist|
{{#var:length}}
 
{{Sublist|
 
 
* 3
 
* 3
 
* 4
 
* 4

Revision as of 18:33, 20 December 2025

Template documentation

Special handling for Template:List lookup helper when Template:Sublist is being used.

Is intended to be used as a special case in the above template. Expects that "loaded_page" has been defined with the contents of the target list, which should have defined the "sublist_n" variables.

Provides alternate route to:

  • length
  • entry_i.
{{Sublist|
* 1
* 2
}}{{Sublist|
* 3
* 4
}}
{{List lookup helper/sublist case}}
{{#var:length}} ({{#var:sublist_index}}): {{#var:entry_1}}, {{#var:entry_2}}
  • 1
  • 2
  • 3
  • 4


4 (2): 1, 2, 3, 4