Difference between revisions of "Template:Editnotice"

From Timelines
Jump to: navigation, search
(should be fine)
(fixing in case of invalid expiry)
Line 36: Line 36:
 
{{{text|{{{1}}}}}}
 
{{{text|{{{1}}}}}}
 
  }}
 
  }}
}}<includeonly>{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotice|{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
+
}}<includeonly>{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotice|{{#iferror:{{#time:U|{{{expiry}}}}}
     |
+
  | <!-- Invalid expiry time -->
     |[[Category:Expired editnotices]]
+
  |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
 +
     | <!-- Notice current -->
 +
     |[[Category:Expired editnotice]] <!-- Notice expired -->
 
   }}}}</includeonly><noinclude>
 
   }}}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 12:26, 1 July 2013

Template documentation[create]