Maickel (overleg | bijdragen)
Nieuwe pagina aangemaakt met '<div class="bb--video"> <video width="{{{width|640}}}" height="{{{height|360}}}" controls poster="{{{poster|}}}"> <source src="{{{file}}}" type="video/mp4"> Your browser does not support the video tag. </video> </div>'
 
Maickel (overleg | bijdragen)
Geen bewerkingssamenvatting
 
(Een tussenliggende versie door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
<div class="bb--video">
<noinclude>
  <video
<templatedata>
      width="{{{width|640}}}"
{
      height="{{{height|360}}}"
  "description": "Embedded video (YouTube or uploaded file)",
      controls
  "params": {
      poster="{{{poster|}}}">
    "file": {
      <source src="{{{file}}}" type="video/mp4">
      "label": "Video file",
      Your browser does not support the video tag.
      "description": "Naam van geüpload mp4-bestand",
  </video>
      "type": "wiki-file-name",
</div>
      "required": false
    },
    "id": {
      "label": "Video ID",
      "description": "YouTube video ID (bijv. 3NpF2SMnyUk)",
      "type": "string",
      "required": false
    },
    "type": {
      "label": "Platform",
      "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>
</noinclude>
<includeonly>
{{#if:{{{id|}}}
| <!-- 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>

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