Difference between revisions of "Template:Soft redirect"

From blackwiki
Jump to navigation Jump to search
blackwiki>Steel1943
(Undoing category add of Category:Wikipedia interwiki soft redirects - unless this template can be updated to check the target to see if it's on the English Wikipedia (can't figure that out right now), this throws most pages into category erroneously)
m (82 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:Softredirarrow.svg|64px|Soft redirect to:|link=]]<span class="redirectText" id="softredirect">[[:{{{1}}}|{{{2|{{{1}}}}}}]]</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}}
+
[[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}}
 
  | {{ns:0}}        = [[Category:Wikipedia soft redirects|{{PAGENAME}}]]
 
  | {{ns:0}}        = [[Category:Wikipedia soft redirects|{{PAGENAME}}]]
 
  | {{ns:Category}}  = [[Category:Wikipedia soft redirected categories|{{PAGENAME}}]]<!--
 
  | {{ns:Category}}  = [[Category:Wikipedia soft redirected categories|{{PAGENAME}}]]<!--
Line 10: Line 10:
 
  | {{TALKSPACE}}    = [[Category:Wikipedia soft redirected talk pages]]  
 
  | {{TALKSPACE}}    = [[Category:Wikipedia soft redirected talk pages]]  
 
  | #default        = [[Category:Wikipedia soft redirects|{{PAGENAME}}]]
 
  | #default        = [[Category:Wikipedia soft redirects|{{PAGENAME}}]]
}}
+
}}{{#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}}</includeonly><noinclude>
 
}}{{Soft redirect protection}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 09:06, 30 September 2020

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

Template documentation[create]