The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
Template:PAGENAMEBASE/doc: Difference between revisions
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
<code><nowiki>{{PAGENAMEBASE|Map:Harbinger Map (Low Tier) (Blight)}}</nowiki></code> → {{PAGENAMEBASE|Map:Harbinger Map (Low Tier) (Blight)}} | <code><nowiki>{{PAGENAMEBASE|Map:Harbinger Map (Low Tier) (Blight)}}</nowiki></code> → {{PAGENAMEBASE|Map:Harbinger Map (Low Tier) (Blight)}} | ||
{{Adapted from Wikipedia|Template:PAGENAMEBASE}} | |||
{{Documentation categories| | {{Documentation categories| |
Revision as of 18:10, 2 May 2024

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
{{PAGENAMEBASE|Map:Harbinger Map (Low Tier) (Blight)}}
→ Map:Harbinger Map (Low Tier)

Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.