Template:Deletetimer: Difference between revisions

m
This doesn't even work on Firefox anymore
m (Protected "Template:Deletetimer": Possible target for vandalism ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (This doesn't even work on Firefox anymore)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| style="border: 1px solid #aaa; background-color:#EE799F; -moz-border-radius: 30px;" align="center" width="75%"
{| style="border: 1px solid #aaa; background-color:#EE799F; border-radius: 30px; margin:auto" width="75%"
|-
|-
| style="padding: 0.5em; -moz-border-radius: 40px; background: #F6CCDA" | {{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) > 20|[[Image:474Porygon-Z.png|100px]]}}{{#ifexpr: 20 >= (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400))|{{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) > 10|[[Image:233Porygon2.png|100px]]}}}}{{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) <= 10|[[Image:137Porygon.png|100px]]}}
| style="padding: 0.5em; border-radius: 40px; background: #F6CCDA" | {{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) > 20|[[Image:474Porygon-Z.png|100px]]}}{{#ifexpr: 20 >= (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400))|{{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) > 10|[[Image:233Porygon2.png|100px]]}}}}{{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) <= 10|[[Image:137Porygon.png|100px]]}}
| '''This page {{#ifexpr: {{#time: z}} != {{#time: z|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}|{{#ifexpr: ({{#time: U}} - {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}) < 86400|{{#ifexpr: ({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) > 86400|{{#ifexpr: {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} < {{#time: U}}|has been ready for deletion for {{#expr: floor(({{#time: U}} - {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}) div 86400)}}|is set to be deleted in {{#expr: floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)}}}} days|is set for deletion tomorrow}}|has been ready for deletion since {{#time: F j, Y|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}}}|is set to be deleted today}}.''' {{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) > 0|{{ms|{{padleft:{{#expr: floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)}}|3|0}}}}|{{ani|{{padleft:{{#expr: -(floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400))}}|3|0}}}}}}
| '''This page {{#ifexpr: {{#time: z}} != {{#time: z|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}|{{#ifexpr: ({{#time: U}} - {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}) < 86400|{{#ifexpr: ({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) > 86400|{{#ifexpr: {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} < {{#time: U}}|has been ready for deletion for {{#expr: floor(({{#time: U}} - {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}) div 86400)}}|is set to be deleted in {{#expr: floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)}}}} days|is set for deletion tomorrow}}|has been ready for deletion since {{#time: F j, Y|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}}}}|is set to be deleted today}}.''' {{#ifexpr: (floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)) > 0|{{ms|{{padleft:{{#expr: floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400)}}|3|0}}}}|{{ani|{{padleft:{{#expr: -(floor(({{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} - {{#time: U}}) div 86400))}}|3|0}}}}}}


Line 8: Line 8:
{{#ifexpr: {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} < {{#time: U}}|''[[Bulbapedia:Administrators|Administrators]] - Remember to check [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|if anything links here]] and [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=history}} the page history] before deleting.''}}
{{#ifexpr: {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} < {{#time: U}}|''[[Bulbapedia:Administrators|Administrators]] - Remember to check [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|if anything links here]] and [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=history}} the page history] before deleting.''}}
|}
|}
<includeonly>{{#ifexpr: {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} < {{#time: U}}|[[Category:Candidates for deletion|{{PAGENAME}}]]}}</includeonly><noinclude>To use, simply insert <code><nowiki>{{Deletetimer|January 1, </nowiki>{{#time: Y|+ 1 year}}<nowiki>}}</nowiki></code> at the top of the page in question, replacing "January 1, {{#time: Y|+ 1 year}}" with a date and time of your choosing. It will insert the notice at the top of the page and categorize the page as a candidate for deletion as soon as it is past that date and time. '''Do not use SUBST: on this template.'''<br>{{protect}}[[Category:Notice templates]]</noinclude>
<includeonly>{{#ifexpr: {{#time: U|{{{1|January 1, {{#time: Y|+ 1 year}}}}}}} < {{#time: U}}|[[Category:Candidates for deletion|{{PAGENAME}}]]}}</includeonly><noinclude>To use, simply insert <code><nowiki>{{Deletetimer|January 1, </nowiki>{{#time: Y|+ 1 year}}<nowiki>}}</nowiki></code> at the top of the page in question, replacing "January 1, {{#time: Y|+ 1 year}}" with a date and time of your choosing. It will insert the notice at the top of the page and categorize the page as a candidate for deletion as soon as it is past that date and time. '''Do not use SUBST: on this template.'''[[Category:Notice templates]]</noinclude>