Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1Types
 




2Things to remember
 




3Behavior switches
 


3.1Table of contents
 


3.1.1Edit/section links
 




3.1.2Categories and indexing
 




3.1.3Titles and sorting
 








4Variables
 




5See also
 













Help:Magic words for beginners






سرائیکی

اردو
 

Edit links
 









Help page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 


















From Wikipedia, the free encyclopedia
 


Magic words are words surrounded by bracketsorunderscores 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 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[edit]

There are three types of magic words:

Things to remember[edit]

A Notepad
Remember...
  • "{{ Nofeed |Art=Wikipedia }}" and {{Nofeed|Art=Wikipedia}} will both succeed in producing the "Nofeed" template.
  • If I insert {{exampletemplate}} and it says {{PAGENAME}}, I will see "Magic words for beginners" even though it is from "Template:example template".
  • {{CURRENTTIME}} will always display the current time and remain as is, while {{subst:CURRENTTIME}} will result in, for example, 9:45 being inserted and always remaining as regular text.

Behavior switches[edit]

A Magic Wand
The implementation of magic words

For a more detailed explanation, refer to the behavior switches MediaWiki page.

Table of contents[edit]

Edit/section links[edit]

Categories and indexing[edit]

Titles and sorting[edit]

Variables[edit]

The Square Root of x
A variable in math
A mathematical plot.
A plot of variables in algebra.
(Though magic words are much easier!)

For documentation, you may wish to read the variables MediaWiki page.

  • Shown here: Help:Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Help:Magic words for beginners (Ex. "Talk:Wikipedia" makes "Wikipedia")
  • Shown here: Help talk:Magic words for beginners (Ex. "Wikipedia" makes "Talk:Wikipedia")
  • Shown here: Help (Ex. User:QwerpQwertus/Adoption makes "User")
  • Shown here: Help, Help (Ex. User talk:QwerpQwertus/Adoption makes "User")
  • Shown here: Help talk (Ex. "Wikipedia" makes "Talk:Wikipedia")
  • Shown here: Help:Magic_words_for_beginners (Ex. "Wikipedia" makes "http://en.wikipedia.org/w/index.php?title=Wikipedia")

See also[edit]

For more detailed information on all magic words (behaviour switches, variables and parser functions), consider reading:


Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Magic_words_for_beginners&oldid=1213533433"

Categories: 
Wikipedia how-to
Wikipedia soft redirected project pages
Wikipedia interwiki soft redirects
Wikipedia features
 



This page was last edited on 13 March 2024, at 16:43 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki