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| | <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": { | ||
" | "width": { | ||
"type": "string", | "type": "string", | ||
"description": "The HTML width string of the image", | "description": "The HTML width string of the image", | ||
"example": " | "example": "250px", | ||
"default": "100%", | "default": "100%", | ||
"required": true, | "required": true, | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "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 | ||
}, | }, | ||
" | "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": [ | ||
" | "width", | ||
" | "url", | ||
" | "link" | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||
<div class="externalimage-holder" style="width:{{{ | <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%}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
width | width | The HTML width string of the image
| String | required |
url | url | The image URL to display | URL | required |
link | link | The place clicking the image links to, defaults to the image's location | URL | optional |
[{{{url}}} {{{url}}}]