Toggle search
Search
Toggle menu
Join us on Discord!
Notifications
Toggle personal menu
Editing
Template:Yesno/doc
Template page
Views
Read
Edit
View history
associated-pages
Template
Discussion
More actions
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!
Preview
Advanced
Special characters
Help
Heading
Level 2
Level 3
Level 4
Level 5
Format
Insert
Latin
Latin extended
IPA
Symbols
Greek
Greek extended
Cyrillic
Arabic
Arabic extended
Hebrew
Bangla
Tamil
Telugu
Sinhala
Devanagari
Gujarati
Thai
Lao
Khmer
Canadian Aboriginal
Runes
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
Formatting
Links
Headings
Lists
Files
Discussion
References
Description
What you type
What you get
Italic
''Italic text''
Italic text
Bold
'''Bold text'''
Bold text
Bold & italic
'''''Bold & italic text'''''
Bold & italic text
Description
What you type
What you get
Reference
Page text.<ref>[https://www.example.org/ Link text], additional text.</ref>
Page text.
[1]
Named reference
Page text.<ref name="test">[https://www.example.org/ Link text]</ref>
Page text.
[2]
Additional use of the same reference
Page text.<ref name="test" />
Page text.
[2]
Display references
<references />
↑
Link text
, additional text.
↑
Link text
<includeonly> {{Languages|Template:Yesno/doc}} </includeonly>{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> 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). * {{Tlx|Yesno|yes}} → "yes" (also applies to "Yes", "YeS", etc, "Y", "y" and "1") * {{Tlx|Yesno|no}} → "" (also applies to "No", "NO", "nO", "N", "n" and "0") * {{Tlx|Yesno}} → "" * {{Tlx|Yesno|¬}} → "" * {{Tlx|Yesno|purplemonkeydishwasher}} → "yes" (also applies to any other value not given above) Each of these can be over-ridden. * {{Tlx|Yesno|yes|yes{{=}}bacon}} → "{{Yesno|yes|yes=bacon}}" (also applies to "Yes", "YeS", etc, "Y", "y" and "1") * {{Tlx|Yesno|no|no{{=}}ham}} → "{{Yesno|no|no=ham}}" (also applies to "No", "NO", "nO", "N", "n" and "0") * {{Tlx|Yesno||blank{{=}}eggs}} → "{{Yesno||blank=eggs}}" ** but {{Tlx|Yesno||no{{=}}ham}} → "{{Yesno||no=ham}}" ** and {{Tlx|Yesno||blank{{=}}eggs|no{{=}}ham}} → "{{Yesno||blank=eggs|no=ham}}" * {{Tlx|Yesno|¬|¬{{=}}sausage|blank{{=}}eggs|no{{=}}ham}} → "{{Yesno|¬|¬=sausage|blank=eggs|no=ham}}" ** and {{Tlx|Yesno|¬{{=}}sausage|blank{{=}}eggs|no{{=}}ham}} → "{{Yesno|¬=sausage|blank=eggs|no=ham}}" * {{Tlx|Yesno|purplemonkeydishwasher|def{{=}}cup-of-tea}} → "{{Tlx|Yesno|purplemonkeydishwasher|def{{=}}cup-of-tea}}" (also applies to any other value not given above) ** but {{Tlx|Yesno|purplemonkeydishwasher|yes{{=}}bacon}} → "{{Yesno|purplemonkeydishwasher|yes=bacon}}" ** and {{Tlx|Yesno|purplemonkeydishwasher|def{{=}}cup-of-tea|yes{{=}}bacon}} → "{{Yesno|purplemonkeydishwasher|def=cup-of-tea|yes=bacon}}" This may be used (apparently perversely) thus: * {{Tlx|Yesno|yes|yes{{=}}no|no{{=}}yes}} → "{{Yesno|yes|yes=no|no=yes}}" * {{Tlx|Yesno|no|yes{{=}}no|no{{=}}yes}} → "{{Yesno|no|yes=no|no=yes}}" This creates a logical inversion. == TemplateData == {{TemplateData header}} <templatedata> { "description": { "en": "This template normalises an input to be a yes or nil output.", "cs": "Tato šablona normalizuje vstup tak, aby bylo výstupem ano nebo nula.", "tr": "Bu şablon, bir girişi evet veya sıfır çıkışı olacak şekilde normalleştirir." }, "format": "inline", "params": { "1": { "label": { "en": "Input value", "cs": "Vstupní hodnota", "tr": "Giriş değeri" }, "description": { "en": "The value to be evaluated.", "cs": "Hodnota, která má být vyhodnocena.", "tr": "Değerlendirilecek değer." }, "type": "string", "required": true }, "yes": { "label": { "en": "Output on yes", "cs": "Výstup na ano", "tr": "Yes üzerinde çıkış" }, "description": { "en": "Specifies the output of the template when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1'.", "cs": "Určuje výstup šablony, když je vstupní hodnota ve tvaru Yes', 'Y', 'True' nebo '1' bez ohledu na velikost písmen.", "tr": "Giriş değeri büyük/küçük harfe duyarsız bir 'Yes', 'Y', 'True' veya '1' olduğunda şablonun çıkışı belirtir." }, "type": "string", "required": false }, "no": { "label": { "en": "Output on no", "cs": "Výstup na ne", "tr": "No üzerinde çıkış" }, "description": { "en": "Specifies the output of the template when the input value is a case-insensitive forms of 'No', 'N', 'False', or '0'.", "cs": "Určuje výstup šablony, když je vstupní hodnota ve tvaru 'No', 'N', 'False' nebo '0' bez ohledu na velikost písmen.", "tr": "Giriş değeri büyük/küçük harfe duyarlı olmayan 'No', 'N', 'False' veya '0' biçimleri olduğunda şablonun çıktısını belirtir." }, "type": "string", "required": false }, "blank": { "label": { "en": "Output on blank input", "cs": "Výstup na prázdném vstupu", "tr": "Boş girişte çıkış" }, "description": { "en": "Specifies the output of the template when the input value is defined but is either empty or contains nothing but whitespace character(s).", "cs": "Určuje výstup šablony, když je vstupní hodnota definována, ale je buď prázdná nebo neobsahuje nic než prázdné znaky.", "tr": "Giriş değeri tanımlandığında, ancak boş olduğunda veya boşluk karakter(ler)inden başka bir şey içermediğinde şablonun çıkışını belirtir." }, "type": "string", "required": false }, "¬": { "label": { "en": "Output on ¬", "cs": "Výstup na ¬", "tr": "¬ üzerinde çıkış" }, "description": { "en": "Specifies the output of the template when the input value is either '¬' or entirely missing (undefined).", "cs": "Určuje výstup šablony, když je vstupní hodnota buď '¬' nebo zcela chybí (nedefinována).", "tr": "Giriş değeri '¬' veya tamamen eksik (tanımsız) olduğunda şablonun çıkışını belirtir." }, "type": "string", "required": false }, "def": { "label": { "en": "Definite output", "cs": "Určený výstup", "tr": "Kesin çıkışı" }, "description": { "en": "Specifies the output of the template when the input value is defined but not a form of 'yes', 'no', '1', '0', '¬' or blank.", "cs": "Určuje výstup šablony, když je definována vstupní hodnota, ale ne ve tvaru 'ano', 'ne', '1', '0', '¬' nebo prázdná.", "tr": "Giriş değeri tanımlandığında ancak bir 'yes', 'no', '1', '0', '¬' veya boş şeklinde tanımlanmadığında şablonun çıkışını belirtir." }, "type": "string", "required": false } } } </templatedata> == See also == * [[Module:Yesno]] <includeonly>{{Sandbox other|| <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> [[Category:Utility templates{{#translation:}}]] }}</includeonly>
Summary:
Please note that all contributions to WoopMC 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
WoopMC:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template:Documentation subpage
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link expanded
(
edit
)
Template:Yesno
(
edit
)