Template:Redirect: Difference between revisions

From EunuchWiki
imported>Retarded FAG
Resurrect Template from the dead
m 1 revision imported
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{{{{|safesubst:}}}#ifexist:{{{1}}}
<includeonly>{{#invoke:redirect hatnote|redirect|1}}</includeonly><noinclude>
|<span class="plainlinks">[{{{{{|safesubst:}}}fullurl:{{{1}}}|redirect=no}} {{{2|{{{1}}}}}}]</span>
{{documentation}}
|{{{{{|safesubst:}}}#if:{{{2|}}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
  |[[:{{{1}}}|{{{2}}}]]
</noinclude>
  |[[:{{{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>

Latest revision as of 21:34, 11 June 2024