Difference between revisions of "Template:Editnotice"

From Timelines
Jump to: navigation, search
(try and restore expiration code, with fixed space ...)
m (move notice to /notice subtemplate)
Line 1: Line 1:
 
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
 
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
  |{{notice|The following editnotice ''{{#switch:{{{expiry|¬}}}
+
  |{{Editnotice/notice
  |indefinite = is set to never expire
+
  |expiry={{{expiry|¬}}}
  |
 
  |¬          = does not have an expiry time set
 
  |#default  = {{#iferror:{{#time:U|{{{expiry}}}}}
 
    |has an invalid expiry time
 
    |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
 
    |will expire {{{expiry}}}
 
    |expired {{{expiry}}}
 
    }}
 
  }}
 
  }}''. To adjust this setting, please update the {{para|expiry}} parameter.
 
 
  }}
 
  }}
 
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
 
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices

Revision as of 08:11, 28 January 2011

Template documentation[create]