Difference between revisions of "User talk:Kosmo"

From AvatarWiki
Jump to navigation Jump to search
m (oops)
m (→‎Magic Words: interwiki linked (where possible - WP: okay, MW: via url), redid sig. Couldn't be bothered to import TAG and H2 templates to fully fix the text. :-P)
Line 13: Line 13:
 
==Magic Words==
 
==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.
+
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 [[mw:Help:Magic words#Behavior switches|Behavior switches]] section of the MediaWiki page, unless otherwise stated.</small>
+
<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>
  
 
* <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 23: Line 23:
 
* <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 [[mw:Extension:Disambiguator]].
+
* <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.
22:00, 29 May 2014 (EDT)
+
--[[User:Qismat|Qismat]] 16:37, 30 May 2014 (EDT)
  
 
=== Senseless Clutter ===
 
=== Senseless Clutter ===

Revision as of 15:37, 30 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.

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)