Difference between revisions of "Template:Floruit/sandbox"

From blackwiki
Jump to navigation Jump to search
(Ren param. Ed. examples.)
Line 1: Line 1:
<!--Begin {{floruit/sandbox}}--><includeonly>{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{brackets|}}}|yes|(}}}}{{#ifeq:{{{pre1|}}}|italics|<em>}}{{#switch:{{{pre2|{{{lk|}}}}}}|no|off=fl.|abbr={{abbr|fl.|floruit/sandbox}}|#default=[[Floruit|fl.]]}}{{#ifeq:{{{pre1|}}}|italics|</em>}}{{#ifeq:{{{ca|}}}|yes|&#8239;c.}}{{#if:{{{1|{{{date|}}}}}}|&#8239;{{#ifeq:{{{sortable|}}}|yes|{{dts|{{{1|{{{date}}}}}}}}|{{{1|{{{date}}}}}}}}}}{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{brackets|}}}|yes|)}}}}</includeonly><!--End {{floruit/sandbox}}--><noinclude>
+
<!--Begin {{floruit/sandbox}}--><includeonly>{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|(}}}}{{#ifeq:{{{pre1|}}}|italics|<em>}}{{#switch:{{{pre2|{{{lk|}}}}}}|no|off=fl.|abbr={{abbr|fl.|floruit/sandbox}}|#default=[[Floruit|fl.]]}}{{#ifeq:{{{pre1|}}}|italics|</em>}}{{#ifeq:{{{ca|}}}|yes|&#8239;c.}}{{#if:{{{1|{{{date|}}}}}}|&#8239;{{#ifeq:{{{sortable|}}}|yes|{{dts|{{{1|{{{date}}}}}}}}|{{{1|{{{date}}}}}}}}}}{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|)}}}}</includeonly><!--End {{floruit/sandbox}}--><noinclude>
 
{{floruit/sandbox|2010s}}
 
{{floruit/sandbox|2010s}}
  
Line 7: Line 7:
 
==Usage==
 
==Usage==
 
{{csdoc|usage full}}
 
{{csdoc|usage full}}
:<code><nowiki>{{floruit/sandbox|date= </nowiki>{{bxt|or}} {{var|[date-value]}}<nowiki>|ca= |sortable= |pre1= |pre2= |brackets= }}</nowiki></code>
+
:<code><nowiki>{{floruit/sandbox|date= </nowiki>{{bxt|or}} {{var|[date-value]}}<nowiki>|ca= |sortable= |pre1= |pre2= |b= }}</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.
 
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.
Line 22: Line 22:
 
:{{en dash}}{{nbsp}}{{em|Date entered without label}} {{para|date}} ({{em|[[#unnamed|Note1]]}})
 
:{{en dash}}{{nbsp}}{{em|Date entered without label}} {{para|date}} ({{em|[[#unnamed|Note1]]}})
 
:Either generates: {{floruit/sandbox|2010s}}
 
:Either generates: {{floruit/sandbox|2010s}}
*{{strong|As above, but template output displays in parentheses}}
+
*{{strong|As above, in parentheses}}
:<code><nowiki>{{floruit/sandbox|date=2010s|brackets=yes}}</nowiki></code>
+
:<code><nowiki>{{floruit/sandbox|date=2010s|b=yes}}</nowiki></code>
 
:or
 
:or
:<code><nowiki>{{floruit/sandbox|2010s|brackets=yes}}</nowiki></code>
+
:<code><nowiki>{{floruit/sandbox|2010s|b=yes}}</nowiki></code>
:{{en dash}}{{nbsp}}{{em|Date entered without label}} {{para|date}} ({{em|[[#unnamed|Note1]]}})
+
:Either generates: {{floruit/sandbox|2010s|b=yes}}
:Either generates: {{floruit/sandbox|2010s|brackets=yes}}
 
 
*{{strong|Prefix only, in plain text}}
 
*{{strong|Prefix only, in plain text}}
 
:<code><nowiki>{{floruit/sandbox|pre2=no}} 2010s</nowiki></code>
 
:<code><nowiki>{{floruit/sandbox|pre2=no}} 2010s</nowiki></code>
Line 33: Line 32:
 
:{{en dash}}{{nbsp}}{{em|Please see [[#space|Note2]]}}
 
:{{en dash}}{{nbsp}}{{em|Please see [[#space|Note2]]}}
 
*{{strong|Parentheses don't display without a}} {{bxt|date}} {{strong|value}}
 
*{{strong|Parentheses don't display without a}} {{bxt|date}} {{strong|value}}
:<code><nowiki>{{floruit/sandbox|brackets=yes|pre2=no}} 2010s</nowiki></code>
+
:<code><nowiki>{{floruit/sandbox|b=yes}} 2010s</nowiki></code>
:Generates: {{floruit/sandbox|brackets=yes|pre2=no}} 2010s
+
:Generates: {{floruit/sandbox|b=yes}} 2010s
:{{en dash}}{{nbsp}}{{em|Please see [[#space|Note2]]}}
 
 
*{{strong|Year range, prefix with tooltip}}
 
*{{strong|Year range, prefix with tooltip}}
 
:<code><nowiki>{{floruit/sandbox|date={{dash year|2010|2016}}|pre2=abbr}}</nowiki></code>
 
:<code><nowiki>{{floruit/sandbox|date={{dash year|2010|2016}}|pre2=abbr}}</nowiki></code>
Line 46: Line 44:
 
:<code><nowiki>{{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr}}</nowiki></code>
 
:<code><nowiki>{{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr}}</nowiki></code>
 
:Generates: {{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr}}
 
:Generates: {{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr}}
*{{strong|Output in parentheses, single year sortable, prefix italicized with tooltip}}  
+
*{{strong|As above, in parentheses}}  
:<code><nowiki>{{floruit/sandbox|brackets=yes|date=2016|sortable=yes|pre1=italics|pre2=abbr}}</nowiki></code>
+
:<code><nowiki>{{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr|b=yes}}</nowiki></code>
:Generates: {{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr|brackets=yes}}
+
:Generates: {{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr|b=yes}}
  
 
==Parameters==
 
==Parameters==
Line 68: Line 66:
  
 
===Other parameters===
 
===Other parameters===
*{{bxtn|brackets}}{{spaced en dash}}use this parameter to display the template's output inside parentheses "()", by setting {{para|brackets|yes}}; requires a {{bxt|date}} value.
+
*{{bxtn|b}}{{spaced en dash}}use {{bxt|b}} ({{bxt|b}}rackets) to display the template's output inside parentheses "()", by setting {{para|b|yes}}; requires a {{bxt|date}} value.
  
 
==Redirects==
 
==Redirects==

Revision as of 14:10, 16 March 2016

fl. 2010s

Scope and structure

The template floruit/sandbox (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

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

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|date=2010s}}
or
{{floruit/sandbox|2010s}}
 Date entered without label |date= (Note1)
Either generates: fl. 2010s
  • As above, in parentheses
{{floruit/sandbox|date=2010s|b=yes}}
or
{{floruit/sandbox|2010s|b=yes}}
Either generates: (fl. 2010s)
  • Prefix only, in plain text
{{floruit/sandbox|pre2=no}} 2010s
Generates: fl. 2010s
 Please see Note2
  • Parentheses don't display without a date value
{{floruit/sandbox|b=yes}} 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 Note3
  • 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
  • As above, in parentheses
{{floruit/sandbox|date=2016|sortable=yes|pre1=italics|pre2=abbr|b=yes}}
Generates: (fl.2016)

Parameters

All parameters are optional; certain display options require parameter values.

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. Depending on the template options used, this parameter may require a value, see below.
Note1: You may treat parameter date as unnamed, and insert only the parameter's desired value; in such cases, this value should be the first entry in the template.
Note2: The value of date is preceded by a narrow no-break space ( ); if the parameter is not utilized, the template’s display may vary according to the user’s choice of whitespace character(s) or other formatting.
Note3: 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". Tooltip display may depend on browser and/or operating system version.
    • 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; see Script error: No such module "Section link"..

Other parameters

  • bTemplate:Spaced en dashuse b (brackets) to display the template's output inside parentheses "()", by setting |b=yes; requires a date value.

Redirects

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

See also