Template:Editnotice: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MZMcBride
(minor code fix)
m (45 revisions imported)
 
(38 intermediate revisions by 19 users not shown)
Line 1: Line 1:
<div id="talkpagetext" class="plainlinks metadata" style="margin: 0 0 1em; padding: .5em 1em; vertical-align: middle; border:1px solid #AAA;">
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
{| style="background:transparent; margin:auto; width:100%;"
|{{Editnotice/notice
{{#if:{{{header|}}}|
  |expiry={{{expiry|¬}}}
! colspan="{{#if:{{{image|}}}|2|1}}" style="{{{headerstyle|}}}" {{!}} {{{header}}}
  |redirect={{{redirect|}}}
{{!}}-
}}
}}
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
{{#if:{{{image|}}}|
  |1
{{!}} [[Image:{{{image|}}}|25px]] }}
  |0
| style="{{{textstyle|}}}" | {{{text|{{{1}}}}}}
}}+{{#switch:{{{expiry|¬}}}
|}
  |indefinite = 1
</div><noinclude>
  |
{{pp-template|small=yes}}
  |¬          = 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      = {{{type|editnotice}}}
  |id        = {{{id|}}}
  |textstyle = {{{textstyle|}}}
  |style    = {{{style|}}}
  |class    = {{{class|}}}
  |image    = {{#if:{{{image|}}}
  |{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{{imagesize|}}}|sizedefault=40x40px}}
  |none
  }}
  |imageright= {{#if:{{{imageright|}}}
  |{{#invoke:InfoboxImage|InfoboxImage|image={{{imageright}}}|size={{{imagerightsize|}}}|sizedefault=40x40px}}
  }}
  |text      = {{#if:{{{header|}}}
  |<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 -->
  }}
  }}
}}
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 04:33, 3 September 2020

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