Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Days/Documentation: Difference between revisions

(Created page with "<includeonly>Category:Time Template</includeonly> {{Template|Days}} is used to determine how old something is in days. ==Usage== It has one {{Parameter|mandatory}} and accepts one {{Parameter|optional}}, both of which are dates. The built-in MediaWiki functions it relies on should be fairly robust, but the preferred format is: {{Code|yyyy/mm/dd}}. # is the date of the event in question. # is the date measured from; it defaults to the contents of Game Date. ==Retu...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{Template|Days}} is used to determine how old something is in days.
{{Template|Days}} is used to determine how old something is in days.
==Usage==
==Usage==
It has one {{Parameter|mandatory}} and accepts one {{Parameter|optional}}, both of which are dates. The built-in MediaWiki functions it relies on should be fairly robust, but the preferred format is: {{Code|yyyy/mm/dd}}.
It has two {{Parameter|optional}}, both of which are dates. The built-in MediaWiki functions it relies on should be fairly robust, but the preferred format is: {{Code|yyyy/mm/dd}}.
# is the date of the event in question.
# is the date of the event in question, it defaults to the [[Game Date]]
# is the date measured from; it defaults to the contents of [[Game Date]].
# is the date measured from; it defaults to the first day of the shutdown, {{Code|2059/12/19}}
 
==Returns==
==Returns==
{{Code|<nowiki>{{Days}}</nowiki>}} returns: {{Return|{{Days}}}}
{{Code|<nowiki>{{Days|1979/11/05}}</nowiki>}} returns: {{Return|{{Days|1979/11/05}}}}
{{Code|<nowiki>{{Days|1979/11/05}}</nowiki>}} returns: {{Return|{{Days|1979/11/05}}}}
{{Code|<nowiki>{{Days|1979/11/05|</nowiki>{{#time:Y/m/d|{{CURRENTTIMESTAMP}}}}<nowiki>}}</nowiki>}} returns: {{Return|{{Days|1979/11/05|{{#time:Y/m/d|{{CURRENTTIMESTAMP}}}}}}}}
{{Code|<nowiki>{{Days|1979/11/05|</nowiki>{{#time:Y/m/d|{{CURRENTTIMESTAMP}}}}<nowiki>}}</nowiki>}} returns: {{Return|{{Days|1979/11/05|{{#time:Y/m/d|{{CURRENTTIMESTAMP}}}}}}}}

Latest revision as of 16:19, 25 January 2024

Template:Days is used to determine how old something is in days.

Usage

It has two optional parameter, both of which are dates. The built-in MediaWiki functions it relies on should be fairly robust, but the preferred format is: yyyy/mm/dd.

  1. is the date of the event in question, it defaults to the Game Date
  2. is the date measured from; it defaults to the first day of the shutdown, 2059/12/19

Returns

{{Days}} returns:

149

{{Days|1979/11/05}} returns:

29413

{{Days|1979/11/05|2026/06/04}} returns:

17014