Template:Editnotice: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
(add support for expiry dates on edit notices)
m (45 revisions imported)
 
(24 intermediate revisions by 13 users not shown)
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|¬}}}
  |
  |redirect={{{redirect|}}}
  |¬          = 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
Line 29: Line 20:
  }}
  }}
  |{{fmbox
  |{{fmbox
   |type      = editnotice
   |type      = {{{type|editnotice}}}
   |id        = {{{id|}}}
   |id        = {{{id|}}}
   |textstyle = {{{textstyle|}}}
   |textstyle = {{{textstyle|}}}
   |style    = {{{style|}}}
   |style    = {{{style|}}}
  |class    = {{{class|}}}
   |image    = {{#if:{{{image|}}}
   |image    = {{#if:{{{image|}}}
   |{{image|{{{image}}}|40x40px}}
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{{imagesize|}}}|sizedefault=40x40px}}
   |none
   |none
   }}
   }}
   |imageright= {{#if:{{{imageright|}}}
   |imageright= {{#if:{{{imageright|}}}
   |{{image|{{{imageright}}}|40x40px}}
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{imageright}}}|size={{{imagerightsize|}}}|sizedefault=40x40px}}
   }}
   }}
   |text      = {{#if:{{{header|}}}
   |text      = {{#if:{{{header|}}}
   |<dl><dt style="{{{headerstyle|}}}">{{{header}}}</dt></dl>
   |<div style="font-weight: bold; {{{headerstyle|}}}">{{{header}}}</div>
  }}
{{{text|{{{1}}}}}}
}}
}}{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices|{{#switch:{{{expiry|¬}}}
  |indefinite
  |
  |¬          = <!-- Expiry not specified -->
  |#default  = {{#iferror:{{#time:U|{{{expiry}}}}}
  | <!-- Invalid expiry time -->
  |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
    | <!-- Notice current -->
    |[[Category:Expired editnotices]] <!-- Notice expired -->
  }}
   }}
   }}
{{{text|{{{1}}}}}}
  }}
  }}
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 04:33, 3 September 2020

Page Module:Message box/fmbox.css has no content.