一个设置是与否的模板,返回结果为“Yes”与空格。
{{Yesno|(参数,不填则显示为空,默认显示Yes)}}
| 参数 | 用法 | 值 |
|---|---|---|
| yes | {{Yesno|yes}} | yes |
| y | {{Yesno|y}} | yes |
| true | {{Yesno|true}} | yes |
| 1 | {{Yesno|1}} | yes |
| 参数 | 用法 | 值 |
|---|---|---|
| no | {{Yesno|no}} | |
| n | {{Yesno|n}} | |
| false | {{Yesno|false}} | |
| 0 | {{Yesno|0}} |
| 参数 | 用法 | 值 |
|---|---|---|
| {{Yesno| }} | ||
| ¬ | {{Yesno|¬}} |
当参数不为以上值时,默认返回yes。
| 参数 | 用法 | 值 |
|---|---|---|
| OK | {{Yesno|OK}} | yes |
| Cancel | {{Yesno|Cancel}} | yes |