Template:Editnotice: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Woody |
meta>Amalthea try and restore expiration code, with fixed space ... |
||
Line 1: | Line 1: | ||
{{ | {{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices | ||
| | |{{notice|The following editnotice ''{{#switch:{{{expiry|¬}}} | ||
|indefinite = is set to never expire | |||
| | |||
|¬ = 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 | ||
|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 --> | |||
}} | |||
}} | |||
}} | }} | ||
|text = {{#if:{{{header|}}} | |{{fmbox | ||
|type = editnotice | |||
|id = {{{id|}}} | |||
|textstyle = {{{textstyle|}}} | |||
|style = {{{style|}}} | |||
|image = {{#if:{{{image|}}} | |||
|{{image|{{{image}}}|40x40px}} | |||
|none | |||
}} | |||
|imageright= {{#if:{{{imageright|}}} | |||
|{{image|{{{imageright}}}|40x40px}} | |||
}} | |||
|text = {{#if:{{{header|}}} | |||
|<dl><dt style="{{{headerstyle|}}}">{{{header}}}</dt></dl> | |||
}} | |||
{{{text|{{{1}}}}}} | |||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |