Difference between revisions of "Template:Date"

From The iPhone Wiki
Jump to: navigation, search
m
(Invert the default value of the abbr= argument (requested by User:IAdam1n))
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><!--
+
<includeonly><span class="date"><!--
   
   
Line 18: Line 18:
 
-->}}<!--
 
-->}}<!--
 
// Could {{#time:}} be used instead?
 
// Could {{#time:}} be used instead?
-->{{MONTHNAME|{{{2|}}}|abbr={{{abbr|}}}}}&nbsp;<!--
+
-->{{MONTHNAME|{{{2|}}}|abbr={{{abbr|false}}}}}&nbsp;<!--
 
-->{{{1}}}<!--
 
-->{{{1}}}<!--
   
   
 
// ZONE
 
// ZONE
-->{{#if: {{{8|}}}<!--
+
-->{{#if: {{{z|}}}<!--
-->| &nbsp;({{{8}}})<!--
+
-->| &nbsp;({{{z}}})<!--
 
-->}}<!--
 
-->}}<!--
   
   
--></includeonly><noinclude>
+
--></span></includeonly><noinclude>
 
== Usage ==
 
== Usage ==
 
Full parameter list:
 
Full parameter list:
<nowiki>{{</nowiki>date|&lt;year&gt;|&lt;month&gt;|&lt;day&gt;|&lt;hour&gt;|&lt;minute&gt;|&lt;second&gt;|&lt;zone&gt;|abbr=&lt;abbr&gt;<nowiki>}}</nowiki>
+
<nowiki>{{</nowiki>date|&lt;year&gt;|&lt;month&gt;|&lt;day&gt;|&lt;hour&gt;|&lt;minute&gt;|&lt;second&gt;|z=&lt;zone&gt;|abbr=&lt;abbr&gt;<nowiki>}}</nowiki>
   
 
Parameters:
 
Parameters:
Line 41: Line 41:
 
* '''second'''
 
* '''second'''
 
* '''zone''': Currently, all this does is append "<code>(&lt;zone&gt;)</code>" to the date, but in [http://meta.stackexchange.com/a/19514 6 to 8 weeks], this will have the date be adjusted to the timezone specified in the user's settings
 
* '''zone''': Currently, all this does is append "<code>(&lt;zone&gt;)</code>" to the date, but in [http://meta.stackexchange.com/a/19514 6 to 8 weeks], this will have the date be adjusted to the timezone specified in the user's settings
* '''abbr''': Use "<code>false</code>" to use the full month name instead of the abbreviated form
+
* '''abbr''': Use "<code>true</code>" to use the abbreviated month name instead of the full name
 
</noinclude>
 
</noinclude>

Latest revision as of 22:55, 5 September 2021

Usage

Full parameter list:

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

Parameters:

  • year (required)
  • month: (required) The month number
  • day
  • hour
  • minute
  • second
  • zone: Currently, all this does is append "(<zone>)" to the date, but in 6 to 8 weeks, this will have the date be adjusted to the timezone specified in the user's settings
  • abbr: Use "true" to use the abbreviated month name instead of the full name