切换搜索
搜索
切换菜单
notifications
切换个人菜单
查看“模块:Icon/doc”的源代码
来自决策链云智库
更多操作
←
模块:Icon/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Module rating|protected}} {{High-use|demo=Module:{{ROOTPAGENAME}}}} This module displays an icon depending on the code it is given. It implements [[Template:Icon]]. == Usage == === From wikitext === From wikitext this module should be used via [[Template:Icon]]. Please see the template page for documentation. === From Lua === To use this module from another Lua module, first load it: <syntaxhighlight lang="lua"> local mIcon = require('Module:Icon') </syntaxhighlight> Then you can make icons with the _main function. <syntaxhighlight lang="lua"> mIcon._main(args) </syntaxhighlight> The <var>args</var> variable is a table of arguments. This corresponds to the parameters accepted by [[Template:Icon]] - please see the template page for parameter documentation. == Data == The icon data is stored at [[Module:Icon/data]]. See the instructions there for how to add and remove icons. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
本页使用的模板:
模板:High-use
(
查看源代码
)
模板:Module rating
(
查看源代码
)
模块:High-use
(
查看源代码
)
模块:Message box
(
查看源代码
)
模块:Message box/configuration
(
查看源代码
)
模块:Message box/ombox.css
(
查看源代码
)
模块:Transclusion count
(
查看源代码
)
模块:Transclusion count/data/I
(
查看源代码
)
模块:Yesno
(
查看源代码
)
返回
模块:Icon/doc
。