Last modified: 2007-01-19 15:35:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7845, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5845 - Variable giving only the pagename minus subpagename
Variable giving only the pagename minus subpagename
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.7.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-05 23:08 UTC by Borgx
Modified: 2007-01-19 15:35 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Borgx 2006-05-05 23:08:06 UTC
Ex: Wikipedia:Today's featured article/May 12, 2006

{{FULLPAGENAME}} = Wikipedia:Today's featured article/May 12, 2006
{{NAMESPACE}} = Wikipedia
{{SUBPAGENAME}} = May 12, 2006
{{PAGENAME}} = Today's featured article/May 12, 2006

But there is no way to get the "Today's featured article". Please provide
variable giving this pagename minus subpagename.
Comment 1 Rob Church 2006-05-06 15:25:23 UTC
For what purpose? Won't [[../]] et al. work for linking?
Comment 2 Borgx 2006-05-07 04:25:24 UTC
According to example above, [[../]] returns Wikipedia:Today's featured article
with inline link. The objective is to get the title "Today's featured article".

Some application for this is for navigational template such as:
Previous article: [[{{NAMESPACE}}:{{PAGENAMEONLY}}/{{CURRENTMONTHNAME}}
{{#expr:{{CURRENTDAY}}-1}}, {{CURRENTYEAR}}]]
Next article: [[{{NAMESPACE}}:{{PAGENAMEONLY}}/{{CURRENTMONTHNAME}}
{{#expr:{{CURRENTDAY}}+1}}, {{CURRENTYEAR}}]]
Comment 3 Rob Church 2006-05-14 03:51:55 UTC
Added BASEPAGENAME and BASEPAGENAMEE magic words in SVN trunk, r14212.
Comment 4 Conrad Dunkerson 2007-01-19 11:02:23 UTC
Using {{BASEPAGENAME}} on the en-wikip 'Main Page/Tomorrow' page returns "Main
Page/Tomorrow" instead of just "Main Page" as expected.
Comment 5 Rotem Liss 2007-01-19 15:35:17 UTC
enwiki doesn't have subpages enabled in the main namespace.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links