Template:ImageCompare: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<html> <script defer src="https://cdn.jsdelivr.net/npm/img-comparison-slider@8/dist/index.js" ></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/img-comparison-slider@8/dist/styles.css" /> <img-comparison-slider> <img slot="first" src="/wiki/Special:FilePath/{{{PictureLeft}}}?width={{{Picturewidth}}}" style="width:{{{Picturewidth}}}px;" /> <img slot="second" src="/wiki/Special:FilePath/{{{PictureRight}}}?width={{{Picturewidth}}}" style="wid...") |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#tag:html| | |||
<script | <script | ||
defer | defer | ||
src="https:// | src="https://wiki.techtangents.net/images/index.js" | ||
></script> | ></script> | ||
<link | <link | ||
rel="stylesheet" | rel="stylesheet" | ||
href="https:// | href="https://wiki.techtangents.net/images/styles.css" | ||
/> | /> | ||
<div style="display:inline-block;" > | |||
<img-comparison-slider> | <img-comparison-slider style="display:block;" > | ||
<img slot="first" src="/wiki/Special:FilePath/{{{ | <img slot="first" src="https://wiki.techtangents.net/wiki/Special:FilePath/{{{Picture Left}}}?width={{{Picture Width}}}" style="width:{{{Picture Width}}}px;" /> | ||
<img slot="second" src="/wiki/Special:FilePath/{{{ | <img slot="second" src="https://wiki.techtangents.net/wiki/Special:FilePath/{{{Picture Right}}}?width={{{Picture Width}}}" style="width:{{{Picture Width}}}px;" /> | ||
</img-comparison-slider> | </img-comparison-slider> | ||
</ | <a href="https://wiki.techtangents.net/wiki/Special:FilePath/{{{Picture Left}}}">Left Full Image</a> | ||
<a href="https://wiki.techtangents.net/wiki/Special:FilePath/{{{Picture Right}}}" style="float:right;clear:right;">Right Full Image</a> | |||
</div> | |||
}} | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Picture Left": { | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"Picture Width": { | |||
"type": "number", | |||
"required": true | |||
}, | |||
"Picture Right": { | |||
"type": "wiki-file-name", | |||
"required": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"Picture Left", | |||
"Picture Right", | |||
"Picture Width" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 23:22, 25 March 2025
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Picture Left | Picture Left | no description | File | required |
Picture Right | Picture Right | no description | File | required |
Picture Width | Picture Width | no description | Number | required |