Module:LoadData/doc

MyWikiBiz, Author Your Legacy — Friday November 15, 2024
< Module:LoadData
Revision as of 23:33, 15 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is the documentation page for Module:LoadData

Template:Module rating

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

Usage

{{#invoke:LoadData|Module name|index1|2 lteq=index2 limit|...|}}

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