切换搜索
搜索
切换菜单
notifications
切换个人菜单
查看“模块:DemoTemplate/doc”的源代码
来自决策链云智库
更多操作
←
模块:DemoTemplate/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Module rating|beta}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> == Usage == Simply place "#invoke:{{BASEPAGENAME}}|" before a call to a template. For example, <nowiki>{{#invoke:DemoTemplate|Convert|10|km|nmi|abbr=off}}</nowiki> yields the following: :{{#invoke:{{BASEPAGENAME}}|Convert|10|km|nmi|abbr=off}} This module handles both named and positional parameters as well as equals signs in both parameter names and values correctly, so this (for example) will work: <nowiki>{{#invoke:DemoTemplate|1x|1=Some parameter with an = sign in it}}</nowiki> :{{#invoke:{{BASEPAGENAME}}|1x|1=Some parameter with an = sign in it}} Note, however, that pipes, curly braces, etc. are not currently handled correctly by this module, so this (for example) will '''not''' work correctly: <nowiki>{{#invoke:DemoTemplate|1x|foo{{!}}bar}}</nowiki> :{{#invoke:{{BASEPAGENAME}}|1x|foo{{!}}bar}} <includeonly>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Documentation assistance templates]] }}</includeonly>
本页使用的模板:
模板:Module rating
(
查看源代码
)
模块:DemoTemplate
(
查看源代码
)
模块:OutputBuffer
(
查看源代码
)
返回
模块:DemoTemplate/doc
。