Template:Start date and age: Difference between revisions

m
108 revisions imported from wikipedia:Template:Start_date_and_age
No edit summary
m (108 revisions imported from wikipedia:Template:Start_date_and_age)
 
(8 intermediate revisions by 8 users not shown)
Line 20:
-->|{{#if: {{{3|}}}<!--
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
-->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!--
-->}}<!--
-->|{{#iferror:{{#expr:{{{1}}}}}<!--
Line 28:
-->}}<!--
-->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!--
-->|'''{{color|redError|Error: first parameter is missing.|tag=span}}'''<!--
-->}}<!--
 
Line 37:
-->|{{{1}}}<!--
-->{{#if: {{{2|}}}<!--
-->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!--
-->{{#if: {{{3|}}}<!--
-->| -{{padleft:{{{3}}}|2|0}}<!--
Line 45:
--></span>)</span></includeonly><noinclude>
{{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>