Skabelon:Ordinal to word/0 to 99

Documentation icon Skabelondokumentation[vis] [redigér] [historik] [opfrisk]

Converts a natural number in the range 0 to 99 into a word representing its ordinal number in the English language.

Usage redigér

{{Ordinal to word/0 to 99|natural[|zero=zero]}}

natural: Required. A natural number in the range 0 to 19.

zeroth: Optional. The value to use when the number is 0. Default is "zeroth". Can be made empty or, for example, "one before the first" or "seed", as appropriate for the context.

Eksempler redigér

{{Ordinal to word/0 to 99|0|zeroth=not a sausage}}
{{Ordinal to word/0 to 99|30}}
{{Ordinal to word/0 to 99|55}}
{{Ordinal to word/0 to 99|99}}
{{Ordinal to word/0 to 99|-1}}

produces:

zeroth 
tredivende
halvtredse-femte
halvfemse-niende
{{Ordinal to word/0 to 99}}: value "-1" is not a natural number in the range 0 to 99

Se også redigér