Template:PAGENAMEBASE/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This is a documentation subpage for Template:PAGENAMEBASE.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:PAGENAMEBASE.

Description

This template returns the current {{PAGENAME}} minus (text in parentheses) or the final set of parentheses where more than one set exist.

On page Renders as
Chiton (genus)

Chiton

Sweet Dreams (Are Made of This) (album)

Sweet Dreams (Are Made of This)

Sweet Dreams (Are Made of This)

Sweet Dreams

Stadion der Freundschaft (Frankfurt (Oder))

Stadion der Freundschaft

Can also pass an optional page parameter:

  • {{PAGENAMEBASE|foo (bar)}} → "foo"
  • {{PAGENAMEBASE|foo bar}} → "foo bar"

It is not to be confused with {{BASEPAGENAME}}, which is a magic word that strips subpages, not parentheses.

Usage

  1. {{PAGENAMEBASE}}
  2. {{PAGENAMEBASE|page}}

History

From wikipedia:Template:PAGENAMEBASE. #Description is adapted from wikipedia:Template:PAGENAMEBASE/doc#Usage.