Content deleted Content added
→Size in number or in numberpx: new section |
→gay guy: Not constructive |
||
(20 intermediate revisions by 11 users not shown) | |||
Line 19:
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)
{{od|2}}
===More general===
{{U|Mr. Stradivarius}} Please allow me. This is not about this specific module.Read and use as you think good.<br>In <nowiki>[[:File]]</nowiki> usage I encounter logic that says: "thumb does not show a border, but it will not show the caption (unless alt= is set); then do not set width."<br>
This is pre-wiki logic (logic it is), and I will not spend time on it. For an article editor, this is deadly. For a template builder (like me), it is deadly too. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 21:21, 6 June 2014 (UTC)
:What do you mean? for <code><nowiki>[[:File]]</nowiki></code>, the whole link is escaped, so thumb, caption and width have no meaning. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 00:19, 7 June 2014 (UTC)
::(into a subsection topic). I meant to give an example if interacting parameter settings, with complicated logic. My text example was made up. For real (from the documentation): "'''frameless''', like thumbnail, respect user preferences for image width, but without border and no right float" (+ a caption effect; DP). That is not parameters set independently. A more modern user interface could provide a editor-oriented set of independent parameters. I see no obvious logic to disappear the caption (I intentionally entered as a caption) because of a border setting. -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 13:38, 9 June 2014 (UTC)
== class ==
What does the ''class'' add, exactly? Do I understand that is/are supposed to be class names? Any WP: link? -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]])
:See [[mw:Help:Images#Syntax]]. I've updated the module documentation. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 00:27, 7 June 2014 (UTC)
|