Search code examples
mediawikimediawiki-extensionsmediawiki-templates

How to Resize Images in Infobox in Mediawiki?


I managed to create an infobox in my Mediawiki after performing hours of code as I am a beginner, but now I am facing issue with the image resizing in that infobox. In other words, I want to resize the image which I put in the infobox. I saw that in Wikipedia, we can achieve this by a code i.e.,

{{Infobox person
| image                     = 
| image_size                = 
| alt                       = 
| caption                   = 
}}

Here, the code image_size can help us to achieve this, I think so. So, is there any parser function to achieve this?


Solution

  • Images support resizing in the [[File:]] syntax, the size can be passed via template parameter as well. See here for how to do it: https://www.mediawiki.org/wiki/Help:Images#Size_and_frame