Magic words are a few reserved words that are used for special purposes in MediaWiki. They are used to create special types of formatting. We can use magic words to show table of contents, display the current date and time, and so on. Programmers sometimes refer to these as reserved words.Magic words are divided between behavior switches and variables. Behavior switches control the behavior and/or layout of the page. They are often used to specify desired omissions and inclusions in the content. For instance, if we wanted to remove the table of contents from a particular page, we could put the magic word _NOTOC_
on our page and the table of contents will be removed for us. Likewise, we can force a table of contents to appear with the _FORCETOC_
or _TOC_
magic words. Magic words that are behavior switches are shown in the following table:
Magic word |
Explanation |
---|---|
|
Hides the table of contents (TOC). |
|
Forces the table of content to appear at its... |