Template:Soft redirect/doc: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
c
 
 
Line 7: Line 7:


* <code>wikilink=</code> - You can link to some websites by adding a prefix to the page on that site you want to link to. For example, <code>&#123;{soft redirect|wikilink=wikipedia:Main Page}}</code> will redirect to the [[wikipedia:Main Page|Main Page of Wikipedia]]. For a list of supported websites and their prefixes, see [[Special:Interwiki]].
* <code>wikilink=</code> - You can link to some websites by adding a prefix to the page on that site you want to link to. For example, <code>&#123;{soft redirect|wikilink=wikipedia:Main Page}}</code> will redirect to the [[wikipedia:Main Page|Main Page of Wikipedia]]. For a list of supported websites and their prefixes, see [[Special:Interwiki]].
* <code>url=</code> - Literally just the full URL to the page you want to redirect to. For example, <code>&#123;{soft redirect|url=https://www.youtube.com/watch?v=dQw4w9WgXcQ}}</code>
* <code>url=</code> - Literally just the full URL to the page you want to redirect to. For example, <code><nowiki>{{soft redirect|url=https://www.youtube.com/watch?v=dQw4w9WgXcQ}}</nowiki></code>


== TemplateData ==
== TemplateData ==

Latest revision as of 08:38, 24 February 2021

{{soft redirect|wikilink=wikilink|url=url}}

The preferred way of redirecting a page to a different website or wiki.

Parameters[edit source]

ONE of the following parameters is required:

  • wikilink= - You can link to some websites by adding a prefix to the page on that site you want to link to. For example, {{soft redirect|wikilink=wikipedia:Main Page}} will redirect to the Main Page of Wikipedia. For a list of supported websites and their prefixes, see Special:Interwiki.
  • url= - Literally just the full URL to the page you want to redirect to. For example, {{soft redirect|url=https://www.youtube.com/watch?v=dQw4w9WgXcQ}}

TemplateData[edit source]

The preferred way of redirecting a page to a different website or wiki. ONE parameter is required

Template parameters

ParameterDescriptionTypeStatus
wikilinkwikilink

You can link to some websites by adding a prefix to the page on that site you want to link to. For example, "{{soft redirect|wikilink=wikipedia:Main Page}}" will link to the Main Page of Wikipedia. For a list of supported websites and their prefixes, see [[Special:Interwiki]].

Example
wikipedia:Main Page
Page namesuggested
URLurl

Literally just the full URL of the page you want to redirect to.

Example
https://www.youtube.com/watch?v=dQw4w9WgXcQ
URLsuggested