Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
MediaWiki:Access.js
(view source)
Revision as of 22:26, 17 February 2020
158 bytes added
,
4 years ago
no edit summary
Line 10:
Line 10:
};
};
+
mw.hook( 'wikibase.entityPage.entityLoaded' ).add( function ( entity ) {
+
'use strict';
+
// Your code goes here
+
console.log( entity );
+
} );
// check if we are on a page of a loaded Entity
// check if we are on a page of a loaded Entity
if ( typeof mw.config.values.wbEntity != "undefined" ) {
if ( typeof mw.config.values.wbEntity != "undefined" ) {
Podehaye
Bureaucrats
, editors,
Interface administrators
,
Ninjas
, nuke,
Administrators
,
Widget editors
15,627
edits
Navigation menu
Personal tools
English
Log in
Request account
Namespaces
Message
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack