Welcome to Warhammer 40k - Lexicanum! Log in and join the community.

Difference between revisions of "Warhammer 40k - Lexicanum:Redirect"

From Warhammer 40k - Lexicanum
Jump to: navigation, search
m
m (Grammar)
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Redirects are useful when you have multiple names for the same article. This is especially obvious when the name has more than one word in it.
+
A '''Redirect''' is a tool that when included on a wiki page automatically sends the reader to another page (or a section thereof).
  
==When would a redirect be good?==
+
''Example:''<br>
The way in which the MediaWiki software works is that all variations in a name can lead to a new article. A number of examples follow:
+
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]].
  
*Dog, Dogs, DoGs, DOgs, DoGS etc.
+
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..."'').
*Cats and Dogs, Cats and dogs, Cats And Dogs, Cat and Dogs, Cats and Dog, Dogs and Cats etc.
 
  
As you can see plurality and capitalisation are the two most important things to think about in an article name and here redirects help.
+
[[File:Redirect notice.jpg|thumb|300px|centre|Redirect notice]]
  
==Policy==
+
==When to use Redirects==
The policy of the Lexicanum is as follows:
+
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).
  
*Articles should always try to be in the singular
+
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".
*Articles should always try and have the correct capitalisation and follow the spellings as produced by Games Workshop
 
  
==Practice==
+
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]]).
So, when you have your article, you may find that there are other ways of writing the same thing, as we saw above. To overcome this, create a new article in the name which you wish to point to the correct title and type the following code:
 
  
<pre>#redirect [[XYZ]]</pre>
+
All these messy situations are resolved by using ''Redirects'' (see below on ''how'' to include ''Redirects'').
  
So if you wanted Cats and Dog to redirect the visitor to Cats and Dogs, you would create the article Cats and Dog and put the code <nowiki>#redirect [[Cats and Dogs]]</nowiki>.
+
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).
  
==Other Abilities==
+
==How to use Redirects==
You can also [[Lexicanum:Categories|categorise]] redirect pages in the usual way and they will appear in the category list, though a visitor won't know they are a redirect until they click on the link!
+
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...").

Redirect notice

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).

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 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.