打开/关闭搜索
搜索
打开/关闭菜单
83
247
21
3516
NebulaeWiki
导航
首页
最近更改
特殊页面
上传文件
速览
成员守则
建设标准
玩家指南
编辑指南
交通
地铁
市域铁路
有轨电车
公交系统
活动
第一届星运会
第二届星运会
N20 · 杭州
关于
关于本站
隐私政策
免责声明
系统信息
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模板:Yesno/doc”︁的源代码
爱来自星云工艺喵!(づ。◕◡◡◕。)づ
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
模板:Yesno/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面已受到保护,以防止编辑或其他操作。
您可以查看和复制此页面的源代码。
This template normalises an input to be a yes/no output. === Usage === The template has five possible outputs depending on the default parameter (input if you will). In its simplest usage these will all be either "yes" or "" (blank - nothing no characters). # <tt><nowiki>{{yesno|yes}}</nowiki></tt> result "yes" (also applies to "Yes", "YeS", etc, "Y", "y" and "1") # <tt><nowiki>{{yesno|no}}</nowiki></tt> result "" (also applies to "No", "NO", "nO", "N", "n" and "0") # <tt><nowiki>{{yesno}}</nowiki></tt> result "" # <tt><nowiki>{{yesno|¬}}</nowiki></tt> result "" # <tt><nowiki>{{yesno|purplemonkeydishwasher}}</nowiki></tt> result "yes" (also applies to any other value not given above). Each of these can be over-ridden. # <tt><nowiki>{{yesno|yes|yes=bacon}}</nowiki></tt> result "bacon" (also applies to "Yes", "YeS", etc, "Y", "y" and "1") # <tt><nowiki>{{yesno|no|no=ham}}</nowiki></tt> result "ham" (also applies to "No", "NO", "nO", "N", "n" and "0") # <tt><nowiki>{{yesno|blank= eggs}}</nowiki></tt> result "eggs" ## but <tt><nowiki>{{yesno|no=ham}}</nowiki></tt> result "ham" ## and <tt><nowiki>{{yesno|blank= eggs|no=ham}}</nowiki></tt> result "eggs" # <tt><nowiki>{{yesno|¬|¬=sausage}}</nowiki></tt> result "sausage" # <tt><nowiki>{{yesno|purplemonkeydishwasher|def=cup-of-tea}}</nowiki></tt> result "cup-of-tea" (also applies to any other value not given above). ## but <tt><nowiki>{{yesno|purplemonkeydishwasher|yes=bacon}}</nowiki></tt> result "bacon" ## but <tt><nowiki>{{yesno|purplemonkeydishwasher|def=cup-of-tea|yes=bacon}}</nowiki></tt> result "cup-of-tea" This may be used (apparently perversely) thus: * <tt><nowiki>{{yesno|yes|yes=no|no=yes}}</nowiki></tt> result "no" * <tt><nowiki>{{yesno|no|yes=no|no=yes}}</nowiki></tt> result "yes" This creates a logical inversion.
返回
模板:Yesno/doc
。
我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。
确定