Help:Magic words: Difference between revisions

Content deleted Content added
move from my sandbox -- this illustrates a pretty complicated set of weird things
stupid incomplete fix that i will revert
Tag: Reverted
Line 15:
 
In general, there are three types of magic words.
# '''[[#Behavior switches|Behavior switches]]''': often appear in double underscores, all uppercase, e.g., <code>__NOTOC<nowiki/>____NOTOC__</code>. They will change the behavior of a page, rather than return a value.
# '''[[#Parser functions|Parser functions]]''': all in lowercase. A parser function will be followed by colon and pipe-separated parameters, e.g., <code><nowiki>{{#ifexpr:Y|Yes|No}}</nowiki></code>, wrapped in double braces. They will take a value and return a value.
# '''[[#Variables|Variables]]''': these are all uppercase, e.g., {{tld|PAGENAME}}. A variable will be wrapped in double braces and will return a value in its place.
 
Line 23:
* [[Whitespace character|White space]] is generously allowed for readability. It will be stripped from the start and end of their keywords and parameters (as is also done in template calls using named parameters).
* They can be [[WP:Transclusion|transcluded]], even variables "about the current page". This is ensured by the parsing order.
* Instead of magically transforming into HTML instructions, {{tag|[[help:wikitext#Nowiki|nowiki]]|o}} tags remove this magic so a magic word can itself be displayed (documented), e.g. <code><nowiki><nowiki>{{#magic:}}</nowiki></nowiki></code>or <code><nowiki>{{#magic:<nowiki/>}}</nowiki></code>.
 
Magic words compared to templates:
* As with templates, magic words can be [[help:transclusion|transcluded]] and [[Help:substitution|substituted]].
* The names of magic words are purposely chosen to be unlike the names of templates, and vice versa. Many parser function names will begin with a <code>#</code>([[Hash (character)|pound or hash]]), but template names [[wp:NCHASHTAG | will not start with a <code>#</code>]], and probably not end in a <code>:</code>(colon), or be all-uppercase.
* The first parameter's syntax differs. In <code>{{#magic: <nowiki/>p1 | p2 | p3}}</code>, the name is <code>#magic</code>and it is followed by an unspaced <code>:</code>and a required input parameter, <code>p1</code>. With a template, <code>p1</code>is optional and it is preceded by a <code>|</code>(pipe) instead of a <code>:</code>, e.g. <code>{{template<nowiki/>|p1}}</code>.
 
Most magic words can be used in any needed locations on a page; see [[MOS:ORDER]] for guidance on where to place magic words that are behavior switches.
Line 38:
! scope=col | Description
|-
! scope=row id=TOC | <kbd><nowikisyntaxhighlight inline lang="wikitext">__TOC__</nowiki></kbdsyntaxhighlight>
| Places the page's [[Help:Table of contents|table of contents (TOC)]] at the word's position. This magic word does not work in skins that present the table of contents outside the article content e.g. the default Vector 2022 skin.
|-
! scope=row id=FORCETOC | <kbd><nowikisyntaxhighlight inline lang="wikitext">__FORCETOC__</nowiki></kbdsyntaxhighlight>
| Forces the TOC to appear in its default position, even when there are fewer than four headings. Can be used anywhere on a page. This magic word does not work in skins that present the table of contents outside the article content e.g. the default Vector 2022 skin.
|-
! scope=row id=NOTOC | <kbd><nowikisyntaxhighlight inline lang="wikitext">__NOTOC__</nowiki></kbdsyntaxhighlight>
| Suppresses the appearance of the page's TOC. Can be used anywhere on a page.
|-
! scope=row id=NOEDITSECTION | <kbd><nowikisyntaxhighlight inline lang="wikitext">__NOEDITSECTION__</nowiki></kbdsyntaxhighlight>
| Hides the "edit" links normally beside ''all'' headings on the page. To hide the edit link beside a ''particular'' heading, specify the heading using e.g. an [[HTML element|HTML tag]] such as {{tag|h2|content=''heading''}} rather than with the usual wiki equals-signs syntax (e.g. {{nowrap|1=<kbdsyntaxhighlight inline lang="wikitext">== ''heading'' ==</kbdsyntaxhighlight>}}{{thinsp}}).
|-
! scope=row id=ARCHIVEDTALK | <kbd><nowikisyntaxhighlight inline lang="wikitext">__ARCHIVEDTALK__</nowiki></kbdsyntaxhighlight>
| Hides the [[:mw:Talk_pages_project/Replying|"Reply" button]]
|-
! scope=row id=NEWSECTIONLINK | <kbd><nowikisyntaxhighlight inline lang="wikitext">__NEWSECTIONLINK__</nowiki></kbdsyntaxhighlight>
| On non-talk pages, adds a "{{int:vector-action-addsection}}" link as a means to add a new section to the page.
|-
! scope=row id=NONEWSECTIONLINK | <kbd><nowikisyntaxhighlight inline lang="wikitext">__NONEWSECTIONLINK__</nowiki></kbdsyntaxhighlight>
| Removes the "{{int:vector-action-addsection}}" link (the add-new-section link) on talk pages.
|-
! scope=row id=NOGALLERY | <kbd><nowikisyntaxhighlight inline lang="wikitext">__NOGALLERY__</nowiki></kbdsyntaxhighlight>
| Replaces thumbnails on a category page with normal links.
|-
! scope=row id=HIDDENCAT | <kbd><nowikisyntaxhighlight inline lang="wikitext">__HIDDENCAT__</nowiki></kbdsyntaxhighlight>
| Makes a category [[WP:HIDDENCAT|hidden]] when included on that category's page.
|-
! scope=row id=INDEX | <kbd><nowikisyntaxhighlight inline lang="wikitext">__INDEX__</nowiki></kbdsyntaxhighlight>
| Instructs [[Web search engine|search engine]]s to index the page.
|-
! scope=row id=NOINDEX | <kbd><nowikisyntaxhighlight inline lang="wikitext">__NOINDEX__</nowiki></kbdsyntaxhighlight>
| Instructs search engines not to index the page. See [[Wikipedia:Controlling search engine indexing]].
|-
! scope=row id=STATICREDIRECT | <kbd><nowikisyntaxhighlight inline lang="wikitext">__STATICREDIRECT__</nowiki></kbdsyntaxhighlight>
| Prevents the link on a [[Help:Redirect|redirection]] page from being updated automatically when the page to which it redirects is moved (and "Update any redirects that point to the original title" is selected).
|-
! scope=row id=DISAMBIG | <kbd><nowikisyntaxhighlight inline lang="wikitext">__DISAMBIG__</nowiki></kbdsyntaxhighlight>
| Marks a page as a [[WP:DAB|disambiguation page]], adds it to [[Special:DisambiguationPages]] and places inward links in [[Special:DisambiguationPageLinks]]. (See [[mw:Extension:Disambiguator]].)
|-
! scope=row id=DISPLAYTITLE | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{DISPLAYTITLE:''title''}}</kbdsyntaxhighlight>
| Used to amend the [[WP:DISPLAYTITLE|displayed form]] of the page's title.
|-
! scope=row id=DEFAULTSORT | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{DEFAULTSORT:''sortkey''}}</kbdsyntaxhighlight>
| Sets the default [[Help:Category#Sorting category pages|key]] (the index) under which the page is categorised. Functionality is documented at {{section link|Help:Category#Default sort key}}, and guidelines are at {{section link|Wikipedia:Categorization#Sort keys}}.
|-
! scope=row id=NOEXTERNALLANGLINKS | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Wikibase/Installation/Advanced configuration#noexternallanglinks|{<nowiki/>{NOEXTERNALLANGLINKS}}]]</kbdsyntaxhighlight>
|| (equivalent to {<nowiki/>{NOEXTERNALLANGLINKS|*}}{{thinsp}}) Suppresses the automated inclusion of [[Wikidata:Help:Linking Wikipedia pages|Wikidata]] [[Help:Interlanguage links|interlanguage links]] on the lefthand side of the page. Links to particular rather than all languages may be suppressed by using {<nowiki/>{NOEXTERNALLANGLINKS|''list''}}, where ''list'' a [[Vertical bar|pipe]]-[[Delimiter|delimited]] list of [[language code]]s (e.g. {<nowiki/>{NOEXTERNALLANGLINKS|fr{{pipe}}es{{pipe}}ja}} to suppress the French ("fr"), Spanish ("es") and Japanese ("ja") interlanguage links).
|}
 
Line 99:
! scope=col | Description
|-
! scope=row id=FULLPAGENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{FULLPAGENAME}}</kbdsyntaxhighlight>
| {{FULLPAGENAME}}
| Canonical [[Help:page name|page name]]. ''Title line''. Title unless letter-case is altered with {{tld|DISPLAYTITLE}}.
|-
! scope=row id=PAGENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PAGENAME}}</kbdsyntaxhighlight>
| {{PAGENAME}}
| Title line excluding [[Wikipedia:Namespace|namespace]].
|-
! scope=row id=BASEPAGENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{BASEPAGENAME}}</kbdsyntaxhighlight>
| {{BASEPAGENAME}}
| Title of parent page, excluding namespace.
|-
! scope=row id=ROOTPAGENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{ROOTPAGENAME}}</kbdsyntaxhighlight>
| {{ROOTPAGENAME}}
| Title of topmost parent (before all subpages), excluding namespace.
|-
! scope=row | <kbdsyntaxhighlight inline lang="wikitext">[[wp:pagename#sub|{<nowiki/>{SUBPAGENAME}}]]</kbdsyntaxhighlight>
| {{SUBPAGENAME}}
| On a subpage, rightmost portion of ''current'' title; higher subpagenames show as [[Breadcrumb navigation|backlinks]].
|-
! scope=row id=ARTICLEPAGENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{ARTICLEPAGENAME}}</kbdsyntaxhighlight>
| {{ARTICLEPAGENAME}}
| rowspan=2 | Title of the subject page associated with the current page. These are useful on talk pages (but see note about Category talk pages).
|-
! scope=row id=SUBJECTPAGENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{SUBJECTPAGENAME}}</kbdsyntaxhighlight>
| {{SUBJECTPAGENAME}}
|-
! scope=row id=TALKPAGENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{TALKPAGENAME}}</kbdsyntaxhighlight>
| {{TALKPAGENAME}}
| Title of the talk page associated with the current page. Useful on subject pages.
|-
! scope=row id=NAMESPACENUMBER | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NAMESPACENUMBER}}</kbdsyntaxhighlight>
| {{NAMESPACENUMBER:{{FULLPAGENAME}}}}
| Number of the current page's namespace.
|-
! scope=row id=NAMESPACE | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NAMESPACE}}</kbdsyntaxhighlight>
| {{NAMESPACE}}
| Namespace of the title.
|-
! scope=row id=ARTICLESPACE | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{ARTICLESPACE}}</kbdsyntaxhighlight>
| {{ARTICLESPACE}}
| rowspan=2 | On a talk page, the namespace part of the title of the associated subject page.
|-
! scope=row id=SUBJECTSPACE | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{SUBJECTSPACE}}</kbdsyntaxhighlight>
| {{SUBJECTSPACE}}
|-
! scope=row id=TALKSPACE | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{TALKSPACE}}</kbdsyntaxhighlight>
| {{TALKSPACE}}
| Namespace of the talk page associated with the current page.
|-
! scope=row id=FULLPAGENAMEE | {{longitem|style=line-height:1.5em|<kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{FULLPAGENAMEE}<nowiki/>}</kbdsyntaxhighlight>,<br /><kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PAGENAMEE}<nowiki/>}</kbdsyntaxhighlight>,<br />{{pad|0.4em}}(etc.)}}
| {{longitem|style=line-height:1.5em|{{FULLPAGENAMEE}},<br/>{{PAGENAMEE}},<br/>(etc.)}}
| Adding an E to the end of the above variables, renders the above encoded for use in MediaWiki [[URL]]s (i.e. with underscores replacing spaces).
|-
! scope=row id=SHORTDESC | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{SHORTDESC}}</kbdsyntaxhighlight>
| <!-- do not invoke this magic word here: shows nothing and places page in error-tracking category -->
| Only works on the English Wikipedia, where it displays a short description below the article title on mobile platforms. {{crossref|printworthy=y|See [[Wikipedia:Short description]].}}
|}
 
