MediaWiki:Common.js: Difference between revisions
Appearance
Removing all content from page |
No edit summary |
||
| Line 1: | Line 1: | ||
//<source lang="javascript"> | |||
/* Import more specific scripts if necessary */ | |||
if (wgAction == "edit" || wgAction == "submit" || wgPageName == "Special:Upload") //scripts specific to editing pages | |||
{ | |||
importScript("MediaWiki:Common.js/edit.js") | |||
} | |||
else if (wgPageName == "Special:Watchlist") //watchlist scripts | |||
{ | |||
importScript("MediaWiki:Common.js/watchlist.js") | |||
} | |||
else if (wgPageName == "Special:Search") //scripts specific to Special:Search | |||
{ | |||
importScript("MediaWiki:Common.js/search.js") | |||
} | |||
Revision as of 11:48, 26 January 2009
//<source lang="javascript">
/* Import more specific scripts if necessary */
if (wgAction == "edit" || wgAction == "submit" || wgPageName == "Special:Upload") //scripts specific to editing pages
{
importScript("MediaWiki:Common.js/edit.js")
}
else if (wgPageName == "Special:Watchlist") //watchlist scripts
{
importScript("MediaWiki:Common.js/watchlist.js")
}
else if (wgPageName == "Special:Search") //scripts specific to Special:Search
{
importScript("MediaWiki:Common.js/search.js")
}