User talk:Evad37/ToDoLister.js
This script has a documentation page at User:Evad37/ToDoLister. |
firefox
editHas anybody used this script on firefox? —usernamekiran(talk) 23:24, 26 January 2018 (UTC)
- I see from User:Usernamekiran/todo that you've been using it. The script should work with any modern browser, so I've removed the warning from the documentation. - Evad37 [talk] 01:29, 5 May 2018 (UTC)
- Thanks. Also for the record: I have been using this script on Firefox Quantum 59.x with monobook skin, since February 2, 2018; without any problems. Thanks again. See you around :) —usernamekiran(talk) 16:46, 7 May 2018 (UTC)
Bug report
editHi, Evad37! First, thank you for the script.
I want to fill a bug report: sometime the "View ToDo" and "Add to ToDo" links fail to appear. I believe if you wrap calls to addPortletLink function in
mw.loader.using('mediawiki.util').done(function () { .... } );
then the problem would be fixed.
Also, it's not my business, but why do you keep User:Evad37/ToDoLister/additem in your user space not in the main template space? Then it could be used by others as well. Alexei Kopylov (talk) 00:02, 1 May 2018 (UTC)
- Thanks for the report Alexei Kopylov. This was one of my earliest scripts, before I knew much of how Javascript worked in Wikimedia wikis. The reason for keeping it in userspace was that I didn't see much use for the template elsewhere – only this script needs the <li> tags to have the given class/id. What I really should do is move it into the script itself, so that it can be used on other wikis. - Evad37 [talk] 01:15, 1 May 2018 (UTC)
- Yes, it would be helpful. Alexei Kopylov (talk) 01:19, 1 May 2018 (UTC)
- @Alexei Kopylov: Done. It can now be used on other wikis; see
User:Evad37/WikidataWatchlistLabels#InstallationUser:Evad37/ToDoLister#Installation - Evad37 [talk]- Thanks. I think you mean User:Evad37/ToDoLister#Installation. By the way, I have just installed WikidataWatchlistLabels, but it does not work. I still see in my watch list:
- @Alexei Kopylov: Done. It can now be used on other wikis; see
- Yes, it would be helpful. Alexei Kopylov (talk) 01:19, 1 May 2018 (UTC)
Moon (Q405) (diff | hist) . . Infovarius (talk | contribs) (Changed [be] label: Месяц; Added [be] alias: Месяц, спадарожнік Зямлі; Created claim: Property:P1552: Q1037706)
- Alexei Kopylov (talk) 20:27, 4 May 2018 (UTC)
- Oops, I copied that from the wrong tab. Will look into the other issue. - Evad37 [talk] 01:05, 5 May 2018 (UTC)
- Alexei Kopylov (talk) 20:27, 4 May 2018 (UTC)
Not working
editThe script isn't working, clicking "Add to ToDo" does nothing. KingAndGod 10:11, 4 May 2018 (UTC)
- @KingAndGod: Fixed. Not entirely sure what the problem was, but I did a more-or-less complete rewrite since this was one of my first scripts. - Evad37 [talk] 17:10, 4 May 2018 (UTC)
More than one to do please
editHello, I have a request. Can you make more than one library? My User:Titodutta/todo list gets too long sometimes (difficult to manage). Sometimes I think to add a few pages to read later, (of course I can bookmark or use things like Pocket, but here I am talking about Wiki-solution), but as of now there is only this page, so all type of things (edit, read, check, revisit) are there only. Please let me know if I need to explain the request with more details. Regards. --Titodutta (talk) 19:11, 18 April 2020 (UTC)
- @Titodutta: You can add section headings and rearrange the items on the todo page. At them moment new items are just added to the end of the page, so the last section should be something like ==Not yet sorted==. In the future I may add the ability to choose a section of the page to add an item to, but that will require a significant rewrite of the script. - Evad37 [talk] 02:15, 19 April 2020 (UTC)
Script not working on other projects
edit- Hello, Evad37, I had installed todolister globally(meta global.js), at that time it was working on all the projects.
- But now, it doesn't work on most of them like on mrwiki, hiwiki, commonswiki, wikidata, mrwikisource.
- So, I thought it's a some recent update in this script itself or some change which has caused it? or I need to remove some gadget installed on my global.js/local js to allow this script to work? QueerEcofeminist "cite! even if you fight"!!! [they/them/their] 17:48, 19 May 2020 (UTC)
- (oops! 2 years late) Thanks for this observation, as it helped me pin this issue to a change in the script (see Special:Diff/929165286). This change in script causes it to import MediaWiki:Gadget-libExtraUtil.js, a script which isn't present in other projects. I quickly copied the second most recent revision of the script and replaced with
importScript('User:Evad37/extra.js');
and used it where I need it. ---CX Zoom(he/him) (let's talk|contribs) 15:10, 14 March 2022 (UTC)mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-libExtraUtil.js&action=raw&ctype=text/javascript');
- (oops! 2 years late) Thanks for this observation, as it helped me pin this issue to a change in the script (see Special:Diff/929165286). This change in script causes it to import MediaWiki:Gadget-libExtraUtil.js, a script which isn't present in other projects. I quickly copied the second most recent revision of the script and replaced
Not working in Tewiki
editHi, I addded
mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:Evad37/ToDoLister.js&action=raw&ctype=text/javascript" ); // Backlink: User:Evad37/ToDoLister.js
to my common.js in tewiki. I did not get "View ToDo", "Add to Todo" links as I did in enwiki. Then I also added the following line.
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-libExtraUtil.js&action=raw&ctype=text/javascript');
but to no avail. I tried in both Vector 2010 and Vector 2022.
Appreciate any help. Thanks. __ Chaduvari (talk) 01:34, 1 August 2024 (UTC)