Last modified: 2014-06-07 20:05:02 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. :-(
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
Aha. Anti-subst tech? Whatever next?