Difference between revisions of "Template:Src/doc"
Jump to navigation
Jump to search
m (→Example: news, ref, cite) |
(→Usage) |
||
| Line 7: | Line 7: | ||
{{{<mode>}}} - one of: [news | ref | cite ] | {{{<mode>}}} - one of: [news | ref | cite ] | ||
{{{date}}} - publicate date | {{{date}}} - publicate date | ||
| − | {{{url}}} - optional | + | {{{url}}} - optional; if not supplied, the plain title is used |
{{{title}}} - title of the article / book | {{{title}}} - title of the article / book | ||
{{{quote}}} - article text | {{{quote}}} - article text | ||
Revision as of 01:27, 26 July 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
Designed to be wrapped inside <ref name="xxx">...</ref> tags.
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
Designed to be wrapped inside <ref name="xxx">...</ref> tags.
"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
Also designed to be wrapped inside <ref>...</ref> tags, but excludes the article text.
Template:Src - something's wrong here.