Module:LoadData/doc

&#x3c;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikidata) --&#x3e;

A more complex version of Module:Data with more options and the ability to select indexes with an inequality operator.

Usage
&#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/code&#x3e;


 * Zeroth parameter is the name of the data module to read, without Module:, e.g. &#x3c;code&#x3e;Example/data&#x3c;/code&#x3e;
 * Next parameters, for an index N starting at one, are called N for the exact index you need, coerced to number if possible, N lteq to select the highest numerical index less than or equal to the argument, or N gteq for the opposite.
 * template is a printf-style string to interpolate the resulting value(s) into, e.g. &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;b&#x3e;%s&#x3c;/b&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;.
 * preprocess is like template except that &#x3c;code&#x3e;frame:preprocess&#x3c;/code&#x3e; is run on it; this makes e.g. template transclusions work.
 * if nil is the string to return if the result is nil. Default is nil, which comes out as the empty string.

&#x3c;includeonly&#x3e;&#x3c;/includeonly&#x3e;