Author: mediazilla
Description:
Hello,
i hope that it is okay to request new features here in MediaZilla like it is done in other huge projects using
bugzilla too. I would not know where else to put it.
It's just a small thing that should be fast implemented. It is about the Variables regarding the Pagename which is
important for writing dynamic templates. My idea is to introduce a Variable Names ROOTPAGENAME which has similar
content like BASEPAGENAME. ROOTPAGENAME should only contain the name of the topmost page without namespace, e.g.
for "User:Name/Article/Subarticle" it should be "Name". BASEPAGENAME would be "Name/Article" here.
For those of you who think that this is not necessary to implement this let me show you a little example for what this
is good for:
Recently i wanted to change a Template in our german wikipedia, Named Vorlage:Archiv. This is a template which can be
included into archived-discussion pages. It is very common to store those archives in subpages. For example For
wikipedia:de:Internetforum there are archives in wikipedia:de:Internetforum/Archiv/Diskussionsforum and
wikipedia:de:Internetforum/Archiv/Webforum (this is because there were two articles once which have been combined in
that new article and the old discussion-pages have been moved there). Similarily the heavy discussions on Mainpages
are often moved to Mainpage/archive/date . I wanted to introduce a dynamic link into that template which point to the
current discussion. If i used [[Discussion:{{BASEPAGENAME}}]] than it would point to a wrong page which does not
exist. Here [[Discussion:{{ROOTPAGENAME}}]] would be needed.
greetings and the best wishes, Warhog
Version: 1.22.0
Severity: enhancement