Last modified: 2014-10-14 17:37:42 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 T51904, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49904 - VisualEditor: Support "substituting" templates in transclusion dialog
VisualEditor: Support "substituting" templates in transclusion dialog
Status: PATCH_TO_REVIEW
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Normal enhancement
: VE-deploy-nextup
Assigned To: Alex Monk
:
: 59182 (view as bug list)
Depends on:
Blocks: ve-templatesupport
  Show dependency treegraph
 
Reported: 2013-06-20 19:30 UTC by Maggie Dennis
Modified: 2014-10-14 17:37 UTC (History)
14 users (show)

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


Attachments

Description Maggie Dennis 2013-06-20 19:30:04 UTC
User:JohnCD at English Wikipedia writes the following:
"If you enter, for instance, "Welcome" in the new template box, on clicking "Apply changes" you see the result; but if you enter "subst:welcome" you see only {{subst:welcome}}, though after clicking "Save page" the result is correct. Should there be a check-box for "subst" in the New template dialogue, (a) to save typing it out, (b) to arrange the correct display?"

James F. suggested this would be good to enter as an enhancement request, since template substitution should be supported.

Maggie
Comment 1 Richard Morris 2013-08-30 13:59:14 UTC
Lots of important templates need subst. On en {{prod}} and {{afd}} both need to be subst.
Comment 2 Chris McKenna 2013-08-30 21:17:09 UTC
This is effectively a subset of bug 49833 which seems to be part tracking, part bugs, part enhancement requests
Comment 3 James Forrester 2013-08-30 21:59:16 UTC
(In reply to comment #2)
> This is effectively a subset of bug 49833 which seems to be part tracking,
> part bugs, part enhancement requests

… part mess. :-(

Not sure why you turned it into a tracker after Krinkle mis-named it; I don't think it helps at all. I might undo that.
Comment 4 Chris McKenna 2013-08-31 00:20:56 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This is effectively a subset of bug 49833 which seems to be part tracking,
> > part bugs, part enhancement requests
> 
> … part mess. :-(
> 
> Not sure why you turned it into a tracker after Krinkle mis-named it; I don't
> think it helps at all. I might undo that.

Sorry, that would be my misunderstanding of Krinke's intentions and then trying to be helpful. :(
Comment 5 James Forrester 2013-09-03 16:56:46 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > This is effectively a subset of bug 49833 which seems to be part tracking,
> > > part bugs, part enhancement requests
> > 
> > … part mess. :-(
> > 
> > Not sure why you turned it into a tracker after Krinkle mis-named it; I don't
> > think it helps at all. I might undo that.
> 
> Sorry, that would be my misunderstanding of Krinke's intentions and then
> trying to be helpful. :(

Not your fault at all. :-) All fixed now, anyway.
Comment 6 James Forrester 2014-01-17 04:00:33 UTC
*** Bug 59182 has been marked as a duplicate of this bug. ***
Comment 7 Sunpriat 2014-07-30 10:34:46 UTC
Not only in insert dialogue. Template text should be inserted and rerendered page immediately.
for example:
-[[:en:Template:Accent]]
-[[:ru:Шаблон:Ударение]]

i do
-te|xt
-insert/template - subst:Ударение

i see in VE
-te{{subst:Ударение}}xt
(after saving the page text in read mode looks normally: téxt)


I want to see in VE
-téxt

if possible it should be a new method "template (with parameters) to text ()" with no return to template
for example:
-"insert/subst" or "insert/template" and in dialogue check-box for "subst"
-open TemplateData for "template" (now for "subst:template" TemplateData not shown)
-press Add template
-template is executed and generate new text which is inserted same as ctrl+v
-the new text (or all page) rendered (may consist any other template inside it)
Comment 8 WhatamIdoing 2014-08-09 23:22:20 UTC
Subst:ing isn't working (again?  still?).  

If you follow the (soon-to-be-blanked) directions in the user guide, you get the text typed in, with no display, no expansion, and no processing.  The result is that the exact wikitext of your template displays on the page, exactly as if it had been nowiki'd, but without the nowiki tags.

https://en.wikipedia.org/w/index.php?diff=620566012&oldid=618729009
Comment 9 Gerrit Notification Bot 2014-08-13 21:01:27 UTC
Change 153895 had a related patch set uploaded by Alex Monk:
Add a subst property to template data which adds "subst:" to the target

https://gerrit.wikimedia.org/r/153895
Comment 10 Gerrit Notification Bot 2014-08-13 21:07:41 UTC
Change 153934 had a related patch set uploaded by Alex Monk:
Provide a checkbox on template page of transclusion dialog to substitute when saving

https://gerrit.wikimedia.org/r/153934
Comment 11 Gerrit Notification Bot 2014-10-07 22:42:15 UTC
Change 153895 abandoned by Alex Monk:
Add a subst property to template data which adds "subst:" to the target

Reason:
I'm not actually planning to work on this commit. The associated VE commit will continue to depend on this however.

https://gerrit.wikimedia.org/r/153895

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


Navigation
Links