Template:Redirect page/doc: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[checked revision][checked revision]
Content added Content deleted
m (move category to documentation)
(add nocat option)
Line 10: Line 10:
{{R to project page|nocat=1}}
{{R to project page|nocat=1}}
}}
}}
[[Category:Redirect templates]]
{{#if:{{{nocat|}}}||[[Category:Redirect templates]]}}

Revision as of 21:06, 18 June 2024

This is a template documentation page

This template serves as a base for all redirect pages. Without any arguments, it produces the message box on the top of the page, and the redirect in question is automatically categorized in Category:Miscellaneous redirects (which can be disabled by setting the nocat parameter). This template takes a single positional argument, which should be a list of redirect templates, that each add a category to the redirect. For example:

{{Redirect page|
{{R to project page}}
}}

Will produce:

This page is a redirect.
This redirect is categorized in following manner: