Template:Floruit: Difference between revisions
(Created page with "{{#if:{{{sortable|}}} |<span style="display:none;">{{{1|}}}</span> }}{{#if:{{{i|}}} |<nowiki/>'' }}{{#switch:{{{lk|}}} |no|off = fl. |yes|on = [[Floruit|fl.]...") |
m (1 revision imported) |
(No difference)
| |
Revision as of 09:47, 9 October 2022
fl.
Usage
Source: {{fl.|1234}} ; {{fl.|1234–1275}} ; {{fl.|{{c.|1275}}}} ; {{fl.|1234|lk=off}}
Result: fl. 1234 ; fl. 1234–1275 ; fl. c. 1275 ; fl. 1234
This template generates an abbreviation for floruit ("fl."); by default, it has a mouse-over tooltip explaining its meaning.
Parameters
This template supports an optional (first, unnamed) parameter representing a year (or range of years). For example, {{fl.|1956}} renders to give fl. 1956. This differs from {{fl.}} 1956 in that {{fl.|1956}} puts a non-breaking space in between the "fl." and the number, which prevents web browsers from inserting a line break there.
If the parameter "sortable=yes" is specified, the template generates invisible text that will cause the output to work in sortable tables, at the cost of adding those words (read-out, audibly) by many screen readers. The benefit is effective, clickable arrows as in "Col 2" below:
| Title | Col 1 | Col 2 |
|---|---|---|
| Foo | 1066 | 1066 |
| Bar | fl. 1510 | fl. 1510 |
| Baz | 1956 | 1956 |
| Jaz | fl. 410 | fl. 410 |
If the |lk= (as in "link") parameter is set to |lk=off, then the abbreviation will be rendered as fl. (without a wikilink). Otherwise, the link is displayed. (This can be used to avoid overlinking when this template is used repeatedly in the body of an article.)