Difference between revisions of "Template:Floruit/sandbox"

From blackwiki
Jump to navigation Jump to search
(Ce.)
Line 56: Line 56:
 
===Prefix formatting parameters===
 
===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|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 the default prefix display, by inserting one of the following options:
+
*{{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 display a [[tooltip]] when the cursor hovers over "fl.", expanding it to "floruit".
+
**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.
 
**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.
  

Revision as of 22:44, 18 February 2016

fl. 2010s

Documentation

The template floruit/sandbox (or its aliases) formats the display of 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.

Usage

Full parameter set in horizontal format
{{floruit/sandbox|era= or [some-date(s)]|ca= |sortable= |pre1= |pre2= }}

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. By definition, the date(s) of such periods may be inexact or approximate.

Normally, this template should not be used when 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.

Examples

Some of the following examples may utilize additional, embedded templates, in order to enhance presentation or clarity. Such practice is optional.

  • Prefix only, wikilinked
{{floruit/sandbox}} 2016
Generates: fl. 2016
  • Single year, prefix in plain text
{{floruit/sandbox|era=2016|pre2=off}}
Generates: fl. 2016
  • Circa decade, prefix in plain text
{{floruit/sandbox|era=2010s|ca=yes|pre2=off}}
Generates: fl. c. 2010s
  • Year range, prefix with tooltip
{{floruit/sandbox|era={{dash year|2010|2016}}|pre2=abbr}}
Generates: fl. 2010–16
 Uses {{dash year}} to format year range
  • Circa century, prefix wikilinked
{{floruit/sandbox|era=21st century CE|ca=yes}}
Generates: fl. c. 21st century CE
  • Decade range, prefix italicized & wikilinked
{{floruit/sandbox|era={{daterange|1990s|2010s}}|pre1=italics}}
Generates: fl. 1990s to 2010s
 Uses {{daterange}} to format decade range
  • Single year sortable, prefix italicized with tooltip
{{floruit/sandbox|era=2016|sortable=yes|pre1=italics|pre2=abbr}}
Generates: fl.2016
  • Single year (extracted), prefix italicized & wikilinked
{{floruit/sandbox|era={{YEAR|1 January 2016}}|pre1=italics}}
Generates: fl.Template:YEAR
 Uses {{YEAR}} to extract year from date

Parameters

All parameters are optional.

Date formatting parameters

  • eraTemplate:Spaced en dashthe 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. Do not wikilink. Not checked for date-formatting errors. May be any one of Wikipedia's 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 ( ).
Optionally, you may insert only the parameter's desired value instead; in such cases, this should be the first entry in the template.
Note: in order to do proper sorting, this parameter wraps template {{dts}} around the date value(s); it works best with single-year values.

Prefix formatting parameters

  • pre1Template:Spaced en dashuse this parameter to italicize the display of the prefix "fl.", by setting |pre1=italics.
  • pre2Template:Spaced en dashalias lk. By default, the prefix is wikilinked to floruit; use this parameter to change this default by inserting one of the following values:
    • Set |pre2=abbr to instead display a tooltip when the cursor hovers over "fl.", expanding it to "floruit".
    • Set |pre2=no or |pre2=off to display "fl." as plain text; use to avoid overlinking when this template is used repeatedly in the body of an article.

Redirects

{{floruit}} can be replaced with the redirects:

See also