''Note:'' The magic words above can also take a parameter, in order to parse values on a page other than the current page. A colon (<kbdsyntaxhighlight inline lang="wikitext">:</kbdsyntaxhighlight>) is used to pass the parameter, rather than a pipe (<kbdsyntaxhighlight inline lang="wikitext">{{!}}</kbdsyntaxhighlight>) that is used in templates, like <kbd><nowikisyntaxhighlight inline lang="wikitext">{{MAGICWORD:value}}</nowiki></kbdsyntaxhighlight>. For example, <kbd><nowikisyntaxhighlight inline lang="wikitext">{{TALKPAGENAME:Wikipedia:MOS}}</nowiki></kbdsyntaxhighlight> returns <samp><nowiki>Wikipedia talk:MOS</nowiki></samp> on any page.
 
''Note:'' In the "Category" and "Category talk" namespaces, to wikilink (some) page name variables may require [[help:link|prefixing a colon]] to avoid unwanted categorization.
Line 168:
! scope=col | Description
|-
! scope=row id=SITENAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{SITENAME}}</kbdsyntaxhighlight>
| {{SITENAME}}
| Site name ([[mw:Manual:$wgSitename|$wgSitename]]).
|-
! scope=row id=SERVER | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{SERVER}}</kbdsyntaxhighlight>
| {{SERVER}}
| Domain [[URL]] ([[mw:Manual:$wgServer|$wgServer]]).
|-
! scope=row id=SERVERNAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{SERVERNAME}}</kbdsyntaxhighlight>
| {{SERVERNAME}}
| Subdomain and ___domain name.
|-
! scope=row id=ARTICLEPATH | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{ARTICLEPATH}}</kbdsyntaxhighlight>
| {{ARTICLEPATH}}
| Relative article path ([[mw:Manual:$wgArticlePath|$wgArticlePath]]).
|-
! scope=row id=SCRIPTPATH | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{SCRIPTPATH}}</kbdsyntaxhighlight>
| {{SCRIPTPATH}}
| Relative script path ([[mw:Manual:$wgScriptPath|$wgScriptPath]]).
|-
! scope=row id=STYLEPATH | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{STYLEPATH}}</kbdsyntaxhighlight>
| {{STYLEPATH}}
| Relative style path ([[mw:Manual:$wgStylePath|$wgStylePath]]).
|-
! scope=row id=CURRENTVERSION | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTVERSION}}</kbdsyntaxhighlight>
| {{CURRENTVERSION}}
| Returns current MediaWiki version.
Line 208:
! scope=col | Output
|-
! scope=row id=CURRENTYEAR | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTYEAR}}</kbdsyntaxhighlight>
| {{CURRENTYEAR}}
! scope=row id=LOCALYEAR | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALYEAR}}</kbdsyntaxhighlight>
| {{LOCALYEAR}}
|-
! scope=row id=CURRENTMONTH | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTMONTH}}</kbdsyntaxhighlight>
| {{CURRENTMONTH}}
! scope=row id=LOCALMONTH | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALMONTH}}</kbdsyntaxhighlight>
| {{LOCALMONTH}}
|-
! scope=row id=CURRENTMONTHNAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTMONTHNAME}}</kbdsyntaxhighlight>
| {{CURRENTMONTHNAME}}
! scope=row id=LOCALMONTHNAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALMONTHNAME}}</kbdsyntaxhighlight>
| {{LOCALMONTHNAME}}
|-
! scope=row id=CURRENTMONTHABBREV | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTMONTHABBREV}}</kbdsyntaxhighlight>
| {{CURRENTMONTHABBREV}}
! scope=row id=LOCALMONTHABBREV | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALMONTHABBREV}}</kbdsyntaxhighlight>
| {{LOCALMONTHABBREV}}
|-
! scope=row id=CURRENTDAY | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTDAY}}</kbdsyntaxhighlight>{{efn|<kbd><nowikisyntaxhighlight inline lang="wikitext">{{CURRENTDAY}}</nowiki></kbdsyntaxhighlight>, <kbd><nowikisyntaxhighlight inline lang="wikitext">{{LOCALDAY}}</nowiki></kbdsyntaxhighlight> and <kbd><nowikisyntaxhighlight inline lang="wikitext">{{REVISIONDAY}}</nowiki></kbdsyntaxhighlight> return the day (e.g. "<samp>6</samp>"), whilst <kbd><nowikisyntaxhighlight inline lang="wikitext">{{CURRENTDAY2}}</nowiki></kbdsyntaxhighlight>, <kbd><nowikisyntaxhighlight inline lang="wikitext">{{LOCALDAY2}}</nowiki></kbdsyntaxhighlight> and <kbd><nowikisyntaxhighlight inline lang="wikitext">{{REVISIONDAY2}}</nowiki></kbdsyntaxhighlight> return the day with zero-padding (e.g. "<samp>06</samp>"). For all two-digit days (i.e. 10 to 31), these are the same.|name=daynote}}
| {{CURRENTDAY}}
! scope=row id=LOCALDAY | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALDAY}}</kbdsyntaxhighlight>{{efn|name=daynote}}
| {{LOCALDAY}}
|-
! scope=row id=CURRENTDAY2 | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTDAY2}}</kbdsyntaxhighlight>{{efn|name=daynote}}
| {{CURRENTDAY2}}
! scope=row id=LOCALDAY2 | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALDAY2}}</kbdsyntaxhighlight>{{efn|name=daynote}}
| {{LOCALDAY2}}
|-
! scope=row id=CURRENTDOW | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTDOW}}</kbdsyntaxhighlight>
| {{CURRENTDOW}}
! scope=row id=LOCALDOW | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALDOW}}</kbdsyntaxhighlight>
| {{LOCALDOW}}
|-
! scope=row id=CURRENTDAYNAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTDAYNAME}}</kbdsyntaxhighlight>
| {{CURRENTDAYNAME}}
! scope=row id=LOCALDAYNAME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALDAYNAME}}</kbdsyntaxhighlight>
| {{LOCALDAYNAME}}
|-
! scope=row id=CURRENTTIME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTTIME}}</kbdsyntaxhighlight>
| {{CURRENTTIME}}
! scope=row id=LOCALTIME | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALTIME}}</kbdsyntaxhighlight>
| {{LOCALTIME}}
|-
! scope=row id=CURRENTHOUR | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTHOUR}}</kbdsyntaxhighlight>
| {{CURRENTHOUR}}
! scope=row id=LOCALHOUR | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALHOUR}}</kbdsyntaxhighlight>
| {{LOCALHOUR}}
|-
! scope=row id=CURRENTWEEK | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTWEEK}}</kbdsyntaxhighlight>
| {{CURRENTWEEK}}
! scope=row id=LOCALWEEK | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALWEEK}}</kbdsyntaxhighlight>
| {{LOCALWEEK}}
|-
! scope=row id=CURRENTTIMESTAMP | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{CURRENTTIMESTAMP}}</kbdsyntaxhighlight>{{efn|name=formatstamp}}
| {{CURRENTTIMESTAMP}}
! scope=row id=LOCALTIMESTAMP | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{LOCALTIMESTAMP}}</kbdsyntaxhighlight>{{efn|name=formatstamp}}
| {{LOCALTIMESTAMP}}
|}
Line 274:
! scope=col | Output
|-
! scope=row id=REVISIONDAY | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{REVISIONDAY}}</kbdsyntaxhighlight>{{efn|name=daynote}}
| {{REVISIONDAY}}
|-
! scope=row id=REVISIONDAY2 | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{REVISIONDAY2}}</kbdsyntaxhighlight>{{efn|name=daynote}}
| {{REVISIONDAY2}}
|-
! scope=row id=REVISIONMONTH | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{REVISIONMONTH}}</kbdsyntaxhighlight>
| {{REVISIONMONTH}}
|-
! scope=row id=REVISIONYEAR | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{REVISIONYEAR}}</kbdsyntaxhighlight>
| {{REVISIONYEAR}}
|-
! scope=row id=REVISIONTIMESTAMP | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{REVISIONTIMESTAMP}}</kbdsyntaxhighlight>{{efn|These timestamp outputs can be formatted with {{tl|Format revisiontimestamp}} (aka {{tl|FRTS}}). For example, <nowiki>{{</nowiki>[[Template:FRTS|FRTS]]<nowiki>|{{REVISIONTIMESTAMP}}}}</nowiki> turns "{{REVISIONTIMESTAMP}}" into "{{FRTS|{{REVISIONTIMESTAMP}}}}".|name=formatstamp}}
| {{REVISIONTIMESTAMP}}
|-
! scope=row id=REVISIONUSER | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{REVISIONUSER}}</kbdsyntaxhighlight>{{efn|This shows the last user to edit the page. There is no way to show the user viewing the page with magic words due to technical restrictions.}}
| {{REVISIONUSER}}
|}
Line 297:
|+ Wiki statistics
|-
! scope=row id=NUMBEROFPAGES | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFPAGES}}</kbdsyntaxhighlight>
| {{NUMBEROFPAGES}}
|-
! scope=row id=NUMBEROFARTICLES | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFARTICLES}}</kbdsyntaxhighlight>
| {{NUMBEROFARTICLES}}
|-
! scope=row id=NUMBEROFFILES | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFFILES}}</kbdsyntaxhighlight>
| {{NUMBEROFFILES}}
|-
! scope=row id=NUMBEROFEDITS | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFEDITS}}</kbdsyntaxhighlight>
| {{NUMBEROFEDITS}}
<!--disabled in MediaWiki (see talk page):
|-
! scope=row id=NUMBEROFVIEWS | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFVIEWS}}</kbdsyntaxhighlight>
| {{NUMBEROFVIEWS}}
-->
|-
! scope=row id=NUMBEROFUSERS | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFUSERS}}</kbdsyntaxhighlight>
| {{NUMBEROFUSERS}}
|-
! scope=row id=NUMBEROFADMINS | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFADMINS}}</kbdsyntaxhighlight>
| {{NUMBEROFADMINS}}
|-
! scope=row id=NUMBEROFACTIVEUSERS | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBEROFACTIVEUSERS}}</kbdsyntaxhighlight>
| {{NUMBEROFACTIVEUSERS}}
|}
Line 333:
! scope=col | Description
|-
! scope=row id=PAGEID | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PAGEID}}</kbdsyntaxhighlight>
| Unique page identifier number (for example, this page's ID is <samp>{{PAGEID}}</samp>).
|-
! scope=row id=PAGESIZE | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PAGESIZE:''fullpagename''}}</kbdsyntaxhighlight>
| Size of named page in bytes (for example, this page is <samp>{{PAGESIZE:{{FULLPAGENAME}}}}</samp> bytes).
|-
! scope=row id=PROTECTIONLEVEL | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PROTECTIONLEVEL:''action''{{pipe}}''fullpagename''}}</kbdsyntaxhighlight>
| [[Wikipedia:Protection policy|Protection level]] assigned to ''action'' ("edit", "move", etc.) on named page (this page's protection level for "edit" is <kbdsyntaxhighlight inline lang="wikitext">{{PROTECTIONLEVEL:edit|Help:Magic words}}</kbdsyntaxhighlight>).
|-
! scope=row id=PROTECTIONEXPIRY | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PROTECTIONEXPIRY:''action''{{pipe}}''fullpagename''}}</kbdsyntaxhighlight>
| [[Wikipedia:Protection policy|Protection expiry]] assigned to ''action'' ("edit", "move", etc.) on named page (this page's protection expiry is <kbdsyntaxhighlight inline lang="wikitext">{{PROTECTIONEXPIRY:edit|Help:Magic words}}</kbdsyntaxhighlight>).
|-
! scope=row id=PENDINGCHANGELEVEL | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PENDINGCHANGELEVEL:''fullpagename''}}</kbdsyntaxhighlight>
| Protection level for [[WP:PC|pending changes]] on the named page (this page, which doesn't have one, is <kbdsyntaxhighlight inline lang="wikitext">{{PENDINGCHANGELEVEL}}</kbdsyntaxhighlight>).
|-
! scope=row id=PAGESINCATEGORY | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{PAGESINCATEGORY:''categoryname''}}</kbdsyntaxhighlight>
| Number of pages in the category named ''categoryname''. Each subcategory is counted as one item.
|-
! scope=row id=NUMBERINGROUP | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{NUMBERINGROUP:''groupname''}}</kbdsyntaxhighlight>
| Number of users in the [[Wikipedia:User access levels|user group]] named ''groupname''.
|}
Page IDs can be associated with articles via wikilinks (i.e. <code>[[Special:Redirect/page/3235121]]</code>goes to this page).
To output numbers without comma [[Delimiter|separator]]s (for example, as "123456789" rather than "123,456,789"), append the parameter <kbdsyntaxhighlight inline lang="wikitext">|R</kbdsyntaxhighlight>.
{{cot|Magic words with other magic words as arguments, and substing}}
<syntaxhighlight inline lang="wikitext">
{{PAGESIZE}}
</syntaxhighlight>
{{PAGESIZE}}
<syntaxhighlight inline lang="wikitext">
{{PAGESIZE:Help:Magic words}}
</syntaxhighlight>
{{PAGESIZE:Help:Magic words}}
<syntaxhighlight inline lang="wikitext">
{{subst:PAGESIZE:Help:Magic words}}
</syntaxhighlight>
33,455
<syntaxhighlight inline lang="wikitext">
{{PAGESIZE:{{FULLPAGENAME}}}}
</syntaxhighlight>
{{PAGESIZE:{{FULLPAGENAME}}}}
<syntaxhighlight inline lang="wikitext">
{{subst:PAGESIZE:{{FULLPAGENAME}}}}
</syntaxhighlight>
0
<syntaxhighlight inline lang="wikitext">
{{subst:PAGESIZE:{{subst:FULLPAGENAME}}}}
</syntaxhighlight>
Line 389:
! scope=col | Description
|-
! scope=row id=lc | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{lc:''string''}}</kbdsyntaxhighlight>
| Converts all characters in ''string'' to lower case.
|-
! scope=row id=lcfirst | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{lcfirst:''string''}}</kbdsyntaxhighlight>
| Converts first character of ''string'' to lower case.
|-
! scope=row id=uc | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{uc:''string''}}</kbdsyntaxhighlight>
| Converts all characters in ''string'' to upper case.
|-
! scope=row id=ucfirst | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{ucfirst:''string''}}</kbdsyntaxhighlight>
| Converts first character of ''string'' to upper case.
|-
! scope=row id=formatnum | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{formatnum:''unformatted_number''}}<br/syntaxhighlight>{<nowikibr/><syntaxhighlight inline lang="wikitext">{{formatnum:''formatted_num'' {{pipe}}R}}</kbdsyntaxhighlight>
| Adds comma separators to an ''unformatted_number'' (e.g. 123456789 becomes {{formatnum:123456789}}). To remove such formatting, use <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{formatnum:''formatted_number''{{pipe}}R}}</kbdsyntaxhighlight> (i.e. <kbdsyntaxhighlight inline lang="wikitext">{{braces|formatnum:7,654,321{{pipe}}R}}</kbdsyntaxhighlight>, for example, produces {{formatnum:7,654,321|R}}).
|-
! scope=row id=dateformat | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{#dateformat:''date''{{pipe}}''format''}}<br/syntaxhighlight>{<nowikibr/><syntaxhighlight inline lang="wikitext">{{#formatdate:''date''{{pipe}}''format''}}</kbdsyntaxhighlight>
| Formats a date according to user preferences; a default can be given as an optional case-sensitive second parameter for users without date preference; can convert a date from an existing format to any of <code>dmy</code>, <code>mdy</code>, <code>ymd</code>, or <code>[[ISO 8601]]</code> formats, with the user's preference overriding the specified format.
|-
! scope=row id=padleft | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{padleft:''xyz''{{pipe}}''stringlength''}}<br/syntaxhighlight>{<nowikibr/><syntaxhighlight inline lang="wikitext">{{padright:''xyz''{{pipe}}''stringlength''}}<br/syntaxhighlight><br/>{<nowikibr/><syntaxhighlight inline lang="wikitext">{{padleft:''xyz''{{pipe}}''length''{{pipe}}''padstr''}}<br/syntaxhighlight>{<nowikibr/><syntaxhighlight inline lang="wikitext">{{padright:''xyz''{{pipe}}''length''{{pipe}}''padstr''}}</kbdsyntaxhighlight>
| Pad with zeroes '0' to the right or left, to fill the given length; an alternative padding string can be given as a third parameter; the repeated padding string (''padstr'') will be truncated if its length does not evenly divide the required number of characters.
|-
! scope=row id=mwplural | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{plural:''N''{{pipe}}''singular''{{pipe}}''plural''}}</kbdsyntaxhighlight>
| Outputs ''singular'' if ''N'' is equal to 1, otherwise outputs ''plural''. See the [[mw:Help:Magic words#Localization|documentation at mediawiki.org]] for more details.
|-
! scope=row id=mwtime | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{#time:''format''{{pipe}}''object''}}</kbdsyntaxhighlight><br/><kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{#timel:''format''{{pipe}}''object''}}<br/syntaxhighlight><br/>{<nowikibr/><syntaxhighlight inline lang="wikitext">{{#time:d F Y{{pipe}}''date''{{pipe}}''langcode''}}</kbdsyntaxhighlight>
| Used to format dates and times, for ISO format, dots or English month names. <kbdsyntaxhighlight inline lang="wikitext">#timel</kbdsyntaxhighlight> is based on local time as defined for each wiki; for English Wikipedia, this is identical to <kbdsyntaxhighlight inline lang="wikitext">#time</kbdsyntaxhighlight>.<br />The optional 3rd parameter is the output language code (French, German, Swedish: fr, de, sv, etc.). Example Finnish: <kbd><nowikisyntaxhighlight inline lang="wikitext">{{#time:d F Y|June 30, 2016|fi}}</nowiki></kbdsyntaxhighlight> shows: {{#time:d F Y|June 30, 2016|fi}} (June). ISO to German: <kbd><nowikisyntaxhighlight inline lang="wikitext">{{#time:d. M Y|1987-10-31|de}}</nowiki></kbdsyntaxhighlight> shows: {{#time:d. M Y|1987-10-31|de}}.<br />For format codes, see: [[mw:Help:Extension:ParserFunctions##time]]. Use the format <kbd><nowikisyntaxhighlight inline lang="wikitext">{{#time: H:i, j F Y (e)|...}}</nowiki></kbdsyntaxhighlight> to match the format used by timestamps in signatures.
|-
! scope=row id=gender | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{gender:''user''{{pipe}}''m_out''{{pipe}}''f_out''{{pipe}}''u_out''}}</kbdsyntaxhighlight>
| Outputs ''m_out'', ''f_out'' or ''u_out'' according to whether the gender specified in ''user''{{thinsp}}'s preferences is, respectively, male, female or unspecified. Other parameter permutations are available, see [[mw:Help:Magic words#gender]] and [[translatewiki:Special:MyLanguage/Gender|translatewiki:Gender]].
|-
! scope=row id=mwtag | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Magic words#Miscellaneous|{<nowiki/>{#tag:''tagname''{{pipe}}''content with magic''}}]]</kbdsyntaxhighlight>
| Only way to [[eval]]uate magic words ''inside a tag'', in order to generate <code>&lt;''tagname''>''magic''&lt;/''tagname''></code>. Also handles tag attributes. Details at [[mw:Help:Magic words#tag]].
|}
Line 428:
! scope=col | Description
|-
! scope=row id=localurl | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{localurl:''fullpagename'' {{pipe}}''query''}}</kbdsyntaxhighlight>
| Relative [[Path (computing)|path]] to page name. The ''query'' parameter is optional.
|-
! scope=row id=fullurl | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{fullurl:''fullpagename'' {{pipe}}''query''}}</kbdsyntaxhighlight>
| Absolute path, without [[Application layer|protocol prefix]] (i.e. without "{{thinsp}}<nowiki>http:</nowiki>{{thinsp}}" etc.), to page name. The ''query'' parameter is optional.
|-
! scope=row id=canonicalurl | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{canonicalurl:''fullpagename'' {{pipe}}''query''}}</kbdsyntaxhighlight>
| Absolute path, including protocol prefix, to page name. The ''query'' parameter is optional.
|-
! scope=row id=filepath | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{filepath:''filename''}}</kbdsyntaxhighlight>
| Absolute path to the media file ''filename''.
|-
! scope=row id=urlencode | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{urlencode:''string''}}</kbdsyntaxhighlight>
| [[WP:ENCODE|Encodes]] ''string'' for use in URL query strings; <kbdsyntaxhighlight inline lang="wikitext">{{braces|urlencode:test string}}</kbdsyntaxhighlight>, for example, produces: {{urlencode:test string}}. To encode ''string'' for use in URL paths or MediaWiki page names, append, respectively, {{para||PATH}} or {{para||WIKI}} (to produce "{{urlencode:test string|PATH}}" or "{{urlencode:test string|WIKI}}").
|-
! scope=row id=anchorencode | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{anchorencode:''string''}}</kbdsyntaxhighlight>
| Input encoded for use in MediaWiki URL [[Help:Anchor|section anchor]]s.
|-
! scope=row id=ns | <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{ns:''n''}}</kbdsyntaxhighlight>
| Returns the name of the [[wp:Namespace|namespace]] whose index is the number ''n''. For MediaWiki URLs, use <kbdsyntaxhighlight inline lang="wikitext">{<nowiki/>{nse:}}</kbdsyntaxhighlight>.
|-
! scope=row id=rel2abs | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:ParserFunctions##rel2abs|{<nowiki/>{#rel2abs:''path''}}]] </kbdsyntaxhighlight>
| Converts a relative file path to an absolute path.
|-
! scope=row id=titleparts | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:ParserFunctions##titleparts|{<nowiki/>{#titleparts:''fullpagename''{{pipe}}''number''{{pipe}}''first segment''}}]]</kbdsyntaxhighlight>
| Splits the fullpagename (title) into that number of segments.
|}
Line 463:
! scope=col | Description
|-
! scope=row id=expr |<kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:Parser functions##expr|{<nowiki/>{#expr:''expression''}}]] </kbdsyntaxhighlight>
| Evaluates ''expression'' (see [[m:Help:Calculation]]).
|-
! scope=row id=if | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:Parser functions##if|{<nowiki/>{#if:''string'' {{pipe}}''result1'' {{pipe}}''result2''}}]] </kbdsyntaxhighlight>
| Outputs ''result2'' if ''string'' is [[Empty string|empty]], otherwise outputs ''result1''.
|-
! scope=row id=ifeq | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:Parser functions##ifeq|{<nowiki/>{#ifeq:''string1''{{pipe}}''string2'' {{pipe}}''result1'' {{pipe}}''result2''}}]] </kbdsyntaxhighlight>
| Outputs ''result1'' if ''string1'' and ''string2'' are equal (alphabetically or numerically), otherwise outputs ''result2''.
|-
! scope=row id=iferror | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:Parser functions##iferror|{<nowiki/>{#iferror:''test_string'' {{pipe}}''result1'' {{pipe}}''result2''}}]] </kbdsyntaxhighlight>
| Outputs ''result1'' if ''test_string'' generates a parsing error, otherwise outputs ''result2''.
|-
! scope=row id=ifexpr | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:Parser functions##ifexpr|{<nowiki/>{#ifexpr:''expression'' {{pipe}}''result1'' {{pipe}}''result2''}}]] </kbdsyntaxhighlight>
| Outputs ''result1'' if ''expression''{{thinsp}} is true, otherwise outputs ''result2''.
|-
! scope=row id=ifexist | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:Parser functions##ifexist|{<nowiki/>{#ifexist:''pagetitle'' {{pipe}}''result1'' {{pipe}}''result2''}}]] </kbdsyntaxhighlight>
| Outputs ''result1'' if the page [<nowiki/>[''pagetitle'']] exists, otherwise outputs ''result2''. Note that underscores are needed for spaces in namespaces.
|-
! scope=row style="white-space: nowrap;" | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:Parser functions##switch|{<nowiki/>{#switch:''string'' {{pipe}}''c1''=''r1'' {{pipe}}''c2''=''r2'' ... {{pipe}}''default''}}]] </kbdsyntaxhighlight>
| Outputs ''r1'' if ''string'' is ''c1'', ''r2'' if ''string'' is ''c2'', etc., otherwise outputs ''default'' (if provided).
|}
 
