الگو:Editnotice: تفاوت میان نسخهها
جز (۱ نسخه واردشده) |
fa>Wikinoor.ir جز (Changed protection level for "Template:Editnotice": High-risk template or module; used in system message ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))) |
||
خط ۱: | خط ۱: | ||
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices | {{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices | ||
|{{Editnotice/notice | |{{Editnotice/notice | ||
|expiry= | |expiry={{{expiry|¬}}} | ||
|redirect={{{redirect|}}} | |||
}} | }} | ||
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices | }}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices | ||
|1 | |1 | ||
|0 | |0 | ||
}}+{{#switch | }}+{{#switch:{{{expiry|¬}}} | ||
|indefinite | |indefinite = 1 | ||
| | | | ||
|¬ = 1 <!-- Expiry not specified --> | |¬ = 1 <!-- Expiry not specified --> | ||
|#default = {{#iferror:{{#time:U| | |#default = {{#iferror:{{#time:U|{{{expiry}}}}} | ||
|0 <!-- Invalid expiry time --> | |0 <!-- Invalid expiry time --> | ||
|{{#ifexpr:{{#time:U| | |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 | ||
|1 <!-- Notice current --> | |1 <!-- Notice current --> | ||
|0 <!-- Notice expired --> | |0 <!-- Notice expired --> | ||
خط ۱۸: | خط ۱۹: | ||
}} | }} | ||
}} | }} | ||
|{{ | |{{fmbox | ||
|type = editnotice | |type = {{{type|editnotice}}} | ||
|id = {{{id|}}} | |id = {{{id|}}} | ||
|textstyle = {{{textstyle|}}} | |textstyle = {{{textstyle|}}} | ||
خط ۲۵: | خط ۲۶: | ||
|class = {{{class|}}} | |class = {{{class|}}} | ||
|image = {{#if:{{{image|}}} | |image = {{#if:{{{image|}}} | ||
|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size= | |{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{{imagesize|}}}|sizedefault=40x40px}} | ||
|none | |none | ||
}} | }} | ||
|imageright= {{#if:{{{imageright|}}} | |imageright= {{#if:{{{imageright|}}} | ||
|{{#invoke:InfoboxImage|InfoboxImage|image={{{imageright}}}|size= | |{{#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}}}}}} | ||
خط ۴۰: | خط ۴۱: | ||
| | | | ||
|¬ = <!-- Expiry not specified --> | |¬ = <!-- Expiry not specified --> | ||
|#default = {{#iferror:{{#time:U| | |#default = {{#iferror:{{#time:U|{{{expiry}}}}} | ||
| <!-- Invalid expiry time --> | | <!-- Invalid expiry time --> | ||
|{{#ifexpr:{{#time:U| | |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 | ||
| <!-- Notice current --> | | <!-- Notice current --> | ||
|[[ | |[[Category:Expired editnotices]] <!-- Notice expired --> | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{ | {{documentation}} | ||
</noinclude> | </noinclude> |