Difference between revisions of "Template:Url ref"

From The Coppermind
Jump to navigation Jump to search
m (+track pre/post +usage)
(Undo revision 119915 by Fbstj (talk) Seems like that change broke it; I'll undo it for now, and re-do it if that doesn't fix it.)
Tag: Undo
Line 2: Line 2:
   
 
TEXT
 
TEXT
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
+
-->|{{{pre|}}}<!--
   
 
-->[{{{url}}} {{{text}}}]<!--
 
-->[{{{url}}} {{{text}}}]<!--
 
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
 
   
 
--><br><small> &mdash; {{{site}}} {{#if:{{{date|}}}|- {{{date}}}|}}<sup><hash-text link="#">{{{url}}}</hash-text></sup></small><!--
 
--><br><small> &mdash; {{{site}}} {{#if:{{{date|}}}|- {{{date}}}|}}<sup><hash-text link="#">{{{url}}}</hash-text></sup></small><!--
  +
-->{{{post|}}}<!--
   
 
NAME
 
NAME
Line 32: Line 31:
 
[[Category: Sources]]
 
[[Category: Sources]]
 
[[Category: Reference templates]]
 
[[Category: Reference templates]]
 
== Articles using Template ==
 
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
 
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
 

Revision as of 12:26, 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 {{url ref|url=http://...|text=|site=}}

  • {{{url}}} and {{{text}}} the link and link-text
  • {{{site}}} indicates which website the page is on
  • {{{date}}} is the publication date (yyyy-mm-dd)
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated name
  • {{{group}}} sets the reference group