Difference between revisions of "User talk:Kosmo"

From AvatarWiki
Jump to navigation Jump to search
(You can also use mediawiki's magic words...)
m (→‎Magic Words: fixing sig)
Line 50: Line 50:
  
 
I hope this is helpful for you all.
 
I hope this is helpful for you all.
22:00, 29 May 2014 (EDT)
+
--[[User:Qismat|Qismat]] 22:01, 29 May 2014 (EDT)

Revision as of 22:01, 29 May 2014

Question:

How do I create a table of contents within a page, with links to sections lower in the page?

Eg - Abbaye Du Livre and other Area page have a Contents box with links to Directions, Navigation, etc.

I don't see any code for the Contents box on the "edit" screen.

Simple

(simple)

Like

(like)

This

(this)

It's automatic

assuming you put headers throughout the document.

and there is

a number of them. -- WinterRose 02:55, 29 May 2014 (EDT)


It is triggered based on how many sections you have. Once you hit four it is automatically created. --Ylem 15:37, 28 May 2014 (EDT)

Magic Words

Mediawiki installations recognise a lot of "magic words" (see WP:MAGIC for a full list of all the various types). The ones I have copied below deal with behaviours, and as you can see, the top three relate to Tables of Contents.

For documentation, see the Behavior switches section of the MediaWiki page, unless otherwise stated.

  • __NOTOC__ (can appear anywhere in the wikitext; suppresses the table of contents)
  • __FORCETOC__ (can appear anywhere in the wikitext; makes a table of contents appear in its normal position above the first heading)
  • __TOC__ (places a table of contents at the word's position)
  • __NOEDITSECTION__ (hides the section "edit" links beside all headings on the page; to hide the edit link for one section only, use suitable html tags – e.g. Template:Tag – in place of the normal ==Section== syntax to insert the normal formatting for a section header without including the edit link)
  • __NEWSECTIONLINK__ (adds a "+" link for adding a new section on a non-"Talk" page)
  • __NONEWSECTIONLINK__ (removes the "+" link on "Talk" pages)
  • __HIDDENCAT__ (on a category page, makes it a hidden category)
  • __INDEX__ (tells search engines to index the page)
  • __NOINDEX__ (tells search engines not to index the page)
  • __DISAMBIG__ (marks a page as a disambiguation page and places it in Special:DisambiguationPages, and places inward links in Special:DisambiguationPageLinks). See mw:Extension:Disambiguator.
  • {{DISPLAYTITLE:title}} (changes the displayed form of the page title)

I hope this is helpful for you all. --Qismat 22:01, 29 May 2014 (EDT)