Шаблон:Slušajte-lat/док
{{#ifeq:dok |dok
|
{{#ifeq:show |show
|
| Ovo je dokumentaciona podstranica za Шаблон:Slušajte-lat. Sadrži informacije o korišćenju, kategorijama i drugom sadržaju koji nije deo originalne stranice. |
}}{{#if: |
| {{#ifexist:Шаблон:Slušajte-lat
| [[Kategorija:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон
| šablon =
| {{#if:{{#ifeq:Slušajte-lat|Slušajte-lat|1|}} |{{#ifeq:|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Slušajte-lat-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}]]}}.}} |{{#if:{{#ifeq:|var|1|}} |{{#ifeq:|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Slušajte-lat-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}]]}}.}} |Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Slušajte-lat-lat}}. }} }} |
| other | #default = }}
| Ovaj šablon pokreće Lua: |
{{Slušajte-lat}} allows audio and video files to be embedded in articles. It should be used for audio files that are set off from the text, like music clips or sound recordings.
Simple usage
{{Listen-lat
| filename =
| title =
| description =
| pos =
}}
- filename (Required): the pagename of the media file, without the
File:(formerlyImage:) prefix - title (Required): the title of the audio file, to be displayed. Do not use quote marks around song titles. Do not use wikilinks in the title – they will not work.
- description: a description of the audio file
- pos = left or right
Multiple files
Additional files can be embedded in an article with one template by appending a number to each parameter.
{{Listen-lat
| filename =
| title =
| alt =
| description =
| filename2 =
| title2 =
| alt2 =
| description2 =
| filename3 =
| title3 =
| alt3 =
| description3 =
}}
- filename (Required): the pagename of the media file, without the File: (formerly Image:) prefix
- title (Required): the title of the audio file, to be displayed. Do not use quote marks around song titles.
- 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
.ogvformat that include video as well as sound. The alt text should describe just the initial static image, not the entire video or its sound. - description: a description of the audio file
Style parameters
The template also takes a number of style parameters to control its appearance:
- type: can be used to alter the image displayed at the left depending on the type of audio content being embedded. Acceptable values are music, speech and sound (default)
- header: can be used to add a header to the box.
- help: if set to
|{{SAFESUBST:#if:help|help=}}no, 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. - pos: 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.
- image: define a different image. E.g.
|{{SAFESUBST:#if:image|image=}}[[Датотека:Example.jps|50px]]. You can set|{{SAFESUBST:#if:image|image=}}noneto disable the image entirely. - style: 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.
- play#: some media files cannot be displayed inline; if this is the case set
|{{SAFESUBST:#if:play|play=}}noto prevent the broken inline link from displaying. - plain: if set
|{{SAFESUBST:#if:plain|plain=}}yes, 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|{{SAFESUBST:#if:style|style=}}(e.g.,|{{SAFESUBST:#if:style|style=}}float:right) parameter and surrounding markup. - embed: use
|{{SAFESUBST:#if:embed|embed=}}yesto remove border and padding when using as a module embedded in another infobox (see examples below).
Examples
Basic
Imate poteškoće pri reprodukciji ovog zapisa? Pogledajte VP:Pomoć oko snimaka. | |
{{Listen-lat
| filename = Accordion chords-01.ogg
| title = Accordion chords
| description = Chords being played on an accordion
}}
With video
Barack Obama's first inaugural address, January 20, 2009 (Duration: 21 minutes, 21 seconds) |
{{Listen-lat
| image = [[Датотека:Crystal Project video camera.png|50px]]
| help = no
| filename = Barack Obama inaugural address.ogv
| alt = A black man in a black coat gestures and talks at a lecturn surrounded by teleprompters. Behind him, in the background, are about a dozen warmly-dressed onlookers.
| title = Inaugural address of Barack Obama
| description = Barack Obama's [[First inauguration of Barack Obama|first inaugural address]], January 20, 2009<br />(Duration: 21 minutes, 21 seconds)
}}
With header
Recordings of this phrase:
| |
Imate poteškoće pri reprodukciji ovog zapisa? Pogledajte VP:Pomoć oko snimaka. | |
{{Listen-lat
| header = Recordings of this phrase:
| type = speech
| filename = Frase de Neil Armstrong.ogg
| title = "One small step for a man..."
| description = First words spoken on the [[Moon]].
}}
Embedding
| {{#if:|}} {{#if:| {{#if:| |Slušajte-lat/док}} |Slušajte-lat/док }} {{#if:|}} | |||
|---|---|---|---|
| {{#if:{{#property:P18}}|{{#ifexist:Media:{{#ifeq:{{#property:P18}}|{{#property:P18}}|{{#property:P18}}|{{#property:P18}}}}|{{#ifeq:|yes||{{#ifeq:{{#property:P18}}|{{#property:P18}}|{{#property:P18}}|{{#property:P18}}}}}}}}}} {{#if:|}} | |||
| Датум рођења | {{#if:|{{#if:|{{#if:|{{#if:|{{{дан_рођења}}} {{{месец_рођења}}}{{#if:| {{#if:|{{{година_рођења}}}|{{#ifeq:||[[]].|[[{{{година_рођења}}}]]}}}}}}|{{#if:|{{#if:{{#ifeq:|||1}}|[[{{{дан_рођења}}} {{{месец_рођења}}}]] {{#ifeq:||{{{година_рођења}}}|[[{{{година_рођења}}}]]}}| | ||
М{{#ifeq:{{safesubst:#switch:
|no |n |false |не |ne |н |нетачно |ne |netačno |0 = no | = |¬ = |yes |y |true |да |д |тачно |da |d |tačno |1 = yes |#default = yes}}|yes|ј|}}есто рођења | {{#if:|{{{место_рођења}}}{{#if:| }}}}{{#if:|{{#if:| }}{{{држава_рођења}}}}} | ||
| Крштен{{#if:|а|}} | {{#if:||}} | ||
| Датум смрти | {{#if:|{{#if:|{{#if:|{{#if:|{{{дан_смрти}}} {{{месец_смрти}}}{{#if:| {{#if:|{{{година_смрти}}}|{{#ifeq:||[[]].|[[{{{година_смрти}}}]]}}}}}}|{{#if:|{{#if:{{#ifeq:|||1}}|[[{{{дан_смрти}}} {{{месец_смрти}}}]] {{#ifeq:||{{{година_смрти}}}|[[{{{година_смрти}}}]]}}|{{датум {{#if:|{{#if:|{{#if:|смрти|рођења}}|рођења}}|рођења}}||{{#if:
|{{#switch:
|january|jan|јануар|јан|januar=1
|february|feb|фебруар|фебуар|феб|фебр|februar=2
|march|mar|март|мар|mart=3
|apr|april|апр|април=4
|may|мај|maj=5
|june|jun|јуни|јун|juni=6
|july|jul|јули|јул|juli=7
|august|aug|август|аугуст|авг|ауг|avgust|avg=8
|september|sep|sept|септембар|сеп|септ|septembar=9
|october|oct|октобар|окт|oktobar|okt=10
|november|nov|новембар|нов|novembar=11
|december|dec|децембар|дец|decembar=12
|{{#ifexpr:<0
|{{#ifexpr:(()round 0)!=()
|{{#expr:12-(((0.5-())round 0)mod 12)}}
|{{#expr:12-(((11.5-())round 0)mod 12)}}
}}
|{{#expr:(((10.5+)round 0)mod 12)+1}}
}}
}}
|{{ safesubst:#if:
| {{ safesubst:#if:
| {{ safesubst:#ifeq: | yes
| [[ {{ safesubst:#if:1| }}|{{ safesubst:#if:1| }}]]
| [[|{{ safesubst:#if:1| }}]]
}}
| {{ safesubst:#if:1| }}
}}
| {{ safesubst:#if:
| {{ safesubst:#ifeq: | yes
| [[ {{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }} |{{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }}]]
| [[ {{ safesubst:#if:1| }} |{{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }}]]
}}
| {{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }}
}}
}} }}||{{#if:|{{#if:|{{#if:|{{#if:{{#ifeq:|||1}}||}}}}}}}}|{{#if:|{{#if:|{{#if:|{{#if:{{#ifeq:|||1}}||{{#if: |{{#switch:
|january|jan|јануар|јан|januar=1
|february|feb|фебруар|фебуар|феб|фебр|februar=2
|march|mar|март|мар|mart=3
|apr|april|апр|април=4
|may|мај|maj=5
|june|jun|јуни|јун|juni=6
|july|jul|јули|јул|juli=7
|august|aug|август|аугуст|авг|ауг|avgust|avg=8
|september|sep|sept|септембар|сеп|септ|septembar=9
|october|oct|октобар|окт|oktobar|okt=10
|november|nov|новембар|нов|novembar=11
|december|dec|децембар|дец|decembar=12
|{{#ifexpr:<0
|{{#ifexpr:(()round 0)!=()
|{{#expr:12-(((0.5-())round 0)mod 12)}}
|{{#expr:12-(((11.5-())round 0)mod 12)}}
}}
|{{#expr:(((10.5+)round 0)mod 12)+1}}
}}
}}
|{{ safesubst:#if:
| {{ safesubst:#if:
| {{ safesubst:#ifeq: | yes
| [[ {{ safesubst:#if:1| }}|{{ safesubst:#if:1| }}]]
| [[|{{ safesubst:#if:1| }}]]
}}
| {{ safesubst:#if:1| }}
}}
| {{ safesubst:#if:
| {{ safesubst:#ifeq: | yes
| [[ {{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }} |{{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }}]]
| [[ {{ safesubst:#if:1| }} |{{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }}]]
}}
| {{ safesubst:#if:1| Недостаје неопходни параметар 1, месец! }}
}}
}} }}}}}}}}}}|{{#if:|{{#if:|{{#if:|{{#if:{{#ifeq:|||1}}||}}}}}}}}}}}}|[[{{{дан_смрти}}} {{{месец_смрти}}}]]{{#ifeq:|yes||}}}}}}|{{#ifeq:|yes||}}{{#if:|{{{месец_смрти}}}{{#if:| {{#if:|{{{година_смрти}}}|{{#ifeq:||[[]].|[[{{{година_смрти}}}]]}}}}}}|[[{{{месец_смрти}}}]]{{#if:| {{#if:|{{{година_смрти}}}|{{#ifeq:|[[{{{година_смрти}}}]]|{{{година_смрти}}}|[[]].}}}}}}}}}}|{{#ifeq:|yes||}}{{#if:|{{#if:|{{{година_смрти}}}|{{#ifeq:||[[]].|[[{{{година_смрти}}}]]}}}}}}}}|}} | ||
М{{#ifeq:{{safesubst:#switch:
|no |n |false |не |ne |н |нетачно |ne |netačno |0 = no | = |¬ = |yes |y |true |да |д |тачно |da |d |tačno |1 = yes |#default = yes}}|yes|ј|}}есто смрти | {{#if:|{{{место_смрти}}}{{#if:| }}}}{{#if:|{{#if:| }}{{{држава_смрти}}}}} | ||
{{#if:|М{{#ifeq:{{safesubst:#switch:
|no |n |false |не |ne |н |нетачно |ne |netačno |0 = no | = |¬ = |yes |y |true |да |д |тачно |da |d |tačno |1 = yes |#default = yes}}|yes|ј|}}есто укопа|Почивалиште}} | {{#if:||}} | ||
| {{#if:|Радови|{{#if:|Заслуге|Значајни радови}}}} | {{#if:||{{#if:||}}}} | ||
| {{#if:|Правни статус|Кривични статус}} | {{#if:||}} | ||
| {{#if:|Почасти|Одликовања}} | {{#if:||}} | ||
| Веб-сајт | {{#if: | ||
| {{#if:|Потпис}} | |||
| {{#if:|Остало}} | |||
| {{#if:| | |||
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон | šablon = {{#ifeq:Slušajte-lat/док|Infobox||{{#ifeq:док]]}}}} | other | #default = }}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}{{ #if:Шаблон||{{#if:||{{#ifeq:|yes||}} }} }}{{ #if:Шаблон||{{#if:|{{#if:||{{#ifeq:|yes||}} }}}} }}{{#if:Шаблон||{{#if:|{{#ifeq:|-||[[Категорија:Рођени {{#ifeq:{{#if:{{{година_рођења}}}|{{{година_рођења}}}|}}|.|{{{година_рођења}}}|{{{година_рођења}}}.}}|{{{презиме}}}, {{{име}}}]]}}}}}}{{#if:Шаблон||{{#if:|{{#ifeq:|-||[[Категорија:Умрли {{#ifeq:{{#if:{{{година_смрти}}}|{{{година_смрти}}}|}}|.|{{{година_смрти}}}|{{{година_смрти}}}.}}|{{{презиме}}}, {{{име}}}]]}}}}}}{{#if:||{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = {{#ifeq:|yes||}} | other | #default = }}}}{{ #if:Шаблон||{{#if:||{{#ifeq:|yes||}} }} }}{{ #if:Шаблон||{{#if:||{{#if:|{{#ifeq:|yes||}}}} }} }}{{ #if:Шаблон||{{#if:||{{#ifeq:|yes||}} }} }}{{ #if:Шаблон||{{#if:||{{#if:|}} }} }}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = {{#if:|{{#if:{{#property:P18}}||{{#ifexist:Датотека:||{{#ifexist:Media:|}}}}}}|}}{{#if:{{#property:P18}}|{{#ifexist:Media:{{#ifeq:{{#property:P18}}|{{#property:P18}}|{{#property:P18}}|{{#property:P18}}}}|{{#ifeq:|yes||}}}}}}{{#ifeq:|yes||{{#if:Шаблон||
{{#if:
| {{#if:{{#property:P18}}
| {{#ifeq:|
|
|
}}
| {{#if:{{#property:P41}}{{#property:P94}}{{#property:P117}}{{#property:P154}}{{#property:P242}}
|
|
}}
}}
| {{#if:{{#property:P18}}
| {{#if:
|
|
}}
|
}}
}}
}}}} | other | #default = }}
{{Infobox person
| name = Dr. Accordion
| occupation = Accordion player
| module =
{{Listen-lat
| filename = Accordion chords-01.ogg
| title = Accordion chords
| embed = yes
}}
}}
Plain
{{Listen-lat
| filename = Accordion chords-01.ogg
| title = Accordion chords
| plain = yes
| style = float:left
}}
|
Multiple files
Imate poteškoće pri reprodukciji ovih zapisa? Pogledajte VP:Pomoć oko snimaka. | |
{{Listen-lat
| type = music
| filename = Accordion chords-01.ogg
| title = Accordion chords
| description = Chords being played on an accordion
| filename2 = Moonlight.ogg
| title2 = ''Moonlight Sonata''
| description2 = [[Ludwig van Beethoven|Beethoven]]'s [[Piano Sonata No. 14 (Beethoven)|Sonata in C-sharp minor]]
| filename3 = Brahms-waltz15.ogg
| title3 = Waltz No. 15
| description3 = From [[Sixteen Waltzes, Op. 39 (Brahms)|Sixteen Waltzes, Op. 39]] by [[Johannes Brahms|Brahms]]
}}
Microformat
See also


