Difference between revisions of "Template:CURRENTMINUTE/doc"

From blackwiki
Jump to navigation Jump to search
imported>Daemorris
m
imported>Amalthea
(Uses safesubst: (meta:Help:Safesubst))
Line 4: Line 4:
 
This template extracts the current integer minute on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server).
 
This template extracts the current integer minute on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server).
 
The shown value should match the right hand side of {{CURRENTTIME}}.
 
The shown value should match the right hand side of {{CURRENTTIME}}.
 +
 +
This template can be substituted.
 
; Syntax:
 
; Syntax:
 
: <nowiki>{{</nowiki>CURRENTMINUTE<nowiki>}}</nowiki>
 
: <nowiki>{{</nowiki>CURRENTMINUTE<nowiki>}}</nowiki>
: Use {&#123;subst:CURRENTMINUTE|subst=subst:&#125;} to substitute the current minute.
+
: Use {&#123;subst:CURRENTMINUTE&#125;} to substitute the current minute.
: Use {&#123;subst:CURRENTMINUTE&#125;} to copy the code in a form that is ready for [[Help:Substitution#Optional substitution|optional substitution]] in another template.
+
: Use {&#123;subst:CURRENTMINUTE|=&#125;} to copy the code in a form that is ready for [[Help:Substitution#Optional substitution|optional substitution]] in another template.
 
; Warning&#58;
 
; Warning&#58;
 
: Pages asking for the current minute often also need other parts of {{evaldemo|CURRENTTIMESTAMP|&#61;}}, and different "current" templates and variables can reflect different timestamps near hh:mm:59.
 
: Pages asking for the current minute often also need other parts of {{evaldemo|CURRENTTIMESTAMP|&#61;}}, and different "current" templates and variables can reflect different timestamps near hh:mm:59.

Revision as of 13:34, 29 April 2010

This template extracts the current integer minute on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server). The shown value should match the right hand side of 14:20.

This template can be substituted.

Syntax:
{{CURRENTMINUTE}}
Use {{subst:CURRENTMINUTE}} to substitute the current minute.
Use {{subst:CURRENTMINUTE|=}} to copy the code in a form that is ready for optional substitution in another template.
Warning:
Pages asking for the current minute often also need other parts of {{CURRENTTIMESTAMP}} = 20260624142023, and different "current" templates and variables can reflect different timestamps near hh:mm:59.