ಟೆಂಪ್ಲೇಟು:Start-date/doc: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ

Content deleted Content added
No edit summary
No edit summary
೩ ನೇ ಸಾಲು:
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 old {{tl|start date}} and {{tl|end date}} templates. For events where the time, day or month is not known, the user may omit these details.
==== Usage examples====
{| width="100%" xclass="toccolours" style="margin-top:.5em;border:1px solid #a0a0a0;background-color:#f8f8ff;" <!-- no class formatting other than article space -->
<pre style="width:400px">{{start-date| 7 December 1941}} </pre>
|- style="text-align:left;" colspan=2
displays as '''{{start-date| 7 December 1941}}''' and emits a microformat date in the format '''1941-12-07T00:00Z'''
|'''<span style="font-size:110%;">Start-date & End-date usage </span>''' ''(colors for emphasis only)'':
 
|- style="text-align:left;line-height:1.4em;font-size:87%;"
 
|style="white-space:normal;"|'''Sample below displays <span style="color:#691BDF;">{{start-date| 7 December 1941}}</span>, and microformat date: '''''1941-12-07T00:00Z''<br />
Days, timezones and hours, minutes and seconds may be specified. EG:
<code><nowiki>
<pre style="width:400px">{{start-date| 8:43AM HST, December 7, 1941}} </pre>
{{start-date|</nowiki><span style="color:#705000;">''<nowiki>7 December 1941</nowiki>''</span>}}</code><br />
displays as '''{{start-date| 8:43AM HST, December 7, 1941}}''' and emits microformat date: '''dtstart=1941-12-07T18:43Z'''
|- style="text-align:left;line-height:1.4em;font-size:87%;"
 
|style="white-space:normal;"|'''Sample below demonstrating how days, timezones and hours, minutes and seconds can be shown. (Order often not important). Displays <span style="color:#691BDF;">{{start-date| 8:43AM HST, December 7, 1941}}</span>, and microformat date (corrected for UTC): '''''1941-12-07T18:43Z''<br />
 
<code><nowiki>
 
{{start-date|</nowiki><span style="color:#705000;">''<nowiki>8:43AM HST, December 7, 1941</nowiki>''</span>}}</code><br />
Display may be overridden, eg. to day of month or year pages, or to display a Julian calendar date:
|- style="text-align:left;line-height:1.4em;font-size:87%;"
<pre style="width:500px">{{start-date|December 7, 1941|[[December 7]], [[1941]]}} </pre>
displays|style="white-space:normal;"|'''Sample asbelow demonstrating use of links with dates. Displays links to day of month and year pages. <span style="color:#691BDF;">{{start-date|December 7, 1941|[[December 7]], [[1941]]}}".</span>, and microformat date: '''''1941-12-07T00:00Z''<br />
<code><nowiki>
 
{{start-date|</nowiki><span style="color:#705000;">''<nowiki>December 7, 1941</nowiki>'''''|'''''<nowiki>[[December 7]], [[1941]]</nowiki>''</span>}}</code><br />
 
|- style="text-align:left;line-height:1.4em;font-size:87%;"
Julian:
|style="white-space:normal;"|'''Sample below demonstrating use of Julian calendar dates. Displays <prespan style="widthcolor:500px#691BDF;">{{start-date| 9 June 1692|({{OldStyleDate|9 June|1672|30 May}} }}</span>, and microformat date: '''''1692-06-09T00:00:00Z''<br /pre>
<code><nowiki>
displays as "{{start-date| 9 June 1692|({{OldStyleDate|9 June|1672|30 May}}}}".
{{start-date|</nowiki><span style="color:#705000;">''<nowiki>9 June 1692</nowiki>'''''|'''''<nowiki>{{OldStyleDate|9 June|1672|30 May}} </nowiki>''</span>}}</code><br />
|}
 
 
"https://kn.wikipedia.org/wiki/ಟೆಂಪ್ಲೇಟು:Start-date/doc" ಇಂದ ಪಡೆಯಲ್ಪಟ್ಟಿದೆ