Template talk:Newdelrev

Latest comment: 16 years ago by Jpatokal in topic Improving template
edit

Someone please fix this template to accept image links... See this edit and following to see what I mean. EdokterTalk 20:55, 10 December 2007 (UTC)Reply

Improving template

edit

Okay, so I finally figured out a way to make this template work for non-mainspace stuff. I've got a proposed change at User:Lifebaka/Sandbox/newdelrev which handles everything except links to XfDs nicely, and doesn't require a change in usage for mainspace DRVs (which is most of 'em). I'm not thinking there's a good way to fix all of the XfD links outside of mainspace, given that quite a few (CfD, TfD) don't use the transclusion-and-subpage method AfD does, so I'm not that worried about that particular bit. If anyone has a brilliant suggestion for how to code it so we don't need an extra parameter, I'm all ears. Cheers, everyone! lifebaka++ 13:29, 8 August 2008 (UTC)Reply

I have no idea if it will work, but assuming it works it will be an improvement. (Template skills aren't in my tool box.) GRBerry 16:25, 8 August 2008 (UTC)Reply
I tested it here to check if it works for non-mainspace pages, and only the XfD link is broken. I've also tweaked it since that test to show "XfD" when |ns= is specified, instead of "AfD". If anyone would like to test below (or in my sandbox), the code is {{subst:User:Lifebaka/Sandbox/newdelrev|pg=BLAH|ns=BLAH|reason=BLAH BLAH BLAH}}; |ns= is left blank for mainspace.
Also, thinking about it, I'm gonna' go see if I can whip something up for talk namespace stuff. But for now this should work. Cheers. lifebaka++ 16:39, 8 August 2008 (UTC)Reply
HA! Got it. Code now works for any namespace. However, it's pretty darn ugly, 'cuz I can't find a clean way to do the code. It also sorta' breaks for non-talk articles, just 'cuz there isn't a simple way to link to a lot of XfDs (like I already said above), but the rest of the links should work for all possible pages. Cheers. lifebaka++ 17:54, 14 August 2008 (UTC)Reply
I'm working on getting some more concise code. In the meantime, this is the last fully functional version. Cheers, everyone. lifebaka++ 02:02, 15 August 2008 (UTC)Reply

Okay, because few people pay attention to this template, I'm just gonna' go update it. The code for providing links is going to be replaced with {{drvlinks}}, which I just created. This'll make the code look much cleaner when this template is substituted onto pages. Cheers, everyone. lifebaka++ 13:16, 15 August 2008 (UTC)Reply

This template messes up the section headers — if you edit a section, the header is something other than the HTML anchor, so you return to the top of the page and not the section header when you're finished. Stifle (talk) 08:26, 19 August 2008 (UTC)Reply
Ech, sorry about that. Should be fixed now. The {{ucfirst}}s are substituted. Cheers. lifebaka++ 21:20, 24 August 2008 (UTC)Reply
The addition of the namespace parameter may function technically but it's creating a lot of confusion for readers and users. We're having to amend almost every nomination because the headers are not being handled correctly. I think this version has to go back to testing. Please put the old version back in the meantime. Thanks. Rossami (talk) 19:21, 20 August 2008 (UTC)Reply
A simpler solution would be to just remove mention of the |ns= parameter from the notation added to all the DRV logs and the DRV instructions. It's not required for articles, anyways, and I'd assume anyone who wants to dispute a non-article XfD or other deletion should be savvy enough to figure it out from a separate notation page. Feel free to revert the text I added to Wikipedia:Deletion review/New day and to Wikipedia:Deletion review, or the template itself if necessary.
I'm open to suggestions on the template code itself, but I'm pretty sure there isn't a way to code in namespace detection into it to avoid the |ns= parameter. Cheers. lifebaka++ 21:06, 24 August 2008 (UTC)Reply

Man, this template is craptastic. I just spent a few minutes figuring out wtf I'm supposed to put in that "ns=" parameter for a normal article, and couldn't figure it out. The instructions say to "leave it blank", but neither reasonable interpretation of that works: Jpatokal (talk) 16:36, 1 October 2008 (UTC)Reply

====[[:

Foo]]====

Foo (edit | talk | history | protect | delete | links | watch | logs | views) (restore | cache | AfD)

Left ns= as blank

[[:{{{ns}}}:Bar]]

edit

Bar (edit | talk | history | protect | delete | links | watch | logs | views) (restore | cache | AfD)

ns parameter omitted entirely

Yeah, the header doesn't work. I don't know how to fix it. However, it can be fixed after substitution. Cheers. lifebaka++ 17:02, 1 October 2008 (UTC)Reply
You broke it, it's your job to fix it. If you don't know how to, you need revert back to a working version. Because right now, that template is useless for all cases except those that need a namespace! Jpatokal (talk) 07:51, 2 October 2008 (UTC)Reply

Documentation template

edit

{{editprotected}} Please replace <noinclude>foo</noinclude> in the template with <noinclude>{{Documentation}}</noinclude> . Thanks. -- Suntag 18:08, 18 September 2008 (UTC)Reply

  Done. Cheers. lifebaka++ 18:12, 18 September 2008 (UTC)Reply
edit

When Template:Ifd2 is displayed at IMFD, it shows a Notify link that enters into a notification routine when pressed. The notification routine notifies the uploader of the deletion. Couldn't Newdelrev have something like that - a Notify link to the deleting admin's tall page. That would make it easy to make the DRV notification in case the DRV poster forgot. -- Suntag 21:07, 18 September 2008 (UTC)Reply

It could be done. It'd require a parameter to give the deleting admin's username, though. You could do it with a variation on the URL used there, something like http://en.wikipedia.org/w/index.php?title=User_talk:Example_User&action=edit&preload=Template:DRVNote_preload&editintro=Template:DRVNote_editintro&section=new&create=Post+a+comment , where Template:DRVNote_preload would be "{{<includeonly>subst:</includeonly>DRVNote|<PAGENAME>}}" and Template:DRVNote_editintro would be "Please replace <PAGENAME> with the name of the page." or something like that. I could figure out how to set up a wizard to do it instead, which wouldn't require another parameter for {{newdelrev}}, if you'd like. Then a link to that could be added to Wikipedia:Deletion review/Next day. Anyways, just sorta' thinking out loud, as it were. Cheers. lifebaka++ 21:26, 18 September 2008 (UTC)Reply

Template issue

edit

This template doesn't seem to work properly. See Wikipedia:Help_desk#How_to_use_Template:Newdelrev.3F. Either you include ns=Article and you get a link that doesn't work (because Article: doesn't vanish itself) or you include no value for ns and it inserts a line break. I'm not great at esoteric templates; can someone take a look? Stifle (talk) 09:38, 24 September 2008 (UTC)Reply

Dammit, I haven't been able to figure out a way to do this. As I'm sure I've stated above a few times, the issue is that {{subst:#if:{{{ns|}}}|True|False}} will always yield True, regardless of whether or not |ns= is specified. I've tried putting the substitution as a separate parameter, using |subst=subst:, but that's not working either. I've got the code I've been trying for the header over at User:Lifebaka/Sandbox/newdelrev, feel free to play with it. If anyone has any suggestions, I'm fully open to and would welcome them. Cheers. lifebaka++ 15:08, 24 September 2008 (UTC)Reply