Difference between revisions of "Template:Prod"

1,294 bytes added ,  14:41, 19 July 2008
no edit summary
imported>Haama
(Try this again)
imported>Haama
Line 23: Line 23:
If you can address this concern by improving the article, please edit this page and do so. You may remove this notice if you improve this article or object to this deletion for any reason. To avoid confusion, please explain why you contest the deletion on your edit summary and on this page's [[{{TALKSPACE}}:{{PAGENAME}}|talk page]].
If you can address this concern by improving the article, please edit this page and do so. You may remove this notice if you improve this article or object to this deletion for any reason. To avoid confusion, please explain why you contest the deletion on your edit summary and on this page's [[{{TALKSPACE}}:{{PAGENAME}}|talk page]].


Article will be [[:Category:Articles_for_Deletion|marked for deletion]] {{#switch: {{#expr: {{{2|14}}} - {{REVISIONDAY}}}}|1 = tomorrow|0 = later today |in {{#expr: {{{2|14}}} - {{REVISIONDAY}}}} days}}.
Article will be [[:Category:Articles_for_Deletion|marked for deletion]] {{#switch: {{#expr: {{{2|14}}} - (({{#time: Y | {{CURRENTTIMESTAMP}}}} - {{#time: Y | {{REVISIONTIMESTAMP}}}}) * (365 + {{#time: L | {{REVISIONYEAR}}}})) + ({{#time: z | {{CURRENTTIMESTAMP}}}} - {{#time: z | {{REVISIONTIMESTAMP}}}})}}|1 = tomorrow|0 = later today |in {{#expr: {{{2|14}}} - (({{#time: Y | {{CURRENTTIMESTAMP}}}} - {{#time: Y | {{REVISIONTIMESTAMP}}}}) * (365 + {{#time: L | {{REVISIONYEAR}}}})) + ({{#time: z | {{CURRENTTIMESTAMP}}}} - {{#time: z | {{REVISIONTIMESTAMP}}}})}} days}}.
</div>[[Category: Proposed for Deletion]]}}</includeonly>
</div>[[Category: Proposed for Deletion]]}}</includeonly>
<!-- New formula broken down so it's easier to read
*Before, I thought {{REVISIONDAY}} was the number of days since the last revision. It's not (my bad), it's only the day of the month the revision was made. This basically made a loop where the pages were afd'd after the 14th and then reset to Prod on the 1st (since I made it on the 1st I never noticed).
*The new formula essentially is the number of days since the last revision. There are 2 parts
**Number of days since last revision within the year (z gives the day of the year from 0-364/365)
    ({{#time: z | {{CURRENTTIMESTAMP}}}} - {{#time: z | {{REVISIONTIMESTAMP}}}})
    = (Current day of year) - (Revision day of year)
**Correction for new year
    (({{#time: Y | {{CURRENTTIMESTAMP}}}} - {{#time: Y | {{REVISIONTIMESTAMP}}}}) * (365 + {{#time: L | {{REVISIONYEAR}}}}))
    = (((Current year)-(Revision year)) * (365+(1 if Revision year was a leap year)))
-->
Anonymous user