Music samples are added to articles by using the Template:Listen within the main body of the article or Template:Audio sample to add it to an infobox. When using {{Listen}}, the template should be placed in the paragraph where the song is discussed if possible.
Listen example
A non-free sample of "Home at Last" is located in the Aja album article in the Critical reception section, where sourced commentary about its style is included. The code is as follows (see the template documentation for more options):
{{Listen| type = music
| filename = Home at Last.ogg
| title = "Home at Last"
| description = 30-second sample
| pos =}}
Audio sample (for Infobox) example
A free sample of "Crazy Blues" is added to the {{Infobox song}} in |misc= using {{Audio sample}}. Since the title and artist are already included in the infobox, an additional header or description is not needed. The code is (see the template documentation for more options):
{{Infobox song
...
| misc = {{subst:Audio sample| type = single
| file = Mamie Smith, Crazy Blues.ogg
}}
}}
Number of samples
The Non-free content guideline advises against "An excessive number of short audio clips in a single article". It adds "A small number may be appropriate if each is accompanied by commentary in the accompanying text... The use of non-free media (whether images, audio or video clips) in galleries, discographies, and navigational and user-interface elements generally fails the test for significance (criterion #8 [Contextual significance])." Examples of multiple samples within featured articles include Jimi Hendrix (artist article with three song samples) and Sgt. Pepper's Lonely Hearts Club Band (album article with four samples).