Template talk:Todo

From Wikipedia, the free encyclopedia

To-do list for Template:Todo:
  • The link to the definition of the spherical coordinates is not consistent with formula for laplace operator in these coordinates. \theta and \phi seem to be interchanged. The formula is ok but definition of spherical coordinates is not suit
  • Make the template work equally well for non-article namespaces? Done
  • Fix problem with Category talk pages (discussion below). Done
  • Resolve conflict between list and target parameters; the now-deleted {{Todo-Named}} had a probable solution.
Priority 9  

Contents

[edit] My latest update

Cleaned up all localurl to fullurl and shortened the code a lot, I have also added a preload to Template:Tasks/Preload if no /to_do exist. Have also fixed the bug with having todo on cat pages. AzaToth 23:35, 15 September 2006 (UTC)

[edit] Bug report

Appears to have a bug that supresses (or breaks?) the TOC on a Talk page. See Talk:1956 Hungarian Revolution.--Paul 18:33, 27 September 2006 (UTC)

Explicity adding a __TOC__ to a page using Template:Todo is a workaround for this problem.--Paul 16:58, 29 September 2006 (UTC)

[edit] Purge

Why has the purge link the nonstandard title "refresh"? This caused me to insert, unnecessarily, a standalone {{purge}} link. I think I hear somebody whisper "it's more refined" but I don't think anybody seriously thinks clicking a purge link will cause a bulimic teenager to stick a finger down her throat. John Reid ° 23:30, 23 November 2006 (UTC)

[edit] Different appearances

Resolved.

{{todo}} and {{todo priority}} look different. Shouldn't we be striving for consistency? Maybe we should use parser functions or something on one and make the other a redirect. --WikiSlasher 02:18, 18 December 2006 (UTC)

Long since done. "Resolved"ing topic. — SMcCandlish [talk] [contrib] 10:24, 22 February 2007 (UTC)

[edit] Why no link to /To_do page?

Is there a reason why the template does not contain a link to the "To do" subpage itself? — Sebastian 20:25, 14 January 2007 (UTC)

To what end? It already shows the page, and if you want to edit it, it has an edit link (and watch, etc.) Why non-edit link to what it is already showing you? — SMcCandlish [talk] [contrib] 10:22, 22 February 2007 (UTC)
Thanks, there's indeed no need. Not sure anymore why I asked; maybe the "edit" link was disabled back then or I overlooked it. — Sebastian 20:32, 24 April 2007 (UTC)

[edit] Proposed merge/redirect from template:todo nocat

I propose someone with the template know-how merge and redirect {{todo nocat}} here. Basically it's just a fork of this template as it existed at the end of February last year, sans the categories. Copying the new code over to update it would be a PITR. So I suggest that we have a new "categories" parameter to replace having a separate template just to turn off the cats, where someone who wants no todo cats on his/her user page can specify "categories=no" to turn off the cat. Anyone concur? Flyingtoaster1337 04:49, 26 January 2007 (UTC)

I do. — SMcCandlish [talk] [contrib] 10:21, 22 February 2007 (UTC)

[edit] Bug report

The list and target parameters are incompatible. Since these are very new, if you fix target to require the full filename, this problem goes away before hardly anyone's implemented the existing version. — SMcCandlish [talk] [contrib] 10:27, 22 February 2007 (UTC)

PS: That is to say, because list exists, the shortening guesswork that target does will often be wrong, because the filename won't actually be what is expected. — SMcCandlish [talk] [contrib] 10:28, 22 February 2007 (UTC)
Knock, knock. Anyone home? This appears to still be unresolved. — SMcCandlish [talk] [contrib] 20:50, 18 March 2007 (UTC)
NB: It appears to me that the code in {{Todo-Named}} will solve this issue. — SMcCandlish [talk] [contrib] 20:53, 18 March 2007 (UTC)
If' the code I wrote in Todo-Named was used here, why is it not mentioned in the history and why is aforementioned template deleted? I'm happy to work here for free but not so happy when I don't get credit for my work... --kingboyk 20:42, 1 December 2007 (UTC)

[edit] Todo-Named deprecated?

The instructions for this page say to see the variant template {{Todo-Named}}. The instructions for that template say it's deprecated in favor of {{todo}} with a target= parameter. Can we fix whichever one of these is not current? -- Antaeus Feldspar 19:45, 18 March 2007 (UTC)

Todo-Named needs to be merged into this one; it's code can fix the problem reported above. — SMcCandlish [talk] [contrib] 20:53, 18 March 2007 (UTC)

[edit] Wh'appen?

