Template talk:Tall image

Optional?
The template documentation currently says that "The image width option is optional" and that "The box height option is optional". However, if one leaves them out an error message displays and the image displays quite large on the left of the page without a caption. If one leaves them blank there is no error message but the image displays even larger to the extreme right. As such it would seem that the "options" are not optional. Hyacinth (talk) 23:38, 4 September 2012 (UTC)

Left blank
— Preceding unsigned comment added by Hyacinth (talk • contribs) 23:38, 4 September 2012 (UTC)

Candido, Andrybak, TheDJ: It's still messed up almost 10 years after User:Hyacinth's comment. The example under "Left out" generates this markup:  This is all messed up. —Anomalocaris (talk) 06:34, 29 March 2022 (UTC)
 * "Use the scrollbar to see the full image" doesn't belong
 * it would be better if the caption parameter were last.
 * etc.


 * when leaving out positional optional parameters, you need to specify the position of later positional parameters explicitly:


 * I hope this helps. —⁠andrybak (talk) 10:52, 29 March 2022 (UTC)
 * To illustrate the difference between "leaving out" and "blank" parameters, an example with Template:3x, which repeats its first parameter three times:
 * Leave out:
 * aaaaaa
 * Blank:
 * bbbbbb
 * —⁠andrybak (talk) —⁠andrybak (talk) 14:07, 29 March 2022 (UTC)
 * ⁠andrybak: OK. You're saying that the errors in Hyacinth's examples are because of the missing . But your example,
 * produces a missing end tag and stripped tag for . So, either there is some additional change required in the markup, or the template doesn't work as intended. And it would be great if the template failed more gracefully, so that Hyacinth's examples generate clean error messages instead of lint errors. —Anomalocaris (talk) 20:38, 29 March 2022 (UTC)
 * Anomalocaris, I'm not sure what you mean by missing end tag and stripped tag for. I've tried checking template transclusion
 * on Special:ExpandTemplates and it seems to produce proper wikitext with balanced HTML tags. Empty  inside of attribute "class" of the outermost &lt;div&gt; is confusing, but shouldn't cause any issues. —⁠andrybak (talk) 20:54, 29 March 2022 (UTC)
 * on Special:ExpandTemplates and it seems to produce proper wikitext with balanced HTML tags. Empty  inside of attribute "class" of the outermost &lt;div&gt; is confusing, but shouldn't cause any issues. —⁠andrybak (talk) 20:54, 29 March 2022 (UTC)
 * on Special:ExpandTemplates and it seems to produce proper wikitext with balanced HTML tags. Empty  inside of attribute "class" of the outermost &lt;div&gt; is confusing, but shouldn't cause any issues. —⁠andrybak (talk) 20:54, 29 March 2022 (UTC)

andrybak: You are correct that the markup line in question does not produce lint errors, but it does produce a missing end tag and stripped tag for when preceded by a colon, which is what I saw here and that explains my previous message. Now let's do Hyacinth's Left out example, but inserting the missing :

With, there are no lint errors and the display is reasonable. What's left to do is to improve the template to generate clean error messages in case of bollixed parameters. —Anomalocaris (talk) 23:18, 29 March 2022 (UTC)