Wikisage, de vrije encyclopedie van de tweede generatie, is digitaal erfgoed

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.
rel=nofollow

Sjabloon:Plural: verschil tussen versies

Uit Wikisage
Naar navigatie springen Naar zoeken springen
(<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|page}}</nowiki></code> returns "{{plural|0|page}}"
* <code><nowiki>{{plural|0|pagina}}</nowiki></code> returns "{{plural|0|pagina}}"
* <code><nowiki>{{plural|1|page}}</nowiki></code> returns "{{plural|1|page}}"
* <code><nowiki>{{plural|1|pagina}}</nowiki></code> returns "{{plural|1|pagina}}"
* <code><nowiki>{{plural|2|page}}</nowiki></code> returns "{{plural|2|page}}"
* <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

De sjabloonbeschrijving hieronder wordt niet afgebeeld wanneer de sjabloon wordt geplaatst.

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.