Şablon:Yerleşim bilgi kutusu/birim/belge

Bu şablon {{yerleşim bilgi kutusu}} için tasarlanmış olup aşağıdaki diğer yardımcı şablonlara ölçü birimlerini tanıtmak için kullanılmaktadır:

Its purpose is to determine whether those templates call one of the subtemplates that displays metric units first (the default):

or one of the subtemplates that displays imperial units (U.S. units) first:

or the following subtemplates if an yüzölçümü is specified in dönüms:

Kullanımı değiştir

The template handles up to three unnamed parameters.

  1. Text which specifies preference to display either metric or İmparatorluk units first. It is specified as unit_pref in {{yerleşim bilgi kutusu}}, then passed as pref to one of three display subtemplates (/yüzölçümü, /yoğunluk, /rakım).
  2. Country name, used to determine preferene when not given in first parameter. It is specified as subdivision_name in {{yerleşim bilgi kutusu}}, then passed as name to one of three display subtemplates.
  3. The third parameter is only specified by the /yüzölçümü subtemplate, which passes the text yüzölçümü.

The default is to display metric units first, so the template only checks these parameters for values that would indicate the need to display non-metric units first:

  1. İmparatorluk, İngiliz, BK, ABD, Standart
  2. Birleşik Krallık, [[Birleşik Krallık]], Birleşik Devletler, [[Birleşik Devletler]], Amerika Birleşik Devletleri, [[Amerika Birleşik Devletleri]], [[Birleşik Devletler|Amerika Birleşik Devletleri]]
  3. if this template is called by the /yüzölçümü subtemplate, then it also checks parameter #1 for dönüm (after converting it to lowercase)

Örnekler değiştir

Girdi Çıktı
{{yerleşim bilgi kutusu/birim | | }} metrik
{{yerleşim bilgi kutusu/birim | İmparatorluk | }} ingame
{{yerleşim bilgi kutusu/birim | BK | }} ingame
{{yerleşim bilgi kutusu/birim | ABD | }} ingame
{{yerleşim bilgi kutusu/birim | | Birleşik Krallık}} ingame
{{yerleşim bilgi kutusu/birim | | Amerika Birleşik Devletleri}} ingame
{{yerleşim bilgi kutusu/birim|Dönüm|Diğer|yüzölçümü}} metrik
{{yerleşim bilgi kutusu/birim|Dönüm|Diğer}} metrik
{{yerleşim bilgi kutusu/birim|Dönüm|Birleşik Krallık|yüzölçümü}}
In this example, the template never checks for "Dönüm" because it previously
found that parameter #2 contained the name of a country using imperial units.
ingame

Ayrıca bakınız değiştir