Difference between revisions of "Template:Url ref"
m |
m (Tweak ref naming) |
||
(15 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
TEXT |
TEXT |
||
− | -->|{{{pre|}}}<!-- |
+ | -->|{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!-- |
-->[{{{url}}} {{{text}}}]<!-- |
-->[{{{url}}} {{{text}}}]<!-- |
||
− | --> |
+ | -->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!-- |
+ | |||
− | -->{{#if:{{{date|}}}| |
+ | --><br><small> — {{{site}}} {{#if:{{{date|}}}|- {{{date}}}|}}</small><!-- |
− | -->{{{post|}}}<!-- |
||
+ | |||
+ | --><span class="cm-tracking"><hash-text link="#">{{{url}}}</hash-text></span><!-- |
||
NAME |
NAME |
||
− | -->|name={{{name|{{{site}}}- |
+ | -->|name={{{name|{{{site}}}-{{{text}}}|}}}<!-- |
GROUP |
GROUP |
||
Line 19: | Line 21: | ||
--></includeonly><noinclude> |
--></includeonly><noinclude> |
||
− | This template is used to refer to |
+ | 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 {{t|url ref| |
+ | To use, include {{t|url ref|url=<nowiki>https://...</nowiki>|text=|site=}} |
− | * {{{url}}} and {{{text}}} the link and link-text |
+ | * {{{url}}} and {{{text}}} are 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) |
* {{{date}}} is the publication date (yyyy-mm-dd) |
||
Line 30: | Line 32: | ||
* {{{group}}} sets the reference group |
* {{{group}}} sets the reference group |
||
+ | 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}} |
||
− | [[Category: Sources]] |
||
+ | <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=''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}} |
Latest revision as of 02:29, 12 March 2024
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=https://...|text=|site=}}
- {{{url}}} and {{{text}}} are 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|url=http://inkthinker.deviantart.com/art/The-Way-of-Kings-Skyeels-180124400|text=Skyeel Illustration Description|site=[[Inkthinker]]'s DeviantArt}}
, which produces the following in the references list:[1]
- ↑ Skyeel Illustration Description
— Inkthinker's DeviantArt #
Because this reference template often requires a large amount of text, it's better to replace <references />
with
<references> </references>
and then place all url references between the <references>
and </references>
tags. When you do this, you should add |name=name
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 {{ref|name=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 {{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 {{ref}}
everywhere in the article.
Articles using Template[edit]
- Warbreaker (transclusion) (← links | edit)
- Elantris (book) (transclusion) (← links | edit)
- Alcatraz Versus the Evil Librarians (series) (transclusion) (← links | edit)
- Allomancy (transclusion) (← links | edit)
- Bendalloy (transclusion) (← links | edit)
- Adolin Kholin (transclusion) (← links | edit)
- Cosmere (transclusion) (← links | edit)
- The Rithmatist (transclusion) (← links | edit)
- Dalinar Kholin (transclusion) (← links | edit)
- Spren (transclusion) (← links | edit)
- Odium (transclusion) (← links | edit)
- Unpublished works (transclusion) (← links | edit)
- The Alloy of Law (transclusion) (← links | edit)
- Fjorden (transclusion) (← links | edit)
- Axehound (transclusion) (← links | edit)
- White Sand (transclusion) (← links | edit)
- Chull (transclusion) (← links | edit)
- Thaylenah (transclusion) (← links | edit)
- Spanreed (transclusion) (← links | edit)
- Marat (transclusion) (← links | edit)
- Mistborn (series) (transclusion) (← links | edit)
- The Stormlight Archive (transclusion) (← links | edit)
- The Wheel of Time (transclusion) (← links | edit)
- Mythwalker (transclusion) (← links | edit)
- Mistborn Adventure Game (transclusion) (← links | edit)
- A House of Ashes (transclusion) (← links | edit)
- Rysn Ftori (transclusion) (← links | edit)
- The Emperor's Soul (transclusion) (← links | edit)
- Bibliography (transclusion) (← links | edit)
- Skyeel (transclusion) (← links | edit)
- Sigzil (transclusion) (← links | edit)
- Azir (transclusion) (← links | edit)
- Yezier (transclusion) (← links | edit)
- Steen (transclusion) (← links | edit)
- Tu Fallia (transclusion) (← links | edit)
- Triax (transclusion) (← links | edit)
- Babatharnam (transclusion) (← links | edit)
- Mistborn film (transclusion) (← links | edit)
- Mistborn: Birthright (transclusion) (← links | edit)
- Words of Radiance (transclusion) (← links | edit)
- Leyten (transclusion) (← links | edit)
- Unmade (transclusion) (← links | edit)
- Re-Shephir (transclusion) (← links | edit)
- Dai-Gonarthis (transclusion) (← links | edit)
- Bavland (transclusion) (← links | edit)
- Soulstamp (transclusion) (← links | edit)
- Vinebud (transclusion) (← links | edit)
- Steel alphabet (transclusion) (← links | edit)
- Earth (Rithmatist) (transclusion) (← links | edit)
- Shadows for Silence in the Forests of Hell (transclusion) (← links | edit)
- Calamity (transclusion) (← links | edit)
- Prickletac (transclusion) (← links | edit)
- Dreamer (transclusion) (← links | edit)
- Mitosis (transclusion) (← links | edit)
- Moelach (transclusion) (← links | edit)
- Nergaoul (transclusion) (← links | edit)
- Tyn (transclusion) (← links | edit)
- Skyward (transclusion) (← links | edit)
- Rhythm of War (transclusion) (← links | edit)
- Dark One (franchise) (transclusion) (← links | edit)
- Dragonsteel Entertainment (transclusion) (← links | edit)
- Mistborn Adventure Game (rule book) (transclusion) (← links | edit)
- Terris: Wrought of Copper (transclusion) (← links | edit)
- Alloy of Law (rule book) (transclusion) (← links | edit)
- The Lost Metal (transclusion) (← links | edit)
- Adamant (transclusion) (← links | edit)
- Skaa: Tin & Ash (transclusion) (← links | edit)
- Mistborn: House War (transclusion) (← links | edit)
- Ethan Skarstedt (transclusion) (← links | edit)
- Media rights (transclusion) (← links | edit)
- White Sand (prose) (transclusion) (← links | edit)
- Rick Stranger (transclusion) (← links | edit)
- Harmonium (transclusion) (← links | edit)
- The Apocalypse Guard (transclusion) (← links | edit)
- Edgedancer (novella) (transclusion) (← links | edit)
- Steelheart (transclusion) (← links | edit)
- Snapshot (transclusion) (← links | edit)
- Nor'Tallon (transclusion) (← links | edit)
- Tallon (transclusion) (← links | edit)
- Bastille Versus the Evil Librarians (transclusion) (← links | edit)
- Legion (series) (transclusion) (← links | edit)
- Chemoarish (transclusion) (← links | edit)
- Ashertmarn (transclusion) (← links | edit)
- Voidlight (transclusion) (← links | edit)
- Halad (transclusion) (← links | edit)
- Jor (transclusion) (← links | edit)
- Jenin (transclusion) (← links | edit)
- Ristina (transclusion) (← links | edit)
- Legion: Lies of the Beholder (transclusion) (← links | edit)
- Spheres (transclusion) (← links | edit)
- Wind and Truth (transclusion) (← links | edit)
- Glyphs/Index (transclusion) (← links | edit)
- Starsight (transclusion) (← links | edit)
- Yeong-Gwang (transclusion) (← links | edit)
- Skyward (series) (transclusion) (← links | edit)
- Children of the Nameless (transclusion) (← links | edit)
- Rik Hoskin (transclusion) (← links | edit)
- Call to Adventure: The Stormlight Archive (transclusion) (← links | edit)
- Julius Ohta (transclusion) (← links | edit)
- Fritz Casas (transclusion) (← links | edit)