Help:Curly braces
Appearance
This page is currently inactive and is retained for historical reference. Either the page is no longer relevant or consensus on its purpose has become unclear. To revive discussion, seek broader input via a forum such as the village pump. 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. It was last substantively updated 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
- Curly braces
{{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)
- /wiki/Curly_braces
{{SERVER}}
- //en.wikipedia.org
{{NAMESPACE}}
- Help