<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.openfortress.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AYesno%2FDoc</id>
	<title>Template:Yesno/Doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.openfortress.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AYesno%2FDoc"/>
	<link rel="alternate" type="text/html" href="https://www.openfortress.wiki/w/index.php?title=Template:Yesno/Doc&amp;action=history"/>
	<updated>2026-05-03T16:21:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://www.openfortress.wiki/w/index.php?title=Template:Yesno/Doc&amp;diff=353&amp;oldid=prev</id>
		<title>Kate: Created page with &quot;{{Doc/subpage}} {{Wikipedia port}} {{tlx|Yesno}} evaluates any input and produces a normalized &lt;samp&gt;yes&lt;/samp&gt; or nil output, based on the content of the input and several configurable options. It is not used in article prose, but in coding complex templates.  == Usage == The template distinguishes five different types of input, supplied on the first unnamed parameter: # &#039;&#039;&#039;Yes&#039;&#039;&#039;: Case-insensitive forms of &lt;code&gt;Yes&lt;/code&gt;, &lt;code&gt;y&lt;/code&gt;, &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;on&lt;/...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.openfortress.wiki/w/index.php?title=Template:Yesno/Doc&amp;diff=353&amp;oldid=prev"/>
		<updated>2025-01-04T03:24:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Doc/subpage}} {{Wikipedia port}} {{tlx|Yesno}} evaluates any input and produces a normalized &amp;lt;samp&amp;gt;yes&amp;lt;/samp&amp;gt; or nil output, based on the content of the input and several configurable options. It is not used in article prose, but in coding complex templates.  == Usage == The template distinguishes five different types of input, supplied on the first unnamed parameter: # &amp;#039;&amp;#039;&amp;#039;Yes&amp;#039;&amp;#039;&amp;#039;: Case-insensitive forms of &amp;lt;code&amp;gt;Yes&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;on&amp;lt;/...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Doc/subpage}}&lt;br /&gt;
{{Wikipedia port}}&lt;br /&gt;
{{tlx|Yesno}} evaluates any input and produces a normalized &amp;lt;samp&amp;gt;yes&amp;lt;/samp&amp;gt; or nil output, based on the content of the input and several configurable options. It is not used in article prose, but in coding complex templates.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
The template distinguishes five different types of input, supplied on the first unnamed parameter:&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Yes&amp;#039;&amp;#039;&amp;#039;: Case-insensitive forms of &amp;lt;code&amp;gt;Yes&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;on&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;; e.g. {{tlx|Yesno|yEs}} &amp;amp;rarr; {{Yesno|yEs}}&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;No&amp;#039;&amp;#039;&amp;#039;: Case-insensitive forms of &amp;lt;code&amp;gt;No&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;; e.g. {{tlx|Yesno|nO}} &amp;amp;rarr; {{Yesno|nO}}&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Nothing&amp;#039;&amp;#039;&amp;#039;: When the input is defined but either contains no value or consists of [[w:whitespace character|whitespace character]] only; i.e. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Yesno|}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or {{tlx|Yesno|&amp;amp;nbsp;}} &amp;amp;rarr; {{Yesno|}}&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Negation&amp;#039;&amp;#039;&amp;#039;: When the input is either &amp;lt;code&amp;gt;¬&amp;lt;/code&amp;gt; ([[w:alt code|alt code]] [https://www.rapidtables.com/code/text/alt-codes.html 170]) or entirely missing; i.e. {{tlx|Yesno|¬}} or {{tlx|Yesno}} &amp;amp;rarr; {{Yesno|¬}} &lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Anything else&amp;#039;&amp;#039;&amp;#039;: e.g. {{tlx|Yesno|Purple monkey dish washer}} &amp;amp;rarr; {{Yesno|Purple monkey dish washer}}&lt;br /&gt;
&lt;br /&gt;
By default, the template returns &amp;quot;yes&amp;quot; in the first and last case but returns nil (blank, empty string) in the other cases.&lt;br /&gt;
&lt;br /&gt;
===Customizing the output===&lt;br /&gt;
Template&amp;#039;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:&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Yes&amp;#039;&amp;#039;&amp;#039;: Template returns the contents of {{para|yes}}, otherwise returns &amp;quot;yes&amp;quot;. For example:&lt;br /&gt;
#* {{tlx|yesno|y|3=yes=Yeah}} results in &amp;quot;{{yesno|y|yes=Yeah}}&amp;quot;&lt;br /&gt;
#* {{tlx|yesno|y|3=yes=bacon}}  results in &amp;quot;{{yesno|y|yes=bacon}}&amp;quot;&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;No&amp;#039;&amp;#039;&amp;#039;: Template returns the contents of {{para|no}}, otherwise returns blank. For example:&lt;br /&gt;
#* {{tlx|yesno|n|3=no=Nay}} results in &amp;quot;{{yesno|n|no=Nay}}&amp;quot;&lt;br /&gt;
#* {{tlx|yesno|n|3=no=ham}} results in &amp;quot;{{yesno|n|no=ham}}&amp;quot;&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Nothing&amp;#039;&amp;#039;&amp;#039;: Template returns the contents of {{para|blank}}, or of {{para|no}} in absence of the former; otherwise, returns blank.&lt;br /&gt;
#* {{tlx|yesno||3=blank=eggs}} results in &amp;quot;{{yesno||blank=eggs}}&amp;quot;&lt;br /&gt;
#* {{tlx|yesno||3=no=ham}} results in &amp;quot;{{yesno||no=ham}}&amp;quot;&lt;br /&gt;
#* {{tlx|yesno||3=blank=eggs|4=no=ham}} results in &amp;quot;{{yesno||blank=eggs|no=ham}}&amp;quot;&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Negation&amp;#039;&amp;#039;&amp;#039;: Template returns the contents of {{para|¬}}, otherwise returns blank. For example:&lt;br /&gt;
#* {{tlx|yesno|¬|3=¬=sausage}} results in &amp;quot;{{yesno|¬|¬=sausage}}&amp;quot;&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Anything else&amp;#039;&amp;#039;&amp;#039;: Template returns the contents of {{para|def}}, or of {{para|yes}} in absence of the former; otherwise, returns &amp;quot;yes&amp;quot;.&lt;br /&gt;
#* {{tlx|yesno|purple monkey dish washer|3=def=cup of tea}} results in &amp;quot;{{yesno|purple monkey dish washer|def=cup of tea}}&amp;quot;&lt;br /&gt;
#* {{tlx|yesno|purple monkey dish washer|3=yes=bacon}} results in &amp;quot;{{yesno|purple monkey dish washer|yes=bacon}}&amp;quot;&lt;br /&gt;
#* {{tlx|yesno|purple monkey dish washer|3=def=cup of tea|4=yes=bacon}} results in &amp;quot;{{yesno|purple monkey dish washer|def=cup of tea|yes=bacon}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
* {{tlx|yesno|purple monkey dish washer}} results in &amp;quot;{{yesno|purple monkey dish washer}}&amp;quot;&lt;br /&gt;
* {{tlx|yesno|purple monkey dish washer|3=def=}} results in &amp;quot;{{yesno|purple monkey dish washer|def=}}&amp;quot; {{var|[blank]}}&lt;/div&gt;</summary>
		<author><name>Kate</name></author>
	</entry>
</feed>