Template:Editnotice: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ m move notice to /notice subtemplate |
m 45 revisions imported |
||
(21 intermediate revisions by 11 users not shown) | |||
Line 2: | Line 2: | ||
|{{Editnotice/notice | |{{Editnotice/notice | ||
|expiry={{{expiry|¬}}} | |expiry={{{expiry|¬}}} | ||
|redirect={{{redirect|}}} | |||
}} | }} | ||
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices | }}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices | ||
Line 19: | 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|{{{ | |{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{{imagesize|}}}|sizedefault=40x40px}} | ||
|none | |none | ||
}} | }} | ||
|imageright= {{#if:{{{imageright|}}} | |imageright= {{#if:{{{imageright|}}} | ||
|{{image|{{{ | |{{#invoke:InfoboxImage|InfoboxImage|image={{{imageright}}}|size={{{imagerightsize|}}}|sizedefault=40x40px}} | ||
}} | }} | ||
|text = {{#if:{{{header|}}} | |text = {{#if:{{{header|}}} | ||
|< | |<div style="font-weight: bold; {{{headerstyle|}}}">{{{header}}}</div> | ||
}} | }} | ||
{{{text|{{{1}}}}}} | {{{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> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |