Wikisage is op 1 na de grootste internet-encyclopedie in het Nederlands. Iedereen kan de hier verzamelde kennis gratis gebruiken, zonder storende advertenties. De Koninklijke Bibliotheek van Nederland heeft Wikisage in 2018 aangemerkt als digitaal erfgoed.
- Wilt u meehelpen om Wikisage te laten groeien? Maak dan een account aan. U bent van harte welkom. Zie: Portaal:Gebruikers.
- Bent u blij met Wikisage, of wilt u juist meer? Dan stellen we een bescheiden donatie om de kosten te bestrijden zeer op prijs. Zie: Portaal:Donaties.
Sjabloon:Plural: verschil tussen versies
(<nowiki>|</nowiki>) |
(pagina) |
||
Regel 9: | Regel 9: | ||
===Examples=== | ===Examples=== | ||
For most English nouns, the plural is formed by adding "s" to the end of the singular form. If that is the case, only one "name" parameter is required: | For most English nouns, the plural is formed by adding "s" to the end of the singular form. If that is the case, only one "name" parameter is required: | ||
* <code><nowiki>{{plural|0| | * <code><nowiki>{{plural|0|pagina}}</nowiki></code> returns "{{plural|0|pagina}}" | ||
* <code><nowiki>{{plural|1| | * <code><nowiki>{{plural|1|pagina}}</nowiki></code> returns "{{plural|1|pagina}}" | ||
* <code><nowiki>{{plural|2| | * <code><nowiki>{{plural|2|pagina}}</nowiki></code> returns "{{plural|2|pagina}}" | ||
For plurals that require adding "es", or more unusual forms, the singular and plural forms must be specified explicitly: | For plurals that require adding "es", or more unusual forms, the singular and plural forms must be specified explicitly: |
Versie van 8 sep 2012 16:42
{{{1}}} {{{2}}}s
This template allows easy formatting of statements of the form "# thing(s)", with correct use of plurals. It uses the "plural" magic word, so ideally it should work with minimal modification for other language.
Syntax
- {{plural|number|name}}
- {{plural|number|singular name|plural name}}
Examples
For most English nouns, the plural is formed by adding "s" to the end of the singular form. If that is the case, only one "name" parameter is required:
{{plural|0|pagina}}
returns "0 paginas"{{plural|1|pagina}}
returns "1 pagina"{{plural|2|pagina}}
returns "2 paginas"
For plurals that require adding "es", or more unusual forms, the singular and plural forms must be specified explicitly:
{{plural|0|ox|oxen}}
returns "0 oxen"{{plural|1|ox|oxen}}
returns "1 ox"{{plural|2|ox|oxen}}
returns "2 oxen"
Notes
- While
{{plural|#|sheep|sheep}}
is valid, it is also fairly pointless.