Help:Redirect: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (Jovenan moved page Redirect to Help:Redirect: More suitable namespace)
(rewrite, wip)
Line 1: Line 1:
Redirects are a wonderful feature of the wiki software that allow you to automatically point someone from one page to another. You may have already seen this feature at work, if you've seen the text "Redirected from _______" underneath the title of a page. It means that you were pointed to one page, but that page pointed you to the page you were on currently.
{{118Wikiheader}}
{{Help page}}


==How they Work==
'''Redirecting''' is a method of guiding a reader to the correct page. A reader might be thinking of a synonym of the name of the article and go searching for it with the wrong word. This can happen to a wiki editor as well, and they might add a link under that synonym instead of the actual title. To avoid confusion in these cases, it is possible to create a '''redirect''', which guides the reader to the article they were looking for. Anyone can create redirects when they feel there’s a reason for it.
If you wanted to redirect a given page to a page called "USS Enterprise", you would use the following text at the very top of the page, and include no other text on the page at all:


:<nowiki>#REDIRECT [[USS Enterprise]]</nowiki>
{{LCARS-bar-heading|Using redirects|COLOR={{Color|red}}}}
=== What is a redirect? ===
Let’s say you want to learn more about Andor, the homeworld of [[Andorian]]s. You type that in the search bar and hit enter. However, unknown to you at the time, the proper name of the moon on which Andorians live is actually [[Andoria]]. It is sometimes called Andor, which is why you happened to remember that name instead of Andoria. As you search for the article under the wrong (or less common) name, you still find the correct page, Andoria. That is because the page “[[Andor]]” is a redirect.


The <nowiki>#REDIRECT</nowiki> part is just the code the Wiki uses to figure out that this page is supposed to move you to a new destination. The second part of the redirect is just the link telling the link where to go.  
Instead of searching for Andor, let’s say you were writing about your character’s holiday there. If you don’t look up the name of the article, you might not remember that it’s actually “Andoria”, and add a link to “Andor” by mistake. However, since “Andor” is a redirect, any reader who clicks the link you added finds the correct page anyway.


==When to Use Them==
=== When to use redirects ===
Here are some common situations where you might use a redirect:
There is no comprehensive list for when to use redirects. They can be used almost whenever you think one is needed. Here are some common reason’s for why to create a new redirect.


