Stampa:Countdown

Nga Wikilajme, burimi i lirë i lajmeve që ju mund të shkruani!
Jump to navigation Jump to search

5 days ago }}} 1, 2007 - 1 month}}|06|-25|6}}

|5 days ago

|Today }} -->


Countdown to date[redakto]

  • Only works if date in future
  • Calculates days until an event happens. Takes one unnamed parameter, which is day that event happens. {{Countdown|30}} should countdown the number of days t'll the 30th of the month. If no argument is given, should count how many days ago the month started (Doesn't quite work yet)
  • Optional parameter month=. will calculate date taking into account what month if month equals the current month, or the next month. Month in format of name or number

Bugs[redakto]

  • If today is the day its supposed to count to, it doesn't work as supposed to Fixed by putting in outermost else. Don't know why innermost didn't work.
  • Doesn't whine about invalid dates
  • Month pram only works for current and next month
Comment This template contains one or more optional parameters: see the talk page for details.

This template employs some extremely complicated and esoteric features of template syntax. Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair any consequent collateral damage if the results are unexpected. Any experiments should be conducted via the template sandbox or your user space. Well, its a little more simplified now.