User:Pciev/SyntaxEval: Difference between revisions
Create testing/sandbox page for my user |
Add information about sound files on the wiki |
||
Line 16: | Line 16: | ||
[[Media:SR-RedSalut.ogg]] {{S|ogg}}<br/> | [[Media:SR-RedSalut.ogg]] {{S|ogg}}<br/> | ||
[[Media:SR-RedSalut.mp3]] {{S|ogg}} | [[Media:SR-RedSalut.mp3]] {{S|ogg}} | ||
The default ''MediaWiki'' player seems to work weirdly across browsers. I have tested three different browsers on two different operating systems.<br/> | |||
'''Firefox''' on Windows and macOS seem to play both '''ogg''' and '''mp3''' files perfectly fine.<br/> | |||
'''Safari''' on macOS and iOS will play the '''mp3''' audio, but has no compatibility with '''ogg''' files. (This is an issue with Safari <ref name="caniuse">https://caniuse.com/?search=ogg</ref>, not MediaWiki.)<br/> | |||
'''Chrome''' on Windows and macOS will display the media players, but only outside of the Character Infobox. The media player shows properly in the Character Infobox on Firefox and Safari.<br/> | |||
'''Conclusion:''' For using sound files inside of wiki pages, the best implementation will be to use an '''mp3''' file and link it using the <code>[[File:<file>.mp3]]</code> tag. If used inside <code><nowiki>{{Character Infobox}}</nowiki></code>, the media player may not be visible to Chrome users. | |||
==References== | |||
{{References}} |
Revision as of 02:15, 10 March 2025
Jekyll Sandbox
Sound Files
Embeds as media players [File]:
(ogg)
(mp3)
Links directly to the file [Media]:
Media:SR-RedSalut.ogg (ogg)
Media:SR-RedSalut.mp3 (ogg)
The default MediaWiki player seems to work weirdly across browsers. I have tested three different browsers on two different operating systems.
Firefox on Windows and macOS seem to play both ogg and mp3 files perfectly fine.
Safari on macOS and iOS will play the mp3 audio, but has no compatibility with ogg files. (This is an issue with Safari [1], not MediaWiki.)
Chrome on Windows and macOS will display the media players, but only outside of the Character Infobox. The media player shows properly in the Character Infobox on Firefox and Safari.
Conclusion: For using sound files inside of wiki pages, the best implementation will be to use an mp3 file and link it using the [[File:<file>.mp3]]
tag. If used inside {{Character Infobox}}
, the media player may not be visible to Chrome users.