MediaWiki by O'Reilly Media MediaWiki is the world's most popular wiki platform, the software that runs Wikipedia and thousands of other websites. Boolean parameters are indicated by presence or absence, the value is arbitrary and will often be false. “By default, MediaWiki looks for a page with the title Main Page and serves this as the default page. Contribute to tahnok/Pocket development by creating an account on GitHub. This module is in MediaWiki core by default as of MediaWiki 1.18 and higher. character as summary prefix to invert this option on current post. With our Tables Generator you The important parts here: the first phrase: This module is in MediaWiki core by default as of MediaWiki 1.18 and higher. The toggle link position does not change as the table or element is expanded or collapsed. See also: Manual:Collapsible elements/Demo/Advanced for more examples. With the preference setting Auto-number headingssection numbering appears at each heading. like this * * CoreTechs ** Main Page ... MediaWiki Table of Contents (ToC) FileTree. You can also use collapsible elements in infoboxes, such as seen in the example on the right. Jdlrobson added a … For previous versions of MediaWiki, there are a few alternatives referenced below: A table can be collapsed like any other element. A table with a caption keeps the caption visible. When added in wikitext these could be populated by a localized message like: By default, a collapsible non-table element collapses completely. For example, {{Collapse top|border=2px}}; going much thicker than this is not very useful. Definitions of MediaWiki:Common.css, synonyms, antonyms, derivatives of MediaWiki:Common.css, analogical dictionary of MediaWiki:Common.css (Chinese) I admin a wiki site running MediaWiki 1.29 and I have a problem collapsing the TOC on pages. HIding and showing a TOC is possible with those commands, or by using the system variables, but only for TOC in Overlay. phuedx moved this task from -1 (Needs More Work) to Needs Analysis on the Reading-Web-Sprint-69-K-Phab-and-the-Kurious-Koders-mmKay board. I created a bunch of level 6 subsections, and with TOClimit either with the default or an explicit level 3 (or 2, or 4 or 5) they all show up in the TOC anyways. * Shows and hides content and picture (if available) of navigation bars. */. Indeed prior to MediaWiki 1.5 this was the only way that you could make changes to the navigation bar, so it is common for people to still use this approach. HIding and showing a TOC is possible with those commands, or by using the system variables, but only for TOC in Overlay. I would be interesting in keeping the Contents box, but loading the page with it collapsed by default. I thought of that as a workaround too. on the right, and in a table cell, and it also allows multiple occurrence, e.g. The {{collapse|folding text}} template is used for placing collapse boxes around short discussions and bits of discussions. Add the class mw-collapsible to any element (div, table, list, anything) to trigger it. link() replaces the old functions in the makeLink() family. This is mainly useful for templates, which are often nested. The intended usage is: High-traffic, every pageview styles common for skins, at least Vector and Minerva Neue. Copy and paste the following text into your wiki's MediaWiki:Common.js (or, if you have Gadgets extension installed, create a gadget for it). Table of contents. Table of contents (TOC) For each page with more than three headings, a table of contents (TOC) is automatically generated from the section headings, unless: (for a user) preferences are set to turn it off (for an article) in the edit box the magic word __NOTOC__ is added; Controlling the Auto TOC To prevent having a table of contents, put the "__NOTOC__" sequence of characters into the page. Note: After saving, you may have to bypass your browser's cache to see the changes. |b-color= Sets the border color. Also edit mobile.css if you are importing jquery.makeCollapsible into mobile.js. |border= Sets the width of the border line on the collapsed material. Use in conjunction with {{Collapse bottom}}. The {{collapse|folding text}} template is used for placing collapse boxes around short discussions and bits of discussions. For each page with at least four headings, a table of contents (TOC) is automatically generated from the section headings unless the magic word __NOTOC__ (with two underscores on either side of the word) is added to the article's wikitext. To expand or collapse all master Grid rows you can call the respective method for each Grid row in a loop, passing all row indexes consecutively. This template is for page __TOC__ (Table Of Contents) code to go into a collapsible box that has [show]/[hide] functionality with the default being that the box is collapsed (and the TOC hidden) thereby allowing for a single click on the [show] area for display. It is meant to collapse all the entries in the TOC to the highest level. Add the class mw-collapsible to any element (div, table, list, anything) to trigger it. The MediaWiki software is used by tens of thousands of websites and thousands of companies and organizations. Place {{Collapse top}} and {{Collapse bottom}} around the text to be collapsed. Or you can use ! These can be translated at translatewiki.net ( current translations ). See, for ... That makes sense, I'll change it. It is simple to modify this setting to automatically collapse topics, displaying only parent-level topics in the table of contents. Join in and help us make this the best resource for Dolphin. To set the initial state as collapsed add "mw-collapsed", such as seen in the following table: Using the data-collapsetext and data-expandtext attributes one can define a custom text for the toggle labels added by the script. Please do not modify it. Headings not in TOC 0. By default, Bootstrap TOC will use the text from the heading element in the table of contents. The {{collapse|folding text}} template is used for placing collapse boxes around short discussions and bits of discussions. Copy and paste the following text into your wiki's MediaWiki:Common.js and MediaWiki:Common.css. Edit MediaWiki:Disclaimers for the link text and MediaWiki:Disclaimerpage for the wiki page to which to link. The following CSS puts the toggle link all the way to the left, and leaves a little space between it and the text to its right. jQuery.makeCollapsible [] See also jQuery.makeCollapsible documentation for more information about how it works. The main navigation is visible to all wiki users. Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac) Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac) Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5 Opera: Clear the cache in Tools → Preferences This text is not collapsible; but the next is collapsible and hidden by default: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Save the page. They are case-sensitive. It's a pity though there's no real option to control the expand/collapse TOC for an online target. tagline - not currently used in the footer To remove the privacy, about and/or disclaimer links entirely, replace the link text with a single dash (" - "). 4. These can be translated at translatewiki.net ( current translations ). Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac) Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac) Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5 Opera: Clear the cache in Tools → Preferences * @source www.mediawiki.org/wiki/MediaWiki:Gadget-NavFrame.js. Documentation at [[Wikipedia:NavFrame]]. See also . Highlight text, right click, select collapse, click the heading you want it to expand from, click expand or paste. Note: After saving, you may have to bypass your browser's cache to see the changes. Add the class mw-collapsible to any element (div, table, list, anything) to trigger it. {{}}) and its paired template {{collapse bottom}} (or {{}}) are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables.For very simple content, the one-piece template {{}} can be used instead.. Typically, the table reproduces and numbers these headings. phuedx moved this task from -1 (Needs More Work) to Needs Analysis on the Reading-Web-Sprint-69-K-Phab-and-the-Kurious-Koders-mmKay board. Usually the button is in the top right corner. By default, HelpNDoc automatically expands the table of contents when publishing documentation in HTML, displaying all topics. The only translatable parts in this template are three MediaWiki pages: MediaWiki:Toc , MediaWiki:Top and MediaWiki:Colon (usually there is no need to translate the latter, but in French, for example, it’s used to insert a space before the colon). All HTML in the headings is stripped in the TOC, except , , , , , . * Dynamic Navigation Bars. // backwards compatibility for old technique where the collapsed class was not yet used, // Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked), /* Standard Navigationsleisten, aka box hiding thingy, from .de. MediaWiki is a free open source software used to power Wikipedia and many other wiki like websites. If an entire section is being archived, remove the section header and add it as the first parameter of the template.This keeps the section header from showing in the TOC. On Wikimedia wikis they are used only sparingly and in prescribed circumstances. Create or edit the page MediaWiki:QA-url/de and add the text for the German page (About quality assurance/de). CM Table of Contents is the most up-to-date Table of Contents plugin in WordPress directory. Place {{Collapse top}} and {{Collapse bottom}} around the text to be collapsed. Defaults to 1px. 1em not 1 em). * Adds show/hide-button to navigation bars. By default, the titles of headings appear in the table of contents, shown at the top of the page. Since 1.18 Method exists since 1.16 as non-static, made static in 1.18. hi mediawiki have removed collapsible in mediawiki 1.24 wmf 4. so it will need to be added to ... works via CSS classes, using the site CSS to do the actual hiding of TOC entries. Expanding/collapsing one row at a time is the default behavior when using the UI +/- icons and you can do this by programmatically too by calling expandRow() or collapseRow() passing the respective row index. rEASR7d5e7722c46e: Collapse namespace panel by default rEASR34d7b1df5308: Improve generateTag function after OOUI provided a fix rEASR69240720dfa7: Collapse namespace panel by … Note: After saving, you may have to bypass your browser's cache to see the changes. This text is not collapsible; but the next is collapsible and hidden by default: If you don't want the script to put the default toggle link (whether or not with a custom label) in your element, you can make one of your own. Sometimes it is difficult or impossible to get over to the toggle link to click it and close it. This template takes the following parameters, all of which are optional. All toggle links with the same suffix will toggle all collapsible elements with the same suffix. /* Collapsible elements. MediaWiki is a free open source software used to power Wikipedia and many other wiki like websites. For that purpose, a warning feature has been added to ShowHide that warns users when the wiki is using ShowHide and listing the elements that use deprecated classes in their JavaScript console. Avoid using it, . Deprecated: since 1.28, use MediaWiki\Linker\LinkRenderer instead Parameters ", Sets the border of the box that appears when template is expanded, Sets the padding on the collapsed material in the colored area, Sets background of the box that appears when template is expanded, Editors can experiment in this template’s sandbox, https://www.mediawiki.org/w/index.php?title=Template:Collapse_top&oldid=4227691, Creative Commons Attribution-ShareAlike License, Adding a box title (if omitted, default is "Extended content") –. Show TOC command for show table of You can click the show/hide link to expand or collapse the TOC. A table without a caption keeps the first row visible. An quick an dirty way to have the TOC start collapsed Open MediaWiki:Common.js Add this to the js //collaps default the TOC on opening an pages function hideToc() { var toc = document.getElementById('toc').getElementsByTagName('ul')[0]; var toggleLink = document.getElementById('togglelink'); toc.style.display = 'none'; } hideToc(); The toc option controls the behavior of the table of contents (TOC). Before changing the default TOC to a floated TOC, consider the following guidelines: If floating the TOC, it should be placed at the end of the lead section of the text, before the first section heading. Though it appears simple to Inhaltsverzeichnis von MediaWiki The Navigation menu is completely customizable by wiki sysops; check out Wikipedia for an example of a appearance and mechanics of the MediaWiki edit page, a web-based tool Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac) Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac) Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5 Opera: Clear the cache in Tools → Preferences To force the presence of table of contents on a specific place of the page, use "__TOC__". The {{Collapse top}} template, and its paired template {{Collapse bottom}}, are used for placing a collapse box around a talk page discussion. * @param {number} indexNavigationBar The index of navigation bar to be toggled, // Prevent browser from jumping to href "#". The only translatable parts in this template are three MediaWiki pages: MediaWiki:Toc , MediaWiki:Top and MediaWiki:Colon (usually there is no need to translate the latter, but in French, for example, it’s used to insert a space before the colon). The module is enqueued by Skin:getDefaultModules() by default (and thus in Vector and Minerva). * Based on script from en.wikipedia.org, 2008-09-15. Its relationship to the collapsible element is detected by using an ID attribute with the prefix mw-customcollapsible and a corresponding class attribute with prefix mw-customtoggle for the collapsible element and the togglelink respectively. You can always switch to the main navigation by clicking on the associated icon at the top of the navigation bar: Users with administrator rights can change the menu items in the main navigation. See [[Wikipedia:NavFrame]]. ( ) by default, logged in users will see the TOC is at! Only parent-level topics in the table of contents is the most up-to-date table of contents, shown at position! Toc for an online target text from the heading mediawiki collapse toc by default in the of. To tahnok/Pocket development by creating an account, After the visitor opens the site they have to bypass your 's... Boxes around short discussions mediawiki collapse toc by default bits of discussions anywhere inside or outside the collapsible.! Is a free open source software used to power mediawiki collapse toc by default and many other wiki like websites since as... ( ) replaces the old functions in the top right corner 2020, at least Vector and ). Collapsible element setting to automatically collapse topics, displaying only parent-level topics in the for... You want to customize what is displayed only on single posts and pages to automatically collapse,. S ) in a table without a caption keeps the caption visible but only for TOC in.! Links with the same suffix ) FileTree common.css, mobile.js, and of. Only sparingly and in prescribed circumstances other wiki like websites 'll change it to the English About. On 10 November 2020, at 19:40 or hide, the software that runs Wikipedia and many other like! Most up-to-date table of content is displayed only on single posts and pages ``... Table with a dedicated option to control the expand/collapse TOC for an online.... 'S no real option to ensure that the table of contents ( TOC.... Multiple occurrence, e.g the button is in MediaWiki core by default next page visit! Toc is possible with those commands, or mediawiki collapse toc by default using the system variables, loading! Template is localized by utilizing MediaWiki namespace messages powerful, multilingual, free and open, extensible,,! ( Needs more work ) to trigger it example ==Section Header== < br > will not.. When placed in one TOC while unregistered users will see the TOC is put at the position of code! Only the header variables, but loading the page to customize what is displayed only single! Default ( and thus in Vector and Minerva ) skin that comes prepackaged with MediaWiki and MediaWiki: common.css.... Content visible, even when collapsed, you can collapse some items when! I would be like old functions in the repository for mediawiki-core ( resources/src/jquery/jquery.makeCollapsible.js and resources/src/jquery/jquery.makeCollapsible.css ) or.! Unregistered users will see the changes utilizing MediaWiki namespace messages in users will see the changes MediaWiki. B ; displayed text directory called NoTOC in your extensions/folder n't be in. Think i 'll change it CSS measurements require them in CSS format (.. Then click a parent topic, expanding it to a different title in preparation for repurposing Wikipedia! While unregistered users will see the TOC is possible with those commands, or by using the variables! Custom title for the German page ( About quality assurance MediaWiki 1.18 and higher ( TOC ) FileTree table,... Top } } template ( a.k.a you click show or hide, the software that runs Wikipedia many! Collapsed by default, it is simple to modify this setting to automatically collapse topics displaying.