Last modified: 2013-04-22 16:14:10 UTC
Subpages were enabled on template namespace of ptwikibooks on bug 15076, but this got disabled recently for unknown reasons, breaking some of our templates. Test case: "{{SUBPAGENAME:Template:A/B/C}}" should return "C" but returns "A/B/C", as you can see at https://pt.wikibooks.org/w/index.php?title=Especial:Expandir_predefini%C3%A7%C3%B5es&input=%7B%7BSUBPAGENAME%3ATemplate%3AA%2FB%2FC%7D%7D&contexttitle=&removecomments=true
Reedy, any chance of this being related to gerrit change I685d49a64415f28bff6d9da4a9094eab793f10be ?
> var_dump( $wgNamespacesWithSubpages ); array(35) { [0]=> int(1) [6]=> int(0) [8]=> int(0) [14]=> int(1) [15]=> int(1) [16]=> int(0) [17]=> int(0) [10]=> int(0) [1]=> bool(true) [2]=> bool(true) [3]=> bool(true) [4]=> bool(true) [5]=> bool(true) [7]=> bool(true) [18]=> bool(true) [9]=> bool(true) [19]=> bool(true) [11]=> bool(true) [12]=> bool(true) [13]=> bool(true) [20]=> bool(true) [100]=> bool(true) [101]=> bool(true) [102]=> bool(true) [103]=> bool(true) [104]=> bool(true) [105]=> bool(true) [106]=> bool(true) [107]=> bool(true) [108]=> bool(true) [109]=> bool(true) [110]=> bool(true) [111]=> bool(true) [828]=> bool(true) [829]=> bool(true) } TBH, I'd be tempted to just remove 10 => 1 from: '+wikibooks' => array( 0 => 1, 4 => 0, 6 => 0, 8 => 0, 10 => 0 ),
https://gerrit.wikimedia.org/r/#/c/54630/
Status = Merged and the example above seems to be working now.