Last modified: 2014-11-18 18:07:29 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 T10947, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8947 - URL as an unnamed template parameter
URL as an unnamed template parameter
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-11 12:30 UTC by Tisza Gergő
Modified: 2014-11-18 18:07 UTC (History)
1 user (show)

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


Attachments

Description Tisza Gergő 2007-02-11 12:30:34 UTC
With the current template syntax, it is impossible to create simple templates
like {{template|url}} beacuse many urls contain the = character causing the
template engine to interpret it as a named parameter. While this can be
circumvented with something like {{template|url=url}} or {{template|1=url}},
this makes using the template more difficult, and users regularly get it wrong.
A simple solution would be extending the template syntax with something like
{{{#1}}} which would get the first parameter, no matter whether it is named or
unnamed, and it would get a named parameter in the "<name>=<value>" form.
Comment 1 Brion Vibber 2007-02-11 18:14:02 UTC
If you got the first parameter, it would be the part of the URL after the = ...
probably not what you wanted.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-02-11 18:16:37 UTC
Note that: 

> it would get a named parameter in the "<name>=<value>" form.

I.e., you would get the whole thing.

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


Navigation
Links