Difference between revisions of "Template:Src/doc"

From WikiCorporates
Jump to navigation Jump to search
(→‎Usage)
(→‎Example: book)
Line 42: Line 42:
 
=== Example: book ===
 
=== Example: book ===
 
<pre>
 
<pre>
−
{{Src
+
{{Src|book
−
|book
 
 
|title
 
|title
 
|author  = optional
 
|author  = optional
 
|pub
 
|pub
 +
|misc    = optional. Eg: Vol.169, Issue 11, page 9
 
|date
 
|date
 
|isbn    = optional
 
|isbn    = optional
Line 59: Line 59:
 
|author=Christopher M Davidson
 
|author=Christopher M Davidson
 
|pub=Oneworld Publications
 
|pub=Oneworld Publications
 +
|misc=Vol.169, Issue 11, page 9
 
|date=Oct.06.2017
 
|date=Oct.06.2017
 
|isbn=978-1786071927
 
|isbn=978-1786071927

Revision as of 20:32, 3 January 2020

Usage

Template for references and citations. It has three "modes": news, ref, book.
Possible parameters for the first 2 are:

|mode       - one of: [ news | ref ]
|date       - publication date
|url        - (optional) If not supplied, the plain title is used
|title      - title of the article
|quote      - (optional) 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

{{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.
|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
}}

Mode = news, with and without archurl
Useful when collecting together articles for a new page. Having the date first makes it very easy to see.

  • Oct.19.2019: Who we are. Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role. Press Release, Brakes Group.

Template:Src - something's wrong here.

Mode = ref, with and without archurl
Designed to be wrapped inside <ref name="xxx">...</ref> tags.
Who we are. Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role. Press Release, Brakes Group, Oct.19.2019.
Who we are. Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role. Press Release, Brakes Group, Oct.19.2019. Original archived on Mar.20.2019. Accessed Dec.31.2019.

Example: book

{{Src|book
|title
|author  = optional
|pub
|misc    = optional. Eg: Vol.169, Issue 11, page 9
|date
|isbn    = optional
|url     = optional
}}

Mode = book, with the complete parameter set
Also designed to be wrapped inside <ref name="xxx">...</ref> tags.
{{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