Template:ExternalImage: Difference between revisions

From Shiptest Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>


{{ExternalImage|100%|https://cdn.shiptest.net/renders/initial/padded/Meta-class.png|https://google.com}}
<pre>
{{ExternalImage|url=https://cdn.shiptest.net/renders/initial/padded/Meta-class.png|link=https://google.com|width=25%}}
</pre>
 
{{ExternalImage|url=https://cdn.shiptest.net/renders/initial/padded/Meta-class.png|link=https://google.com|width=25%}}


<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"width": {
"type": "string",
"type": "string",
"aliases": [
"width"
],
"description": "The HTML width string of the image",
"description": "The HTML width string of the image",
"example": "100%",
"example": "250px",
"default": "100%",
"default": "100%",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
},
"2": {
"url": {
"aliases": [
"url"
],
"description": "The image URL to display",
"description": "The image URL to display",
"type": "url",
"type": "url",
Line 26: Line 24:
"suggested": true
"suggested": true
},
},
"3": {
"link": {
"aliases": [
"link"
],
"description": "The place clicking the image links to, defaults to the image's location",
"description": "The place clicking the image links to, defaults to the image's location",
"type": "url"
"type": "url"
Line 35: Line 30:
},
},
"paramOrder": [
"paramOrder": [
"1",
"width",
"2",
"url",
"3"
"link"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>


<div class="externalimage-holder" style="width:{{{1}}}">[{{{3|2}}} {{{2}}}]</div>
<div class="externalimage-holder" style="width:{{{width}}}">[{{{link|{{{url}}}}}} {{{url}}}]</div>


<noinclude>
<noinclude>
[[category:templates]]
[[category:templates]]
</noinclude>
</noinclude>

Latest revision as of 02:29, 23 June 2023


{{ExternalImage|url=https://cdn.shiptest.net/renders/initial/padded/Meta-class.png|link=https://google.com|width=25%}}


Meta-class.png


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
widthwidth

The HTML width string of the image

Default
100%
Example
250px
Stringrequired
urlurl

The image URL to display

URLrequired
linklink

The place clicking the image links to, defaults to the image's location

URLoptional
[{{{url}}} {{{url}}}]