User:Patrick/Template:Circa/doc
This template allows to specify "circa" for a date, in a format that is localizable.
Usage
{{Circa |1= |2= |3= |4= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | year | empty | required | |
2 | month | empty | optional | |
3 | day | empty | optional | |
4 | language code (only needs to be provided if the language shall be fixed and independent of the user's preferences) | value of {{int:Lang}} | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
{{Date}}, {{LangSwitch}}
See also
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)
The template is similar to one of the options of Template:Other date, but causes a smaller expansion depth, thus avoiding the "expansion depth limit exceeded" error occurring on some pages transcluding that other template.
If parameters 2 and 3 are empty or undefined, parameter 1 can contain not just a year but any text. In this case the local term for "circa" is prefixed or postfixed, depending on the language, but the text is not changed.
Examples
Code | Output |
---|---|
{{circa|1999}} {{circa|1999|2}} {{circa|1999|2|3}} |
circa 1999 circa February 1999 |