User:WikiWriter/Samples/Magic words
- The most useful magic words, and other built-in MediaWiki markup.
#REDIRECT
[edit]This 'tag' in an article automatically redirects from the article it's in, to specified other.
By convention article-names should not be acronyms, but it can be useful to do so with that article redirecting to the article with the 'expanded' name.
Example
[edit]The GMT article contains the following redirect 'tag' to the Greenwich Mean Time article.
#REDIRECT [[Greenwich_Mean_Time]]
__NOEDITSECTION__
[edit]You probably won't use this 'tag' in a general article, but adding it to an article (usually at the top) prevents the automatic addition of section-edit links. Note this 'tag' is created with double-underscores before, and after 'NOEDITSECTION'.
__NOEDITSECTION__
__NOTOC__
[edit]You probably won't use this 'tag' in a general article, but adding it to an article (usually at the top) prevents the automatic addition of a table-of-contents.
Note this 'tag' is created with double-underscores before, and after the 'NOTOC'.
<nowiki> and </nowiki>
[edit]This 'tag-pair' forces wiki-markup to be ignored.
Without
[edit]... to the [[Main Page|Main Page]] ...
creates :
... to the Main Page ...
With
[edit]... to the <nowiki>[[Main Page|Main Page]]</nowiki> ...
creates :
... to the [[Main Page|Main Page]] ...