Шаблон:External link/док
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:External link. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:External link
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#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}}