Template:Photosynthesis: Difference between revisions

From Infinite Nomic Wiki
miraheze>Nyhilo
Create first version of timestamp parsing logic
 
miraheze>Nyhilo
Update for simpler string parsing (does not account for leading zeros)
Line 1: Line 1:
{{#ifeq:  
{{#ifeq:  
   | {{#expr | wfTimestamp(TS_ISO_8601, {{1}}-{{2}}-{{3}}) < {{CURRENTTIMESTAMP}}
   | {{#expr | {{1}}{{2}}{{3}}000000 < {{CURRENTTIMESTAMP}}
   | 1
   | 1
   | The plant is currently in a photosynthesis cycle.
   | The plant is currently in a photosynthesis cycle.
   | The plant is not currently in a photosynthesis cycle.
   | The plant is not currently in a photosynthesis cycle.
}}
}}

Revision as of 19:33, 23 December 2021

{{#ifeq:

 | {{#expr | Template:1Template:2Template:3000000 < 20240921105810
 | 1
 | The plant is currently in a photosynthesis cycle.
 | The plant is not currently in a photosynthesis cycle.

}}