Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





User:GhostInTheMachine/TalkHelper2





User page  

Talk  



Language  

Watch  

Edit  


< User:GhostInTheMachine
 


GhostInTheMachineTalkAllHelpMiscModulesOtherLayoutPhotosProjectsScriptsTidyingTidyingSDTODOUBXWIP2024-07-10 14:30:48

Purpose

edit

This script extends TalkHelper to further help when reading a long talk page.

The script does not alter any article but it highlights talk posts so that they are easier to read and provides a table of contents to the new talk posts.

Use

edit

The script hunts for timestamps previously found by the CommentsInLocalTime gadget and selects any that are for yesterday and today.

It then adds a background colour and border around each of the posts.

If any posts were found, the script will:

To provide space in the sidebar, the script also alters the existing sidebar menus so that they can be collapsed.

Prerequisites

edit

This script requires the CommentsInLocalTime gadget.

  1. Go to the gadgets tab of your preferences
  2. Enable "Change UTC-based times and dates, such as those used in signatures, to be relative to local time"
  3. Save

Installing

edit

Add the following line to your common.js file if you want version 2

{{subst:Lusc|User:GhostInTheMachine/TalkHelper2.js}}

or this line if you want the latest version

{{subst:Lusc|User:GhostInTheMachine/TalkHelper.js}}

Alternatives

edit

Version 1 of TalkHelper is simpler - it highlights posts from yesterday and today and maybe adds a menu button. It does not alter the sidebar or build a table of contents.

Bugs

edit

2022-07-27

edit

The TH2 script does not work on Wikipedia:Village pump (proposals), but is OK on the other VP pages.

investigating why this is, but it seems that the Wikipedia:Comments in Local Time gadget is not firing
2022-08-07
Cloned a fork of User:Gary/comments in local time.js so I could add debug etc.
Sussed — the VP page included the {{Skip to bottom}} template.
The template wraps the Skip to bottom button with a div that has the mw-parser-output class.
The CILT script intends to find the article body by looking for the div with the mw-parser-output class, and assumes there should only be one.
I removed the {{Skip to bottom}} template and all was OK again — see Wikipedia:Village pump (proposals) change 1102904261 → 1102906240)
2022-08-09
Gary altered the CILT gadget to search for the mw-body-content class instead — see User:Gary/comments in local time.js change 1103478700

2022-09-24

edit

Same issue for Wikipedia:Village pump (WMF)

the {{pp-pc}} was added – the padlock icon is (unnecessarily) wrapped in a div with the mw-parser-output class which causes a similar issue for my CILT clone
the mw-parser-output class was added by phab:T188443
2022-09-29
quick test to remove the {{pp-pc}} from Wikipedia:Village pump (WMF) — confirmed
need to alter TH2 to use the live version of CILT rather than my clone

June 2024

edit

Damage due to a series of changes to the HTML created for headings.

see   T365736 and more details in mw:Heading HTML changes

Possible improvements

edit

See also

edit

Retrieved from "https://en.wikipedia.org/w/index.php?title=User:GhostInTheMachine/TalkHelper2&oldid=1233715336"
 



Last edited on 10 July 2024, at 14:30  


Languages

 



This page is not available in other languages.
 

Wikipedia


This page was last edited on 10 July 2024, at 14:30 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop