Template talk:Todo

From Wikipedia, the free encyclopedia

Contents

Documentation - Discussion

To-do list for Template:Todo: edit  · history  · watch  · refresh
  • 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; see {{Todo-Named}} for probable solution.
Priority 9

[edit] Documentation

{{todo}} adds a todo list for a page

[edit] Usage

{{todo}} gives a normal todo list
{{todo|N}} where N is a number from 1 to 9 to define it's priority
{{todo|small=yes}} formats the todo list small
{{todo|nocats=yes}} don't include categories
{{todo|list=./TODO}} use the subpage ./TODO as todo list instead of subpage ./to do
{{todo|target=Talk:Foo}} use the todo list of page Foo instead

[edit] Example

Code Result
{{todo}}
To-do list for Template:Todo: edit  · history  · watch  · refresh
  • 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; see {{Todo-Named}} for probable solution.
{{todo|9}}
To-do list for Template:Todo: edit  · history  · watch  · refresh
  • 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; see {{Todo-Named}} for probable solution.
Priority 9
{{todo|small=yes}}
To-do list: edit  · history  · watch  · refresh
  • 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; see {{Todo-Named}} for probable solution.
{{todo|small=yes|9}}
To-do list: edit  · history  · watch  · refresh
  • 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; see {{Todo-Named}} for probable solution.
Priority 9
{{todo|list=./to do2}}
To-do list for Template:Todo: edit  · history  · watch  · refresh

Another todo list!!!

{{todo|target=Talk:Britney Spears|1}}
To-do list for Talk:Britney Spears: edit  · history  · watch  · refresh
  • To Prepare for FA STATUS, from Peer Review:
  • It is mainly structural and syntactical issues like this that which separate it from FA status - there are plenty of facts but they are poorly presented and organised.
Priority 1 (top)

[edit] See also

[edit] Discussion

Contents

Add issues below as you see fit, sign with ~~~~

[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

{{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)

[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)

[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)