Template:List lookup helper
Revision as of 19:07, 14 December 2025 by Kevin Wang (talk | contribs)
Template documentation
Given a list page, loads it exactly once and sets up enough variables it will not need to be loaded again to retrieve any entry. If this template has been invoked before with the same page_name, no-op.
- page_name - the page name provided as arg1
- loaded_page - the text of page_name
- length - the length of the list
- entry_i - the entry in the list at position i, where i is in [1, length-1] (0-indexed)
There is also the housekeeping variable "invocations", which equals the number of times this template was resolved and should thus always be 1.
{{:QBWiki:Quick links/lingo}}
{{List lookup helper|QBWiki:Quick links/lingo}}
{{#var:length}}, {{#var:invocations}}
{{#loop:jj|1|{{#var:length}}|{{#var:entry_{{#var:jj}}}}<br/>}}
- Wondering why people keep saying "m"?
- Confused what a "vulcher" is?
- Want to find out about "superpowers"?
- Wondering just what makes something "important"?
- Heard something about the "canon"?
5, 1
Wondering why people keep saying "m"?
Confused what a "vulcher" is?
Want to find out about "superpowers"?
Wondering just what makes something "important"?
Heard something about the "canon"?