Widget:ModelViewer: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<model-viewer | <span> | ||
<includeonly> | |||
<model-viewer | |||
src="<!--{$src|escape}-->" | src="<!--{$src|escape}-->" | ||
alt="<!--{$alt|escape|default:'3D Model'}-->" | alt="<!--{$alt|escape|default:'3D Model'}-->" | ||
style="width: <!--{$width|escape|default:'240px'}-->; height: <!--{$height|escape|default:'165px'}-->;" | |||
<!--{if $poster}-->poster="<!--{$poster|escape}-->"<!--{/if}--> | <!--{if $poster}-->poster="<!--{$poster|escape}-->"<!--{/if}--> | ||
<!--{if $loading}-->loading="<!--{$loading|escape}-->"<!--{/if}--> | <!--{if $loading}-->loading="<!--{$loading|escape}-->"<!--{/if}--> | ||
Line 54: | Line 55: | ||
> | > | ||
</model-viewer> | </model-viewer> | ||
</includeonly> | |||
</span> | |||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 76: | Line 77: | ||
"width": { | "width": { | ||
"label": "Width", | "label": "Width", | ||
"description": "Width of the viewer (e.g., '100%' or ' | "description": "Width of the viewer (e.g., '100%' or '200px').", | ||
"type": "string", | "type": "string", | ||
"default": " | "default": "240px" | ||
}, | }, | ||
"height": { | "height": { | ||
"label": "Height", | "label": "Height", | ||
"description": "Height of the viewer (e.g., ' | "description": "Height of the viewer (e.g., '100%' or '200px').", | ||
"type": "string", | "type": "string", | ||
"default": " | "default": "165px" | ||
}, | }, | ||
"poster": { | "poster": { | ||
Line 153: | Line 154: | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |