Template:PAGENAMEBASE

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

PAGENAMEBASE

[edit] [purge] Template-info.svg Template documentation

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.