Maickel (overleg | bijdragen)
Geen bewerkingssamenvatting
Maickel (overleg | bijdragen)
Geen bewerkingssamenvatting
 
Regel 2: Regel 2:
<templatedata>
<templatedata>
{
{
"description": "Embedded uploaded video",
  "description": "Embedded video (YouTube or uploaded file)",
"params": {
  "params": {
"file": {
    "file": {
"label": "Video",
      "label": "Video file",
"description": "mp4 bestand",
      "description": "Naam van geüpload mp4-bestand",
            "type": "wiki-file-name",
      "type": "wiki-file-name",
"required": true
      "required": false
},
    },
"width": {
    "id": {
"label": "Breedte",
      "label": "Video ID",
"autovalue": "450",
      "description": "YouTube video ID (bijv. 3NpF2SMnyUk)",
"type": "number"
      "type": "string",
}
      "required": false
},
    },
"paramOrder": [
    "type": {
"file",
      "label": "Platform",
"width"
      "description": "Video platform (bijv. YouTube)",
]
      "type": "string",
      "default": "YouTube",
      "required": false
    },
    "width": {
      "label": "Breedte",
      "default": "500"
    },
    "height": {
      "label": "Hoogte",
      "default": "500"
    }
  },
  "paramOrder": [
    "file",
    "id",
    "type",
    "width",
    "height"
  ]
}
}
</templatedata>
</templatedata>
</noinclude><includeonly>
</noinclude>
{{#widget:Video
<includeonly>
| url = {{filepath:{{{file|}}}}}
{{#if:{{{id|}}}
| width = {{{width|}}}
| <!-- YouTube / external widget video -->
  <div class="bb--video">
    {{#widget:{{{type|YouTube}}}
      | id={{{id|}}}
      | width={{{width|500}}}
      | height={{{height|500}}}
    }}
  </div>
| <!-- Local file video -->
  <div class="bb--video">
    {{#widget:Video
      | url={{filepath:{{{file|}}}}}
      | width={{{width|500}}}
      | height={{{height|500}}}
    }}
  </div>
}}
}}
</includeonly>
</includeonly>

Huidige versie van 24 feb 2026 15:57

Embedded video (YouTube or uploaded file)

Template parameters[Sjabloongegevens bewerken]

ParameterDescriptionTypeStatus
Video filefile

Naam van geüpload mp4-bestand

Fileoptional
Video IDid

YouTube video ID (bijv. 3NpF2SMnyUk)

Stringoptional
Platformtype

Video platform (bijv. YouTube)

Default
YouTube
Stringoptional
Breedtewidth

no description

Default
500
Unknownoptional
Hoogteheight

no description

Default
500
Unknownoptional