Template:PAGENAMEBASE

From Path of Exile Wiki
Revision as of 07:19, 18 October 2020 by >Vinifera7 (Created page with "{{{{{|safesubst:}}}#invoke:String|replace|{{{1|{{{{{|safesubst:}}}PAGENAME}}}}}|%s+%b()$||1|false}}<noinclude> {{Documentation}} <!-- Categories and interwikis go on the /doc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PAGENAMEBASE

Template documentation[view] [edit] [history] [purge]

Lua logo

This template uses the following modules:

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

{{PAGENAMEBASE|Map:Harbinger Map (Low Tier) (Blight)}} → Map:Harbinger Map (Low Tier)

This template was adapted from Template:PAGENAMEBASE on Wikipedia.
Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.