"ഫലകം:Start-date/doc" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

imported>J JMesserly
No edit summary
imported>J JMesserly
No edit summary
വരി 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Start-date and end-date are easy to read date and time templates that emits proper [[microformat]] dates for events. These templates are an alternative to the {{tl|start date}} and {{tl|end date}} templates. "Fuzzy" dates and times are supported. For events where the precise time, day or month is not known, the user may omit these details. Since Years, months, and days can be different depending on where an event occured, time zone is required. If not specified, the Year, month and day are assumed to be the same as that for [[UTC]]
==== Usage examples====
{| width="100%" xclass="toccolours" style="margin-top:.5em;border:1px solid #a0a0a0;background-color:#f8f8ff;" <!-- no class formatting other than article space -->
വരി 14:
<code><nowiki>
{{start-date|</nowiki><span style="color:#705000;">''5:43PM [[Hawaii-Aleutian time zone|HST]], December 7, 1941''</span>}}</code><br />
|- style="text-align:left;line-height:1.4em;font-size:87%;"
|style="white-space:normal;"|'''Sample below demonstrates universal time adjustment when given a location. Displays <span style="color:#038945;">{{start-date| December 7, 1941 7AM Africa/Nouakchott}}</span>, and microformat date (corrected for UTC): '''''1941-12-08T03:43Z''<br />
<code><nowiki>{{start-date| </nowiki><span style="color:#705000;">''December 7, 1941 7AM Africa/[[Nouakchott]]''</span>}}</code><br />
|- style="text-align:left;line-height:1.4em;font-size:87%;"
|style="white-space:normal;"|'''Sample below demonstrating use of links with dates. Displays links to day of month and year pages. <span style="color:#038945;">{{start-date|December 7, 1941|[[December 7]], [[1941]]}}</span>, and microformat date: '''''1941-12-07Z''<br />
Line 35 ⟶ 38:
====Ambiguous times and dates====
For the years 99 BC to 99AD especially, microformats may not be emitted properly unless expressed in the form YYYY-MM-DD. For users uninterested in microformats, it should be noted that this restriction has no known impacts other than microformat data which are currently invisible to users. The user of course may express the display form in the second parameter however they would like. Example: 1-2-3 is interpreted as February 3, 1 A.D, and emitted in that form via microformats when the user may have intended something else. Other 3 digit years may be misinterpreted as well, so best practice is to use leading zeros to make a 4 digit year for this date range. For example, February 274 will be interpreted as February 27, 2004. Instead, use "February 0274". Background: There is a good rationale for the behavior of the system function which actually does the hard work of this template. It is very unusual for people to mention such dates so long ago, so when we really mean this date, we must specify a 4 digit date. Outside of this period with ambiguous years, users may use free text dates without this restriction. Bot runs may make a conversion of non 4 digit years to 4 digits (with leading zeros) in order to refine Wikipedia's quality of microformat dates. These changes will not affect display, but for those curious, this is the rationale for such bot manipulations.
 
====Time Zones====
Most time zone abbreviations as well as a large number of place names are recognized. (See [[/timezones| recognized timezone values table]].)
 
:<tt><nowiki>{{start-date|December 7, 1941 8:43AM US/Hawaii }}</nowiki></tt> &rarr; '''{{start-date|December 7, 1941 8:43AM Pacific/Honolulu }}
:<tt><nowiki>{{start-date|December 8, 1941 12:30PM Asia/Manila }}</nowiki></tt> &rarr; '''{{start-date|December 8, 1941 12:30PM Asia/Manila }}
 
{{esoteric}}
"https://ml.wikipedia.org/wiki/ഫലകം:Start-date/doc" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്