Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Transclusion
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Magic words=== {{Main|Help:Magic words}} Magic words are not examples of transclusion. But some have a near identical double curly bracket syntax and similar action to transclusion. For example, <syntaxhighlight lang="wikitext" inline="">{{FULLPAGENAME}}</syntaxhighlight> renders the full [[Wikipedia:Page name|page name]] of any Wikipedia page, for example it returns {{Mono|{{FULLPAGENAME}}}} on this page. Like templates, some magic words can also take parameters, which are separated using a colon (<code>:</code>); for example <syntaxhighlight lang="wikitext" inline="">{{TALKPAGENAME:Help:Transclusion}}</syntaxhighlight> returns {{Mono|{{TALKPAGENAME:Help:Transclusion}}}}. Templates do exist for some magic words, for example [[Template:FULLPAGENAME]]; but these just invoke the related magic word and pass parameters using the verticle bar (<code>|</code>) to the magic word in anycase; for example like <syntaxhighlight lang="wikitext" inline="">{{FULLPAGENAME|value}}</syntaxhighlight>. But magic words parameters are best passed directly by using a colon, which bypasses the unnecessary use of a template call too. For example, <syntaxhighlight lang="wikitext" inline="">{{FULLPAGENAME|value}}</syntaxhighlight> is synonymous with <syntaxhighlight lang="wikitext" inline="">{{FULLPAGENAME:value}}</syntaxhighlight>, where the latter is preferred.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)