Template:Extimage: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "<includeonly><!--Wikia/wikipedia images code-->{{#switch:{{#vardefineecho:urlcheck|{{#explode:{{#replace:{{{1}}}|www.|}}|.|1}}}}|wikia|wikimedia={{#if:{{{2|}}}|<div align="{{{2}}}">|}}{{#if:{{{link|{{{4|{{{1}}}}}}}}}|[{{#switch:{{#var:urlcheck}}|wikia|wikimedia={{{link|{{{4|{{{1}}}}}}}}}|{{{link|{{{4|{{{1}}}}}}}}}}} {{#vardefineecho:thumb|{{#replace:{{#replace:{{{1}}}|/wikipedia/commons|/wikipedia/commons/thumb}}|/images/|/images/thumb/}}}}|{{#var:thumb}}}}/{{px|{{{3}}}}...") |
(No difference)
|
Latest revision as of 01:26, 17 October 2024
Template documentation
This documentation is transcluded from Template:Extimage/doc. [edit] [history] [purge]
Embed external images using internal image-like styling for thumbnails. Only images hosted on the servers listed at the local image whitelist can be embedded directly into a page. Images on any other server will appear as a regular hyperlink. Currently, the following general image hosts are supported:
*These sites should not be used as host, but it is possible to use images that are already uploaded to these sites.
Usage and examples
{{Extimage|url|alignment|width|caption (optional)|link=url (optional)}}
For example, {{Extimage|https://i.imgur.com/j021LcB.jpeg|left|200px}}
would result in:
Template data
Show/hide template's data |
---|