Last modified: 2014-11-18 18:07:29 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 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