Jump to content

Module:RedirectData/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Blanked the page
Tags: Blanking Reverted Mobile edit Mobile web edit
Reverting edit(s) by 2600:1010:B1AF:66:B1B1:F518:CF25:C4CF (talk) to rev. 1184412817 by 2600:1700:A2A0:FB50:DC18:CA2:30A6:770C: Vandalism (RW 16.1)
 
Line 1: Line 1:
{{Module rating|protected}}
{{High-use}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
This module can be used on redirect pages to display the namespace that the page '''redirects to'''. This should generally be wrapped by templates.

<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''getRedirectToNamespace''}}</code>

== See also ==
* {{t|Automatic redirect categories}}, a template which uses this module
* {{t|R from shortcut}}, another template which uses this module

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->

}}</includeonly>

Latest revision as of 05:43, 17 February 2024

Usage

[edit]

This module can be used on redirect pages to display the namespace that the page redirects to. This should generally be wrapped by templates.

{{#invoke:RedirectData|getRedirectToNamespace}}

See also

[edit]