User:NKohli (WMF)/common.js

function getCurrentRevId { return mw.config.get('wgCurRevisionId'); }

function getPageTitle { return mw.config.get('wgPageName'); }

function getAction { return mw.config.get('wgAction'); }

function getUser { return mw.config.get('wgUserName'); }

function getPath { return mw.config.get('wgScriptPath'); }

function getRequest { // Making an API request code goes here }

function addSlider { alert(getUser); }

$( document ).ready( function { } );