7,850
edits
No edit summary |
(fixing a typo.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifexpr: {{{4}}} > {{{2}}} and {{{1}}} != {{{3}}}|{{#expr:({{{1}}} - 1 - {{{3}}})}}y {{#expr:({{{2}}}+ 12 - {{{4}}})}}m|{{#expr:({{{1}}} - {{{3}}) | <includeonly>{{#ifexpr: {{{4}}} > {{{2}}} and {{{1}}} != {{{3}}}|{{#expr:({{{1}}} - 1 - {{{3}}})}}y {{#expr:({{{2}}}+ 12 - {{{4}}})}}m|{{#expr:({{{1}}} - {{{3}}})}}y {{#expr:({{{2}}}- {{{4}}})}}m}}</includeonly><noinclude> | ||
This calculates the span between two stardates. Used as such:<br> | This calculates the span between two stardates. Used as such:<br> | ||
<nowiki>{{StardateLifespan|2370|3|2369|8}}</nowiki> with the sequence being date 2 (year, month) and date 1 (year, month).<br> | <nowiki>{{StardateLifespan|2370|3|2369|8}}</nowiki> with the sequence being date 2 (year, month) and date 1 (year, month).<br> | ||
<br> | <br> | ||
This will produce:{{StardateLifespan|2370|3|2369|8}} </noinclude> | This will produce:{{StardateLifespan|2370|3|2369|8}} </noinclude> |