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>)
(+)
 
(5 tussenliggende versies door 2 gebruikers niet weergegeven)
Regel 1: Regel 1:
{{{1}}} {{{{{|safesubst:}}}plural:{{{1}}}|{{{2}}}|{{{3|{{{2}}}s}}}|{{{4}}}}}<noinclude>
{{{1}}} {{{{{|safesubst:}}}plural:{{{1}}}|{{{2}}}|{{{3|{{{2}}}s}}}|{{{4}}}}}<noinclude>
{{Sjablooninfo|1=
{{Sjablooninfo|1=
'''Dit sjabloon wordt niet rechtstreeks gebruikt''' (hetgeen onzinnig zou zijn) '''maar ingebouwd in andere sjablonen voor de ''IF-functie'''''.
This template allows easy formatting of statements of the form "# thing(s)", with correct use of plurals. It uses the [[Help:Magic words#Language-dependent word conversions|"plural" magic word]], so ideally it should work with minimal modification for other language.
This template allows easy formatting of statements of the form "# thing(s)", with correct use of plurals. It uses the [[Help:Magic words#Language-dependent word conversions|"plural" magic word]], so ideally it should work with minimal modification for other language.


Regel 8: Regel 10:


===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 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 "en", or more unusual forms, the singular and plural forms must be specified explicitly:
* <code><nowiki>{{plural|0|ox|oxen}}</nowiki></code> returns "{{plural|0|ox|oxen}}"
* <code><nowiki>{{plural|0|week|weken}}</nowiki></code> returns "{{plural|0|week|weken}}"
* <code><nowiki>{{plural|1|ox|oxen}}</nowiki></code> returns "{{plural|1|ox|oxen}}"
* <code><nowiki>{{plural|1|week|weken}}</nowiki></code> returns "{{plural|1|week|weken}}"
* <code><nowiki>{{plural|2|ox|oxen}}</nowiki></code> returns "{{plural|2|ox|oxen}}"
* <code><nowiki>{{plural|2|week|weken}}</nowiki></code> returns "{{plural|2|week|weken}}"


===Notes===
===Notes===

Huidige versie van 8 sep 2012 om 20:08

{{{1}}} {{{2}}}s

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

Dit sjabloon wordt niet rechtstreeks gebruikt (hetgeen onzinnig zou zijn) maar ingebouwd in andere sjablonen voor de IF-functie.

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 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 "en", or more unusual forms, the singular and plural forms must be specified explicitly:

  • {{plural|0|week|weken}} returns "0 weken"
  • {{plural|1|week|weken}} returns "1 week"
  • {{plural|2|week|weken}} returns "2 weken"

Notes

  • While {{plural|#|sheep|sheep}} is valid, it is also fairly pointless.