Difference between revisions of "Template:Age switch"

(Creation (as this is needed))
 
m (Text replacement - "{{/doc}}" to "{{Documentation}}")
 
Line 1: Line 1:
 
{{#iferror:{{#time:U|{{{d}}} }}|-1|{{#ifexpr:{{#time:U|{{{d}}} }}<={{#time:U|{{CURRENTTIMESTAMP}}-{{#if:{{{age|}}}|<!-- The following #iferror: retains compatibility for previous code -->{{#iferror:{{#time:U|{{{age|}}} }}|{{{age|}}} seconds|{{{age|}}} }}|604800 seconds}} }}|1|0}}}}<!--
 
{{#iferror:{{#time:U|{{{d}}} }}|-1|{{#ifexpr:{{#time:U|{{{d}}} }}<={{#time:U|{{CURRENTTIMESTAMP}}-{{#if:{{{age|}}}|<!-- The following #iferror: retains compatibility for previous code -->{{#iferror:{{#time:U|{{{age|}}} }}|{{{age|}}} seconds|{{{age|}}} }}|604800 seconds}} }}|1|0}}}}<!--
 
--><noinclude>
 
--><noinclude>
{{/doc}}
+
{{Documentation}}
 
<!-- Add categories to the /doc subpage, please, not here! -->
 
<!-- Add categories to the /doc subpage, please, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 16:18, 2 March 2023

-1