Page MenuHomePhabricator

Is this a bug? Multilayer templates without all parameters specified
Closed, InvalidPublic

Description

Author: gangleri

Description:
Dear friends,

With the examples at
http://test.wikipedia.org/wiki/User_talk:Gangleri/tests#Signatures_.
28using_templates.29 it is possible to generate three versions of
signatures in 10 Wikipedia projects.

However when you invoke the main template [[test:Template:sign]]
three "|" MUST be used. Please look at the "unexpected examples" at
the bottom of the section. Thanks!

Regards Reinhardt


Version: 1.4.x
Severity: normal
OS: Windows XP
Platform: PC
URL: http://test.wikipedia.org/wiki/User_talk:Gangleri/tests#Signatures_.28using_templates.29

Details

Reference
bz870

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 7:03 PM
bzimport set Reference to bz870.
bzimport added a subscriber: Unknown Object (MLST).

rowan.collins wrote:

Right, having ploughed through yet another of your complex sets of examples, I
can see no bug here; or rather nothing very surprising: [[test:Template:Sign]]
uses three variables, called '1', '2', and '3', and you are only supplying one
unnamed parameter, which is assigned the name '1'. The behaviour for missing
parameters, in the version running on [[test:]], is simply to output the text as
though it wasn't valid syntax (as I explained at bug 364#c2) - so "{{{2}}}" is
just output as "{{{2}}}". So your template is behaving as expected.

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:14 AM
epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:20 AM
epriestley added a commit: Unknown Object (Diffusion Commit).
epriestley added a commit: Unknown Object (Diffusion Commit).