Editing
Template:Yesno/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{adapted|[https://en.wikipedia.org/wiki/Template:Yesno Template:Yesno]}} This template is used for boolean logic, typically within other templates similar to [https://www.mediawiki.org/wiki/Extension:ParserFunctions/en ParserFunctions]. ==Usage== <pre>{{Yesno|input|yes=Output if yes}}</pre> <pre>{{Yesno|input|yes=Output if yes|no=Output if no|blank=Output if blank|Β¬=Output if undefined or newline character}}</pre> ==Template data== <templatedata> { "params": { "1": { "description": "The value to be evaluated", "type": "string", "required": true }, "no": { "description": "Output when input value evaluates to \"no\"", "type": "string" }, "blank": { "description": "Specifies the output of the template when the input value is defined but is either empty or contains nothing but whitespace character(s).", "type": "string" }, "Β¬": { "description": "Specifies the output of the template when the input value is either 'Β¬' or entirely missing (undefined).", "type": "string" }, "yes": { "description": "Output when input value evaluates to \"yes\"", "type": "string" }, "def": { "description": "Specifies the output of the template when the input value is defined but not a form of 'yes', 'no', '1', '0', 'Β¬' or blank.", "type": "string" } }, "description": "Boolean logic using yes/no instead of true/false" } </templatedata> <noinclude>[[Category:Template documentation]]</noinclude>
Summary:
Please note that all contributions to The Remnant 2 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
RW:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Template used on this page:
Template:Adapted
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Discord
Discord
Navigation
Main page
Recent changes
Random page
Links
Homepage
FTA Homepage
Gunfire Games
Community resources
Game updates
Remnant 2 Toolkit
Tools
What links here
Related changes
Special pages
Page information
Page values