Template:Zaishen forecast/Bounty/next

From GuildWiki
< Template:Zaishen forecast/Bounty
Revision as of 01:38, 13 March 2012 by JonTheMon (talk | contribs) (Something changed in #sub, but this seems to be the fix.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

This template calculates how many days there are from a given date until a Zaishen Bounty challenge will next be offered. The challenge is, by default, the PAGENAME, and the date is today (so if the challenge is offered today, 0 is returned).

The template was written for Zaishen Bounty/Schedule.

Examples

* {{Zaishen forecast/Bounty/next|Rotscale}} 
* {{#time: d M|+{{Zaishen forecast/Bounty/next|Rotscale}}day}}
* {{Zaishen forecast/Bounty/next|Rotscale|date=22 Oct 2009 17:00}}
----
* {{Zaishen forecast/Bounty/next|{{#sub:{{Zaishen forecast/Bounty}}|2|9}}}}
* {{#expr:1+{{Zaishen forecast/Bounty/next|{{#sub:{{Zaishen forecast/Bounty}}|2|9}}|date=+1day}}}}
* {{#time: d M|+{{#expr:1+{{Zaishen forecast/Bounty/next|{{#sub:{{Zaishen forecast/Bounty}}|2|9}}|date=+1day}}}}day}}
  • Expression error: Unexpected < operator.days until Rotscale is next offered
  • Error: Invalid time.date when Rotscale is next offered
  • Expression error: Unexpected < operator.same, but counting from October 22

  • Expression error: Unexpected < operator.0 because Harn and Maxine Coldstone is today's item
  • Expression error: Unexpected < operator.looking for today's quest, starting tomorrow and adding 1, we find out how many days until it is next offered
  • Error: Invalid time.date when Harn and Maxine Coldstone is up next