Template:Target of: Difference between revisions
Template page
More actions
Created page with "<includeonly>{{safesubst:<noinclude/>#invoke:Redirect|main|fulltext=1|{{{1|}}}}}</includeonly><noinclude> {{documentation}} </noinclude>" |
(No difference)
|
Latest revision as of 04:41, 18 February 2025
| Uses Lua: |
Returns the target page of a link, whether it's a redirect or not.Template:Clarify
Usage
{{Target of|AD 2000}}AD 2000
The page "AD 2000" is a redirect to "2000", so it displays "2000".
{{Target of|2000}}2000
The page "2000" isn't a redirect, so it displays "2000".
[[{{Target of|AD 2000}}]]AD 2000
You can use it in links, &c.
It also supports redirects to anchored sections:
{{Target of|WP:BRINT}}WP:BRINT
It can be used in "piped" local links that support alternative labels:
[[{{Target of|WP:BRINT}}|WP:BRINT]]WP:BRINT