Difference between revisions of "Module:Editnotice"
Jump to navigation
Jump to search
blackwiki>Frietjes m |
m (45 revisions imported) |
||
| (6 intermediate revisions by 5 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|}}} | ||
| Line 32: | Line 33: | ||
}} | }} | ||
|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 --> | | <!-- Invalid expiry time --> | ||
|{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 | |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 | ||
| <!-- Notice current --> | | <!-- Notice current --> | ||
| − | |[[Category:Expired | + | |[[Category:Expired editnotices]] <!-- Notice expired --> |
| − | }}}}}} | + | }} |
| + | }} | ||
| + | }} | ||
| + | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 12:09, 21 September 2020
| {{{1}}} |
File:Test Template Info-Icon - Version (2).svg Module documentation[create]
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. |