Difference between revisions of "Template:Currenttime/doc"
Jump to navigation
Jump to search
imported>Eric Kvaalen (Clarified some things and modified the description of the reference line to reflect a change I made to the template, since it wasn't working.) |
imported>PrimeHunter (comment out description of category the template has not added for a long time, add example) |
||
| Line 2: | Line 2: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
==Notice== | ==Notice== | ||
| − | This template will add a link to the articles within UTC. Specifically it will also categorize articles into their corresponding time zone category. (ex.: [[:Category:UTC+0]] or [[:Category:UTC-5]]). In turn these will need to be added to [[:Category:Time zones]]. This [[Wikipedia:Template|template]] is a partial [[Wikipedia:Avoid self-references|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. | + | <!-- The following was commented out 23 March 2015 where the template had not done it for a long time. |
| + | This template will add a link to the articles within UTC. Specifically it will also categorize articles into their corresponding time zone category. (ex.: [[:Category:UTC+0]] or [[:Category:UTC-5]]). In turn these will need to be added to [[:Category:Time zones]]. --> | ||
| + | This [[Wikipedia:Template|template]] is a partial [[Wikipedia:Avoid self-references|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. | ||
<!-- We need to add this to the template like the do at template:afd --> | <!-- We need to add this to the template like the do at template:afd --> | ||
| Line 18: | 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 /> | ||
| + | This produces: {{currenttime|place=Paris|+1|Europe}} | ||
See also: [[Wikipedia:WikiProject Current Local City Time]] | See also: [[Wikipedia:WikiProject Current Local City Time]] | ||
| + | <references /> | ||
<includeonly> | <includeonly> | ||
Revision as of 16:25, 23 March 2015
| 40px | This is a documentation subpage for Template:Currenttime. It contains usage information, categories and other content that is not part of the original template page. |
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|+1|Europe}}
This produces:
See also: Wikipedia:WikiProject Current Local City Time
- ↑ Calculated using Wikimedia Foundation Inc.. For more information see WP:CCT. To update time Script error: No such module "Purge"..