User talk:PleaseStand/Archive 6
This is an archive of past discussions with User:PleaseStand. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 4 | Archive 5 | Archive 6 | Archive 7 |
References segregator
I am curious about the script for this tool. Why does your script use quotation marks when all other scripts I've installed use apostrophes? Is this an error? My76Strat (talk) 04:36, 27 April 2013 (UTC)
- What other scripts? RefToolbar 2.0 generally uses double quotes for ref names consisting of two or more space-separated words. (Unlike my script, it leaves single-word ref names unquoted.) PleaseStand (talk) 05:13, 27 April 2013 (UTC)
- Thank you. I am having trouble using this tool at the moment. I intend to triumph however. Perhaps I should not have added the script to my /css page? My76Strat (talk) 05:24, 27 April 2013 (UTC)
- All
importScript(...)
lines for user JavaScript must go in User:My76Strat/vector.js, and not in User:My76Strat/vector.css, which is reserved for Cascading Style Sheets code. (As JavaScript code,importStylesheet(...)
lines also belong in vector.js.)
- All
- Thank you. I am having trouble using this tool at the moment. I intend to triumph however. Perhaps I should not have added the script to my /css page? My76Strat (talk) 05:24, 27 April 2013 (UTC)
- However, your problem is most likely that the statement "
importScript('User:My76Strat/twinkleoptions.js');
" and the comment "[[User:My76Strat/twinkleoptions.js]]
" have become separated from each other, and the latter is a syntax error when on its own line outside a comment block. PleaseStand (talk) 05:40, 27 April 2013 (UTC)- Yes that was my exact problem. I appreciate the insight you've shared. Best regards, My76Strat (talk) 06:11, 27 April 2013 (UTC)
- Yeah, sorry for my confusion over your question. The actual answer is that just as with ref names, JavaScript allows a string literal (as in the
importScript(...)
line) to be either single- or double- quoted (yet the quotes are always necessary). PleaseStand (talk) 06:19, 27 April 2013 (UTC)
- Yeah, sorry for my confusion over your question. The actual answer is that just as with ref names, JavaScript allows a string literal (as in the
- Yes that was my exact problem. I appreciate the insight you've shared. Best regards, My76Strat (talk) 06:11, 27 April 2013 (UTC)
- However, your problem is most likely that the statement "
- I'm getting the hang of it now; very useful, thanks. One area that I found confusing was in searching for the Green <Ref> symbol. I never did find one and for me, it's a green button with the words "Segregate refs for editing". Do you have advice for dealing with the red error messages when someone removes content with the ref name from the article? My76Strat (talk) 02:32, 28 April 2013 (UTC)
- OK, so when I end up modernizing the script, actually using the symbol shown above in the edit toolbar will be on my to-do list.
- As for cleaning up after an accidental deletion of ref contents (e.g. from splitting off a section into a separate article), you should be able to open both the current revision and an old revision for editing, click the green button in both edit windows, and copy the missing footnotes to the new revision: remove the incomplete entries (e.g.
<ref name="smith"/>
) from the list and add the complete ones (e.g.<ref name="smith">Smith, John (2013). [...]</ref>
) at the bottom. The script will try to match up ref names automatically. PleaseStand (talk) 04:13, 28 April 2013 (UTC)
A barnstar for you!
The Technical Barnstar | |
Hide Vector Sidebar is a very useful script. Thank you. xander (talk) 16:17, 24 July 2013 (UTC) |
Thanks! PleaseStand (talk) 23:28, 3 September 2013 (UTC)
Take another barnstar
Another Technical Barnstar | |
I hear you found and reported a mediawiki bug! Good on you!172.218.56.70 (talk) 19:46, 3 September 2013 (UTC) |
Thanks! PleaseStand (talk) 23:28, 3 September 2013 (UTC)
Userinfo script
Regarding your userinfo script User:PleaseStand/userinfo.js, you might want to update the edit counter tool from the toolserver link to the new wmflabs one, ie [1] to [2]. The old one does not update properly. Thanks, Rcsprinter (discuss) @ 00:19, 27 November 2013 (UTC)
- Done. Thanks for reminding me to do this. PleaseStand (talk) 01:17, 27 November 2013 (UTC)
User Info script, show on all user pages rather than just the top-level one?
Hi, would it be possible to make your User Info script show on all of a user's subpages, rather than just their top-level user page? I forked your script a few years ago to do this, plus a few other things, but I'd rather not maintain a separate version of your script because changes always need to be made to it and I don't want to maintain a separate copy. I also made the User Info script work on a user's Contributions page as well. Or is there a particular reason why you chose not to do this, since it looks like you explicitly specify not to do this in your script?
Anyway to do it, you'd have to find the following:
if((wgNamespaceNumber == 2 || wgNamespaceNumber == 3) && !(/\//.test(wgTitle))) {
And replace with:
if(wgNamespaceNumber == 2 || wgNamespaceNumber == 3 || mw.config.get('wgCanonicalSpecialPageName') == 'Contributions') {
And that should do the trick. Thanks in advance. Gary King (talk · scripts) 18:16, 27 November 2013 (UTC)
- I excluded subpages because both User:Fran Rogers/dimorphism.js and User:Splarka/sysopdectector.js did, not that excluding subpages made much sense. As for showing the info on contributions pages, the proper approach would be to check
mw.config.get( 'wgRelevantUserName' )
. That variable was added only recently, in gerrit:88773. I will make the change once I get the time to test it. PleaseStand (talk) 05:54, 28 November 2013 (UTC)
- So no chance of getting User Info to appear on subpages? Gary King (talk · scripts) 23:09, 28 November 2013 (UTC)
XOR Swap
I modified your XOR Swap svg to always color code x and y. I couldn't find a way to upload it as a revision, so it's uploaded separately.
https://commons.wikimedia.org/wiki/File:XOR_Swap_-_color_coded.svg
Feel free to incorporate the changes.
76.21.170.119 (talk) YIG —Preceding undated comment added 18:30, 27 December 2013 (UTC)
SegregateRefs
Hi! I have your SegregateRefs script installed. It used to work fine, and was very useful for migrating to WP:LDR. But it no longer appears in my sidebar. I'm now not sure whether I ever had it after the switch to https://. Is there a way to fix this? (MacOS 10.6.8, Safari 5.1.10). Many thanks, Justlettersandnumbers (talk) 15:04, 12 January 2014 (UTC)
- Did you do something to fix it? Anyway, it's back, many thanks! Justlettersandnumbers (talk) 18:00, 12 January 2014 (UTC)
I made a fork of User:PleaseStand/userScriptSandbox.js at User:Kephir/gadgets/jssand.js: I integrated the Ace editor (falling back to plain textarea the CodeEditor extension is unavailable) and added oninput event handler (to better detect when the textarea changes). I am not sure I want to maintain this indefinitely, so feel free to merge it back. — Keφr 10:34, 6 April 2014 (UTC)
User Info script
Hey, X!'s edit counter has been discontinued and replaced by Cyberpower, so the URL in this line of your userinfo.js script
// Edit count
if(editcount !== null) {
statusText += ", with " +
"<a href=\"//tools.wmflabs.org/xtools/pcount/index.php?name=" +
encodeURIComponent(user.name) +
"&lang=en&wiki=wikipedia\">" +
UserinfoJsFormatQty(editcount, "edit", "edits") + "</a>";
}
should be replaced with
// Edit count
if(editcount !== null) {
statusText += ", with " +
"<a href=\"//tools.wmflabs.org/supercount/index.php?name=" +
encodeURIComponent(user.name) +
"&project=en.wikipedia\">" +
UserinfoJsFormatQty(editcount, "edit", "edits") + "</a>";
}
(or something like that). Thanks, ansh666 08:23, 6 April 2014 (UTC)
- There's an "x" on a line by itself, which shouldn't be there. Gary (talk · scripts) 17:08, 6 April 2014 (UTC)
- Fixed. Thanks for spotting this. It would seem that the script just happened to work because of the variable x for the XMLHttpRequest and automatic semicolon insertion. PleaseStand (talk) 21:02, 6 April 2014 (UTC)
- There's an "x" on a line by itself, which shouldn't be there. Gary (talk · scripts) 17:08, 6 April 2014 (UTC)
A kitten for you!
Awesome job on making this script. I hope Wikipedia eventually allows you to hide the sidebar as a built-in option.
MeanMotherJr (talk) 05:21, 9 May 2014 (UTC)
sfn's
User:PleaseStand/References segregator Greetings, I stumbled on this and found the page rather technical for my Wikimojo, so I wonder if you could help with some advice? I write on a lot of old pages like Second Battle of the Odon, many of which have been dormant for years and have <> </> references. I've found that sfn's suit me best and would like to know if there is a script which can change the references to sfns? RegardsKeith-264 (talk) 17:25, 9 June 2014 (UTC)
- @Keith-264: Sorry for the delayed reply. No, I'm not aware of such a script, though if you find out about one, I would like to know. PleaseStand (talk) 14:04, 7 July 2014 (UTC)
- Ah well, if I find one I'll get in touch. Thanks and greetings to the cat above.Keith-264 (talk) 14:21, 7 July 2014 (UTC)
Orphaned non-free image File:Mushroom in the Sand cover.jpg
Thanks for uploading File:Mushroom in the Sand cover.jpg. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).
Note that any non-free images not used in any articles will be deleted after seven days, as described in the criteria for speedy deletion. Thank you. Stefan2 (talk) 23:50, 7 July 2014 (UTC)
A barnstar for you!
The Technical Barnstar | |
I award you this technical star for your good work in creating scripts. I ask you to create more user friendly scripts. Thanks, Jim Carter (from public cyber) 08:06, 20 August 2014 (UTC) |
Your script userinfo.js on different lang mutation of wikipedia
Hi, I copied youruserinfo.js into my vector.js at cs.wiki, but it shows only gender image next to my name. The script code is too difficult for me, I could translate the text, but I cant get it to show the information (editcount, accountage). Could you advice me on how to fix it? If it is a quick and easy fix, feel free to edit my common.js page. Your help is appreciated, thank you. --Wesalius (talk) 06:06, 2 September 2014 (UTC)
Your script userinfo.js
Hello, could modify your script to display male/female badges in the same line with user title and make this badge gray? The problem is that current implementation crashes layout a little. Current apperance:
User:Rezonansowy
Last edited by Rezonansowy (talk · contribs)
♂
It should look like this:
User:Rezonansowy ♂
Last edited by Rezonansowy (talk · contribs)
Regards, --Rezonansowy (talk | contribs) 11:46, 22 October 2014 (UTC)
Wikipedia:Village pump (technical)/Archive 133#Custom notices on user .js and .css pages
You are invited to join the discussion at Wikipedia:Village pump (technical)/Archive 133#Custom notices on user .js and .css pages. Thanks. — {{U|Technical 13}} (e • t • c) 14:58, 6 January 2015 (UTC)
User info code
Would it be possible to update the code in your user info script to the below?
"<a href=\"//tools.wmflabs.org/xtools/ec/?user=" + encodeURIComponent(user.name) + "&project=wiki.riteme.site&uselang=en\">" +
to
"<a href=\"//tools.wmflabs.org/xtools-ec/index.php?user=" + encodeURIComponent(user.name) + "&&project=wiki.riteme.site&uselang=en\">" +
Thanks! Kevin Rutherford (talk) 14:36, 13 February 2015 (UTC)
- Done for User:PleaseStand/userinfo.js. The link used to point to supercount (for a while) but had been changed by an admin in October 2014. User:PleaseStand/userinfo-dev.js, an experimental version of the script I started developing a while ago, still points to supercount. I'll have to look into what the differences between the two edit counters are, as well as which other changes to userinfo.js are still relevant for userinfo-dev.js. PleaseStand (talk) 19:13, 13 February 2015 (UTC)
removing left sidebar
Hi, Your page is the ONLY reference I have found for removing the left sidebar. Really excited about this.
Found here: https://wiki.riteme.site/wiki/User:PleaseStand/Hide_Vector_sidebar
Can you expand on the install instructions? I did not add it to 'User:myname/vector.js', but instead 'User:myname/common.js'. This didn't exist before I created it.
Also why have the vector skin check at the end if it is added to the skin javascript directly? I just realized I added it to global first, and the check did work. Moving it over to vector.js now...
I fumbled through but expanded instructions may help others.
Also, the shortcut key does not work to un-hide on Macs. Not that I want to unhide it... I could not figure out what to edit in the code to change the shortcut keys.
It also loads after all of the page content, is there a way to load it before so the sidebar doesn't appear then disappear, or edit the skin directly?
Thanks! Hyperduc (talk) 16:45, 10 May 2015 (UTC)
- vector.js versus common.js: Adding the code to vector.js causes it to be loaded only when useful: when you use Vector rather than MonoBook or another skin. If you only use Vector and don't switch skins, using common.js instead should not hurt performance. (The check in the script itself is a safeguard to ensure that the script will not affect other skins, and possibly cause problems, if you do load the script from common.js.)
- Mac shortcut key: Try Ctrl+⌥ Option+a instead of Alt+⇧ Shift+a. See Access key#Access in different browsers. If that doesn't work, it may be necessary to change the letter key (
'a'
) in the script. - Sidebar flashing: It's probably possible to change the script to avoid it, though such a change would be substantial and have to be paired with a change to your vector.css page. (All code from common.js and vector.js is loaded at the bottom of the page.) The workaround I have in mind would involve defining all style overrides in vector.css, which is loaded before the page content, then when the sidebar is to be shown, somehow disabling the overrides from JS. PleaseStand (talk) 05:54, 12 May 2015 (UTC)
segregate-refs.js
The script replaces some of the <ref instances with the weird-looking <REF. Although this does not affect functionality, it would be better if the script simply wouldn't do this. Could you fix this? I think the problem is in the following lines:
refShort = caseCues ? refLong.replace( /^<REF/, "<ref" ) : refLong; if ( caseCues && ref.slice( 0, 4 ) == '<REF' ) { ref.slice( 0, 4 ) != '<REF'
--JorisvS (talk) 12:26, 13 September 2015 (UTC)
Hi,
You appear to be eligible to vote in the current Arbitration Committee election. The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to enact binding solutions for disputes between editors, primarily related to serious behavioural issues that the community has been unable to resolve. This includes the ability to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail. If you wish to participate, you are welcome to review the candidates' statements and submit your choices on the voting page. For the Election committee, MediaWiki message delivery (talk) 14:14, 24 November 2015 (UTC)
A pie for you
Hi PleaseStand. You have created template:Pie chart five years ago. Please have a look at template:PieChart, which is based on extension:graph and vega specificaton, example usage:
{{PieChart|title="Fruits"|radius=75|values= [
{"x": "perziken","y": 100},
{"x": "pruimen","y": 32},
{"x": "bessen","y": 80},
{"x": "aardbeien","y": 46},
{"x": "bananen","y": 41}
]
}}
Graphs are unavailable due to technical issues. There is more info on Phabricator and on MediaWiki.org. |
Ad Huikeshoven (talk) 12:11, 24 December 2015 (UTC)
template:piechart has been moved to template:graph:PieChart .
template:piechart has been moved to template:graph:PieChart . Ad Huikeshoven (talk) 20:17, 24 December 2015 (UTC)
Bug with the user info script
I love this script, but recently I've noticed that the information is being repeated twice. For example, on this page, it shows (without the links):
A reviewer and rollbacker, 6 years 2 months old, with 7,503 edits. Last edited 2 weeks ago. A reviewer and rollbacker, 6 years 2 months old, with 7,503 edits. Last edited 2 weeks ago. From Wikipedia, the free encyclopedia..
I've tested in IE11, Firefox, and Chrome. Any idea why this is happening? Eman235/talk 00:53, 20 December 2015 (UTC)
Silly me! I tried to get it globally by moving it to meta (I did it properly later), but forgot to take it out of my JS file here... Eman235/talk 20:13, 27 December 2015 (UTC)
Hide vector sidebar
Wikibits is going away. See email. One of the identifiers that is being removed is "importScript". When I replace "importScript" with "mw.loader.load" in my vector.js file, your script no longer works. Bgwhite (talk) 08:47, 2 April 2016 (UTC)
A barnstar for you!
The Technical Barnstar | |
Great work! Sidebar hider is a productivity booster for vertical screen! Nulusr (talk) 05:14, 17 April 2016 (UTC) |
Request
Feature request/proposal/suggestion: How 'bout making User:PleaseStand/References_segregator support conversion to the 'acceptable' compromise (especially for small articles): only use LDR for citations used multiple times suggested at Help:List-defined_references#Usage_notes. I wouldn't use "var SegregateRefsJsAllowConversion = true;" to convert every ref to LDR, but I'd use "var SegregateRefsJsAllowCompromiseConversion = true;" to convert all citations used multiple times to LDR. --Elvey(t•c) 19:26, 19 May 2016 (UTC)
New user group for userinfo.js
Hi PleaseStand, thanks for your awesome userinfo script - I've noticed with the advent of 'extendedmover', userinfo does not have a friendly name entry and thus brings up undefined when clicked. I think the following should fix this:
var friendlyGroupNames = { extendedmover: "Page mover",
Thanks again! -- samtar talk or stalk 08:47, 28 May 2016 (UTC)
- Fixed in revision #722849048. In addition to the missing friendly name entry, there were two bugs:
- Because of a missing API parameter, the script did not load locally defined grouppage-* messages.
- When a grouppage-* message was missing, the script would try to create a link anyway (to undefined). PleaseStand (talk) 14:15, 30 May 2016 (UTC)
User info request/question
Is it possible to include global groups in your script? — Music1201 talk 00:44, 15 June 2016 (UTC)
Userinfo.js
The script seems to be be repeating itself...you are "An extended confirmed user, pending changes reviewer, and rollbacker, 6 years 9 months old, with 7,554 edits. Last edited 22 hours ago. An extended confirmed user, pending changes reviewer, and rollbacker, 6 years 9 months old, with 7,554 edits. Last edited 22 hours ago. From Wikipedia, the free encyclopedia.." Reventtalk 04:30, 1 August 2016 (UTC)
- (talk page stalker) I believe you made the same mistake I did back in December—you've got it here and here. Taking out of the local file should fix it. Eman235/talk 16:02, 1 August 2016 (UTC)
A barnstar for you!
The Technical Barnstar | |
Thanks for this. Iazyges Consermonor Opus meum 03:57, 29 September 2016 (UTC) |
ArbCom Elections 2016: Voting now open!
Hello, PleaseStand. Voting in the 2016 Arbitration Committee elections is open from Monday, 00:00, 21 November through Sunday, 23:59, 4 December to all unblocked users who have registered an account before Wednesday, 00:00, 28 October 2016 and have made at least 150 mainspace edits before Sunday, 00:00, 1 November 2016.
The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to impose binding solutions to disputes between editors, primarily for serious conduct disputes the community has been unable to resolve. This includes the authority to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail.
If you wish to participate in the 2016 election, please review the candidates' statements and submit your choices on the voting page. MediaWiki message delivery (talk) 22:08, 21 November 2016 (UTC)
highlight comments bug
Hey. Your script User:PleaseStand/highlight-comments.js thinks the other person's comment is also mine: see example: Wikipedia_talk:Noticeboard_for_India-related_topics#Swami_Nithyananda_BLP_issues, the comment starting with "Thank you Ugog Nizdast. Yes, ..." is also highlighted besides mine. Ugog Nizdast (talk) 12:20, 6 January 2017 (UTC)
hide-vector-sidebar.js
It seems your script has a typo: The first one should be "Show sidebar" rather than "Hide sidebar". --Fylwind (talk) 08:39, 9 March 2017 (UTC)
- @Fylwind: Fixed. This was an error I made over three years ago (revision #580854026, 9 November 2013) when I was replacing uses of deprecated MediaWiki JS functions. PleaseStand (talk) 08:04, 15 March 2017 (UTC)