Difference between revisions of "Template:Date"

From The iPhone Wiki
Jump to: navigation, search
(Created page with "<!-- WIP -->{{#if: {{{4|}}}<!-- -->| {{padleft:{{{4}}}|2|0}}:{{padleft:{{{5|00}}|2|0}}<!-- -->{{#if: {{{6|}}}<!-- -->| :{{padleft:{{{6}}}|2|0}}<!-- -->}}<!--...")
 
Line 1: Line 1:
<!--
+
<includeonly><!--
  +
WIP
 
  +
  +
// TIME
 
-->{{#if: {{{4|}}}<!--
 
-->{{#if: {{{4|}}}<!--
-->| {{padleft:{{{4}}}|2|0}}:{{padleft:{{{5|00}}|2|0}}<!--
+
-->| {{padleft:{{{4}}}|2}}:{{padleft:{{{5|00}}|2}}<!--
 
-->{{#if: {{{6|}}}<!--
 
-->{{#if: {{{6|}}}<!--
-->| :{{padleft:{{{6}}}|2|0}}<!--
+
-->| :{{padleft:{{{6}}}|2}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->&nbsp;<!--
 
-->&nbsp;<!--
-->}}
+
-->}}<!--
  +
  +
  +
// DATE
  +
-->{{#if: {{{3|}}}<!--
  +
-->| {{#expr: {{{3}}} }}&nbsp;<!--
  +
-->}}<!--
  +
-->{{#if: {{{2|}}}<!--
  +
// Could {{#time:}} be used instead?
  +
-->| {{MONTHNAME|{{{2|}}}|abbr={{{abbr|}}}}}&nbsp;<!--
  +
-->}}<!--
  +
-->{{{1}}}<!--
  +
  +
  +
--></includeonly><noinclude>
  +
= DO NOT USE =
  +
This template is not complete.
  +
== Usage ==
  +
Full parameter list:
  +
<nowiki>{{</nowiki>date|&lt;year&gt;|&lt;month&gt;|&lt;day&gt;|&lt;hour&gt;|&lt;minute&gt;|&lt;second&gt;|abbr=&lt;abbr&gt;<nowiki>}}</nowiki>
  +
  +
Parameters:
  +
* '''year''' (required)
  +
* '''month''': The month ''number''
  +
* '''day'''
  +
* '''hour'''
  +
* '''minute'''
  +
* '''second'''
  +
* '''abbr''': Use "<code>true</code>" to use the abbreviated month name instead of the full length
  +
</noinclude>

Revision as of 18:17, 26 February 2015

DO NOT USE

This template is not complete.

Usage

Full parameter list:

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

Parameters:

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