İçeriğe atla

Şablon:Overlay

Vikipedi, özgür ansiklopedi
Şablon belgelemesi[gör] [değiştir] [geçmiş] [temizle]

Vikipedi'de Overlay şablonu ek üst sayfa veya bir şeyin üstüne konulan katman işaretçisi olarak düşünülebilir.

Görüntü katmanı

[kaynağı değiştir]

Resimlerin üzerini numaralandırmak, etiketlemek veya renkli etiketlerle belirli noktalara işaret koyarak bağlantı vermeye yarar. Bir resme en fazla 30 adet, bir noktaya en fazla 3 adet işaret konulabilir.

Kullanılabilecek tipik işaretçi renkleri şunlardır:

Renk Örnek
kırmızı
1
50
mavi
1
50
yeşil
1
50
kırmızımsı kahverengi
1
50
kahverengi
1
50
sarı
1
50

Renklerin her biri ayrı olarak ayarlanabilir. Her işaretçi rengini bir önceki işaretçiden alır. Bu yüzden sadece ilk işaretçi grubunun renginin ayarlanmaya ihtiyacı vardır.

Her işaretçi şablonlar sayesinde vikibağlantılanarak düzenlenebilir.

İşaretçi katmanı 'hayır' (no) olarak ayarlanarak pasifleştirilebilir ve sadece resmin ve katmanın görüntülenmesi sağlanabilir. Bu ayarlama, özellikle resimde renkli etiketlemeler bulunduğunda kullanışlıdır. Buna örnek olarak aşağıdaki Örümceğin organları kısmına bakabilirsiniz.

Katman bindirme

[kaynağı değiştir]

Yazı katmanında 3 kolon halinde varsayılan olarak konmuş her bir bindirmeyi resmin altında görebilirsiniz.

Kolon sayısı '0' olarak ayarlanarak katman pasifleştirilebilir.

Katmanlar, bindirme grupları oluşturularak kullanıldığında en fazla 6 grup oluşturulabilir.Her katman grubuna seçimsel olarak başlık verilebilir.

Metin ögelerinin katman sayısı, her katman grubunun içindeki kolonlara göre dengeli şekilde otomatik olarak ayarlanır.

If the start overlay item for the first explicit grouping is after the first overlay item then the overlay text items from the first overlay up to but not including the first explicitly grouped overlay item are displayed as an untitled grouping before the first explicit group.

If an end overlay item is specified for any explicit grouping and there is no following explicit grouping, then the remainder of the overlay items are displayed as an untitled grouping after the last explicit group.

By setting the start of the first explicit grouping after the first overlay item and the end of the sixth explicit grouping before the last overlay item, effectively 8 groupings can be configured, the first and eighth being untitled.

Automatic column balancing

[kaynağı değiştir]

While the template will handle missing set overlay values at the start, that is the first overlay item does not have to be overlay1, the template treats intermediate missing overlays as though they exist for column balancing, and it does not allow for any text wrapped new lines within an overlay item's text.

Undeterminable legend start and ends

[kaynağı değiştir]

If legend titles are provided without a corresponding start or end and the template cannot explicitly determine one from an adjacent legend then it will "guess" and unexpected results might be produced, which might not be stable with any template updates.

Legend start and end ranges can be overlapped. This is either a deficiency or a feature depending on how you look at it. However, overlapping ranges might result in unexpected behaviour, which might not be stable with any template updates.

Double quotes in pop up tips for overlays

[kaynağı değiştir]

Double quotes, ", cannot be placed in overlay tips when form = text or when form = colour are used. To include a double quote use its HTML coding, ".

Double quotes are always allowed in the overlay, but if the overlay tip for that overlay is not set separately, the tip, which defaults to the same text as the overlay, will probably not display correctly. The overlay tip for an overlay with double quotes in it should always be set explicitly when form = text or when form = colour are used.

{{overlay
| image        = 
| width        = 
| height       = 
| columns      = 
| grid         = 
| link         = 
| legendbox    = 
| float        = 
| overlay      = 
| border       = 
| legend1title = 
| legend1start = 
| legend1end   = 
<!-- ...up to 6... -->
| overlay1form = 
| overlay1     = 
| overlay1colour = 
| overlay1tip  = 
| overlay1left = 
| overlay1top  = 
| overlay1link = 
<!-- ...up to 30... -->
}}

Editing grid and coordinates

[kaynağı değiştir]

To assist in determining the position of each overlay a coordinate grid showing from the left ordinates and from the top ordinates can be displayed by setting the grid parameter to yes:

| grid         = yes

The coordinate grid is 900 x 900, so if the image is set to be smaller than this, the page content may be off scrolled, etc. The presentation will return to normal when the grid parameter is removed or set to a value other than yes.

Note that the top ordinate is the position of the top of the overlay from the top of the image and the left ordinate is the left of the overlay from the left of the image.

Form = colour

[kaynağı değiştir]

When setting

| overlayNform = colour

then the overlays still use up numbered positions within the list of overlays. Accordingly, if using a mixture of image and-or text forms with colour forms, then gaps will appear in the number sequence where a colour form overlay is specified.

It might be generally best if colour form overlays are always set as the last overlays. See Spider's main organs below for example.

To assist editors, a full 30 overlays but minimal skeleton is provided below:

Not: Örnekteki veriler doğruluk içermeyebilir.

Brisbane (with grid turned on)

[kaynağı değiştir]
1
Jack Pesch Bridge, Walter Taylor Bridge (road) (left), Albert Bridge (rail) (center), unnamed bridge (rail) (right)
Eleanor Schonell Bridge (Green Bridge) (pedestrians, pedal cycles, buses)
Merivale Bridge (rail)
William Jolly Bridge (road)
Victoria Bridge
Captain Cook Bridge
Story Bridge
Pacific Motorway
Suncorp Stadium (Lang Park) (Rugby league/Rugby Union/Soccer ground)
Norman Creek
Oxley Creek
Brisbane River
Indooroopilly Shoppingtown
"The Gabba" (Woolloongabba cricket ground)
South Bank arts and recreation precinct
Central business district
17
University of Queensland (UoQ) St Lucia Campus
City Botanic Gardens
19
Queensland University of Technology (QUT) Gardens Point Campus
Goodwill Bridge (pedestrians and pedal cycles)
21
Hospital
Mater Private Hospital
Roma Street Rail Station
Roma Street Parkland
New Farm Park
26
Victoria Park Golf Course
Royal National Association Exhibition Grounds
28
Floating pedestrian concourse
Inner City Bypass (rail) (left) (road) (right)
30
Long Pocket Golf Course

Charlotte Pass Köyü

