Jump to content

Widget:ModelViewer: Difference between revisions

No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span>
<span>
<includeonly>
<includeonly>
<model-viewer class="model-infobox"
<model-viewer
     src="<!--{$src|escape}-->"  
     src="<!--{$src|escape}-->"  
     alt="<!--{$alt|escape|default:'3D Model'}-->"
     alt="<!--{$alt|escape|default:'3D Model'}-->"
     width="<!--{$width|escape}-->"
     style="width: <!--{$width|escape|default:'240px'}-->; height: <!--{$height|escape|default:'165px'}-->;"
    height="<!--{$height|escape}-->"
 
     <!--{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 78: Line 77:
"width": {
"width": {
"label": "Width",
"label": "Width",
"description": "Width of the viewer (e.g., '100%' or '500px').",
"description": "Width of the viewer (e.g., '100%' or '200px').",
"type": "string",
"type": "string",
"default": "100%"
"default": "240px"
},
},
"height": {
"height": {
"label": "Height",
"label": "Height",
"description": "Height of the viewer (e.g., '270px').",
"description": "Height of the viewer (e.g., '100%' or '200px').",
"type": "string",
"type": "string",
"default": "270px"
"default": "165px"
},
},
"poster": {
"poster": {