Page MenuHomePhabricator

noinclude not working while includeonly does with pages to be preloaded
Closed, ResolvedPublic

Description

Author: pocoapocowiki

Description:
Hello,
I thought that both the <noinclude>s and the <includeonly>s are funcionality that complement each other, but I found one case where includeonly DOES work but noinclude DOES NOT. The problem occurs when I call a page with both noincludes and includeonlys via a preload (in Spanish precarga) from another page, e.g.:
http://es.wikipedia.org/w/wiki.phtml?title=Wikipedia:Tabl%C3%B3n_de_anuncios_de_los_bibliotecarios/Portal/Plantillas/Reversor/Actual&action=edit&section=new&preload=Wikipedia:Tabl%C3%B3n_de_anuncios_de_los_bibliotecarios/Portal/Plantillas/Reversor/precarga

If the code of that proload page looks like:
<includeonly>{{</includeonly>subst:Solicitud reversor|User name|2=Reason}}
<noinclude>[[Category:Whatever]]</noinclude>

the result will be:
{{subst:Solicitud reversor|User name|2=Reason}}
<noinclude>[[Category:Whatever]]</noinclude>

instead of:
{{subst:Solicitud reversor|User name|2=Reason}}

Somehow the code within the includeonlys is considered but the code between the noicludes is not left out.

Regards, SUL:Poco a poco


Version: unspecified
Severity: normal

Details

Reference
bz17723

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:35 PM
bzimport set Reference to bz17723.
bzimport added a subscriber: Unknown Object (MLST).

Please rewrite getPreloadedText() in EditPage.php to allow noinclude and other stuff. That is useful to allow cats or make it possible to add a explanation on that page which tell anybody what happen with that page. Thanks.

  • This bug has been marked as a duplicate of bug 5210 ***