Шаблон:Еxтернал линк
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
{{#ifeq:external link |док
|
{{#ifeq:show |show
|| Ово је документациона подстраница за Шаблон:External link. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:External link
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}| Овај шаблон употребљава замршене функције викисинтаксе.
Саветује Вам се да се упознате са поставкама за шаблон и парсер функцијама пре уређивања. Ако Ваша измена проузрокује неочекиване проблеме, молимо да је вратите што је пре могуће, зато што се овај шаблон вероватно користи на великом броју страница. Имајте на уму да можете да проводите експерименте и да требате да тестирате сваку евентуалну измену, или на {{#switch: {{#ifexist:Шаблон:External link/sandbox |sandbox | {{#ifexist:Шаблон:External link/Sandbox |Sandbox | {{#ifexist:Шаблон:External link/test sandbox|test sandbox| {{#ifexist:Шаблон:External link/Test sandbox|Test sandbox| {{#ifexist:Шаблон:External link/test |test | {{#ifexist:Шаблон:External link/Test |Test | {{#ifexist:Шаблон:External link/песак |песак | {{#ifexist:Шаблон:External link/Песак |Песак | {{#ifexist:Шаблон:External link/тест песак |тест песак | {{#ifexist:Шаблон:External link/Тест песак |Тест песак | {{#ifexist:Шаблон:External link/тест |тест | {{#ifexist:Шаблон:External link/Тест |Тест | }} }} }} }} }} }} }} }} }} }} }} }} | sandbox = подстраници /sandbox | Sandbox = подстраници /Sandbox | test sandbox = подстраници /test sandbox | Test sandbox = подстраници /Test sandbox | test = подстраници /test | Test = подстраници /Test | песак = подстраници /песак | Песак = подстраници /Песак | тест песак = подстраници /тест песак | Тест песак = подстраници /Тест песак | тест = подстраници /тест | Тест = подстраници /Тест | #default = страници Песак за шаблоне}} или на сопственој корисничкој подстраници. |
Note: This template is currently for experimental/testing purposes only.
Usage
Named parameters
- url: HTTP link for the site or page.
- name: Name to use for the HTTP link. Defaults to the name of the wiki page where this template is transcluded.
|{{SAFESUBST:#if:name|name=}}Example linkproduces: [http://www.example.com/ {{
#if:
|Example link
|Example link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- name-style: Can be used to define a custom text style for the
|{{SAFESUBST:#if:name|name=}}parameter or the default text.
- name-style: Can be used to define a custom text style for the
- site: Name of the parent site. Can be wikilinked.
|{{SAFESUBST:#if:site|site=}}[[example.com|Example website]]produces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:Example website |{{ #if: ||{{ #if: | at | at }} }} {{ #if: |Example website |Example website }}
}}{{
#if:
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- site-style: Can be used to define a custom text style for the
|{{SAFESUBST:#if:site|site=}}parameter.
- site-style: Can be used to define a custom text style for the
- official: Define if the link is the official website for the topic.
|{{SAFESUBST:#if:official|official=}}yproduces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:y
| ({{
#if:y
|official website
}}{{
#if:
|{{
#if:y
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:y
|,
}}requires registration
}}{{
#if:
|{{
#if:y
|,
}}requires subscription
}}{{
#if:
|{{
#if:y
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:y
|,
}}requires plugin
}}{{
#if:
|{{
#if:y
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- language: The
|{{SAFESUBST:#if:language|language=}}parameter accepts an ISO 639 language code.|{{SAFESUBST:#if:language|language=}}eoproduces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:eo
| ({{
#if:
|official website
}}{{
#if:eo
|{{
#if:
|,
}}in {{SAFESUBST:#if:eo|{{SAFESUBST:#ifexist:Template:ISO 639 name eo|есперанто}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:eo
|,
}}requires registration
}}{{
#if:
|{{
#if:eo
|,
}}requires subscription
}}{{
#if:
|{{
#if:eo
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:eo
|,
}}requires plugin
}}{{
#if:
|{{
#if:eo
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}} English is the default language, and does not need to be noted using this template, unless there is a reason the reader would assume the link to be in a foreign language (e.g. a foreign title).
- registration: Define if the link requires registration.
|{{SAFESUBST:#if:registration|registration=}}yproduces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:y
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:y
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:y
|,
}}requires subscription
}}{{
#if:
|{{
#if:y
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:y
|,
}}requires plugin
}}{{
#if:
|{{
#if:y
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- subscription: Define if the link requires a subscription.
|{{SAFESUBST:#if:subscription|subscription=}}yproduces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:y
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:y
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:y
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:y
|,
}}requires plugin
}}{{
#if:
|{{
#if:y
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- flash: Define if the link requires Adobe Flash.
|{{SAFESUBST:#if:flash|flash=}}yproduces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:y
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:y
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:y
|,
}}requires plugin
}}{{
#if:
|{{
#if:y
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- plugin: Define if the link requires a browser plugin.
|{{SAFESUBST:#if:plugin|plugin=}}yproduces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:y
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:y
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:y
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- requires: Can be used to describe other website requirements not covered by one of the above parameters. Can be wikilinked.
|{{SAFESUBST:#if:requires|requires=}}requires a [[web browser]]produces: [http://www.example.com/ {{
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:requires a web browser | ({{ #if: |official website }}{{ #if: |{{ #if: |, }}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}} }}{{ #if: |{{ #if: |, }}requires registration }}{{ #if: |{{ #if: |, }}requires subscription }}{{ #if: |{{ #if: |, }}requires Adobe Flash }}{{ #if: |{{ #if: |, }}requires plugin }}{{ #if:requires a web browser |{{ #if: |, }}requires a web browser }})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
- requires-style: Can be used to override the text style used by the
|{{SAFESUBST:#if:official|official=}},|{{SAFESUBST:#if:language|language=}},|{{SAFESUBST:#if:registration|registration=}},|{{SAFESUBST:#if:subscription|subscription=}},|{{SAFESUBST:#if:flash|flash=}},|{{SAFESUBST:#if:plugin|plugin=}}, and|{{SAFESUBST:#if:requires|requires=}}parameters. - template: Name of the calling template, used for error messages. Example:
|{{SAFESUBST:#if:template|template=}}External link template name - text: Text used between the
|{{SAFESUBST:#if:name|name=}}and|{{SAFESUBST:#if:site|site=}}parameters. Defaults to:|{{SAFESUBST:#if:text|text=}} at- text-style: Can be used to define a custom text style for the
|{{SAFESUBST:#if:text|text=}}parameter or the default text used between|{{SAFESUBST:#if:name|name=}}and|{{SAFESUBST:#if:site|site=}}.
- text-style: Can be used to define a custom text style for the
- notext: Can be used to omit the text between
|{{SAFESUBST:#if:name|name=}}and|{{SAFESUBST:#if:site|site=}}parameters. Placing any value after|{{SAFESUBST:#if:notext|notext=}}(e.g.|{{SAFESUBST:#if:notext|notext=}}y) will omit the text.{{External link |url=http://www.example.com/ |name=''Example link'' |site= from [[example.com|Example website]] |notext=y}}produces: [http://www.example.com/ {{
#if:
|Example link
|Example link
}}]{{
#if: from Example website |{{ #if:y ||{{ #if: | at | at }} }} {{ #if: | from Example website | from Example website }}
}}{{
#if:
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
Unnamed parameters
- 1 – url
- 2 – name
- 3 – site
Examples:
{{External link|http://www.example.com/}}produces:
#if:
|External link
|External link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
{{External link|http://www.example.com/|Example link}}produces:
#if:
|Example link
|Example link
}}]{{
#if:
|{{
#if:
||{{
#if:
| at
| at
}}
}} {{
#if:
|{{{site}}}
|{{{site}}}
}}
}}{{
#if:
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
{{External link|http://www.example.com/|Example link|[[example.com|Example website]]}}produces:
#if:
|Example link
|Example link
}}]{{
#if:Example website |{{ #if: ||{{ #if: | at | at }} }} {{ #if: |Example website |Example website }}
}}{{
#if:
| ({{
#if:
|official website
}}{{
#if:
|{{
#if:
|,
}}in {{SAFESUBST:#if:{{{language}}}|{{SAFESUBST:#ifexist:Template:ISO 639 name {{{language}}}|{{SAFESUBST:ISO 639 name {{{language}}}}}}}|Шаблон:ISO 639 name undefined}}
}}{{
#if:
|{{
#if:
|,
}}requires registration
}}{{
#if:
|{{
#if:
|,
}}requires subscription
}}{{
#if:
|{{
#if:
|,
}}requires Adobe Flash
}}{{
#if:
|{{
#if:
|,
}}requires plugin
}}{{
#if:
|{{
#if:
|,
}}{{{requires}}}
}})
}}{{#if:http://www.example.com/
||Error: No |{{SAFESUBST:#if:|=}}url specified when using {{External link}}
}}
See also
- Manual of Style (linking)#Non-English-language sites
- Lists of ISO 639 codes - language codes cross-reference
- {{Language icon}}
- {{Official website}}
- {{WS}}
- {{Ill}}