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
(gebruik "magic word" plural:)
(Weg met onzin. Kijk naar de voorbeelden aub. Dit sjabloon wordt in andere sjablonen ingebouwd. Moet het nog uitwerken)
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=
Gebruik bij voorkeur: '''Plural: ''' in de plaats van '''Plural{{!}}'''.
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.



Versie van 8 sep 2012 20:06

{{{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 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.