Help:Magic words for beginners: Difference between revisions

Content deleted Content added
Created page with "{{For|more detailed information on magic words|Help:Magic words}} {{Wikipedia how-to}} '''Magic words''' are words surrounded by brackets or underscores which most oft..."
 
m Text replacement - "[[WP:" to "[[Wikipedia:WP:"
 
Line 1:
{{For|more detailed information on magic words|Help:Magic words}}
{{Wikipedia how-to}}
'''Magic words''' are words surrounded by [[brackets]] or [[underscores]] which most often insert or display the current value of what they are called. These include '''parser functions''', '''variables''' and '''behavior switches''' and are features of [[Wikipedia:WP:wikitext|wikitext]]. They are interpreted by the Metawiki software and are often used in templates so that they show different information depending on which page they are on and many other conditions.
 
==Types==
Line 34:
====Categories and Indexing====
* <code><nowiki>__NOGALLERY__</nowiki></code> (on category pages, replaces thumbnails with normal links)
* <code><nowiki>__HIDDENCAT__</nowiki></code> (on category pages, makes it a [[Wikipedia:WP:HIDDENCAT|hidden category]])
* <code><nowiki>__INDEX__</nowiki></code> (tells search engines to index the page (show in results))
* <code><nowiki>__NOINDEX__</nowiki></code> (tells search engines not to index the page (not show in results))
 
====Titles and Sorting====
* <code><nowiki>{{DISPLAYTITLE:</nowiki>''title''<nowiki>}}</nowiki></code> (changes the [[Wikipedia:WP:DISPLAYTITLE|displayed form]] of the page title)
* <code><nowiki>{{DEFAULTSORT:</nowiki>''sortkey''<nowiki>}}</nowiki></code> (sets a default category [[Wikipedia:WP:SORTKEY|sorting key]])
 
==Variables==