Jump to content

Widget:ModelViewer: Difference between revisions

No edit summary
No edit summary
 
(9 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'}-->"
    style="width: <!--{$width|escape|default:'240px'}-->; height: <!--{$height|escape|default:'165px'}-->;"


     <!--{if $poster}-->poster="<!--{$poster|escape}-->"<!--{/if}-->
     <!--{if $poster}-->poster="<!--{$poster|escape}-->"<!--{/if}-->
Line 76: 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": {