Template:Redirect template/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)
(mention documentation template)
Line 4: Line 4:
* <code><nowiki>{{{2}}}</nowiki></code>: text to display after "this redirect".
* <code><nowiki>{{{2}}}</nowiki></code>: text to display after "this redirect".
* <code><nowiki>{{{nocat}}}</nowiki></code>: set to disable automatic categorization.
* <code><nowiki>{{{nocat}}}</nowiki></code>: set to disable automatic categorization.
Templates built using this template can generate documentation using [[Template:Redirect template/doc template]]:
<syntaxhighlight lang="mediawiki">
<noinclude>{{Template:Redirect template/doc template|Category name}}</noinclude>
</syntaxhighlight>
Where the category name should match the first positional argument passed to the main template.
[[Category:Meta-templates]]
[[Category:Meta-templates]]

Revision as of 16:47, 18 June 2024

This is a template documentation page

This template is a meta-template for redirect templates that assign a category to the redirect. They are meant to be transcluded in the first positional argument of Template:Redirect page. It takes following arguments:

  • {{{1}}}: name of category being added.
  • {{{2}}}: text to display after "this redirect".
  • {{{nocat}}}: set to disable automatic categorization.

Templates built using this template can generate documentation using Template:Redirect template/doc template:

<noinclude>{{Template:Redirect template/doc template|Category name}}</noinclude>

Where the category name should match the first positional argument passed to the main template.