Topic on Project:Support desk

Per-page Auto-number headings

3
Amire80 (talkcontribs)

Is there a magic word that does something like the preference "Auto-number headings", but only on one page?

Ribe (talkcontribs)

When following the instructions in TOC#Auto-numbering the auto-numbering is switched of. Then how do I turn it on in only certain speciel cases? Guess we have the same problem?

Ciencia Al Poder (talkcontribs)

You need to do that with CSS or JavaScript. See an example:

Then depending on the solution you want, if it's CSS, see Manual:Interface/CSS to where to put that code, and be sure to limit the CSS selectors to the page where you want it displayed. Each page has a distinct body css class, so use it to limit to that page. For example, for this page each selector will need to have the body.page-Project_Support_desk before each CSS selector.

If it's JS, see Manual:Interface/JavaScript, and execute the code inside a conditional code like this:

if (mw.config.get('wgPageName') == 'Project:Support_desk') {
     // Your code here
}
Reply to "Per-page Auto-number headings"