Page MenuHomePhabricator

Update self-transclude on preview
Closed, ResolvedPublic

Description

When, for example, previewing a template, that has it self transcluded (for documentation procedure for example), the transcuded data is the old data, not the current edited data. I propose that the edited data is to be used instead of the stored data.


Version: unspecified
Severity: enhancement

Details

Reference
bz11367

Event Timeline

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

Self-transcluding is forbidden; you should only get a link to begin with.

Nope. See http://es.wikipedia.org/w/index.php?title=Plantilla:Infobox_cient%C3%ADfico&oldid=11396660
First autotransclusion is via another template. The second one directly on the same page.

@brion: self-transclusion is allowed when the template page itself is viewed. it makes sens as a usage example in a <noinclude> section. makeing this work in preview would be nice and consistent, but tricky, i suppose.

itajsherman wrote:

For me the problem occures not only in preview but also after saving.

  1. I have a template with text: <includeonly>inc1111</includeonly><noinclude>self-transc={{:{{FULLPAGENAME}}}}</noinclude>
  2. I edit change to: <includeonly>inc2222</includeonly><noinclude>self-transc={{:{{FULLPAGENAME}}}}</noinclude>
  3. I save, it shows: self-transc=inc1111
  4. After purge: self-transc=inc2222

This is a real nuisance when editing templates. Most of them have self-transclusions as examples of how to use, and I always want to see that my change works well with these examples - so I was confused to see that my change didn't show, and thought I did it wrong.

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