Difference between revisions of "Template:ExternalImage"
Jump to navigation
Jump to search
| Line 18: | Line 18: | ||
=== usage === | === usage === | ||
<pre>{{ExternalImage|size=250px|title=Smiling Girl|link=http://philia-care.com/wp-content/uploads/2015/04/smiling_girl_small.jpg|target=Template:ExternalImage}}</pre> | <pre>{{ExternalImage|size=250px|title=Smiling Girl|link=http://philia-care.com/wp-content/uploads/2015/04/smiling_girl_small.jpg|target=Template:ExternalImage}}</pre> | ||
| − | {{ExternalImage|size=250px|title=Smiling Girl|link=http://philia-care.com/wp-content/uploads/2015/04/smiling_girl_small.jpg}} | + | {{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:15, 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}}
