Difference between revisions of "User:DemonDays64/Tor ref"

(Copy of Template:Tor ref for updating to make it work)
 
m (-cats)
 
(4 intermediate revisions by one other user not shown)
Line 7: Line 7:
   
 
-->{{#if:{{{text|{{{2|}}}|}}}<!--
 
-->{{#if:{{{text|{{{2|}}}|}}}<!--
 
-->
-->|{{#if:{{{date|}}}|<!-- -->|{{ref/broken|ref/date}}|<!-- -->}}<!--
 
-->|<!--
 
 
-->}}<!--
 
-->}}<!--
   
 
-->{{{pre|}}}<!--
 
-->{{{pre|}}}<!--
   
-->[[tor:{{{link|{{{1}}}|}}}|{{{text|{{{2|}}}|}}}]]<!--
+
-->[[tor:{{{year}}}/{{{month}}}/{{{day}}}/{{{link|{{{1}}}|}}}|{{{text|{{{title|}}}|}}}]]<!--
   
 
-->{{{post|}}}<!--
 
-->{{{post|}}}<!--
   
--><br><small> &mdash; [[Tor.com]] - {{{date}}}<sup>{{tracking link|Cite: Tor.com/{{{1}}}|}}</sup></small><!--
+
--><br><small> &mdash; [[Tor.com]] - {{{year}}}-{{{month}}}-{{{day}}}<sup>{{tracking link|Cite: Tor.com/{{{1}}}|}}</sup></small><!--
   
 
NAME
 
NAME
Line 33: Line 32:
 
* {{{link}}} replaces the link
 
* {{{link}}} replaces the link
 
* {{{text}}} replaces the description
 
* {{{text}}} replaces the description
* {{{date}}} is the publication date (yyyy-mm-dd)
+
* {{{title}}} is the title
  +
* {{{year}}} is the publication year (yyyy)
  +
* {{{month}}} is the publication month (mm)
  +
* {{{day}}} is the publication day (dd)
 
* {{{pre}}} is included before the link
 
* {{{pre}}} is included before the link
 
* {{{post}}} is included after the link
 
* {{{post}}} is included after the link
Line 39: Line 41:
 
* {{{group}}} sets the reference group
 
* {{{group}}} sets the reference group
   
[[Category: Sources]]
+
[[:Category: Sources]]
[[Category: Reference templates]]
+
[[:Category: Reference templates]]

Latest revision as of 17:44, 19 April 2020

This template is used to refer to URL's. This allows us to track where raw URLs are used, so we can keep them up to date easily.

To use, include {{tor ref|link|description}}

  • {{{link}}} replaces the link
  • {{{text}}} replaces the description
  • {{{title}}} is the title
  • {{{year}}} is the publication year (yyyy)
  • {{{month}}} is the publication month (mm)
  • {{{day}}} is the publication day (dd)
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces {{{text}}} or {{{2}}} as the reference name
  • {{{group}}} sets the reference group

Category: Sources Category: Reference templates