Template:Stardate: Difference between revisions

From Star Trek Equilism
m (updated stardate calculation)
m (Added leap year calculation)
Line 1: Line 1:
<div style="border:1px solid #000000; border-top: none; border-right: none; background: #444444; text-align: center; padding: 2px; padding-top: 0px; float: right; position: absolute; right: 0; top: 80px; font-size: smaller; line-height: 1.4; width: 65px;">
<div style="border:1px solid #000000; border-top: none; border-right: none; background: #444444; text-align: center; padding: 2px; padding-top: 0px; float: right; position: absolute; right: 0; top: 80px; font-size: smaller; line-height: 1.4; width: 65px;">
<div style="background: #000000; color: #FFFFFF; padding: 1px;">'''Stardate'''</div><div style="width: 100%;"> '''<font color=white>{{#expr:{{LOCALYEAR}}-1945}}{{#expr:{{#time: z}}/365*1000 round 1}}</font>'''</div>
<div style="background: #000000; color: #FFFFFF; padding: 1px;">'''Stardate'''</div><div style="width: 100%;"> '''<font color=white>{{#expr:{{LOCALYEAR}}-1945}}{{#expr:{{#time: z}}/365.25*1000 round 1}}</font>'''</div>
</div>
</div>
<div style="border:1px solid #000000; border-top: none; border-right: none; background: #444444; text-align: center; padding: 2px; padding-top: 0px; float: right; position: absolute; right: 70px; top: 80px; font-size: smaller; line-height: 1.4; width: 65px;">
<div style="border:1px solid #000000; border-top: none; border-right: none; background: #444444; text-align: center; padding: 2px; padding-top: 0px; float: right; position: absolute; right: 70px; top: 80px; font-size: smaller; line-height: 1.4; width: 65px;">
<div style="background: #000000; color: #FFFFFF; padding: 1px;">'''Year'''</div><div style="width: 100%;"> '''<font color=white>{{#expr:{{LOCALYEAR}}+378}}</font>'''</div>
<div style="background: #000000; color: #FFFFFF; padding: 1px;">'''Year'''</div><div style="width: 100%;"> '''<font color=white>{{#expr:{{LOCALYEAR}}+378}}</font>'''</div>
</div>
</div>

Revision as of 10:05, 21 July 2023

Stardate
79892.5
Year
2402