Last modified: 2014-06-07 20:05:02 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 T68281, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66281 - VisualEditor: [Regression] "manual subst" hack doesn't work any more
VisualEditor: [Regression] "manual subst" hack doesn't work any more
Status: RESOLVED INVALID
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High minor
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-06 21:16 UTC by Amir E. Aharoni
Modified: 2014-06-07 20:05 UTC (History)
5 users (show)

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


Attachments

Description Amir E. Aharoni 2014-06-06 21:16:14 UTC
It's not really possible to subst MediaWiki templates in VE yet (bug 49904). According to James F., it should be possible to write "subst:Foo" when inserting the template with some caveats.

This doesn't seem to work at the time. For example, writing "subst:Clarify" in the English Wikipedia, shows the string "{{subst:Clarify}}", but as a template with a highlight. When the page is saved, the template {{Clarify|date=June 2014}} is inserted - not substed.

From IRC:

aharoni: Is there a way to do a subst to a template in VE?
James_F: aharoni: Ish.
James_F: aharoni: To add a template called "Foo", instead tell it to insert subst:Foo".
James_F: aharoni: But it doesn't get the TemplateData (so it's pretty icky).
James_F: aharoni: There's a bug asking for an actual checkbox.
[...]
aharoni: James_F: about that subst thing: It doesn't seem to work. It inserts a literal {{subst:Foo}}.
James_F: aharoni: Huh. That's a regression, then. :-(
Comment 1 Alex Monk 2014-06-07 15:04:18 UTC
I can't replicate this bug. But I think this is actually invalid.

This 'Clarify' template on enwiki uses some clever 'Unsubst' lua module hack to deliberately break subst - take a look at the source. Also notice how that 'date' parameter appeared from nowhere?

I tested this out using the normal editor (just added '{{subst:Clarify}}'): https://en.wikipedia.org/w/index.php?title=User:Krenair/sandbox&diff=611955311&oldid=492366611

If I try any other non-Unsubst template, it's fine. For example, I added 'subst:Cite web' from VE: https://en.wikipedia.org/w/index.php?title=User:Krenair/sandbox&diff=611955603&oldid=611955311
Comment 2 James Forrester 2014-06-07 20:05:02 UTC
Aha. Anti-subst tech? Whatever next?

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


Navigation
Links