Difference between revisions of "Template:Url ref"

From The Coppermind
Jump to navigation Jump to search
(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
m (Huh, that actually did make it work on my user page... looks like Joe was just missing a |)
Line 1: Line 1:
<includeonly>{{#tag:ref<!--
+
<includeonly>{{#tag:ref|<!--
   
 
TEXT
 
TEXT
-->|{{{pre|}}}<!--
+
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-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 31: Line 32:
 
[[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 15:50, 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

Articles using Template