https://nordiclarp.org/w/index.php?title=Template:URL/doc&feed=atom&action=history
Template:URL/doc - Revision history
2024-03-28T12:02:11Z
Revision history for this page on the wiki
MediaWiki 1.34.2
https://nordiclarp.org/w/index.php?title=Template:URL/doc&diff=9283&oldid=prev
Johannes Axner: /* Microformat */
2018-12-29T23:11:27Z
<p><span dir="auto"><span class="autocomment">Microformat</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 23:11, 29 December 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l49" >Line 49:</td>
<td colspan="2" class="diff-lineno">Line 49:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Microformat ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Microformat ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The template wraps the ''displayed'' URL with a <code>class="url"</code> so that it is included in any parent [[microformat]] which takes a URL parameter - see [[WP:UF|<del class="diffchange diffchange-inline">our </del>microformats project]].</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The template wraps the ''displayed'' URL with a <code>class="url"</code> so that it is included in any parent [[<ins class="diffchange diffchange-inline">Wikipedia:microformat|</ins>microformat]] which takes a URL parameter - see [[<ins class="diffchange diffchange-inline">Wikipedia:</ins>WP:UF|<ins class="diffchange diffchange-inline">the Wikipedia </ins>microformats project]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== TemplateData ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== TemplateData ==</div></td></tr>
</table>
Johannes Axner
https://nordiclarp.org/w/index.php?title=Template:URL/doc&diff=9282&oldid=prev
Johannes Axner at 23:09, 29 December 2018
2018-12-29T23:09:05Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 23:09, 29 December 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>This template can be used to create a formatted external link. It formats the appearance of '''''displayed''''' URLs, while making them ''machine-readable'' as part of emitted [[microformat]] meta-data, inside templates such as infoboxes.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>This template can be used to create a formatted external link. It formats the appearance of '''''displayed''''' URLs, while making them ''machine-readable'' as part of emitted [[<ins class="diffchange diffchange-inline">Wikipedia:microformat|</ins>microformat]] meta-data, inside templates such as infoboxes.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>If you wish to display text instead of the URL (e.g. "[http://example.com website]" instead of {{URL|example.com}}), please '''do not use this template'''. Instead, consider using normal [[Help:Link#External_links|wiki markup]] or [[Template:Official website]]. Displaying text instead of the url will render the microformat data invalid.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>If you wish to display text instead of the URL (e.g. "[http://example.com website]" instead of {{URL|example.com}}), please '''do not use this template'''. Instead, consider using normal [[<ins class="diffchange diffchange-inline">Wikipedia:</ins>Help:Link#External_links|wiki markup]] or [[Template:Official website]]. Displaying text instead of the url will render the microformat data invalid.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>For web-based references, please see [[Wikipedia:Citation templates]].</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>For web-based references, please see [[Wikipedia:<ins class="diffchange diffchange-inline">Citation templates|</ins>Citation templates]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Usage ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Usage ==</div></td></tr>
</table>
Johannes Axner
https://nordiclarp.org/w/index.php?title=Template:URL/doc&diff=8201&oldid=prev
Johannes Axner: 1 revision imported
2018-12-29T13:53:39Z
<p>1 revision imported</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 13:53, 29 December 2018</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Johannes Axner
https://nordiclarp.org/w/index.php?title=Template:URL/doc&diff=8200&oldid=prev
en>Zyxw: /* Examples */ Update examples to include actual output by the template, including <span>...</span> and <wbr/> tags.
2018-08-15T02:34:47Z
<p><span dir="auto"><span class="autocomment">Examples: </span> Update examples to include actual output by the template, including <span>...</span> and <wbr/> tags.</span></p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
{{lua|Module:URL}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
This template can be used to create a formatted external link. It formats the appearance of '''''displayed''''' URLs, while making them ''machine-readable'' as part of emitted [[microformat]] meta-data, inside templates such as infoboxes.<br />
<br />
If you wish to display text instead of the URL (e.g. "[http://example.com website]" instead of {{URL|example.com}}), please '''do not use this template'''. Instead, consider using normal [[Help:Link#External_links|wiki markup]] or [[Template:Official website]]. Displaying text instead of the url will render the microformat data invalid.<br />
<br />
For web-based references, please see [[Wikipedia:Citation templates]].<br />
<br />
== Usage ==<br />
* <code><nowiki>{{URL|</nowiki>''example.com''<nowiki>}}</nowiki></code><br />
** 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.<br />
** Parameter 2 (<code><nowiki>{{URL|</nowiki>''url name''<nowiki>|</nowiki>''optional display text''<nowiki>}}</nowiki></code>) is '''deprecated'''. See note above for more information and alternative templates.<br />
<br />
===URL with {{=}} character requires numbered parameters===<br />
If the URL contains an equals sign, as is common in a query string, the parameter {{para|1}} must be used for the URL (<code><nowiki>{{URL|</nowiki>1=''example.com''<nowiki>}}</nowiki></code>). 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 (<code><nowiki>{{URL|</nowiki>1=''url name''<nowiki>|</nowiki>2=''optional display text''<nowiki>}}</nowiki></code>); otherwise it will override the value of the first parameter.<br />
<br />
{|class="wikitable"<br />
|-<br />
! Code !! Result<br />
|-<br />
| <code><nowiki>{{</nowiki> {{BASEPAGENAME}} <nowiki>| 1=https://example.com/?id=42 }}</nowiki></code><br />
| {{ {{BASEPAGENAME}} | 1=https://example.com/?id=42 }}<br />
|-<br />
| <code><nowiki>{{</nowiki> {{BASEPAGENAME}} <nowiki>| 1=https://example.com/?id=42 | 2=Title }}</nowiki></code><br />
| {{ {{BASEPAGENAME}} | 1=https://example.com/?id=42 | 2=Title }}<br />
|}<br />
<br />
=== Examples ===<br />
To the right of each example is the displayed output. Below each example is the actual output including {{tag|span}} and <code>&lt;wbr/></code> tags.<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | EXAMPLE.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | example.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | http://example.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | www.example.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | http://www.example.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | https://www.example.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | ftp://www.example.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | ftp://ftp.example.com }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | http://www.example.com/ }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | http://www.example.com/path }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | irc://irc.example.com/channel }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | www.example.com/foo }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | http://www.example.com/path/ }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | www.example.com/foo/ }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | 1=http://www.example.com/path?section=17 }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | 1=www.example.com/foo?page=42 }}</nowiki>}}<br />
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | www.example.com | example.com }}</nowiki>}}<br />
<br />
== Microformat ==<br />
The template wraps the ''displayed'' URL with a <code>class="url"</code> so that it is included in any parent [[microformat]] which takes a URL parameter - see [[WP:UF|our microformats project]].<br />
<br />
== TemplateData ==<br />
{{TemplateDataHeader}}<br />
<templatedata><br />
{<br />
"description": "A template to display and format a URL, inside other tempates",<br />
"params": {<br />
"1": {<br />
"label": "URL",<br />
"description": "The URL to be linked",<br />
"type": "string",<br />
"required": true<br />
},<br />
"2": {<br />
"label": "Display text",<br />
"description": "The text to be displayed instead of the URL. Deprecated",<br />
"type": "string",<br />
"required": false,<br />
"deprecated": true<br />
}<br />
}<br />
}<br />
</templatedata><br />
<br />
== See also ==<br />
* {{Tl|Official URL}}<br />
* {{Tl|Official website}}<br />
* {{Tl|Plain link}}<br />
<br />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |<br />
<!-- Categories below this line, please; interwikis at Wikidata --><br />
[[Category:External link templates]]<br />
}}</includeonly></div>
en>Zyxw