VisualEditor: Add support for editing templates' parameters as DOM elements ("visually"), including supporting nested templates
Open, NormalPublic

Tokens
"Love" token, awarded by RodrigoTavares."Love" token, awarded by Ltrlg."Goat" token, awarded by Dvorapa."Love" token, awarded by Gryllida."Orange Medal" token, awarded by Krinkle.
Assigned To
None
Authored By
Ironholds, Jun 28 2013

Description

Many templates serve merely as wrapper around free-form wikitext content. TemplateData specifies the parameter type "content" for this purpose.

This task tracks the implementation in VisualEditor to provide an edit surface for editing the values of these parameter. Similar to how we already support rich editing of the content inside References.

Use cases:

  • Wrap-templates. Such as message boxes, and the parameter-consuming variants of the "something-start"/"something-end" templates.
  • Nested infoboxes.
  • Simple infobox fields that support text but allow/encourage use of inline templates for formatting. Currently these expose raw wikitext to end-users.

A lot of infoboxes et al - the one on https://en.wikipedia.org/wiki/Fulgencio_(Modern_Family) comes to mind - have infoboxes /within/ the infoboxes that need editing. I'm not sure what the answer is here - it feels wrong, somehow, to offer an infinitely deep template inspector inside a template inspector inside...etc, but I can't think of another solution short of manually going around making the template namespace make sense or accepting that users will always have to learn markup, just not immediately.

Details

Reference
bz50355

Related Objects

bzimport raised the priority of this task from to High.
bzimport set Reference to bz50355.
  • This bug has been marked as a duplicate of bug 50182 ***

Re-wording; this isn't a duplicate of bug 50182, which is about non-dialog editing of templates.

Jdforrester-WMF lowered the priority of this task from High to Normal.Jan 15 2015, 12:35 AM
Jdforrester-WMF set Security to None.
gpaumier removed a subscriber: gpaumier.Feb 10 2015, 5:13 PM
Ltrlg added a subscriber: Ltrlg.Jun 8 2015, 11:09 PM

Current thinking about switching modes:

Basic appearance
Editing with support
Switched to 'wikitext' mode

@Ironholds the page has become a disambig since you filed. Looking at the history were you linking to https://en.wikipedia.org/wiki/Fulgencio_(Modern_Family) originally?

I have literally no idea, it was in 2014.

@Ironholds the page has become a disambig since you filed. Looking at the history were you linking to https://en.wikipedia.org/wiki/Fulgencio_(Modern_Family) originally?

I fixed the link.

Comments from discussion about this:

  • Wikitext button should look depressed when used. MW theme needs this to be improved mode generally. Need to avoid mode error
  • Important to remember that the types aren’t for validation, just hints – don’t frustrate the user if they want to over-ride, make it easy to replace.
  • Styling of wikitext mode needs improving.
  • Need to separate “allowing to use VE” from “helping with type hinting”
  • Flow has this issue too (switching mode) – share feature design?
  • Edge case (partial wikitext) for not being able to use VE isn’t very common, we believe?
  • One switch for the whole dialog?
    • Issues?
    • In Advanced mode? (alongside multi-template transclusion editing)
  • Possibly get rid of the (i) too, to simplify the clutter around boxes?

Wikitext button should look depressed when used. MW theme needs this to be improved mode generally. Need to avoid mode error

Would a ButtonSelectWidget make sense here?

Krinkle removed a subscriber: Krinkle.Mar 8 2016, 10:02 PM
Jdforrester-WMF renamed this task from VisualEditor: Add support for editing templates' parameters as DOM elements, including supporting nested templates to VisualEditor: Add support for editing templates' parameters as DOM elements ("visually"), including supporting nested templates.Sep 13 2017, 6:27 PM
Waggers added a subscriber: Waggers.Mar 6 2018, 2:03 PM
Krinkle updated the task description. (Show Details)Mar 12 2018, 3:10 AM
Krinkle added a subscriber: Ironholds.
Gryllida added a subscriber: Gryllida.
Dvorapa added a comment.EditedMar 20 2018, 8:33 PM

There is no facepalm token, so consider this little goat as the facepalm token, because still we literally force VE users to use wikicode for nested templates.

Ltrlg awarded a token.Mar 21 2018, 9:04 AM

Change 451020 had a related patch set uploaded (by Chris Barnard; owner: Chris Barnard):
[mediawiki/extensions/VisualEditor@master] Working on Task #T52355 - ve.ui.MWTemplateDialog and ve.ui.MWParameterPage changed.

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