MediaWiki talk:Gadget-morebits.js: Difference between revisions

Content deleted Content added
reply
 
(10 intermediate revisions by 4 users not shown)
Line 1:
{{mbox|type=content|text='''Before modifying or proposing changes to this script, please note:'''<br />Modifications made to this gadget script are likely to be unintentionally overwritten, as the script is automatically synchronized with an off-wiki [https://github.com/azatoth/twinkle code repository]. Please [[WT:TW|notify Twinkle's maintainers]] of any changes you propose or make to this script.}}
 
== Untitled 2011 comment ==
{{editprotected|answered=yes}} Could a friendly admin please copy the contents of [[User:This, that and the other/temp/MediaWiki:Gadget-morebits.js]] to this page? I am currently in the process of testing this gadget script. — <span style="border:dashed #666;border-width:1px 0 0 1px">[[User:This, that and the other|This, that]]</span>, and <span style="border:dashed #666;border-width:0 1px 1px 0">[[User talk:This, that and the other|the other<small> (talk)</small>]]</span> 08:09, 16 May 2011 (UTC)
: Friendly admin gladly complies. [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 10:10, 16 May 2011 (UTC)
 
 
== IndexOf x $.inArray==
Line 14:
:I have no idea. But as there is no opposition I have made the change for you. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:14, 19 May 2011 (UTC)
::Fair enough. Personally, I think it's a performance decrease, and doesn't really improve legibility. But, that aside, any changes to this page are likely to get unintentionally overwritten, unless Twinkle maintainers get a heads-up at [[WT:TW]]. — <span style="border:dashed #666;border-width:1px 0 0 1px">[[User:This, that and the other|This, that]]</span>, and <span style="border:dashed #666;border-width:0 1px 1px 0">[[User talk:This, that and the other|the other<small> (talk)</small>]]</span> 10:40, 19 May 2011 (UTC)
::: Helder's point was mainly browser compatibility, I think: IE8 doesn't support JS 1.6 and thus doesn't know <ttcode>Array.indexOf</ttcode>.<br>Don't know how many other problems morebits has in IE8 (and older), of course. [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 11:03, 19 May 2011 (UTC)
::::Indeed. IE8 shows "undefined" if I put "javascript:alert(['foo'].indexOf)" in the adress bar while Firefox displays "function indexOf() {[native code]}". [[User talk:Helder.wiki|Helder]] 18:06, 25 May 2011 (UTC)
{{editprotected|answered=yes}} Actually, that change broke stuff. Could an admin please revert it? Thanks, — <span style="border:dashed #666;border-width:1px 0 0 1px">[[User:This, that and the other|This, that]]</span>, and <span style="border:dashed #666;border-width:0 1px 1px 0">[[User talk:This, that and the other|the other<small> (talk)</small>]]</span> 10:57, 19 May 2011 (UTC)
Line 25:
::::: Eh, now I get it: userIsInGroup is called while loading this script, so activating this gadget would actually cause javascript errors in IE8 or below. We can't have that in a gadget. I've made the change here, could someone also do so in the repo? [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 19:25, 25 May 2011 (UTC)
:::::: I don't quite get it myself, but I trust your judgment, Amalthea. I have made the change in the git repo. — <span style="border:dashed #666;border-width:1px 0 0 1px">[[User:This, that and the other|This, that]]</span>, and <span style="border:dashed #666;border-width:0 1px 1px 0">[[User talk:This, that and the other|the other<small> (talk)</small>]]</span> 07:42, 26 May 2011 (UTC)
 
== Morebits and MOS:ORDER ==
[[File:Fischotter, Lutra Lutra.JPG|thumb|right|This, that and the otter in their natural habitat]]
{{ping|This, that and the other}} Instead of having to [https://en.wikipedia.org/w/index.php?title=User:Polygnotus/DuplicateReferences.js&diff=next&oldid=1292726204 define] an array of templates that should precede it, and then saying <code>.insertAfterTemplates(templateToInsert, precedingTemplates</code> it would be nice to simply be able to say: "I want this template to be inserted at [[MOS:ORDER]] #6 because it is a maintenance template". Am I making sense? I started making a list of all possible templates that should precede maintenance templates but there are so [[Wikipedia:Speedy deletion/Deletion templates|many]]! [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 15:24, 28 May 2025 (UTC)
 
Also pinging {{ping|Novem Linguae}} who is listed as a maintainer of Twinkle, which morebits is a component of. [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 16:51, 28 May 2025 (UTC)
 
:@[[User:Polygnotus|Polygnotus]]. Feel free to file a feature request at https://github.com/wikimedia-gadgets/twinkle/issues/new?template=BLANK_ISSUE
:You may also be interested in a 750-line MOSOrderPositionFinder class I wrote for one of my other user scripts. It's located at https://github.com/NovemLinguae/UserScripts/blob/master/SpeciesHelper/modules/MOSOrderPositionFinder.js if you want to fork it. –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 18:18, 28 May 2025 (UTC)