සැකිල්ල:pagename/documentation
This template is to be used in place of {{PAGENAME}} and {{SUBPAGENAME}}. It produces the logical pagename of the current entry, that is, the underlying pagename free of the special transformations applied to unsupported titles and mammoth pages (pages such as a that are split into subpages due to their size). The built-in MediaWiki parser function {{PAGENAME}} produces the physical pagename, which includes those transformations and also has HTML-encoding of certain punctuation characters, making it unsuitable for passing directly to {{urlencode:}}.
In namespaces other than the mainspace, {{pagename}} produces the subpage, i.e. the pagename after the final slash if there is such a slash, and without the namespace prefix.
For example, {{pagename}} will return a on all of the following pages:
- a
- a/languages A to L (since a is designated as a mammoth page)
- Appendix:Lojban/a
- Reconstruction:Proto-Slavic/a
- User:Example/a
On the Unsupported titles/¯\`lowbar`(ツ)`lowbar`/¯ page, {{pagename}} returns ¯\_(ツ)_/¯, the true name of the entry. Likewise, on Unsupported titles/Space, it returns (a space). However, on Unsupported titles/church ruins symbol, it returns church ruins symbol, as no Unicode character is available.
See also
[සංස්කරණය]{{strip diacritics}}- constructs the logical pagename for a specified term