Šablon:External link
Ovaj šablon upotrebljava zamršene funkcije vikisintakse.
Savetuje Vam se da se upoznate sa postavkama za šablon i parser funkcijama pre uređivanja. Ako Vaša izmena prouzrokuje neočekivane probleme, molimo da je vratite što je pre moguće, zato što se ovaj šablon verovatno koristi na velikom broju stranica. Imajte na umu da možete da provodite eksperimente i da trebate da testirate svaku eventualnu izmenu, ili na stranici Pesak za šablone ili na sopstvenoj korisničkoj podstranici. |
Note: This template is currently for experimental/testing purposes only.
Usage
urediNamed parameters
uredi- 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.
|name=Example link
produces: Example link- name-style: Can be used to define a custom text style for the
|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.
|site=[[example.com|Example website]]
produces: External link at Example website- site-style: Can be used to define a custom text style for the
|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.
|official=y
produces: External link (official website) - language: The
|language=
parameter accepts an ISO 639 language code.|language=eo
produces: External link (in esperanto) 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.
|registration=y
produces: External link (requires registration) - subscription: Define if the link requires a subscription.
|subscription=y
produces: External link (requires subscription) - flash: Define if the link requires Adobe Flash.
|flash=y
produces: External link (requires Adobe Flash) - plugin: Define if the link requires a browser plugin.
|plugin=y
produces: External link (requires plugin) - requires: Can be used to describe other website requirements not covered by one of the above parameters. Can be wikilinked.
|requires=requires a [[web browser]]
produces: External link (requires a web browser) - requires-style: Can be used to override the text style used by the
|official=
,|language=
,|registration=
,|subscription=
,|flash=
,|plugin=
, and|requires=
parameters. - template: Name of the calling template, used for error messages. Example:
|template=External link template name
- text: Text used between the
|name=
and|site=
parameters. Defaults to:|text= at
- text-style: Can be used to define a custom text style for the
|text=
parameter or the default text used between|name=
and|site=
.
- text-style: Can be used to define a custom text style for the
- notext: Can be used to omit the text between
|name=
and|site=
parameters. Placing any value after|notext=
(e.g.|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: Example link from Example website
Unnamed parameters
uredi- 1 – url
- 2 – name
- 3 – site
Examples:
{{External link|http://www.example.com/}}
produces:
{{External link|http://www.example.com/|Example link}}
produces:
{{External link|http://www.example.com/|Example link|[[example.com|Example website]]}}
produces:
See also
uredi- Manual of Style (linking)#Non-English-language sites
- Lists of ISO 639 codes - language codes cross-reference
- {{Language icon}}
- {{Official website}}
- {{WS}}
- {{Ill}}