See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
साँचा:Dts - विकिपीडिया

साँचा:Dts

विकिपीडिया, एक मुक्त ज्ञानकोष से

[edit] Template documentation
The template documentation below is transcluded from साँचा:Dts/doc [edit]

Dts stands for Date Table Sorting and is used to correctly sort and display dates in a sortable table (see Help:Sorting).

अनुक्रम

[संपादित करें] What it solves

Normally, for proper sorting dates must be entered in YYYY-MM-DD format. But this does not conform to the Manual of Style for date display and wikilinking.

This template automatically creates the hidden <span style="display:none">1776-07-04</span> for sorting purposes and then displays and wikilinks the date properly like this July 4 1776, depending on the user's Special:Preferences.

[संपादित करें] Parameters

  • 1st parameter - Day (optional)
    • Day number - 7 or 07
  • 2nd parameter - Month (optional if the day is not given either)
    • Full month name - February or february
    • Abbreviated month name - Feb or feb
    • Month number - 2 or 02
  • 3rd parameter - Year
    • Year number - number in the range -9999 through 9999: the numbers -9999 through 0 are used without "bc" and represent astronomical years -9999 through 0, the numbers 1 through 9999 represent that year AD, or BC with the fourth parameter set to bc or BC
  • 4th parameter - optional with value BC or bc
    • Used with a positive year number

Thus e.g. for the year 5 BC we can use "5|bc" or "-4".

A time period (year or month and year) is sorted according to its start, and time periods with the same starting moment are in order of descending length: a year comes before its first month; a month comes before its first day.

[संपादित करें] Input

{{Dts|4|July|1776}}

See also the examples.

[संपादित करें] Output

Output sent to table

<span style="display:none">1776-07-04</span> [[July 4]] [[1776]]

Output displayed to user
01776-एक्स्प्रेशन गलती: अनिश्चित शब्द "july"-04 4 1776


[संपादित करें] See also

[संपादित करें] Examples

Examples with debug=yes (hidden parts are made visible):

साँचा:Dts/examples

The same examples with hidden parts actually hidden:

साँचा:Dts/examples


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -