Difference between revisions of "Template:Current daylight saving offset documentation"

From blackwiki
Jump to navigation Jump to search
imported>Thesevenseas
(Optimised Code)
imported>MJL
 
(11 intermediate revisions by 7 users not shown)
Line 4: Line 4:
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
!colspan=3|<big>Summer Time</big><sup>{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{edit|Template:{{BASEPAGENAME}}/doc/row}} | <span class="plainlinks">[{{fullurl:Template:{{BASEPAGENAME}}/doc/row|action=edit&preload={{urlencode:Template:Current daylight saving offset documentation/Preload}}}} create]</span> }}</sup>
+
!colspan=3|<big>Summer Time</big><includeonly><sup>{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{ed|Template:{{BASEPAGENAME}}/doc/row}} | <span class="plainlinks">[{{fullurl:Template:{{BASEPAGENAME}}/doc/row|action=edit&preload={{urlencode:Template:Current daylight saving offset documentation/Preload}}}} create]</span> }}</sup></includeonly>
 
|-
 
|-
 
!Year
 
!Year
!Summer Time begins<ref>Clocks go forward, value is changed from x to x+1.</ref><br /> on
+
!Summer Time begins/ends<ref>Clocks go forward, value is changed from x to x+1.</ref><br /> on
!Summer Time ends<ref>Clocks go back, value is changed from x+1 to x.</ref><br /> on
+
!Summer Time ends/begins<ref>Clocks go back, value is changed from x+1 to x.</ref><br /> on
 
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{CURRENTYEAR}}}} | {{!}}- }}
 
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{CURRENTYEAR}}}} | {{!}}- }}
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{future year|1}}}} }}
+
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{#expr:{{CURRENTYEAR}}+1}}}} }}
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{future year|2}}}} }}
+
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{#expr:{{CURRENTYEAR}}+2}}}} }}
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{future year|3}}}} }}
+
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{#expr:{{CURRENTYEAR}}+3}}}} }}
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{future year|4}}}} }}
+
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{#expr:{{CURRENTYEAR}}+4}}}} }}
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{future year|5}}}} }}
+
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{#expr:{{CURRENTYEAR}}+5}}}} }}
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{future year|6}}}} }}
+
{{#ifexist: Template:{{BASEPAGENAME}}/doc/row | {{{{BASEPAGENAME}}/doc/row|{{#expr:{{CURRENTYEAR}}+6}}}} }}
 
|}
 
|}
 
{{{note|}}}
 
{{{note|}}}
Line 21: Line 21:
 
===Notes===
 
===Notes===
 
{{reflist}}
 
{{reflist}}
 
=== See also ===
 
*{{#ifeq: {{BASEPAGENAME}} | Current daylight saving offset in Western US and Canada || {{tl|Current daylight saving offset in Western US and Canada}} }}
 
*{{#ifeq: {{BASEPAGENAME}} | Current daylight saving offset in Europe || {{tl|Current daylight saving offset in Europe}} }}
 
*{{#ifeq: {{BASEPAGENAME}} | Current daylight saving offset in Australia || {{tl|Current daylight saving offset in Australia}} }}
 
*{{#ifeq: {{BASEPAGENAME}} | Current daylight saving offset in New Zealand || {{tl|Current daylight saving offset in New Zealand}} }}
 
  
 
<includeonly>
 
<includeonly>
 +
{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|
 
<!-- CATEGORIES HERE, THANKS -->
 
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Current daylight-saving offset templates|{{PAGENAME}}]]
 
[[Category:Current daylight-saving offset templates|{{PAGENAME}}]]
[[Category:Date mathematics templates|{{PAGENAME}}]]
+
[[Category:Date-computing templates based on current time|{{PAGENAME}}]]
  
</includeonly>
+
}}
 +
</includeonly><noinclude>
 +
[[Category:Documentation shared content templates]]
 +
</noinclude>

Latest revision as of 00:49, 17 August 2019

Usage

This template gives the current daylight saving offset documentation. The local time depends on the time zone. This template will automate the changes in daylight saving offset.

Summer Time
Year Summer Time begins/ends[1]
on
Summer Time ends/begins[2]
on


Notes

  1. Clocks go forward, value is changed from x to x+1.
  2. Clocks go back, value is changed from x+1 to x.