https://bugzilla.wikimedia.org/show_bug.cgi?id=51670

Chris McKenna <cmcke...@sucs.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Visual Editor: template     |Visual Editor: transculsion
                   |parameter search fails on   |editor searches on
                   |multi-word parameter names  |parameter name not
                   |                            |parameter label

--- Comment #1 from Chris McKenna <cmcke...@sucs.org> ---
A user on Wikipedia has determined that the cause is that the data the search
function searches on is the internal parameter name, which is invisible to the
user, not the visible label. This is very wrong. 

"So VE users have learned that the only way, in the Transclusion/Template
dialog, to add a parameter is to type the parameter name, then press Enter. But
that just changed - now you click the parameter name to select it. That's more
obvious - but if, for some reason, having learned the old way, you continue to
use it - that's trouble.

Example: Cite web. Let's suppose I want to add the parameter "Month of
publication". I type that, hit Enter, and there it is, on the left. Except, not
really. VE thinks this is a parameter not on its list - you can tell that
because there is no description just above the input box where you enter the
value of that parameter. (Compare to entering a value for the parameter "Source
title").

Under the hood, here's what happens: VE knows that "Source title" is the label
(via TemplateData) for the parameter "title". (Similarly, "URL" is the label
for the parameter "url" - and yes, parameters are case sensitive.) But VE
doesn't know that "Month of publication" (typed) is the label for the parameter
"month". So the template code that VE actually stores is this:

    {{Cite web|url = http://example.com|title = Whatever the title is|Month of
publication = June}}

That doesn't cause a visible problem on the VE edit page. However, in this
case, after saving the page, what is displayed to readers is "Unknown parameter
|Month of publication= ignored (help) "

Recommendation: If a person types the name of a parameter and presses Enter, VE
should check the typed name against the list of labels in TemplateData, for
that template, and if there is a match, handle the new parameter just as if the
person had clicked the matching parameter rather than typed it."

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to