[kaynağı değiştir]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Accommodation and service buildings in Charlotte Pass Village
1
Kosciuszko Chalet Hotel
2
Charlotte Pass Ski Centre
3
Bella Vista Staff Lodge (Cell Block, Cellavista)
4
Kosciuszko Alpine Club
5
Knockshannoch Lodge
6
Jerrabomberra Lodge
7
Spencer's Creek Lodge
8
Stillwell Lodge
9
Southern Alps Ski Lodge
10
Pygmy Possum Lodge
11
Snowbird Lodge
12
Arlberg Lodge
13
Burrawong Lodge
14
Alitji Lodge
15
Tar Gan Gil Lodge
Other facilities and features (Guthries Poma (Platter lift) and Pulpit T-Bar not shown)
16
Sewage plant (Shakespear's Lodge)
17
Basin Poma
18
Kosi Carpet (Magic Carpet (Moving carpet))
19
Kangaroo Ridge Triple Chairlift
20
"Fox hole" at the eastern end of Stillwell Ridge
21
Workshop

Örümceğin organları (önceden etiketlenmiş resim)

[kaynağı değiştir]
Spider's main organs[1]
1Fang (chelicera)
2Venom gland
3Brain
4Pumping stomach
5Forward aorta branch
6Digestive cecum
7Heart
8Midgut
9Malphigian tubules
10Cloacal chamber
11Rear aorta
12Spinneret
13Silk gland
14Trachea
15Ovary (female)
16Book lung
17Nerve cord
18Legs
19Pedipalp
Physiological systems[1]
  Nervous system
  Digestive & excretory system
  Circulatory system
  Respiratory system
  Reproductive system

Şablon parametreleri

[kaynağı değiştir]
Parametre Adı Gereklilik Açıklama Değer
image hayır Resim. Eğer resim yoksa sadece katman gösterilir. Resmin adı.
width hayır Resmin piksel olarak genişliği. Varsayılan 500. Sayı.
height hayır Resmin piksel olarak yüksekliği. Varsayılan 500. Sayı.
columns hayır Katmanın gösterileceği kolon sayısı. Varsayılan 3. Set to 0 to not display any legend. Sayı == 0, 1, 2, 3, . . .
grid hayır Set to 'yes' to turn on the coordinate grid to allow easier determination of overlay coorindates while editing. Defaults to 'no'. All values other than 'yes' are equivalent to 'no'. Text == yes.
link hayır Set to 'yes' to turn on default linking of overlay and legend entry. Defaults to 'no'. All values other than 'yes' are equivalent to 'no'. Text == yes.
legendbox hayır Set to 'no' to turn off a box / border around each legend group set of overlays. Defaults to 'yes'. All other values other than 'no' are equivalent to 'yes'. Text == no.
float hayır Floats the image and legend. Defaults to centering the image and legend on the page. Text == right, left.
overlay hayır Determines whether or not the overlays are presented when an image is available. Defaults to 'yes'. All values other than 'no' are equivalent to 'yes'. Text == no.
border hayır Determines whether or not a border is placed around the whole presentation. Defaults to 'yes'. All values other than 'no' are equivalent to 'yes'. Text == no.
legend1title hayır Text for legend1 title. Optionally linked text.
legend1start hayır The number of the first overlay to appear in legend1. Defaults to the first overlay set, otherwise to the previous legend end plus 1 if there is a previous legend. Number == 1, . ., 30.
legend1end hayır The number of the last overlay to appear in legend1. Defaults to the next legend start less 1 if there is a next legend, otherwise to the last set overlay. Number == 1, . ., 30.
Both legend starts and legend ends do not need to be provided. Legend starts only, or, legend ends only, for each legend may be provided.
overlay1form hayır The form of the overlays. The default form is an image number, for example,
1
. Other settings allow textual numbers, for example, 1, or coloured tags, for example,   . Defaults to the previous overlay form, or to 'image' if no previous overlay form.
Text == image, text, colour/color.
overlay1 hayır Text for overlay1 for the legend. Defaults to overlay1tip if any. Text. Do not link. The template will link.
overlay1colour hayır Colour of overlay1. Defaults to the previous overlay colour, or to 'red' if no previous overlay colour. Text == red, green, blue.
overlay1tip hayır Pop up tool tip text to appear when the screen pointer is over overlay1. Defaults to overlay1. Text.
overlay1left hayır Distance in pixels of the left edge of overlay1 from the left side of the image. Number.
overlay1top hayır Distance in pixels of the top edge of overlay1 from the top side of the image. Number.
overlay1link hayır Text to be used as a link for the overlay legend text. Defaults to overlay1 if link is not set to no. Text. Do not link.
overlay1left1 hayır The same as overlay1left. As per overlay1left.
overlay1top1 hayır The same as overlay1top. As per overlay1top.
overlay1left2 hayır The left ordinate for a second position of overlay1. As per overlay1left.
overlay1top2 hayır The top ordinate for a second position of overlay1. As per overlay1top.
overlay1left3 hayır The left ordinate for a third position of overlay1. As per overlay1left.
overlay1top3 hayır The top ordinate for a third position of overlay1. As per overlay1top.

Ayrıca bakınız

[kaynağı değiştir]
  • {{Annotated image}}, resmi kırpma ve üzerine metin yerleştirmeye izin verir,
  • {{Site plan}}, seçilebilir harita üzerine işaretçi resmi ve boyutu eklemeye yardımcı olur,
  • {{Superimpose}}, tam olarak bir resmi diğer resmin üstüne oturtur
  • {{Superimpose2}}, en fazla 50 resmi katman olarak birbirilerinin üzerine oturtur
  • {{Location map}}, harita koordinat konumuna tek resim koyabilmek için,
  • {{Konum haritası+}} sınırsız işaretçi ve etiket koymak için,
  • Commons:Category:Map pointers - Wikimedia Commons işaretçi sembolleri listesi.
  1. ^ a b Ruppert, E.E.; Fox, R.S.; Barnes, R.D. (2004). Invertebrate Zoology (7 bas.). Brooks / Cole. ss. 571–584. ISBN 0030259827.  Kaynak kaldırılmış |lastauthoramp= parametresini kullanıyor (yardım)