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:

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 за овај шаблон, која се користи у TemplateWizard, Визуелном уређивачу и другим алаткама. Погледајте месечни извештај о употреби парамера за овај шаблон у чланцима заснованим на овом TemplateData.

TemplateData за Zvanični veb-sajt-lat

The purpose of this template is to provide a standard format for labeling links to official websites.

Параметри шаблона

ПараметарОписВрстаСтатус
URL1 URL

The URL that the template will link to

текстнеобавезно
URL Textname

The text the URL will display. If not provided this will default to 'Official website''

текстнеобавезно
Mobile Websitemobile

If the website has a different 'official website' for mobile devices this website can be listed here

текстнеобавезно
Requires Flashformat

If the website requires Adobe Flash Player software to be displayed, set this parameters value to 'flash'

текстнеобавезно

See also уреди