Page MenuHomePhabricator

<noinclude>, <includeonly> and <onlyinclude> tags should work with subst: too
Closed, ResolvedPublic

Description

Author: puglisi

Description:
Currently, the <noinclude> tag only prevents inclusion when the template is
included the usual way. When using the subst: syntax, the noinclude tag doesn't
work and unwanted text ends up in articles (for example, categories intended for
the template only).

An easy fix would be to scan the template for noinclude tags and remove their
content (and the tags themselves) from the template string before inserting it
in the article


Version: 1.6.x
Severity: enhancement

Details

Reference
bz3298

Revisions and Commits

Event Timeline

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

includeonly should work with "subst:", too.

avarab wrote:

Rectified the summary to include <onlyinclude> and marking the bug as FIXED in
CVS HEAD

  • Bug 6077 has been marked as a duplicate of this bug. ***
epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:16 AM