Mall:Heli

Allikas: Vikipeedia
[redigeeri] Template-info.svg Malli dokumentatsioon
Malli tuleb tõlkida ja kohandada!

{{Heli}} abil saab artiklitesse lisada helifaile, mis ei asu teksti sees. Näiteks muusikanäited või muud helisalvestused.

Kasutamine[muuda | redigeeri lähteteksti]

{{ heli
| failinimi     = 
| pealkiri      = 
| kirjeldus     = 
}}
  • failinimi (kohustuslik): meediafaili nimi ilma nimeruumi nimeta (Pilt:)
  • pealkiri (kohustuslik): pealkiri, mida näidatakse
  • kirjeldus: meediafaili kirjeldus
  • alt: alt text for the image displayed for the file, for visually impaired readers; see Wikipedia:Alternative text for images. This is needed for file formats such as Ogg's .ogv format that include video as well as sound. The alt text should describe just the initial static image, not the entire video or its sound.

Näide[muuda | redigeeri lähteteksti]

{{ heli
| failinimi     = Accordion chords-01.ogg
| pealkiri      = Akordioni akordid
| kirjeldus     = Akordid akordionil mängituna
}}

Mitu faili ühes kastis[muuda | redigeeri lähteteksti]

Additional files can be embedded in an article with one template by appending a number to each parameter. Up to ten files can be included.

{{ heli
| failinimi    = Accordion chords-01.ogg
| pealkiri     = Akordioni akordid
| kirjeldus    = Akordid akordionil mängituna
| tüüp         = muusika
| failinimi2   = Moonlight.ogg
| pealkiri2    = "Kuupaistesonaat"
| kirjeldus2   = [[Beethoven]]i "Sonaat cis-moll"
| failinimi3   = Au_clair_de_la_lune_mode_do.mid
| pealkiri3    = Au Clair de la Lune
| kirjeldus3   = prantsuse lastelaul
| nupp3        = ei
}}

Vormindamine[muuda | redigeeri lähteteksti]

The template also takes a number of style parameters to control its appearance:

  • tüüp: can be used to alter the image displayed at the left depending on the type of audio content being embedded. Acceptable values are heli, kõne and muusika (vaikimisi).
  • päis: can be used to add a header to the box.
  • abi: if set |abi=ei, suppresses the help text that normally appears at the bottom of the box. Only do this if there are other audio files on the page which do have the help link; it must be provided on at least the first file on the article.
  • asend: by default the box floats to the right side of the screen. Setting this to left will cause the box to instead float on the left-hand side.
  • pilt: define a different image. Eg |pilt=[[File:Example.jps|20px]]. You can set |pilt=none to disable the image entirely.
  • stiil: can be used to pass specific style instructions to the box. Setting this to float:none will anchor the box when this is convenient. Setting this to float:none; clear:none will enable the anchored box to co-exist gracefully beside another floating box.
  • nupp#: some media files cannot be displayed inline; if this is the case set |nupp=ei to prevent the broken inline link from displaying.
  • lihtne: if set |lihtne=jah, removes most of the ornamentation (table border, image, and help links) to give a minimalist version. This also removes the left/right float and positioning, to allow the box to be manually positioned as desired using the |style= (e.g. |style=float:right) parameter and surrounding markup.
{{ heli
| failinimi    = Frase de Neil Armstrong.ogg
| pealkiri     = "One small step for a man..."
| kirjeldus    = Esimesed Kuul kõneldud sõnad.
| tüüp         = kõne
| asend        = left
| päis         = Selle ütluse salvestused:
}}
{{ heli
| failinimi   = Accordion chords-01.ogg
| pealkiri    = Akordioni akordid
| lihtne      = jah
| stiil       = float:left
}}

Vaata ka[muuda | redigeeri lähteteksti]