टेम्पलेट:Start date and age: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
Created page with "<includeonly><!-- IMPLEMENTATION OF DATE -->{{#if: {{{1|}}}<!-- -->|{{#if: {{{2|}}}<!-- -->|{{#if: {{{3|}}}<!-- -->|{{#ifeq: {{{df|}}}|yes<!--..."
No edit summary
लाइन 1:
<includeonly><!--
 
 
IMPLEMENTATION OF DATE
 
 
-->{{#if: {{{1|}}}<!--
-->|{{#if: {{{2|}}}<!--
-->|{{#if: {{{3|}}}<!--
-->|{{#ifeq: {{yesno|{{{df|no}}}}}|yes<!--
-->|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}<!--
-->|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},<!--
-->}} {{{1}}}<!--
-->|{{MONTHNAME|{{{2}}}}}&nbsp;{{{1}}}<!--
-->}}<!--
-->|{{{1}}}<!--
-->}}<!--
--><span class="noprint">; <!--
-->{{#ifeq:{{{br|}}}|yes| <br/>|}}<!--
-->{{time ago<!--
-->|{{{1}}}<!--
-->-<!--
-->{{{2|{{CURRENTMONTH}}}}}<!--
-->-<!--
-->{{{3|{{CURRENTDAY}}}}}<!--
-->|min_magnitude=days<!--
-->}}<!--
--><span class="noprint">{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes||&#059;}}<!--
--></span><!--
-->{{#ifeq:{{yesno|'''{{color{br|redno}}}}}|Error: No parametersyes|<br/>|&#032;}}'''<!--
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|(}}<!--
-->{{#ifeqif: {{{br2|}}}|yes| <br/>|}}<!--
-->|{{time#if: ago{{{3|}}}<!--
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
-->|{{years or months ago|{{{1}}}|{{#time:n|1-{{{2}}}-1}}}}<!--
-->|{{{1}}}<!--
-->|{{#iferror:{{#expr:{3|{{CURRENTDAY1}}}}}<!--
-->|{{time ago|{{{1}}}|min_magnitude=days}}<!--
-->|{{{2years or months ago|{{CURRENTMONTH{1}}}}}<!--
-->-}}<!--
-->}}<!--
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!--
-->|'''{{color|red|Error: first parameter is missing.}}'''<!--
-->}}<!--
 
 
IMPLEMENTATION OF microformat date classes
 
--><span style="display:none">&#160;(<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!--
 
--><span style="display:none">&#160;(<span class="bday dtstart published updated"><!--
-->{{#if: {{{1|}}}<!--
-->|{{{1}}}<!--
-->{{#if: {{{2|}}}<!--
-->| -{{padleft#time:m|1-{{{2}}}|2|0-1}}<!--
-->{{#if: {{{3|}}}<!--
-->| -{{padleft:{{{3}}}|2|0}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
--></span>)</span></includeonly><noinclude>
{{being deleted|2013 July 31|merge=Template:Start date and years ago}}
{{documentation}}
</noinclude>
 
<noinclude>
<templatedata>
{
"params": {
"1": {
"description": "A four-digit number indicating the year.",
"example": "2009",
"type": "number"
},
"2": {
"description": "A number between 1 and 12 indicating the month (leading zeros in the number are ignored). The month may also be specified as a name or abbreviation (e.g. \"August\" or \"Aug\").",
"example": "10",
"type": "number"
},
"3": {
"description": "A number between 1 and 31 indicating the day of the month (leading zeros in the number are ignored).",
"example": "16"
},
"df": {
"description": "If the parameter df equals yes, y, or 1, the date will be displayed in DMY format: 4 March 2010. When this parameter is not included or set to some other value, the date will be displayed in MDY format: March 4, 2010.",
"example": "yes"
},
"paren": {
"aliases": [
"p"
],
"description": "If the parameter p or paren equals yes, y, or 1, the age will be displayed within parentheses. When this parameter is not included or set to some other value, the date and age are separated by a semicolon and a breaking space."
},
"p": {
"aliases": [
"paren"
],
"description": "If the parameter p or paren equals yes, y, or 1, the age will be displayed within parentheses. When this parameter is not included or set to some other value, the date and age are separated by a semicolon and a breaking space."
},
"br": {
"description": "If the parameter br equals yes, y, or 1, a line break will be inserted between the date and the age. When this parameter is not included or set to some other value, a breaking space will be inserted between the date and the age. This does not change the separating characters between the date and age which are either a semicolon (default setting) or parentheses (if p=yes)."
}
}
}
</templatedata>
</noinclude>