Max Width Image

Add the image to your wiki page:

<div class="res-img">
[[File:Whatever.JPG]]
</div>


Make a class for responsive images, i.e. insert the following in your MediaWiki:Common.css

/* To make images responsive */
.res-img img {
	max-width:100%;
	height:auto;
}

Linking within a Page - Anchor


Define the anchor

<div id="NameOfAnchorHere">optional text</div>


Reference the anchor

[[#NameOfAnchorHere| test]]


If the div causes a line break you may want to use:

<div id="NameOfAnchorHere" style="display:inline;"></div>



References

  • No labels