#Abbreviation: This is a redirect from a title with an abbreviation.
* Another or synonymous name for the same thing, such as Terra for [[Earth]] or Combadge for [[Communicator]].
#* "DSM-IV" redirects to "Diagnostic and Statistical Manual of Mental Disorders"
* When a topic is covered in another, related article and an article for the subject doesn’t exist, such as Deluvia IV for [[Deluvia system]]. This might change, if an article is later created for the subject.
#Misspellings: This is a redirect from a misspelling or typographical error.
* Common misspelling or untypical character, such as Ashli Sydin for [[Ashlı Sydin]] (note ı instead of i).
#* "Condoleeza Rice" redirects to "Condoleezza Rice"
** Some names that contain an apostrophe (’) have a redirect where it is replaced with a typewriter apostrophe ('), because most people have the latter but not the former on their keyboards. This can also happen vice versa, if the actual article name is written with a typewriter apostrophe. For example, Quark’s Bar for [[Quark's Bar]].
#Aiding writing: This is a redirect which makes it easier to write an article and make links "on the fly."
* Abbreviations, such as HCO for [[Helm/Com/Ops (Duty Post)]].
#* "planet Mars" redirects to "Mars (planet)"
* Singulars/plurals or other grammatical differences, for example Bajorans for [[Bajoran]].
#Other spellings/punctuation:This is a redirect from a title with a different spelling.
* Alternate capitalization, for example Commemorative coin for [[Commemorative Coin]]. Note that the first letter in the page’s name is always upper case due to technical limitations.
#* "colour" redirects to "color"
* Former names, nicknames, full names or pseudonyms, such as Conny for [[USS Constitution-B]] or Genkos Sim for [[Genkos Adea]] (who has changed his name).
#* "Al-Jazeera" redirects to "Al Jazeera"
** Some characters go by their nicknames or other names, in which case the official name might not be the primary name. The official name might be a redirect, however. For example, Kalianna Nicholotti for [[Kali Nicholotti]].
#Other capitalisations: This is a redirect from a title with another method of capitalisation. It leads to the title in accordance with the Wikipedia naming conventions for capitalization, and can help writing.
** The 118Wiki standard used to be writing characters’ names last name first, separated from the first name by a comma. As such, many characters currently have a redirect from such a name to their current character articles. For example, Wolf, Tristan for [[Tristan Wolf]].
#* "Natural Selection" redirects to "Natural selection"
* Many users choose to make their [[Writer ID]] a redirect to their wiki user pages, for example E239911J11 for [[User:Jovenan]].
#* To enable case-insensitive searching: Adding a redirect for articles with mixed case titles allows searches for these articles to be case-insensitive. For example, without the redirect "Isle of wight" a search for any capitalization other than exactly 'Isle of Wight' would not find the article "Isle of Wight". These search related redirects are needed only if the article title has more than two words and words following the first have different capitalizations.
#Other names, pseudonyms, nicknames, and synonyms: This is a redirect from a title that is an alternative name, a pseudonym, a nick name or a synonym. It leads to the title in accordance with the naming conventions for common names and can help writing.
#* "Wellie throwing" redirects to "Wellie wanging"
#* "Butcher of Kurdistan" redirects to "Ali Hassan al-Majid"
#* "Rev. Fred Phelps" redirects to "Fred Phelps"
#* "Linear operator" redirects to "Linear transformation"
#Plurals, tenses, etc.: This is a redirect from a plural word to the singular equivalent.
#* "greenhouse gases" redirects to "greenhouse gas"
#Related words: This is a redirect from a related word. Redirects from related words are not properly redirects from alternate spellings of the same word. But at the same time, they are also different from redirects from a subtopic, since the related word is unlikely to warrant a full subtopic in the target page.
#* "Symbiont" redirects to "Symbiosis"
#Sub-topics or closely related topics that should be explained within the text: This is a redirect from a title for a topic more detailed than the topic of the page this redirects to. Eventually if the target page becomes too big, this redirect may be replaced with an article carved out of the target page.
#* "Distributed denial of service" redirects to "Denial of service"
#Avoiding broken links


==What needs to be done on pages that are targets of redirects?==
=== When not to use redirects ===
We follow the "principle of least astonishment" - after following a redirect, the readers's first question is likely to be: "hang on ... I wanted to read about this. Why has the link taken me to that?" Make it clear to the reader that they have arrived in the right place.
Just like there is no clear-cut list of reasons when to use a redirect, one for when not to use them doesn’t exist either. In general, you should avoid creating a redirect in cases such as the following.


Normally, we try to make sure that all "inbound redirects" are mentioned in the first couple of paragraphs of the article. For example:
* There are multiple different pages the redirect could point at. For example, you shouldn’t create a redirect from [[Sickbay]] to your ship’s sickbay, like [[USS Artemis-A/Sickbay]], because it could refer to a number of sickbays in different ships. Use a disambiguation instead. Learn more about disambiguations at [[118Wiki:Disambiguation]].
* When redirect has little to no relation to the article or is misleading.


* '''Longships''' were boats used by the Vikings...
{{LCARS-bar-heading|Creating and managing redirects|COLOR={{Color|gold}}}}
** "longship", redirect from "viking ship"
* '''Mario Party''' is a video game series...
** "Mario Party", redirect from "Mario Party 2"
* '''Edvard Munch''' (1863-1944) was ... The broadest collection of his works is at on display at the Munch Museum at...
** "Edvard Munch", redirect from "Munch Museum"


