Template:URL: Difference between revisions

From WikiAlpha
m Protected "Template:URL" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:URL|url}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using URL template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:URL]] with unknown parameter "_VALUE_"|ignoreblank=y | 1 | 2 }}<noinclude>{{documentation}}</noinclude>
<includeonly>
<span class="external-url">[{{{1}}} {{{2|Official website}}}]</span>
</includeonly>
<noinclude>
{{Documentation}}
 
== Usage ==
This template creates a formatted external link.
 
=== Syntax ===
<pre>
{{URL|https://example.com|Label text}}
</pre>
 
=== Examples ===
<pre>
{{URL|https://onlypeterpru.com}}
{{URL|https://onlypeterpru.com|Peter Pru Official Website}}
</pre>
 
=== Output ===
https://onlypeterpru.com 
Peter Pru Official Website
</noinclude>

Revision as of 20:51, 4 February 2026


Template:Documentation

Usage

This template creates a formatted external link.

Syntax

{{URL|https://example.com|Label text}}

Examples

{{URL|https://onlypeterpru.com}}
{{URL|https://onlypeterpru.com|Peter Pru Official Website}}

Output

https://onlypeterpru.com Peter Pru Official Website