Difference between revisions of "Template:Editnotice/notice"

From blackwiki
Jump to navigation Jump to search
imported>Jackmcbarn
(Undid revision 970832365 by Jackmcbarn (talk))
imported>Jackmcbarn
(try that again, this time without somehow nuking most of the content)
 
Line 6: Line 6:
 
   | #default = editnotice
 
   | #default = editnotice
 
}} {{#switch:{{lc:{{{expiry|¬}}}}}
 
}} {{#switch:{{lc:{{{expiry|¬}}}}}
  |infinite|never
 
 
   |indefinite = is set never to expire
 
   |indefinite = is set never to expire
 
   |
 
   |
 
   |¬          = does not have an expiry time set
 
   |¬          = does not have an expiry time set
 
   |#default  = {{#iferror:{{#time:U|{{{expiry}}}}}
 
   |#default  = {{#iferror:{{#time:U|{{{expiry}}}}}
   |{{error|has an invalid expiry time}}
+
   |{{error|has an invalid expiry time[[Category:Editnotices with invalid expirations]]}}
 
   |{{#ifexpr:{{#time:U|{{{expiry}}}}}>{{#time:U|{{CURRENTTIMESTAMP}}}}
 
   |{{#ifexpr:{{#time:U|{{{expiry}}}}}>{{#time:U|{{CURRENTTIMESTAMP}}}}
 
     |will expire {{#time:H:i, j F Y|{{{expiry}}}}} (UTC)
 
     |will expire {{#time:H:i, j F Y|{{{expiry}}}}} (UTC)

Latest revision as of 17:51, 2 August 2020

Template documentation[view] [edit] [history] [purge]

Called from {{Editnotice}}. For more details, see {{Editnotice/doc}}.