Template:Sized-external-image: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
(Created Template: Sized-external-image)
 
(Update template to allow for inclusion of a href.)
Tag: Reverted
Line 1: Line 1:
<div class="externalimage-holder" style="width:{{{1}}}">{{{2}}}</div>
<div class="externalimage-holder" style="width:{{{1}}}"><a href="{{{2}}}">{{{3}}}</a></div>


<!-- SOURCE: mediawiki: set external image width by value | https://stackoverflow.com/questions/19450262/mediawiki-set-external-image-width-by-value -->
<!-- SOURCE: https://chat.openai.com/c/75a5ff90-791c-4deb-81a1-d50a2ca38f98 -->
<!-- USE EXAMPLE: {{sized-external-image|250px|https://example.org/image.jpg}} -->
<!-- USE EXAMPLE: {{sized-external-image|250px|https://example.org/|https://example.org/image.jpg}} -->
 
<!-- ORIGINAL TEMPLATE: <div class="externalimage-holder" style="width:{{{1}}}">{{{2}}}</div> -->
<!-- ORIGINAL SOURCE: mediawiki: set external image width by value | https://stackoverflow.com/questions/19450262/mediawiki-set-external-image-width-by-value -->
<!-- ORIGINAL USE EXAMPLE: {{sized-external-image|250px|https://example.org/image.jpg}} -->

Revision as of 20:10, 29 November 2023

<a href="{{{2}}}">{{{3}}}</a>