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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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