Difference between revisions of "Template:ExternalImage"

From BITPlan royal-family Wiki
Jump to navigation Jump to search
Line 20: Line 20:
 
{{ExternalImage|size=250px|title=Smiling Girl|link=http://philia-care.com/wp-content/uploads/2015/04/smiling_girl_small.jpg|target=Template:ExternalImage}}
 
{{ExternalImage|size=250px|title=Smiling Girl|link=http://philia-care.com/wp-content/uploads/2015/04/smiling_girl_small.jpg|target=Template:ExternalImage}}
 
[[Category:Template]]
 
[[Category:Template]]
</noinclude><includeonly><div class='externalimage-holder' title='{{{title|}}}' style='width:{{{size|250px}}}'>{{{link|}}}{{#if: {{{target|}}}|[[target]]}}</div></includeonly>
+
</noinclude><includeonly><div class='externalimage-holder' title='{{{title|}}}' style='width:{{{size|250px}}}'>{{{link|}}}{{#if: {{{target|}}}|[[{{{target|}}}]]}}</div></includeonly>

Revision as of 08:16, 6 October 2017

This is the Template ExternalImage It works along the lines of:

You might want to add the following lines to MediaWiki:Common.css

.externalimage-holder {
    position: relative;
}
.externalimage-holder img {
    width: 100%;
    height: auto;
}

usage

{{ExternalImage|size=250px|title=Smiling Girl|link=http://philia-care.com/wp-content/uploads/2015/04/smiling_girl_small.jpg|target=Template:ExternalImage}}