Tolkien Gateway

Template:Webcite

(Difference between revisions)
m (Usage)
(Added more default website)
Line 1: Line 1:
<includeonly>{{t|1={{{author}}}, |1{{{author|}}}=}}"[{{{articleurl}}} {{{articlename|}}}]" {{t|1=(dated {{#time: d F Y|{{{dated}}}}})|1{{{dated|}}}=}} on {{#switch:{{{website}}} | TORN = [http://www.theonering.net TheOneRing.net] | BBC = [http://www.bbc.co.uk/news BBC News] | TL = [http://www.tolkienlibrary.com Tolkien Library] | #default = {{{website}}} }} (accessed {{#time: d F Y|{{{accessed|}}}}})</includeonly><noinclude>
+
<includeonly>{{t|1={{{author}}}, |1{{{author|}}}=}}"[{{{articleurl}}} {{{articlename|}}}]" {{t|1=(dated {{#time: d F Y|{{{dated}}}}})|1{{{dated|}}}=}} on {{#switch:{{{website}}} | TORN = [http://www.theonering.net TheOneRing.net] | BBC = [http://www.bbc.co.uk/news BBC News] | TL = [http://www.tolkienlibrary.com Tolkien Library] | TB = [http://www.tolkienbooks.net/ TolkienBooks.net] | TG = [http://www.lysator.liu.se/tolkien-games/ Tolkien computer games] | Arda = [http://www.uib.no/People/hnohf/ Ardalambion] | #default = {{{website}}} }} (accessed {{#time: d F Y|{{{accessed|}}}}})</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
 
{{webcite|author=|articleurl=|articlename=|dated=|website=|accessed=}}
 
{{webcite|author=|articleurl=|articlename=|dated=|website=|accessed=}}
 
</pre>
 
</pre>
Where<br/>
+
Where:-
'''author''' is the author of the article (''optional'');<br/>
+
*'''author''' is the author of the article (''optional'');
'''articleurl''' is the URL of the article;<br/>
+
*'''articleurl''' is the URL of the article;
'''articlename''' is the name of the article (''optional'');<br/>
+
*'''articlename''' is the name of the article (''optional'');
'''dated''' is the date of the article (''optional'');<br/>
+
*'''dated''' is the date of the article (''optional'');
'''website''' is the name and URL of the website;<br/>
+
*'''website''' is the name and URL of the website;
'''accessed''' is the date you accessed the article.
+
*'''accessed''' is the date you accessed the article.
 +
 
 +
===Default Websites===
 +
You can put these in the "website" field and the name and URL will be automatically filled in:-
 +
*'''Arda''' = [http://www.uib.no/People/hnohf/ Ardalambion]
 +
*'''BBC''' = [http://www.bbc.co.uk/news BBC News]
 +
*'''TB''' = [http://www.tolkienbooks.net/ TolkienBooks.net]
 +
*'''Games''' = [http://www.lysator.liu.se/tolkien-games/ Tolkien computer games]
 +
*'''TL''' = [http://www.tolkienlibrary.com Tolkien Library]
 +
*'''TORN''' = [http://www.theonering.net TheOneRing.net]
 
[[Category:Citation templates]]</noinclude>
 
[[Category:Citation templates]]</noinclude>

Revision as of 19:15, 18 December 2011

Usage

{{webcite|author=|articleurl=|articlename=|dated=|website=|accessed=}}

Where:-

  • author is the author of the article (optional);
  • articleurl is the URL of the article;
  • articlename is the name of the article (optional);
  • dated is the date of the article (optional);
  • website is the name and URL of the website;
  • accessed is the date you accessed the article.

Default Websites

You can put these in the "website" field and the name and URL will be automatically filled in:-