• Domov
  • Naključno
  • Bližnje
  • Prijava
  • Nastavitve
Donate Now If Wikipedia is useful to you, please give today.
  • O Wikipediji
  • Zavrnitve odgovornosti
Wikipedija

Predloga:Galerija

  • Jezik
  • Opazuj
  • Uredi stran
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]
Lua logoUporablja Lua:
  • Modul:Galerija

Ta predloga je namenjena naprednejši uporabi galerije (kot je uporaba drsnika pri besedilu pod sliko (scrolling captions) in podrobnejše prilagajanje formata galerije). Za kreiranje osnovnih galerij, uporabi označevalec za galerijo.

Ta predloga prikaže galerijo slik v polju, v vrsticah od leve proti desni. Splošna parametra |width= in |height= nadzorujeta velikost vseh slik v galeriji, razen če ju ne razveljavi parameter |widthn= za posamezno sliko. Število slik v vrstici temelji na parametrih width in glede na širino ekrana. Število slik v vrstici se lahko spremeni ko uporabnik spremeni velikost okna.

Vsebina

  • 1 Prazna sintaksa
  • 2 Parametri
    • 2.1 Za vsako sliko
    • 2.2 Neobvezni parametri
  • 3 Primeri
  • 4 TemplateData
  • 5 Sledilne kategorije
  • 6 Glej tudi

Prazna sintaksa

uredi
{{Galerija
| title        = 
| align        =
| footer       =
| style        =
| state        =
| height       =
| width        =
| captionstyle =
| File:
 | Write a caption here
 | alt1=
| File:
 | Write a caption here
 | alt2=
| File:
 | Write a caption here
 | alt3=
| File:
 | Write a caption here
 | alt4=
| File:
 | Write a caption here
 | alt5=
}}

Parametri

uredi

Za vsako sliko

uredi

Vpišite sledeč zapis za vsako sliko.

|File:Imeslike |Opis pod sliko |altn=alt besedilo

Kjer je:

|Slika:Imeslike – ime datoteke slike. Uporabite lahko tudi File: ali Image: prefiks
|Altn= – atribut alt: |alt1= za prvo sliko, |alt2= za drugo sliko, itd
Alt text – alt besedilo za sliko, ki ga uporabljajo slabovidne osebe ali drugi bralci, ki ne morejo jkasno videti slike. Če je pramater izpuščen, bo alt besedilo prazno.
|Opis pod sliko

Neobvezni parametri

uredi

Ti parametri se nanašajo na celotno galerijo:

|title= – Naslov galerije
|align= – Poravnava galerije na strani, left (prednastavljeno), center ali right
|footer= – Pomanjšano, desno-poravnano besedilo pod sliko
|style= – CSS direktive za stil za celotno galerijo
|state= – Sets the default state of collapsible galleries; use |state=expanded or |state=collapsed; collapsible galleries occupy the full page width
|mode= – Sets the mode used by the inner gallery tag. Common values include |mode=packed and |mode=nolines (see Help:Gallery tag for more options)

Ti parametri se nanašajo na vse slike v galeriji:

|noborder= – Cancel the border surrounding the images, use |noborder=yes to set.
|whitebg= – Cancel the white background after the images, use |whitebg=no to set.
|height= – Največja višina vsake slike. Če ta parameter ni vključen, je prednastavljena vrednost |height= 180 pikslov.
|width= – Največja širina vsake slike, prednastavljena vrednost 180 pikslov. Use a number here, e.g., 150, without units, e.g., 150px.
|captionstyle= – CSS style directives for the captions (see Help:Cascading Style Sheets)

The image's original ratio of width to height cannot be modified by |width= or |height= – a rectangular image will not be made square if |width= and |height= are set to the same value.

Primeri

