|
imported>Nøkkenbuer |
| (100 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|{{{date|}}}}}}| {{#ifeq:{{{sortable|}}}|yes|{{dts|{{{1|{{{date}}}}}}}}|{{{1|{{{date}}}}}}}}}}</includeonly><!--End {{floruit/sandbox}}--><noinclude>
| + | {{#if:{{{sortable|}}} |
| − | {{floruit/sandbox|2010s}}
| + | |<span style="display:none;">{{{1|}}}</span> |
| − | | + | }}{{#if:{{{i|}}} |
| − | ==Scope and structure==
| + | |<nowiki/>'' |
| − | 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.
| + | }}{{#switch:{{{lk|}}} |
| − | | + | |no|off = fl. |
| − | ==Usage==
| + | |yes|on = [[Floruit|fl.]] |
| − | {{csdoc|usage full}}
| + | |abbr |
| − | :<code><nowiki>{{floruit/sandbox|date= </nowiki>{{bxt|or}} {{var|[date-value]}}<nowiki>|ca= |sortable= |pre1= |pre2= }}</nowiki></code> | + | |#default = {{Abbr|fl.|floruit}} |
| − | {{end}}
| + | }}{{#if:{{{i|}}} |
| − | 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 {{slink||Parameters}} for important details.
| + | |''<nowiki/> |
| − | | + | }}{{#if:{{{1|}}} |
| − | ===Exceptions===
| + | |<span style="white-space:nowrap;"> {{{1}}}</span> |
| − | [[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. | + | }}{{#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|Decade, prefix wikilinked}}
| + | </noinclude> |
| − | :<code><nowiki>{{floruit/sandbox|date=2010s}}</nowiki></code>
| |
| − | :or
| |
| − | :<code><nowiki>{{floruit/sandbox|2010s}}</nowiki></code>
| |
| − | :{{en dash}}{{nbsp}}{{em|Date entered without label}} {{para|date}}
| |
| − | :Either generates: {{floruit/sandbox|2010s}}
| |
| − | *{{strong|Prefix only, in plain text}}
| |
| − | :<code><nowiki>{{floruit/sandbox|pre2=no}} 2010s</nowiki></code> | |
| − | :Generates: {{floruit/sandbox|pre2=no}} 2010s
| |
| − | *{{strong|Year range, prefix with tooltip}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date={{dash year|2010|2016}}|pre2=abbr}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date={{dash year|2010|2016}}|pre2=abbr}}
| |
| − | :{{en dash}}{{nbsp}}{{em|Uses}} {{tl|dash year}} {{em|to format year range, but please see [[#sort|here]]}}
| |
| − | *{{strong|Circa century, prefix wikilinked}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=21st century CE|ca=yes}}</nowiki></code> | |
| − | :Generates: {{floruit/sandbox|date=21st century CE|ca=yes}}
| |
| − | *{{strong|Single year sortable, prefix italicized with tooltip}}
| |
| − | :<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}}
| |
| − | | |
| − | ==Parameters==
| |
| − | All parameters are optional.
| |
| − | | |
| − | ===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]] ( ).
| |
| − | :{{em|Optionally}}, you may not label this parameter; in this case, insert the desired date value as 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 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.
| |
| − | :{{em|id=sort|Note:}} To sort correctly, {{para|sortable}} wraps template {{tl|dts}} around the date value(s); it works best with single date values. When using this parameter, {{em|do not}} insert other templates as values to {{para|date}}; results may be unpredictable.
| |
| − | | |
| − | ===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." in 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}}
| |
| − | | |
| − | ==Template data==
| |
| − | This is the [[Wikipedia:TemplateData|TemplateData]] documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools.
| |
| − | | |
| − | {{bxtn|floruit}}
| |
| − | <templatedata>
| |
| − | {
| |
| − | "params": {
| |
| − | "pre1": {
| |
| − | "label": "Prefix italics",
| |
| − | "description": "Set to \"italics\" to render the prefix \"fl.\" in italics",
| |
| − | "type": "string"
| |
| − | },
| |
| − | "pre2": {
| |
| − | "aliases": [
| |
| − | "lk"
| |
| − | ],
| |
| − | "label": "Prefix links",
| |
| − | "description": "Use to change the default prefix display: \"abbr\" replaces the wikilink with a tooltip; \"no\" or \"off\" renders prefix in plain text",
| |
| − | "type": "string"
| |
| − | },
| |
| − | "ca": {
| |
| − | "label": "Circa",
| |
| − | "description": "Set to \"yes\" for circa date(s)",
| |
| − | "type": "string"
| |
| − | },
| |
| − | "date": {
| |
| − | "aliases": [
| |
| − | "1 [unnamed]"
| |
| − | ],
| |
| − | "label": "Date(s)",
| |
| − | "description": "Time-period or era, may be a single date or a range",
| |
| − | "type": "string",
| |
| − | "suggested": true
| |
| − | },
| |
| − | "sortable": {
| |
| − | "label": "Sortable",
| |
| − | "description": "Set to \"yes\" to sort the date correctly within tables",
| |
| − | "type": "string"
| |
| − | }
| |
| − | },
| |
| − | "description": "Formats the display of periods of activity or popularity for people, ideas, or movements",
| |
| − | "paramOrder": [
| |
| − | "date",
| |
| − | "ca",
| |
| − | "sortable",
| |
| − | "pre1",
| |
| − | "pre2"
| |
| − | ],
| |
| − | "format": "inline"
| |
| − | } | |
| − | </templatedata> | |
| − | </noinclude><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | |
| − | <!-- Categories go here and interwikis go in Wikidata. -->
| |
| − | [[Category:Internal link templates]]
| |
| − | [[Category:Time, date and calendar templates]]
| |
| − | }}</includeonly>
| |