Template:Src/doc

From WikiCorporates
< Template:Src
Revision as of 20:06, 3 January 2020 by GrayanOne (talk | contribs) (→‎Example: book)
Jump to navigation Jump to search

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.
  • 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. Original archived on Mar.20.2019. Accessed Dec.31.2019.

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
|date
|isbn    = optional
|url     = optional
book = {{#if:{{{url|}}}|[{{{url}}} {{{title}}}]|{{{title}}}}}, {{#if:{{{author|}}}|, {{{author}}}|}}, ''{{{pub}}}'',  {{{date}}}{{#if:{{{isbn|}}}|, ISBN {{{isbn}}}|}}
}}

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