Module talk:InfoboxImage: Difference between revisions
m Undid revision 837899291 by Max.Herrera3 (talk) No request made |
→Doc Problem and Placing images side by side: new section |
||
| Line 42: | Line 42: | ||
::: | ::: | ||
:::: {{U|Tom.Reding}} the problem was upstream in the parent template. I have added a {{para|images}} to the parent template to allow the images to be preformatted. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:43, 11 March 2018 (UTC) | :::: {{U|Tom.Reding}} the problem was upstream in the parent template. I have added a {{para|images}} to the parent template to allow the images to be preformatted. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:43, 11 March 2018 (UTC) | ||
== Doc Problem and Placing images side by side == | |||
According to the category Category:Pages using deprecated image syntax, it was told that the syntax <code>|image=[[File:Example.jpg]]</code> should not be used and it needs to be replaced by <code>Example.jpg</code>. If that is right, then shouldn't it be corrected in the document page of this module? | |||
Secondly, I have recently asked following question in the talk page Category talk:Pages using deprecated image syntax, but I couldn't find a complete correct answer. So I am asking it here. The question is, how can I place 2 images side by side without being separated according to the new format of including files ie. according to the latest version of this module? For example, please consider the images present in the article [[3rd Pennsylvania Cavalry]]. [[User:Adithyak1997|Adithyak1997]] ([[User talk:Adithyak1997|talk]]) 14:43, 30 August 2018 (UTC) | |||
Revision as of 14:43, 30 August 2018
Template:Talk header User:MiszaBot/config Template:Archives
location=right is possible?
I want to position an image right in a data(n) field. With regular WP:EIS notation this is possible (in body text). Is there a reason this is not possible (or: not advised) in an infobox? -DePiep (talk) 19:18, 24 October 2017 (UTC)
alt=?
Wanted to ask for some feedback before I made an edit that broke a lot of crap: but shouldn't alt text just be appended to the image link without using alt=? That's not valid best I remember. Fixing this would fix potentially many thousands of the "bogus file operation" lint categories. FACE WITH TEARS OF JOY [u+1F602] 03:19, 21 December 2017 (UTC)
- Maybe you could make an example edit to an article, or to this module's sandbox, to show us what you mean. – Jonesey95 (talk) 04:18, 21 December 2017 (UTC)
I'm looking at the following snippet in this module: <syntaxhighlight lang="lua">
if alt ~= "" and alt ~= nil then
result = result .. "|alt=" .. alt;
end
</syntaxhighlight> This seems both incorrect (File links shouldn't have alt= parameters), as well as redundant, considering we handle alt/title further down. FACE WITH TEARS OF JOY [u+1F602] 23:08, 18 January 2018 (UTC)
- The alt text is meant to be a description of the image for visually impaired readers and is not a redundant feature. -- WOSlinker (talk) 17:55, 19 January 2018 (UTC)
Is there a way to right-justify?
~ Tom.Reding (talk ⋅dgaf) 21:05, 10 March 2018 (UTC)
Just noticed the |title=right hack above. Thanks Template:U! ~ Tom.Reding (talk ⋅dgaf) 21:08, 10 March 2018 (UTC)
- I see you've used it in {{Year in Taiwan/sandbox}}. I'm not sure there much benefit in using InfoboxImage when all the parameters are fixed values. InfoboxImage is there to tidy up the values that are passed through. -- WOSlinker (talk) 21:21, 10 March 2018 (UTC)
-
- Template:U, is there another/a better way of removing them from Category:Pages using deprecated image syntax? ~ Tom.Reding (talk ⋅dgaf) 06:07, 11 March 2018 (UTC)
-
- That category is only added by Module:InfoboxImage when the image param starts with [[ -- WOSlinker (talk) 08:28, 11 March 2018 (UTC)
-
- Template:U the problem was upstream in the parent template. I have added a
|images=to the parent template to allow the images to be preformatted. Frietjes (talk) 13:43, 11 March 2018 (UTC)
- Template:U the problem was upstream in the parent template. I have added a
Doc Problem and Placing images side by side
According to the category Category:Pages using deprecated image syntax, it was told that the syntax |image=File:Example.jpg should not be used and it needs to be replaced by Example.jpg. If that is right, then shouldn't it be corrected in the document page of this module?
Secondly, I have recently asked following question in the talk page Category talk:Pages using deprecated image syntax, but I couldn't find a complete correct answer. So I am asking it here. The question is, how can I place 2 images side by side without being separated according to the new format of including files ie. according to the latest version of this module? For example, please consider the images present in the article 3rd Pennsylvania Cavalry. Adithyak1997 (talk) 14:43, 30 August 2018 (UTC)