Template:Redirect template/doc

From OSDev.wiki
Revision as of 22:04, 18 June 2024 by Lukflug (talk | contribs) (remove rendering of example, since it causes a template loop error)
Jump to navigation Jump to search
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".

Templates built using this template can generate documentation using Template:Redirect template/doc template (which automatically adds Category:Redirect templates, unless nocat is set):

{{Redirect template|Redirects|is in the top-level redirects category!}}<noinclude>{{Documentation|Template:Redirect template/doc template|content=
{{Redirect template/doc template|Redirects}}
}}</noinclude>