Help:Parser functions/subpagename
Jump to navigation
Jump to search
| subpagename | {{SUBPAGENAME}} |
|
Get the final page name part representing the current subpage layer; Effectively equivalent to {{PAGENAME}} if not used on a subpage.
- Example
{{SUBPAGENAME}}-> subpagename
Returns only what's after the/.
{{SUBPAGENAME:Help:Editing}}-> Editing
Returns own root name as it's not a subpage.
- Parameters
string unnamed Title string to perform on, if it should be a different page.
- See also
{{SUBPAGENAMEE}}URL-encoded counterpart.
- Returns
- string Page title in standard text form.