Обсуждение MediaWiki:Gadget-markblocked.js: различия между версиями

(→‎mw.util.$content: :::{{re|TheDJ}} What are those dependencies, and how can we simulate loading as a true gadget from another project? ~~~~)
::Correct on the first part, less sure about the conclusion you make. Again, i'm not entirely sure what that block is trying to achieve (why does it have to listen for content to begin with ?), making it harder to give the right advise. It also would be wise to wrap that mw.util.addPortletlink with mw.loader.using( 'mediawiki.util'). Several people seem to make use of this gadget by direct loading of this file, instead of using it as a gadget, so they don't receive the dependencies that are delivered when you use this as a true Gadget. [[У:TheDJ|TheDJ]] ([[ОУ:TheDJ|обс.]]) 10:07, 12 июля 2017 (UTC)
:::{{re|TheDJ}} What are those dependencies, and how can we simulate loading as a true gadget from another project? &nbsp; — <font size="4">[[User:Jeff G.|Jeff]] [[User:Jeff G./talk|G. ツ]]</font> 02:47, 11 апреля 2018 (UTC)
::::{{re|Jeff G.}} You simulate by having the same gadget definition. See [[en:MediaWiki:Gadgets-definition]]. If you don't include that same information for your own gadget, you often get unexpected behaviour. [[У:TheDJ|TheDJ]] ([[ОУ:TheDJ|обс.]]) 07:49, 11 апреля 2018 (UTC)
 
== Globally locked and blocked users ==
6

правок