Templat:Editnotice: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
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▼
}}▼
| 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
|id = {{{id|}}}
|class = {{{class|}}}
|{{image|{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}
|none
}}
|imageright= {{#if:{{{imageright|}}}
|{{image|{{{imageright}}}|{{#if:{{{imagerightsize|}}}|{{{imagerightsize}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}}}
}}
|text = {{#if:{{{header|}}}
}}
{{{text|{{{1}}}}}}
}}
}}<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>
|