Template:Dialog/js prefix/doc

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

Usage[edit]

Documents the prefix for page-specific javascript.

The interactive dialog tools expect a customization in MediaWiki:Common.js that, when loading PAGENAME, looks for a page MediaWiki:<prefix>PAGENAME and, if found, loads and executes it as javascript. <prefix> is hard-coded into Common.js, and may vary between projects due to possible naming conflicts; this template tells documentation pages what <prefix> is.