Wikicode: Difference between revisions

188 bytes added ,  21:15, 1 May 2020
Added note about passthrough of url-hashes for redirects.
(Added revision note)
(Added note about passthrough of url-hashes for redirects.)
Line 51: Line 51:


In some cases, creating a blank page to redirect to a similar named page or object is helpful. This especially helps when using the search function on the wiki. To make a redirect, create a new page of the word you need redirected, and only enter '''<nowiki>#REDIRECT [[page_to_redirect_to]]</nowiki>'''. This makes it so whenever someone loads the page, they will be automatically redirected to the indicated page.
In some cases, creating a blank page to redirect to a similar named page or object is helpful. This especially helps when using the search function on the wiki. To make a redirect, create a new page of the word you need redirected, and only enter '''<nowiki>#REDIRECT [[page_to_redirect_to]]</nowiki>'''. This makes it so whenever someone loads the page, they will be automatically redirected to the indicated page.
Redirects will pass through any url-hashes (anything behind a #). This does not work however if there is a row of redirects. Therefore redirects should always point to the direct target.


==Headers==
==Headers==
1,133

edits