Last modified: 2013-06-09 14:27:19 UTC
Hello, on fr.WP the doc subpage is $1/Documentation. We created a module called Module:Documentation (fr.wikipedia.org/wiki/Module:Documentation) which is translucted in every modules, from the related system messages. It seems that mediawiki is confused by the fact the module has the name of a documentation page. Look at the module page: the documentation is not translucted the same way that other modules (compare with fr.wikipedia.org/wiki/Module:Test). Not very important, but it don't look nice. Regards, -- Y.
(In reply to comment #0) > Look at the module page: the documentation is not translucted the same way > that other modules (compare with fr.wikipedia.org/wiki/Module:Test). Describing in words, what is different, and what would you have expected?
The rendering is not the same (lack of blue frame, no header with logo, description and links), which are present in all other pages. This header is generated by a dedicated module, which is called from the system messages dedicated to doc transluction (i.e. scribunto-doc-page-header is "{{#invoke:Documentation module|doc|$1}}"). It seems that mediawiki do includes the doc subpage but don't perform the module call, which works fine on all other modules. The only difference (as far as I can see) is that this particular module is called "Documentation" which is the name of the documentation subpage (Module:$1/Documentation). -- Y.
The problem is with your documentation module (Module:Documentation_module), not Scribunto. Specifically, the 'subpage' for Module:Documentation is "Documentation".[1] So the test at line 26 of your documentation module is incorrectly passing, causing the incorrect output. [1]: This matches the behavior of {{SUBPAGENAME}}. See https://fr.wikipedia.org/wiki/Special:ExpandTemplates?contexttitle=Module%3ADocumentation&input={{SUBPAGENAME}}
You're right! Sorry about the noise. -- Y.