Difference between revisions of "MediaWiki/js"

From Freephile Wiki
Jump to navigation Jump to search
m
(Link to wikEd)
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
For instance, if you put the [[JavaScript|JavaScript]] code for [[wp:User:Cacycle/wikEd | wikEd]] in there, it will make the WikEd editor available to all users of the local wiki.
 
For instance, if you put the [[JavaScript|JavaScript]] code for [[wp:User:Cacycle/wikEd | wikEd]] in there, it will make the WikEd editor available to all users of the local wiki.
[[Category:Wiki]]
 
 
== Debugging JavaScript ==
 
<ol>
 
<li> Access the developer tools of your browser
 
<ul>
 
<li>Chrome  <code>CTRL + SHIFT + J</code>
 
<li>Firefox <code>CTRL + SHIFT + I</code>
 
</ul>
 
<li>Go to the console tab (look for errors)
 
<li>append <code>?debug=true</code> to the URL and reload the page.  This will give you non-minified JavaScript.
 
</ol>
 

Revision as of 07:30, 8 April 2013

The first thing to know about MediaWiki and JavaScript is that the site administrator can customize the wiki installation by simply modifying the article MediaWiki:Common.js

For instance, if you put the JavaScript code for wikEd in there, it will make the WikEd editor available to all users of the local wiki.