Difference between revisions of "Template:Date"

From The iPhone Wiki
Jump to: navigation, search
m (W3C requires month)
Line 17: Line 17:
 
-->| {{#expr: {{{3}}} }}&nbsp;<!--
 
-->| {{#expr: {{{3}}} }}&nbsp;<!--
 
-->}}<!--
 
-->}}<!--
  +
// Could {{#time:}} be used instead?
-->{{#if: {{{2|}}}<!--
 
  +
-->{{MONTHNAME|{{{2|}}}|abbr={{{abbr|}}}}}&nbsp;<!--
// Could {{#time:}} be used instead?
 
-->| {{MONTHNAME|{{{2|}}}|abbr={{{abbr|}}}}}&nbsp;<!--
 
-->}}<!--
 
 
-->{{{1}}}<!--
 
-->{{{1}}}<!--
   
Line 31: Line 29:
 
Parameters:
 
Parameters:
 
* '''year''' (required)
 
* '''year''' (required)
* '''month''': The month ''number''
+
* '''month''': (required) The month ''number''
 
* '''day'''
 
* '''day'''
 
* '''hour'''
 
* '''hour'''

Revision as of 17:06, 10 March 2015

Usage

Full parameter list:

{{date|<year>|<month>|<day>|<hour>|<minute>|<second>|abbr=<abbr>}}

Parameters:

  • year (required)
  • month: (required) The month number
  • day
  • hour
  • minute
  • second
  • abbr: Use "true" to use the abbreviated month name instead of the full length