Difference between revisions of "Warhammer 40k - Lexicanum:Redirect"
m |
m (Grammar) |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | A '''Redirect''' is a tool that when included on a wiki page automatically sends the reader to another page (or a section thereof). | |
− | + | ''Example:''<br> | |
− | + | If you type in "PDF" in the search box or in an article click on the link [[PDF]] you will automatically be sent to the page [[Planetary Defence Forces]]. | |
− | + | If you have been sent to another page via a ''Redirect'' this is displayed under the page name of the page you were sent to (see screenshot: ''"Redirected from..."''). | |
− | |||
− | + | [[File:Redirect notice.jpg|thumb|300px|centre|Redirect notice]] | |
− | == | + | ==When to use Redirects== |
− | The | + | The ''Lexicanum'' [[Warhammer 40k - Lexicanum:Search|Search]] is not case sensitive, so it does not matter if you enter for example "pDF", "PdF", "pdf", "PDf" or "PDF", you will always end up on the page [[PDF]] (that will then redirect you to the page [[Planetary Defense Forces]] of course). |
− | + | What the [[Warhammer 40k - Lexicanum:Search|Search]] function can however not do is to automatically correct ''singular'' and ''plural'' of a search term. Or account for the often quite numerous possible variations of a search term. If somebody were for example looking for information on the (made-up for demonstration purposes) ''5th Ganymede Heavy Infantry Regiment'' he/she could use a variety of search terms such as "5th Ganymede", "Fifth Ganymede", "5th Ganymede Regiment" and a quite large number of other permutations. Another example would be problems with special characters. Example: The novel "Faith & Fire" can also be written as "Faith and Fire". | |
− | |||
− | + | And since [[Games Workshop]] itself does not have stringent naming conventions and the ''Lexicanum'' names the corresponding pages '''exactly''' as they are written in the [[Warhammer 40k - Lexicanum:Accepted sources|sources]] (see also [[Warhammer 40k - Lexicanum:Naming Conventions|Naming Conventions]]) this often leads to somewhat messy situations. Other messy situations arise when the proofreaders at [[Games Workshop]] failed to spot spelling mistakes or because there was no standardization for specific names (there are for example several different spelling variants of [[Isstvan]]). | |
− | |||
− | + | All these messy situations are resolved by using ''Redirects'' (see below on ''how'' to include ''Redirects''). | |
− | + | A special case are automatically generated ''Redirects'' as a consequence of a [[Warhammer 40k - Lexicanum:Move|page move]]. When a page is moved to a new name a ''Redirect'' is automatically put in place by the Mediawiki system. This can unfortunately sometimes have unintended consequences, for example ''Double Redirects'' (see below). | |
− | == | + | ==How to use Redirects== |
− | + | To include a ''Redirect'' on a page you have to include the code '''<nowiki>#redirect[[Target pagename]]</nowiki>''' on the chosen page. | |
− | [[Category:Lexicanum Help]] | + | For example:<br> |
+ | If you want to redirect to the page entitled ''"Planetary Defense Forces":''<br> | ||
+ | |||
+ | '''Code:''' | ||
+ | <pre>#redirect[[Planetary Defence Forces]]</pre> | ||
+ | <br> | ||
+ | You can also ''redirect'' to a specific section of a page instead of to the page as such. For example if you want to redirect from a page to a section of another page (which must exist of course!) you have to include the code '''<nowiki>#redirect[[Target pagename#Section name]]</nowiki>''' on the chosen page. | ||
+ | |||
+ | For example:<br> | ||
+ | If you want to redirect to the section entitled ''"System_Defence_Forces"'' which is a section on the page [[Planetary Defense Forces]]:<br> | ||
+ | |||
+ | '''Code:''' | ||
+ | <pre>#redirect[[Planetary Defence Forces#System Defence Forces]]</pre> | ||
+ | |||
+ | ==Double redirects== | ||
+ | A ''Double redirect'' is a ''Redirect'' sending the reader to yet another ''Redirect''. Such constructions should be avoided at all costs and replaced by "normal" Redirects that point directly to the intended target page. The reason for this is simple: the Mediawiki software used by the ''Lexicanum'' does not support this. Or in other words: It will not send you further than to the first target pages (which only displays a ''redirect'' instruction, see screenshot below). | ||
+ | |||
+ | [[File:DoubleRedirect.jpg|thumb|center|300px|A Double redirect]] | ||
+ | |||
+ | In this concrete ''Double redirect'' example there is a ''Redirect'' from [[Administrator]] to [[Administratum]] that in turn redirects to [[Adeptus Administratum]]. A reader entering "Administrator" into the search box or clicking on the link [[Administrator]] gets stuck on the page [[Administratum]] instead of ending up on the page [[Adeptus Administratum]] as intended. Therefore the ''Redirect'' on the page [[Administrator]] would have to be fixed to point directly to [[Adeptus Administratum]] instead of to [[Administratum]] as in this example. | ||
+ | |||
+ | An automatically generated list of ''Double redirects'' that need fixing is available [[Special:DoubleRedirects|here]]. The reasons for the existence of such ''Double redirects'' most often are unforeseen consequences of a [[Warhammer 40k - Lexicanum:Move|page move]]. | ||
+ | |||
+ | ==See also== | ||
+ | More on the ''Redirect'' Wikimedia tool can be found [[Wikipedia:Wikipedia:Redirect|here]]. | ||
+ | |||
+ | [[Category:Lexicanum Help|Redirect]] | ||
+ | [[de:Redirect]] | ||
+ | [[fr:Lexicanum:Redirection]] |
Revision as of 20:49, 15 April 2020
A Redirect is a tool that when included on a wiki page automatically sends the reader to another page (or a section thereof).
Example:
If you type in "PDF" in the search box or in an article click on the link PDF you will automatically be sent to the page Planetary Defence Forces.
If you have been sent to another page via a Redirect this is displayed under the page name of the page you were sent to (see screenshot: "Redirected from...").
When to use Redirects
The Lexicanum Search is not case sensitive, so it does not matter if you enter for example "pDF", "PdF", "pdf", "PDf" or "PDF", you will always end up on the page PDF (that will then redirect you to the page Planetary Defense Forces of course).
What the Search function can however not do is to automatically correct singular and plural of a search term. Or account for the often quite numerous possible variations of a search term. If somebody were for example looking for information on the (made-up for demonstration purposes) 5th Ganymede Heavy Infantry Regiment he/she could use a variety of search terms such as "5th Ganymede", "Fifth Ganymede", "5th Ganymede Regiment" and a quite large number of other permutations. Another example would be problems with special characters. Example: The novel "Faith & Fire" can also be written as "Faith and Fire".
And since Games Workshop itself does not have stringent naming conventions and the Lexicanum names the corresponding pages exactly as they are written in the sources (see also Naming Conventions) this often leads to somewhat messy situations. Other messy situations arise when the proofreaders at Games Workshop failed to spot spelling mistakes or because there was no standardization for specific names (there are for example several different spelling variants of Isstvan).
All these messy situations are resolved by using Redirects (see below on how to include Redirects).
A special case are automatically generated Redirects as a consequence of a page move. When a page is moved to a new name a Redirect is automatically put in place by the Mediawiki system. This can unfortunately sometimes have unintended consequences, for example Double Redirects (see below).
How to use Redirects
To include a Redirect on a page you have to include the code #redirect[[Target pagename]] on the chosen page.
For example:
If you want to redirect to the page entitled "Planetary Defense Forces":
Code:
#redirect[[Planetary Defence Forces]]
You can also redirect to a specific section of a page instead of to the page as such. For example if you want to redirect from a page to a section of another page (which must exist of course!) you have to include the code #redirect[[Target pagename#Section name]] on the chosen page.
For example:
If you want to redirect to the section entitled "System_Defence_Forces" which is a section on the page Planetary Defense Forces:
Code:
#redirect[[Planetary Defence Forces#System Defence Forces]]
Double redirects
A Double redirect is a Redirect sending the reader to yet another Redirect. Such constructions should be avoided at all costs and replaced by "normal" Redirects that point directly to the intended target page. The reason for this is simple: the Mediawiki software used by the Lexicanum does not support this. Or in other words: It will not send you further than to the first target pages (which only displays a redirect instruction, see screenshot below).
In this concrete Double redirect example there is a Redirect from Administrator to Administratum that in turn redirects to Adeptus Administratum. A reader entering "Administrator" into the search box or clicking on the link Administrator gets stuck on the page Administratum instead of ending up on the page Adeptus Administratum as intended. Therefore the Redirect on the page Administrator would have to be fixed to point directly to Adeptus Administratum instead of to Administratum as in this example.
An automatically generated list of Double redirects that need fixing is available here. The reasons for the existence of such Double redirects most often are unforeseen consequences of a page move.
See also
More on the Redirect Wikimedia tool can be found here.