Can someone(s) (namely AzaToth and Jrockley) summarize what is going on here? Seems like an awful lot of code changes, and of too geeky a nature for me to figure out at 11:30-something my time (thought it may make immediate sense after coffee tomorrow morning. The fact that I've been futzing around with PHP instead of WM parser functions for most of the day may have something to do with my possible denseness right now.— SMcCandlish [talk] [contrib] 05:27, 21 March 2007 (UTC)

Jrockley moved the priority text down to the lower right corner, and I thought, why not, but fixed it so it looked better for small windows. I also then indented some code. AzaToth 12:51, 27 March 2007 (UTC)

[edit] Why does the target parameter work this way???

Currently when you use todo normally, it creates a link to the main page in its header "To-do list for foo". But when i specify my target, it instead requires me to add "Talk:" to foo so that it will properly name the to-do list subpage. The problem is that now the title reads and links to the talk page of the article as in "To-do list for Talk:Foo". You can try just ommitting "Talk:" but then the edit button creates a subpage in the mainspace. Why not change this to only have people write "target=Foo" and the template can add the "Talk:" part for the edit link? i'm using awb right now to sift through all articles using this template, and so far very few utilize target... so i don't think it would be too much to change. -ΖαππερΝαππερ BabelAlexandria 22:58, 15 April 2007 (UTC)

:ok, i went ahead and made the change... i'm going to run awb to fix all current uses, and anyone is invited to visit this page to see a list of pages i still need to check in case i need to stop before i'm done. Or if you want to see if a ceratain page needs to be still updated. -ΖαππερΝαππερ BabelAlexandria 23:33, 15 April 2007 (UTC)

nevermind... i was having problems getting to put the "talk:" in the right spot. maybe someone who knows it a little better could implement this change... it looks like it used to be properly implented in the deprecated Todo-named. i'm wondering why that template was deemed depreacted when this template doesn't really do it the same way... -ΖαππερΝαππερ BabelAlexandria 03:07, 16 April 2007 (UTC)

There are pages outside talkspace that transclude this template. Do you just want to get rid of the "Talk:" in the header and for it to link to the article instead? I'll try using an {{#if:}} on {{ns:1}}. –Pomte 03:12, 16 April 2007 (UTC)
When would you need to specify the target parameter? –Pomte 03:16, 16 April 2007 (UTC)

I'm not sure from reading the above if this has been implemented yet. It's a little odd for it to say "To-do list for Talk:foo:", since the to-do list isn't actually for the talk page, but the article itself. --Brandon Dilbeck 21:14, 5 June 2007 (UTC)

I don't think there's any way to do this without requiring a new parameter to specify the article name. –Pomte 21:37, 5 June 2007 (UTC)
There's a way to get just the page name without the namespace; I think it's {{SUBPAGENAME}} but I don't recall precisely; see M:ParserFunctions for deets on such variables. — SMcCandlish [talk] [cont] ‹(-¿-)› 00:38, 6 June 2007 (UTC)
That magic word works for the current page. But when the target parameter is used, it's usually specifying some other page, so it doesn't help in this situation. –Pomte 06:55, 6 June 2007 (UTC)
Oh, right. — SMcCandlish [talk] [cont] ‹(-¿-)› 18:03, 6 June 2007 (UTC)

[edit] Priority

Is there any way that priority can be automatically assigned, perhaps by a bot? It's rather a nuisance to go to the article then 'what links here' every time, so if it could be done automatically it would be a great help. Richard001 00:44, 1 May 2007 (UTC)

[edit] How do I add a "watch" button?

This template has a "watch" button. I want to add a watch button to the box which is used in these two places:

When can I best learn the syntax of adding things such as "watch" buttons. I've tried picking apart the template:todo code but with no success. Thanks. Gronky 14:42, 15 June 2007 (UTC)

Like diff linking, you can copy the link directly by right-clicking on watch and "Copy shortcut" or whatever:
http://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Free_Software&action=watch
But this is messy, so use fullurl. The following gives the same link as above:
{{fullurl:Wikipedia:WikiProject Free Software|action=watch}}
Now make it a normal external link:
[{{fullurl:Wikipedia:WikiProject Free Software|action=watch}} watch]
which gives watch
If you don't like the icon, use CSS:
<span class="plainlinks">[{{fullurl:Wikipedia:WikiProject Free Software|action=watch}} watch]</span>
which gives watch
Pomte 19:20, 15 June 2007 (UTC)
Thanks. This explanation enabled me to figure it out. My todo boxes now have watch buttons: WP:WPFS#Free_software_articles_TODO. Gronky 03:38, 18 June 2007 (UTC)

[edit] Why doesn't it work

The edit link takes you to PAGE/to do, but the box tries to include Template:PAGE/to do. So when you use the edit link to fill in the box, it doesn't. - Keith D. Tyler 17:17, 28 June 2007 (UTC)

I seem to have the same problem as Keith D. Tyler with the template code I borrowed for use in my own wiki site. I haven't look for this problem on a wikipedia article - sorry. Simply using {{todo}} sometime gives a to-do list that has something like "Top-do list for Translations talk:Translation Guidelines:" as the title. In addition, the contents of the list has a link to "Template:Translations talk:Translation Guidelines/to do". However, the edit link still links to the correct page "Translations talk:Translation Guidelines/to do" which contains my Tasks. --Nathanhaigh 09:16, 7 November 2007 (UTC)