Personal tools

ADVERTISEMENT

Help:Redirect

From The StarCraft 2 Wiki

Jump to: navigation, search

Redirects are a tool of StarCraftWiki that helps users who type in an URL directly in the address field to find their mark.


What is a Redirect?

A redirect is a string of code that makes a page automatically pull up another page instead of loading itself. An example is to have the plural versions of a word redirected to the singular. A link to Siege Tanks will for example redirect to Siege Tank.

How to use a Redirect

To make a redirect, just use the following string of characters on the first line of the page:

#REDIRECT [[Siege Tank]]

It's possible to add other content under the redirect string, but none will see it unless they visit the page itself. On the other hand it will enable the use of categorization and other effects.

Unfortunately, target links (such as [[Help:Markup#Creating_Links]]) will not work. The wiki will redirect to that page, but not straight to the section.

Ideally, links should be made to avoid this use of redirect, such as writing [[Barbarian]]s instead of [[Barbarians]] (read more about links on the markup help page).