Template talk:Multiple image: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
Line 13: Line 13:
::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 <kbd><nowiki>{{#invoke:Multiple image|render}}</nowiki></kbd>. --{{User:Wildgoosespeeder/sig}} 22:15, 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 <kbd><nowiki>{{#invoke:Multiple image|render}}</nowiki></kbd>. --{{User:Wildgoosespeeder/sig}} 22:15, 9 July 2016 (EDT)
:::Look at the previous version. The current Wikipedia version uses [https://www.mediawiki.org/wiki/Extension:Scribunto Scribunto], which is a completely different sort of template based on Lua. - [[User:Reboot|Reboot]] ([[User talk:Reboot|talk]]) 22:28, 9 July 2016 (EDT)
:::Look at the previous version. The current Wikipedia version uses [https://www.mediawiki.org/wiki/Extension:Scribunto Scribunto], which is a completely different sort of template based on Lua. - [[User:Reboot|Reboot]] ([[User talk:Reboot|talk]]) 22:28, 9 July 2016 (EDT)
::::Looking at our source code, if we use:
<nowiki>[[File:{{{image1}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }}{{#if: {{{height|}}} | x{{{height}}} | x{{{height1}}} }}px|{{{alt1|{{{footer|}}}}}}]]</nowiki>
::::That should work. We just need to apply this to images 1-5, since this is what our template supports of 5 images max. --{{User:Wildgoosespeeder/sig}} 22:34, 9 July 2016 (EDT)

Revision as of 21:35, July 9, 2016

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)