Module talk:InfoboxImage
Error handling
I've listed some common infobox errors at User:John of Reading/Image errors. Anyone interested in this LUA module might like to take a look. -- John of Reading (talk) 10:02, 26 March 2013 (UTC)
- I've done some work on this. Have done the following:
- images beginning with http: (either linked or unlinked) are now suppressed.
- gallery tags now pass through without further processing
- thumbnail images now are added to Category:Pages using infoboxes with thumbnail images (for article namespace only)
- Any other suggestions would be welcome. There is also the task to roll it out to more infoboxes since I only did it to most of those that were using the {{Hide if placeholder image}} template. -- WOSlinker (talk) 21:55, 26 March 2013 (UTC)
- This looks good! I've updated the descriptions at User:John of Reading/Image errors. -- John of Reading (talk) 22:15, 26 March 2013 (UTC)
Suggestion: maximum size
I have a suggestion: some infoboxes (e.g., Infobox mountain) have a maximum size parameter for their image. Can someone add this feature to this module? I could try to figure out Lua syntax, but it may be faster for someone who knows what they are doing. —hike395 (talk) 12:05, 29 March 2013 (UTC)
- Yes, will have a look. Was already thinking about adding it. -- WOSlinker (talk) 13:12, 29 March 2013 (UTC)
Improve description
The description say "Inputs: image - Can either be a bare filename or a fully formatted image link" but the examples show three versions that work: fully formatted, "File:xxxxx.xxx" and "xxxx.xxx" Is there a simple way to expand the description to include the third case? Rmhermen (talk) 17:27, 29 March 2013 (UTC)
- I've updated it a bit. There also the doc page at Module:InfoboxImage/doc which could do with some further expansion. Contributions are very welcome. -- WOSlinker (talk) 18:20, 29 March 2013 (UTC)
http/https
The tests for image names beginning "http:" should also catch "https:", shouldn't they? -- John of Reading (talk) 16:50, 4 April 2013 (UTC)
Code optimization
image = mw.ustring.sub(image,6,mw.ustring.len(image)); can be shorten to image = mw.ustring.sub(image,6);. The third argument for ustring.sub can be omitted. mw:Extension:Scribunto/Lua reference manual#string.sub -- ChongDae (talk) 03:12, 8 April 2013 (UTC)
Edit request on 12 April 2013
Template:Edit protected I work for John Tesh at the Tesh Media Group. Someone has changed his photo without his consent and I would like to have the photo changed back to an approved image. I could upload an image or you could use this one https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcReDJWEHKkR68pItE7Jcvi6Reh0h2mGjBSZy0IgSqR9U9iOUa_0. If you have a concern about copyright, I'd be glad to upload an image that is the same as the one I have linked to here.
Please let me know what needs to be done to get the image changed. Truthinwikiland (talk) 14:51, 12 April 2013 (UTC) Mark Edwards, Senior Vice President, Content Development TeshMedia Group marke@teshmedia.com
Truthinwikiland (talk) 14:51, 12 April 2013 (UTC)