Difference between revisions of "Template:List lookup helper"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) m |
||
| Line 28: | Line 28: | ||
{{List lookup helper|QBWiki:Quick links/lingo}} | {{List lookup helper|QBWiki:Quick links/lingo}} | ||
{{#var:length}} | {{#var:length}} | ||
| + | |||
{{#loop:jj|1|{{#var:length}}|{{#var:entry_{{#var:jj}}}}<br/>}} | {{#loop:jj|1|{{#var:length}}|{{#var:entry_{{#var:jj}}}}<br/>}} | ||
</pre> | </pre> | ||
| Line 34: | Line 35: | ||
{{List lookup helper|QBWiki:Quick links/lingo}} | {{List lookup helper|QBWiki:Quick links/lingo}} | ||
{{#var:length}} | {{#var:length}} | ||
| + | |||
{{#loop:jj|1|{{#var:length}}|{{#var:entry_{{#var:jj}}}}<br/>}} | {{#loop:jj|1|{{#var:length}}|{{#var:entry_{{#var:jj}}}}<br/>}} | ||
}}</noinclude> | }}</noinclude> | ||
Revision as of 18:57, 14 December 2025
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)
{{:QBWiki:Quick links/lingo}}
{{List lookup helper|QBWiki:Quick links/lingo}}
{{#var:length}}
{{#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
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"?