Template:Time/doc

From Ring of Brodgar
Jump to navigation Jump to search
General call format.
{{Time|<case-type>|<Time-data>...}}


Where <case-type> can be:

  • "G": Game time.
  • "R": Real time.
  • "G&R": Game to Real time.
  • "G&Rhm": +Real time output in Hours & Minutes only.
  • "R&G": Real to Game time.
  • "D": Special time-duration case.
  • "WD": Special World-duration case.


Usage examples

G and R
{{Time|G|12345}} => Game: 8d 13h 45m  - Minutes only input.
{{Time|R|12345}} => Real: 8d 13h 45m  - Minutes only input.
The G and R cases only differ effectively in there leading text.
G&R - Game and Real time. Input in Game time. Output in Days, Hours & Minutes.
{{Time|G&R|12345}} => Game: 8d 13h 45m (Real: 2d 14h 32m ) - Minutes only input.
{{Time|G&R|205|45}} => Game: 8d 13h 45m (Real: 2d 14h 32m ) - Hours and Minutes input.
{{Time|G&R|8|13|45}} => Game: 8d 13h 45m (Real: 2d 14h 32m ) - Separate Days, Hours, Minutes input.
G&Rhm- Game and Real time. Real time output in Hours & Minutes only.
{{Time|G&Rhm|12345}} => Game: 8d 13h 45m (Real: 62h 32m) - Minutes only input.
{{Time|G&Rhm|205|45}} => Game: 8d 13h 45m (Real: 62h 32m) - Hours and Minutes input.
{{Time|G&Rhm|8|13|45}} => Game: 8d 13h 45m (Real: 62h 32m) - Separate Days, Hours, Minutes input.
R&G - Game and Real time. Input in Real time.
{{Time|R&G|12345}} => Real: 8d 13h 45m (Game: 28d 4h 55m ) - Minutes only input.
{{Time|R&G|205|45}} => Real: 8d 13h 45m (Game: 28d 4h 55m ) - Hours and Minutes input.
{{Time|R&G|8|13|45}} => Real: 8d 13h 45m (Game: 28d 4h 55m ) - Separate Days, Hours, Minutes input.
D
{{Time|D|<start-date>|<end-date>}}
{{Time|D|2001.01.01|2001.02.01}} => 31 days 
{{Time|D|2001.01.01|2002.01.02}} => 1 year 1 day 
{{Time|D|2001.01.01|2011.12.31}} => 10 years 364 days 
Input-dates here can be in "yyyy.mm.dd" or "yyyymmdd" (the general default) format.
WD
{{Time|WD|<world-nr>}}
{{Time|WD|10}} => 2 years 25 days  - ...