Difference between revisions of "Template:ExternalImage"
Jump to navigation
Jump to search
(transfered by WikiBackup wikiTask at 2017-10-03T16:44:13Z) |
|||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
=== usage === | === usage === | ||
− | <pre>{{ExternalImage|size=250px|title=Smiling Girl|link=http://philia-care.com/wp-content/uploads/2015/04/smiling_girl_small.jpg}}</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}} | ||
[[Category:Template]] | [[Category:Template]] | ||
− | </noinclude><includeonly><div class='externalimage-holder' title='{{{title|}}}' style='width:{{{size|250px}}}'>{{{link|}}}</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}}