Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TheOpenRoad Support
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Yesno/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
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!
===Customizing the output=== Template's default output can be customized with five named parameters, respectively: {{para|yes}}, {{para|no}}, {{para|blank}}, {{para|¬}} and {{para|def}}. If these parameters are specified, the template response is as follows: # '''Yes''': Template returns the contents of {{para|yes}}, otherwise returns "yes". For example: #* {{tlx|yesno|y|3=yes=Yeah}} results in "{{yesno|y|yes=Yeah}}" #* {{tlx|yesno|y|3=yes=bacon}} results in "{{yesno|y|yes=bacon}}" # '''No''': Template returns the contents of {{para|no}}, otherwise returns blank. For example: #* {{tlx|yesno|n|3=no=Nay}} results in "{{yesno|n|no=Nay}}" #* {{tlx|yesno|n|3=no=ham}} results in "{{yesno|n|no=ham}}" # '''Nothing''': Template returns the contents of {{para|blank}}, or of {{para|no}} in absence of the former; otherwise, returns blank. #* {{tlx|yesno||3=blank=eggs}} results in "{{yesno||blank=eggs}}" #* {{tlx|yesno||3=no=ham}} results in "{{yesno||no=ham}}" #* {{tlx|yesno||3=blank=eggs|4=no=ham}} results in "{{yesno||blank=eggs|no=ham}}" # '''Negation''': Template returns the contents of {{para|¬}}, otherwise returns blank. For example: #* {{tlx|yesno|¬|3=¬=sausage}} results in "{{yesno|¬|¬=sausage}}" # '''Anything else''': Template returns the contents of {{para|def}}, or of {{para|yes}} in absence of the former; otherwise, returns "yes". #* {{tlx|yesno|purple monkey dish washer|3=def=cup of tea}} results in "{{yesno|purple monkey dish washer|def=cup of tea}}" #* {{tlx|yesno|purple monkey dish washer|3=yes=bacon}} results in "{{yesno|purple monkey dish washer|yes=bacon}}" #* {{tlx|yesno|purple monkey dish washer|3=def=cup of tea|4=yes=bacon}} results in "{{yesno|purple monkey dish washer|def=cup of tea|yes=bacon}}" For the named parameters, use of a blank value is not the same as omitting the parameter. A blank named parameter tells the template that the customized return value is blank. For example: * {{tlx|yesno|purple monkey dish washer}} results in "{{yesno|purple monkey dish washer}}" * {{tlx|yesno|purple monkey dish washer|3=def=}} results in "{{yesno|purple monkey dish washer|def=}}" {{var|[blank]}}
Summary:
Please note that all contributions to TheOpenRoad Support may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
TheOpenRoad Support:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)