Module:Redirect/doc: Difference between revisions
More actions
mNo edit summary |
m 16 revisions imported |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 18: | Line 18: | ||
* {{Tlx|Invalid taxon category redirect|''target''|''optional reason''}} | * {{Tlx|Invalid taxon category redirect|''target''|''optional reason''}} | ||
* {{Tlx|Monotypic taxon category redirect|''target''|''optional reason''}} | * {{Tlx|Monotypic taxon category redirect|''target''|''optional reason''}} | ||
* {{Tlx|Redirect cat|''target''|''optional reason'}} | * {{Tlx|Redirect cat|''target''|''optional reason''}} | ||
* {{Tlx|Redirect category|''target''|''optional reason'}} | * {{Tlx|Redirect category|''target''|''optional reason''}} | ||
* {{Tlx|See cat|''target''|''optional reason'}} | * {{Tlx|See cat|''target''|''optional reason''}} | ||
* {{Tlx|Seecat|''target''|''optional reason'}} | * {{Tlx|Seecat|''target''|''optional reason''}} | ||
* {{Tlx|Synonym taxon category redirect|''target''|''optional reason''}} | * {{Tlx|Synonym taxon category redirect|''target''|''optional reason''}} | ||
}} | }} | ||
| Line 30: | Line 30: | ||
The 'target' parameter value for these templates may be prefixed by 'Category:' or ':Category:' or not (it is implied). | The 'target' parameter value for these templates may be prefixed by 'Category:' or ':Category:' or not (it is implied). | ||
'''There should exist only one soft-redirect or redirection per page'''. If you need several redirections (because the original name was ambiguous and could refer to several distinct topics), this means that this redirection page has to be converted into a '''disambiguation page''', | '''There should exist only one soft-redirect or redirection per page'''. If you need several redirections (because the original name was ambiguous and could refer to several distinct topics), this means that this redirection page has to be converted into a '''disambiguation page''', providing a list of links to the different possible targets (each linked target page may be possibly followed by a short descriptive comment without any link, in order to help users making the right choice). | ||
Latest revision as of 17:56, 12 August 2026
This module implements templates that detect and resolve redirects and soft category redirects.
Soft redirects are hard to detect and costly as they require loading and parsing the wiki page content of 'Category:' pages.
Soft redirects are category pages containing the template
- {{Category redirect|target|optional reason}}
or one of its known aliases on Commons (there are too many!!!): Template:Columns For the full list of aliases (simple redirections) of {{Category redirect}}, see
For the full list of derived templates (specifying an embedded reason parameter passed to the main template), see
The 'target' parameter value for these templates may be prefixed by 'Category:' or ':Category:' or not (it is implied).
There should exist only one soft-redirect or redirection per page. If you need several redirections (because the original name was ambiguous and could refer to several distinct topics), this means that this redirection page has to be converted into a disambiguation page, providing a list of links to the different possible targets (each linked target page may be possibly followed by a short descriptive comment without any link, in order to help users making the right choice).