Template:Circa/doc

Usage
This template generates an abbreviation for circa ("c. "). By default the abbreviation is marked with.

Parameters
Using the date itself as parameter (for example, " ", giving "c. 1956"), web browsers do not insert a line break anywhere in the string. By contrast, " " allows a line break between the "c. " and the number. Also, with the date as a parameter a thinner space is used with many browsers:


 * "c. 1956" is generated by " ".
 * "c. 1956" is generated by " ".

If the parameter i is set to a nonempty value, the "c." is put in italics: for example, " " generates "c. " instead of "c. ".

If the parameter lk (for "link") is set as "no" or "off", the abbreviation is rendered as "c. ", without a wikilink or abbreviation element. If it is set to "abbr", it is rendered with the abbreviation element but without the wikilink. If it is set to "yes" or "on", it is rendered as "c. ", with a wikilink to the Circa article and not an abbreviation element. Otherwise, the abbreviation is marked with the " " element, as in "c. " and linked to the Circa article. The  parameter can be used to avoid overuse of " " or overlinking when this template is used repeatedly in the body of an article. A convenient way of doing this is to use Circa the first time, and c. thereafter. For example:


 * → Dionysius Exiguus was born c. 470, lived in Rome from c. 500, and died c. 544.
 * → Dionysius Exiguus was born c. 470, lived in Rome from c. 500, and died c. 544.

If the parameter " " is specified, the template generates invisible text that will cause the output to work in sortable tables, at the cost of causing problems for visually-impaired readers. Compare, "Col 1" and "Col 2" in the following table:

"Col 1" uses, and does not sort correctly. "Col 2" uses  and does sort correctly. This works because  inserts an invisible span element at the start of the cell:. Although it is not rendered, it is still seen by the sorting code and makes sorting work. The downside of this approach is that the invisible text is still rendered by screen readers that are used by visually impaired readers, and by text browsers such as Lynx, so the table will become garbled for readers who are using assistive technology or low-bandwidth browsers.