打开/关闭搜索
搜索
打开/关闭菜单
1391
1.8万
83
7.6万
导航
首页
最近更改
特殊页面
上传文件
随机页面
随机页面
随机歌曲
随机P主
编辑相关
帮助
讨论版
公共沙盒
待修改页面
批量上传文件
友情链接
VCPedia
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
创建条目推荐使用
幻梦术力口wiki工具
!
编辑P主歌曲列表前往
Vocawiki数据库打标网站
!
查看“︁Template:Yesno”︁的源代码
模板页面
更多语言
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
Template:Yesno
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{<includeonly>safesubst:</includeonly>#switch: {{<includeonly>safesubst:</includeonly>lc: {{{1|¬}}} }} |no |n |false |0 = {{{no|<!-- null -->}}} | = {{{blank|{{{no|<!-- null -->}}}}}} |¬ = {{{¬|}}} |yes |y |true |1 = {{{yes|yes}}} |#default = {{{def|{{{yes|yes}}}}}} }}<noinclude> 一个设置是与否的模板,返回结果为“Yes”与空格。 ==用法== <nowiki>{{Yesno|(参数,不填则显示为空,默认显示Yes)}}</nowiki> ===所有返回Yes的参数=== {| class="wikitable" |- ! 参数 !! 用法 !! 值 |- | yes || <nowiki>{{Yesno|yes}}</nowiki> || {{Yesno|yes}} |- | y || <nowiki>{{Yesno|y}}</nowiki> || {{Yesno|y}} |- | true || <nowiki>{{Yesno|true}}</nowiki> || {{Yesno|true}} |- | 1 || <nowiki>{{Yesno|1}}</nowiki> || {{Yesno|1}} |} ===返回空值的参数(No部分)=== {| class="wikitable" |- ! 参数 !! 用法 !! 值 |- | no || <nowiki>{{Yesno|no}}</nowiki> || {{Yesno|no}} |- | n || <nowiki>{{Yesno|n}}</nowiki> || {{Yesno|n}} |- | false || <nowiki>{{Yesno|false}}</nowiki> || {{Yesno|false}} |- | 0 || <nowiki>{{Yesno|0}}</nowiki> || {{Yesno|0}} |} ===返回空值的参数(空白部分)=== {| class="wikitable" |- ! 参数 !! 用法 !! 值 |- | || <nowiki>{{Yesno| }}</nowiki> || {{Yesno| }} |- | ¬ || <nowiki>{{Yesno|¬}}</nowiki> || {{Yesno|¬}} |} ===默认值=== 当参数不为以上值时,默认返回yes。 {| class="wikitable" |- ! 参数 !! 用法 !! 值 |- | OK || <nowiki>{{Yesno|OK}}</nowiki> || {{Yesno|OK}} |- | Cancel || <nowiki>{{Yesno|Cancel}}</nowiki> || {{Yesno|Cancel}} |} [[分类:逻辑模板]]</noinclude>
该页面使用的模板:
Template:Yesno
(
查看源代码
)
返回
Template:Yesno
。
查看“︁Template:Yesno”︁的源代码
模板页面