توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]


استفاده

  • {{نشانی وب|1=آدرس اینترنتی|2=متن نمایشی اختیاری}}
    • The first parameter is parsed to see if it takes the form of a complete URL. If it doesn't start with a URI scheme (such as "http:", "https:", or "ftp:"), an "http://" prefix will be prepended to the specified generated target URL of the link.
    • Parameter 2 is deprecated.

Warning: The parameter 1 must be numbered explicitly if the URL contains an equal sign, as is common in the query string. This applies when the value of the URL is unknown, for example when this template is used in another template specifying the effective URL as a variable value. The deprecated second parameter for the displayed text, if present in legacy uses, must also be explicitly numbered if the first parameter is explicitly numbered; otherwise it will override the value of the first parameter.

نمونه‌ها

کد نتیجه
{{ نشانی وب }} {{URL|example.com|optional display text}}
{{ نشانی وب | }} {{URL|example.com|optional display text}}
{{ نشانی وب | EXAMPLE.com }} example.com
{{ نشانی وب | example.com }} example.com
{{ نشانی وب | http://example.com }} example.com
{{ نشانی وب | www.example.com }} www.example.com
{{ نشانی وب | http://www.example.com }} www.example.com
{{ نشانی وب | https://www.example.com }} www.example.com
{{ نشانی وب | ftp://www.example.com }} www.example.com
{{ نشانی وب | ftp://ftp.example.com }} ftp.example.com
{{ نشانی وب | http://www.example.com/ }} www.example.com
{{ نشانی وب | http://www.example.com/path }} www.example.com/path
{{ نشانی وب | irc://irc.example.com/channel }} irc.example.com/channel
{{ نشانی وب | www.example.com/foo }} www.example.com/foo
{{ نشانی وب | http://www.example.com/path/ }} www.example.com/path/
{{ نشانی وب | www.example.com/foo/ }} www.example.com/foo/
{{ نشانی وب | 1=http://www.example.com/path?section=17 }} www.example.com/path?section=17
{{ نشانی وب | 1=www.example.com/foo?page=42 }} www.example.com/foo?page=42
{{ نشانی وب | www.example.com | example.com }} example.com
{{ نشانی وب | http://www.example.com/foo | link }} link (Deprecated)
{{ نشانی وب | www.example.com/foo | link }} link (Deprecated)
{{ نشانی وب | http://www.example.com/foo/ | link }} link (Deprecated)
{{ نشانی وب | www.example.com/foo/ | link }} link (Deprecated)

میکروفرمت

The template wraps the displayed URL with a class="url" so that it is included in any parent microformat which takes a URL parameter - see our microformats project.

داده‌های الگو

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده نشانی وب

الگویی برای نمایش و فرمت URL

پارامترهای الگو[ویرایش داده‌های الگو]

پارامترتوضیحاتنوعوضعیت
URL1

URL برای پیوند دادن

رشتهضروری
Display text2

متنی که به جای URL نمایش داده می‌شود. توصیه نمی‌شود.

رشتهاختیاری

جستارهای وابسته