切换搜索
搜索
切换菜单
notifications
切换个人菜单
查看“模块:LoadData/doc”的源代码
来自决策链云智库
更多操作
←
模块:LoadData/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Module rating|protected}} <!-- Please, place this module categories and this documentation interwikis where indicated at the bottom of this page. This module interwikis go at Wikidata (see [[Wikipedia:Wikidata]]). Thanks! --> A more complex version of [[Module:Data]] with more options and the ability to select indexes with an inequality operator. ==Usage== <syntaxhighlight lang="wikitext">{{#invoke:{{BASEPAGENAME}}|Module name|index1|2 lteq=index2 limit|...|}}</syntaxhighlight> * 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>{{Sandbox other|| <!-- Please, add this module categories below this line. Thanks! --> }}</includeonly><noinclude><!-- Please, add this documentation interwikis below this line. Thanks! --> [[pt:Módulo:LoadData/doc]] </noinclude>
本页使用的模板:
模板:Module rating
(
查看源代码
)
模板:Para
(
查看源代码
)
模板:Var
(
查看源代码
)
返回
模块:LoadData/doc
。