User:Pciev/SyntaxEval: Difference between revisions
m Add File and Media words to code blocks |
Add Image section |
||
Line 1: | Line 1: | ||
'''Jekyll Sandbox''' | '''Jekyll Reference Sandbox''' | ||
This is the page where I test different [https://www.mediawiki.org/wiki/MediaWiki MediaWiki] syntax. | |||
{{Character Infobox | {{Character Infobox | ||
| title = Sandbox | | title = Sandbox | ||
Line 8: | Line 9: | ||
}} | }} | ||
==Sound Files== | ==Sound Files <ref name="mwMP3">https://www.mediawiki.org/wiki/Extension:TimedMediaHandler</ref>== | ||
Embeds as '''media players''' <code><nowiki>[[File]]</nowiki></code>:<br/> | Embeds as '''media players''' <code><nowiki>[[File]]</nowiki></code>:<br/> | ||
[[File:SR-RedSalut.ogg]] {{S|ogg}} | [[File:SR-RedSalut.ogg]] {{S|ogg}} | ||
Line 25: | Line 26: | ||
'''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. | '''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. | ||
==(Basic) Image Manipulation <ref name="mwIMG">https://www.mediawiki.org/wiki/Help:Images</ref>== | |||
[[File:SR-Cocona.png|{{ImageSize}}|Cocona, scaled to fit]] This is an image.<br/> | |||
[[File:SR-Cocona.png|Cocona]] This is an image, displayed at its original resolution.<br/> | |||
[[File:SR-Cocona.png|50px|Tiny Cocona]] This is an image, displayed at 50px<br/> | |||
[[File:SR-Cocona.png|50px|center|Tiny Cocona, centered]] This is an image, displayed at 50px in the center of the page<br/> | |||
[[File:SR-Cocona.png|{{ImageSize}}|link=https://www.youtube.com/watch?v=DuGWfW82Zfg|Cocona video]] This is an image, with a clickable link.<br/> | |||
==References== | ==References== | ||
{{References}} | {{References}} |
Revision as of 03:29, 10 March 2025
Jekyll Reference Sandbox
This is the page where I test different MediaWiki syntax.
Sound Files [1]
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 [2], 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.
(Basic) Image Manipulation [3]
This is an image.
This is an image, displayed at its original resolution.
This is an image, displayed at 50px

This is an image, displayed at 50px in the center of the page
This is an image, with a clickable link.