User talk:Krinkle: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
welcome!
 
rv vandalism
Tag: Manual revert
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div id="welcome">
<div class="mw-tpl-welcome plainlinks">
<span style="float: right;"><small>[{{fullurl:Template:Welcome|action=edit}} edit this template]</small></span>
<h2><span style="float: right; font-size: 50%;">[{{fullurl:Template:Welcome|action=edit}} edit this template]</span> Welcome to the Wikimedia Foundation wiki</h2>
<span style="border-bottom: 1px dotted #3071d3; font-size: 1.3em; font-weight: bold;">Welcome to the Wikimedia Foundation website.</span>


'''Thanks for being here!''' This wiki does not exactly follow the same rules as the other Wikimedia projects, since it is ''not open to all'' for editing, and in case of disagreement, the organ of decision will be the Board. A rule of thumb however is that if we gave you access, that means ''we trust you''. So please, do not be shy in editing this site. There is ample work for everyone :-)
'''Thanks for being here!''' This wiki does not exactly follow the same rules as the other Wikimedia projects, since it is ''not open to all'' for editing, and in case of disagreement, the organ of decision will be the Board. A rule of thumb however is that if we gave you access, that means ''we trust you''. So please, do not be shy in editing this site. There is ample work for everyone :-)
Line 10: Line 9:
* [[Wikimedia:Welcome|More about this wiki...]]
* [[Wikimedia:Welcome|More about this wiki...]]
</div> [[User:PeterSymonds|PeterSymonds]] ([[User talk:PeterSymonds|talk]]) 19:58, 19 June 2012 (UTC)
</div> [[User:PeterSymonds|PeterSymonds]] ([[User talk:PeterSymonds|talk]]) 19:58, 19 June 2012 (UTC)

== [[Template:Staff and contractors]] ==

