Difference between revisions of "Template:No redirect"

From RimWorld Wiki
Jump to navigation Jump to search
(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

Documentation icon Template documentation[view] [edit] [history] [purge]

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