==Self-links, duplicate links==
=== What redirect looks like? ===
Avoid self-links, including self-links through redirects ("loop links"). Also, avoid having two links that go to the same place on the same page. These can confuse readers, and cause them to unnecessarily load the same page twice.
In search results or as a link, a redirect looks similar to any other page. However, when you click on a link that is a redirect, you won’t typically stop at the redirect page but will be moved to the actual page instead. When that happens, you’ll see small text below the main title telling that you were redirected to this article. For example, if you click on link Terra, you will find text <span style="color:dimgray; font-size:smaller">(Redirected from [[Terra]])</span> under the title “Earth”.


{{WikipediaContent}}
It is still possible to visit a redirect page. When you get redirected to a page, click on the redirect page name in that small text. You’ll find a mostly empty page with a bendy arrow symbol and the target page (in case of Terra, “Earth”) link in larger font.
 
A redirect page, when it redirects to the target page, has a typical URL, such as <code>https://wiki.starbase118.net/wiki/index.php?title=Terra</code>, which isn’t any different from any article, such as <code>https://wiki.starbase118.net/wiki/index.php?title=Earth</code>. However, if you wish to visit the redirect page without being redirected, you’ll need to add <code>&redirect=no</code> to the end of the URL, e.g. <code>https://wiki.starbase118.net/wiki/index.php?title=Terra&redirect=no</code>.
 
A redirect page can be edited, moved and otherwise changed in the non-redirecting URL.
 
=== Creating a new redirect page ===
 
A redirect page can be created in the similar way as any other page. See [[Help:Creating a new page]] for instructions. However, when creating a redirect, you’ll need to add the redirecting instruction to the page.
 
On source editor, add a line with text <code><nowiki>#REDIRECT[[target page]]</nowiki></code>. Replace “target page” with the name of the actual article. For example, if you’re creating a redirect from Sol 3 to [[Earth]], that line would be <code><nowiki>#REDIRECT[[Earth]]</nowiki></code>. You can also use the button on the default toolbar.
 
On Visual editor, follow these instructions:
# Open the desired redirect page in Visual editor, such as Sol 3
# Open the hamburger menu (three horizontal lines, ☰) on the toolbar
# Open Page Settings
# Select “Redirect this page to” and write the target page in the input box
# Click “Apply changes” and save
 
In general, there should’t be anything else on the redirect page. See “Learn more” section for more information.
 
{{LCARS-bar-heading|Learn more|COLOR={{Color|blue}}}}
{{UC|section=yes}}


[[Category:Help]]
[[Category:Help]]

Revision as of 17:05, 23 April 2024

118Wiki


Redirecting is a method of guiding a reader to the correct page. A reader might be thinking of a synonym of the name of the article and go searching for it with the wrong word. This can happen to a wiki editor as well, and they might add a link under that synonym instead of the actual title. To avoid confusion in these cases, it is possible to create a redirect, which guides the reader to the article they were looking for. Anyone can create redirects when they feel there’s a reason for it.

Using redirects

What is a redirect?

Let’s say you want to learn more about Andor, the homeworld of Andorians. You type that in the search bar and hit enter. However, unknown to you at the time, the proper name of the moon on which Andorians live is actually Andoria. It is sometimes called Andor, which is why you happened to remember that name instead of Andoria. As you search for the article under the wrong (or less common) name, you still find the correct page, Andoria. That is because the page “Andor” is a redirect.

Instead of searching for Andor, let’s say you were writing about your character’s holiday there. If you don’t look up the name of the article, you might not remember that it’s actually “Andoria”, and add a link to “Andor” by mistake. However, since “Andor” is a redirect, any reader who clicks the link you added finds the correct page anyway.

When to use redirects

