Difference between revisions of "Template:Prod"

3,243 bytes added ,  09:32, 8 May 2010
m
no edit summary
imported>Haama
(Works, just need to figure out how to make this page not use it)
imported>Darkness X
m
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ #ifexpr: {{REVISIONDAY}} > 14 | {{afd}} | <div style="margin:0 5%; padding:.5em; background:#FFFFEE; border:1px solid #999; text-align:left; font-size:95%;">
<noinclude>
* Format: <nowiki>{{Prod|Reason}}</nowiki>. By default, this will mark the article for deletion after 14 days (if the page isn't edited). You can change this with an extra parameter:
* Format: <nowiki>{{Prod|Reason|Number of days}}</nowiki>.
 
Placing this template on the top of a page will list that page on [[:Category: Proposed for Deletion]]
 
<div id="catlinks" style="width: 90%; margin: 0.5em auto; border-style: solid;"><div style="float: left; margin: 5px 1em 5px 0.5em;">[[Image:FeaturedIcon.png| Proposed for Deletion]]</div><div style="text-align: left; font-size: 1.2em; letter-spacing: 0.10em; word-spacing: 0.25em; font-weight: bolder;"> Proposed for Deletion </div><div style="text-align: right;"><span style="font-size:0.8em;font-weight:bold;">Article will be [[:Category:Articles for Deletion|marked for deletion]] in 14 days!</span></div>
----
; This article has been proposed for deletion because of the following concern<nowiki>:</nowiki>
; This article has been proposed for deletion because of the following concern<nowiki>:</nowiki>


:''{{{1|No reason given.}}}''
:''{{{1|No reason given.}}}''


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 [[{{TALKSPACE}}:{{PAGENAME}}|talk page]].
<div style="clear: both;"></div>
</div>


Article will be [[:Category:Articles_for_Deletion|marked for deletion]] in {{#expr: 14 - {{REVISIONDAY}}}} days.
<!-- New formula broken down so it's easier to read
</div><noinclude>
*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)))
-->
[[Category: Article Tags|Template:Prod]]
[[Category: Templates|Prod]]
[[Category: Article Tag Templates|Prod]]
</noinclude>
 
<includeonly>
{{ #ifexpr: (({{#time: Y | {{CURRENTTIMESTAMP}}}} - {{#time: Y | {{REVISIONTIMESTAMP}}}}) * (365 + {{#time: L | {{REVISIONYEAR}}}})) + ({{#time: z | {{CURRENTTIMESTAMP}}}} - {{#time: z | {{REVISIONTIMESTAMP}}}}) > {{{2|14}}} | {{afd}} | <div id="catlinks" style="width: 90%; margin: 0.5em auto; border-style: solid;"><div style="float: left; margin: 5px 1em 5px 0.5em;">[[Image:FeaturedIcon.png| Proposed for Deletion]]</div><div style="text-align: left; font-size: 1.2em; letter-spacing: 0.10em; word-spacing: 0.25em; font-weight: bolder;"> Proposed for Deletion </div><div style="text-align: right;"><span style="font-size:0.8em;font-weight:bold;">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}}!</span></div>
----
----
Placing this template on the top of a page will list that page on [[:Category: Proposed for Deletion]].
; This article has been proposed for deletion because of the following concern<nowiki>:</nowiki>
 
:''{{{1|No reason given.}}}''


[[Category:Article Tags|{{PAGENAME}}]]
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 [[{{TALKSPACE}}:{{PAGENAME}}|talk page]].
</noinclude><includeonly>[[Category: Proposed for Deletion]]</includeonly>}}
<div style="clear: both;"></div>
</div>[[Category: Proposed for Deletion]]}}
</includeonly>
Anonymous user