Template:Floruit/sandbox
fl.
| This is the template sandbox page for Template:Floruit (diff). |
| This template is used on approximately 7,600 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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
First
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.
Sortable
- This section is inserted from
{{circa/doc}}, so the examples are with that template.
If the parameter "sortable=yes" is specified, the template generates invisible text that will cause the column to sort correctly in sortable tables. However, it is at the cost of having that invisible text read out audibly by many screen readers. "Col 1" without the template does not sort correctly. "Col 2" with the template and sortable=yes sorts correctly.
| Title | Col 1 | Col 2 |
|---|---|---|
| Foo | 1066 | 1066 |
| Bar | c. 1510 | c. 1510 |
| Baz | 1956 | 1956 |
| Jaz | c. 410 | c. 410 |
{| class="sortable wikitable" style=text-align:right;
|-
! Title!!Col 1!!Col 2
|-
| style=text-align:left; | Foo|| 1066|| 1066
|-
| style=text-align:left; | Bar|| c. 1510|| {{circa|1510|sortable=yes}}
|-
| style=text-align:left; | Baz|| 1956|| 1956
|-
| style=text-align:left; | Jaz|| c. 410|| {{circa|410|sortable=yes}}
|}
Link
If the |lk= (as in "link") parameter is set to |lk=off, then the abbreviation will be rendered as plain fl. ; otherwise, the mark of a tooltip is displayed, fl..
- The template previously was wikilinking instead of having a tooltip, so was used to avoid overlinking when used repeatedly in an article.
See also
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.