Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:PAGENAMEBASE

Permanently protected template
From Wikipedia, the free encyclopedia

PAGENAMEBASE

Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 1,690,000 pages, or roughly 3% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's/sandbox or/testcases subpages, or in your ownuser subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on thetalk page before implementing them.
This template usesLua:

Usage

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

e.g.{{PAGENAMEBASE}} on pageChiton (genus) returns Chiton

onSweet Dreams (Are Made of This) (album) returns Sweet Dreams (Are Made of This)
onSweet Dreams (Are Made of This) returns Sweet Dreams
onStadion der Freundschaft (Frankfurt (Oder)) returns 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 amagic word that strips subpages, not parentheses.

See also

The abovedocumentation istranscluded fromTemplate:PAGENAMEBASE/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:PAGENAMEBASE&oldid=1253878185"
Categories:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp