Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Incubator escapee wiki:Extended image syntax
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Sound files == Often, sound files are presented on Wikipedia pages using {{tl|Listen}} or its related templates. However, it is also possible to present an audio file without using any template. Similar syntax to images can be used to transclude audio or video files into pages. {| class=wikitable ! !!Code!!Output |- |1.||<code><nowiki>[[File:Accordion chords-01.ogg]]</nowiki></code> |[[File:Accordion chords-01.ogg]] |- |2.||<code><nowiki>[[File:Accordion chords-01.ogg|frameless|upright=1.3]]</nowiki></code> |[[File:Accordion chords-01.ogg|frameless|upright=1.3]] |} Note that none of these examples provide links to [[Wikipedia:Media help]], and example 2 provides no navigable links to the file itself. Consequently, whenever this method is used, the {{tl|Inline audio}} template must be shown on that page, and the presentation of the play buttons must be accompanied by clickable links to the sound file itself. Examples: {| class=wikitable ! !!Code!!Output |- |1.||<code><nowiki>[[File:Accordion chords-01.ogg|frameless|upright=0.4|left]] [[:File:Accordion chords-01.ogg|Accordion chords]]</nowiki></code> |[[File:Accordion chords-01.ogg|frameless|upright=0.4|left]] [[:File:Accordion chords-01.ogg|Accordion chords]] |- |2.||<code><nowiki>[[:File:Accordion chords-01.ogg|Accordion chords]] [[File:Accordion chords-01.ogg|90px|right]]</nowiki></code> |[[:File:Accordion chords-01.ogg|Accordion chords]] [[File:Accordion chords-01.ogg|90px|right]] |- |3.||<code><nowiki>[[:File:Accordion chords-01.ogg|Accordion chords]] [[File:Accordion chords-01.ogg|90px]]</nowiki></code> |[[:File:Accordion chords-01.ogg|Accordion chords]] [[File:Accordion chords-01.ogg|90px]] |} Note that vertical alignment of the play button does not work, nor is it possible to present the play button inline with text; consequently, the most pleasing arrangement is achieved with examples 1 or 3. There is also a parameter to preset the player to start at a time other than 0:00. {| class=wikitable ! !!Code!!Output |- |1.||<code><nowiki>[[File:Accordion chords-01.ogg|start=0:05]]</nowiki></code> |[[File:Accordion chords-01.ogg|start=0:05]] |} ===MIDI=== Since June 2019, MIDI files can be played just like other sound files. See: [[Help:Score]]. [[File:Beethoven Op. 33 no. 1.mid|thumb|[[Bagatelles, Op. 33 (Beethoven)|''Bagatelles'', Op. 33]], no. 1]] <syntaxhighlight lang="wikitext">[[File:Beethoven Op. 33 no. 1.mid|thumb|[[Bagatelles, Op. 33 (Beethoven)|''Bagatelles'', Op. 33]], no. 1]]</syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)