Шаблон:Zvanični veb-sajt-lat
Ovaj šablon pokreće Lua: |
Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{Званични веб-сајт}}. |
The purpose of this template is to provide a standard format for labeling links to official websites.
Usage
уредиBasic usage
уреди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=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}}
|
Zvanični veb-sajt (URL must be on Wikidata) |
{{Zvanični veb-sajt|example.org}}
|
Zvanični veb-sajt |
{{Zvanični veb-sajt|www.example.org}}
|
Zvanični veb-sajt |
{{Zvanični veb-sajt|//www.example.org}}
|
Zvanični veb-sajt |
{{Zvanični veb-sajt|http://www.example.org/}}
|
Zvanični veb-sajt |
{{Zvanični veb-sajt|https://www.example.org/}}
|
Zvanični veb-sajt |
{{Zvanični veb-sajt|1=http://www.example.org/?action=view}}
|
Zvanični veb-sajt |
{{Zvanični veb-sajt|http://www.example.org|name=Primer}}
|
Primer |
{{Zvanični veb-sajt|example.org|mobile=http://m.example.org}}
|
Zvanični veb-sajt (mobilni) |
{{Zvanični veb-sajt|example.org|format=flash}}
|
Zvanični veb-sajt (neophodan Adobe Flash Player) |
TemplateData
уредиTemplateData за Zvanični veb-sajt-lat
The purpose of this template is to provide a standard format for labeling links to official websites.
Параметар | Опис | Врста | Статус | |
---|---|---|---|---|
URL | 1 URL | The URL that the template will link to | текст | необавезно |
URL Text | name | The text the URL will display. If not provided this will default to 'Official website'' | текст | необавезно |
Mobile Website | mobile | If the website has a different 'official website' for mobile devices this website can be listed here | текст | необавезно |
Requires Flash | format | If the website requires Adobe Flash Player software to be displayed, set this parameters value to 'flash' | текст | необавезно |
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