Difference between revisions of "Template:No redirect"
Jump to navigation
Jump to search
Arcangelus (talk | contribs) (Taken from https://en.wikipedia.org/wiki/Template:No_redirect) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{safesubst:<noinclude/>#if: {{safesubst:<noinclude/>#invoke:Redirect|isRedirect|{{{1}}}}} | + | <includeonly>{{safesubst:<noinclude/>#if: {{safesubst:<noinclude/>#invoke:Redirect|isRedirect|{{{1}}}}} |
| <span class="plainlinks">[{{safesubst:<noinclude/>fullurl:{{{1}}}|redirect=no}} {{{2|{{{1}}}}}}]</span> | | <span class="plainlinks">[{{safesubst:<noinclude/>fullurl:{{{1}}}|redirect=no}} {{{2|{{{1}}}}}}]</span> | ||
| {{safesubst:<noinclude/>#if:{{{2|}}}|[[:{{safesubst:<noinclude/>FULLPAGENAME:{{{1}}}}}|{{{2}}}]]|[[:{{safesubst:<noinclude/>FULLPAGENAME:{{{1}}}}}]]}} | | {{safesubst:<noinclude/>#if:{{{2|}}}|[[:{{safesubst:<noinclude/>FULLPAGENAME:{{{1}}}}}|{{{2}}}]]|[[:{{safesubst:<noinclude/>FULLPAGENAME:{{{1}}}}}]]}} | ||
− | }}<noinclude> | + | }}</includeonly><noinclude>{{documentation}}</noinclude> |
− | {{documentation}} | ||
− | </noinclude> |
Latest revision as of 23:13, 28 February 2025
When the page name of a redirect is used as the for variable a redirect it links to the redirect page rather to the destination of the redirect
Example[edit]
{{No redirect|Terrain}}
produces: Terrain
The above documentation is transcluded from Template:No redirect/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |