Last modified: 2007-01-19 15:35:17 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.
For what purpose? Won't [[../]] et al. work for linking?
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}}]]
Added BASEPAGENAME and BASEPAGENAMEE magic words in SVN trunk, r14212.
Using {{BASEPAGENAME}} on the en-wikip 'Main Page/Tomorrow' page returns "Main Page/Tomorrow" instead of just "Main Page" as expected.
enwiki doesn't have subpages enabled in the main namespace.