Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

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 domain
+
* {{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.org
  • title - the title of the page, to be used as the visible link. E.g. Example Domain
  • date - 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