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

Content deleted Content added
m Obsolete HTML tags "tt" swapped out for "code". Project Lint
 
(9 intermediate revisions by 3 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 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)