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
On Tue, Oct 21, 2014 at 4:01 AM, Strainu strainu10@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.
On Tue, Oct 21, 2014 at 3:48 PM, Brad Jorsch (Anomie) <bjorsch@wikimedia.org
wrote:
On Tue, Oct 21, 2014 at 4:01 AM, Strainu strainu10@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.
MediaWiki history trivia: this is how {{if}} and similar templates used to be implemented before parser functions existed.
wikitech-l@lists.wikimedia.org