Editing Template:Url ref

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
   
 
TEXT
 
TEXT
-->|{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
+
-->|{{{pre|}}}<!--
   
 
-->[{{{url}}} {{{text}}}]<!--
 
-->[{{{url}}} {{{text}}}]<!--
   
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
+
--> - {{{site}}}<!--
 
-->{{#if:{{{date|}}}|&#32;- <small>{{{date}}}</small>}}<!--
 
  +
-->{{{post|}}}<!--
--><br><small> &mdash; {{{site}}} {{#if:{{{date|}}}|- {{{date}}}|}}</small><!--
 
 
--><span class="cm-tracking"><hash-text link="#">{{{url}}}</hash-text></span><!--
 
   
 
NAME
 
NAME
Line 19: Line 17:
   
 
-->}}<!--
 
-->}}<!--
  +
  +
-->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|[[Category: URL ref with bad arguments]]}}<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
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.
+
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 {{t|url ref|url&#61;<nowiki>https://...</nowiki>|text&#61;|site&#61;}}
+
To use, include {{t|url ref|2=url=<nowiki>http://...</nowiki>|3=text=|4=site=}}
* {{{url}}} and {{{text}}} are the link and link-text
+
* {{{url}}} and {{{text}}} the link and link-text
 
* {{{site}}} indicates which website the page is on
 
* {{{site}}} indicates which website the page is on
* {{{date}}} is the publication date (yyyy-mm-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
 
* {{{name}}} replaces the generated name
 
* {{{name}}} replaces the generated name
 
* {{{group}}} sets the reference group
 
* {{{group}}} sets the reference group
 
* {{{date}}} is the publication date (yyyy-mm-dd)
 
For example, <code><nowiki>{{url ref|url=http://inkthinker.deviantart.com/art/The-Way-of-Kings-Skyeels-180124400|text=Skyeel Illustration Description|site=[[Inkthinker]]'s DeviantArt}}</nowiki></code>, which produces the following in the references list:{{url ref|url=http://inkthinker.deviantart.com/art/The-Way-of-Kings-Skyeels-180124400|text=Skyeel Illustration Description|site=[[Inkthinker]]'s DeviantArt}}
 
<references />
 
 
 
Because this reference template often requires a large amount of text, it's better to replace <code><nowiki><references /></nowiki></code> with
 
 
<pre><references>
 
 
</references></pre>
 
 
and then place all url references between the <code><nowiki><references></nowiki></code> and <code><nowiki></references></nowiki></code> tags. When you do this, you should add <code>|name=''name''</code> to the url reference, where ''name'' is a unique identifier for the reference. Then, you will be able to cite this reference in the body of the article with {{t|ref|name&#61;''name''}}. If you are citing the same url reference multiple times, you must use this method; otherwise it will result in a reference error because the template tries to create two references with the same name.
 
 
Technically, you could place the named url reference somewhere in the body of the article and then use {{t|ref}} to cite that reference elsewhere in the article. Most of the time, however, it's simpler and more elegant to just put the named url ref between the references tags and use {{t|ref}} everywhere in the article.
 
   
 
[[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}}
 

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: