MediaWiki:Editnotice-12: Difference between revisions

From airraidsirens.net, the Internet's premiere site for siren information and discussion
Jump to navigation Jump to search
(Copying code from en.wikipedia)
 
(Wrong page)
Line 1: Line 1:
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
 
|{{Editnotice/notice
  |expiry={{{expiry|¬}}}
}}
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
  |1
  |0
}}+{{#switch:{{{expiry|¬}}}
  |indefinite = 1
  |
  |¬          = 1 <!-- Expiry not specified -->
  |#default  = {{#iferror:{{#time:U|{{{expiry}}}}}
  |0 <!-- Invalid expiry time -->
  |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
    |1 <!-- Notice current -->
    |0 <!-- Notice expired -->
  }}
  }}
}}
|{{fmbox
  |type      = editnotice
  |id        = {{{id|}}}
  |textstyle = {{{textstyle|}}}
  |style    = {{{style|}}}
  |class    = {{{class|}}}
  |image    = {{#if:{{{image|}}}
  |{{image|{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}
  |none
  }}
  |imageright= {{#if:{{{imageright|}}}
  |{{image|{{{imageright}}}|{{#if:{{{imagerightsize|}}}|{{{imagerightsize}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}}}
  }}
  |text      = {{#if:{{{header|}}}
  |<dl><dt style="{{{headerstyle|}}}">{{{header}}}</dt></dl>
  }}
{{{text|{{{1}}}}}}
}}
}}<includeonly>{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotice|{{#iferror:{{#time:U|{{{expiry}}}}}
  | <!-- Invalid expiry time -->
  |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
    | <!-- Notice current -->
    |[[Category:Expired editnotice]] <!-- Notice expired -->
  }}}}}}</includeonly>

Revision as of 21:28, 9 June 2014