Template talk:To do

From Wikipedia, the free encyclopedia
Jump to: navigation, search
edit·history·watch·refresh Stock post message.svg To-do list for Template:To do:
Priority 9

My latest update[edit]

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)

Bug report[edit]


AFAICT —Ms2ger (talk) 13:20, 9 November 2008 (UTC)

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)


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)

Different appearances[edit]


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

Why no link to /To_do page?[edit]

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)

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

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)

Bug report[edit]

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)

Todo-Named deprecated?[edit]

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)


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)

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

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)


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)

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

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

Incorrectly Prefixes Include Page with Template Namespace but Edit Link is Correct[edit]


AFAICT —Ms2ger (talk) 13:20, 9 November 2008 (UTC)

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)

Not fixed for me. I see the exact issue described above. Any idea why the edit page and include pages go to different URLs? (talk) 23:11, 27 January 2013 (UTC)


Would it be possible to add view to the edit, history, etc.? JohnnyMrNinja 04:29, 7 July 2008 (UTC)

No print for the contents in the second cell in the first row[edit]

Is it possible to wrap the links in the second cell of the first row in a span tag with the class of noprint? The cell should still print, but the contents may not need to print. I did a print preview of a page with this on it, and the contents were horribly skewed due to the fact that those links are expanded to show the full urls. A noprint on the contents would make printing this box a little neater, IMO. LA @ 19:02, 10 August 2008 (UTC)


What exactly does the priority parameter do or mean? The examples with the priority parameter look exactly the same as the examples without the priority parameter. Also, is priority=1 high or low? Thanks—G716 <T·C> 04:02, 23 August 2008 (UTC)

Hidden-by-default option needed[edit]


This needs an option like many navboxes have, to appear in the page hidden ("rolled up") by default; this would make it more useful on talk pages, where it would be about the size of a WikiProject banner until willfully expanded. — SMcCandlish [talk] [cont] ‹(-¿-)› 07:33, 4 September 2008 (UTC)

I've made revisions here User:Ludwigs2/:test per Wikipedia:Requested_templates#Template:Todo that does what's requested. it changes the look of the template slightly, however. if it looks ok to you, I'll ask to have it editprotected in. --Ludwigs2 04:54, 29 October 2008 (UTC)
I've written up another version at {{Todo/sandbox}} (that takes up some less space and uses the recently agreed on (t)mbox-* classes for TPTs). To compare, please see the testcases. —Ms2ger (talk) 12:30, 29 October 2008 (UTC)
nice! Face-smile.svg --Ludwigs2 17:17, 29 October 2008 (UTC)
And done too. —Ms2ger (talk) 18:54, 1 December 2008 (UTC)


