Template:Url ref

From The Coppermind
Revision as of 11:14, 17 August 2020 by King of Herdaz (talk | contribs) (added example and clarification. Is there a template that produces code blocks like <pre> without putting each one on its own line?)
Jump to navigation Jump to search

This template is used to refer to URLs. 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

for example:

 {{url ref|name=luckspren|url=http://inkthinker.deviantart.com/art/The-Way-of-Kings-Skyeels-180124400|text=Skyeel Illustration Description|site=[[Inkthinker]]'s DeviantArt}}

which produces:[1]


If you are referencing the same URL multiple times on one page you must use

{{url ref|name}}

(where "name" is the name you defined in the template) every time it is referenced in the text and put the full template at the bottom of the article between

<references>

and

</references>

In our example, if you referenced that URL multiple times on the page you would put

{{url ref|luckspren}}

every time it is referenced and put

<references>

{{url ref|name=luckspren|url=http://inkthinker.deviantart.com/art/The-Way-of-Kings-Skyeels-180124400|text=Skyeel Illustration Description|site=[[Inkthinker]]'s DeviantArt}}

</references>

on the bottom of the page.

Articles using Template