الگوی ویکیمدیا From Wikipedia, the free encyclopedia
این الگو از لوآ استفاده میکند: |
{{نشانی وب|1=آدرس اینترنتی|2=متن نمایشی اختیاری}}
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 |
{{ نشانی وب | example.com }} |
example |
{{ نشانی وب | http://example.com }} |
example |
{{ نشانی وب | www.example.com }} |
www |
{{ نشانی وب | http://www.example.com }} |
www |
{{ نشانی وب | https://www.example.com }} |
www |
{{ نشانی وب | ftp://www.example.com }} |
www |
{{ نشانی وب | ftp://ftp.example.com }} |
ftp |
{{ نشانی وب | http://www.example.com/ }} |
www |
{{ نشانی وب | http://www.example.com/path }} |
www |
{{ نشانی وب | irc://irc.example.com/channel }} |
irc |
{{ نشانی وب | www.example.com/foo }} |
www |
{{ نشانی وب | http://www.example.com/path/ }} |
www |
{{ نشانی وب | www.example.com/foo/ }} |
www |
{{ نشانی وب | 1=http://www.example.com/path?section=17 }} |
www |
{{ نشانی وب | 1=www.example.com/foo?page=42 }} |
www |
{{ نشانی وب | 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.
الگوداده نشانی وب
پارامتر | توضیحات | نوع | وضعیت | |
---|---|---|---|---|
URL | 1 | URL برای پیوند دادن | رشته | ضروری |
Display text | 2 | متنی که به جای URL نمایش داده میشود. توصیه نمیشود. | رشته | اختیاری |
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.