Template:Photosynthesis: Difference between revisions

From Infinite Nomic Wiki
miraheze>Nyhilo
Update for simpler string parsing (does not account for leading zeros)
miraheze>Nyhilo
Update template with named parameters
Line 1: Line 1:
{{#ifeq:  
{{#ifeq:  
   | {{#expr | {{1}}{{2}}{{3}}000000 < {{CURRENTTIMESTAMP}}
   | {{#expr | {{year}}{{month}}{{day}}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:36, 23 December 2021

{{#ifeq:

 | {{#expr | Template:YearTemplate:MonthTemplate:Day000000 < 20241223055419
 | 1
 | The plant is currently in a photosynthesis cycle.
 | The plant is not currently in a photosynthesis cycle.

}}