Template:Time: Difference between revisions
From Melvor Idle
(Template inclusion inside of a numbered (and possibly bulleted?) list item, e.g. on the Cartography page under Creating Maps, causes a break in the list. Removing newlines as a possible fix.) |
(Use module instead of template. Template would become too verbose to get the same functionality as the module) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly | <onlyinclude><includeonly>{{#invoke:Time|secondsToHuman|{{{1|}}}}}</includeonly></onlyinclude><noinclude>{{/doc}}</noinclude> |
Latest revision as of 20:53, 13 April 2024
Takes in a number of seconds and converts it into "X days, X hours, X minutes, X seconds"
For example, {{Time|900135}}
becomes 10 days, 10 hours, 2 minutes, 15.00 seconds