Difference between revisions of "Template:Refurl/Documentation"
From PCGamingWiki, the wiki about fixing PC games
(Created page with ";Description Template to be used in references that only link to a page. ;Arguments * {{Code|url}} - full URL to page, including protocol. E.g. http://example.org * {{Code|ti...") |
m |
||
Line 1: | Line 1: | ||
;Description | ;Description | ||
− | Template to be used in references that only link to a page. | + | Template to be used in references that only link to a page. Needs to be used with {{Code|ref}} tags. |
;Arguments | ;Arguments | ||
* {{Code|url}} - full URL to page, including protocol. E.g. http://example.org | * {{Code|url}} - full URL to page, including protocol. E.g. http://example.org | ||
− | * {{Code|title}} - the title of the page, to be used as the visible link. E.g. Example | + | * {{Code|title}} - the title of the page, to be used as the visible link. E.g. Example Domain |
* {{Code|date}} - date when the page was accessed and used as a reference. | * {{Code|date}} - date when the page was accessed and used as a reference. | ||
;Syntax | ;Syntax | ||
<pre><nowiki>{{Refurl|url=|title=|date=}}</nowiki></pre> | <pre><nowiki>{{Refurl|url=|title=|date=}}</nowiki></pre> | ||
+ | |||
+ | ;Example | ||
+ | {{Code|<nowiki>{{Refurl|url=http://example.org|title=Example Domain|date=2012-12-21}}</nowiki>}} | ||
+ | |||
+ | {{Refurl|url=http://example.org|title=Example Domain|date=2012-12-21}} | ||
<includeonly>[[Category:Reference templates]]</includeonly> | <includeonly>[[Category:Reference templates]]</includeonly> | ||
<noinclude>[[Category:Documentation templates]]</noinclude> | <noinclude>[[Category:Documentation templates]]</noinclude> |
Revision as of 08:15, 12 August 2016
- Description
Template to be used in references that only link to a page. Needs to be used with ref
tags.
- Arguments
url
- full URL to page, including protocol. E.g. http://example.orgtitle
- the title of the page, to be used as the visible link. E.g. Example Domaindate
- date when the page was accessed and used as a reference.
- Syntax
{{Refurl|url=|title=|date=}}
- Example
{{Refurl|url=http://example.org|title=Example Domain|date=2012-12-21}}
Example Domain - last accessed on 2012-12-21