Page MenuHomePhabricator

{{BASEPAGENAME}} & {{SUBPAGENAME}} don't work properly in the fr.Wikiversity templates namespace
Closed, ResolvedPublic

Description

As you can see into https://fr.wikiversity.org/wiki/Mod%C3%A8le:JackPotte/test, the behavior of the BASEPAGENAME and SUBPAGENAME magic words for this particular wiki in this particular namespace is different than all the others (eg: https://fr.wikiversity.org/wiki/Utilisateur:JackPotte/test).
Line 7 to 8 it should display "JackPotte", and 9 to 10 "test".


Version: wmf-deployment
Severity: normal

Details

Reference
bz57487

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:40 AM
bzimport set Reference to bz57487.
bzimport added a subscriber: Unknown Object (MLST).

These variables works only, if the namespace supports subpages (according to $wgNamespacesWithSubpages)

As default $wgNamespacesWithSubpages contains the template namespace as subpage namespace, but frwikiversity overrides it with

'+frwikiversity' => array( 0 => 1, 6 => 0, 8 => 0, 10 => 0, 112 => 1, 113 => 1 ),

which removed that flag for templates (the 10 => 0 is the problem).

I suppose subpages were disabled in template space for things like [[v:fr:Modèle:0/4]]. I can't find any relevant bugs.

As you can see by browsing through [[v:fr:Spécial:Index/Modèle:]], it's clear that subpages are actually being used for documentation etc, so all the more reason to re-enable subpages in template space.

If you would like this to happen, could you please start a community discussion and see if there are any disagreements?

I can't seem to find this discussion: que s'est-il passé?

Nobody has answered on fr.v, so let's uniform this behavior with the other wikis.

Change 142980 had a related patch set uploaded by TTO:
Allow subpages in template namespace of frwikiversity

https://gerrit.wikimedia.org/r/142980

It seems that I forgot about this bug. Sorry!

Change 142980 merged by jenkins-bot:
Allow subpages in template namespace of frwikiversity

https://gerrit.wikimedia.org/r/142980

Again, sorry it took so long. Hopefully your template programming is now a little easier!

Thank you, I confirm that it's much better now.