You can customize CSS hacker.
Mediawiki allows you to include some variables, such as alt-text, including a special line in this variable, such as w100 or resizeable , that allows you to target an element using CSS:
img[alt=~w100] { width: 100% !important; height: auto !important; }
Note that since you use alt for things that it is not intended to be used, and !important in CSS (since MW sets the size as the style of the element), this should be avoided as much as possible and intended to be used as a last resort.
source share