Hi. When I click "collapse all departments" at <https://wikimediafoundation.org/wiki/Template:Staff_and_contractors?showall=1>, I'm taken to <https://wikimediafoundation.org/wiki/Template:Staff_and_contractors?showall=undefined>. The URL is funky, but the functionality seems to be working as expected. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 04:35, 27 August 2012 (UTC)
: Thanks, fixed. It now omits "showall" from the url instead of setting it to false or undefined. URL is much cleaner now. [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 16:23, 27 August 2012 (UTC)
:: You're wonderful. Thank you for the quick fix! --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 21:23, 27 August 2012 (UTC)

The expand/collapse all functionality is now broken again. I think it's due to the jQuery upgrade from last week. Can you please take a look at the page when you have a minute? The JavaScript console shows the relevant error/issue (something about "span#expand-all"), but I can't figure out the exact cause of the problem. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 04:01, 2 September 2012 (UTC)
:Fixed in [https://wikimediafoundation.org/w/index.php?title=MediaWiki:Expand.js&diff=prev&oldid=83460 this edit]. It appears the Expand.js plugin was building a CSS selector that included literal surrounding quotes inside the string (e.g. <code>selector = "'foobar:first'";</code>) which is obviously invalid and never worked (not now, not before). However previously Sizzle (jQuery's selector engine) would just silently fail, and now it throw an exception (as it should). Fixed now. [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 18:30, 2 September 2012 (UTC)
:: Thanks again for your help with this! --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 18:36, 2 September 2012 (UTC)
::: "''Thanks for using Krinkle Services''" :) [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 19:29, 2 September 2012 (UTC)

== Collapse code ==

Hi. The show/hide functionality at [[User:Thehelpfulone/Fundraising]] wasn't working properly (there was an error in the JavaScript console about missing collapseTable). So I copied over some relevant code from [[w:en:MediaWiki:Common.js]] to [[MediaWiki:Common.js]], but this led to two show/hide links. Consequently, I disabled the legacy collapsible tables gadget for now, as a temporary measure, as it was not working and the code from the English Wikipedia was working. [[User:Thehelpfulone/Fundraising]] now functions properly. I didn't have the patience to debug the issue properly, but if you do, please feel free to undo any mess I may have made. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 21:10, 24 March 2013 (UTC)
: I don't know what [[User:Thehelpfulone/Fundraising]] is for but I'd say have him fix his own page (more specifically the template he created, [[Template:Collapse top]]) by using the classes we use here on wmfwiki, and not copy in huge loads of scripts of enwiki just to make that template work. It makes more sense to fix the template then to bring in 100s of javascript lines to make those 4 lines of wikitext work.
: Since we already had the legacy collapsible script on this wiki I [https://wikimediafoundation.org/w/index.php?title=MediaWiki:Gadget-legacyCollapsibleTables.js&diff=prev&oldid=90843 updated] the gadget – instead of disabling the gadget and pasting the latest version in Common.js (I reverted [https://wikimediafoundation.org/w/index.php?title=MediaWiki:Common.js&diff=prev&oldid=90087 these] [https://wikimediafoundation.org/w/index.php?title=MediaWiki:Gadgets-definition&diff=prev&oldid=90088 two] edits).
: Also (for future reference to Thehelpfulone and yourself) avoid creating new templates that use legacy scripts that already have core equivalents (unless there is a problem with them). You can simply use the class <code>mw-collapsible</code> (powered by core's [[mw:RL/DM#jquery.makeCollapsible|jquery.makeCollapsible]]) instead of the legacy script's class <code>collapsible</code>.
: As example I [https://wikimediafoundation.org/w/index.php?title=Template%3ACollapse_top&diff=90846&oldid=90041 converted] [[Template:Collapse top]] to use this new module that ships with MediaWiki by default and needs no gadget. --[[User:Krinkle|Krinkle]] ([[User talk:Krinkle#top|talk]]) 20:27, 25 March 2013 (UTC)
:: Thank you. :-) Clearly the solution is to ban Thehelpfulone. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 20:43, 25 March 2013 (UTC)

Latest revision as of 00:15, 6 February 2024

PeterSymonds (talk) 19:58, 19 June 2012 (UTC)[reply]

Hi. When I click "collapse all departments" at <https://wikimediafoundation.org/wiki/Template:Staff_and_contractors?showall=1>, I'm taken to <https://wikimediafoundation.org/wiki/Template:Staff_and_contractors?showall=undefined>. The URL is funky, but the functionality seems to be working as expected. --MZMcBride (talk) 04:35, 27 August 2012 (UTC)[reply]

Thanks, fixed. It now omits "showall" from the url instead of setting it to false or undefined. URL is much cleaner now. Krinkle (talk) 16:23, 27 August 2012 (UTC)[reply]
You're wonderful. Thank you for the quick fix! --MZMcBride (talk) 21:23, 27 August 2012 (UTC)[reply]

The expand/collapse all functionality is now broken again. I think it's due to the jQuery upgrade from last week. Can you please take a look at the page when you have a minute? The JavaScript console shows the relevant error/issue (something about "span#expand-all"), but I can't figure out the exact cause of the problem. --MZMcBride (talk) 04:01, 2 September 2012 (UTC)[reply]

Fixed in this edit. It appears the Expand.js plugin was building a CSS selector that included literal surrounding quotes inside the string (e.g. selector = "'foobar:first'";) which is obviously invalid and never worked (not now, not before). However previously Sizzle (jQuery's selector engine) would just silently fail, and now it throw an exception (as it should). Fixed now. Krinkle (talk) 18:30, 2 September 2012 (UTC)[reply]
Thanks again for your help with this! --MZMcBride (talk) 18:36, 2 September 2012 (UTC)[reply]
"Thanks for using Krinkle Services" :) Krinkle (talk) 19:29, 2 September 2012 (UTC)[reply]

Collapse code

Hi. The show/hide functionality at User:Thehelpfulone/Fundraising wasn't working properly (there was an error in the JavaScript console about missing collapseTable). So I copied over some relevant code from w:en:MediaWiki:Common.js to MediaWiki:Common.js, but this led to two show/hide links. Consequently, I disabled the legacy collapsible tables gadget for now, as a temporary measure, as it was not working and the code from the English Wikipedia was working. User:Thehelpfulone/Fundraising now functions properly. I didn't have the patience to debug the issue properly, but if you do, please feel free to undo any mess I may have made. --MZMcBride (talk) 21:10, 24 March 2013 (UTC)[reply]

I don't know what User:Thehelpfulone/Fundraising is for but I'd say have him fix his own page (more specifically the template he created, Template:Collapse top) by using the classes we use here on wmfwiki, and not copy in huge loads of scripts of enwiki just to make that template work. It makes more sense to fix the template then to bring in 100s of javascript lines to make those 4 lines of wikitext work.
Since we already had the legacy collapsible script on this wiki I updated the gadget – instead of disabling the gadget and pasting the latest version in Common.js (I reverted these two edits).
Also (for future reference to Thehelpfulone and yourself) avoid creating new templates that use legacy scripts that already have core equivalents (unless there is a problem with them). You can simply use the class mw-collapsible (powered by core's jquery.makeCollapsible) instead of the legacy script's class collapsible.
As example I converted Template:Collapse top to use this new module that ships with MediaWiki by default and needs no gadget. --Krinkle (talk) 20:27, 25 March 2013 (UTC)[reply]
Thank you. :-) Clearly the solution is to ban Thehelpfulone. --MZMcBride (talk) 20:43, 25 March 2013 (UTC)[reply]