틀:Pl/doc
kiseki
다른 명령
< 틀:Pl
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 |