Difference between revisions of "Template:Url ref"

m
added example and clarification. Is there a template that produces code blocks like <pre> without putting each one on its own line?
m
m (added example and clarification. Is there a template that produces code blocks like <pre> without putting each one on its own line?)
* {{{group}}} sets the reference group
 
for example:
<pre> {{url ref|name=luckspren|url=http://inkthinker.deviantart.com/art/The-Way-of-Kings-Skyeels-180124400|text=Skyeel Illustration Description|site=[[Inkthinker]]'s DeviantArt}}</pre>
which produces:{{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/>
 
 
If you are referencing the same URL multiple times on one page you '''must''' use <pre>{{url ref|name}}</pre> (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 <pre><references></pre> and <pre></references></pre>
 
In our example, if you referenced that URL multiple times on the page you would put <pre>{{url ref|luckspren}}</pre> every time it is referenced and put <pre><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></pre>
on the bottom of the page.
[[Category: Sources]]
[[Category: Reference templates]]
Autopatrolled, Editors
8,718

edits