Template:PAGENAMEBASE/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
(category)
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


{{Wikipedia template}}
This template returns the current page name without text in parentheses. If the page name has more than one set of parentheses, only the last one is removed.
 
It is not to be confused with the [[mw:Help:Magic words|magic word]], <code><nowiki>{{BASEPAGENAME}}</nowiki></code>, which returns the page name without its subpages.
 
==Usage==
<code><nowiki>{{PAGENAMEBASE}}</nowiki></code>
 
The first unnamed parameter can be used to specify the page name. Otherwise, it defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>.
 
===Examples===
<code><nowiki>{{PAGENAMEBASE|Blight (game mechanic)}}</nowiki></code> → {{PAGENAMEBASE|Blight (game mechanic)}}
 
<code><nowiki>{{PAGENAMEBASE|Blight league}}</nowiki></code> → {{PAGENAMEBASE|Blight league}}


{{Documentation categories|
{{Documentation categories|

Revision as of 18:31, 5 June 2021

This subpage provides documentation for Template:PAGENAMEBASE.

This template returns the current page name without text in parentheses. If the page name has more than one set of parentheses, only the last one is removed.

It is not to be confused with the magic word, {{BASEPAGENAME}}, which returns the page name without its subpages.

Usage

{{PAGENAMEBASE}}

The first unnamed parameter can be used to specify the page name. Otherwise, it defaults to {{PAGENAME}}.

Examples

{{PAGENAMEBASE|Blight (game mechanic)}} → Blight

{{PAGENAMEBASE|Blight league}} → Blight league