Template:Soft redirect/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>K6ka
(Created page with " ==Description== This template is used to create soft redirects. Simply put, a short redirect does not automatically redirect users like a "hard" H...")
 
sims>K6ka
No edit summary
Line 14: Line 14:
Produces:
Produces:


{{Soft redirect|K6ka's Wiki:Sandbox}}
{{Soft redirect|K6ka's Wiki:Sandbox|nocat=yes}}


The second parameter changes the displayed text. It is optional.
The second parameter changes the displayed text. It is optional.
Line 22: Line 22:
Produces:
Produces:


{{Soft redirect|K6ka's Wiki:Sandbox|A place to make mud pies}}
{{Soft redirect|K6ka's Wiki:Sandbox|A place to make mud pies|nocat=yes}}

This template will automatically add pages to [[:Category:Soft redirects]]. You can disable this using the parameter <code>{{!}}nocat = yes</code>.

{{tlx|Soft redirect|K6ka's Wiki:Sandbox|nocat=yes}}


==Credits==
==Credits==

Revision as of 17:12, 19 May 2017

Description

This template is used to create soft redirects. Simply put, a short redirect does not automatically redirect users like a "hard" redirect would, but instead requires readers to click on another link in order to get to where they need to go.

It is useful for linking to wikis on other websites, where it is not technically possible to create a hard redirect for. It is also good for redirecting any page outside of K6ka's Wiki, in order to avoid confusion by readers when they are suddenly redirected to a page outside of this wiki.

Usage

{{Soft redirect|<Title of page you want to redirect to>|<Displayed text (optional)>}}

For example:

{{Soft redirect|K6ka's Wiki:Sandbox}}

Produces:

Soft redirect to:K6ka's Wiki:Sandbox
This page is a soft redirect.

The second parameter changes the displayed text. It is optional.

{{Soft redirect|K6ka's Wiki:Sandbox|A place to make mud pies}}

Produces:

Soft redirect to:A place to make mud pies
This page is a soft redirect.

This template will automatically add pages to Category:Soft redirects. You can disable this using the parameter |nocat = yes.

{{Soft redirect|K6ka's Wiki:Sandbox}}

Credits

This template's code was taken from Template:Soft redirect on the English Wikipedia.