Difference between revisions of "Template:Currenttime/doc"

From blackwiki
Jump to navigation Jump to search
imported>PrimeHunter
(comment out description of category the template has not added for a long time, add example)
imported>PrimeHunter
(fix example)
Line 20: Line 20:
 
  |dst=      ''System used for observing [[Daylight saving time]], can be '''Europe''' or '''North America''' or '''none'''. Default value is '''none'''.''
 
  |dst=      ''System used for observing [[Daylight saving time]], can be '''Europe''' or '''North America''' or '''none'''. Default value is '''none'''.''
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
Example: <code><nowiki>{{currenttime|place=Paris|+1|Europe}}</nowiki></code><br />
+
Example: <code><nowiki>{{currenttime|place=Paris|offset=+1|dst=Europe}}</nowiki></code><br />
This produces: {{currenttime|place=Paris|+1|Europe}}
+
This produces: {{currenttime|place=Paris|offset=+1|dst=Europe}}
  
 
See also: [[Wikipedia:WikiProject Current Local City Time]]
 
See also: [[Wikipedia:WikiProject Current Local City Time]]

Revision as of 16:26, 23 March 2015

Notice

This template is a partial self-reference because it uses an equation to calculate the date and time. However, this date and time is easily verifiable and so is part of the encyclopedic content.


If you wish for the reference to appear this template should be substituted onto pages it appears on, or else a red error message will appear.

This template must be substituted. Replace {{Currenttime with {{subst:Currenttime.

The template makes a footnote reference stating: Calculated using Wikimedia Foundation Inc.. For more information see WP:CCT. To update time purge page cache.

Usage

{{currenttime
|place=    Place name, e.g. Paris. Used in the display, not in the calculation. Default value is {{PAGENAME}}.
|offset=   Time offset, in hours, e.g. +1 or 0 or -14 or +7.5. Default value is 0.
|dst=      System used for observing Daylight saving time, can be Europe or North America or none. Default value is none.
}}

Example: {{currenttime|place=Paris|offset=+1|dst=Europe}}

This produces:

See also: Wikipedia:WikiProject Current Local City Time

  1. Calculated using Wikimedia Foundation Inc.. For more information see WP:CCT. To update time Script error: No such module "Purge"..