Last modified: 2012-11-13 20:22:17 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 T18714, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16714 - Pre-save transforms (subst:, pipe trick) should run at render time as well as before save
Pre-save transforms (subst:, pipe trick) should run at render time as well as...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 5453 8785
  Show dependency treegraph
 
Reported: 2008-12-19 21:56 UTC by Brion Vibber
Modified: 2012-11-13 20:22 UTC (History)
8 users (show)

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


Attachments

Description Brion Vibber 2008-12-19 21:56:30 UTC
 
Comment 1 Brion Vibber 2008-12-19 21:59:50 UTC
Currently, the pre-save transform operations (subst, pipe trick, and sigs) are only performed at edit time ("pre-save").

This leads to confusion when operations like subst: and the pipe trick are used in templates, or on dynamic operations. For consistency, it may be desireable to run these operations on regular page rendering along with template expansion.
Comment 2 Roan Kattouw 2008-12-20 07:59:27 UTC
I don't know about this: I'm pretty sure there are people out there actually using this 'feature'. AFAICT, you need to go through quite some trouble to design wikicode that only fully expands on the second PST, so any use of it is probably intentional rather than accidental. Of course, if this happens by accident too often, we do want to fix it.
Comment 3 Conrad Irwin 2010-02-06 15:14:01 UTC
safesubst: allows for "safe" substitution at either parse (to avoid breaking stuff that relies on the difference); pipe tricks are now also implemented at both stage of the parse; (as of r62029). 

I think implementing signatures later in the parse would be very complicated, might lead to privacy concerns, as anyone who caused the cache to purge might end up with their signature in a page they'd never edited.
Comment 4 Conrad Irwin 2010-02-06 15:16:53 UTC
r62069 even
Comment 6 billinghurst 2011-06-01 13:44:50 UTC
[Guessing/hoping this is directly related]

When the pipe trick is attempted to be used within <ref> or {{#ref:...}} the pipe trick fails, and having it functional would be very useful, especially where one is trying to utilise the pipe trick to deal with links like [[w:link link|]] (interwiki from within articles) or [[Namespace:...|]] (cross namespace) or [[link link (blah blah)|]].
Comment 7 billinghurst 2011-06-01 13:48:05 UTC
brain fade {{#tag:ref|...}}
Comment 8 Nemo 2011-06-01 14:14:47 UTC
(In reply to comment #6)
> [Guessing/hoping this is directly related]

It should be bug 2700 (bug 28680 was marked as duplicate of it).

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


Navigation
Links