For faster navigation, this Iframe is preloading the Wikiwand page for Шаблон:Url.

Шаблон:Url

Матеріал з Вікіпедії — вільної енциклопедії.

((i)) Документація шаблону[перегляд] [редагувати] [історія] [очистити кеш]

Даний шаблон використовується для одноманітного створення зовнішніх посилань.

Використання

  • ((URL|1=повна адреса (url)|2=необов'язковий опис))
    • спочатку перевіряється зазначена адреса (url), вона є повною адресою або включає схему URI («http:/» або «https:/» або «ftp:/»). Робиться підготовка для опису, якщо він явно не вказаний
    • якщо опис відсутній, буде зображена переведена у нижній регістр адреса без схеми URI і слеша
  • ((URL|2=опис))
    • якщо адреса (url) не вказана шаблон виведе опис без змін
  • ((URL))
    • якщо обидва параметри не вказані або вказані помилково, буде згенерований приклад використання шаблону, з посиланням на цю сторінку.

Обмеження

Даний шаблон не може сформувати коректне посилання у випадку коли в адресі (url) є знак рівно — = і решітка — #. Використовуйте звичайні засоби в таких випадках.

Зразки

Код Результат
((Url)) ((URL|example.com|необов'язковий опис))
((Url|)) ((URL|example.com|необов'язковий опис))
((Url|EXAMPLE.com)) example.com
((Url|example.com)) example.com
((Url|www.example.com)) www.example.com
((Url|http://www.example.com)) www.example.com
((Url|https://www.example.com)) www.example.com
((Url|ftp://www.example.com)) www.example.com
((Url|ftp://ftp.example.com)) ftp.example.com
((Url|http://www.example.com/)) www.example.com
((Url|http://www.example.com/path)) www.example.com/path
((Url|www.example.com/foo)) www.example.com/foo
((Url|http://www.example.com/foo|посилання)) посилання
((Url|www.example.com/foo|посилання)) посилання
((Url|http://www.example.com/path/)) www.example.com/path/
((Url|www.example.com/foo/)) www.example.com/foo/
((Url|http://www.example.com/foo/|посилання)) посилання
((Url|www.example.com/foo/|посилання)) посилання
((Url|http://www.example.com/foo/?a)) www.example.com/foo/?a
((Url|http://www.example.com/foo/?a|посилання)) посилання

Див. також

{{bottomLinkPreText}} {{bottomLinkText}}
Шаблон:Url
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?