Шаблон:Zvanični veb-sajt-lat/док
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:Zvanični veb-sajt-lat. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:Zvanični veb-sajt-lat
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
| Ovaj šablon pokreće Lua: |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон
| šablon =
| {{#if:{{#ifeq:Zvanični veb-sajt-lat|Zvanični veb-sajt-lat|1|}} |{{#ifeq:|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Zvanični veb-sajt-lat-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}]]}}.}} |{{#if:{{#ifeq:|var|1|}} |{{#ifeq:|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Zvanični veb-sajt-lat-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:|var||CYRILLICIZED}}}}]]}}.}} |Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Zvanični veb-sajt-lat-lat}}. }} }} |
| other | #default = }}
The purpose of this template is to provide a standard format for labeling links to official websites.
Usage
Basic usage
{{#switch:
| none =
| =
[[File:{{#switch: data
| commons = Commons-logo.svg
| meta|metawiki|m = Wikimedia Community Logo.svg
| wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg
| wikidata|data = Wikidata-logo.svg
| wikiquote|quote|wqt|q = Wikiquote-logo.svg
| wikipedia|wp|w = Wikipedia-logo-v2.svg
| wikisource|source|ws|s = Wikisource-logo.svg
| wiktionary|wkt|wdy|d = Wiktionary-logo-sr.png
| wikinews|news|wnw|n = Wikinews-logo.svg
| wikispecies|species = Wikispecies-logo.svg
| wikiversity|wvy|v = Wikiversity-logo.svg
| wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg
| mediawiki|mw = Mediawiki.png
| outreachwiki|outreach = Wikimedia Outreach.png
| incubator = Incubator-notext.svg
| #default = Wikimedia-logo.svg
}}|40x40px|class=noviewer|alt=|link=
]]
| #default =
}} |
Ovaj {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module = modul | other | #default = šablon }} koristi {{#if: | jedno ili više svojstava Vikipodataka; pogledajte [[#{{{section}}}|§ {{{section}}}]] za detalje. | svojstva Vikipodataka: Lua greška in Modul:Uses_Wikidata-lat at line 10: attempt to index field 'wikibase' (a nil value). }} |
{{#switch:док
|sandbox |testcases |doc= |#default=
}}
{{#switch:
| none =
| =
[[File:{{#switch:
| commons = Commons-logo.svg
| meta|metawiki|m = Wikimedia Community Logo.svg
| wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg
| wikidata|data = Wikidata-logo.svg
| wikiquote|quote|wqt|q = Wikiquote-logo.svg
| wikipedia|wp|w = Wikipedia-logo-v2.svg
| wikisource|source|ws|s = Wikisource-logo.svg
| wiktionary|wkt|wdy|d = Wiktionary-logo-sr.png
| wikinews|news|wnw|n = Wikinews-logo.svg
| wikispecies|species = Wikispecies-logo.svg
| wikiversity|wvy|v = Wikiversity-logo.svg
| wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg
| mediawiki|mw = Mediawiki.png
| outreachwiki|outreach = Wikimedia Outreach.png
| incubator = Incubator-notext.svg
| #default = Wikimedia-logo.svg
}}|40x40px|class=noviewer|alt=|link=
]]
| #default =
}} |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон | šablon = Ovaj šablon | other | #default = {{#switch: {{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module = Ovaj modul | other | #default = {{#switch: {{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Категорија
| category
| other
}}
}}
| category = Ova kategorija | other | #default = Ova stranica }} }} }} {{#if:|prati|prati}} {{#if: | jedno ili više svojstava Vikipodataka; pogledajte [[#{{{section}}}|§ {{{section}}}]] za više detalja. | svojstva Vikipodataka: Lua greška in Modul:Uses_Wikidata-lat at line 10: attempt to index field 'wikibase' (a nil value).}} |
{{#switch:док
|sandbox |testcases |doc=
|#default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон | šablon =
| other | #default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module =
| other | #default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Категорија
| category
| other
}}
}}
| category =
| other | #default =
}}
}}
}}
}}
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 {{{{#if: |замени:}}official website{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}} 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}}
|
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){{#if:|{{#ifeq:{{ safesubst:#if: | {{{1}}}|Шаблон:Zvanični veb-sajt-lat/док}}|1}} | {{{1}}}|Шаблон:Zvanični veb-sajt-lat/док}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Шаблон|0|1}}+{{#ifeq:yes|yes|0|1}} |
{{#if: | {{#ifexist:Категорија: from | }} | [[Категорија:{{#if: | }}]]}}{{#if: | [[Категорија:]]}}}}}}}} |
TemplateData
TemplateData за Zvanični veb-sajt-lat
{{#ifeq:док|sandbox||
}} <TemplateData> {
"description": "The purpose of this template is to provide a standard format for labeling links to official websites.",
"params": {
"1": {
"label": "URL",
"aliases": ["URL"],
"description": "The URL that the template will link to",
"type": "string",
"required": false
},
"name": {
"label": "URL Text",
"description": "The text the URL will display. If not provided this will default to 'Official website",
"type": "string",
"required": false
},
"mobile": {
"label": "Mobile Website",
"description": "If the website has a different 'official website' for mobile devices this website can be listed here",
"type": "string",
"required": false
},
"format": {
"label": "Requires Flash",
"description": "If the website requires Adobe Flash Player software to be displayed, set this parameters value to 'flash'",
"type": "string",
"required": false
}
}
} </TemplateData>
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