查看“︁模板:P1/doc”︁的源代码
来自康健生活
←
模板:P1/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Documentation subpage}} The templates [[Template:P1|P1]], [[Template:P2|P2]] and [[Template:P3|P3]] simply return the first, second and third unnamed input parameter respectively. For example: * {{tlc|P1|foo|bar|baz}} returns {{P1|foo|bar|baz}} * {{tlc|P2|foo|bar|baz}} returns {{P2|foo|bar|baz}} * {{tlc|P3|foo|bar|baz}} returns {{P3|foo|bar|baz}} These templates can be used inside other templates as an alternative to the <code>[[Help:Parser functions##switch|#switch]]</code> parser function, to switch between outputs based on whether the input is "1", "2" or "3": * {{tlc|P{{<nowiki/>{1}}}|''output if 1''|''output if 2''|''output if 3''}} Using <code><nowiki>{{#switch}}</nowiki></code>, this syntax is equivalent to * {{tlc|{<nowiki/>#switch:{{<nowiki/>{1}}}|1{{=}}''output if 1''|2{{=}}''output if 2''|3{{=}}''output if 3''}} except that the parser function strips whitespace between parameters whereas the templates don't.
此页面嵌入的页面:
模板:((
(
查看源代码
)
模板:))
(
查看源代码
)
模板:Nowrap/styles.css
(
查看源代码
)
模板:P1
(
查看源代码
)
模板:P2
(
查看源代码
)
模板:P3
(
查看源代码
)
模板:Tlc
(
查看源代码
)
返回
模板:P1/doc
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。