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

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Normal                      |Low
           Severity|normal                      |major

--- Comment #4 from Krinkle <[email protected]> ---
The foo1, foo2, foo3 etc. model exists in many templates, however in most cases
the limit is quite low (when converted to Lua a user might have dropped the
limit, no sure that is a good pattern). Only in cases where the value is for
e.g. a table row do they have a high limit (up to 500 seems common).

e.g. 

{{Something
|row1=..
|row2=..
|row3=..
|=..

such as {{[email protected]
|p1=..
|p2=..
|p3=..
|..

However both for VisualEditor, TemplateData and any other modern program or
programming language it is very visible that such dynamically named parameters
are an unwanted pattern that should not be encouraged. It is hard to work with
and only has downsides over alternatives (e.g. hard to re-order, requires hacks
to implement in wikitext and lua, hard to document, hard to use).

Especially now that we have Lua, specifying a parameter as taking a list seems
more sensible (e.g. comma separated, line-break separated, whatever). Even if a
template isn't converted to Lua yet, it could make use of a generic Lua module
to do the string split and iteration.

Also, in the interest of not implementing too soon and get stuck in a corner,
I'd like to wait for VisualEditor to catch up with the features we've already
recently added to TemplateData and see how those work out.

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

Reply via email to