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>) |
(+) |
||
(6 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. | ||
===Syntax=== | ===Syntax=== | ||
* <nowiki>{{</nowiki>plural|''number''|''name''<nowiki>}}</nowiki> | * <nowiki>{{</nowiki>plural<nowiki>|</nowiki>''number''<nowiki>|</nowiki>''name''<nowiki>}}</nowiki> | ||
* <nowiki>{{</nowiki>plural|''number''|''singular name''|''plural name''<nowiki>}}</nowiki> | * <nowiki>{{</nowiki>plural<nowiki>|</nowiki>''number''<nowiki>|</nowiki>''singular name''<nowiki>|</nowiki>''plural name''<nowiki>}}</nowiki> | ||
===Examples=== | ===Examples=== | ||
For most | 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| | * <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 " | For plurals that require adding "en", or more unusual forms, the singular and plural forms must be specified explicitly: | ||
* <code><nowiki>{{plural|0| | * <code><nowiki>{{plural|0|week|weken}}</nowiki></code> returns "{{plural|0|week|weken}}" | ||
* <code><nowiki>{{plural|1| | * <code><nowiki>{{plural|1|week|weken}}</nowiki></code> returns "{{plural|1|week|weken}}" | ||
* <code><nowiki>{{plural|2| | * <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
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.