uredi
{{Galerija
|title=Cultural depictions of George Washington
|width=160 | height=170
|align=center
|footer=Example 1
|File:Federal Hall NYC 27.JPG 
 |Statue of Washington outside [[Federal Hall National Memorial]] in [[New York City]], overlooking [[Wall Street]]
 |alt1=Statue facing a city building with Greek columns and huge U.S. flag
|File:Mount Rushmore2.jpg 
 |Construction of Washington portrait at [[Mount Rushmore]], c. 1932
 |alt2=Profile of stone face on mountainside, with 3 workers.
|File:2006 Quarter Proof.png 
 |Washington is commemorated on a [[Quarter (United States coin)|quarter]].
 |alt3=Shiny silver coin with profile of Washington bust. 
|File:George Washington Presidential $1 Coin obverse.png 
 |Washington on a [[dollar coin (United States)|dollar coin]]
 |alt4=Gold coin with bust of Washington facing slightly left
}}
Cultural depictions of George Washington
  • Statue facing a city building with Greek columns and huge U.S. flag
    Statue of Washington outside Federal Hall National Memorial in New York City, overlooking Wall Street
  • Profile of stone face on mountainside, with 3 workers.
    Construction of Washington portrait at Mount Rushmore, c. 1932
  • Shiny silver coin with profile of Washington bust.
    Washington is commemorated on a quarter.
  • Gold coin with bust of Washington facing slightly left
    Washington on a dollar coin
Example 1
{{Galerija
|title=Cultural depictions of George Washington
|width=120 |height=100
|align=center
|footer=Example 2a
|File:Federal Hall NYC 27.JPG
 |Statue of Washington outside [[Federal Hall National Memorial]] in [[New York City]], overlooking [[Wall Street]]
 |alt1=Statue facing a city building with Greek columns
|File:Mount Rushmore2.jpg
 |Work on Washington portrait at [[Mount Rushmore]], c. 1932
 |alt2=Profile of stone face on mountainside, with 3 workers.
|File:2006 Quarter Proof.png
 |Washington on a [[Quarter (United States coin)|quarter]]
 |alt3=Shiny silver coin with profile of Washington bust. 
|File:United_States_one_dollar_bill,_obverse.jpg
 |[[United States one-dollar bill|U.S. one-dollar bill]]
 |alt4=Front side of U.S. dollar bill, with Washington portrait in center.
|File:George Washington Presidential $1 Coin obverse.png
 |Washington on a [[dollar coin (United States)|dollar coin]]
 |alt5=Gold coin with bust of Washington facing left
}}
Cultural depictions of George Washington
  • Statue facing a city building with Greek columns
    Statue of Washington outside Federal Hall National Memorial in New York City, overlooking Wall Street
  • Profile of stone face on mountainside, with 3 workers.
    Work on Washington portrait at Mount Rushmore, c. 1932
  • Shiny silver coin with profile of Washington bust.
    Washington on a quarter
  • Front side of U.S. dollar bill, with Washington portrait in center.
    U.S. one-dollar bill
  • Gold coin with bust of Washington facing left
    Washington on a dollar coin
Example 2a
Cultural depictions of George Washington
  • Statue facing a city building with Greek columns
    Statue of Washington outside Federal Hall National Memorial in New York City, overlooking Wall Street
  • Profile of stone face on mountainside, with 3 workers.
    Work on Washington portrait at Mount Rushmore, c. 1932
  • Shiny silver coin with profile of Washington bust.
    Washington on a quarter
  • Front side of U.S. dollar bill, with Washington portrait in center
    U.S. one-dollar bill – the caption here is still constrained by the width parameter.
  • Gold coin with bust of Washington facing left
    Washington on a dollar coin
Example 2b

TemplateData

uredi

Place this template on an article or user page to create a gallery of images on that page along with captions. Anyone may place this template.

Parametri predloge[Urejanje podatkov predloge]

ParameterOpisVrstaStanje
titletitle

Title for the overall gallery

Zgled
Pictures of chickens
Nizpredlagano
alignalign

Alignment of the gallery on the page; possible values include left, right, and center

Predlagane vrednosti
left center right
Privzeto
left
Zgled
center
Nizneobvezno
footerfooter

Creates a footer which will appear in the lower right corner of the overall gallery, in small font, of whatever text the editor placing it wishes to put there

Zgled
Early works
Nizneobvezno
stylestyle

This parameter allows an editor to utilize Cascading Style Sheet code

Neznanoneobvezno
captionstylecaptionstyle

This parameter allows an editor to utilize Cascading Style Sheet code for caption

Neznanoneobvezno
statestate

This parameter allows the editor to determine whether or not the gallery will initially appear as either expanded or collapsed for readers

Predlagane vrednosti
expanded collapsed
Privzeto
expanded
Zgled
collapsed
Nizneobvezno
heightheight

determines the maximum height for any image within the gallery

Privzeto
180
Zgled
100
Nizneobvezno
widthwidth

Analogous to height parameter; sets maximum width for any image in the gallery

Privzeto
180
Zgled
120
Nizneobvezno
modemode

Sets the mode used by the inner gallery tag, see Help:Gallery tag for more options

Predlagane vrednosti
traditional nolines packed packed-overlay packed-hover slideshow
Privzeto
traditional
Nizneobvezno
nobordernoborder

Cancel the border surrounding the images

Privzeto
no
Zgled
yes
Nizneobvezno
whitebgwhitebg

Used to disable the white background in the inner gallery tag

Privzeto
yes
Zgled
no
Nizneobvezno

Sledilne kategorije

uredi
  • Kategorija:Strani, ki uporabljajo galerijo z neznanimi parametri (0)
  • Kategorija:Strani, ki uporabljajo galerijo s parametrom captionstyle (0)

Glej tudi

uredi
  • en:Help:Gallery tag
  • {{Cleanup gallery}}, to mark unencyclopedic image galleries
  • {{Gallery layout}}, to apply Gallery-style layout to arbitrary blocks of content such as template output
  • {{Gallery items}}
  • {{Image array}}
  • {{Image frame}}
  • {{Multiple image}}
  • {{Photomontage}}
  • {{Stack}}, where images etc. can be stacked down right hand side avoiding spacing and floating problems
Zgornja dokumentacija je vključena od Predloga:Galerija/dok. (uredi | zgodovina)
Urejevalci lahko eksperimentirajo v peskovnik (ustvari | zrcali) in testniprimeri (ustvari) straneh te predloge.
Prosimo dodajte kategorije v /dok podstran. Podstran tega predloga.
Pridobljeno iz »https://sl.wikipedia.org/w/index.php?title=Predloga:Galerija&oldid=5701379«
Zadnja sprememba: 28. maj 2022, ob 10:55

Jeziki

    • Afrikaans
    • العربية
    • مصرى
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Башҡортса
    • Basa Bali
    • Bikol Central
    • Български
    • भोजपुरी
    • বাংলা
    • Bosanski
    • Català
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Нохчийн
    • کوردی
    • Čeština
    • Cymraeg
    • Dansk
    • Zazaki
    • Ελληνικά
    • English
    • Esperanto
    • Español
    • فارسی
    • Na Vosa Vakaviti
    • Føroyskt
    • Français
    • Gaeilge
    • Galego
    • 客家語 / Hak-kâ-ngî
    • हिन्दी
    • Magyar
    • Հայերեն
    • Jaku Iban
    • Bahasa Indonesia
    • Ilokano
    • 日本語
    • Jawa
    • ქართული
    • Қазақша
    • ភាសាខ្មែរ
    • ಕನ್ನಡ
    • 한국어
    • کٲشُر
    • Kernowek
    • Лезги
    • Ladin
    • Latviešu
    • मैथिली
    • Македонски
    • മലയാളം
    • मराठी
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • नेपाली
    • Nederlands
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • ਪੰਜਾਬੀ
    • Polski
    • پښتو
    • Português
    • Română
    • Русский
    • Scots
    • سنڌي
    • Srpskohrvatski / српскохрватски
    • တႆး
    • Simple English
    • Soomaaliga
    • Shqip
    • Српски / srpski
    • Svenska
    • Ślůnski
    • தமிழ்
    • తెలుగు
    • ไทย
    • Tagalog
    • Türkçe
    • Татарча / tatarça
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Tiếng Việt
    • 吴语
    • 中文
    • 閩南語 / Bân-lâm-gú
    • 粵語
    Wikipedija
    • Wikimedia Foundation
    • Powered by MediaWiki
    • Čas zadnje spremembe strani: 10:55, 28. maj 2022.
    • Vsebina je na voljo pod licenco CC BY-SA 4.0, razen če je navedeno drugače.
    • Pravilnik o zasebnosti
    • O Wikipediji
    • Zavrnitve odgovornosti
    • Kodeks ravnanja
    • Razvijalci
    • Statistika
    • O piškotkih
    • Pogoji uporabe
    • Namizno