|
imported>Nøkkenbuer |
| (109 intermediate revisions by 12 users not shown) |
| Line 1: |
Line 1: |
| − | <!--Begin {{floruit/sandbox}}--><includeonly>{{#ifeq:{{{pre1|}}}|italics|<em>}}{{#switch:{{{pre2|{{{lk|}}}}}}|no|off=fl.|abbr={{abbr|fl.|floruit}}|#default=[[Floruit|fl.]]}}{{#ifeq:{{{pre1|}}}|italics|</em>}}{{#ifeq:{{{ca|}}}|yes| c.}}{{#if:{{{1|{{{era|}}}}}}| {{#ifeq:{{{sortable|}}}|yes|{{dts|{{{1|{{{era}}}}}}}}|{{{1|{{{era}}}}}}}}}}</includeonly><!--End {{floruit/sandbox}}--><noinclude>
| + | {{#if:{{{sortable|}}} |
| − | {{floruit/sandbox|2010s}}
| + | |<span style="display:none;">{{{1|}}}</span> |
| − | | + | }}{{#if:{{{i|}}} |
| − | ==Documentation==
| + | |<nowiki/>'' |
| − | The template [[Template:floruit/sandbox|floruit/sandbox]] (or [[#Redirects|its aliases]]) formats the display of {{em|approximate}} time periods or eras during which people, ideas, or movements may have been active or popular. It utilizes "fl.", an abbreviation of ''[[floruit]]'' or "flourished" (in [[Latin]]), as a prefix to the relevant date(s). The prefix abbreviation is wikilinked to ''floruit'' by default, but users may employ different or additional display options.
| + | }}{{#switch:{{{lk|}}} |
| − | | + | |no|off = fl. |
| − | ==Usage==
| + | |yes|on = [[Floruit|fl.]] |
| − | {{csdoc|usage full}}
| + | |abbr |
| − | :<code><nowiki>{{floruit/sandbox|era= </nowiki>{{bxt|or}} {{var|[some-date(s)]}}<nowiki>|ca= |sortable= |pre1= |pre2= }}</nowiki></code>
| + | |#default = {{Abbr|fl.|floruit}} |
| − | {{end}}
| + | }}{{#if:{{{i|}}} |
| − | | + | |''<nowiki/> |
| − | Use the template to signify time periods or eras during which people, concepts, scientific theories, or political, cultural, artistic or religious movements etc. were active or popular. [[Floruit|By definition]], the date(s) of such periods may be inexact or approximate.
| + | }}{{#if:{{{1|}}} |
| − | | + | |<span style="white-space:nowrap;"> {{{1}}}</span> |
| − | Normally, this template should not be used when {{em|exact dates}} are known, or when such dates should be indicated. For example, this template should not be used for a person's birth and/or death dates, or for an organization's founding and/or dissolution dates; however, it may be used in similar cases when there is no reliable or exact dating information.
| + | }}{{#if:{{{2|}}} |
| − | | + | | – {{Abbr|c.|circa}}<span style="white-space:nowrap;"> {{{2}}}</span> |
| − | ==Examples==
| + | }}<noinclude> |
| − | Some of the following examples may utilize additional, embedded templates, in order to enhance presentation or clarity. Such practice is optional.
| + | {{Documentation}} |
| − | *{{strong|Prefix only, wikilinked}}
| + | </noinclude> |
| − | :<code><nowiki>{{floruit/sandbox}} 2016</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox}} 2016
| |
| − | *{{strong|Single year, prefix in plain text}}
| |
| − | :<code><nowiki>{{floruit/sandbox|era=2016|pre2=off}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|era=2016|pre2=off}}
| |
| − | *{{strong|Circa decade, prefix in plain text}}
| |
| − | :<code><nowiki>{{floruit/sandbox|era=2010s|ca=yes|pre2=off}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|era=2010s|ca=yes|pre2=off}}
| |
| − | *{{strong|Year range, prefix with tooltip}}
| |
| − | :<code><nowiki>{{floruit/sandbox|era={{dash year|2010|2016}}|pre2=abbr}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|era={{dash year|2010|2016}}|pre2=abbr}}
| |
| − | :{{en dash}}{{nbsp}}{{em|Uses}} {{tl|dash year}} {{em|to format year range}}
| |
| − | *{{strong|Circa century, prefix wikilinked}}
| |
| − | :<code><nowiki>{{floruit/sandbox|era=21st century CE|ca=yes}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|era=21st century CE|ca=yes}}
| |
| − | *{{strong|Decade range, prefix italicized & wikilinked}}
| |
| − | :<code><nowiki>{{floruit/sandbox|era={{daterange|1990s|2010s}}|pre1=italics}}</nowiki></code> | |
| − | :Generates: {{floruit/sandbox|era={{daterange|1990s|2010s}}|pre1=italics}}
| |
| − | :{{en dash}}{{nbsp}}{{em|Uses}} {{tl|daterange}} {{em|to format decade range}} | |
| − | *{{strong|Single year sortable, prefix italicized with tooltip}}
| |
| − | :<code><nowiki>{{floruit/sandbox|era=2016|sortable=yes|pre1=italics|pre2=abbr}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|era=2016|sortable=yes|pre1=italics|pre2=abbr}}
| |
| − | *{{strong|Single year (extracted), prefix italicized & wikilinked}}
| |
| − | :<code><nowiki>{{floruit/sandbox|era={{YEAR|1 January 2016}}|pre1=italics}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|era={{YEAR|1 January 2016}}|pre1=italics}}
| |
| − | :{{en dash}}{{nbsp}}{{em|Uses}} {{tl|YEAR}} {{em|to extract year from date}}
| |
| − | | |
| − | ==Parameters==
| |
| − | All parameters are optional.
| |
| − | | |
| − | ===Date formatting parameters===
| |
| − | *{{bxtn|era}}{{spaced en dash}}the time period during which the subject is known to have been active or popular. Dated in year(s), decade(s), centuries or other time units, including ranges. Do not wikilink. Not checked for date-formatting errors. May be any one of Wikipedia's [[MOS:DATEFORMAT|acceptable date formats]], but please follow the relevant format established in the article, if any. The display of this parameter's value is preceded by a [[narrow no-break space]] ( ).
| |
| − | :{{em|Optionally}}, you may insert only the parameter's desired value instead; in such cases, this should be the {{em|first entry}} in the template.
| |
| − | *{{bxtn|ca}}{{spaced en dash}}set {{para|ca|yes}} for [[circa]] dates; adds a [[narrow no-break space]] ( ) and the additional prefix "c." before the time period.
| |
| − | *{{bxtn|sortable}}{{spaced en dash}}set {{para|sortable|yes}} to format the time period so that it displays properly within [[WP:TABLESORT|sortable table]]s.
| |
| − | :{{em|Note:}} in order to do proper sorting, this parameter wraps template {{tl|dts}} around the date value(s); it works best with single-year values.
| |
| − | | |
| − | ===Prefix formatting parameters===
| |
| − | *{{bxtn|pre1}}{{spaced en dash}}use this parameter to {{em|italicize}} the display of the prefix "fl.", by setting {{para|pre1|italics}}.
| |
| − | *{{bxtn|pre2}}{{spaced en dash}}alias {{bxtn|lk}}. By default, the prefix is wikilinked to ''[[floruit]]''; use this parameter to change this default by inserting one of the following values:
| |
| − | **Set {{para|pre2|abbr}} to instead display a [[tooltip]] when the cursor hovers over "fl.", expanding it to "floruit".
| |
| − | **Set {{para|pre2|no}} or {{para|pre2|off}} to display "fl." as plain text; use to avoid [[WP:Overlinking|overlinking]] when this template is used repeatedly in the body of an article.
| |
| − | | |
| − | ==Redirects==
| |
| − | <!--This section is linked from within this document ([[MOS:HEAD]])--> | |
| − | {{tl|floruit}} can be replaced with the redirects:
| |
| − | *{{tl|fl.}}
| |
| − | *{{tl|flor}}
| |
| − | *{{tl|flor.}}
| |
| − | *{{tl|flr}}
| |
| − | | |
| − | ==See also==
| |
| − | *{{tl|Circa}}
| |
| − | *{{tl|Reign}}
| |
| − | </noinclude><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | |
| − | <!-- Categories go here and interwikis go in Wikidata. -->
| |
| − | [[Category:Internal link templates]]
| |
| − | [[Category:Time, date and calendar templates]]
| |
| − | }}</includeonly>
| |
fl.
Usage
Source: {{fl.}} 1234, {{fl.|1234}} or {{fl.|1234|lk=off}}
Result: fl. 1234, fl. 1234 or 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. 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 the 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 causing problems for visually-impaired readers. Compare "Col 1" and "Col 2" in the following table:
| Title |
Col 1 |
Col 2
|
| Foo |
1066 |
1066
|
| Bar |
fl. 1510 |
1510fl. 1510
|
| Baz |
1956 |
1956
|
| Jaz |
fl. 410 |
410fl. 410
|
"Col 1" uses {{Floruit}} 1510, and does not sort correctly. "Col 2" uses {{Floruit|1510|sortable=yes}}, and does sort correctly. This works because {{Floruit|1510|sortable=yes}} inserts an invisible span element at the start of the cell: <span style="display:none;">1510</span>. 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 text browsers.
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.)
Potential future parameters could add articles to appropriate categories, e.g. Category:Year of birth missing.
See also