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)
 
(Adding emphasis)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
{{editnotice
|{{Editnotice/notice
| id = woahtherehelp
  |expiry={{{expiry|¬}}}
| header = '''WOAH THERE!'''
}}
| headerstyle = font-size: 150%;
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
| text = <br><big><big>You are editing a help page.</big><br><br><span style="color:red">'''If you press "''Save page''", your changes WILL be publicly viewable immediately!'''</span></big>
  |1
| textstyle = font-size: 120%;
  |0
| image =
}}+{{#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>

Latest revision as of 21:40, 9 June 2014