[Wikitech-l] Expected behavior of templates when a parameter appears multiple time

2014-10-21 Thread Strainu
Assume we have the following call of a template: {{template |key1=value1 |key2=value2 |key1=value3 }} What is the expected value of {{{key1}}} when parsing the template? From the docs I've read, I would expect it to be value3. If so, does value1 appear anywhere? Thanks, Strainu

Re: [Wikitech-l] Expected behavior of templates when a parameter appears multiple time

2014-10-21 Thread Brad Jorsch (Anomie)
On Tue, Oct 21, 2014 at 4:01 AM, Strainu strain...@gmail.com wrote: What is the expected value of {{{key1}}} when parsing the template? From the docs I've read, I would expect it to be value3. That does seem to be the case. If so, does value1 appear anywhere? No. -- Brad Jorsch

Re: [Wikitech-l] Expected behavior of templates when a parameter appears multiple time

2014-10-21 Thread Gergo Tisza
On Tue, Oct 21, 2014 at 3:48 PM, Brad Jorsch (Anomie) bjor...@wikimedia.org wrote: On Tue, Oct 21, 2014 at 4:01 AM, Strainu strain...@gmail.com wrote: What is the expected value of {{{key1}}} when parsing the template? From the docs I've read, I would expect it to be value3. That does