Skabelon:Cirka

Fra Wikipedia, den frie encyklopædi
Spring til navigation Spring til søgning

ca.

Documentation icon Skabelondokumentation[vis] [redigér] [historik] [opfrisk]

Usage[redigér wikikode]

This template generates an abbreviation for cirka: ca. By default the abbreviation is marked with <abbr>.

Examples[redigér wikikode]

Syntax What it looks like Notes
{{cirka}} 1325 ca. 1325 Default style; line break allowed between "ca." and "1325"; normal-width space
{{cirka|1325}} ca. 1325 Default style: no line break allowed; thin space
{{cirka|1325|i=yes}} ca. 1325 With italic "c.", though italics are discouraged at MOS:cirka
{{cirka|1325|lk=abbr}} ca. 1325 With abbreviation marking only (default)
{{cirka|1325|lk=yes}} ca. 1325 With link only
{{cirka|1325|lk=no}} ca. 1325 With neither link nor abbreviation marking
{{cirka|1000|1050}} ca. 1000 – ca. 1050 For ranges

Parameters[redigér wikikode]

Using the date itself as parameter (for example, "{{cirka|1956}}", giving "ca. 1956"), web browsers do not insert a line break anywhere in the string. By contrast, "{{cirka}} 1956" allows a line break between the "ca." and the number. Also, with the date as a parameter a thinner space is used with many browsers:

  • "ca. 1956" is generated by "{{cirka|1956}}".
  • "ca. 1956" is generated by "{{cirka}} 1956".

If the parameter |i= is set to a non-empty value, the "c." is put in italics: for example, "{{cirka|i=''}}" generates "ca." instead of "ca.".

If the parameter |lk= (for "link") is set as "|lk=no" or "|lk=off", the abbreviation is rendered as "ca.", without a wikilink or abbreviation element. If it is set to "|lk=abbr", it is rendered with the abbreviation element but without the wikilink. If it is set to "|lk=yes" or "|lk=on", it is rendered as "ca.", with a wikilink to the cirka article and not an abbreviation element. Otherwise, the abbreviation is marked with the "<abbr>" element, as in "ca.", and linked to the cirka article. The lk parameter can be used to avoid overuse of "<abbr>" or overlinking when this template is used repeatedly in the body of an article. For example:

  • [[Dionysius Exiguus]] was born {{cirka|470}}, lived in Rome from {{cirka|lk=no|500}}, and died {{cirka|lk=no|544}}.
    Dionysius Exiguus was born ca. 470, lived in Rome from ca. 500, and died ca. 544.

If the parameter "cap=yes" is specified, the result starts with a capital letter.

Skabelon:Cirka/doc/sortable

See also[redigér wikikode]

Ingen beskrivelse.

Skabelonparametre

ParameterBeskrivelseTypeStatus
sortablesortable

ingen beskrivelse

Ukendtvalgfri
year1

ingen beskrivelse

Strengforeslået
italicize?i

If non-empty, italicizes 'c.'

Eksempel
yes
Strengvalgfri
link?lk

If 'yes' or 'on', links to 'cirka' article. If 'no' or 'off', does not title 'cirka'.

Eksempel
no
Strengvalgfri
end year2

ingen beskrivelse

Strengvalgfri