Topic on VisualEditor/Feedback

Excluding the named parameters

1
Quiddity (WMF) (talkcontribs)

@Juandev Hi, you asked a question in IRC -tech, and then went offline whilst I was researching and typing a reply! I'll re-paste here, and give a partial answer. Possibly someone else can correct or confirm...

<Juandev>  is there a way VE does not insert property and = of a template? just insert variable?
<Juandev>  maybe it could be influenced by td?
<Juandev>  example: https://cs.wikipedia.org/w/index.php?title=Seznam_chr%C3%A1n%C4%9Bn%C3%BDch_%C3%BAzem%C3%AD_v_okrese_Plze%C5%88-sever&curid=617708&diff=13076070&oldid=13075248
<Juandev>  instead of "Kategorie = Bažantnice (nature reserve)" we need just  "Bažantnice (nature reserve)" to be inserted
<Juandev>  now I am not sure if that is a problem of a template itself that it dont work properly with VE or we can fix it via TD?

First, why do you not want to insert the name of the parameter, in some cases?

I would guess: You want to reduce the quantity of wikitext in general, and also to make diffs even smaller. But possibly there are other reasons?

Partial answer (Note: the documentation about "anonymous/numbered/named-parameters" is at Help:Templates):

  1. I don't think this is possible.
  2. Using anonymous-parameters, instead of named-parameters, means that if an optional value is missing, we have to include the double-pipe "||". This is confusing to look at, and can more easily lead to breakages.
  3. Using anonymous-parameters, also requires that all the values must appear in an exact order.
  4. The named parameters can help newcomers to instantly understand what the wikitext means, instead of having to deduce it.

So, I would suggest that keeping the parameters' names, is generally more helpful to the wide-variety of people who might look at the wikitext, than removing them would be. Hope that helps.

Reply to "Excluding the named parameters"