ਫਰਮਾ:Yesno
UsageThe template distinguishes five different types of input, supplied on the first unnamed parameter:
By default, the template returns "yes" in the first and last case but returns nil (blank, empty string) in the other cases. Two short-hand templates for the most common uses that override the default behavior:
Customizing the outputTemplate's default output can be customized with five named parameters, respectively:
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:
Logical distinctions
Full parameter listUnnamed parameter 1= the input value to be evaluated. The other parameters (all named, all optional), are the return values for their respective logical outcome. When set, each one overrules their default return value. {{yesno | | yes = | no = | blank= | ¬ = | def = }} See also
TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for Template:Yesno based on its TemplateData.
TemplateData for Yesno This template normalises an input to be a yes or nil output.
|
Portal di Ensiklopedia Dunia