Last modified: 2013-06-09 14:27:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51344, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49344 - Bug handling doc subpage when module is named "Documentation"
Bug handling doc subpage when module is named "Documentation"
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-08 20:45 UTC by Yannick Perret
Modified: 2013-06-09 14:27 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yannick Perret 2013-06-08 20:45:11 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.
Comment 1 Andre Klapper 2013-06-08 20:48:36 UTC
(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?
Comment 2 Yannick Perret 2013-06-08 21:26:55 UTC
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.
Comment 3 Brad Jorsch 2013-06-09 13:39:26 UTC
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}}
Comment 4 Yannick Perret 2013-06-09 14:27:19 UTC
You're right! Sorry about the noise.

--
Y.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links