Template:TimeID: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
(Created template) |
m (Condensing) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#vardefine:NumItems|{{{1|}}}}}{{#vardefine:Interval|{{{2|1}}}}}{{#vardefine:ItemsInterval|{{#expr:{{#var:NumItems}}*{{#var:Interval}}}}}} | <includeonly><onlyinclude>{{#vardefine:NumItems|{{{1|}}}}}{{#vardefine:Interval|{{{2|1}}}}}{{#vardefine:ItemsInterval|{{#expr:{{#var:NumItems}}*{{#var:Interval}}}}}}{{#expr:ceil(({{#var:ItemsInterval}}-({{AgeDays|October|22|2011}} mod {{#var:ItemsInterval}}))/{{#var:Interval}})}}</onlyinclude></includeonly> | ||
==Purpose== | ==Purpose== |
Latest revision as of 14:25, February 7, 2016
Purpose
This template calculates an ID number meant to cycle through a list of items over a period of time with a specified time interval, measured in days, between them. This only provides the ID number, it does not directly cycle through the content.
Usage
To use this template for a past date and today's date, type:
{{TimeID| Number of Items | Time Interval }}
- Number of Items — Number of items to cycle through.
- Time Interval — Time interval, in days, between each item, defaults to one day if left blank (Optional. Default: 1)