Help:Magic words: Difference between revisions

Content deleted Content added
Line 38:
| colspan=2 align=center style="background-color:#f1f4fd" | '''[[Wikipedia:Table of contents|Table of contents]]'''
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="TOC" | <kbdcode><nowiki>__TOC__</nowiki></kbdcode>
| 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" style="background-color:var(--background-color-neutral-subtle);" id="FORCETOC" | <kbdcode><nowiki>__FORCETOC__</nowiki></kbdcode>
| 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" style="background-color:var(--background-color-neutral-subtle);" id="NOTOC" | <kbdcode><nowiki>__NOTOC__</nowiki></kbdcode>
| Suppresses the appearance of the page's TOC. Can be used anywhere on a page.
|-
| colspan=2 align=center style="background-color:#f1f4fd" | '''Editing'''
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="NOEDITSECTION" | <kbdcode><nowiki>__NOEDITSECTION__</nowiki></kbdcode>
| 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=<kbdcode>== ''heading'' ==</kbdcode>}}{{thinsp}}).
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="ARCHIVEDTALK" | <kbdcode><nowiki>__ARCHIVEDTALK__</nowiki></kbdcode>
| Hides the [[:mw:Talk_pages_project/Replying|"Reply" button]]
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="NOTALK" | <kbdcode><nowiki>__NOTALK__</nowiki></kbdcode>
| Makes a page in a talk namespace not be treated like a talk page.
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="NEWSECTIONLINK" | <kbdcode><nowiki>__NEWSECTIONLINK__</nowiki></kbdcode>
| On non-talk pages, adds a "{{int:vector-action-addsection}}" link as a means to add a new section to the page.
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="NONEWSECTIONLINK" | <kbdcode><nowiki>__NONEWSECTIONLINK__</nowiki></kbdcode>
| Removes the "{{int:vector-action-addsection}}" link (the add-new-section link) on talk pages.
|-
| colspan=2 align=center style="background-color:#f1f4fd" | '''Categories'''
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="NOGALLERY" | <kbdcode><nowiki>__NOGALLERY__</nowiki></kbdcode>
| Replaces thumbnails on a category page with normal links.
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="HIDDENCAT" | <kbdcode><nowiki>__HIDDENCAT__</nowiki></kbdcode>
| Makes a category [[WP:HIDDENCAT|hidden]] when included on that category's page.
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="EXPECTUNUSEDCATEGORY" | <kbdcode><nowiki>__EXPECTUNUSEDCATEGORY__</nowiki></kbdcode>
| Removes a category from [[Special:UnusedCategories]].
|-
| colspan=2 align=center style="background-color:#f1f4fd" | '''Other'''
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="EXPECTUNUSEDTEMPLATE" | <kbdcode><nowiki>__EXPECTUNUSEDTEMPLATE__</nowiki></kbdcode>
| <div>Used on a template page, removes the page from [[Special:UnusedTemplates]].
 
Line 84:
If the switch is intended to remove from the report all pages that transclude a given template (for example, a notice that is transcluded on testcases or sandbox subpages), put the switch inside ‎{{tag|includeonly}} tags within the template page.</div>
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="INDEX" | <kbdcode><nowiki>__INDEX__</nowiki></kbdcode>
| Instructs [[Web search engine|search engine]]s to index the page.
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="NOINDEX" | <kbdcode><nowiki>__NOINDEX__</nowiki></kbdcode>
| Instructs search engines not to index the page. See [[Wikipedia:Controlling search engine indexing]].
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="STATICREDIRECT" | <kbdcode><nowiki>__STATICREDIRECT__</nowiki></kbdcode>
| 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" style="background-color:var(--background-color-neutral-subtle);" id="DISAMBIG" | <kbdcode><nowiki>__DISAMBIG__</nowiki></kbdcode>
| 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" style="background-color:var(--background-color-neutral-subtle);" id="DISPLAYTITLE" | <kbdcode>{<nowiki/>{DISPLAYTITLE:''title''}}</kbdcode>
| Used to amend the [[WP:DISPLAYTITLE|displayed form]] of the page's title.
|-
! scope="row" style="background-color:var(--background-color-neutral-subtle);" id="DEFAULTSORT" | <kbdcode>{<nowiki/>{DEFAULTSORT:''sortkey''}}</kbdcode>
| 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" style="background-color:var(--background-color-neutral-subtle);" id="NOEXTERNALLANGLINKS" | <kbdcode>[[mw:Wikibase/Installation/Advanced configuration#noexternallanglinks|{<nowiki/>{NOEXTERNALLANGLINKS}}]]</kbdcode>
|| (equivalent to <code>{<nowiki/>{NOEXTERNALLANGLINKS:*}}</code>{{thinsp}}) Suppresses the automated inclusion of [[Wikidata:Help:Linking Wikipedia pages|Wikidata]] [[Help:Interlanguage links|interlanguage links]] on the lefthand side of the page. LinksTo tosuppress particularspecific language links rather than all languages may be suppressed by usinguse {<nowiki/>{NOEXTERNALLANGLINKS:''list''}}, where ''list'' is a [[Vertical bar|pipe]]-[[Delimiter|delimited]] list of [[languageISO code639‑1]]s language codes (e.g. {<nowiki/>{NOEXTERNALLANGLINKS:fr{{pipe}}es{{pipe}}ja}} to suppress the French ("fr"), Spanish ("es") and Japanese ("ja") interlanguage links).
|}