Difference between revisions of "Template:Floruit/doc"

From blackwiki
Jump to navigation Jump to search
(Ce.)
(Sync.)
Line 2: Line 2:
 
<!--Categories go at the bottom of this page and interwikis go in Wikidata.-->
 
<!--Categories go at the bottom of this page and interwikis go in Wikidata.-->
 
<!--Partly based on documentation for {{cl|Citation Style 1 templates}}.-->
 
<!--Partly based on documentation for {{cl|Citation Style 1 templates}}.-->
The template {{bxtn|floruit}} (or [[#Redirects|any of its aliases]]) may be used to format 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.
+
{{ombox|textstyle=font-weight:bold;font-style:italic;|text=To quickly become familiar with this template, see {{slink||TemplateData}} (as usage summary), and {{slink||Examples}}.}}
 +
The template {{bxtn|floruit}} (or [[#Redirects|any of its aliases]]) may be used to format 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 10:
 
For presentation purposes only, in the box below [brackets] indicate parameter values; variables are {{em|italicized}}; explanatory text is in (parentheses).
 
For presentation purposes only, in the box below [brackets] indicate parameter values; variables are {{em|italicized}}; explanatory text is in (parentheses).
 
{{csdoc|usage full}}
 
{{csdoc|usage full}}
:<code><nowiki>{{floruit|date= (or) </nowiki>[{{var|date-value}}]<nowiki>|ca= |sortable= |pfx1= |pfx2= |sfx= |b= |wrap= }}</nowiki></code>
+
:<code><nowiki>{{floruit|date= (or) </nowiki>[{{var|date-value}}]<nowiki>|ca= |sortable= |pfx1= |pfx2= |sfx= |sfx-lk= |b= |wrap= }}</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 or options, and explanatory text. See {{slink||Parameters}} for important details.
+
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. Misspelled or undefined parameters are ignored. Delete unused parameters or options, and explanatory text. See {{slink||Parameters}} for important details.
  
By default, displayable values are separated by a [[thin space]] (&#8201;); [[Line wrap and word wrap|word wrapping]] is off. Template {{tl|dts}} (date time sorting) has been embedded in code and becomes active when the {{em|floruit}} date is (optionally) set to be sortable.
+
By default, the date is prefixed with the abbreviation "fl.", wikilinked to its expanded form (''[[floruit]]''); displayable values are separated by a [[whitespace character]]s of varying lengths. [[Line wrap and word wrap]] is off. Optionally, the floruit date may be set to be sortable.{{efn|name=dts|Template {{tl|dts}} ({{bxtn|d}}ate {{bxtn|t}}ime {{bxtn|s}}orting) has been embedded in code and becomes active when the sortable option is used. Note {{tlf|dts}} has several usage constraints.}} In most cases, usage errors will result in display of relevant error messages.
  
 
===Applicability===
 
===Applicability===
Line 24: Line 25:
  
 
==Parameters==
 
==Parameters==
All parameters are optional; some options depend on other parameters. Parameter labels are in {{bxtn|bold}}; explanatory or expanded text may follow, in parentheses.
+
All parameters are optional; use of parameter {{bxt|date}} is suggested, as some options depend on it. Incorrect values will be flagged under almost all usage scenarios (see {{slink||Error messages}}). Parameter names are in {{bxtn|bold}}; explanatory or expanded text may follow, in parentheses.
  
 
===Date formatting parameters===
 
===Date formatting parameters===
Optional:
+
Suggested:
 
*{{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. May be any one of Wikipedia's [[MOS:DATEFORMAT|acceptable date formats]], but please follow the relevant format established in the article, if any. Depending on the template options used, {{em|this parameter may require a value}}.
 
*{{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. May be any one of Wikipedia's [[MOS:DATEFORMAT|acceptable date formats]], but please follow the relevant format established in the article, if any. Depending on the template options used, {{em|this parameter may require a value}}.
:{{em|id=unnamed|Note1:}} You may treat {{bxt|date}} as an unnamed parameter, and insert only its desired value.
+
:{{em|id=unnamed|Note:}} You may treat {{bxt|date}} as an unnamed parameter, and insert only its desired value.
:{{em|id=space|Note2:}} If {{bxt|date}} is not utilized, the displayed output may vary according to the user’s choice of [[whitespace character]](s) following the prefix "fl.", or according to other user formatting.
+
:{{em|id=space|Note:}} If {{bxt|date}} is not utilized, the displayed output may vary according to the user’s choice of [[whitespace character]](s) following the prefix "fl.", or according to other user formatting.
 
:{{en dash}}{{nbsp}}{{em|for examples see}} [[#dec|{{em|here}}]] {{em|(unnamed) and}} [[#plain|{{em|here}}]] {{em|(not used)}}
 
:{{en dash}}{{nbsp}}{{em|for examples see}} [[#dec|{{em|here}}]] {{em|(unnamed) and}} [[#plain|{{em|here}}]] {{em|(not used)}}
*{{bxtn|ca}} (circa){{spaced en dash}}set {{para|ca|yes}} for [[circa]] dates; the additional prefix "c.", is inserted before the date.
+
Optional:
 +
*{{bxtn|ca}} (circa){{spaced en dash}}set {{para|ca|yes}} for [[circa]] dates; the additional prefix "c.", preceded by a [[thin space]], is inserted before the date (&#8201;c.).
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#circa|{{em|here}}]]
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#circa|{{em|here}}]]
 
Conditional:
 
Conditional:
*{{bxtn|sortable}}{{spaced en dash}} set {{para|sortable|yes}} to format the {{bxt|date}} value(s) so that they are displayed properly within [[WP:TABLESORT|sortable table]]s; {{em|requires a value for parameter}} {{bxt|date}}.
+
*{{bxtn|sortable}}{{spaced en dash}} set {{para|sortable|yes}} to format the {{bxt|date}} value so that it is displayed properly within [[WP:TABLESORT|sortable table]]s; it works {{em|only}} with single-date values.{{efn|name=dts}} {{em|Requires a value for parameter}} {{bxt|date}}.
:{{em|id=sort|Note3:}} To sort correctly, parameter {{bxt|sortable}} wraps template {{tl|dts}} around the date value(s); it works best with single-date values. {{em|Do not}} embed templates as values to {{bxt|date}} when {{bxt|sortable}} is used; results may be unpredictable. Note {{tlf|dts}} has other shortcomings.
+
:{{em|id=sorted|Note:}} When using {{bxt|sortable}}, year values less than 1000 require leading zeroes up to the century digit, e.g. "050". Era suffixes (via parameter {{bxt|sfx}} [[#suf|below]]) are ignored.
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#sort|{{em|here}}]]
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#sort|{{em|here}}]]
  
Line 52: Line 54:
 
*{{bxtn|b}} (brackets){{spaced en dash}} use {{bxt|b}} to display the template's output in parentheses, by setting {{para|b|yes}}.
 
*{{bxtn|b}} (brackets){{spaced en dash}} use {{bxt|b}} to display the template's output in parentheses, by setting {{para|b|yes}}.
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#brc|{{em|here}}]]  
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#brc|{{em|here}}]]  
*{{bxtn|sfx}} (suffix){{spaced en dash}} use this parameter to append the {{em|floruit}} date with an era suffix preceded by a [[no-break space]]; the available options conform to the [[MOS:ERA|default calendar era]].
+
*{{anchor|suf}}{{bxtn|sfx}} (suffix): use this parameter to append the floruit date with an era suffix preceded by a [[no-break space]]. Displays in plain text, but you may use the dependent parameter {{bxt|sfx-lk}} (see [[#suflink|below]]) to display with an appropriate wikilink. The available options conform to the [[MOS:ERA|default calendar era]].
**set {{para|sfx|ad}} to display the suffix [[Anno Domini|AD]]
+
**set {{para|sfx|ad}} to display the suffix AD ([[Anno Domini]])
**set {{para|sfx|bc}} to display the suffix [[Anno Domini|BC]]
+
**set {{para|sfx|bc}} to display the suffix BC ([[Anno Domini|Before Christ]])
**set {{para|sfx|bce}} to display the suffix [[Common Era|BCE]]
+
**set {{para|sfx|bce}} to display the suffix BCE ([[Common Era|Before Common Era]])
**set {{para|sfx|ce}} to display the suffix [[Common Era|CE]]
+
**set {{para|sfx|ce}} to display the suffix CE ([[Common Era]])
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#circa|{{em|here}}]]
 
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#circa|{{em|here}}]]
 +
*{{anchor|suflink}}{{bxtn|sfx-lk}} (suffix link): use to wikilink the suffix to the appropriate page, by setting {{para|sfx-lk|yes}};{{efn|name=noerr|Any other value is ignored silently.}} parameter {{bxt|sfx}} is {{em|required}}.
 +
:{{en dash}}{{nbsp}}{{em|for an example see}} [[#suf-lk|{{em|here}}]]
 
Optional:
 
Optional:
 
*{{bxtn|wrap}} (word wrap){{spaced en dash}} by default, template output displays without word wrapping; to turn word wrap on, set {{para|wrap|yes}}.
 
*{{bxtn|wrap}} (word wrap){{spaced en dash}} by default, template output displays without word wrapping; to turn word wrap on, set {{para|wrap|yes}}.
Line 63: Line 67:
  
 
==Examples==
 
==Examples==
Some of the following examples may utilize additional, embedded templates, in order to enhance presentation or clarity. Such practice is optional.
+
*{{anchor|dec}}{{strong|Decade range}}
*{{anchor|dec}}{{strong|Decade, prefix wikilinked}}
 
 
:<code><nowiki>{{floruit|date=2010s}}</nowiki></code>
 
:<code><nowiki>{{floruit|date=2010s}}</nowiki></code>
 
:or
 
:or
:<code><nowiki>{{floruit|2010s}}</nowiki></code>
+
:<code><nowiki>{{floruit|2010s}}</nowiki></code> ([[#unnamed|{{em|note}}]])
:{{en dash}}{{nbsp}}{{em|date entered without label}} {{para|date}} ({{em|[[#unnamed|Note1]]}})
 
 
:Either generates: {{floruit|2010s}}
 
:Either generates: {{floruit|2010s}}
*{{anchor|brc}}{{strong|As above, in parentheses}}
+
*{{anchor|brc}}{{strong|Decade range, in parentheses}}
 
:<code><nowiki>{{floruit|date=2010s|b=yes}}</nowiki></code>
 
:<code><nowiki>{{floruit|date=2010s|b=yes}}</nowiki></code>
 
:or
 
:or
Line 76: Line 78:
 
:Either generates: {{floruit|2010s|b=yes}}
 
:Either generates: {{floruit|2010s|b=yes}}
 
*{{anchor|plain}}{{strong|Prefix only, in plain text}}
 
*{{anchor|plain}}{{strong|Prefix only, in plain text}}
:<code><nowiki>{{floruit|pfx2=no}} 2010s</nowiki></code>
+
:<code><nowiki>{{floruit|pfx2=no}} 2010s</nowiki></code> ([[#space|{{em|note}}]])
 
:Generates: {{floruit|pfx2=no}} 2010s
 
:Generates: {{floruit|pfx2=no}} 2010s
:{{en dash}}{{nbsp}}{{em|please see [[#space|Note2]]}}
 
 
*{{anchor|ttip}}{{strong|Year range, prefix with tooltip}}
 
*{{anchor|ttip}}{{strong|Year range, prefix with tooltip}}
:<code><nowiki>{{floruit|date={{dash year|2010|2016}}|pfx2=abbr}}</nowiki></code>
+
:<code><nowiki>{{floruit|date=2010{{en dash}}16}}|pfx2=abbr}}</nowiki></code>
:Generates: {{floruit|date={{dash year|2010|2016}}|pfx2=abbr}}
+
:Generates: {{floruit|date=2010{{en dash}}16|pfx2=abbr}}
:{{en dash}}{{nbsp}}{{em|uses}} {{tl|dash year}} {{em|to format year range, but please see [[#sort|Note3]]}}
+
*{{anchor|circa}}{{strong|Circa century and suffix}}
*{{anchor|circa}}{{strong|Circa century, prefix wikilinked, and suffix}}
 
 
:<code><nowiki>{{floruit|date=21st century|ca=yes|sfx=ce}}</nowiki></code>
 
:<code><nowiki>{{floruit|date=21st century|ca=yes|sfx=ce}}</nowiki></code>
 
:Generates: {{floruit|date=21st century|ca=yes|sfx=ce}}
 
:Generates: {{floruit|date=21st century|ca=yes|sfx=ce}}
*{{anchor|sort}}{{strong|Sortable, single year, prefix italicized with tooltip, word wrap is on}}  
+
*{{anchor|suf-lk}}{{strong|Suffix wikilinked, prefix in plain text, circa century, in parentheses}}
:<code><nowiki>{{floruit|date=2016|sortable=yes|pfx1=italics|pfx2=abbr|wrap=yes}}</nowiki></code>
+
:<code><nowiki>{{floruit|date=21st century|b=yes|ca=yes|pfx2=no|sfx=ce|sfx-lk=yes}}</nowiki></code>
:Generates: {{floruit|date=2016|sortable=yes|pfx1=italics|pfx2=abbr|wrap=yes}}
+
:Generates: {{floruit|date=21st century|b=yes|pfx2=no|ca=yes|sfx=ce|sfx-lk=yes}}
*{{strong|As above, in parentheses}}  
+
*{{anchor|sort}}{{strong|Sortable year, word wrap is on, prefix italicized, and suffix}}  
:<code><nowiki>{{floruit|date=2016|sortable=yes|pfx1=italics|pfx2=abbr|b=yes|wrap=yes}}</nowiki></code>
+
:<code><nowiki>{{floruit|date=050|sortable=yes|pfx1=italics|sfx=bce|wrap=yes}}</nowiki></code> ([[#sorted|{{em|note}}]])
:Generates: {{floruit|date=2016|sortable=yes|pfx1=italics|pfx2=abbr|b=yes|wrap=yes}}
+
:Generates: {{floruit|date=050|sortable=yes|pfx1=italics|sfx=bce|wrap=yes}}
 +
 
 +
==Error messages==
 +
Multiple errors are flagged per parameter; errors involving the same parameter may be mutually exclusive.</br>
 +
Messages replace the relevant parameter value(s), and appear under the following conditions:{{efn|name=tl2|When error messages appear in live usage, the included [[template:tl2|template link]] to {{bxtn|{{tlf|floruit}}}} is active.}}
 +
{{crlf|2}}
 +
{{strong|Parameters {{bxt|b}}, {{bxt|ca}}, {{bxt|pfx1}}, {{bxt|pfx2}}, {{bxt|sortable}}}} and {{bxt|wrap}}
 +
*Incorrect value: {{error|message={{small|&#91;error in template {{tl2|floruit}}: wrong value for the {{var|relevant-parameter}} option&#93;}}}}
 +
{{strong|Parameters {{bxt|b}}, {{bxt|sfx}}}} and {{bxt|sortable}}
 +
*Date required: {{error|message={{small|&#91;error in template {{tl2|floruit}}: {{var|relevant-parameter}} option requires a date value&#93;}}}}
 +
{{strong|Parameter {{bxt|sfx}}}}
 +
*Incorrect or unsupported entry: {{error|message={{small|&#91;error in template {{tl2|floruit}}: wrong or unsupported suffix&#93;}}}}
 +
{{strong|Parameter {{bxt|sfx-lk}}}}
 +
*Suffix not defined: {{error|message={{small|&#91;error in template {{tl2|floruit}}: suffix link requires suffix&#93;}}}}
  
 
==Redirects==
 
==Redirects==
Line 138: Line 151:
 
"description": "Set to \"yes\" to turn word wrap on",
 
"description": "Set to \"yes\" to turn word wrap on",
 
"type": "boolean",
 
"type": "boolean",
"default": "no"
+
"default": "no wrap"
 
},
 
},
 
"pfx1": {
 
"pfx1": {
 
"label": "Prefix style",
 
"label": "Prefix style",
"description": "Set to \"italics\" to render the prefix 'fl.' in italics",
+
"description": "Set to \"italics\" to render the prefix fl. in italics",
 
"type": "string"
 
"type": "string"
 
},
 
},
Line 150: Line 163:
 
],
 
],
 
"label": "Prefix link",
 
"label": "Prefix link",
"description": "Use to change the default display of the prefix 'fl.': \"abbr\" replaces wikilink to 'floruit' with a tooltip; \"no\" or \"off\" renders 'fl.' in plain text",
+
"description": "Use to change the default display of the prefix fl.: \"abbr\" replaces wikilink to 'floruit' with a tooltip; \"no\" or \"off\" renders fl. in plain text",
 
"type": "string",
 
"type": "string",
 
"default": "[[Floruit|fl.]]"
 
"default": "[[Floruit|fl.]]"
Line 158: Line 171:
 
"description": "Adds an era suffix; options are: \"ad\", \"bc\", \"bce\", or \"ce\"; displays in uppercase; requires a 'date' value",
 
"description": "Adds an era suffix; options are: \"ad\", \"bc\", \"bce\", or \"ce\"; displays in uppercase; requires a 'date' value",
 
"type": "string"
 
"type": "string"
 +
},
 +
"sfx-lk": {
 +
"label": "Suffix link",
 +
"description": "Set to \"yes\" to wikilink the era suffix; requires a suffix",
 +
"type": "boolean",
 +
"default": "no link"
 
}
 
}
 
},
 
},
Line 163: Line 182:
 
"paramOrder": [
 
"paramOrder": [
 
"date",
 
"date",
 +
"b",
 
"ca",
 
"ca",
"sortable",
 
 
"pfx1",
 
"pfx1",
 
"pfx2",
 
"pfx2",
 
"sfx",
 
"sfx",
"b",
+
"sfx-lk",
 +
"sortable",
 
"wrap"
 
"wrap"
 
],
 
],
Line 180: Line 200:
 
*{{tl|circa}}
 
*{{tl|circa}}
 
*{{tl|reign}}
 
*{{tl|reign}}
 +
 +
==Footnotes==
 +
{{notelist}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 20:00, 21 September 2016

The template floruit (or any of its aliases) may be used to format 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

Structure

For presentation purposes only, in the box below [brackets] indicate parameter values; variables are italicized; explanatory text is in (parentheses).

Full parameter set in horizontal format
{{floruit|date= (or) [date-value]|ca= |sortable= |pfx1= |pfx2= |sfx= |sfx-lk= |b= |wrap= }}

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. Misspelled or undefined parameters are ignored. Delete unused parameters or options, and explanatory text. See Script error: No such module "Section link". for important details.

By default, the date is prefixed with the abbreviation "fl.", wikilinked to its expanded form (floruit); displayable values are separated by a whitespace characters of varying lengths. Line wrap and word wrap is off. Optionally, the floruit date may be set to be sortable.[lower-alpha 1] In most cases, usage errors will result in display of relevant error messages.

Applicability

This template may be used when exact or complete date information Template:Ordered list By definition, the relevant date(s) may be month, year, decade, or century ranges, or may otherwise be inexact or approximate. See WP:APPROXDATE for additional guidance.

Exceptions

Normally, this template should not be used when exact, complete dates need to be indicated, such as a person's birth and death dates, or an organization's founding and dissolution dates. However, it may be used in similar cases if exact or reliable date information is unavailable, or if providing such detail is unnecessary.

Parameters

All parameters are optional; use of parameter date is suggested, as some options depend on it. Incorrect values will be flagged under almost all usage scenarios (see Script error: No such module "Section link".). Parameter names are in bold; explanatory or expanded text may follow, in parentheses.

Date formatting parameters

Suggested:

  • dateTemplate: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. May be any one of Wikipedia's acceptable date formats, but please follow the relevant format established in the article, if any. Depending on the template options used, this parameter may require a value.
Note: You may treat date as an unnamed parameter, and insert only its desired value.
Note: If date is not utilized, the displayed output may vary according to the user’s choice of whitespace character(s) following the prefix "fl.", or according to other user formatting.
 for examples see here (unnamed) and here (not used)

Optional:

 for an example see here

Conditional:

Note: When using sortable, year values less than 1000 require leading zeroes up to the century digit, e.g. "050". Era suffixes (via parameter sfx below) are ignored.
 for an example see here

Prefix formatting parameters

Optional:

  • pfx1 (prefix style)Template:Spaced en dash use this parameter to italicize the display of the prefix "fl.", by setting |pfx1=italics.
 for an example see here
  • pfx2 (prefix link)Template:Spaced en dash alias lk. By default, the prefix is wikilinked to floruit; use this parameter to change the default by inserting one of the following values:
    • set |pfx2=abbr to display a tooltip when the pointer hovers over "fl.", expanding it to "floruit"; tooltip display may depend on browser and/or operating system version.
    • set |pfx2=no or |pfx2=off to display "fl." in plain text; use to avoid overlinking when this template is used repeatedly in the body of an article (Script error: No such module "Section link".).
 for examples see here (tooltip) and here (plain text)

Other parameters

Conditional (require a value for parameter date):

 for an example see here
  • sfx (suffix): use this parameter to append the floruit date with an era suffix preceded by a no-break space. Displays in plain text, but you may use the dependent parameter sfx-lk (see below) to display with an appropriate wikilink. The available options conform to the default calendar era.
 for an example see here
  • sfx-lk (suffix link): use to wikilink the suffix to the appropriate page, by setting |sfx-lk=yes;[lower-alpha 2] parameter sfx is required.
 for an example see here

Optional:

  • wrap (word wrap)Template:Spaced en dash by default, template output displays without word wrapping; to turn word wrap on, set |wrap=yes.
 for an example see here

Examples

  • Decade range
{{floruit|date=2010s}}
or
{{floruit|2010s}} (note)
Either generates: fl. 2010s
  • Decade range, in parentheses
{{floruit|date=2010s|b=yes}}
or
{{floruit|2010s|b=yes}}
Either generates: fl. 2010s
  • Prefix only, in plain text
{{floruit|pfx2=no}} 2010s (note)
Generates: fl. 2010s
  • Year range, prefix with tooltip
{{floruit|date=2010{{en dash}}16}}|pfx2=abbr}}
Generates: fl.
  • Circa century and suffix
{{floruit|date=21st century|ca=yes|sfx=ce}}
Generates: fl.
  • Suffix wikilinked, prefix in plain text, circa century, in parentheses
{{floruit|date=21st century|b=yes|ca=yes|pfx2=no|sfx=ce|sfx-lk=yes}}
Generates: fl.
  • Sortable year, word wrap is on, prefix italicized, and suffix
{{floruit|date=050|sortable=yes|pfx1=italics|sfx=bce|wrap=yes}} (note)
Generates: fl.

Error messages

Multiple errors are flagged per parameter; errors involving the same parameter may be mutually exclusive.
Messages replace the relevant parameter value(s), and appear under the following conditions:[lower-alpha 3]

Parameters b, ca, pfx1, pfx2, sortable and wrap

  • Incorrect value: [error in template {{floruit}}: wrong value for the relevant-parameter option]

Parameters b, sfx and sortable

  • Date required: [error in template {{floruit}}: relevant-parameter option requires a date value]

Parameter sfx

  • Incorrect or unsupported entry: [error in template {{floruit}}: wrong or unsupported suffix]

Parameter sfx-lk

  • Suffix not defined: [error in template {{floruit}}: suffix link requires suffix]

Redirects

{{floruit}} has the following redirects:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for 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
Datedate 1

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

Stringsuggested
Bracketsb

Set to "yes" to display output in parentheses; requires a 'date' value

Default
no
Booleanoptional
Circaca

Set to "yes" for circa date(s)

Default
no
Booleanoptional
Prefix stylepfx1

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

Stringoptional
Prefix linkpfx2 lk

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

Default
[[Floruit|fl.]]
Stringoptional
Suffixsfx

Adds an era suffix; options are: "ad", "bc", "bce", or "ce"; displays in uppercase; requires a 'date' value

Stringoptional
Suffix linksfx-lk

Set to "yes" to wikilink the era suffix; requires a suffix

Default
no link
Booleanoptional
Sortablesortable

Set to "yes" to sort the date correctly within tables; requires a 'date' value

Default
no
Booleanoptional
Word wrapwrap

Set to "yes" to turn word wrap on

Default
no wrap
Booleanoptional

See also

Footnotes

  1. 1.0 1.1 Template {{dts}} (date time sorting) has been embedded in code and becomes active when the sortable option is used. Note {{dts}} has several usage constraints.
  2. Any other value is ignored silently.
  3. When error messages appear in live usage, the included template link to {{floruit}} is active.