Last modified: 2013-10-21 07:01:06 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 T56094, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54094 - Transclusion dialog: "unknown parameter" is confusing if TemplateData doesnt exist
Transclusion dialog: "unknown parameter" is confusing if TemplateData doesnt ...
Status: RESOLVED DUPLICATE of bug 50735
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Rob Moen
:
Depends on:
Blocks: ve-templatesupport
  Show dependency treegraph
 
Reported: 2013-09-13 09:26 UTC by Juan de Vojníkov
Modified: 2013-10-21 07:01 UTC (History)
5 users (show)

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


Attachments

Description Juan de Vojníkov 2013-09-13 09:26:39 UTC
If adding w:cs:template:commonscat, it might be confusing for newbies even for older wikipadians to set parameters. As in this case parameters or numbers, but VE sais that such parameters are unknown.
Comment 1 Andre Klapper 2013-09-16 09:23:39 UTC
The steps to reproduce are unclear to me. Also see https://www.mediawiki.org/wiki/How_to_report_a_bug
Comment 2 John Mark Vandenberg 2013-10-01 08:30:08 UTC
If I can paraphrase Juan's bug report, ..

In the transclusion dialog, template 'add parameter' screen, for a template without templatedata (such as cs:wp template commonscat),...

Dont say 'Unknown parameter'.

If there is no templatedata, VE doesnt know about any parameters, so it should not offer warnings that are essentially bogus when it is given a parameter name.  The user cant use this 'Unknown parameter' information, so it is scary.  Further to that, VE _does_ know that numeric parameters names (like '1', '2', etc) are valid parameter name, so warning 'Unknown parameter' is false in that case.

Juan, if you want to add templatedata to that template, see https://en.wikipedia.org/wiki/Wikipedia:VisualEditor/TemplateData  and
https://en.wikipedia.org/w/index.php?title=Template:Commons_category/doc&action=edit

The VE UI for templates without templatedata needs a usability overhaul. Some simple suggestions to improve usability while keeping the current UI structure:
1. say 'This template does not have VE compatible parameter data', and link to the relevant template:blah page
2. dont say 'No unused parameters' because that message is also misleading
3. Instead of 'Unknown parameter' for '1', say 'parameter number 1' or 'first parameter'
4. pre-populate the template form with a parameter '1', place the user in the parameter value field, but allow the user to rename the parameter name in the left hand list.

A more difficult suggestion is to rethink the way the numbered parameter UI works.  Putting numbers in a UI, without any explanation, is not intuitive or discoverable.  How does a newbie know to enter '1'?  The template documentation pages usually say to put in {{foo|blah}} ; they dont say {{foo|1=blah}} so the typical user doesnt know about '1'.
Comment 3 James Forrester 2013-10-09 18:10:30 UTC
Merging with bug 50735.

*** This bug has been marked as a duplicate of bug 50735 ***

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


Navigation
Links