Templat:Editnotice: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Addbot (bicara | kontrib)
k Bot: Migrasi pranala interwiki, karena telah disediakan oleh Wikidata pada item d:q6267879
apdeit
Baris 1:
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
{{fmbox
|{{Editnotice/notice
| type = editnotice
| id |expiry= {{{idexpiry|¬}}}
}}
| textstyle = {{{textstyle|}}}
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
| style = {{{style|}}}
|1
| image = {{#if:{{{image|}}}|{{image|{{{image}}}|40x40px}}|none}}
|0
| text = {{#if:{{{header|}}}|<dl><dt style="{{{headerstyle|}}}">{{{header}}}</dt></dl>
}}+{{#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 -->
}}
}}
}}
|{{fmbox
| |type = editnotice
|id = {{{id|}}}
| |textstyle = {{{textstyle|}}}
| |style = {{{style|}}}
|class = {{{class|}}}
| image = {{#if:{{{image|}}}|{{image|{{{image}}}|40x40px}}|none}}
|{{image|{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}
|none
}}
|imageright= {{#if:{{{imageright|}}}
|{{image|{{{imageright}}}|{{#if:{{{imagerightsize|}}}|{{{imagerightsize}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}}}
}}
|text = {{#if:{{{header|}}}
| text = {{#if:{{{header|}}}|<dl><dt style="{{{headerstyle|}}}">{{{header}}}</dt></dl>
}}
{{{text|{{{1}}}}}}
}}
}}<noinclude>
}}<includeonly>{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotice|{{#iferror:{{#time:U|{{{expiry}}}}}
| <!-- Invalid expiry time -->
|{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
| <!-- Notice current -->
|[[Category:Expired editnotice]] <!-- Notice expired -->
}}}}}}</includeonly><noinclude>
[[Kategori:Templat]]<!-- sementara -->
</noinclude>