If, in these conditional functions, [[Empty string|empty]] unnamed parameters are to be parsed as empty rather than as text (i.e. as empty rather than as the text "{{{1}}}", "{{{2}}}", etc.), they will require trailing pipes (i.e. <kbdsyntaxhighlight inline lang="wikitext">{{(((}}1{{pipe}}{{)))}}</kbdsyntaxhighlight>, <kbdsyntaxhighlight inline lang="wikitext">{{(((}}2{{pipe}}{{)))}}</kbdsyntaxhighlight>, etc., rather than <kbdsyntaxhighlight inline lang="wikitext">{{(((}}1{{)))}}</kbdsyntaxhighlight>, <kbdsyntaxhighlight inline lang="wikitext">{{(((}}2{{)))}}</kbdsyntaxhighlight>, etc.).
* For the use of these functions in tables, see [[Help:Conditional tables]].
 
Line 493:
! scope=col | Description
|-
! scope=row id=babel | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Extension:Babel#Usage|{<nowiki/>{#babel:''code1''|''code2''|...}}]]</kbdsyntaxhighlight>
| Render [[Wikipedia:Userboxes|userboxes]] telling your language skills. Improves upon {{tl|Babel}} (an alternative).
|-
! scope=row id=categorytree | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Extension:CategoryTree|{<nowiki/>{#categorytree:''category''|...}}]]</kbdsyntaxhighlight>
| List pages in a category, recursively.
|-
! scope=row | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Extension:GeoData#Parser function|{<nowiki/>{#coordinates:''arg1''|''arg2''|...}}]]</kbdsyntaxhighlight>
| Save the [[Geographic coordinate system|GeoData coordinates]] of the subject to the page's database. Used in {{tl|coord}}.
|-
! scope=row style=white-space:nowrap | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Extension:Scribunto#Usage|{<nowiki/>{#invoke:''module''|''function''|''arg1''|...}}]]</kbdsyntaxhighlight>
|| Use [[mw:Extension:Scribunto|Scribunto]] to transclude a [[Wikipedia:Lua|lua]] template, e.g. function ''replace'' in [[Module:String#replace|module ''String'']].
|-
! scope=row id=language | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Magic words#Miscellaneous|{<nowiki/>{#language]]:[[ISO 639|''code1''|''code2''}}]]</kbdsyntaxhighlight>
| Print the name represented by the language code, e.g. '''en''' → '''English'''. Print in language 2 if given, e.g. <kbd><nowikisyntaxhighlight inline lang="wikitext">{{#language:en|zh}}</nowiki></kbdsyntaxhighlight> prints {{#language:en|zh}}
|-
! scope=row id=lst | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Extension:Labeled Section Transclusion|<nowiki>{{#lst:}}, {{#lsth:}}, {{#lstx:}}</nowiki>]]</kbdsyntaxhighlight>
| Three ways to [[Help:Labeled section transclusion|transclude a section of a page]].
|-
! scope=row id=mentor | <kbdsyntaxhighlight inline lang="wikitext">[[Wikipedia:Growth Team features|<nowiki>{{#mentor:Username}}</nowiki>]]</kbdsyntaxhighlight>
| Display the currently assigned mentor for target Username, if set.
|-
! scope=row id=property | <kbdsyntaxhighlight inline lang="wikitext">[[m:Wikidata/Notes/Inclusion syntax v0.4|{<nowiki/>{#property:''arg1''|''arg2''|...}}]]</kbdsyntaxhighlight>
| Include a [[d:Help:FAQ#Terminology|property]] ([[Wikipedia:Wikidata|Wikidata]]) from a named entity, instead of the default on the page.
|-
! scope=row id=related | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Reading/Web/Projects/Read more|{<nowiki/>{#related:...}}]]</kbdsyntaxhighlight>
| Links to similar topics, to engage readers. (Beta feature.)
|-
! scope=row id=section | <kbdsyntaxhighlight inline lang="wikitext">[[Help:Labeled section transclusion|{<nowiki/>{#section:}}, {<nowiki/>{#section-h:}}, {<nowiki/>{#section-x:}}]]</kbdsyntaxhighlight>
| Aliases for <kbd><nowikisyntaxhighlight inline lang="wikitext">{{#lst:}}, {{#lsth}}, {{#lstx}}</nowiki></kbdsyntaxhighlight> (above).
|-
! scope=row id=statements | <kbdsyntaxhighlight inline lang="wikitext">[[d:Wikidata:How to use data on Wikimedia projects|{<nowiki/>{#statements:''arg1''|...}}]]</kbdsyntaxhighlight>
| Display the value of any statement (Wikidata) included in an item.
|-
! scope=row id=target | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Extension:MassMessage#Parser function delivery lists|{<nowiki/>{#target:''fullpagename''}}]]</kbdsyntaxhighlight>
| Send a message to a list of talk pages on the fullpagename, using the [[m:MassMessage|MassMessage function]].
|-
! scope=row id=int | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Magic words#Localization|{<nowiki/>{int:''pagename''}}]] </kbdsyntaxhighlight>
| [[Wikipedia:Transclusion|Transclude]] an ''interface'' message, i.e. a [[Special:PrefixIndex/MediaWiki:|pagename in MediaWiki namespace]]
|-
! scope=row id=bang | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Magic_words#Other|{<nowiki/>{!}}]] </kbdsyntaxhighlight>
| Used to include a pipe character as part of a template argument or table cell contents. Before this was added as a magic word, many wikis implemented this by creating [[:Template:!]] with <code>{{!}}</code> as the content.
|-
! scope=row id=equals | <kbdsyntaxhighlight inline lang="wikitext">[[mw:Help:Magic_words#Other|{<nowiki/>{=}}]] </kbdsyntaxhighlight>
| Used to include an equal sign as part of a template argument or table cell contents. Before this was added as a magic word, many wikis implemented this by creating [[:Template:=]] with <code>{{=}}</code> as the content.
|}
Line 547:
* {{myprefs|Beta features|check=Wiki syntax highlighting}}
* [[Special:Version]], see last section "Parser function hooks":<!--(a #section link is not possible)-->a list that should include all of the magic words on this page
* {{tl|Ifexist not redirect}}, works with the <code><nowiki>{{#ifexist:}}</nowiki></code> expression while allowing redirects to be identified and parsed differently
 
{{Wikipedia technical help|collapsed}}