Difference between revisions of "Template:Redirect category"
Shawndouglas (talk | contribs) m (1 revision imported: Attempting import of LIMSwiki templates Portal–Rh/doc) |
Shawndouglas (talk | contribs) m (Updated for LabLynx Wiki) |
||
Line 3: | Line 3: | ||
| image = [[File:Redirect arrow without text (cropped).svg|40px|alt=|link=]] | | image = [[File:Redirect arrow without text (cropped).svg|40px|alt=|link=]] | ||
| text = The pages in this category are '''redirects'''{{#if:{{{from|}}}| from {{{from}}}}}{{#if:{{{to|}}}| to {{{to}}}}}.<br/> | | text = The pages in this category are '''redirects'''{{#if:{{{from|}}}| from {{{from}}}}}{{#if:{{{to|}}}| to {{{to}}}}}.<br/> | ||
To add a redirect to this category, {{#ifeq:{{{same_line}}}|no|use|put}} {{tlx|{{{template|R from ...}}}|{{{parameters|}}}}}{{#ifeq:{{{same_line}}}|no|| on a separate line after the redirect}}. Do not [[ | To add a redirect to this category, {{#ifeq:{{{same_line}}}|no|use|put}} {{tlx|{{{template|R from ...}}}|{{{parameters|}}}}}{{#ifeq:{{{same_line}}}|no|| on a separate line after the redirect}}. Do not [[LabLynx Wiki:Substitution|substitute]] redirect templates.<br/> | ||
<small>See also the [[ | <small>See also the [[LabLynx Wiki:Style guide#Redirects|style guide]] and [[:Category:All redirect templates]].</small> | ||
}} | }} | ||
{{ | {{LabLynx Wiki category|hidden=yes|tracking=yes|tracking_category=no}}{{Category other|[[Category:All redirect categories]][[Category:Redirect tracking categories]]}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 16:49, 3 March 2015
The pages in this category are redirects. To add a redirect to this category, put {{R from ...}} on a separate line after the redirect. Do not substitute redirect templates. |
Template:LabLynx Wiki category
This template should not be substituted. |
Usage
This template provides a header for the subcategories of Category:All redirect categories.
{{Redirect category|from=|to=|template=|parameters=|same_line=}}
Use from
and/or to
to describe the purpose of the redirects in the category. template
names the associated redirect template (without the Template: prefix). parameters
lists the parameters used by the redirect template. same_line=no
changes "put" to "use" and suppresses the text "after the redirect but on the same line". This option is only used for Category:Miscellaneous redirects and soft redirect categories.
Example
{{Redirect category|from=misspellings or typographical errors|to=the correct spellings|template=R from misspelling}}
produces:
The pages in this category are redirects from misspellings or typographical errors to the correct spellings. To add a redirect to this category, put {{R from misspelling}} on a separate line after the redirect. Do not substitute redirect templates. |
Template:LabLynx Wiki category
Categorization
This template adds categories to Category:All redirect categories, Category:Hidden categories and Category:Tracking categories. If the template is transcluded on a page outside of the category namespace, the page will not be added to the categories.
See also
- {{R template index}}
Other category header templates
|
|
The above documentation is transcluded from Template:Redirect category/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |