Difference between revisions of "Template:Src/doc"
(→Usage) |
(→The complete parameter set, with mode = book) |
||
| Line 55: | Line 55: | ||
==== The complete parameter set, with mode = book ==== | ==== The complete parameter set, with mode = book ==== | ||
<div>Designed to be wrapped inside <nowiki><ref name="xxx">...</ref></nowiki> tags.</div> | <div>Designed to be wrapped inside <nowiki><ref name="xxx">...</ref></nowiki> tags.</div> | ||
| + | <tt><nowiki>{{Src|book|title=|author=|pub=|date=|isbn=|url=}}</nowiki></tt><br/> | ||
{{Src|book | {{Src|book | ||
|title=Shadow Wars: The Secret Struggle for the Middle East | |title=Shadow Wars: The Secret Struggle for the Middle East | ||
Revision as of 00:29, 11 August 2019
Usage
Template for references and citations. It has four "modes": news, ref, cite, book
Possible parameters for the first 3 are:
{{{<mode>}}} - one of: [news | ref | cite ]
{{{date}}} - publicate date
{{{url}}} - optional; if not supplied, the plain title is used
{{{title}}} - title of the article / book
{{{quote}}} - article text
{{{website}}} - the name of the website
{{{name}}} - name of the author
{{{archurl}}} - (optional) archive.org's full url
{{{archdate}}} - (optional) date the article was archived
{{{accessdate}}} - (optional) date the article was accessed
Example: news, ref, cite
{{Src
|news
|date=Mar.16.2018
|title=Ian Taylor, chief of world’s biggest oil trader Vitol.
|quote=Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role. Mr Taylor, a prominent [[Conservative party]] donor, joined Vitol in 1985 from Royal Dutch Shell.
|website=The Times
|name=Emily Gosden
|url=https://www.thetimes.co.uk/edition/business/ian-taylor-chief-of-worlds-biggest-oil-trader-vitol-set-to-step-down-tsfhz2bj2
|archurl=https://www.archive.org/..../
|archdate=Jan.01.0000
|accessdate=Dec.31.9999
}}
Example: book
{{Src
|book
|title
|author
|pub
|date
|isbn
|url
}}
The complete parameter set, with mode = news
Useful when collecting together articles for a new page. Having the date first makes it very easy to see.
- Mar.16.2018: Ian Taylor, chief of world’s biggest oil trader Vitol. Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role. Mr Taylor, a prominent Conservative party donor, joined Vitol in 1985 from Royal Dutch Shell. Emily Gosden, The Times. Original archived on Jan.01.0000. Accessed Dec.31.9999.
The complete parameter set, with mode = ref
Ian Taylor, chief of world’s biggest oil trader Vitol. Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role. Mr Taylor, a prominent Conservative party donor, joined Vitol in 1985 from Royal Dutch Shell. Emily Gosden, The Times, Mar.16.2018. Original archived on Jan.01.0000. Accessed Dec.31.9999.
The complete parameter set, with mode = book
{{Src|book|title=|author=|pub=|date=|isbn=|url=}}
"Shadow Wars: The Secret Struggle for the Middle East", Christopher M. Davidson, Oneworld Publications, Oct.06.2017, ISBN: 978-1786071927
The complete parameter set, with mode = cite
Template:Src - something's wrong here.