Šablon:Zvanični veb-sajt/dok
Ovo je dokumentaciona podstranica za Šablon:Zvanični veb-sajt. Sadrži informacije o korišćenju, kategorijama i drugom sadržaju koji nije deo originalne stranice. |
Ovaj šablon koristi Lua modul: |
Ćirilica i latinica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno latinički tekst, koristite {{Zvanični veb-sajt-lat}}. |
The purpose of this template is to provide a standard format for labeling links to official websites.
Usage[uredi izvor]
Basic usage[uredi izvor]
This template can be used without specifying any parameters, if the "official website" Property (P856) is set in the respective article's Wikidata record. Just add {{official website}}
to the article's External weblinks section. If on Wikidata more than one official website is given, the entry tagged with the language being English is automatically preferred.
Advanced usage[uredi izvor]
Four parameters are available:
1=
orURL=
is used to specify the URL. If this parameter is omitted, the value of "official website" Property (P856) on Wikidata is used.- NOTE: If this parameter is specified and doesn't match "official website" Property (P856) on Wikidata, the page is added to Category:Zvanični veb-sajt različit na Vikipodacima i Vikipediji for maintenance.
- If this parameter is specified but the "official website" Property (P856) on Wikidata has not been set, the page is added to Category:Zvanični veb-sajt nije na Vikipodacima for maintenance.
- If this parameter is not specified and there is no official website available on Wikidata, the page is added to Category:Zvanični veb-sajt bez URL-a.
2=
orname=
is used to reformat the title if "Official website" is not suitable.- NOTE: This name should succinctly and accurately describe the external link in relation to the subject. In particular, it should not include the article subject's name as the reader reasonably expects that all external links pertain to the subject.
mobile=
is optionally used if there is a different "official website" for use with Mobile Web devices.format=flash
is optionally used if the website requires Adobe Flash Player software.
Some URLs that contain special characters, such as &
or =
, will break the template. The solution is to prepend the URL with 1=
Code | Result |
---|---|
{{Званични веб-сајт}}
|
Zvanični veb-sajt (URL must be on Wikidata) |
{{Званични веб-сајт|example.org}}
|
Zvanični veb-sajt |
{{Званични веб-сајт|www.example.org}}
|
Zvanični veb-sajt |
{{Званични веб-сајт|//www.example.org}}
|
Zvanični veb-sajt |
{{Званични веб-сајт|http://www.example.org/}}
|
Zvanični veb-sajt |
{{Званични веб-сајт|https://www.example.org/}}
|
Zvanični veb-sajt |
{{Званични веб-сајт|1=http://www.example.org/?action=view}}
|
Zvanični veb-sajt |
{{Званични веб-сајт|http://www.example.org|name=Пример}}
|
Пример |
{{Званични веб-сајт|example.org|mobile=http://m.example.org}}
|
Zvanični veb-sajt (мобилни) |
{{Званични веб-сајт|example.org|format=flash}}
|
Zvanični veb-sajt (neophodan Adobe Flash Player) |
TemplateData[uredi izvor]
TemplateData za Zvanični veb-sajt
Ovaj šablon pruža standardni format za postavljanje veze do zvaničnog veb-sajta.
Parametar | Opis | Vrsta | Status | |
---|---|---|---|---|
URL | 1 URL | Veza do zvaničnog veb-sajta. | tekst | obavezno |
Tekst | name | Tekst veze koji će se prikazati. Ukoliko ostane prazno, prikazaće se ''Zvanični veb-sajt''.
| tekst | predloženo |
Veb-sajt za telefon | mobile | Uneti ukoliko veb-sajt ima razičit sajt za telefone. | tekst | neobavezno |
Potreban Flash Player? | format | Uneti 'flash' ukoliko veb-sajt zahteva Adobe Flash Player da bi se prikazao.
| tekst | neobavezno |
See also[uredi izvor]
- {{Official URL}} – For automatically inserting the official website Wikidata property
- {{Official blog}} – For blogs
- {{URL}} – For use instead of {{Official website}} in infoboxes