|
Greatly appreciate the copyediting, clarity tweaks and additions! You cannot imagine the number of hours I spent writing this thing and having to rewrite additions. Have a cookie on me.-- Fuhghettaboutit 23:40, 14 September 2006 (UTC)
Thanks for your comments on the draft naming convention. If you are interested, please join the Wikiproject Cue sports (at its temporary location in my userspace), and support its nomination to become an official WikiProject. — SMcCandlish [ talk] [ contrib ツ 14:58, 22 November 2006 (UTC)
I really appreciate all of your edits on US islands, but why did you replace my svg with the original png on Midway Atoll? Thank you. -- Indolences 19:21, 14 February 2007 (UTC)
Just wanted to note: the format for the introduction for Blue Rapids is standard, calling it a city and giving the exact population as of the 2000 census. Nyttend 11:58, 7 June 2007 (UTC)
An editor has nominated Wardrobe malfunction, an article on which you have worked or that you created, for deletion. We appreciate your contributions, but the nominator doesn't believe that the article satisfies Wikipedia's criteria for inclusion and has explained why in his/her nomination (see also " What Wikipedia is not").
Your opinions on whether the article meets inclusion criteria and what should be done with the article are welcome; please participate in the discussion by adding your comments at Wikipedia:Articles for deletion/Wardrobe malfunction and please be sure to sign your comments with four tildes (~~~~).
You may also edit the article during the discussion to improve it but should not remove the articles for deletion template from the top of the article; such removal will not end the deletion debate. Thank you. BJBot ( talk) 07:59, 8 February 2008 (UTC)
I don't use JAWS 10 – I use JAWS 8 due to pricing concerns. Anyway, the same page links work reasonably well if you wait about two seconds after pressing enter on the link. I don't know what the reason is for the wait. The family tree template works well, except JAWS 8 usually says gibberish like "father child child child child" when I press enter on the link. I don't have time to try it on JAWS 10 now, but I'd expect it'd be the same for the more recent versions of JAWS. Graham 87 01:12, 27 December 2008 (UTC)
Hellow, I need some help for using javascripts in HTML. I am trying to make collapsiple unordered lists. Please see the following unordered list. I want that if I click on "Windows", then 1998, 2000, XP and Vista will be shown; and if I again click on "Windows", then 1998, 2000, XP and Vista will be collapsed. I want to apply this to all components of the list. Please show me the structure. You can contact me to my talk page. -- Amit ( Talk | Contribs) 11:33, 26 February 2009 (UTC)
Hello GregU, based on your work on this, I'm assuming you know your way around JavaScript and regexes. If it's not too much trouble, then, would you mind taking a look at the edit summary code in User:Dinoguy1000/scripts/ISO date format unifier.js and seeing if you can find why the summary doesn't get added when the summary field is blank? While you're there, also feel free to recommend other fixes or improvements as well. =) Thanks in advance! 「 ダイノガイ 千?!」 ? · Talk⇒Dinoguy1000 18:36, 9 October 2009 (UTC)
if( pageSummary.match(/[^\s]/) )
is explicitly saying to only augment the summary if there are already any (non-space) characters in it. I'm guessing this if
was supposed to be checking newPageSummary
instead; that would make sense.(?![\w-])
which says the next thing must not be a letter, digit, or hyphen, but otherwise doesn't affect the logic. JavaScript doesn't support look-behind assertions, so on the left end you would need to explicitly match a preceding [^\w-]
and then adjust the following code to ignore that extra character being eaten. Or... at least add a \b (word boundary assertion) to the left end, which may be good enough and will ensure the preceding character is not a letter or digit. Then no other code changes are needed. Add it here: /(\[\[)?\b([0-9][0-9]...
newPageSummary
will never be blank.
if
statement./(\[\[)?([0-9][0-9][0-9][0-9])(\]\])?-(\[\[)?([0-1][0-9])-([0-3][0-9])(\]\])?/
with /(\[\[)?\b([0-9][0-9][0-9][0-9])(\]\])?-(\[\[)?([0-1][0-9])-([0-3][0-9])(\]\])?(?![\w-])/
– and while we're on the subject, could I replace ([0-9][0-9][0-9][0-9])
with (\d{4})
?
([0-3][0-9])\b(?!-)(\]\])?/
Yes \d{4} is the same thing. I didn't suggest it as thought you might consider it more readable if all parts of the regex used the same style (i.e., it doesn't really affect the efficiency of the matching, just what is most human-readable), plus you might want to tighten the first digit of the year to be [12].pageSource = pageSource.replace( /regex/, formatDate( date, formattingAmericanStyle ) );
(and if that's correct, how do I pull date
from the regex? something like $1 $2 $3
?)? 「
ダイノガイ
千?!」
? ·
Talk⇒Dinoguy1000 16:41, 10 October 2009 (UTC)
/(\[\[)?\b([0-9][0-9][0-9][0-9])(\]\])?-(\[\[)?([0-1][0-9])-([0-3][0-9])\b(?!-)(\]\])?/
) 「
ダイノガイ
千?!」
? ·
Talk⇒Dinoguy1000 17:16, 15 October 2009 (UTC)
[[
should occur with 260 since max page title is around 250–255). If finds a [[
within that substring with no following ]]
then this is a link name, so don't touch. (Replace with the original string, resulting in no change.) Perhaps unlikely for ISO dates; that's left over from dashes.js. The URL heuristic is, if it finds a colon, slash or percent sign with no [\s|>
between it and the ISO date, then it's in a URL or some other funky ID-like string. For this code to work, I added the optional "pos" and "string" parameters to the replace function. String is the entire string being searched, and pos is the index of where the current match was found in it. —
GregU (
talk) 20:11, 15 October 2009 (UTC)
Hi Greg, I must say I was surprised to see this suddenly in the menu at the top. You must have influence to have had it inserted generally.
It seems to work very well. I'm delighted it's been added. It fixes only hyphens that are used wrongly for number/date ranges (not em dashes—I can see why), and doesn't correct wrongly spaced existing or treated en dashes (that would be very complicated). Tony (talk) 12:03, 10 November 2009 (UTC)
Hi Greg
Does the bot change the minus sign into an en dash? Please see this diff. Tony (talk) 09:07, 24 November 2009 (UTC)
importScript("User:GregU/dashes.js");
so that you're always using the latest version (and so your monobook.js is simpler). —
GregU (
talk) 15:21, 25 November 2009 (UTC)
Would this be considered an avoidable false positive? The hyphens in 51-830 and 51-890 appear to have been converted into dashes... Ohconfucius ¡digame! 09:16, 15 December 2009 (UTC)
I just installed hotkeys.js (on User:Ucucha/vector.js). It's a great tool, but I have two issues: it's not compatible with wikEd, in that the hotkeys don't work when wikEd is enabled; and for me at least, the hotkeys both insert the defined text and do what the default MediaWiki keys do (for example, when I use Ctrl+M it inserts the defined text, but also tries to move the page). It would be great if you could fix these issues. I'm using Firefox 3.5.5 on Mac OS X 10.5. Thanks, Ucucha 16:23, 25 November 2009 (UTC)
Hi there. A couple of things on your dash script need fixing; can you see User talk:GregU/dashes.js when you get the time? Thanks, Dabomb87 ( talk) 03:19, 16 February 2010 (UTC)
I do have to say that your dash script is absolutely fabulous, but the general convention (at least around FLC) has been that blank table cells should use em-dashes, rather than en-dashes. If you wouldn't mind making that minor adjustment, it would be much appreciated. Thanks! KV5 ( Talk • Phils) 13:05, 5 February 2010 (UTC)
Hi - I've added your script but keep getting an 'unable to comply' message - is there something else I need to do? pablo hablo. 10:02, 7 February 2010 (UTC)
Greg, I'm passing on this suggestion, which was posted on my talk page. Tony (talk) 23:30, 15 March 2010 (UTC)
You may want to reconsider the wisdom of your dash-replacement bot, as replacing HTML character entities with the actual character they represent could potentially cause problems with web browsers that don't handle character encodings properly. The character entities are guaranteed to work, and having them in the text does no harm; removing them could cause problems. I'm not sure what productive purpose is served by removing them. Kurt Weber (Go Colts!: 16-0 and Super Bowl XLIV Champions) 21:08, 15 March 2010 (UTC)
Thanks for addressing it :). I tried it in my sandbox, and it's still replacing n and m-dashes with the dashes themselves; I might have missed something here, but maybe you only fixed the bot's script? Airplaneman talk 14:20, 19 March 2010 (UTC)
I just followed a link to here. I believe that such scripts should pretty much always replace character entities with the actual character. About the only exceptions will be nbsp and thinsp. The future is what we make it, and it's not ASCII. — Jack Merridew 18:46, 5 April 2010 (UTC)
Hi Greg, do you plan to make the dash script compatible with Vector? Or, is it ready now and is there something I have to do to make it work? Thanks, Dabomb87 ( talk) 02:38, 3 April 2010 (UTC)
Hi Greg. I use your dash script all the time, but tonight, for the first time ever, it fixed a hyphen within a {{ sortname}} template and broke the link. Just thought you should know. The edit was this one, focus on the top link, the one to an ambiguous Mick O'Brien. All that aside, your script is excellent, keep up the great work. The Rambling Man ( talk) 19:38, 2 May 2010 (UTC)
Hello GregU, it's Airplaneman. I was wondering if we could somehow port this script over to Simple Wikipedia so it can be used there. It would help a lot – right now, I'm copying to my sandbox, running the script, and copying back (with a link to the script in my edit summary, of course :D). Thanks, Airplaneman ✈ 05:39, 5 July 2010 (UTC)
Please see my reply under User_talk:Cacycle/wikEd#FixDashes_contribution. Cacycle ( talk) 19:49, 25 August 2010 (UTC)
Hi Greg: it appears that the script changes minus signs into en dashes: − into –. Could you alter it so it leaves the minus-sign code intact? Minus signs are different from en dashes, although only slightly. Mathematicians (and the MoS) insist on them. Tony (talk) 11:20, 8 September 2010 (UTC)
(Now there's a subject I never in my wildest dreams imagined I'd ever write about!)
User:GregU/dashes.js does WP:OVERLINK fixing, which has recently been discussed at WT:BISE (a forum for discussing use of the term "British Isles"). It looks like the script is de-linking every instance of "British Isles" (and other articles), including the first. Is that expected? I understand that certain words and phrases probably shouldn't be linked at all, but "British Isles" seems to be something that should be linked to on the first occurrence. Help! TFOWR 20:23, 4 October 2010 (UTC)
I like how the dash script is activated by the drop-down tab button (as opposed to the more common side bar button). However, looking through the code, I could not find how it's done. I found a bit of code somewhere else. I get a drop-down button, but still have difficulty understanding the code and getting it to work properly. Could you perhaps help me to build the relevant addhook function for my common terms script, please? Many thanks in advance. -- Ohconfucius ¡digame! 04:44, 21 September 2010 (UTC)
The Original Barnstar | ||
This one is long overdue. After using your dashes.js script for more than a year, I have nothing but good words to say about it. It is exemplary in its comprehensiveness and reliability. Thank you! — Quibik ( talk) 17:17, 20 October 2010 (UTC) |
Thanks Quibik, this means a lot to me! I'm sorry I took so long to respond... went and got hitched, and not finding time to get back to Wikipedia. — GregU ( talk) 14:21, 25 February 2011 (UTC)
Hi Greg, I am interested in using your hotkeys.js script as I use a lot of en dashes, and scrolling down to find it on the insert bar is inconvenient. I think I installed it correctly but I can't get any of the hotkeys to work, and Ctrl- just reduces the text size in Chrome. Any ideas? Thanks in advance. – CWenger ( talk) 16:39, 4 January 2011 (UTC)
I don't know whether it's stylistically correct to use the endash to display temperatures... In my own script, I call on autoEdFunctions() used in your script. A transformation made apparently caused problems with the correct display. (see correction diff). Please advise whether correction of same is within your province, or whether I should contact the template programmers or those responsible for AutoEd. Cheers, -- Ohconfucius ¡digame! 05:26, 18 January 2011 (UTC)
Hi, I was just wondering, does this tool not work with the new Wikipedia layout? I used to like using this, but didn't notice it disappeared. Is there any way you can tweak it to work again? Thanks, Blake ( Talk· Edits) 14:28, 24 February 2011 (UTC)
importScript("User:GregU/randomlink.js")
Thanks for covering for me Ohconfucius. And thanks for pointing out the documentation rot Blake, I've updated it now. Will try to get back to the dashes issues above too, so keep pointing out the glitches. — GregU ( talk) 14:26, 25 February 2011 (UTC)
I posted a request at Wikipedia_talk:WikiProject_Genealogy#Hotung a while bqck, and there hasn't been much of a response. SO I've loaded your script and will be trying it soon. Hope it is as easy as you suggest to create a family tree, and/or that you will hang around! :-) -- Ohconfucius ¡digame! 15:04, 25 February 2011 (UTC)
Dashes script changes dashes in image names that breaks link to them. This is a somewhat messy example (see "gallery" in this edit). Otherwise great script. Cheers. Materialscientist ( talk) 04:45, 27 February 2011 (UTC)
Hi Greg. I created User:Epipelagic/vector.js, and added your script and shift-reloaded, but no "–" tab has been "added to the tabs at the top" of anything that I can see. I use Firefox on a Mac. Javascript is enabled, and I don't use wikEd or AutoEd. What I am doing wrong? -- Epipelagic ( talk) 00:35, 28 February 2011 (UTC)
Hi Greg. I wonder if you have considered adding a feature to the dashes script that removes spaces around em dashes. I see this a lot, against what the WP:MOS says, and it would be a very simple addition. – CWenger ( talk) 16:20, 26 March 2011 (UTC)
I tried importing User:GregU/familytree.js in my common javascript file at User:Banaticus/common.js but I'm not seeing anything different when I edit posts. What should I be seeing, how does it help? Please let me know on my user page when you return from your Wikibreak, thanks. :) Banaticus ( talk) 04:55, 27 March 2011 (UTC)
Some users have been using your script and causing problems with the DentalFormula as can be seen here [ [3]] and here [4]] FrostedΔ 14 01:56, 30 April 2011 (UTC)
\mbox{ }
, it will break out of the math parser for parsing the ndash (see
Template:DentalFormula/sandbox). However, the font size is now the same size as the surrounding text (e.g., ). There is probably a way to fix this as well, but I would have to do more testing. Thanks!
Plastikspork
―Œ(talk) 19:19, 1 May 2011 (UTC)
Sorry, just what you didn't want to hear! The spacing in date ranges is different depending on mdy or dmy. In particular, a squashed "1952–11 May 1956".
Thanks! Tony (talk) 15:47, 22 May 2011 (UTC)
You may be interested in User_talk:GregU/dashes.js#AutoEd_help and Wikipedia_talk:AutoEd#Choosing_your_own_modules_is_very_unclear. -- Piotr Konieczny aka Prokonsul Piotrus| talk 16:55, 5 July 2011 (UTC)
The Technical Barnstar | |
For your awesome dashes script—it saves a lot of work! InverseHypercube 00:50, 5 August 2011 (UTC) |
The Technical Barnstar | |
For your amazing dash script :) ♫Greatorangepumpkin♫ Hey it's me I am dynamite 14:52, 24 August 2011 (UTC) |
I can't get dashes to work with AutoEd. I've asked for help at WT:AutoEd and at dashes.js talk but no luck so far. Any suggestions? Thanks! — danhash ( talk) 21:52, 8 December 2011 (UTC)
Hi! It's been awhile, but I found the report on Saudia Flight 163 on Skybrary.aero. It's in English too WhisperToMe ( talk) 09:56, 26 December 2011 (UTC)
Hi. Did you mean to create Vector.js as a user subpage? -- ArglebargleIV ( talk) 14:30, 6 January 2012 (UTC)
This means you. -- Tagishsimon (talk) 11:54, 17 January 2012 (UTC)
The Brilliant Idea Barnstar | |
Thanks for the great dash script. It's saved me loads of time! Del♉sion23 (talk) 21:47, 20 March 2012 (UTC) |
I thought you might want to know about some upcoming events where you can learn more about MediaWiki customization and development, extending functionality with JavaScript, the future of ResourceLoader and Gadgets, the new Lua templating system, how to best use the web API for bots, and various upcoming features and changes. We'd love to have power users, bot maintainers and writers, and template makers at these events so we can all learn from each other and chat about what needs doing.
Check out the the Berlin hackathon in June, the developers' days preceding Wikimania in July in Washington, DC, and our other events.
You can register now for the Berlin event and if you need financial help or visa help, just mention that in the registration form.
Best wishes! - Sumana Harihareswara, Wikimedia Foundation's Volunteer Development Coordinator. Please reply on my talk page, here or at mediawiki.org. Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator 13:53, 2 April 2012 (UTC)
Greg, your dash fixer continues to have a major positive impact on the project. It's great to have the timezones in infoboxes rendered by proper minus signs, but I discovered extra spaces in this edit. When you have time. Thx. Tony (talk) 13:02, 10 April 2012 (UTC)
Greg, is it possible to remove the spacing in this context so that, for example, [[May 21]]-[[May 22|22]] becomes May 21–22, not May 21 – 22? Thanks. Tony (talk) 07:51, 18 May 2012 (UTC) Here's an example. Tony (talk) 04:36, 28 May 2012 (UTC)
Hi Greg, I don't know whether you'll see this, but I'm looking for some advice regarding User:GregU/dashes.js. I've added this to my monobook because I'm tired of having to search for en dashes, so I've decided to use hyphens instead, even if it's wrong. Then I saw your script and thought I could run it on articles where I'm using hyphens. So I added it to my monobook page but nothing has changed that I can see (nothing new in the toolbox, for example). Can you advise? SlimVirgin (talk) 22:49, 18 October 2012 (UTC)
Hi Greg. Suddenly the button has gone, replaced with "auto ed". Any ideas? Tony (talk) 08:53, 27 October 2012 (UTC)
Wanted to make sure you had noticed the discussion at User talk:GregU/dashes.js#Redirects.— Kww( talk) 19:03, 24 April 2013 (UTC)
Hi, I only wanted to advice you that I have translated and adapted your familytree and hotkeys scripts to the Galician wikipedia here and here. Thanks for your work, bye, -- Elisardojm ( talk) 00:54, 16 July 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) 16:16, 23 November 2015 (UTC)
Hi Greg,
I see you haven't edited in three years, so I hope real life is treating you well. I use your excellent dash script all the time, and just wanted to report a very minor problem – the first I've found! When run on
this version of
Apple Inc., the script wants to change the second hyphen in <!-- 9:55 AM ET-->
, which of course breaks the comment.
Cheers, Adrian J. Hunter( talk• contribs) 05:31, 19 December 2015 (UTC)
I'm kind of at fanboy level in the field of programming, so I'm still amazed at people like you who can do this
kind of stuff. When I saw your sript I instantly added it. I'll take it for a test run for a few days and I'll be back for feedback if anything happens.
In any case, thanks for your dedication, dude!
Cheers!
Double Plus Ungood (
talk) 16:02, 20 March 2018 (UTC)
User:GregU/familytree, a page which you created or substantially contributed to, has been nominated for deletion. Your opinions on the matter are welcome; you may participate in the discussion by adding your comments at Wikipedia:Miscellany for deletion/User:GregU/familytree and please be sure to sign your comments with four tildes (~~~~). You are free to edit the content of User:GregU/familytree during the discussion but should not remove the miscellany for deletion template from the top of the page; such a removal will not end the deletion discussion. Thank you. — Mr. Guye ( talk) ( contribs) 12:35, 20 July 2019 (UTC)
|
Greatly appreciate the copyediting, clarity tweaks and additions! You cannot imagine the number of hours I spent writing this thing and having to rewrite additions. Have a cookie on me.-- Fuhghettaboutit 23:40, 14 September 2006 (UTC)
Thanks for your comments on the draft naming convention. If you are interested, please join the Wikiproject Cue sports (at its temporary location in my userspace), and support its nomination to become an official WikiProject. — SMcCandlish [ talk] [ contrib ツ 14:58, 22 November 2006 (UTC)
I really appreciate all of your edits on US islands, but why did you replace my svg with the original png on Midway Atoll? Thank you. -- Indolences 19:21, 14 February 2007 (UTC)
Just wanted to note: the format for the introduction for Blue Rapids is standard, calling it a city and giving the exact population as of the 2000 census. Nyttend 11:58, 7 June 2007 (UTC)
An editor has nominated Wardrobe malfunction, an article on which you have worked or that you created, for deletion. We appreciate your contributions, but the nominator doesn't believe that the article satisfies Wikipedia's criteria for inclusion and has explained why in his/her nomination (see also " What Wikipedia is not").
Your opinions on whether the article meets inclusion criteria and what should be done with the article are welcome; please participate in the discussion by adding your comments at Wikipedia:Articles for deletion/Wardrobe malfunction and please be sure to sign your comments with four tildes (~~~~).
You may also edit the article during the discussion to improve it but should not remove the articles for deletion template from the top of the article; such removal will not end the deletion debate. Thank you. BJBot ( talk) 07:59, 8 February 2008 (UTC)
I don't use JAWS 10 – I use JAWS 8 due to pricing concerns. Anyway, the same page links work reasonably well if you wait about two seconds after pressing enter on the link. I don't know what the reason is for the wait. The family tree template works well, except JAWS 8 usually says gibberish like "father child child child child" when I press enter on the link. I don't have time to try it on JAWS 10 now, but I'd expect it'd be the same for the more recent versions of JAWS. Graham 87 01:12, 27 December 2008 (UTC)
Hellow, I need some help for using javascripts in HTML. I am trying to make collapsiple unordered lists. Please see the following unordered list. I want that if I click on "Windows", then 1998, 2000, XP and Vista will be shown; and if I again click on "Windows", then 1998, 2000, XP and Vista will be collapsed. I want to apply this to all components of the list. Please show me the structure. You can contact me to my talk page. -- Amit ( Talk | Contribs) 11:33, 26 February 2009 (UTC)
Hello GregU, based on your work on this, I'm assuming you know your way around JavaScript and regexes. If it's not too much trouble, then, would you mind taking a look at the edit summary code in User:Dinoguy1000/scripts/ISO date format unifier.js and seeing if you can find why the summary doesn't get added when the summary field is blank? While you're there, also feel free to recommend other fixes or improvements as well. =) Thanks in advance! 「 ダイノガイ 千?!」 ? · Talk⇒Dinoguy1000 18:36, 9 October 2009 (UTC)
if( pageSummary.match(/[^\s]/) )
is explicitly saying to only augment the summary if there are already any (non-space) characters in it. I'm guessing this if
was supposed to be checking newPageSummary
instead; that would make sense.(?![\w-])
which says the next thing must not be a letter, digit, or hyphen, but otherwise doesn't affect the logic. JavaScript doesn't support look-behind assertions, so on the left end you would need to explicitly match a preceding [^\w-]
and then adjust the following code to ignore that extra character being eaten. Or... at least add a \b (word boundary assertion) to the left end, which may be good enough and will ensure the preceding character is not a letter or digit. Then no other code changes are needed. Add it here: /(\[\[)?\b([0-9][0-9]...
newPageSummary
will never be blank.
if
statement./(\[\[)?([0-9][0-9][0-9][0-9])(\]\])?-(\[\[)?([0-1][0-9])-([0-3][0-9])(\]\])?/
with /(\[\[)?\b([0-9][0-9][0-9][0-9])(\]\])?-(\[\[)?([0-1][0-9])-([0-3][0-9])(\]\])?(?![\w-])/
– and while we're on the subject, could I replace ([0-9][0-9][0-9][0-9])
with (\d{4})
?
([0-3][0-9])\b(?!-)(\]\])?/
Yes \d{4} is the same thing. I didn't suggest it as thought you might consider it more readable if all parts of the regex used the same style (i.e., it doesn't really affect the efficiency of the matching, just what is most human-readable), plus you might want to tighten the first digit of the year to be [12].pageSource = pageSource.replace( /regex/, formatDate( date, formattingAmericanStyle ) );
(and if that's correct, how do I pull date
from the regex? something like $1 $2 $3
?)? 「
ダイノガイ
千?!」
? ·
Talk⇒Dinoguy1000 16:41, 10 October 2009 (UTC)
/(\[\[)?\b([0-9][0-9][0-9][0-9])(\]\])?-(\[\[)?([0-1][0-9])-([0-3][0-9])\b(?!-)(\]\])?/
) 「
ダイノガイ
千?!」
? ·
Talk⇒Dinoguy1000 17:16, 15 October 2009 (UTC)
[[
should occur with 260 since max page title is around 250–255). If finds a [[
within that substring with no following ]]
then this is a link name, so don't touch. (Replace with the original string, resulting in no change.) Perhaps unlikely for ISO dates; that's left over from dashes.js. The URL heuristic is, if it finds a colon, slash or percent sign with no [\s|>
between it and the ISO date, then it's in a URL or some other funky ID-like string. For this code to work, I added the optional "pos" and "string" parameters to the replace function. String is the entire string being searched, and pos is the index of where the current match was found in it. —
GregU (
talk) 20:11, 15 October 2009 (UTC)
Hi Greg, I must say I was surprised to see this suddenly in the menu at the top. You must have influence to have had it inserted generally.
It seems to work very well. I'm delighted it's been added. It fixes only hyphens that are used wrongly for number/date ranges (not em dashes—I can see why), and doesn't correct wrongly spaced existing or treated en dashes (that would be very complicated). Tony (talk) 12:03, 10 November 2009 (UTC)
Hi Greg
Does the bot change the minus sign into an en dash? Please see this diff. Tony (talk) 09:07, 24 November 2009 (UTC)
importScript("User:GregU/dashes.js");
so that you're always using the latest version (and so your monobook.js is simpler). —
GregU (
talk) 15:21, 25 November 2009 (UTC)
Would this be considered an avoidable false positive? The hyphens in 51-830 and 51-890 appear to have been converted into dashes... Ohconfucius ¡digame! 09:16, 15 December 2009 (UTC)
I just installed hotkeys.js (on User:Ucucha/vector.js). It's a great tool, but I have two issues: it's not compatible with wikEd, in that the hotkeys don't work when wikEd is enabled; and for me at least, the hotkeys both insert the defined text and do what the default MediaWiki keys do (for example, when I use Ctrl+M it inserts the defined text, but also tries to move the page). It would be great if you could fix these issues. I'm using Firefox 3.5.5 on Mac OS X 10.5. Thanks, Ucucha 16:23, 25 November 2009 (UTC)
Hi there. A couple of things on your dash script need fixing; can you see User talk:GregU/dashes.js when you get the time? Thanks, Dabomb87 ( talk) 03:19, 16 February 2010 (UTC)
I do have to say that your dash script is absolutely fabulous, but the general convention (at least around FLC) has been that blank table cells should use em-dashes, rather than en-dashes. If you wouldn't mind making that minor adjustment, it would be much appreciated. Thanks! KV5 ( Talk • Phils) 13:05, 5 February 2010 (UTC)
Hi - I've added your script but keep getting an 'unable to comply' message - is there something else I need to do? pablo hablo. 10:02, 7 February 2010 (UTC)
Greg, I'm passing on this suggestion, which was posted on my talk page. Tony (talk) 23:30, 15 March 2010 (UTC)
You may want to reconsider the wisdom of your dash-replacement bot, as replacing HTML character entities with the actual character they represent could potentially cause problems with web browsers that don't handle character encodings properly. The character entities are guaranteed to work, and having them in the text does no harm; removing them could cause problems. I'm not sure what productive purpose is served by removing them. Kurt Weber (Go Colts!: 16-0 and Super Bowl XLIV Champions) 21:08, 15 March 2010 (UTC)
Thanks for addressing it :). I tried it in my sandbox, and it's still replacing n and m-dashes with the dashes themselves; I might have missed something here, but maybe you only fixed the bot's script? Airplaneman talk 14:20, 19 March 2010 (UTC)
I just followed a link to here. I believe that such scripts should pretty much always replace character entities with the actual character. About the only exceptions will be nbsp and thinsp. The future is what we make it, and it's not ASCII. — Jack Merridew 18:46, 5 April 2010 (UTC)
Hi Greg, do you plan to make the dash script compatible with Vector? Or, is it ready now and is there something I have to do to make it work? Thanks, Dabomb87 ( talk) 02:38, 3 April 2010 (UTC)
Hi Greg. I use your dash script all the time, but tonight, for the first time ever, it fixed a hyphen within a {{ sortname}} template and broke the link. Just thought you should know. The edit was this one, focus on the top link, the one to an ambiguous Mick O'Brien. All that aside, your script is excellent, keep up the great work. The Rambling Man ( talk) 19:38, 2 May 2010 (UTC)
Hello GregU, it's Airplaneman. I was wondering if we could somehow port this script over to Simple Wikipedia so it can be used there. It would help a lot – right now, I'm copying to my sandbox, running the script, and copying back (with a link to the script in my edit summary, of course :D). Thanks, Airplaneman ✈ 05:39, 5 July 2010 (UTC)
Please see my reply under User_talk:Cacycle/wikEd#FixDashes_contribution. Cacycle ( talk) 19:49, 25 August 2010 (UTC)
Hi Greg: it appears that the script changes minus signs into en dashes: − into –. Could you alter it so it leaves the minus-sign code intact? Minus signs are different from en dashes, although only slightly. Mathematicians (and the MoS) insist on them. Tony (talk) 11:20, 8 September 2010 (UTC)
(Now there's a subject I never in my wildest dreams imagined I'd ever write about!)
User:GregU/dashes.js does WP:OVERLINK fixing, which has recently been discussed at WT:BISE (a forum for discussing use of the term "British Isles"). It looks like the script is de-linking every instance of "British Isles" (and other articles), including the first. Is that expected? I understand that certain words and phrases probably shouldn't be linked at all, but "British Isles" seems to be something that should be linked to on the first occurrence. Help! TFOWR 20:23, 4 October 2010 (UTC)
I like how the dash script is activated by the drop-down tab button (as opposed to the more common side bar button). However, looking through the code, I could not find how it's done. I found a bit of code somewhere else. I get a drop-down button, but still have difficulty understanding the code and getting it to work properly. Could you perhaps help me to build the relevant addhook function for my common terms script, please? Many thanks in advance. -- Ohconfucius ¡digame! 04:44, 21 September 2010 (UTC)
The Original Barnstar | ||
This one is long overdue. After using your dashes.js script for more than a year, I have nothing but good words to say about it. It is exemplary in its comprehensiveness and reliability. Thank you! — Quibik ( talk) 17:17, 20 October 2010 (UTC) |
Thanks Quibik, this means a lot to me! I'm sorry I took so long to respond... went and got hitched, and not finding time to get back to Wikipedia. — GregU ( talk) 14:21, 25 February 2011 (UTC)
Hi Greg, I am interested in using your hotkeys.js script as I use a lot of en dashes, and scrolling down to find it on the insert bar is inconvenient. I think I installed it correctly but I can't get any of the hotkeys to work, and Ctrl- just reduces the text size in Chrome. Any ideas? Thanks in advance. – CWenger ( talk) 16:39, 4 January 2011 (UTC)
I don't know whether it's stylistically correct to use the endash to display temperatures... In my own script, I call on autoEdFunctions() used in your script. A transformation made apparently caused problems with the correct display. (see correction diff). Please advise whether correction of same is within your province, or whether I should contact the template programmers or those responsible for AutoEd. Cheers, -- Ohconfucius ¡digame! 05:26, 18 January 2011 (UTC)
Hi, I was just wondering, does this tool not work with the new Wikipedia layout? I used to like using this, but didn't notice it disappeared. Is there any way you can tweak it to work again? Thanks, Blake ( Talk· Edits) 14:28, 24 February 2011 (UTC)
importScript("User:GregU/randomlink.js")
Thanks for covering for me Ohconfucius. And thanks for pointing out the documentation rot Blake, I've updated it now. Will try to get back to the dashes issues above too, so keep pointing out the glitches. — GregU ( talk) 14:26, 25 February 2011 (UTC)
I posted a request at Wikipedia_talk:WikiProject_Genealogy#Hotung a while bqck, and there hasn't been much of a response. SO I've loaded your script and will be trying it soon. Hope it is as easy as you suggest to create a family tree, and/or that you will hang around! :-) -- Ohconfucius ¡digame! 15:04, 25 February 2011 (UTC)
Dashes script changes dashes in image names that breaks link to them. This is a somewhat messy example (see "gallery" in this edit). Otherwise great script. Cheers. Materialscientist ( talk) 04:45, 27 February 2011 (UTC)
Hi Greg. I created User:Epipelagic/vector.js, and added your script and shift-reloaded, but no "–" tab has been "added to the tabs at the top" of anything that I can see. I use Firefox on a Mac. Javascript is enabled, and I don't use wikEd or AutoEd. What I am doing wrong? -- Epipelagic ( talk) 00:35, 28 February 2011 (UTC)
Hi Greg. I wonder if you have considered adding a feature to the dashes script that removes spaces around em dashes. I see this a lot, against what the WP:MOS says, and it would be a very simple addition. – CWenger ( talk) 16:20, 26 March 2011 (UTC)
I tried importing User:GregU/familytree.js in my common javascript file at User:Banaticus/common.js but I'm not seeing anything different when I edit posts. What should I be seeing, how does it help? Please let me know on my user page when you return from your Wikibreak, thanks. :) Banaticus ( talk) 04:55, 27 March 2011 (UTC)
Some users have been using your script and causing problems with the DentalFormula as can be seen here [ [3]] and here [4]] FrostedΔ 14 01:56, 30 April 2011 (UTC)
\mbox{ }
, it will break out of the math parser for parsing the ndash (see
Template:DentalFormula/sandbox). However, the font size is now the same size as the surrounding text (e.g., ). There is probably a way to fix this as well, but I would have to do more testing. Thanks!
Plastikspork
―Œ(talk) 19:19, 1 May 2011 (UTC)
Sorry, just what you didn't want to hear! The spacing in date ranges is different depending on mdy or dmy. In particular, a squashed "1952–11 May 1956".
Thanks! Tony (talk) 15:47, 22 May 2011 (UTC)
You may be interested in User_talk:GregU/dashes.js#AutoEd_help and Wikipedia_talk:AutoEd#Choosing_your_own_modules_is_very_unclear. -- Piotr Konieczny aka Prokonsul Piotrus| talk 16:55, 5 July 2011 (UTC)
The Technical Barnstar | |
For your awesome dashes script—it saves a lot of work! InverseHypercube 00:50, 5 August 2011 (UTC) |
The Technical Barnstar | |
For your amazing dash script :) ♫Greatorangepumpkin♫ Hey it's me I am dynamite 14:52, 24 August 2011 (UTC) |
I can't get dashes to work with AutoEd. I've asked for help at WT:AutoEd and at dashes.js talk but no luck so far. Any suggestions? Thanks! — danhash ( talk) 21:52, 8 December 2011 (UTC)
Hi! It's been awhile, but I found the report on Saudia Flight 163 on Skybrary.aero. It's in English too WhisperToMe ( talk) 09:56, 26 December 2011 (UTC)
Hi. Did you mean to create Vector.js as a user subpage? -- ArglebargleIV ( talk) 14:30, 6 January 2012 (UTC)
This means you. -- Tagishsimon (talk) 11:54, 17 January 2012 (UTC)
The Brilliant Idea Barnstar | |
Thanks for the great dash script. It's saved me loads of time! Del♉sion23 (talk) 21:47, 20 March 2012 (UTC) |
I thought you might want to know about some upcoming events where you can learn more about MediaWiki customization and development, extending functionality with JavaScript, the future of ResourceLoader and Gadgets, the new Lua templating system, how to best use the web API for bots, and various upcoming features and changes. We'd love to have power users, bot maintainers and writers, and template makers at these events so we can all learn from each other and chat about what needs doing.
Check out the the Berlin hackathon in June, the developers' days preceding Wikimania in July in Washington, DC, and our other events.
You can register now for the Berlin event and if you need financial help or visa help, just mention that in the registration form.
Best wishes! - Sumana Harihareswara, Wikimedia Foundation's Volunteer Development Coordinator. Please reply on my talk page, here or at mediawiki.org. Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator 13:53, 2 April 2012 (UTC)
Greg, your dash fixer continues to have a major positive impact on the project. It's great to have the timezones in infoboxes rendered by proper minus signs, but I discovered extra spaces in this edit. When you have time. Thx. Tony (talk) 13:02, 10 April 2012 (UTC)
Greg, is it possible to remove the spacing in this context so that, for example, [[May 21]]-[[May 22|22]] becomes May 21–22, not May 21 – 22? Thanks. Tony (talk) 07:51, 18 May 2012 (UTC) Here's an example. Tony (talk) 04:36, 28 May 2012 (UTC)
Hi Greg, I don't know whether you'll see this, but I'm looking for some advice regarding User:GregU/dashes.js. I've added this to my monobook because I'm tired of having to search for en dashes, so I've decided to use hyphens instead, even if it's wrong. Then I saw your script and thought I could run it on articles where I'm using hyphens. So I added it to my monobook page but nothing has changed that I can see (nothing new in the toolbox, for example). Can you advise? SlimVirgin (talk) 22:49, 18 October 2012 (UTC)
Hi Greg. Suddenly the button has gone, replaced with "auto ed". Any ideas? Tony (talk) 08:53, 27 October 2012 (UTC)
Wanted to make sure you had noticed the discussion at User talk:GregU/dashes.js#Redirects.— Kww( talk) 19:03, 24 April 2013 (UTC)
Hi, I only wanted to advice you that I have translated and adapted your familytree and hotkeys scripts to the Galician wikipedia here and here. Thanks for your work, bye, -- Elisardojm ( talk) 00:54, 16 July 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) 16:16, 23 November 2015 (UTC)
Hi Greg,
I see you haven't edited in three years, so I hope real life is treating you well. I use your excellent dash script all the time, and just wanted to report a very minor problem – the first I've found! When run on
this version of
Apple Inc., the script wants to change the second hyphen in <!-- 9:55 AM ET-->
, which of course breaks the comment.
Cheers, Adrian J. Hunter( talk• contribs) 05:31, 19 December 2015 (UTC)
I'm kind of at fanboy level in the field of programming, so I'm still amazed at people like you who can do this
kind of stuff. When I saw your sript I instantly added it. I'll take it for a test run for a few days and I'll be back for feedback if anything happens.
In any case, thanks for your dedication, dude!
Cheers!
Double Plus Ungood (
talk) 16:02, 20 March 2018 (UTC)
User:GregU/familytree, a page which you created or substantially contributed to, has been nominated for deletion. Your opinions on the matter are welcome; you may participate in the discussion by adding your comments at Wikipedia:Miscellany for deletion/User:GregU/familytree and please be sure to sign your comments with four tildes (~~~~). You are free to edit the content of User:GregU/familytree during the discussion but should not remove the miscellany for deletion template from the top of the page; such a removal will not end the deletion discussion. Thank you. — Mr. Guye ( talk) ( contribs) 12:35, 20 July 2019 (UTC)