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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7744, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Low minor with 4 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

Description Rotem Liss 2006-04-28 12:21:21 UTC
For example, the following code:
{{Archive|info=
Hello, [[http://en.wikipedia.org/wiki/Welcome 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| [http://example.com }}
{{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.


Navigation
Links