Difference between revisions of "Template:GW2clock"

From Basin Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>This template adds a clock and a countdown timer to a page (themed around Guild Wars 2). It's possible to adapt it to other themes or uses. <pre style="float: left...")
 
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
* '''countdown offset:''' positive integer that adjusts the countdown (dailies) display
 
* '''countdown offset:''' positive integer that adjusts the countdown (dailies) display
  
 +
Current version allows only one clock and/or one timer per page.
  
 
[[Category:Templates (Guild Wars 2)]]
 
[[Category:Templates (Guild Wars 2)]]
</noinclude><div style="float: right; position: relative; width: 489px;">
+
</noinclude><div style="float: right; position: relative; width: 489px; color: #ecf4e5;">
 
[[File:SBI background.jpg|link=]]
 
[[File:SBI background.jpg|link=]]
<div style="position: absolute; top: 86px; left: 289px; border: 1px solid #131c1b;">[[File:Transp rect.png|link=]]</div>
+
<div class="gw2clockbox" style="position: absolute; top: 86px; left: 289px;">Server Time <span id="ServerTime" style="font: 1.4em sans-serif;"></span></div>
<div style="position: absolute; top: 158px; left: 289px; border: 1px solid #131c1b;">[[File:Transp rect.png|link=]]</div>
+
<div class="gw2clockbox" style="position: absolute; top: 158px; left: 289px;">Dailies Reset in: <span id="CountdownTimer" style="font: 1.4em sans-serif;"></span></div>
<span style="position: absolute; top: 87px; left: 319px; color: #ecf4e5; font: small-caps 1.8em serif; letter-spacing:1px;">Server Time</span>
+
<span id="soffset" style="display: none;">{{{clock offset|0}}}</span><span id="cdoffset" style="display: none;">{{{countdown offset|0}}}</span></div>
<span style="position: absolute; top: 160px; left: 310px; color: #ecf4e5; font: small-caps 1.5em serif; letter-spacing:1px;">Dailies Reset in:</span>
 
<span id="soffset" style="display: none;">{{{clock offset|0}}}</span><span id="ServerTime" style="position: absolute; top: 110px; left: 319px; color: #ecf4e5; font: 2.7em sans-serif;"></span>
 
<span id="cdoffset" style="display: none;">{{{countdown offset|0}}}</span><span id="CountdownTimer" style="position: absolute; top: 181px; left: 319px; color: #ecf4e5; font: 2.7em sans-serif;"></span>
 
</div>
 

Latest revision as of 23:48, 1 January 2013

This template adds a clock and a countdown timer to a page (themed around Guild Wars 2). It's possible to adapt it to other themes or uses.

{{GW2clock
|clock offset = 
|countdown offset = 
}}


Usage:

  • clock offset: positive integer that adjusts the Server Time display
  • countdown offset: positive integer that adjusts the countdown (dailies) display

Current version allows only one clock and/or one timer per page.

SBI background.jpg

Server Time
Dailies Reset in: