User:Pciev/SyntaxEval: Difference between revisions
Add information about sound files on the wiki |
m Add File and Media words to code blocks |
||
Line 9: | Line 9: | ||
==Sound Files== | ==Sound Files== | ||
Embeds as '''media players''' [File]:<br/> | Embeds as '''media players''' <code><nowiki>[[File]]</nowiki></code>:<br/> | ||
[[File:SR-RedSalut.ogg]] {{S|ogg}} | [[File:SR-RedSalut.ogg]] {{S|ogg}} | ||
[[File:SR-RedSalut.mp3]] {{S|mp3}} | [[File:SR-RedSalut.mp3]] {{S|mp3}} | ||
Links '''directly to the file''' [Media]:<br/> | Links '''directly to the file''' <code><nowiki>[[Media]]</nowiki></code>:<br/> | ||
[[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}} | ||
Line 24: | Line 24: | ||
'''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. | '''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><nowiki>[[File:<file>.mp3]]</nowiki></code> tag. If used inside <code><nowiki>{{Character Infobox}}</nowiki></code>, the media player may not be visible to Chrome users. | ||
==References== | ==References== | ||
{{References}} | {{References}} |
Revision as of 02:19, 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.