Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:LoadData/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Module rating|alpha}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> A more complex version of [[Module:Data]] with more options and the ability to select indexes with an inequality operator. == Usage == <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''Module name''|index1|2 lteq=index2 limit|...|}}</code> * Zeroth parameter is the name of the data module to read, without ''Module:'', e.g. <code>Example/data</code> * Next parameters, for an index {{var|N}} starting at one, are called {{para|{{var|N}}}} for the exact index you need, coerced to number if possible, {{para|{{var|N}} lteq}} to select the highest numerical index less than or equal to the argument, or {{para|{{var|N}} gteq}} for the opposite. * {{para|template}} is a ''printf''-style string to interpolate the resulting value(s) into, e.g. <code><nowiki><b>%s</b></nowiki></code>. * {{para|preprocess}} is like {{para|template}} except that <code>frame:preprocess</code> is run on it; this makes e.g. template transclusions work. * {{para|if nil}} is the string to return if the result is nil. Default is nil, which comes out as the empty string. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Module rating
(
edit
)
Template:Para
(
edit
)
Template:Var
(
edit
)