Difference between revisions of "Template:Src/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎The complete parameter set, with mode = book)
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
=== Usage ===
 
=== Usage ===
−
Template for references and citations. It has three "modes": news, ref, cite.
+
Template for references and citations. It has four "modes": news, ref, cite, book
  
−
Possible parameters are:
+
Possible parameters for the first 3 are:
 
<pre>
 
<pre>
 
{{{<mode>}}}    - one of: [news | ref | cite ]
 
{{{<mode>}}}    - one of: [news | ref | cite ]
Line 17: Line 17:
 
</pre>
 
</pre>
  
−
=== Examples ===
+
=== Example: news, ref, cite ===
 
<pre>
 
<pre>
 
{{Src
 
{{Src
Line 30: Line 30:
 
|archdate=Jan.01.0000
 
|archdate=Jan.01.0000
 
|accessdate=Dec.31.9999
 
|accessdate=Dec.31.9999
 +
}}
 +
</pre>
 +
==== Example: book ====
 +
<pre>
 +
{{Src
 +
|book
 +
|title
 +
|author
 +
|pub
 +
|date
 +
|isbn
 +
|url
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 22:23, 14 April 2018

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. Eg. author
{{{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.

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.