User:Patrick/Template:Circa/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This template allows to specify "circa" for a date, in a format that is localizable.

Usage

{{Circa |1= |2= |3= |4= }}

Template parameters

ParameterDescriptionDefaultStatus
1yearemptyrequired
2monthemptyoptional
3dayemptyoptional
4language 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
date QS:P,+1999-00-00T00:00:00Z/9,P1480,Q5727902

circa February 1999
circa 3 February 1999