How to wait for Wikibase edit links to finish loading Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Transclude a category in MediaWikiImplementing Add Media Wizard with MediaWiki 1.16.0Mediawiki 1.16: labeled section transclusionIn a MediaWiki page, how do I include a link to both a file and the file's description pageCreate Mediawiki Edit Article ButtonWikidata API: Check whether a Wikivoyage article is linked from WikidataCreating sections with Scribunto with edit linkSPARQL Matching Literals with **ANY** Language Tags without run into timeoutLoading wikidata dumpHow to get all allowed languages for Wikidata

What is the origin of 落第?

Can you force honesty by using the Speak with Dead and Zone of Truth spells together?

How were pictures turned from film to a big picture in a picture frame before digital scanning?

Google .dev domain strangely redirects to https

Why datecode is SO IMPORTANT to chip manufacturers?

Is it dangerous to install hacking tools on my private linux machine?

Can an iPhone 7 be made to function as a NFC Tag?

Is it possible for an event A to be independent from event B, but not the other way around?

Sally's older brother

Weaponising the Grasp-at-a-Distance spell

Trying to understand entropy as a novice in thermodynamics

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

What does it mean that physics no longer uses mechanical models to describe phenomena?

What does Turing mean by this statement?

What initially awakened the Balrog?

Is multiple magic items in one inherently imbalanced?

Where did this useful matrix decomposition come from for Nodal Analysis?

Project Euler #1 in C++

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

My mentor says to set image to Fine instead of RAW — how is this different from JPG?

Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?

Why weren't discrete x86 CPUs ever used in game hardware?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Where is the Next Backup Size entry on iOS 12?



How to wait for Wikibase edit links to finish loading



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Transclude a category in MediaWikiImplementing Add Media Wizard with MediaWiki 1.16.0Mediawiki 1.16: labeled section transclusionIn a MediaWiki page, how do I include a link to both a file and the file's description pageCreate Mediawiki Edit Article ButtonWikidata API: Check whether a Wikivoyage article is linked from WikidataCreating sections with Scribunto with edit linkSPARQL Matching Literals with **ANY** Language Tags without run into timeoutLoading wikidata dumpHow to get all allowed languages for Wikidata



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















I would like to write a Wikidata gadget, and need to wait for the page to be fully loaded, including the edit links next to each statement.



I tried to wait for wikibase.view.ViewFactoryFactory but that didn't help - my code begins executing before the edit toolbar is initialized. What's the best way to do it?



mw.loader.using( [ 'wikibase.view.ViewFactoryFactory' ], function () 
...
);









share|improve this question




























    3















    I would like to write a Wikidata gadget, and need to wait for the page to be fully loaded, including the edit links next to each statement.



    I tried to wait for wikibase.view.ViewFactoryFactory but that didn't help - my code begins executing before the edit toolbar is initialized. What's the best way to do it?



    mw.loader.using( [ 'wikibase.view.ViewFactoryFactory' ], function () 
    ...
    );









    share|improve this question
























      3












      3








      3








      I would like to write a Wikidata gadget, and need to wait for the page to be fully loaded, including the edit links next to each statement.



      I tried to wait for wikibase.view.ViewFactoryFactory but that didn't help - my code begins executing before the edit toolbar is initialized. What's the best way to do it?



      mw.loader.using( [ 'wikibase.view.ViewFactoryFactory' ], function () 
      ...
      );









      share|improve this question














      I would like to write a Wikidata gadget, and need to wait for the page to be fully loaded, including the edit links next to each statement.



      I tried to wait for wikibase.view.ViewFactoryFactory but that didn't help - my code begins executing before the edit toolbar is initialized. What's the best way to do it?



      mw.loader.using( [ 'wikibase.view.ViewFactoryFactory' ], function () 
      ...
      );






      mediawiki wikidata wikidata-api






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 23:11









      YurikYurik

      3,82124158




      3,82124158






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Received an answer from IRC channel, thanks nikki!



           mw.hook('wikibase.entityPage.entityView.rendered').add(function () 
          ....
          );





          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072278%2fhow-to-wait-for-wikibase-edit-links-to-finish-loading%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Received an answer from IRC channel, thanks nikki!



             mw.hook('wikibase.entityPage.entityView.rendered').add(function () 
            ....
            );





            share|improve this answer



























              2














              Received an answer from IRC channel, thanks nikki!



               mw.hook('wikibase.entityPage.entityView.rendered').add(function () 
              ....
              );





              share|improve this answer

























                2












                2








                2







                Received an answer from IRC channel, thanks nikki!



                 mw.hook('wikibase.entityPage.entityView.rendered').add(function () 
                ....
                );





                share|improve this answer













                Received an answer from IRC channel, thanks nikki!



                 mw.hook('wikibase.entityPage.entityView.rendered').add(function () 
                ....
                );






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 8 at 23:30









                YurikYurik

                3,82124158




                3,82124158





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072278%2fhow-to-wait-for-wikibase-edit-links-to-finish-loading%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    1928 у кіно

                    Захаров Федір Захарович

                    Ель Греко