Difference between revisions of "Template:Floruit/sandbox"

From blackwiki
Jump to navigation Jump to search
(Ce.)
(Ce.)
Line 3: Line 3:
  
 
==Scope and structure==
 
==Scope and structure==
The template {{bxtn|floruit}} (or [[#Redirects|its aliases]]) formats the display of 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.
+
The template {{bxtn|floruit}} (or [[#Redirects|its aliases]]) formats the display of time periods or eras during which people, ideas, theories, or political, cultural or religious movements etc., 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. Please also see {{slink||Exceptions}} for possible usage exceptions.
  
 
==Usage==
 
==Usage==
Line 9: Line 9:
 
:<code><nowiki>{{floruit/sandbox|date= </nowiki>{{bxt|or}} {{var|[date-value]}}<nowiki>|ca= |sortable= |pre1= |pre2= }}</nowiki></code>
 
:<code><nowiki>{{floruit/sandbox|date= </nowiki>{{bxt|or}} {{var|[date-value]}}<nowiki>|ca= |sortable= |pre1= |pre2= }}</nowiki></code>
 
{{end}}
 
{{end}}
 +
Copy a blank version to use. All parameter names must be in lowercase. Use the "|" (pipe) character between each parameter. Leading and trailing spaces (&#160;) are trimmed from parameter values; therefore, parameters will not display if they are only populated by spaces. Delete unused parameters. See {{slink||Parameters}} for important details.
  
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.
+
===Exceptions===
 
+
[[Floruit|By definition]], the relevant date(s) may be inexact or approximate; normally, this template should not be used when {{em|exact dates}} should be indicated. For example, this template should not be used for a person's birth or death dates, or for an organization's founding or dissolution dates; however, it may be used in similar cases, when there is no reliable or exact dating information.
Normally, this template should not be used when {{em|exact 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==
 
==Examples==
Line 38: Line 38:
 
===Date formatting parameters===
 
===Date formatting parameters===
 
*{{bxtn|date}}{{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]] (&#8239;).
 
*{{bxtn|date}}{{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]] (&#8239;).
:{{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.
+
:{{em|Optionally}}, you may treat this parameter as unnamed, and insert only the parameter's desired value; in such cases, this value 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]] (&#8239;) and the additional prefix "c." before the date value.
 
*{{bxtn|ca}}{{spaced en dash}}set {{para|ca|yes}} for [[circa]] dates; adds a [[narrow no-break space]] (&#8239;) and the additional prefix "c." before the date value.
 
*{{bxtn|sortable}}{{spaced en dash}}set {{para|sortable|yes}} to format the date value(s) so that they are displayed properly within [[WP:TABLESORT|sortable table]]s.
 
*{{bxtn|sortable}}{{spaced en dash}}set {{para|sortable|yes}} to format the date value(s) so that they are displayed properly within [[WP:TABLESORT|sortable table]]s.

Revision as of 18:47, 22 February 2016

fl. 2010s

Scope and structure

The template floruit (or its aliases) formats the display of time periods or eras during which people, ideas, theories, or political, cultural or religious movements etc., 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. Please also see Script error: No such module "Section link". for possible usage exceptions.

Usage

Full parameter set in horizontal format
{{floruit/sandbox|date= or [date-value]|ca= |sortable= |pre1= |pre2= }}

Copy a blank version to use. All parameter names must be in lowercase. Use the "|" (pipe) character between each parameter. Leading and trailing spaces ( ) are trimmed from parameter values; therefore, parameters will not display if they are only populated by spaces. Delete unused parameters. See Script error: No such module "Section link". for important details.

Exceptions

By definition, the relevant date(s) may be inexact or approximate; normally, this template should not be used when exact dates should be indicated. For example, this template should not be used for a person's birth or death dates, or for an organization's founding 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.

  • Decade, prefix wikilinked
{{floruit/sandbox|2010s}}
Generates: fl. 2010s
  • Prefix only, in plain text
{{floruit/sandbox|pre2=no}} 2010s
Generates: fl. 2010s
  • Year range, prefix with tooltip
{{floruit/sandbox|date={{dash year|2010|2016}}|pre2=abbr}}
Generates: fl. 2010–16
 Uses {{dash year}} to format year range, but please see here
  • Circa century, prefix wikilinked
{{floruit/sandbox|date=21st century CE|ca=yes}}
Generates: fl. c. 21st century CE
  • Single year sortable, prefix italicized with tooltip
{{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr}}
Generates: fl.2016

Parameters

All parameters are optional.

Date formatting parameters

  • dateTemplate: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, including ranges. 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 treat this parameter as unnamed, and insert only the parameter's desired value; in such cases, this value should be the first entry in the template.
Note: To sort correctly, |sortable= wraps template {{dts}} around the date value(s); it works best with single date values. When using this parameter, do not insert other templates as values to |date=; results may be unpredictable.

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." in 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

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

floruit

Formats the display of periods of activity or popularity for people, ideas, or movements

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Date(s)date 1 [unnamed]

Time-period or era, may be a single date or a range

Stringsuggested
Circaca

Set to "yes" for circa date(s)

Stringoptional
Sortablesortable

Set to "yes" to sort the date correctly within tables

Stringoptional
Prefix italicspre1

Set to "italics" to render the prefix "fl." in italics

Stringoptional
Prefix linkspre2 lk

Use to change the default prefix display: "abbr" replaces the wikilink with a tooltip; "no" or "off" renders prefix in plain text

Stringoptional