Template talk:Multiple image

From the Super Mario Wiki, the Mario encyclopedia
Revision as of 22:33, July 9, 2016 by Wildgoosespeeder (talk | contribs) (→‎Update to allow specifying height or width+height?: Rough idea formed. Now I am done until I can get some feedback how to implement this change, if at all.)
Jump to navigationJump to search

Del

{{multiframe}} obsoleted it. I think it's too complicated and very much like Wp's one.SWFlashPersonal file

That's cuz the mariowiki is powered by the mediawiki, therefore some functions that work in wikipedia may work here (sure, NOT all). I was attempting to do this but looks like you did t early :P ¢oincollctor rsitem209.png

Update to allow specifying height or width+height?

Block Super Mario World.png This talk page or section has a conflict or question that needs to be answered. Please try to help and resolve the issue by leaving a comment.

mediawiki.org:Help:Images#Rendering a single image says there are four ways to specify a size for an image. Should the code be updated to allow for this? SNES has this issue. It would make the Super Famicom section look much better. Does this mean we have to update {{multiframe}} as well? --Wildgoosespeeder (talk) (Stats - Contribs) 20:43, 9 July 2016 (EDT)

In general, this is a slightly-crippled version of wikipedia:Template:Multiple image and could use an update to match that. I was trying to do a two-row arrangement a while back, and had to use {{multiframe}} instead, which generally produces irregular results.
I don't see why {{multiframe}} would need to be changed if this was updated. The two work entirely differently. - Reboot (talk) 21:51, 9 July 2016 (EDT)
Oh! The Wikipedia version has a height parameter! That's nice and what I was looking for. Now where is the source code because it gives me {{#invoke:Multiple image|render}}. --Wildgoosespeeder (talk) (Stats - Contribs) 22:15, 9 July 2016 (EDT)
Look at the previous version. The current Wikipedia version uses Scribunto, which is a completely different sort of template based on Lua. - Reboot (talk) 22:28, 9 July 2016 (EDT)
Looking at our source code, if we use:
[[File:{{{image1}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }}{{#if: {{{height|}}} | x{{{height}}} | x{{{height1}}} }}px|{{{alt1|{{{footer|}}}}}}]]
That should work. We just need to apply this to images 1-5, since this is what our template supports of 5 images max. --Wildgoosespeeder (talk) (Stats - Contribs) 22:34, 9 July 2016 (EDT)
Now that I look closer at the source code, to implement my simple changes, the width parameters are tied to some CSS code of the overall look of the template, such as spacing between images and the container of those images. The template would need to see a redesign that doesn't depend on the width or height parameter. I don't have any clue how to get that to work without affecting how it looks. --Wildgoosespeeder (talk) (Stats - Contribs) 22:52, 9 July 2016 (EDT)
Now I have a rough idea: [1] --Wildgoosespeeder (talk) (Stats - Contribs) 23:33, 9 July 2016 (EDT)