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:Refsnip/Documentation"

From PCGamingWiki, the wiki about fixing PC games
(Created page with ";Description Template to be used in references that want to directly cite from their source. Needs to be used with {{Code|ref}} tags. ;Arguments * {{Code|url}} - full URL to...")
 
m (updated docs)
Line 1: Line 1:
 
;Description
 
;Description
Template to be used in references that want to directly cite from their source. Needs to be used with {{Code|ref}} tags.  
+
This template was previously used as the template for directly citing sources, but was in March 2020 redesign to act as a proxy for {{T|Refurl}} which now handles references with included snippets as well.
  
;Arguments
+
In essence, writing {{T|Refsnip|url={{!}}title={{!}}date={{!}}snippet=}} is the same as writing {{T|Refurl|url={{!}}title={{!}}date={{!}}snippet=}}
* {{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|date}} - date when the page was accessed and used as a reference in YYYY-MM-DD format.
 
* {{Code|snippet}} - citation from the source.
 
  
;Syntax
+
Please see {{T|Refurl}} for the applicable documentation.
<pre><nowiki>{{Refsnip|url=|title=|date=|snippet=}}</nowiki></pre>
 
 
 
;Example
 
{{Code|<nowiki>{{Refsnip|url=http://example.org|title=Example Domain|date=2012-12-21|snippet=This domain is established to be used for illustrative examples in documents.}}</nowiki>}}
 
 
 
{{Refsnip|url=http://example.org|title=Example Domain|date=2012-12-21|snippet=This domain is established to be used for illustrative examples in documents.}}
 
  
 
<includeonly>[[Category:Reference templates]]</includeonly>
 
<includeonly>[[Category:Reference templates]]</includeonly>
 
<noinclude>[[Category:Documentation templates]]</noinclude>
 
<noinclude>[[Category:Documentation templates]]</noinclude>

Revision as of 07:28, 24 March 2020

Description

This template was previously used as the template for directly citing sources, but was in March 2020 redesign to act as a proxy for {{Refurl}} which now handles references with included snippets as well.

In essence, writing {{Refsnip|url=|title=|date=|snippet=}} is the same as writing {{Refurl|url=|title=|date=|snippet=}}

Please see {{Refurl}} for the applicable documentation.