Template:Century/doc
Return the localized name of a numbered century (in the Julian or Gregorian calendars). May be formatted with Roman numerals, or decimal digits in other sets than Latin Arabic digits, or superscripts for abbreviations (possibly with HTML titles for hints) according to conventions of the target language.
Usage
{{Century |1= }}
Other supported languages not listed in the example table below are pre-rendered above this documentation panel only for the 20th century. Specify only ordinal centuries (counted inclusively from the calendar epoch, like years), not 0, negatively signed for centuries of Roman calendars before the common era. This template does not generate any indication of the type of Roman calendar (you may indicate if needed, within parentheses after the returned label, the precision for the Republican Roman, Julian, Revised Julian, or Gregorian calendar used, and if they are possibly proleptic).
This template may not be usable in all languages for calendars that are not based on a Roman calendar, because they have different orthographic conventions and don't necessarily refer to the same epoch for negative centuries, noted differently (e.g. for islamic calendars based on the Egere epoch), or could use other numeric systems or sets of digits.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | century | number of the century Gregorian calendar or in the Julian calendar (non-zero integer, negative for centuries before the Christian era) | 20 | required |
lang | language code | BCP 47 code of the language to use for translating the returned label; by default the label will be returned in the current user's language. Use "en" to return the default label in English that should be used in page names for Commons categories and gallery pages (does not contain any HTML formatting, and uses only Latin Arabic digits). | {{int:Lang}} | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
See also
- {{Century/sandbox}} (for modifying this template and testing it)
- {{Millennium}}
- {{Decennium}}
- {{BC}}
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation
" (xx
being the code of your language)
Examples
For performance reasons, only a few examplar languages (LTR, RTL, roman digits and other numeral systems...) are shown here. The full list of supported languages is displayed above this documentation panel (with a single sample century).
|
|
|