Template:Redirect page/doc: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
Content added Content deleted
(add nocat option) |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Documentation page}}</noinclude> |
<noinclude>{{Documentation page}}</noinclude><!-- |
||
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: |
-->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:Uncategorized redirects]] (which can be disabled by setting the <code>nocat</code> parameter). This template takes a single positional argument, which should be a list of [[:Category:Redirect templates|redirect templates]], that each add a category to the redirect. For example: |
||
<syntaxhighlight lang="wikitext"> |
<syntaxhighlight lang="wikitext"> |
||
{{Redirect page| |
{{Redirect page| |
||
Line 9: | Line 9: | ||
{{Redirect page| |
{{Redirect page| |
||
{{R to project page|nocat=1}} |
{{R to project page|nocat=1}} |
||
}} |
}}<!-- |
||
{{#if:{{{nocat|}}}||[[Category:Redirect templates]]}} |
-->{{#if:{{{nocat|}}}||[[Category:Redirect templates]]}} |
Latest revision as of 08:26, 22 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:Uncategorized 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:
- This redirect points to a project (
OSDevWiki:
) page.