en.wikipedia's Template:Asbox uses a lot of PageMagic. If one tries to expand templates from a page incorporating it with the current (git HEAD) mwlib, one ends up with template documentation appearing where it shouldn't.
In particular, Asbox uses:
{{#switch:{{FULLPAGENAME:{{{name|}}}}} ...
mwlib doesn't handle things like {{FULLPAGENAME:Somepagename}}. It only
handles the case where no arguments are given after :, and so implicitly
somepagename == the current page. Admittedly, this feature to pass an
arbitrary arg isn't properly documented on meta, but it is being used.
I have attached patches, updating tests/test_expander.py to include many of the PageMagic functions documented on Meta, and mwlib/templ/magics.py to make those tests pass.
Best, - Joel -- You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.
0001-Fix-PageMagic-to-consider-page-as-argument.patch
Description: Binary data
binDWSNleRXDE.bin
Description: Binary data
0003-Tests-for-most-of-PageMagic.patch
Description: Binary data
