Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24590c24a535645

Jump to content

Template:Target of/doc

From Wikipedia, the free encyclopedia

Returns the target page of a link, whether it's a redirect or not.[clarification needed]

Usage

[edit]
  • {{Target of|AD 2000}} 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}}]] 2000

You can use it in links, &c.

It also supports redirects to anchored sections:

  • {{Target of|WP:BRINT}} Wikipedia:Redirect#Bypass redirects in navigational templates

It can be used in "piped" local links that support alternative labels:

  • [[{{Target of|WP:BRINT}}|WP:BRINT]] WP:BRINT

See also

[edit]