There is no comprehensive list for when to use redirects. They can be used almost whenever you think one is needed. Here are some common reason’s for why to create a new redirect.

  • Another or synonymous name for the same thing, such as Terra for Earth or Combadge for Communicator.
  • When a topic is covered in another, related article and an article for the subject doesn’t exist, such as Deluvia IV for Deluvia system. This might change, if an article is later created for the subject.
  • Common misspelling or untypical character, such as Ashli Sydin for Ashlı Sydin (note ı instead of i).
    • Some names that contain an apostrophe (’) have a redirect where it is replaced with a typewriter apostrophe ('), because most people have the latter but not the former on their keyboards. This can also happen vice versa, if the actual article name is written with a typewriter apostrophe. For example, Quark’s Bar for Quark's Bar.
  • Abbreviations, such as HCO for Helm/Com/Ops (Duty Post).
  • Singulars/plurals or other grammatical differences, for example Bajorans for Bajoran.
  • Alternate capitalization, for example Commemorative coin for Commemorative Coin. Note that the first letter in the page’s name is always upper case due to technical limitations.
  • Former names, nicknames, full names or pseudonyms, such as Conny for USS Constitution-B or Genkos Sim for Genkos Adea (who has changed his name).
    • Some characters go by their nicknames or other names, in which case the official name might not be the primary name. The official name might be a redirect, however. For example, Kalianna Nicholotti for Kali Nicholotti.
    • The 118Wiki standard used to be writing characters’ names last name first, separated from the first name by a comma. As such, many characters currently have a redirect from such a name to their current character articles. For example, Wolf, Tristan for Tristan Wolf.
  • Many users choose to make their Writer ID a redirect to their wiki user pages, for example E239911J11 for User:Jovenan.

When not to use redirects

Just like there is no clear-cut list of reasons when to use a redirect, one for when not to use them doesn’t exist either. In general, you should avoid creating a redirect in cases such as the following.

  • There are multiple different pages the redirect could point at. For example, you shouldn’t create a redirect from Sickbay to your ship’s sickbay, like USS Artemis-A/Sickbay, because it could refer to a number of sickbays in different ships. Use a disambiguation instead. Learn more about disambiguations at 118Wiki:Disambiguation.
  • When redirect has little to no relation to the article or is misleading.

Creating and managing redirects

What redirect looks like?

In search results or as a link, a redirect looks similar to any other page. However, when you click on a link that is a redirect, you won’t typically stop at the redirect page but will be moved to the actual page instead. When that happens, you’ll see small text below the main title telling that you were redirected to this article. For example, if you click on link Terra, you will find text (Redirected from Terra) under the title “Earth”.

It is still possible to visit a redirect page. When you get redirected to a page, click on the redirect page name in that small text. You’ll find a mostly empty page with a bendy arrow symbol and the target page (in case of Terra, “Earth”) link in larger font.

A redirect page, when it redirects to the target page, has a typical URL, such as https://wiki.starbase118.net/wiki/index.php?title=Terra, which isn’t any different from any article, such as https://wiki.starbase118.net/wiki/index.php?title=Earth. However, if you wish to visit the redirect page without being redirected, you’ll need to add &redirect=no to the end of the URL, e.g. https://wiki.starbase118.net/wiki/index.php?title=Terra&redirect=no.

A redirect page can be edited, moved and otherwise changed in the non-redirecting URL.

Creating a new redirect page

A redirect page can be created in the similar way as any other page. See Help:Creating a new page for instructions. However, when creating a redirect, you’ll need to add the redirecting instruction to the page.

On source editor, add a line with text #REDIRECT[[target page]]. Replace “target page” with the name of the actual article. For example, if you’re creating a redirect from Sol 3 to Earth, that line would be #REDIRECT[[Earth]]. You can also use the button on the default toolbar.

On Visual editor, follow these instructions:

  1. Open the desired redirect page in Visual editor, such as Sol 3
  2. Open the hamburger menu (three horizontal lines, ☰) on the toolbar
  3. Open Page Settings
  4. Select “Redirect this page to” and write the target page in the input box
  5. Click “Apply changes” and save

In general, there should’t be anything else on the redirect page. See “Learn more” section for more information.

Learn more