Šablon:Zvanični veb-sajt/dok
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
The purpose of this template is to provide a standard format for labeling links to official websites.
Usage
Basic usage
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permittedLua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
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
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=flashis 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}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|www.example.org}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|//www.example.org}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|http://www.example.org/}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|https://www.example.org/}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|1=http://www.example.org/?action=view}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|http://www.example.org|name=Пример}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|example.org|mobile=http://m.example.org}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
{{Званични веб-сајт|example.org|format=flash}}
|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted |
TemplateData
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
- {{Official URL}} – For automatically inserting the official website Wikidata property
- {{Official blog}} – For blogs
- {{URL}} – For use instead of {{Official website}} in infoboxes