Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Dateahead: Difference between revisions

Template page
Shane (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
wikitable id
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if: {{{2|}}}
| {{JDtoGreg|{{#expr:{{{1}}}+{{{2}}}}}}}
| Error on call {{tl|dateahead}}: Parameter #2 ''must'' be specified.
}}</includeonly><noinclude>


{{JDtoGreg|{{#expr:{{{1}}}+{{{2|0.25}}}}}}}
; Days Ahead
* The value can be anything. Use the table below to figure out "Values".


<big>Today is {{CURRENTDAYNAME}}, {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} it is now {{CURRENTTIME}} (UTC)</big>
{| class="wikitable sortable"
! Time Ahead
!
! Point Percentage
|-
! ~1 Day
|
| align="center" | 1.0
|-
! ~2 Day
|
| align="center" | 2.0
|-
! ~3 Day
|
| align="center" | 3.0
|-
! ~4 Day
|
| align="center" | 4.0
|-
! ~5 Day
|
| align="center" | 5.0
|-
! ~6 Day
|
| align="center" | 6.0
|}


<small>Time since last refreshment: {{floor|({{JD}}-{{{1}}})*24}} hours.
{| class="wikitable sortable"
Minimum time to next refreshment: {{max|0|6-{{floor|({{JD}}-{{{1}}})*24}}}} hours.</small>
! Time Ahead
!
! Point Percentage
|-
! ~1 Hour
|
| align="center" | {{#expr: 1/24 round 2}}
|-
! ~2 Hour
|
| align="center" | {{#expr: 2/24 round 2}}
|-
! ~3 Hour
|
| align="center" | {{#expr: 3/24 round 2}}
|-
! ~4 Hour
|
| align="center" | {{#expr: 4/24 round 2}}
|-
! ~5 Hour
|
| align="center" | {{#expr: 5/24 round 2}}
|-
! 6 Hour
|
| align="center" | {{#expr: 6/24 round 2}}
|}


<small>To update this refresh clock to the current time use: {{tlp|dateahead|{{JD}} {{#if:{{{2|}}}|&#125;{{{2}}}}} }}</small>
[[Category:Date/Time Related Templates|Dateahead]]
 
</includeonly><noinclude>
{{dateahead|{{JD}}}}
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 05:53, 9 January 2021


Days Ahead
  • The value can be anything. Use the table below to figure out "Values".
Time Ahead Point Percentage
~1 Day 1.0
~2 Day 2.0
~3 Day 3.0
~4 Day 4.0
~5 Day 5.0
~6 Day 6.0
Time Ahead Point Percentage
~1 Hour 0.04
~2 Hour 0.08
~3 Hour 0.13
~4 Hour 0.17
~5 Hour 0.21
6 Hour 0.25