|
imported>Nøkkenbuer |
| (44 intermediate revisions by 8 users not shown) |
| Line 1: |
Line 1: |
| − | <!--Begin {{floruit/sandbox}}.--><includeonly>{{#if:{{{wrap|}}}|{{#ifeq:{{{wrap|}}}|yes||{{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the wrap option]}}}} }}|<span style="white-space:nowrap;">}}{{#if:{{{b|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|(|{{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the bracket option]}}}} }}|{{error|message={{small|[error in template {{tl2|floruit}}: bracket option requires a date value]}}}} }}|}}{{#if:{{{pfx1|}}}|{{#ifeq:{{{pfx1|}}}|italics|<em>|{{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the prefix-style option]}}}} }}}}{{#if:{{{1|{{{date|}}}}}}|{{#if:{{{pfx2|{{{lk|}}}}}}|{{#switch:{{{pfx2|{{{lk|}}}}}}|no|off=fl. |abbr={{abbr|fl.|floruit}} |active=[[Floruit|active]] |active-no|active-off=active |{{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the prefix-link option]}}}} }}|[[Floruit|fl.]] }}|{{#if:{{{pfx2|{{{lk|}}}}}}|{{#switch:{{{pfx2|{{{lk|}}}}}}|no|off=fl.|abbr={{abbr|fl.|floruit}}|active=[[Floruit|active]]|active-no|active-off=active|{{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the prefix-link option]}}}}}}|[[Floruit|fl.]]}}}}{{#ifeq:{{{pfx1|}}}|italics|</em>}}{{#if:{{{ca|}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{ca|}}}|both|yes|date=c. |}}|{{#switch:{{{ca|}}}|yes|date={{#if:{{{1|{{{date|}}}}}}|c. |{{#switch:{{{pfx2|{{{lk|}}}}}}|active|active-no|active-off= c.| c.}}}}|{{#if:{{{1|{{{date|}}}}}}|| }}{{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the circa option]}}}} }}|}}}}{{#if:{{{sortable|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{sortable|}}}|yes|{{#iferror:{{dts|{{{1|{{{date|}}}}}}}}|{{error|message={{small|[error in template {{tl2|floruit}}: wrong date format for the sortable option]}}}}}}| {{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the sortable option]}}}}}}| {{error|message={{small|[error in template {{tl2|floruit}}: sortable option requires a date value]}}}}}}|{{trim|{{{1|{{{date|}}}}}}}}}}{{#if:{{{unit|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{unit|}}}|c-c= century|m-m= millennium}}|{{#switch:{{{unit|}}}|c= century|m= millennium| {{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the date-unit option]}}}}}}}}|{{error|message={{small|[error in template {{tl2|floruit}}: date-unit option requires a date value]}}}}}}}}{{#if:{{{sfx|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{sfx|}}}|b-a= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce|b-c= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}}}|{{#switch:{{{sfx|}}}|ad= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|AD]]|AD}}|bc= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}|ce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|CE]]|CE}}| {{error|message={{small|[error in template {{tl2|floruit}}: wrong or unsupported suffix]}}}}}}}}|{{error|message={{small|[error in template {{tl2|floruit}}: suffix option requires a date value]}}}}}}|{{#if:{{{sfx-lk|}}}| {{error|message={{small|[error in template {{tl2|floruit}}: suffix link requires suffix]}}}}}}}}{{#if:{{{2|{{{date2|}}}}}}|{{#if:{{{1|{{{date|}}}}}}| – {{#if:{{{ca|}}}|{{#switch:{{{ca|}}}|date2|both=c. |yes|date=|{{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the circa option]}}}} }}|}}{{trim|{{{2|{{{date2|}}}}}}}}{{#if:{{{unit|}}}|{{#switch:{{{unit|}}}|c|c-c= century|m|m-m= millennium| {{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the date-unit option]}}}}}}}}{{#if:{{{sfx|}}}|{{#switch:{{{sfx|}}}|ad|b-a= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|AD]]|AD}}|bc= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}|ce|b-c= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|CE]]|CE}}|{{error|message= {{small|[error in template {{tl2|floruit}}: wrong or unsupported suffix]}}}}}}}}|{{error|message= {{small|[error in template {{tl2|floruit}}: date range requires a starting date]}}}}}}}}{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|)}}}}{{#ifeq:{{{wrap|}}}|yes||</span>}}</includeonly><!--End {{floruit/sandbox}}.--><noinclude>
| + | {{#if:{{{sortable|}}} |
| − | {{floruit/sandbox|2010s}}<br/>{{floruit/sandbox|2010s|b=yes|pfx2=active}}<br/>
| + | |<span style="display:none;">{{{1|}}}</span> |
| − | {{Documentation|content=
| + | }}{{#if:{{{i|}}} |
| − | <!--Categories go at the bottom of this page and interwikis go in Wikidata.-->
| + | |<nowiki/>'' |
| − | <!--Partly based on documentation for {{cl|Citation Style 1 templates}}.-->
| + | }}{{#switch:{{{lk|}}} |
| − | {{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}}.}}
| + | |no|off = fl. |
| − | 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); a special option may instead employ "active" as prefix. The prefix is wikilinked to floruit by default, but different or additional display options may be used. Please also see {{slink||Exceptions}} for possible usage exceptions.
| + | |yes|on = [[Floruit|fl.]] |
| − | | + | |abbr |
| − | ==Usage==
| + | |#default = {{Abbr|fl.|floruit}} |
| − | | + | }}{{#if:{{{i|}}} |
| − | ===Structure===
| + | |''<nowiki/> |
| − | For presentation purposes only, in the box below [brackets] indicate parameter values; variables are {{em|italicized}}; explanatory text is in (parentheses).
| + | }}{{#if:{{{1|}}} |
| − | {{csdoc|usage full}} | + | |<span style="white-space:nowrap;"> {{{1}}}</span> |
| − | :<code><nowiki>{{floruit/sandbox|date= (or) </nowiki>[{{var|date-value}}]<nowiki>|date2= (or) </nowiki>[{{var|end-date-value}}]<nowiki>|b= |ca= |pfx1= |pfx2= |unit= |sfx= |sfx-lk= |sortable= |wrap= }}</nowiki></code> | + | }}{{#if:{{{2|}}} |
| − | {{end}}
| + | | – {{Abbr|c.|circa}}<span style="white-space:nowrap;"> {{{2}}}</span> |
| − | 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 {{slink||Parameters}} for important details.
| + | }}<noinclude> |
| − | | + | {{Documentation}} |
| − | By default, the date or range is prefixed with the abbreviation "fl.", wikilinked to its expanded form (''[[floruit]]''); optionally, the prefix may be replaced by "active" in special cases. Displayable template values are separated by a [[whitespace character]]s of varying lengths. Formatted date ranges are separated by a [[spaced en dash]]. [[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.}} 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
| |
| − | {{Ordered list|list_style_type=lower-alpha|is not required|is not necessary or pertinent|is not reliably known}}
| |
| − | [[Floruit|By definition]], the relevant date(s) may be month, year, decade, or century ranges, or may otherwise be inexact or approximate. When the template is applied to persons with known occupations, the prefix option "active" is recommended; 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. Usage of parameters {{bxt|date}}, and (for date ranges) {{bxt|date2}}, is suggested; either or both may be required by some options. Incorrect values will be flagged under almost all usage scenarios (see {{slink||Error messages}}).<br/>
| |
| − | Parameter names are in {{bxtn|bold}} below, for presentation only.
| |
| − | | |
| − | ===Date formatting parameters===
| |
| − | Suggested:
| |
| − | *{{bxtn|date}} or {{bxtn|[1]}} (stand-alone date, or start date for range){{spnd}} the time period (or the start date of a time period) during which the subject is known to have been active or popular. Values may be in any relevant date unit. You may also use this parameter as a free-form field, for stand-alone dates or for date ranges; such ranges must be separated by a [[spaced en dash]] where applicable ([[WP:APPROXDATE]]). Time periods not delimited with start and end dates (such as "1990s" or "21st century") should use this parameter only; in ranges with start and end dates you may additionally utilize parameter {{bxt|date2}} [[#rng|below]]. Apply any of Wikipedia's [[MOS:DATEFORMAT|acceptable date formats]], but please follow the relevant format established in the article, if any. Depending on the prefix used (parameter {{bxt|pfx2}} [[#pre2|below]]), this parameter's value may be preceded by a [[narrow no-break space]], or by a [[no-break space]]. Depending on the template options used, {{em|this parameter may require a value}}.
| |
| − | :{{em|id=unnamed|Note:}} You may treat {{bxt|date}} as an unnamed parameter, and insert only its desired value.
| |
| − | :{{em|id=space|Note:}} The template display does not include trailing [[whitespace character]](s); when {{bxt|date}} is not utilized, displayed output may vary according to user formatting.
| |
| − | :{{en dash}}{{nbsp}}{{em|for examples see}} [[#dec|{{em|here}}]] {{em|(named and unnamed) and}} [[#plain|{{em|here}}]] {{em|(not used)}}
| |
| − | *{{anchor|rng}}{{bxtn|date2}} or {{bxtn|[2]}} (end date for range){{spnd}} used to format date ranges delimited with start and end dates; this parameter is recommended when depicting such ranges. {{em|Requires}} a start date for the range, via parameter {{bxt|date}}. A [[spaced en dash]] is used as the range separator. Depending on the template options used, {{em|this parameter may require a value}}.
| |
| − | :{{em|id=unnamed2|Note:}} You may treat {{bxt|date2}} as an unnamed parameter, and insert only its desired value.
| |
| − | :{{en dash}}{{nbsp}}{{em|for examples see}} [[#brc|{{em|here}}]] {{em|(named and unnamed)}}
| |
| − | Optional:
| |
| − | *{{bxtn|ca}} (circa){{spnd}} use for [[circa]] dates; the additional prefix "c.", preceded by a narrow no-break space, is inserted before the relevant date(s) ( c.). When using formatted ranges (see parameter {{bxt|date2}}) a value for the end date is {{em|required}}; a value for the start date may {{em|also}} be required.
| |
| − | **set {{para|ca|yes}} or {{para|ca|date}} to apply circa independently of any parameter; or to apply to just parameter {{bxt|date}} when used as a stand-alone (or free-form) date, or, as the start date for a formatted range
| |
| − | **set {{para|ca|date2}} in formatted ranges only; applies to the end date (a value for parameter {{bxt|date2}} is {{em|required}})
| |
| − | **set {{para|ca|both}} in formatted ranges as above, but applies to both start and end date (values for parameters {{bxt|date}} and {{bxt|date2}} are {{em|required}})
| |
| − | :{{en dash}}{{nbsp}}{{em|for examples see}} [[#ca1|here]] {{em|(stand-alone date and range start date)}}, [[#ca2|here]] {{em|(range end date), and}} [[#ca12|here]] {{em|(start and end date)}}
| |
| − | Conditional ({{em|requires a value for parameter}} {{bxt|date}}):
| |
| − | *{{bxtn|sortable}}{{spnd}} set {{para|sortable|yes}} to format the value for parameter {{bxt|date}} so that it is displayed properly within [[WP:TABLESORT|sortable table]]s; it works {{em|only}} with dates that conform to Wikipedia's [[MOS:DATEFORMAT|acceptable date formats]].{{efn|name=dts}}
| |
| − | :{{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}}]]
| |
| − | | |
| − | ===Prefix formatting parameters===
| |
| − | Optional:
| |
| − | *{{bxtn|pfx1}} (prefix style){{spnd}} use this parameter to {{em|italicize}} the display of the prefix, by setting {{para|pfx1|italics}}.
| |
| − | :{{en dash}}{{nbsp}}{{em|for an example see}} [[#sort|{{em|here}}]]
| |
| − | *{{anchor|pre2}}{{bxtn|pfx2}} (prefix link){{spnd}} alias {{bxtn|lk}}. The abbreviation "fl." wikilinked to ''[[floruit]]'' and followed by a narrow no-break space is used as the default prefix; use this parameter to change the default by inserting one of the following values:
| |
| − | **set {{para|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 {{para|pfx2|no}} or {{para|pfx2|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 ({{slink|Wikipedia:Manual of Style/Abbreviations|Miscellaneous shortenings}})
| |
| − | **set {{para|pfx2|active}} to replace "fl." with "active" followed by a [[no-break space]], wikilinked to {{italics correction|''[[floruit]]''}}; recommended when referring to persons with known occupations
| |
| − | **set {{para|pfx2|active-no}} or {{para|pfx2|active-off}} to use "active" as above, but in plain text
| |
| − | :{{en dash}}{{nbsp}}{{em|for examples see}} [[#ttip|{{em|here}}]] {{em|(tooltip)}}, [[#plain|{{em|here}}]] {{em|(plain text), and}} [[#act|{{em|here}}]] {{em|("active")}}
| |
| − | | |
| − | ===Other parameters===
| |
| − | Conditional ({{em|require a value for parameter}} {{bxt|date}}; {{em|may require a value for parameter}} {{bxt|date2}}):
| |
| − | *{{bxtn|b}} (brackets){{spnd}} 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}}]]
| |
| − | *{{anchor|du}}{{bxtn|unit}} (date unit){{spnd}} use this parameter to specify a date unit for the floruit date or range, preceded by a no-break space. When using formatted ranges (see parameter {{bxt|date2}}), the value applies to the end date, or to both start and end date.
| |
| − | **set {{para|unit|c}} to add "century" after parameter {{bxt|date}} when it is a stand-alone (or free-form) date; or, in formatted ranges, after the end date (a value for {{bxt|date2}} is {{em|required}})
| |
| − | **set {{para|unit|m}} as above, but adds "millennium" instead
| |
| − | **set {{para|unit|c-c}} in formatted ranges only; adds "century" after both the start and the end date (values for parameters {{bxt|date}} and {{bxt|date2}} are {{em|required}})
| |
| − | **set {{para|unit|m-m}} in formatted ranges as above, but adds "millennium" instead
| |
| − | :{{en dash}}{{nbsp}}{{em|for examples see}} [[#du1|{{em|here}}]] {{em|(stand-alone date)}}, [[#du2|{{em|here}}]] {{em|(range end date), and}} [[#du12|{{em|here}}]] {{em|(start and end date)}}
| |
| − | *{{anchor|suf}}{{bxtn|sfx}} (suffix){{spnd}} use this parameter to add an era suffix preceded by a no-break space to the floruit date or range. 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]]. If parameter {{bxt|unit}} is specified, the suffix follows the unit value. When using formatted ranges (see parameter {{bxt|date2}}) the value applies to the end date, {{em|except}} when the date range straddles eras.
| |
| − | **set {{para|sfx|ad}} to display the suffix AD ([[Anno Domini]]) after parameter {{bxt|date}} when used as a stand-alone (or free-form) date; or, in formatted ranges, after the end date parameter (a value for {{bxt|date2}} is {{em|required}})
| |
| − | **set {{para|sfx|bc}} as above, but displays the suffix BC ([[Anno Domini|Before Christ]])
| |
| − | **set {{para|sfx|bce}} as above, but displays the suffix BCE ([[Common Era|Before Common Era]])
| |
| − | **set {{para|sfx|ce}} as above, but displays the suffix CE ([[Common Era]])
| |
| − | **set {{para|sfx|b-a}} in formatted ranges only, when they straddle eras; displays BC after the start date (parameter {{bxt|date}}) and AD after the end date (parameter {{bxt|date2}}); values for both parameters are {{em|required}}
| |
| − | **set {{para|sfx|b-c}} in formatted ranges as above, but displays BCE after the start date and CE after the end date
| |
| − | :{{en dash}}{{nbsp}}{{em|for examples see}} [[#suf1|{{em|here}}]] {{em|(stand-alone date)}}, [[#suf2|{{em|here}}]] {{em|(range end date), and}} [[#suf12|{{em|here}}]] {{em|(start and end date straddle eras)}}
| |
| − | *{{anchor|suflink}}{{bxtn|sfx-lk}} (suffix link){{spnd}} 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:
| |
| − | *{{bxtn|wrap}} (word wrap){{spnd}} by default, template output displays without word wrapping; to turn word wrap on, set {{para|wrap|yes}}.
| |
| − | :{{en dash}}{{nbsp}}{{em|for an example see}} [[#sort|{{em|here}}]]
| |
| − | | |
| − | ==Examples==
| |
| − | *{{anchor|dec}}{{strong|Decade range, free-form}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=2000s}}</nowiki></code>
| |
| − | :or
| |
| − | :<code><nowiki>{{floruit/sandbox|2000s}}</nowiki></code> ([[#unnamed|{{em|note}}]])
| |
| − | :Either generates: {{floruit/sandbox|2000s}}
| |
| − | *{{anchor|brc}}{{strong|Decade range, formatted, in parentheses}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=2000|date2=2010|b=yes}}</nowiki></code>
| |
| − | :or
| |
| − | :<code><nowiki>{{floruit/sandbox|2000|2010|b=yes}}</nowiki></code> ([[#unnamed2|{{em|note}}]])
| |
| − | :Either generates: {{floruit/sandbox|2000|2010|b=yes}}
| |
| − | *{{anchor|ca1}}{{strong|Circa, free-form decade range or, circa decade range start date}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=2000s|ca=yes}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date=2000s|ca=yes}}
| |
| − | :or
| |
| − | :<code><nowiki>{{floruit/sandbox|2000|2010|ca=date}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|2000|2010|ca=date}}
| |
| − | *{{anchor|ca2}}{{strong|Circa century range end date, with date unit}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=20th|date2=21st|ca=date2|unit=c}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date=20th|date2=21st|ca=date2|unit=c}}
| |
| − | *{{anchor|ca12}}{{strong|Circa century range, with date unit}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=20th|date2=21st|ca=both|unit=c}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date=20th|date2=21st|ca=both|unit=c}}
| |
| − | *{{anchor|plain}}{{strong|Prefix only, in plain text}}
| |
| − | :<code><nowiki>{{floruit/sandbox|pfx2=no}} 2010s</nowiki></code> ([[#space|{{em|note}}]])
| |
| − | :Generates: {{floruit/sandbox|pfx2=no}} 2010s
| |
| − | *{{anchor|ttip}}{{strong|Years range, formatted, prefix with tooltip}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=2010|date2=2016|pfx2=abbr}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date=2010|date2=2016|pfx2=abbr}}
| |
| − | *{{anchor|act}}{{strong|"Active" prefix, formatted range}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=January 2000|date2=April 2001|pfx2=active}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date=January 2000|date2=April 2001|pfx2=active}}
| |
| − | *{{anchor|circa}}{{strong|Date unit}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=21st|ca=yes|unit=c|sfx=ce}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date=21st|ca=yes|unit=c|sfx=ce}}
| |
| − | *{{anchor|suf-lk}}{{strong|Millennium range, formatted, with circa start date, date unit, suffix wikilinked, prefix in plain text, in parentheses}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=1st|date2=2nd|b=yes|pfx2=no|ca=yes|unit=m|sfx=ce|sfx-lk=yes}}</nowiki></code> | |
| − | :Generates: {{floruit/sandbox|date=1st|date2=2nd|b=yes|pfx2=no|ca=yes|unit=m|sfx=ce|sfx-lk=yes}}
| |
| − | *{{anchor|sort}}{{strong|Sortable year, word wrap is on, prefix italicized, and suffix}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=050|sortable=yes|pfx1=italics|sfx=bce|wrap=yes}}</nowiki></code> ([[#sorted|{{em|note}}]])
| |
| − | :Generates: {{floruit/sandbox|date=050|sortable=yes|pfx1=italics|sfx=bce|wrap=yes}}
| |
| − | *{{anchor|era}}{{strong|"Active" prefix in plain text, formatted circa range, straddles eras, suffixes wikilinked}}
| |
| − | :<code><nowiki>{{floruit/sandbox|date=20|date2=20|pfx2=active-no|ca=both|sfx=b-a|sfx-lk=yes}}</nowiki></code>
| |
| − | :Generates: {{floruit/sandbox|date=20|date2=20|pfx2=active-no|ca=both|sfx=b-a|sfx-lk=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.}}<br/><br/>
| |
| − | {{strong|Parameters {{bxt|b}}, {{bxt|ca}}, {{bxt|pfx1}}, {{bxt|pfx2}}, {{bxt|unit}}, {{bxt|sortable}}}} and {{bxt|wrap}}
| |
| − | *Incorrect value: {{error|message={{small|[error in template {{tl2|floruit}}: wrong value for the {{var|parameter}} option]}}}}
| |
| − | {{strong|Parameters {{bxt|b}}, {{bxt|unit}}, {{bxt|sfx}}}} and {{bxt|sortable}} | |
| − | *Date required: {{error|message={{small|[error in template {{tl2|floruit}}: {{var|parameter}} option requires a date value]}}}}
| |
| − | {{strong|Parameter {{bxt|date2}}}}
| |
| − | *Start date missing: {{error|message= {{small|[error in template {{tl2|floruit}}: date range requires a starting date]}}}}
| |
| − | {{strong|Parameter {{bxt|sfx}}}}
| |
| − | *Incorrect or unsupported entry: {{error|message={{small|[error in template {{tl2|floruit}}: wrong or unsupported suffix]}}}}
| |
| − | {{strong|Parameter {{bxt|sfx-lk}}}}
| |
| − | *Suffix not defined: {{error|message={{small|[error in template {{tl2|floruit}}: suffix link requires suffix]}}}}
| |
| − | {{strong|Parameter {{bxt|sortable}}}}
| |
| − | *Incorrect date format:{{efn|name=dts-err|Trap for related {{tl|dts}} native errors.{{efn|name=dts}}}} {{error|message={{small|[error in template {{tl2|floruit}}: wrong date format for the sortable option]}}}}
| |
| − | | |
| − | | |
| − | ==Redirects==
| |
| − | <!--This section is linked from within this document ([[MOS:HEAD]])--> | |
| − | {{tlf|floruit}} has the following [[Wikipedia:redirect|redirect]]s:
| |
| − | *{{tl|fl.}}
| |
| − | *{{tl|flor}}
| |
| − | *{{tl|flor.}}
| |
| − | *{{tl|flourished}}
| |
| − | *{{tl|flr}}
| |
| − | | |
| − | ==TemplateData== | |
| − | {{TemplateDataHeader|floruit}}
| |
| − | <templatedata>
| |
| − | {
| |
| − | "params": {
| |
| − | "ca": {
| |
| − | "label": "Circa",
| |
| − | "description": "Set to \"yes\" for circa date(s)",
| |
| − | "type": "boolean",
| |
| − | "default": "no circa"
| |
| − | },
| |
| − | "date": {
| |
| − | "aliases": [
| |
| − | "1"
| |
| − | ],
| |
| − | "label": "Date",
| |
| − | "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; works with single dates only; requires a 'date' value",
| |
| − | "type": "boolean",
| |
| − | "default": "no sorting"
| |
| − | },
| |
| − | "b": {
| |
| − | "label": "Brackets",
| |
| − | "description": "Set to \"yes\" to display output in parentheses; requires a 'date' value",
| |
| − | "type": "boolean",
| |
| − | "default": "no parentheses"
| |
| − | },
| |
| − | "wrap": {
| |
| − | "label": "Word wrap",
| |
| − | "description": "Set to \"yes\" to turn word wrap on",
| |
| − | "type": "boolean",
| |
| − | "default": "no wrap"
| |
| − | },
| |
| − | "pfx1": {
| |
| − | "label": "Prefix style",
| |
| − | "description": "Set to \"italics\" to render the prefix fl. in italics",
| |
| − | "type": "string"
| |
| − | },
| |
| − | "pfx2": {
| |
| − | "aliases": [
| |
| − | "lk"
| |
| − | ],
| |
| − | "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",
| |
| − | "type": "string",
| |
| − | "default": "[[Floruit|fl.]]"
| |
| − | },
| |
| − | "sfx": {
| |
| − | "label": "Suffix",
| |
| − | "description": "Adds an era suffix; options are: \"ad\", \"bc\", \"bce\", or \"ce\"; displays in uppercase; requires a 'date' value",
| |
| − | "type": "string"
| |
| − | },
| |
| − | "sfx-lk": {
| |
| − | "label": "Suffix link",
| |
| − | "description": "Set to \"yes\" to wikilink the era suffix; requires a suffix",
| |
| − | "type": "boolean",
| |
| − | "default": "no link"
| |
| − | }
| |
| − | },
| |
| − | "description": "Formats the display of periods of activity or popularity for people, ideas, or movements",
| |
| − | "paramOrder": [
| |
| − | "date",
| |
| − | "b",
| |
| − | "ca",
| |
| − | "pfx1",
| |
| − | "pfx2",
| |
| − | "sfx",
| |
| − | "sfx-lk",
| |
| − | "sortable",
| |
| − | "wrap"
| |
| − | ],
| |
| − | "format": "inline"
| |
| − | }
| |
| − | </templatedata> | |
| − | | |
| − | ==See also==
| |
| − | *[[Tempore]]
| |
| − | *{{tl|b.}}
| |
| − | *{{tl|circa}}
| |
| − | *{{tl|reign}}
| |
| − | | |
| − | ==Footnotes==
| |
| − | {{notelist}}
| |
| − | | |
| − | }} | |
| | </noinclude> | | </noinclude> |