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 " " 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 assisstive technology or low-bandwidth browsers.