Jump to content
Wikipedia The Free Encyclopedia

Template:Nth century

From Wikipedia, the free encyclopedia

{{{1}}}st century

Template documentation[view] [edit] [history] [purge]
This template should always be substituted (i.e., use {{subst:Nth century}}). Any accidental transclusions will be automatically substituted by a bot.
This template may have no transclusions. This is because it is substituted by a tool or script, it is used as part of a short-term or less active Wikipedia process, or for some other reason.

Converts a roman numeral to an ordinal century, so 'XIX' ⟶ '19th century'. It also accepts Arabic numbers, within reason, and will output invalid input unchanged without error messages. Caveat editor.

Usage

[edit ]

{{Nth century|XIX}}
{{Nth century|XV|short=yes}}

Parameters

[edit ]

|1= – a roman numeral between I and XXV
|short= – if present, emits 'c.' instead of the word 'century'. Alias: 'abbr'.

Examples

[edit ]

Technical

[edit ]

A planned expansion will permit roman numeral ranges with hyphens in param 1 , e.g., XV-XVII.

Designed to catch similar templates from other Wikipedias, which would otherwise result in undefined template errors after translation. Known examples:

The above documentation is transcluded from Template:Nth century/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /