Last modified: 2014-07-04 07:08:42 UTC
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".
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?
Just posted: https://fr.wikibooks.org/wiki/Wikilivres:Le_Bistro/Messages_actuels#Bug_57487_-_.7B.7BBASEPAGENAME.7D.7D_.26_.7B.7BSUBPAGENAME.7D.7D_ne_fonctionne_pas_normalement
I can't seem to find this discussion: que s'est-il passé?
I had moved it on he concerned site: https://fr.wikiversity.org/wiki/Wikiversit%C3%A9:La_salle_caf%C3%A9/47_2013#Bug_57487_-_.7B.7BBASEPAGENAME.7D.7D_.26_.7B.7BSUBPAGENAME.7D.7D_ne_fonctionnent_pas_normalement
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.