틀:Pl
kiseki
다른 명령
s
Template documentation (for the above template, sometimes partially or fully invisible)[view] [edit] [history] [refresh]
For templates, this provides a plural check and a simple way to make word plurality correct for English.
Parameters
{{pl|<input>}}
- input: The value to check. If it is equal to "1" (the number 1), this template will return the "singular" result (s). Otherwise with any other input it will return the plural result (p).
- s (optional): The thing to return for "singular" (defaults to an empty output).
- p (optional): The thing to return for "plural" (defaults to the value "s", the common way words are made plural in English).
Examples
Main article{{pl|1}}: article 1
|
Main article: article 1 |
Main article{{pl|2}}: article 1 and article 2
|
Main articles: article 1 and article 2 |
Dependanc{{pl|1|s=y|p=ies}}: 1
|
Dependancy: 1 |
Dependanc{{pl|3|s=y|p=ies}}: 1, 2, and 3
|
Dependancies: 1, 2, and 3 |
The above text is transcluded from 틀:Pl/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to 틀:Pl/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to 틀:Pl/doc. (View all subpages of this page.)