Template:Stardate: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
m (Protected "Template:Stardate" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(No difference)

Revision as of 20:48, 30 April 2016

This template will automatically convert a arbitrary date to the one used inside UFOP, as outlined Here. If no date is passed to it, it will default to the current date.

How to use

To calculate the current Stardate (Note: This will change with time)
{{stardate}}

To calculate a arbitrary Stardate
{{stardate|Year|Month|Day}}

NB. Notice that you DO add leading zeros for the month or day if it is a single digit.

Examples

James was assigned to the USS Drake on the 7th February, 2013. To convert this to UFOP time you would use:
{{stardate|2013|02|07}}
Which would output: 239002.07


I want to put a continually updating clock in UFOP time on a page. I would use
{{stardate}}
Which would output: 240111.22

If you have any questions, or spot an error, please contact James