Difference between revisions of "User talk:Kosmo"
m (→Magic Words: fixing sig) |
m (→Question:) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | Question: | + | __TOC__ |
+ | |||
+ | |||
+ | == Awesome stuff that awesome people have imparted == | ||
+ | |||
+ | === Question: === | ||
How do I create a table of contents within a page, with links to sections lower in the page? | How do I create a table of contents within a page, with links to sections lower in the page? | ||
Line 7: | Line 12: | ||
I don't see any code for the Contents box on the "edit" screen. | I don't see any code for the Contents box on the "edit" screen. | ||
− | + | It is triggered based on how many sections you have. Once you hit four it is automatically created. --[[User:Ylem|Ylem]] 15:37, 28 May 2014 (EDT) | |
− | |||
− | ( | ||
− | |||
− | |||
− | ( | + | : Oops my mistake, deleted your comment it by accident, sorry. -- [[User:WinterRose|WinterRose]] 14:48, 30 May 2014 (EDT) |
− | == | + | ===Magic Words=== |
− | ( | + | Mediawiki installations recognise a lot of "magic words" (see [[wikipedia:WP:MAGIC|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. |
− | + | <small>For documentation, see the [[http://www.mediawiki.org/wiki/Magic_words#Behavior switches Behavior switches]] section of the MediaWiki page, unless otherwise stated.</small> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <small>For documentation, see the [[ | ||
* <code><nowiki>__NOTOC__</nowiki></code> (can appear anywhere in the wikitext; suppresses the table of contents) | * <code><nowiki>__NOTOC__</nowiki></code> (can appear anywhere in the wikitext; suppresses the table of contents) | ||
Line 43: | Line 28: | ||
* <code><nowiki>__NEWSECTIONLINK__</nowiki></code> (adds a "+" link for adding a new section on a non-"Talk" page) | * <code><nowiki>__NEWSECTIONLINK__</nowiki></code> (adds a "+" link for adding a new section on a non-"Talk" page) | ||
* <code><nowiki>__NONEWSECTIONLINK__</nowiki></code> (removes the "+" link on "Talk" pages) | * <code><nowiki>__NONEWSECTIONLINK__</nowiki></code> (removes the "+" link on "Talk" pages) | ||
− | * <code><nowiki>__HIDDENCAT__</nowiki></code> (on a category page, makes it a [[WP:HIDDENCAT|hidden category]]) | + | * <code><nowiki>__HIDDENCAT__</nowiki></code> (on a category page, makes it a [[wikipedia:WP:HIDDENCAT|hidden category]]) |
* <code><nowiki>__INDEX__</nowiki></code> (tells search engines to index the page) | * <code><nowiki>__INDEX__</nowiki></code> (tells search engines to index the page) | ||
* <code><nowiki>__NOINDEX__</nowiki></code> (tells search engines not to index the page) | * <code><nowiki>__NOINDEX__</nowiki></code> (tells search engines not to index the page) | ||
− | * <code><nowiki>__DISAMBIG__</nowiki></code> (marks a page as a [[WP:DAB|disambiguation page]] and places it in [[Special:DisambiguationPages]], and places inward links in [[Special:DisambiguationPageLinks]]). See [[ | + | * <code><nowiki>__DISAMBIG__</nowiki></code> (marks a page as a [[wikipedia:WP:DAB|disambiguation page]] and places it in [[wikipedia:Special:DisambiguationPages|Special:DisambiguationPages]], and places inward links in [[wikipedia:Special:DisambiguationPageLinks|Special:DisambiguationPageLinks]]). See [[http://www.mediawiki.org/wiki/Extension:Disambiguator Extension:Disambiguator]]. |
− | * <code><nowiki>{{DISPLAYTITLE:</nowiki>''title''<nowiki>}}</nowiki></code> (changes the [[WP:DISPLAYTITLE|displayed form]] of the page title) | + | * <code><nowiki>{{DISPLAYTITLE:</nowiki>''title''<nowiki>}}</nowiki></code> (changes the [[wikipedia:WP:DISPLAYTITLE|displayed form]] of the page title) |
I hope this is helpful for you all. | I hope this is helpful for you all. | ||
− | --[[User:Qismat|Qismat]] | + | --[[User:Qismat|Qismat]] 16:37, 30 May 2014 (EDT) |
+ | |||
+ | ==== Senseless Clutter ==== | ||
+ | |||
+ | |||
+ | Shiny, thanx Qis! (Kosmo, feel free to clear out this page if you wish, hehe) -- [[User:WinterRose|WinterRose]] 07:38, 30 May 2014 (EDT) |
Latest revision as of 00:03, 7 October 2014
Contents
Awesome stuff that awesome people have imparted
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.
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)
- Oops my mistake, deleted your comment it by accident, sorry. -- WinterRose 14:48, 30 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 [switches 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 [Extension:Disambiguator].{{DISPLAYTITLE:title}}
(changes the displayed form of the page title)
I hope this is helpful for you all. --Qismat 16:37, 30 May 2014 (EDT)
Senseless Clutter
Shiny, thanx Qis! (Kosmo, feel free to clear out this page if you wish, hehe) -- WinterRose 07:38, 30 May 2014 (EDT)