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
m (4 revisions imported: Import from https://k6ka.miraheze.org/)
No edit summary
 
Line 1: Line 1:


==Description==
==Description==
This template is used to create [[Project:Soft redirect|soft redirects]]. Simply put, a short redirect does not automatically redirect users like a "hard" [[Help:Redirect|redirect]] would, but instead requires readers to click on another link in order to get to where they need to go.
This template is used to create [[Help:Redirect#Soft_redirects|soft redirects]]. Simply put, a short redirect does not automatically redirect users like a "hard" [[Help:Redirect|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.
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.
Line 10: Line 10:
For example:
For example:


{{tlx|Soft redirect|K6ka's Wiki:Sandbox}}
{{tlx|Soft redirect|The Sims Wiki:Sandbox}}


Produces:
Produces:


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


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


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


Produces:
Produces:


{{Soft redirect|K6ka's Wiki:Sandbox|A place to make mud pies|nocat=yes}}
{{Soft redirect|The Sims 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>.
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}}
{{tlx|Soft redirect|The Sims Wiki:Sandbox|nocat{{=}}yes}}


==Credits==
==Credits==
This template's code was taken from [[wikipedia:Template:Soft redirect|Template:Soft redirect]] on the English Wikipedia.
This template's code was taken from [[w:en:Template:Soft redirect|Template:Soft redirect]] on the English Wikipedia.


<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Redirect templates|{{PAGENAME}}]]</includeonly>

Latest revision as of 11:59, 2 September 2019

Description[edit source]

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[edit source]

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

For example:

{{Soft redirect|The Sims Wiki:Sandbox}}

Produces:

Soft redirect to:The Sims Wiki:Sandbox
This page is a soft redirect.

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

{{Soft redirect|The Sims 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|The Sims Wiki:Sandbox|nocat=yes}}

Credits[edit source]

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