Content deleted Content added
Line 20:
I understand that the size is to be entered as a number for number-of-px (say "250"). My (feature) suggestion is to allow & accept "250px" too. I remember always having to go to the documentation for a given template, to check whether the unit should be present or absent. To compare, [[module:InfoboxImage]] requires "250px" not "250" (here I sigh). Seen from the editors point, it would be an obvious feature. (What also could be in play, is when this object replaces existing wikicode templates -- they can have the 'wrong' format. Must say, I do not oversee this point). -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 18:13, 3 June 2014 (UTC)
:That's a good idea, and I've added the code to the sandbox. I also added a check to make sure that the number given is a positive integer. I've also been toying the idea of adding a <code>size</code> method, where you can specify any of width, height, upright and upright ratio, and the method works out which ones you entered. Do you think that would be useful, or is it redundant to the width, height and upright methods already included? — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 06:19, 4 June 2014 (UTC)
::Thx. I have too little experience with the issue you mention. When I encounter this need, I always make a little research & documentation check (starting at [[WP:EIS]]). That existing parameter interacting logic is a puzzle (also with border & format & caption interactions).
::If you mean to reproduce file linking as it already does (reading that "x250px" is a height setting &tc), that sounds like a covering of existing parameter option, so that could be good from programmers POV. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 13:42, 4 June 2014 (UTC)
|