Thread:Project:Support desk/Passing to an extension/reply (4)

Content that is passed to a tag extension is never parsed, iirc. So the easiest way should be:

Let the users pass the filename ("name.mp4") to your extension and you do the following:

Documentation: https://github.com/wikimedia/mediawiki-core/blob/61c989cfc04b98f221e5e9106018ebfed3255c39/includes/parser/CoreParserFunctions.php#L908

https://doc.wikimedia.org/mediawiki-core/master/php/html/GlobalFunctions_8php.html#a6f62cc18b743211dffaf3919d8d1dfdf

https://doc.wikimedia.org/mediawiki-core/master/php/html/classFile.html#af8c5eb22ef823da22ef335f2fdb11e30