{{editprotected}} I have prepared a new version at {{Todo/sandbox}}. It contains the following changes:

  • uses the (t)mbox-* classes;
  • has some classes for skinning by users;
  • adds a |collapsed= parameter, as requested above;
  • adds parameters to customize the looks (so other todo templates can just use this template): |image=, |above=, |below=, |inner=, |smallfor= & |category= (I'll document them as soon as they are implemented);
  • adapts automatically to the namespace;
  • borrows a bit of the look from {{WPBS}};
  • uses relative instead of absolute font sizes;
  • abbreviates the editlinks width |small=yes;
  • doesn't expand them when printing
  • doesn't link to the deleted category To do, by priority.

It can be seen in action on some pages already. If there are no comments, I'll request the edit. Thanks. —Ms2ger (talk) 13:20, 9 November 2008 (UTC)

Please replace the page with the contents of {{To do/sandbox}}. Thanks. —Ms2ger (talk) 11:02, 16 November 2008 (UTC)
Yes check.svg Done. Nice work. Cheers. --MZMcBride (talk) 20:07, 28 November 2008 (UTC)
Thanks! —Ms2ger (talk) 18:37, 1 December 2008 (UTC)

Non-subpage to do template[edit]


Should we have a similar template that doesn't create a subpage? Creating a subpage is slightly awkward when the list becomes empty, and edits to the list are missed by those only watching the talk page. It also requires an extra edit to add the to-do list to the talk page, which is mildly annoying. A template that is just a part of the talk page but displays more like a to-do list and less like ordinary text might be an alternative or just better than ordinary to-do lists. Richard001 (talk) 23:42, 20 November 2008 (UTC)

This is already implemented in the sandbox, we just have to wait until an admin edits it in. —Ms2ger (talk) 08:38, 22 November 2008 (UTC)
And now merged into the main template. —Ms2ger (talk) 18:41, 1 December 2008 (UTC)


All the pages that use the template are put into Category:Wikipedia pages with to-do lists. Just wondering if there should be another category, Category:To do, unused, for example, for pages where the template has been used but the ToDo list hasn't been created.

{{#if:{{{inner|}}}||{{#ifexist:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}||[[Category:To do, unused]]}}}}

(assuming I've got all the {} correct) -- WOSlinker (talk) 00:15, 27 December 2008 (UTC)

{{editprotected}} Could the code below be added just before the </includeonly> in the template. It will add another category as described above.

{{#if:{{{inner|}}}||{{#ifexist:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}||[[Category:To do, unused]]}}}}

thanks -- WOSlinker (talk) 23:32, 9 January 2009 (UTC)

Yes check.svg Done Ruslik (talk) 11:18, 12 January 2009 (UTC)

The russian interwiki[edit]

Add the russian interwiki (ru:Шаблон:to_do) in that page, please. Gleb-ax (talk) 14:03, 2 January 2009 (UTC)

Interwiki links should be added to Template:Todo/doc page, which is not protected. Ruslik (talk) 11:19, 12 January 2009 (UTC)

Collapse Option with "Shown" Default[edit]

I suggest that the code

{{#ifeq:{{{collapsed|}}}|yes|collapsible collapsed}}

be replaced with

{{#if:{{{collapsed|}}}|collapsible}} {{#ifeq:{{{collapsed|}}}|yes|collapsed}}

to give editors the option of creating a list that may be collapsed by the reader but is not collapsed by default. With this modification, the collapse parameter works as follows:

  • {{todo}} gives a normal todo list that is not collapsible,
  • {{todo|collapsed=yes}} gives a collapsible list that is collapsed when rendered,
  • {{todo|collapsed=no}} gives a collapsible list that is not collapsed when rendered.

PerkinsTaylor (talk) 23:21, 28 February 2009 (UTC)

tweak: {{#if:{{{collapsed|}}}|collapsible {{#ifeq:{{{collapsed|}}}|yes|collapsed}}}}}
my question would be, though, what do we want to be the default state: collapsible or not collapsible? --Ludwigs2 00:35, 1 March 2009 (UTC)
What about {{#ifeq:{{{collapsed|}}}|yes|collapsible collapsed|{{#ifeq:{{{collapsible|}}}|yes|collapsible}}}}? I'd prefer not overloading the collapsed parameter. —Ms2ger (talk) 10:17, 1 March 2009 (UTC)
either way. Face-smile.svg --Ludwigs2 11:25, 1 March 2009 (UTC)

Template issue[edit]

{{editprotect}} I've tried installing the {{todo}} template on Talk:List of Shugo Chara!! Doki— episodes‎ only to have the template spill its guts. I believe this is caused by the !! in the page's title and I cannot find a way to fix this issue other then to recode the template using HTML instead of WikiTable markup. --Farix (Talk) 18:09, 16 April 2009 (UTC)

I've updated the sandbox with a version that shouldn't cause problem as well as fix a couple of minor issues as well. --Farix (Talk) 01:07, 17 April 2009 (UTC)
Yes check.svg Done. Please let me know if anything unexpected happens. — Martin (MSGJ · talk) 12:36, 17 April 2009 (UTC)

Below and priority parameters broken[edit]

{{editprotected}} I've fixed a problem with |below= and |1= (see testcases) in the sandbox. Please sync. TIA. —Ms2ger (talk) 14:30, 1 May 2009 (UTC)

Yes check.svg Done Nice work. —TheDJ (talkcontribs) 00:29, 2 May 2009 (UTC)
Thank you —Ms2ger (talk) 10:05, 2 May 2009 (UTC)

Plain links[edit]

For some reason, neither of the classes plainlinksneverexpand and plainlinks2 are creating plainlinks on the editlinks at the top of the box. — Martin (MSGJ · talk) 21:27, 13 May 2009 (UTC)

Fixed. plainlinksneverexpand had been deprecated. —TheDJ (talkcontribs) 22:18, 13 May 2009 (UTC)

template causes page to be included in Category:Wikipedia how-to[edit]

See User:Bfalexander for an example. That page begins with {{Post-it small}} and is categorized Wikipedia how-to. Nowiki the Post-it template and the category goes away. (talk) 22:28, 31 May 2009 (UTC)

Fixed; the problem was with {{post-it small}}, not {{todo}}. Someone put categories for the template outside a noinclude section. —TKD [talk][c] 22:34, 31 May 2009 (UTC)
Thanks. I listed Todo as the problem as, to my less experienced eye, Post-it was a redirect.tooold (talk) 03:52, 1 June 2009 (UTC)
btw - "How-to" has a similar problem. Not sure if anyone is watching it; any chance you can fix that as well? Thanks (talk) 07:22, 1 June 2009 (UTC)
I fixed it and responded on that template's talk page. Until I read your message there, it wasn't clear to me that there was a "similar problem". In {{how-to}}'s case, the problem was not that categories for the template itself were being applied to all pages that included it, but rather that we don't want user test pages or transclusions to be categorized in Category:Wikipedia how-to. —TKD [talk][c] 08:11, 1 June 2009 (UTC)


Is it possible to insert a "to do" list that does not say "to do" at the top? (because it's not for the purpose of a "to do" list, -- I just want to transclude content from another page)

Second, is it possible to have two of these boxes appear next to each other on the same row? The box on the left will show some wikitext, and the box on the right will show what that wikitext looks like when saved; so that someone can just copy the wikitext from the left if he likes what he sees on the right.

Thanks Agradman talk/contribs 05:53, 10 July 2009 (UTC)

Template Justification[edit]

This may not be the right place to ask... but I created this template for use on this task force page. I cannot get the template to center itself on the page - it stays left. When I add what I think is the right alignment code, it jumbles up the column on the target page. Extending the template's width to that of the target page's would be acceptable as well - I have been unsuccessful. Thanks. Andyo2000 (talk) 16:26, 10 July 2009 (UTC)

Removal of td template[edit]

{{editprotected}} Could the copy in the sandbox be copied over to live. The change is so that the {{td}} template is no longer used by this template as the code is now used directly. Thanks. -- WOSlinker (talk) 15:11, 1 August 2009 (UTC)

Yes check.svg DoneTheDJ (talkcontribs) 13:59, 4 August 2009 (UTC)


{{editprotected}} Please sync with the sandbox. It uses a class (with the styling defined in MediaWiki:Common.css) rather than an inline style, which makes it easier to restyle it. TIA. —Ms2ger (talk) 18:49, 4 August 2009 (UTC)

Yes check.svg DoneTheDJ (talkcontribs) 23:57, 4 August 2009 (UTC)


{{editprotected}} Please look at Talk:Heath v. Alabama and let me know why the "Goal" in the {{todo}} is not properly rendered. Thanks. (talk) 18:36, 30 October 2009 (UTC)

My edits to the sandbox fix this. Could it please be synchronized? —Ms2ger (talk) 20:39, 30 October 2009 (UTC)
Yes check.svg DoneTheDJ (talkcontribs) 15:08, 31 October 2009 (UTC)


When /to_do list does not exist the template shows this preload: Template:Tasks/Preload. In Category:Wikipedia pages with to-do lists, unused you will find several examples. In my opinion it is confusing, wastes precious space within the talk page header and moreover it is not necessary. Proposal: an empty list (example) or a message like "The list is empty, click edit to add an item" are more appropriate. -- Basilicofresco (msg) 08:52, 15 April 2010 (UTC)

I updated Template:Todo/sandbox: when /to_do does not exist it shows the message "To-do list is empty: remove {{todo}} tag or click on edit add a item.", do you like it? -- Basilicofresco (msg) 09:09, 15 April 2010 (UTC)

Looks fine to me. I've also change the categorisation so that userpages are not added to Category:Wikipedia pages with to-do lists, unused. -- WOSlinker (talk) 13:56, 17 April 2010 (UTC)

{{editprotected}} Could the changes above which are in the sandbox be applied to live. Thanks. -- WOSlinker (talk) 13:58, 17 April 2010 (UTC)

Yes check.svg Done. Thanks, PeterSymonds (talk) 14:07, 17 April 2010 (UTC)

template seems to break on transcluded subpage[edit]


Currently the template seems to break when being used on transcluded subpages. As an example I've left the pages User:Cat-five User:Cat-five/header (all my header info, transcluded into User:Cat-five), and User:Cat-five/header/to_do (the tasks subpage) as is.

To reproduce. If you go to User:Cat-five it will show that there are no tasks however if you go to User:Cat-five/header it will properly show the one item in the list. I've tried telling it specifically use the page but it appears to want a new list for each different transcluded version which is possible but which could cause any number of issues and is kludgy at best. Cat-five - talk 23:37, 4 June 2010 (UTC)

I'm pretty sure that this is because Todo uses the #rel2abs parser function, which locates the todo list relative to the calling page. when you call User:Cat-five/header directly, it works fine because rel2abs looks or the list page relative to /header. however, when you call the header from the main page, rel2abs looks for the list relative to your user page, and can't find it at User:Cat-five/todo. the way to resolve this, I think, is to use an absolute path - easiest would probably be |inner={{User:Cat-five/header/to_do}} though |list=User:Cat-five/header/to_do might work as well. --Ludwigs2 01:55, 5 June 2010 (UTC)
Thanks for the help. Just a few technical notes if anyone is interested, using inner as the parameter seems to cause all sorts of formatting glitches on both the header page and the main userpage. [1] is a good example if anyone's interested. setting the list parameter seems to work perfectly but I haven't admittedly tried very hard to find ways to break it. Cat-five - talk 17:48, 5 June 2010 (UTC)


{{edit protected}} Change the phrase "To-do list is empty: remove {{todo}} tag or click on edit add a item." to "To-do list is empty: remove {{todo}} tag or click on edit to add an item." --Bensin (talk) 10:46, 10 January 2011 (UTC)

Fixed — Martin (MSGJ · talk) 17:33, 10 January 2011 (UTC)

Add the option to choose the color of the To-do list[edit]

Hey guys, I had to transclude and subst To-do template into a subpage of mine, what about adding a parameter color where it goes in the style section. style="border-collapse:separate; background:{{{colour}}};"

Thanks in advance. Eduemoni↑talk↓ 20:54, 13 April 2011 (UTC)

You can just use the following: |style=background:LightGoldenRodYellow; -- WOSlinker (talk) 21:13, 13 April 2011 (UTC)

Edit request 23Jan12[edit]

One minor update in sandbox to fix name of template. Thanks, --Funandtrvl (talk) 21:08, 23 January 2012 (UTC)

Yes check.svg Done. Edokter (talk) — 22:32, 23 January 2012 (UTC)

Problem with lists in the inner argument[edit]

There is a problem with having lists in the inner argument. If one writes

{{To do
* List element 1
* List element 2

the result becomes (the to do template has been substituted in this example)

Stock post message.svg To-do list for Template:To do:
* List element 1
  • List element 2

which is incorrect behavior. However, if one instead encloses the inner argument in an HTML <span>:

{{To do
* List element 1
* List element 2

the result instead becomes (the to do template has been substituted in this example)

Stock post message.svg To-do list for Template:To do:
  • List element 1
  • List element 2

which is the correct behavior. The same incorrect behavior exists for numbered lists in the inner argument and has the same remedy. —Kri (talk) 09:01, 7 June 2012 (UTC)

To see the status of this issue, here is the same example again, but this time it has not been substituted:
Stock post message.svg To-do list for Template:To do:
  • List element 1
  • List element 2
Kri (talk) 15:47, 7 July 2012 (UTC)
  • I've actually dealt with this problem quite a bit on another wiki. There are three possible solutions.
1. Change the following code:
    #if: {{{inner|}}} | | {{
      #ifexist: {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} | | {{#switch:{{NAMESPACE}}
  • To this code simply moving the placement of the linefeed in the template:
    #if: {{{inner|}}} | |
      {{#ifexist: {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} | | {{#switch:{{NAMESPACE}}
2. Change the same code :
    #if: {{{inner|}}} | | {{
      #ifexist: {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} | | {{#switch:{{NAMESPACE}}
  • To include a line break inside the template:
    #if: {{{inner|}}} | | <br />{{
      #ifexist: {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} | | {{#switch:{{NAMESPACE}}
3. Change a larger chunk of code :
  #ifeq: {{{nocats}}} | yes | | {{{category|[[Category:Wikipedia pages with to-do lists|{{PAGENAME}}]]}}}{{
    #if: {{{inner|}}} | | {{
      #ifexist: {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} | | {{#switch:{{NAMESPACE}}
       |#default=[[Category:Wikipedia pages with to-do lists, unused]]
  • To include a span wrapper inside the template:
  #ifeq: {{{nocats}}} | yes | | {{{category|[[Category:Wikipedia pages with to-do lists|{{PAGENAME}}]]}}}{{
    #if: {{{inner|}}} | | <span>{{
      #ifexist: {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} | | {{#switch:{{NAMESPACE}}
       |#default=[[Category:Wikipedia pages with to-do lists, unused]]
  • I expect that someone will test both ideas in the sandbox, and will apply the better of the two options (I'm quite busy in RL atm or I would do it myself. Happy editing! Technical 13 (talk) 12:50, 10 May 2013 (UTC)


You should add the catalan interwiki, it's ca:Plantilla:Per fer. It would be useful.--KRLS (talk) 17:40, 6 July 2012 (UTC)

Can be added in onTemplate:To do/doc in the includeonly section at the end of the page. -- WOSlinker (talk) 20:56, 6 July 2012 (UTC)

Using this on another wiki?[edit]

Stupid question, and if anyone can point me to a good tutorial on how to do this, it would be great ... I work on a private wiki, as a side hobbyist sort of thing, and we're trying to use/import this template over there. I'm not, however, anywhere near a media wiki genius. We are using MediaWiki: 1.6.5, PHP: 5.2.17 (cgi), and MySQL: 5.0.95-community. Any pointers for a better place to ask the question would be appreciated.--Vidkun (talk) 15:13, 22 August 2012 (UTC)

I'll leave this question up, although I found my solution - http://www.mediawiki.org/wiki/Help:Templates#Copying_from_one_wiki_to_another --Vidkun (talk) 15:29, 22 August 2012 (UTC)
This Template also requires you to set $wgUseTidy = true; in your LocalSettings.php configuration. — Preceding unsigned comment added by (talk) 22:24, 27 January 2013 (UTC)

{{todo}} list outside of talk namespace[edit]

The template docs state that

Normally, the "/to do" subpage should only be created under the article's Talk page, unless it is a notice board or project page.

I just had a bit of an argument about this with User:Lova Falk, who created Personality psychology/to do, which seems to be in the wrong namespace. It's a redirect that I tried to CSD, but another editor removed the tag. Are to do lists in main space ok? QVVERTYVS (hm?) 19:51, 28 December 2013 (UTC)

As I told QVVERTYVS, I did not create that page, the template did... And the to-do list is also on Talk:Personality psychology... Lova Falk talk 19:56, 28 December 2013 (UTC)


It would be nice if we could set the height, so that the text becomes scrollable once it becomes so large. Stevie is the man! TalkWork 16:56, 27 July 2014 (UTC)

@Stevietheman: added to the sandbox as |height=3em. Frietjes (talk) 16:13, 28 July 2014 (UTC)
Thanks for the quick turnaround! I apologize for my lack of precision, but I intended to say max-height. I suppose this has more sensitivity to browser support, but I believe all recent versions of major browsers deal with it fine. Stevie is the man! TalkWork 16:22, 28 July 2014 (UTC)
makes sense, added here. if there are no problems, I will add it to the main template. Frietjes (talk) 16:32, 28 July 2014 (UTC)
Thanks again. I just tested it in my user space, and it appears to work perfectly. Stevie is the man! TalkWork 16:40, 28 July 2014 (UTC)
By the way, I recommend calling the param maxheight and saying it won't work on IE8 -- that's the only (kind of) recent version of a browser I know has a bug that prevents this from working. Stevie is the man! TalkWork 16:44, 28 July 2014 (UTC)
  • I have no objections to this being added as a completely optional parameter, but it shouldn't be forced on all users as default. — {{U|Technical 13}} (etc) 17:53, 28 July 2014 (UTC)
    • That was my intention. I looked at the code change, and it appeared that if height wasn't set, the default behavior was the same as before. Stevie is the man! TalkWork 19:23, 28 July 2014 (UTC)
      • I read it incorrectly due to redundant code. I've fixed that. Looks like a go to me. — {{U|Technical 13}} (etc) 14:08, 29 July 2014 (UTC)
  • now done. Frietjes (talk) 14:25, 1 August 2014 (UTC)