Template:Redirect: Difference between revisions

From EunuchWiki
 
imported>Retarded FAG
Resurrect Template from the dead
Line 1: Line 1:
<includeonly>{{#invoke:redirect hatnote|redirect|1}}</includeonly><noinclude>
{{{{{|safesubst:}}}#ifexist:{{{1}}}
{{documentation}}
|<span class="plainlinks">[{{{{{|safesubst:}}}fullurl:{{{1}}}|redirect=no}} {{{2|{{{1}}}}}}]</span>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
|{{{{{|safesubst:}}}#if:{{{2|}}}
</noinclude>
  |[[:{{{1}}}|{{{2}}}]]
  |[[:{{{1}}}]]
}}
}}<noinclude>
 
==Purpose==
This is to link to redirects.
 
==Usage example==
;Plain:
<nowiki>{{Redirect|Crybully}}</nowiki>
 
... yields:
<span class="plainlinks">[{{SERVER}}/index.php?title=Crybully&redirect=no Crybully]</span>
 
;With text label:
<nowiki>{{Redirect|Crybully|Text label}}</nowiki>
 
... yields:
<span class="plainlinks">[{{SERVER}}/index.php?title=Crybully&redirect=no Text label]</span>
 
[[Category:Link Templates|{{PAGENAME}}]]</noinclude>

Revision as of 15:34, 21 January 2024

[[:{{{1}}}]]

Purpose

This is to link to redirects.

Usage example

Plain

{{Redirect|Crybully}}

... yields: Crybully

With text label

{{Redirect|Crybully|Text label}}

... yields: Text label