Difference between revisions of "Template:Src/doc"
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=== Usage === | === Usage === | ||
| − | Template for references and citations. It has | + | Template for references and citations. It has three "modes": news, ref, book.<br/> |
| − | + | Possible parameters for the first 2 are: | |
| − | Possible parameters for the first | ||
<pre> | <pre> | ||
| − | {{{<mode>}}} - one of: [news | ref | + | {{{<mode>}}} - one of: [ news | ref ] |
{{{date}}} - publication date | {{{date}}} - publication date | ||
| − | {{{url}}} - optional | + | {{{url}}} - (optional) If not supplied, the plain title is used |
| − | {{{title}}} - title of the article | + | {{{title}}} - title of the article |
| − | {{{quote}}} - article text | + | {{{quote}}} - (optional) article text |
{{{website}}} - the name of the website | {{{website}}} - the name of the website | ||
{{{name}}} - name of the author | {{{name}}} - name of the author | ||
| Line 17: | Line 16: | ||
</pre> | </pre> | ||
| − | === Example: news, ref | + | === Example: news, ref === |
<pre> | <pre> | ||
{{Src | {{Src | ||
| Line 23: | Line 22: | ||
|date=Mar.16.2018 | |date=Mar.16.2018 | ||
|title=Ian Taylor, chief of world’s biggest oil trader Vitol. | |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 | + | |quote=Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role. |
|website=The Times | |website=The Times | ||
|name=Emily Gosden | |name=Emily Gosden | ||
| Line 32: | Line 31: | ||
}} | }} | ||
</pre> | </pre> | ||
| + | '''Mode = news''', with and without <tt>archurl</tt><br/> | ||
| + | Useful when collecting together articles for a new page. Having the date first makes it very easy to see. | ||
| + | {{Src|news|date=Oct.19.2019|title=Who we are.|quote=Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role.|website=Brakes Group|name=Press Release|url=http://www.brakesgroup.com/about-us/who-we-are/}} | ||
| + | {{Src|news|date=Oct.19.2019|archdate=Mar.20.2019|accessdate=Dec.31.2019|title=Who we are.|quote=Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role.|website=Brakes Group|name=Press Release|url=http://www.brakesgroup.com/about-us/who-we-are/|archurl=https://web.archive.org/web/20190320001538/http://www.brakesgroup.com/about-us/who-we-are/}} | ||
| + | '''Mode = ref''', with and without <tt>archurl</tt><br/> | ||
| + | Designed to be wrapped inside <nowiki><ref name="xxx">...</ref></nowiki> tags. | ||
| + | {{Src|ref|date=Oct.19.2019|title=Who we are.|quote=Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role.|website=Brakes Group|name=Press Release|url=http://www.brakesgroup.com/about-us/who-we-are/}}<br/> | ||
| + | {{Src|ref|date=Oct.19.2019|archdate=Mar.20.2019|accessdate=Dec.31.2019|title=Who we are.|quote=Mr Taylor will continue as chairman and Russell Hardy, an executive director, would step up to the chief executive role.|website=Brakes Group|name=Press Release|url=http://www.brakesgroup.com/about-us/who-we-are/|archurl=https://web.archive.org/web/20190320001538/http://www.brakesgroup.com/about-us/who-we-are/}} | ||
| + | |||
=== Example: book === | === Example: book === | ||
<pre> | <pre> | ||
| Line 44: | Line 52: | ||
}} | }} | ||
</pre> | </pre> | ||
| − | + | ==== Mode = book, with the complete parameter set ==== | |
| − | ==== | + | Also designed to be wrapped inside <nowiki><ref name="xxx">...</ref></nowiki> tags.<br/> |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<tt><nowiki>{{Src|book|title=|author=|pub=|date=|isbn=|url=}}</nowiki></tt><br/> | <tt><nowiki>{{Src|book|title=|author=|pub=|date=|isbn=|url=}}</nowiki></tt><br/> | ||
{{Src|book | {{Src|book | ||
| Line 63: | Line 62: | ||
|isbn=978-1786071927 | |isbn=978-1786071927 | ||
|url=http://christopherdavidson.net/BaseHub/shadow-wars-the-secret-struggle-for-the-middle-east/}} | |url=http://christopherdavidson.net/BaseHub/shadow-wars-the-secret-struggle-for-the-middle-east/}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 21:32, 17 November 2019
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
|pub
|date
|isbn
|url
}}
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