Difference between revisions of "Template:List lookup helper/sublist case"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) (Created page with "<includeonly>{{#vardefine:jj|0}}<!-- Initialize jj = 1 - this will be the global counter for entries. Iterate from 1 -> sublist_index to visit all sublists. -->{{#loop:ii|1|...") |
Kevin Wang (talk | contribs) m |
||
| Line 5: | Line 5: | ||
-->{{#loop:ii|1|{{#var:sublist_index}} | -->{{#loop:ii|1|{{#var:sublist_index}} | ||
| − | |{{#vardefine:current_sublist|{{#var:sublist_{{#var:ii}}}}}}{{#vardefine:cleaned_sublist|{{#explode:{{#var:current_sublist}}|==|0}}}}<-- | + | |{{#vardefine:current_sublist|{{#var:sublist_{{#var:ii}}}}}}{{#vardefine:cleaned_sublist|{{#explode:{{#var:current_sublist}}|==|0}}}}<!-- |
>>>>> LOOP START | >>>>> LOOP START | ||
Revision as of 17:21, 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.
{{List lookup helper/sublist case}}
{{#var:length}}
0