MarioWiki:Redirects: Difference between revisions

Change due to preference to proper caps. Deal with acronym bug separately.
mNo edit summary
(Change due to preference to proper caps. Deal with acronym bug separately.)
Line 7: Line 7:


=== Unnecessary redirects ===
=== Unnecessary redirects ===
Redirects are only unnecessary when (1) they are completely nonsensical, (2) they are too general, (3) they overlap each other, and (4) the search function takes the user to the correct page '''without''' said redirect. This generally means that pure capitalization redirects are unnecessary, but cases should be tested using an all-lowercase search for the page title. '''Paper mario 3ds''' may seem unnecessary because the search function ''should'' pick up on the '''Paper Mario 3DS''' redirect when the user searches "paper mario 3ds", but "words" starting with numbers may need a matching redirect featuring an all-lowercase version of said "word" to be redirected properly. This is why we test by searching!
Redirects are only unnecessary when (1) they are completely nonsensical, (2) they are too general, (3) they overlap each other, and (4) the search function takes the user to the correct page '''without''' said redirect. This generally means that pure capitalization redirects are unnecessary, but cases should be tested using an all-lowercase search for the page title. "[[Paper mario 3ds]]" may seem unnecessary because you'd think the search function would pick up on the "[[Paper Mario 3DS]]" redirect when the user searches "paper mario 3ds", but uppercase acronyms (whether they contain numbers or not) are not currently detected by MediaWiki when searching in lowercase. This is why we test by searching!


==== Examples ====
==== Examples ====
(1) We don't need the redirect '''Game with luigi and ghosts 2''' because it's too silly.
(1) We don't need the redirect '''Game with luigi and ghosts 2''' because it's too silly.


(2) We don't want the redirect '''First mario game''' because we're not positive what page the user is looking for (you might say [[Donkey Kong (game)]], but maybe they're actually trying to find [[Super Mario Bros.]]), so the search page is the best place for them to be.
(2) We don't want the redirect '''First mario game''' because we're not positive what page the user is looking for (you might say [[Donkey Kong (game)]], but maybe they're actually trying to find [[Super Mario Bros.]]), so the search page is the best place for them to be.


(3) We don't require the redirect '''Mario Galaxy''' because the redirect '''Mario galaxy''' already takes care of users searching for the phrase "mario galaxy". As a general rule, all-lowercase redirects are used. There are some weird cases where uppercase redirects don't work, so we use lowercase just to be safe. In addition to this, most searches are all-lowercase.
(3) We don't require the redirect '''Mario galaxy''' because the redirect [[Mario Galaxy]] already takes care of users searching for the phrase "mario galaxy". As a general rule, the case of the redirect should match the source. Due to MediaWiki being picky, two redirects must exist for each text phrase when we're dealing with acronyms (any group of two or more characters where all the letters are uppercase, whether they contain numbers or not). The first should use the proper capitalization (e.g. [[NSMB Wii]], [[Paper Mario 3DS]]) and the second must make all letters lowercase (e.g. [[Nsmb wii]], [[Paper mario 3ds]]).


(4) We don't require the redirect '''Super mario galaxy''' or '''Super Mario galaxy''' because entering "super mario galaxy" in the search field takes the user to [[Super Mario Galaxy]] without any redirects.
(4) We don't require the redirect '''Super mario galaxy''' or '''Super Mario galaxy''' because entering "super mario galaxy" in the search field takes the user to [[Super Mario Galaxy]] without any redirects.
Line 30: Line 29:
== External links ==
== External links ==
*[[MediaWiki.org:Help:Redirects|MediaWiki's help page on redirects]]
*[[MediaWiki.org:Help:Redirects|MediaWiki's help page on redirects]]
{{BoxTop}}
{{BoxTop}}
{{Wikipolicy}}
{{Wikipolicy}}
[[Category:Writing Guidelines|{{PAGENAME}}]]
[[Category:Writing Guidelines|{{PAGENAME}}]]
{{shortcut|MW:REDIRECT|MW:REDIRECTS}}
{{shortcut|MW:REDIRECT|MW:REDIRECTS}}