Share to:

Predloga:Dr/dok

Produces a year, decade, century or millennium for use in an infobox or navbox.

Usage

First parameter is y, d, c, m, depending on what is being input.

Second parameter is y, d, c, m, depending on what is to be output.

Third parameter is the input number. For example, 1 represents the year 1, the 10s, the 1st century or the 1st millennium (depending on the first parameter). For BC, make the number negative (for the decade 0s BC, use -0).

Fourth parameter is an offset from the output value. Notice that the output decade/century/millennium is the (first) decade/century/millennium of the input year/decade/century/millennium, but an output year is the second year of an input decade/century/millennium.

Fifth parameter contains style options. Normally the item is linked iff it is within the range for which Wikipedia has articles (to configure that range, please edit {{dr-make}}). The following options are available:

  • y = always link
  • n = never link
  • t = never link, and no no-break spaces or other formatting (e.g. for use in category names)
  • s = small letters for BC (or AD if present)
  • a = use AD if not BC
  • ys, ysa, ya, ns, nsa, na, sa = permitted combinations of the above

Example: {{dr|c|d|-5|3|s}} produces 460. pr. n. št., i.e. first decade of the 5th century BC, offset by +3 decades.


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya