Jump to content

MediaWiki:Common: Difference between revisions

→‎Common.js: documenting ModifySidebar()
m (um, yeah, I meant to do that)
(→‎Common.js: documenting ModifySidebar())
Line 16: Line 16:


* Next, Common.js sets up hasClass(), which is used by the next code, which places the show/hide buttons in those divhide boxes mentioned above.  The code after ''that'' uses the NavFrame class from Common.css to create the collapsible tables that divhide uses.
* Next, Common.js sets up hasClass(), which is used by the next code, which places the show/hide buttons in those divhide boxes mentioned above.  The code after ''that'' uses the NavFrame class from Common.css to create the collapsible tables that divhide uses.
* A function called ModifySidebar() is made available for customizing the items listed in the sections on the left of all wiki pages. See Iritscen's [[User:Iritscen/monobook.js|custom JS page]] for a sample usage.
** Parameter 1: The string "add" or "remove".
** Parameter 2: The name of the section; "navigation", "languages" (not displayed on this wiki), or "toolbox".
** Parameter 3: The display name of the URL you will be adding.
** Parameter 4: The full URL of the wiki page to add (this should allow the adding of external links as well).


* There are also some fixes for IE and table sorting.
* There are also some fixes for IE and table sorting.


[[Category:Policies and documentation]]
[[Category:Policies and documentation]]