Help:Curly braces

{{historical|comment=There is consensus that this page should be updated. See Wikipedia:Redirects for discussion/Log/2016 July 3#Help:Curly braces. A user who does so need not seek broader input before removing this template. An updated version of this page is available at Help:Magic words.|date=July 2016}}

When you enclose certain codes in double curly braces, you get all sorts of interesting results:

{{PAGENAME}} - the title of current page, with regular spaces between each word of it

  • {{PAGENAME}}

{{localurl:{{PAGENAME}}}} - a fragment of the URL that refers to the page you put the code in (note that the page title has underscores between each word)

  • {{localurl:{{PAGENAME}}}}

{{SERVER}}

  • {{SERVER}}

{{NAMESPACE}}

  • {{NAMESPACE}}