Шаблон:Званични веб-сајт/док
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:Званични веб-сајт различит на Википодацима и Википедији 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:Званични веб-сајт није на Википодацима for maintenance.
- If this parameter is not specified and there is no official website available on Wikidata, the page is added to Category:Званични веб-сајт без УРЛ-а.
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 |
---|---|
{{Званични веб-сајт}}
|
Званични веб-сајт (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 за Званични веб-сајт
Овај шаблон пружа стандардни формат за постављање везе до званичног веб-сајта.
Параметар | Опис | Врста | Статус | |
---|---|---|---|---|
URL | 1 URL | Веза до званичног веб-сајта. | текст | обавезно |
Текст | name | Текст везе који ће се приказати. Уколико остане празно, приказаће се ''Званични веб-сајт''.
| текст | предложено |
Веб-сајт за телефон | mobile | Унети уколико веб-сајт има разичит сајт за телефоне. | текст | необавезно |
Потребан Flash Player? | format | Унети 'flash' уколико веб-сајт захтева Adobe Flash Player да би се приказао.
| текст | необавезно |
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