Last modified: 2011-04-14 15:11:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5744 - When a link in a template parameter is not properly opened and closed, the template does not work
When a link in a template parameter is not properly opened and closed, the te...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Low minor with 4 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-04-28 12:21 UTC by Rotem Liss
Modified: 2011-04-14 15:11 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Rotem Liss 2006-04-28 12:21:21 UTC
For example, the following code:
Hello, [[ Welcome] to Wikipedia!
outputs the following text:
{{Archive|info= Hello, [Welcome to Wikipedia! }}
and "welcome" is linked to English Wikipedia. However, the template is not used
when a link is not properly opened and closed.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-06-26 22:15:44 UTC
To clarify when the problem occurs, the following all work:

{{template| ]] }}
{{template| [ }}
{{template| [ }}
{{template| ] }}

{{template| [[ }}, however, does not.  Neither does {{template| [[[[]] }}, or as
far as I can see anything whatsoever that results in double opening brackets
that aren't correctly closed within the parameter itself.  This is an issue for,
e.g., enwiki's [[Template:Otheruses4]], where it restricts the possible output:
"For X, see [[Y]] and [[Z]]" is impossible to output because "Y]] and [[Z" is an
invalid parameter.
Comment 2 P.Copp 2009-11-26 03:19:42 UTC
A possible workaround - if someone really wants to give a double bracket as parameter value - is to use {{template| [<noinclude />[ }}.

However, this is ugly and maybe the preprocessing could be improved, so that templates are given precedence over links.

Note You need to log in before you can comment on or make changes to this bug.