Template:Hash redirect/doc

From Yugipedia
Jump to: navigation, search

{{Hash redirect}} can be added to pages to cause them to redirect to other pages, when certain content appears in their URL after "#".

For example, placing {{Hash redirect|7}} on the "Jinzo" page will cause the reader to be redirected to "Jinzo 7" if "Jinzo #7" was typed into the URL. To add multiple values, use {{Hash redirect|1,2,3}}.

The reason for "Jinzo #7" not automatically taking the reader to the article on "Jinzo #7" is because in URLs, "#" is used to denote fragment identifiers and links the reader to sections identified by the content after the "#".

This will not work if the end user does not have JavaScript enabled.