Template:Yesno/tr

From mediawiki.org
Template documentation

Bu şablon, bir girişi yes/no çıkışı olacak şekilde normalleştirir.

Kullanım

Şablonun varsayılan parametreye bağlı olarak beş olası çıkışı vardır (eğer yapacaksanız girin).

En basit kullanımında bunların hepsi ya "yes" ya da "" olacaktır (boş = hiçbir şey karakter yok).

  • {{Yesno|yes}} → "yes" (Yes", "YeS" vb. için de geçerlidir, "Y", "y" ve "1")
  • {{Yesno|no}} → "" ("No", "NO", "nO", "N", "n" ve "0" için de geçerlidir)
  • {{Yesno}} → ""
  • {{Yesno|¬}} → ""
  • {{Yesno|purplemonkeydishwasher}} → "yes" (ayrıca yukarıda verilmeyen diğer değerler için de geçerlidir)

Bunların her biri aşırı yüklenebilir.

  • {{Yesno|yes|yes=bacon}} → "bacon" ("Yes", "YeS", vb. "Y", "y" ve "1" için de geçerlidir)
  • {{Yesno|no|no=ham}} → "ham" ("No", "NO", "nO", "N", "n" ve "0" için de geçerlidir)
  • {{Yesno|blank=eggs}} → "eggs"
    • ancak {{Yesno|no=ham}} → "ham"
    • ve {{Yesno|blank=eggs|no=ham}} → "eggs"
  • {{Yesno|¬|¬=sausage|blank=eggs|no=ham}} → "sausage"
    • ve {{Yesno|¬=sausage|blank=eggs|no=ham}} → "sausage"
  • {{Yesno|purplemonkeydishwasher|def=cup-of-tea}} → "{{Yesno|purplemonkeydishwasher|def=cup-of-tea}}" (ayrıca yukarıda verilmeyen diğer değerler için de geçerlidir)
    • ancak {{Yesno|purplemonkeydishwasher|yes=bacon}} → "bacon"
    • ve {{Yesno|purplemonkeydishwasher|def=cup-of-tea|yes=bacon}} → "cup-of-tea"

Bu, (görünüşte sapkın bir şekilde) şu şekilde kullanılabilir:

  • {{Yesno|yes|yes=no|no=yes}} → "no"
  • {{Yesno|no|yes=no|no=yes}} → "yes"

Bu mantıksal bir ters çevirme oluşturur.

TemplateData

Bu, Görsel Düzenleyici ve diğer araçlar tarafından kullanılan bu şablon için TemplateData belgesidir.

Yesno

This template normalises an input to be a yes or nil output.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Input value1

The value to be evaluated.

Stringrequired
Output on yesyes

Specifies the output of the template when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1'.

Stringoptional
Output on nono

Specifies the output of the template when the input value is a case-insensitive forms of 'No', 'N', 'False, or '0'.

Stringoptional
Output on blank inputblank

Specifies the output of the template when the input value is defined but is either empty or contains nothing but whitespace character(s).

Stringoptional
Output on ¬¬

Specifies the output of the template when the input value is either '¬' or entirely missing (undefined).

Stringoptional
Definite outputdef

Specifies the output of the template when the input value is defined but not a form of 'yes', 'no', '1', '0', '¬' or blank.

Stringoptional

Ayrıca bakınız