Revision as of 05:38, 18 February 2006 editBcatt (talk | contribs)931 edits →Userbox substitution← Previous edit | Latest revision as of 06:37, 20 December 2024 edit undo1AmNobody24 (talk | contribs)Edit filter helpers, Extended confirmed users, Pending changes reviewers, Rollbackers21,397 edits Notification: listing of Category:WikiProject on open proxies at WP:Categories for discussion.Tag: Twinkle | ||
Line 1: | Line 1: | ||
<div style="float:right; clear:right; width:20em; margin:0 0 2em 2em; padding-left:1em; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; -khtml-border-radius:10px; background:#FFF; -moz-box-shadow: -5px 5px 5px #CCC; -webkit-box-shadow:-5px 5px 5px #CCC; box-shadow:-5px 5px 5px #DDD;">{{Administrator|icon_nr=0}}{{Steward topicon|icon_nr=1}} | |||
<!-- Fix floating box glitch --> | |||
__TOC__ | |||
<div style="position:absolute; z-index:0; top:0; left:0; height:6em; background:#FFF; width:100%;"> </div> | |||
] | |||
<div style="position:absolute; z-index:0; bottom:0; left:0; height:7em; background:#FFF; width:100%;"> </div> | |||
</div> | |||
]] | |||
== "Script" header in sidebar == | |||
<!-- Background --> | |||
Can you help me solve the perennial issue with the repeated ]? Would it be related to how I use your script? It's obviously not urgent, but it's annoying. Thanks for ay suggestions you can give me. {{smiley}} --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 11:21, 8 June 2022 (UTC) | |||
<div style="position:relative; margin:-3em -1em; padding: 1em; background:#FFF;"> | |||
: {{re|Ohconfucius}} Hi! That's from ], which has been obsolete and unmaintained for just over a decade. I suggest switching any scripts that use it to the newer ] (which you already use elsewhere), which should fix that. —<small>] (]) 19:09, 8 June 2022 (UTC)</small> | |||
<!-- quote --> | |||
<div style="position:absolute; top:0;"> | |||
: ''Seeking meaning'' | |||
:: ''in this sea of white.'' | |||
</div> | |||
::There's been a minor cataclysm since I tried to copy over ]. Some of my test scripts have failed (I think principally the MOSFORMAT script, where the restoration of protected strings stalls), and the there have been complaints notably about my (production) MOSNUM script and my COMMONTERMS script. Could you possibly advise where I have gone wrong? I also noticed that you had modified my MOSUTIL script, so I have just copied it over to the production version. Regards, --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 07:43, 10 June 2022 (UTC) | |||
<!-- Administrator infobox --> | |||
<div style="position:relative; padding:30px 20px; border-bottom:1px solid #000; margin-bottom:2em;"> | |||
<!-- TOC --> | |||
<div style="float:right; margin:0; padding:1em; border-left:1px solid #000; background:#FFF;"> __TOC__ </div> | |||
<!-- end TOC --> | |||
This administrator willingly provides the following services on polite request: | |||
* '''Administrator intervention''' (see also ] or ]). | |||
* '''Obtain deleted text''' as long as it's not used to violate ]. | |||
* '''Review deletion or blocks''', and reverse these if necessary. | |||
* '''Semi-automated search and replace''' using the ]. | |||
* '''Advice''' on Misplaced Pages policies, guidelines, and procedures. | |||
::: {{re|Ohconfucius}} I suggest migrating incrementally instead, so we can isolate what might cause issues. I just added some compatibility wrappers to ], which in theory will let you update that script by itself without changing anything else. If that works fine, we can migrate the next script and retest, and so forth. —<small>] (]) 18:32, 11 June 2022 (UTC)</small> | |||
===Migrate MOSNUM utils=== | |||
It seems that your version of MOSUTIL script does not function; the MOSNUM script buttons disappear upon installation with both test and production scripts. In fact, I suspect it might never have worked. | |||
Secondly, I don't quite understand why there were two calls for Regex menu framework in my Sources script. The script continues to work after I substituted the first instance for ], but fails to work thereafter if either one of those calls is removed. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 11:04, 15 June 2022 (UTC) | |||
This administrator <span style="border-bottom:1px solid #F00;">refuses</span> to provide these services: | |||
* ''']''', including interpreting votes (see the ]). | |||
I as the basis of my Common terms script. And while there are now no longer any script buttons in the side bar, the underlying functions can still be called up from within my vector script. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 13:52, 15 June 2022 (UTC) | |||
<div style="position:relative; bottom:-30px;">''Subpages: ] | ] | ] | ]''</div> | |||
</div> | |||
: TemplateScript and Regex Menu Framework are different frameworks; they have equivalent features, but their code isn't interchangeable. For example, your scripts depend on a global <code>regex</code> function which doesn't exist in TemplateScript. So you can't just swap the imports, you also need to migrate the code to the new format (and keep the Regex Menu Framework imports too until any code using it is fully updated). That's why I suggest starting with a single script (like MOSUTIL), migrating it, and making sure it fully works before moving on to the next script. | |||
<!-- Discussion --> | |||
==Admin requests== | |||
Hi, please allow me to pass the final vote-counting and decision for the ''Physical anthropology'' section of ] on to you. Thanks in advance. --] 05:19, 11 February 2006 (UTC) | |||
: It's been a long time since I updated MOSUTIL, so I'm not familiar with the usage anymore. I loaded the updated scripts on an edit page and I did see a list of links added to the sidebar under 'Tools' (''DATES to dmy'', ''DATES to mdy'', ''US-slash dates'', and ''UK-slash dates''). Are those the script buttons you mean? Do you have a sandbox page with a list of test cases and expected output, so I can do a full end-to-end test? —<small>] (]) 15:10, 15 June 2022 (UTC)</small> | |||
==Responses to admin actions== | |||
Nice response on ], kudos. ] 16:40, 12 February 2006 (UTC) | |||
: Thank you. // ] (<sub>''''</sub> / <sup>'']''</sup>) 19:24, 12 February 2006 (UTC) | |||
::Thanks for the explanation. Those items in the sidebar under 'Tools' (''DATES to dmy'', ''DATES to mdy'', ''US-slash dates'', and ''UK-slash dates'') are the ones I mean by script buttons. I have a test page for each script, for example, for dates I have ] and ]; of course, any mainspace article with a predefined date format can be used to test. For Common terms, I have ], and for the sources script, there is ]. Which script do you propose to start with? --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 16:11, 15 June 2022 (UTC) | |||
== Responses to editor actions == | |||
''No discussions yet.'' | |||
::: I have a test setup in ] which seems to be working. If you switch your import from <code>User:Ohconfucius/script/MOSNUM dates.js</code> to <code>User:Pathoschild/script/MOSNUM dates.js</code>, does everything still work for you? —<small>] (]) 17:54, 15 June 2022 (UTC)</small> | |||
== Uncategorised comments == | |||
=== Archives === | |||
Isn't it unnecessarily difficult to navigate through the old versions of this page? <small>—''The preceding ] comment was added by'' ] (] • ]) 20:49, February 10, 2006.</small><!--Inserted with Template:Unsigned--> | |||
::::After refreshing the cache yesterday, I had a : the buttons were there and there was some unlinking; parameters (such as <code>|df=y</code>) were changed or inserted, and little else. Now, strangely enough, the script buttons no longer even show up. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 08:35, 16 June 2022 (UTC) | |||
: That's not necessary; see the ]. // ] (<sub>''''</sub> / <sup>'']''</sup>) 21:20, 10 February 2006 (UTC) | |||
::::: Can you list some specific replacements you expected to happen on that page which didn't? When the tool links don't appear, do you have any errors in your JavaScript console? —<small>] (]) 02:32, 17 June 2022 (UTC)</small> | |||
==User page design== | |||
===New user page=== | |||
Hey, is ] how your how your user page is intended to look like? —] <small>(] | ])</small> 02:33, 12 February 2006 (UTC) | |||
: Yep. I included the toolbox links one couldn't use on the talk page, just in case users wanted to use them. :) // ] (<sub>''''</sub> / <sup>'']''</sup>) 02:37, 12 February 2006 (UTC) | |||
:::::: . So, as you can see from , it only engages the unlinking function; none of the mdy–>dmy conversions take place (inside or outside of citation templates; none of the CS1 errors are corrected. When using your module, the sidebar buttons appear correct, but I get no error messages that anything is amiss after clicking on them until I look at the diff of the output. Anyway, I'm not sure I know how to access the JS console. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 22:25, 17 June 2022 (UTC) | |||
::Hmm doesn't appear to affect classic so much <small>—''The preceding ] comment was added by'' ] (] • ]) 05:16, February 13, 2006.</small><!--Inserted with Template:Unsigned--> | |||
::::::: I fixed the <code>ohc_regex</code> wrapper not saving changes, which should fix many of the issues. I get a slightly different result when editing that page, but I get the same result when using the original script. Can you try it now and list any other cases that don't match what you'd expect? —<small>] (]) 01:44, 18 June 2022 (UTC)</small> | |||
::: It's just recently implemented, I'm tweaking it. ;) // ] (<sub>''''</sub> / <sup>'']''</sup>) 05:17, 13 February 2006 (UTC) | |||
===Re: Edits to my user page=== | |||
Please don't intentionally break my user page's design. Since the hidden links are available in the content or on the talk page, accessibility is not much impaired. Familiarity is irrelevant on a user page. If you have any particular reasons you feel that the design is improper, please discuss on my talk page. Thanks. // ] (<sub>''''</sub> / <sup>'']''</sup>) 05:14, 13 February 2006 (UTC) | |||
:::::::: The problem seems to have been solved, thanks. and it's working like before. I migrated the production script accordingly. I have one question at this stage: is it correct that the MOSNUM script uses both Regex Menu Framework as well as TemplateScript? --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 13:59, 18 June 2022 (UTC) | |||
:replied on my talk. —]<small>]</small> 05:27, 13 February 2006 (UTC) | |||
::::::::: Yep. We've only migrated MOSNUM utils so far, everything else still uses Regex Menu Framework. So the next step would probably be migrating MOSNUM dates to TemplateScript too. I can migrate the code if you're interested (though it'll move the buttons from the main 'tools' section into a new section below it). —<small>] (]) 21:36, 18 June 2022 (UTC)</small> | |||
::'' the hidden links are available in the content or on the talk page''—in fact, your layout wipes the contributions, block, e-mail, printable, and permalink links from the toolbox; the history, watch, and move tabs are broken, as are the admin links (protect and delete) and the added admin tabs (block, blocklog) that I and numerous other users add with personal .js files. All the links in the upper right are inaccessible: links to the reader's userpage, talk page, preferences, watchlist, and contributions are gone, as is the logout. Your layout breaks basic site functions in ways that are difficult to get around; this would be a problem in any other page in any other namespace, and it is my opinion that the broad latitude extended to userpages does not cover this. But I won't revert it; let's solicit other opinions in a more public forum. —]<small>]</small> 05:34, 13 February 2006 (UTC) | |||
:::::::::: Yes please. I look forward to seeing how that's done. Not quite sure of the implications of new button positions, but I'm game. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 07:13, 19 June 2022 (UTC) | |||
::: Most of those links are available on the talk page, which can be accessed by clicking "]" in the content. Most of what's left is useless on the userpage; you have no reason to ''ever'' move the page, it should only be deleted in extreme circumstances, and I personally oppose protection of my user page. Those links that aren't accessible on the talk page were added to the content; if you can think of any that I've missed, feel free to point them out. // ] (<sub>''''</sub> / <sup>'']''</sup>) 05:55, 13 February 2006 (UTC) | |||
::::::::::: <s>I have MOSNUM dates tentatively migrated to TemplateScript in ]. It's a pretty big change, so I suggest retesting all the features; let me know if anything doesn't work as expected. —<small>] (]) 19:50, 19 June 2022 (UTC)</small></s> (moved into ]) | |||
:::::::::::: I haven't done anything since I last wrote here (I haven't yet made the above modification), but the MOSNUM script seems to be not working again. I'll take a look at the migrated version in the next couple of days. But in the meantime, if I have to go back and troubleshoot the actions in the last 24 hours. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 21:50, 19 June 2022 (UTC) | |||
==]== | |||
He's confirmed now :P--] 05:30, 13 February 2006 (UTC) | |||
: They're still on the banned list; has Essjay looked at the request? // ] (<sub>''''</sub> / <sup>'']''</sup>) 05:33, 13 February 2006 (UTC) | |||
::Yes, phoenixoverride is confirmed.--] 06:11, 13 February 2006 (UTC) | |||
::::::::::::: Can you to see if there are any errors? —<small>] (]) 17:36, 20 June 2022 (UTC)</small> | |||
==Happy Valentine's day!== | |||
:::::::::::::: There are three lines showing errors: | |||
] 03:11, 14 February 2006 (UTC)]] | |||
::::::::::::::# Some cookies are misusing the recommended “sameSite“ attribute 2 | |||
Valentines Day is a day of black cynicism and misanthropy, of slavering greed and lust intermingling. But... happy Valentines Day! :) // ] (<sub>''''</sub> / <sup>'']''</sup>) 04:45, 14 February 2006 (UTC) | |||
::::::::::::::# Request to access cookie or storage on “<URL>” was blocked because it came from a tracker and content blocking is enabled. 14 | |||
:Happy valentines day ;) <span style="color:deeppink">'''— ] • ] • 10:37, 14 February 2006'''</span> | |||
::::::::::::::# This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for further details and to join the discussion on related tools and features! | |||
:: ] wishes you a happy and fun ] after all, it's childish :) <small>—''The preceding ] comment was added by'' ] (] • ]) 06:10, February 14, 2006.</small><!--Inserted with Template:Unsigned--> | |||
:::::::::::::: which unfortunately I don't know what it means for the malfunction.--<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 17:04, 21 June 2022 (UTC) | |||
::::::::::::::: Is there any particular reason why it stopped working but is now back? --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 17:08, 21 June 2022 (UTC) | |||
:::::::::::::::: Those are regular warnings unrelated to these scripts, so you can ignore those. Next time the buttons disappear, can you send me a screenshot of the messages in the console? (You can use a site like to share temporary images.) —<small>] (]) 21:20, 21 June 2022 (UTC)</small> | |||
==Out of idle curiosity...== | |||
::::::::::::::::: Sure thing! --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 22:06, 21 June 2022 (UTC) | |||
: It sorts all incoming links from my signature under "] (redirect page)" in ]. That makes it much easier to find new non-signature links, which is how I found the a few days ago. // ] (<sub>''''</sub> / <sup>'']''</sup>) 04:14, 16 February 2006 (UTC) | |||
===Migrate MOSNUM dates=== | |||
== Userbox substitution == | |||
I have MOSNUM dates tentatively migrated to TemplateScript in ]. It's a pretty big change, so I suggest retesting all the features; let me know if anything doesn't work as expected. —<small>] (]) 19:50, 19 June 2022 (UTC)</small> | |||
===]=== | |||
Since this was speedied, I wondered if you could subst the syntax into pages that still link there. I copied the syntax to ]. You can find the list of places it still links to ]. I hear this is uncontriversial. Thanks! --]<font color="green">]</font>] <sup>]</sup> 23:18, 11 February 2006 (UTC) | |||
<!-- Reference: ] of deleted template {{]}} --> | |||
: I can't get my head around this issue: the production version (which uses both Regex Menu Framework and TempoateScript) and test version, which uses exclusively TemplateScript (with RMF disabled) of MOSNUM dates both work when I load up (there are between the two), so I made the change to the production script (by disabling RMF). Then I got complaint that the production script was no longer working. Any idea what's wrong with the migration? Regards, --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 12:58, 28 June 2022 (UTC) | |||
: You've been susbstituting the wrong template, and I don't appreciate you messing with my page. ] 00:32, 12 February 2006 (UTC) | |||
:: ] still uses Regex Menu Framework (e.g. the <code>regex</code> function is part of RMF). It just doesn't import it, so it only works because RMF is still being imported elsewhere. | |||
:: Comparing the deleted version with the substituted version, I see no perceivable difference. However, it's your user page; you're free to revert or change the edit. // ] (<sub>''''</sub> / <sup>'']''</sup>) 00:35, 12 February 2006 (UTC) | |||
:: The migrated version is ], which has ]. You'll need to overwrite the entire production script with that migrated version. —<small>] (]) 14:27, 28 June 2022 (UTC)</small> | |||
::: I just undid your edit to ]'s page; his template was User AmE-0 which was ''not'' deleted. Your edit substituted in the deleted template User-AmE-0 instead. I don't know what's going on with these templates, but since your substituted test was quite different text than the replaced text, I reverted. You may want to check that you have not made this mistake on other pages. --]] 00:37, 12 February 2006 (UTC) | |||
=== Common Terms === | |||
:::: Thanks for pointing out the mistake; I'll fix the search string and check my other changes. // ] (<sub>''''</sub> / <sup>'']''</sup>) 00:39, 12 February 2006 (UTC) | |||
Can we switch attention over to the next script for now? | |||
:::::Thanks for substituting it on my userpage. ] | ] 02:10, 12 February 2006 (UTC) | |||
I partly lost use of the script buttons following . My composite script still managed to call the basic unlinking function (without recourse to the script buttons, but it was reported that the button to delink countries disappeared, so I reversed the above change. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 19:45, 24 June 2022 (UTC) | |||
:::::: You're welcome. :) // ] (<sub>''''</sub> / <sup>'']''</sup>) 02:11, 12 February 2006 (UTC) | |||
::::::: All done; it took a while because I was multitasking. Note that userboxes on a transcluded subpage with <noinclude> syntax can't be found by the bot, and weren't affected. // ] (<sub>''''</sub> / <sup>'']''</sup>) 04:12, 12 February 2006 (UTC) | |||
: Yep, we'll need to migrate the code before swapping the import. I suggest finishing with the MOSNUM dates/utils first though. If we migrate multiple scripts at once, it'll be harder to track down which particular changes might be causing any new issues you run into. I could migrate this one now if you still want to though. —<small>] (]) 20:19, 24 June 2022 (UTC)</small> | |||
===Hi=== | |||
::Fine, I'll go with your suggestion to do one at a time. --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 05:03, 25 June 2022 (UTC) | |||
Noticed you are retrieving deleted userboxes and inlining them. I think this is excellent work. Did you see my Grandfathering proposal on wikien-l? | |||
=== Positioning === | |||
: ''I welcome Jimbo's forthright statement that ''"political or, more broadly, polemical, nature are bad for the project"'', and his thoughtful and considerate request that editors contemplate helping to reduce the userbox culture by simply ''"removing your political/religious/etc. userboxes and asking others to do the same. This seems to me to be the best way to quickly and easily end the userbox wars."'' | |||
With regard to , where it's noted that the position of the script button has drifted downwards after migration to TemplateScript, is there any way of bumping up the position of the buttons, back into the "Tools" section of the add-ons menu? --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 16:12, 8 July 2022 (UTC) | |||
: TemplateScript doesn't change default sections for compatibility, but it sounds like the main issue is the new sections being under the language list. In that case I can certainly move those up above the language list. —<small>] (]) 20:49, 8 July 2022 (UTC)</small> | |||
: ''I know this is going to meet resistance, so I'm trying to think of a way in which those who think that expressing their opinions on their userpages helps wikipedia and have so far chosen to do so using userboxes, can be asked to do so in a way that doesn't contribute to the very divisive culture that has ground up specifically around userboxes. | |||
::Thanks, that would be cool! {{smiley}} --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 21:03, 8 July 2022 (UTC) | |||
: ''I've come up with a suggestion as follows:'' | |||
::: Done! Users will need to ] to see the changes. —<small>] (]) 21:27, 8 July 2022 (UTC)</small> | |||
: ''1. that if he disagrees with Jimbo's request, the user should instead consider using the subst command to place the content of the template directly into his userpage. This would reduce the "viral" transmission of userboxes somewhat and, for the user, it would have the benefit of divorcing the fate of parts of his userpage from the fate of individual userboxes--whether editing or deletion. | |||
=== Composite script === | |||
: ''2. that having done this, he should take the opportunity to edit the text so that it more precisely expresses his individual views. In my opinion this would be more in keeping with the *good* effects of userboxes in enabling self-expression, while being more in keeping with the principle that Misplaced Pages is a wiki in which we edit content, and not a cookie-cutter website in which we reduce our complex beliefs as individuals into regimented blocs that serve no purpose but to emphasize the cultural divisions. | |||
Hello,<p> | |||
I think that since I modified my scripts to use your <code>templatescript.js</code> module, my composite scripts – master scripts calling on several other scripts, for example the <code>One Touch: FORMAT</code> subroutine in my ] – no longer work (I've already had to disable the <code>ONETOUCH_DMY</code> and <code>ONETOUCH_MDY</code> buttons for that reason). Could you offer any pointers as to why this may be the case, and maybe help me get the functionality back? It would be rather helpful as it's particular nuisance to access the relevant sidebar buttons efficiently because the sidebar is now quite long. Thanks in advance. <small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 20:42, 4 August 2023 (UTC) | |||
: Hi! What's the specific issue you're having? For example: do you have any errors in the JavaScript console, or is there a specific link that just doesn't appear, or does it appear but clicking it does nothing / works incorrectly? <small>—] (]) 16:44, 6 August 2023 (UTC)</small> | |||
: ''I think of this as "]". Ultimately we should be able to foster a benign culture of fearless expression of our editorial biases, without enabling the subversion of our relatively fragile neutrality principle by alliances between single-issue campaigners--however justifiable they may feel this subversion to be.'' | |||
::There's no error message, there's nothing much happening visually when I click on the <code>ONETOUCH_DMY</code> and <code>ONETOUCH_MDY</code> buttons. The script button manages to call the CommonTerms script, and then stalls (The dates script should be called next but it isn't). I told you a porkie, for which I apologise: The <code>One Touch: FORMAT</code> meta script (which calls The CommonTerms, dashes, sources and )formatgeneral) works, but just seems quite slow, so giving me the impression that it wasn't working. Cheers, --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 21:34, 7 September 2023 (UTC) | |||
::: So to summarize: | |||
I see this as the way forward and I think your work, what I've seen of it, is compatible with this. --] 00:27, 15 February 2006 (UTC) | |||
:::# You click the 'One Touch: DMY' tool (defined in ]). | |||
:::# It runs <code>Ohc_retrain_links()</code> and <code>Ohc_CommonTerms()</code> fine (loaded from ]). | |||
:::# It fails to run <code>ohc_delink_dates()</code> (loaded from ]). | |||
::: When I loaded your <samp>vector.js</samp> and ran 'One Touch: DMY', I see an error in ]: | |||
: I agree. Substituted user boxes become, essentially, another part of the user's page and protected by the unofficial freedom of POV user pages enjoy. Although I read your proposal on the mailing list, I have a tendency to skim titles, so I must have missed any responses to it. // ] (<sub>''''</sub> / <sup>'']''</sup>) 00:37, 15 February 2006 (UTC) | |||
<pre style="margin-left: 6em;">Uncaught TypeError: editor is undefined | |||
in ohc_delink_dates | |||
in ONETOUCH_DMY | |||
in <anonymous> javascript:ONETOUCH_DMY():1 | |||
</pre> | |||
::: That's because <samp>ohc_delink_dates</samp> is now written for TemplateScript, so it expects the <samp>editor</samp> argument it provides. | |||
==="Bad EU"=== | |||
I tank you for having substituted that template upon my "user-page" with the image of it, sir.--] 22:10, 16 February 2006 (UTC) | |||
::: The easiest fix is to add your top-level links like <samp>ONETOUCH_DMY</samp> with TemplateScript. Then they'll be able to call both TemplateScript scripts (like <code>ohc_delink_dates(editor)</code>) and Regex Menu Framework scripts (like <code>Ohc_retrain_links()</code>), and you'll be able to incrementally remove Regex Menu Framework in the future. If you're interested, I can draft an updated <samp>vector.js</samp> for you. —<small>] (]) 16:47, 9 September 2023 (UTC)</small> | |||
: You're welcome. // ] (<sub>''''</sub> / <sup>'']''</sup>) 09:51, 17 February 2006 (UTC) | |||
:::: Most grateful to you for identifying the problem and solution so quickly. As I wouldn't know how to go about making the change you recommend (I looked under the bonnet and it was all gobbledegook), I would appreciate it if you could draw me up a new vector module. Regards, --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 17:37, 9 September 2023 (UTC) | |||
::::: {{reply to|Ohconfucius}} Sorry for the delay! Here's an {{oldid|User:Pathoschild/common.js|1177981093|updated version of your <samp>vector.js</samp>}} (see ]). Do you still have the issue with that version? —<small>] (]) 22:01, 30 September 2023 (UTC)</small> | |||
:::::: Thanks for that. Unfortunately, I cannot get it to work. As I don't really understand the changes made, I don't know where to start to troubleshoot. :-( --<small><span style="background-color:#ffffff;border: 1px solid;">]</span></small>] 16:32, 8 October 2023 (UTC) | |||
::::::: What isn't working? Can you list the specific steps with the expected vs actual result? —<small>] (]) 17:26, 8 October 2023 (UTC)</small> | |||
== ArbCom 2023 Elections voter message == | |||
<div class="ivmbox " style="margin-bottom: 1em; border: 1px solid #AAA; background-color: ivory; padding: 0.5em; display: flex; align-items: center; "> | |||
<div class="ivmbox-image" style="padding-left:1px; padding-right:0.5em; flex: 1 0 40px; max-width: 100px">]</div> | |||
<div class="ivmbox-text"> | |||
Hello! Voting in the ''']''' is now open until 23:59 (UTC) on {{#time:l, j F Y|{{Arbitration Committee candidate/data|2023|end}}-1 day}}. All ''']''' are allowed to vote. Users with alternate accounts may only vote once. | |||
The ] is the panel of editors responsible for conducting the ]. 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 ], ], editing restrictions, and other measures needed to maintain our editing environment. The ] describes the Committee's roles and responsibilities in greater detail. | |||
If you wish to participate in the 2023 election, please review ] and submit your choices on the ''']'''. If you no longer wish to receive these messages, you may add {{tlx|NoACEMM}} to your user talk page. <small>] (]) 00:22, 28 November 2023 (UTC)</small> | |||
</div> | |||
</div> | |||
<!-- Message sent by User:Cyberpower678@enwiki using the list at https://en.wikipedia.org/search/?title=Misplaced Pages:Arbitration_Committee_Elections_December_2023/Coordination/MM/01&oldid=1187131902 --> | |||
== Nomination for deletion of ] == | |||
=== Related links === | |||
]] has been ]. You are invited to comment on the discussion at ].<!--Template:Tfdnotice--> ] (]) 08:30, 15 August 2024 (UTC) | |||
The deleted userbox substitution was discussed with a user on IRC, who eventually supported the idea. During the discussion I provided two links that demonstrated that there was no overt opposition to the idea. These are provided here for future reference. | |||
== Nomination for deletion of ] == | |||
* ] on ]. | |||
]] has been ]. You are invited to comment on the discussion at ].<!--Template:Tfdnotice--> ] (]) 02:02, 27 November 2024 (UTC) | |||
* ''Tony Sidaway (f.crdfa at gmail.com) Thu Feb 16 05:51:28 UTC 2006''. | |||
==] has been nominated for renaming== | |||
// ] (<sub>''''</sub> / <sup>'']''</sup>) 22:47, 17 February 2006 (UTC) | |||
=== Thanks === | |||
Re userbox substitution on my userboxes page. Thank you. - <b><font face="Comic Sans MS" size="+1" colour="navy">]</font></b> <b><font face="Comic Sans MS" colour="navy"><sup>] | ]</sup></font></b> 01:06, 18 February 2006 (UTC) | |||
: You're welcome. // ] (<sub>''''</sub> / <sup>'']''</sup>) 02:15, 18 February 2006 (UTC) | |||
<div class="floatleft" style="margin-bottom:0">]</div>] has been nominated for renaming. A discussion is taking place to decide whether it complies with the ] guidelines. If you would like to participate in the discussion, you are invited to add your comments at ''']''' on the ] page.<!-- Template:Cfd-notify--> Thank you. ] (]) 06:37, 20 December 2024 (UTC) | |||
===Your efforts=== | |||
Thanks so much for your efforts at substitution of deleted userboxes. Recently ] speedily deleted a bunch of user boxes I had on my page, messing up my whole format...I can't seem to be able to look at the history in order to copy the script to my page...how do I do this? Thanks in advance. ] 05:38, 18 February 2006 (UTC) |
Latest revision as of 06:37, 20 December 2024
"Script" header in sidebar
Can you help me solve the perennial issue with the repeated "Script" header in sidebar? Would it be related to how I use your script? It's obviously not urgent, but it's annoying. Thanks for ay suggestions you can give me. -- Ohc 11:21, 8 June 2022 (UTC)
- @Ohconfucius: Hi! That's from Regex Menu Framework, which has been obsolete and unmaintained for just over a decade. I suggest switching any scripts that use it to the newer TemplateScript (which you already use elsewhere), which should fix that. —Pathoschild (talk) 19:09, 8 June 2022 (UTC)
- There's been a minor cataclysm since I tried to copy over TemplateScript. Some of my test scripts have failed (I think principally the MOSFORMAT script, where the restoration of protected strings stalls), and the there have been complaints notably about my (production) MOSNUM script and my COMMONTERMS script. Could you possibly advise where I have gone wrong? I also noticed that you had modified my MOSUTIL script, so I have just copied it over to the production version. Regards, -- Ohc 07:43, 10 June 2022 (UTC)
- @Ohconfucius: I suggest migrating incrementally instead, so we can isolate what might cause issues. I just added some compatibility wrappers to test/MOSNUM utils, which in theory will let you update that script by itself without changing anything else. If that works fine, we can migrate the next script and retest, and so forth. —Pathoschild (talk) 18:32, 11 June 2022 (UTC)
Migrate MOSNUM utils
It seems that your version of MOSUTIL script does not function; the MOSNUM script buttons disappear upon installation with both test and production scripts. In fact, I suspect it might never have worked.
Secondly, I don't quite understand why there were two calls for Regex menu framework in my Sources script. The script continues to work after I substituted the first instance for TemplateScript, but fails to work thereafter if either one of those calls is removed. -- Ohc 11:04, 15 June 2022 (UTC)
I replaced regex menu framework as the basis of my Common terms script. And while there are now no longer any script buttons in the side bar, the underlying functions can still be called up from within my vector script. -- Ohc 13:52, 15 June 2022 (UTC)
- TemplateScript and Regex Menu Framework are different frameworks; they have equivalent features, but their code isn't interchangeable. For example, your scripts depend on a global
regex
function which doesn't exist in TemplateScript. So you can't just swap the imports, you also need to migrate the code to the new format (and keep the Regex Menu Framework imports too until any code using it is fully updated). That's why I suggest starting with a single script (like MOSUTIL), migrating it, and making sure it fully works before moving on to the next script.
- It's been a long time since I updated MOSUTIL, so I'm not familiar with the usage anymore. I loaded the updated scripts on an edit page and I did see a list of links added to the sidebar under 'Tools' (DATES to dmy, DATES to mdy, US-slash dates, and UK-slash dates). Are those the script buttons you mean? Do you have a sandbox page with a list of test cases and expected output, so I can do a full end-to-end test? —Pathoschild (talk) 15:10, 15 June 2022 (UTC)
- Thanks for the explanation. Those items in the sidebar under 'Tools' (DATES to dmy, DATES to mdy, US-slash dates, and UK-slash dates) are the ones I mean by script buttons. I have a test page for each script, for example, for dates I have User:Ohconfucius/Bot modules/dmy test page and User:Ohconfucius/MOSNUM script test; of course, any mainspace article with a predefined date format can be used to test. For Common terms, I have User:Ohconfucius/test/Common Terms test page, and for the sources script, there is User:Ohconfucius/script/Sources/test. Which script do you propose to start with? -- Ohc 16:11, 15 June 2022 (UTC)
- I have a test setup in User:Pathoschild/common.js which seems to be working. If you switch your import from
User:Ohconfucius/script/MOSNUM dates.js
toUser:Pathoschild/script/MOSNUM dates.js
, does everything still work for you? —Pathoschild (talk) 17:54, 15 June 2022 (UTC)
- I have a test setup in User:Pathoschild/common.js which seems to be working. If you switch your import from
- After refreshing the cache yesterday, I had a reduced level of functionality: the buttons were there and there was some unlinking; parameters (such as
|df=y
) were changed or inserted, and little else. Now, strangely enough, the script buttons no longer even show up. -- Ohc 08:35, 16 June 2022 (UTC)
- After refreshing the cache yesterday, I had a reduced level of functionality: the buttons were there and there was some unlinking; parameters (such as
- Can you list some specific replacements you expected to happen on that page which didn't? When the tool links don't appear, do you have any errors in your JavaScript console? —Pathoschild (talk) 02:32, 17 June 2022 (UTC)
- This is the expected outcome. So, as you can see from this diff, it only engages the unlinking function; none of the mdy–>dmy conversions take place (inside or outside of citation templates; none of the CS1 errors are corrected. When using your module, the sidebar buttons appear correct, but I get no error messages that anything is amiss after clicking on them until I look at the diff of the output. Anyway, I'm not sure I know how to access the JS console. -- Ohc 22:25, 17 June 2022 (UTC)
- I fixed the
ohc_regex
wrapper not saving changes, which should fix many of the issues. I get a slightly different result when editing that page, but I get the same result when using the original script. Can you try it now and list any other cases that don't match what you'd expect? —Pathoschild (talk) 01:44, 18 June 2022 (UTC)
- I fixed the
- The problem seems to have been solved, thanks. and it's working like before. I migrated the production script accordingly. I have one question at this stage: is it correct that the MOSNUM script uses both Regex Menu Framework as well as TemplateScript? -- Ohc 13:59, 18 June 2022 (UTC)
- Yep. We've only migrated MOSNUM utils so far, everything else still uses Regex Menu Framework. So the next step would probably be migrating MOSNUM dates to TemplateScript too. I can migrate the code if you're interested (though it'll move the buttons from the main 'tools' section into a new section below it). —Pathoschild (talk) 21:36, 18 June 2022 (UTC)
- Yes please. I look forward to seeing how that's done. Not quite sure of the implications of new button positions, but I'm game. -- Ohc 07:13, 19 June 2022 (UTC)
I have MOSNUM dates tentatively migrated to TemplateScript in User:Pathoschild/common.js. It's a pretty big change, so I suggest retesting all the features; let me know if anything doesn't work as expected. —Pathoschild (talk) 19:50, 19 June 2022 (UTC)(moved into separate subsection)
- I haven't done anything since I last wrote here (I haven't yet made the above modification), but the MOSNUM script seems to be not working again. I'll take a look at the migrated version in the next couple of days. But in the meantime, if I have to go back and troubleshoot the actions in the last 24 hours. -- Ohc 21:50, 19 June 2022 (UTC)
- Can you check your browser's JavaScript console to see if there are any errors? —Pathoschild (talk) 17:36, 20 June 2022 (UTC)
- There are three lines showing errors:
- Some cookies are misusing the recommended “sameSite“ attribute 2
- Request to access cookie or storage on “<URL>” was blocked because it came from a tracker and content blocking is enabled. 14
- This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for further details and to join the discussion on related tools and features!
- which unfortunately I don't know what it means for the malfunction.-- Ohc 17:04, 21 June 2022 (UTC)
- Is there any particular reason why it stopped working but is now back? -- Ohc 17:08, 21 June 2022 (UTC)
- There are three lines showing errors:
- Can you check your browser's JavaScript console to see if there are any errors? —Pathoschild (talk) 17:36, 20 June 2022 (UTC)
- Those are regular warnings unrelated to these scripts, so you can ignore those. Next time the buttons disappear, can you send me a screenshot of the messages in the console? (You can use a site like pasteboard to share temporary images.) —Pathoschild (talk) 21:20, 21 June 2022 (UTC)
- Sure thing! -- Ohc 22:06, 21 June 2022 (UTC)
- Those are regular warnings unrelated to these scripts, so you can ignore those. Next time the buttons disappear, can you send me a screenshot of the messages in the console? (You can use a site like pasteboard to share temporary images.) —Pathoschild (talk) 21:20, 21 June 2022 (UTC)
Migrate MOSNUM dates
I have MOSNUM dates tentatively migrated to TemplateScript in User:Pathoschild/common.js. It's a pretty big change, so I suggest retesting all the features; let me know if anything doesn't work as expected. —Pathoschild (talk) 19:50, 19 June 2022 (UTC)
- I can't get my head around this issue: the production version (which uses both Regex Menu Framework and TempoateScript) and test version, which uses exclusively TemplateScript (with RMF disabled) of MOSNUM dates both work when I load up (there are minimal differences between the two), so I made the change to the production script (by disabling RMF). Then I got complaint that the production script was no longer working. Any idea what's wrong with the migration? Regards, -- Ohc 12:58, 28 June 2022 (UTC)
- Your test/MOSNUM dates.js still uses Regex Menu Framework (e.g. the
regex
function is part of RMF). It just doesn't import it, so it only works because RMF is still being imported elsewhere.
- Your test/MOSNUM dates.js still uses Regex Menu Framework (e.g. the
- The migrated version is User:Pathoschild/script/MOSNUM dates.js, which has a lot more changes. You'll need to overwrite the entire production script with that migrated version. —Pathoschild (talk) 14:27, 28 June 2022 (UTC)
Common Terms
Can we switch attention over to the next script for now? I partly lost use of the script buttons following this change. My composite script still managed to call the basic unlinking function (without recourse to the script buttons, but it was reported that the button to delink countries disappeared, so I reversed the above change. -- Ohc 19:45, 24 June 2022 (UTC)
- Yep, we'll need to migrate the code before swapping the import. I suggest finishing with the MOSNUM dates/utils first though. If we migrate multiple scripts at once, it'll be harder to track down which particular changes might be causing any new issues you run into. I could migrate this one now if you still want to though. —Pathoschild (talk) 20:19, 24 June 2022 (UTC)
- Fine, I'll go with your suggestion to do one at a time. -- Ohc 05:03, 25 June 2022 (UTC)
Positioning
With regard to this conversation, where it's noted that the position of the script button has drifted downwards after migration to TemplateScript, is there any way of bumping up the position of the buttons, back into the "Tools" section of the add-ons menu? -- Ohc 16:12, 8 July 2022 (UTC)
- TemplateScript doesn't change default sections for compatibility, but it sounds like the main issue is the new sections being under the language list. In that case I can certainly move those up above the language list. —Pathoschild (talk) 20:49, 8 July 2022 (UTC)
- Thanks, that would be cool! -- Ohc 21:03, 8 July 2022 (UTC)
- Done! Users will need to bypass their cache to see the changes. —Pathoschild (talk) 21:27, 8 July 2022 (UTC)
Composite script
Hello,
I think that since I modified my scripts to use your templatescript.js
module, my composite scripts – master scripts calling on several other scripts, for example the One Touch: FORMAT
subroutine in my vector file – no longer work (I've already had to disable the ONETOUCH_DMY
and ONETOUCH_MDY
buttons for that reason). Could you offer any pointers as to why this may be the case, and maybe help me get the functionality back? It would be rather helpful as it's particular nuisance to access the relevant sidebar buttons efficiently because the sidebar is now quite long. Thanks in advance. Ohc 20:42, 4 August 2023 (UTC)
- Hi! What's the specific issue you're having? For example: do you have any errors in the JavaScript console, or is there a specific link that just doesn't appear, or does it appear but clicking it does nothing / works incorrectly? —Pathoschild (talk) 16:44, 6 August 2023 (UTC)
- There's no error message, there's nothing much happening visually when I click on the
ONETOUCH_DMY
andONETOUCH_MDY
buttons. The script button manages to call the CommonTerms script, and then stalls (The dates script should be called next but it isn't). I told you a porkie, for which I apologise: TheOne Touch: FORMAT
meta script (which calls The CommonTerms, dashes, sources and )formatgeneral) works, but just seems quite slow, so giving me the impression that it wasn't working. Cheers, -- Ohc 21:34, 7 September 2023 (UTC)
- There's no error message, there's nothing much happening visually when I click on the
- So to summarize:
- You click the 'One Touch: DMY' tool (defined in vector.js).
- It runs
Ohc_retrain_links()
andOhc_CommonTerms()
fine (loaded from script/Common Terms.js). - It fails to run
ohc_delink_dates()
(loaded from script/MOSNUM dates.js).
- So to summarize:
- When I loaded your vector.js and ran 'One Touch: DMY', I see an error in the JavaScript console:
Uncaught TypeError: editor is undefined in ohc_delink_dates in ONETOUCH_DMY in <anonymous> javascript:ONETOUCH_DMY():1
- That's because ohc_delink_dates is now written for TemplateScript, so it expects the editor argument it provides.
- The easiest fix is to add your top-level links like ONETOUCH_DMY with TemplateScript. Then they'll be able to call both TemplateScript scripts (like
ohc_delink_dates(editor)
) and Regex Menu Framework scripts (likeOhc_retrain_links()
), and you'll be able to incrementally remove Regex Menu Framework in the future. If you're interested, I can draft an updated vector.js for you. —Pathoschild (talk) 16:47, 9 September 2023 (UTC)- Most grateful to you for identifying the problem and solution so quickly. As I wouldn't know how to go about making the change you recommend (I looked under the bonnet and it was all gobbledegook), I would appreciate it if you could draw me up a new vector module. Regards, -- Ohc 17:37, 9 September 2023 (UTC)
- The easiest fix is to add your top-level links like ONETOUCH_DMY with TemplateScript. Then they'll be able to call both TemplateScript scripts (like
- @Ohconfucius: Sorry for the delay! Here's an updated version of your vector.js (see diff). Do you still have the issue with that version? —Pathoschild (talk) 22:01, 30 September 2023 (UTC)
- Thanks for that. Unfortunately, I cannot get it to work. As I don't really understand the changes made, I don't know where to start to troubleshoot. :-( -- Ohc 16:32, 8 October 2023 (UTC)
- @Ohconfucius: Sorry for the delay! Here's an updated version of your vector.js (see diff). Do you still have the issue with that version? —Pathoschild (talk) 22:01, 30 September 2023 (UTC)
- What isn't working? Can you list the specific steps with the expected vs actual result? —Pathoschild (talk) 17:26, 8 October 2023 (UTC)
ArbCom 2023 Elections voter message
Hello! Voting in the 2023 Arbitration Committee elections is now open until 23:59 (UTC) on Monday, 11 December 2023. All eligible users are allowed to vote. Users with alternate accounts may only vote once.
The Arbitration Committee is the panel of editors responsible for conducting the Misplaced Pages 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 2023 election, please review the candidates and submit your choices on the voting page. If you no longer wish to receive these messages, you may add {{NoACEMM}}
to your user talk page. MediaWiki message delivery (talk) 00:22, 28 November 2023 (UTC)
Nomination for deletion of Template:R
Template:R has been nominated for deletion. You are invited to comment on the discussion at the entry on the Templates for discussion page. 142.113.140.146 (talk) 08:30, 15 August 2024 (UTC)
Nomination for deletion of Template:Archive-index
Template:Archive-index has been nominated for deletion. You are invited to comment on the discussion at the entry on the Templates for discussion page. Rjj (talk) 02:02, 27 November 2024 (UTC)
Category:WikiProject on open proxies has been nominated for renaming
Category:WikiProject on open proxies has been nominated for renaming. A discussion is taking place to decide whether it complies with the categorization guidelines. If you would like to participate in the discussion, you are invited to add your comments at the category's entry on the categories for discussion page. Thank you. Nobody (talk) 06:37, 20 December 2024 (UTC)