Last modified: 2012-07-25 00:37:55 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 T28870, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26870 - add width/height param to {{filepath:}}
add width/height param to {{filepath:}}
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: 1.20.0 release
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-22 19:07 UTC by Umherirrender
Modified: 2012-07-25 00:37 UTC (History)
2 users (show)

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


Attachments

Description Umherirrender 2011-01-22 19:07:11 UTC
In addition to r80381: Please add width/height param also to {{filepath:}}.

Thanks.
Comment 1 Krinkle 2011-01-23 13:18:36 UTC
So far we haven't had any named paremeters to a (core) magic word / parser function. So I'm holding back with any "width=" or "height=".

Implemented width in r80813.

One can now use any of the following:

{{fullurl:Example.svg}}
{{fullurl:Example.svg|nowiki}}
{{fullurl:Example.svg|nowiki|300}}
{{fullurl:Example.svg|300}}
{{fullurl:Example.svg|300|nowiki}}
Comment 2 Krinkle 2011-01-23 13:26:06 UTC
(In reply to comment #1) 
> One can now use any of the following:
> (...)

I obviously meant to say:

*{{filepath:Example.svg}}
*{{filepath:Example.svg|nowiki}}
*{{filepath:Example.svg|nowiki|300}}
*{{filepath:Example.svg|300}}
*{{filepath:Example.svg|300|nowiki}}
Comment 3 Umherirrender 2011-02-14 20:08:28 UTC
The idea of Bawolff at r80813#c13370 is good.

Maybe support the full syntax for set a size to an image ('/^([0-9]*)x([0-9]*)\s*(?:px)?\s*$/' and '/^[0-9]*\s*(?:px)?\s*$/', from Parser.php)
Comment 4 Roan Kattouw 2012-07-24 22:14:52 UTC
(In reply to comment #3)
> The idea of Bawolff at r80813#c13370 is good.
> 
> Maybe support the full syntax for set a size to an image
> ('/^([0-9]*)x([0-9]*)\s*(?:px)?\s*$/' and '/^[0-9]*\s*(?:px)?\s*$/', from
> Parser.php)
This was done in Gerrit change #11733

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


Navigation
Links