Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Soft redirect: Difference between revisions

Template page
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
__NONEWSECTIONLINK__[[File:Softredirarrow.svg|64px|Soft redirect to:|link=]]<span class="redirectText" id="softredirect">[[:{{#invoke:String|match|1={{{1}}}|2=^:*(.-)$}}|{{{2|{{#invoke:String|match|1={{{1}}}|2=^:*(.-)$}}}}}]]</span><br /><span style="font-size:85%; padding-left:48px;">This page is a [[Wikipedia:Soft redirect|soft redirect]].</span><includeonly>{{#ifeq:{{{category|¬}}}|¬|{{#switch: {{NAMESPACE}}
<languages/>
| {{ns:0}}         = [[Category:Wikipedia soft redirects|{{PAGENAME}}]]
</noinclude>{{#switch:<translate></translate>
| {{ns:Category}}  = [[Category:Pages with templates in the wrong namespace]] {{error|Error! Please use {{t|category redirect}} instead of this template in Category: space.}}
| =
| {{ns:User}}
[[File:Redirect arrow without text.svg|link=|class=skin-invert|#REDIRECT]]<span class="redirectText" id="softredirect">[[:{{{1}}}|{{#ifeq:{{{2|}}}||{{{1}}}|{{{2}}}}}]]</span><br /><span style="font-size:85%; padding-{{dir|{{pagelang}}|right|left}}:48px;"><translate><!--T:2--> This page is a [[<tvar name=meta>m:Special:MyLanguage/Soft redirect</tvar>|soft redirect]].</translate></span>{{#ifeq:{{{nocat|}}}|
| {{ns:User talk}} = [[Category:User soft redirects|{{PAGENAME}}]]
  |{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Soft redirected pages]]|}}
| {{ns:Wikipedia}}
  }}
| {{ns:Help}}      = [[Category:Wikipedia soft redirected project pages|{{PAGENAME}}]]
| #default=
| {{ns:Template}}  = [[Category:Wikipedia soft redirected templates|{{PAGENAME}}]][[Category:Wikipedia transclusionless templates]]
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Soft redirect|noshift=1|uselang={{int:lang}}}}
| {{TALKSPACE}}   = [[Category:Wikipedia soft redirected talk pages]]
}}<noinclude>
| #default        = [[Category:Wikipedia soft redirects|{{PAGENAME}}]]
{{Documentation|content=
}}{{#ifeq:{{Is interwiki link|{{{1}}}}}|yes|[[Category:Wikipedia interwiki soft redirects|{{PAGENAME}}]]|{{#ifexist:{{{1}}}||[[Category:Wikipedia soft redirects to nonexistent targets|{{PAGENAME}}]]}}}}
 
}}{{Soft redirect protection|nocat={{#ifeq:{{yesno-yes|{{{category|¬}}}}}|no|true|false}}}}__EXPECTUNUSEDTEMPLATE__</includeonly><noinclude>
<translate><!--T:3--> This template is for redirecting to a different [[w:wiki|wiki]], which is currently not possible due to technical restrictions. The subject page is categorised under <tvar name=cat>{{ll|Category:Soft redirected pages}}</tvar>.</translate>
{{Documentation}}
 
<translate>
== Examples == <!--T:4-->
</translate>
 
* <nowiki>{{Soft redirect|meta:Special:MyLanguage/Help:Edit summary}}</nowiki>
 
* <nowiki>{{Soft redirect|meta:Special:MyLanguage/Help:Edit summary|Meta-Wiki}}</nowiki>
 
 
== TemplateData ==
<templatedata>
{
"description": "Create a soft redirect to another wiki.",
"format": "inline",
"params": {
"1": {
"label": "Target",
"description": "The external page name to link to, including interwiki prefix.",
"required": true,
"type": "string"
},
"2": {
"label": "Label",
"description": "The displayed text.",
"default": "{{{1}}}",
"type": "line"
}
}
}
</templatedata>
 
}}
[[Category:Redirect templates{{#translation:}}]]
</noinclude>
</noinclude>

Latest revision as of 23:03, 23 February 2025

Soft redirect to:[[:{{{1}}}|{{{1}}}]]
This page is a soft redirect.