Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Textcite: Difference between revisions

Template page
mNo edit summary
m (Put website as a suggested option for textcite)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><!--
{{#if:{{{author|}}}|{{{author}}}}}{{#if:{{{year|}}}|&nbsp;({{{year|}}})}}.{{#if:{{{title|}}}|&nbsp;{{#if:{{{chapter|}}}|'{{{chapter}}}'&nbsp;in&nbsp;}}''{{{title}}}''}}.{{#if:{{{pdf|}}}|&nbsp;<span class="plainlinks">[{{{pdf}}} <span title="PDF download"><small>[PDF<nowiki>]</nowiki></span></small>]</span>}}{{#if:{{{epub|}}}|&nbsp;<span class="plainlinks">[{{{epub}}} <span title="EPUB download"><small>[EPUB<nowiki>]</nowiki></span></small>]</span>}}{{#if:{{{city|}}}
-->{{#if:{{{author|}}}|{{{author}}}}}<!--
|&nbsp;{{{city}}}{{#if:{{{publisher|}}}
-->{{#if:{{{year|}}}|&nbsp;({{{year|}}}).|.}}<!--
|<nowiki>:</nowiki>&nbsp;{{{publisher}}}}}|{{#if:{{{publisher|}}}|&nbsp;{{{publisher}}}}}}}{{#if:{{{isbn|}}}|&nbsp;<span class="plainlinks">[https://www.worldcat.org/search?qt=worldcat_org_all&q={{{isbn}}} <span title="WorldCat">ISBN {{{isbn}}}</span>]</span>}}{{#if:{{{lg|}}}|&nbsp;<span class="plainlinks">[{{{lg}}} <span title="Library Genesis"><small>[LG<nowiki>]</nowiki></span></small>]</span>}}</includeonly><noinclude>
-->{{#if:{{{title|}}}|&nbsp;<!--
-->{{#if:{{{chapter|}}}|<!--
-->{{#if:{{{transchap|}}}|'{{{transchap}}}'&nbsp;in&nbsp;|<!--
-->{{#if:{{{webchap|}}}|'[{{{webchap}}} {{{chapter}}}]'&nbsp;in&nbsp;|'{{{chapter}}}'&nbsp;in&nbsp;}}}}}}<!--
-->{{#if:{{{trans|}}}|''{{{trans}}}''&nbsp;[{{#if:{{{translang|}}}|{{{translang}}}<nowiki>:</nowiki>&nbsp;}}<!--
-->{{#if:{{{transchap|}}}|{{#if:{{{webchap|}}}|[{{{webchap}}} '{{{chapter}}}']&nbsp;in&nbsp;|'{{{chapter}}}'&nbsp;in&nbsp;}}}}<!--
-->{{#if:{{{web|}}}|[{{{web}}}&nbsp;''{{{title}}}'']|<!--
-->''{{{title}}}''}}]|<!--
-->{{#if:{{{web|}}}|[{{{web}}} ''{{{title}}}'']|<!--
-->''{{{title}}}''}}}}{{#if:{{{page|}}}|&nbsp;(p.&nbsp;{{{page}}})}}.}}<!--
-->{{#if:{{{pdf|}}}|&nbsp;<span class="plainlinks">[{{{pdf}}} <span title="PDF download"><small>[PDF<nowiki>]</nowiki></span></small>]</span>}}<!--
-->{{#if:{{{epub|}}}|&nbsp;<span class="plainlinks">[{{{epub}}} <span title="EPUB download"><small>[EPUB<nowiki>]</nowiki></span></small>]</span>}}<!--
-->{{#if:{{{mia|}}}|&nbsp;<span class="plainlinks">[{{{mia}}} <span title="Marxists Internet Archive"><small>[MIA<nowiki>]</nowiki></span></small>]</span>}}<!--
-->{{#if:{{{city|}}}|&nbsp;{{{city}}}<!--
-->{{#if:{{{publisher|}}}|<nowiki>:</nowiki>&nbsp;{{{publisher}}}}}.|<!--
-->{{#if:{{{publisher|}}}|&nbsp;{{{publisher}}}.}}}}<!--
-->{{#if:{{{isbn|}}}|&nbsp;<span class="plainlinks">[https://www.worldcat.org/search?qt=worldcat_org_all&q={{{isbn}}} <span title="WorldCat">ISBN {{{isbn}}}</span>]</span>}}<!--
-->{{#if:{{{doi|}}}|&nbsp;doi:{{{doi}}}&nbsp;<span class="plainlinks">[https://sci-hub.do/{{{doi}}} <span title="Sci-Hub link"><small>[HUB<nowiki>]</nowiki></span></small>]</span>}}<!--
-->{{#if:{{{lg|}}}|&nbsp;<span class="plainlinks">[{{{lg}}} <span title="Library Genesis link"><small>[LG<nowiki>]</nowiki></span></small>]</span>}}</includeonly><noinclude>
Usage:
Usage:
  <nowiki>
  <nowiki>
Line 9: Line 27:
|title=
|title=
|chapter=
|chapter=
|transchap=
|year=
|year=
|page=
|translang=
|trans=
|city=
|city=
|publisher=
|publisher=
Line 16: Line 38:
|pdf=
|pdf=
|epub=
|epub=
|doi=
|web=
|webchap=
|mia=
}}</nowiki>
}}</nowiki>
Example:
Example:
Line 65: Line 91:
|epub=
|epub=
}}
}}
{{textcite
|author=author
|title=title
|chapter=chapter
|year=year
|translang=translang
|trans=trans
|transchap=transchap
|city=
|publisher=publisher
|page=page
|isbn=
|lg=
|pdf=
|epub=
|doi=
|web=https://web.com
|webchap=https://webchap.com
}}
<templatedata>
<templatedata>
{
{
Line 85: Line 132:
"title": {
"title": {
"label": "Title",
"label": "Title",
"description": "Title of work",
"description": "Title of work in the original language",
"example": "Passages from antiquity to feudalism",
"example": "Passages from antiquity to feudalism",
"required": true
"required": true
Line 97: Line 144:
"label": "PDF link",
"label": "PDF link",
"description": "PDF link to work",
"description": "PDF link to work",
"example": "http://www.chinhnghia.com/Passages%20from%20Antiquity%20to%20Feudalism.PDF"
"example": "http://www.chinhnghia.com/Passages%20from%20Antiquity%20to%20Feudalism.PDF",
"suggested": true
},
},
"epub": {
"epub": {
Line 123: Line 171:
"example": "libgen.rs/book/index.php?md5=D506850919AFB63C856850E82780EF31",
"example": "libgen.rs/book/index.php?md5=D506850919AFB63C856850E82780EF31",
"suggested": true
"suggested": true
},
"doi": {
"label": "DOI code",
"description": "Generates a Sci-Hub link",
"example": "10.2307/1162754",
"suggested": true
},
"trans": {
"label": "Translation of title",
"description": "Used when the work is in a foreign language"
},
"translang": {
"label": "Language of work",
"description": "Used when the work is in a foreign language",
"example": "Italian"
},
"transchap": {
"label": "Translation of book chapter",
"description": "Used when the work is in a foreign language"
},
"webchap": {
"label": "Chapter website",
"description": "Website for chapter in source language",
"example": "https://www.marxists.org/reference/archive/stalin/works/1913/03.htm"
},
"web": {
"label": "Website",
"description": "Website for the text in the language it is cited",
"example": "https://www.marxists.org/reference/archive/stalin/works/1913/03.htm",
"suggested": true
},
"mia": {
"label": "Marxists Internet Archive",
"description": "Link to Marxists Internet Archive, if available",
"example": "https://www.marxists.org/reference/archive/stalin/works/1913/03a.htm"
},
"page": {
"label": "Pages",
"description": "Page of information",
"example": "201"
}
}
},
},
"description": "Produces the formatted text for a citation"
"description": "Produces the formatted text for a citation",
"paramOrder": [
"author",
"year",
"title",
"page",
"chapter",
"pdf",
"epub",
"city",
"publisher",
"isbn",
"lg",
"doi",
"trans",
"translang",
"transchap",
"webchap",
"web",
"mia"
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 17:59, 31 August 2021

Usage:

{{textcite
|author=
|title=
|chapter=
|transchap=
|year=
|page=
|translang=
|trans=
|city=
|publisher=
|isbn=
|lg=
|pdf=
|epub=
|doi=
|web=
|webchap=
|mia=
}}

Example:

{{textcite
|author=Fidel Castro
|title=Che: a memoir
|year=2005
|city=Melbourne
|publisher=Ocean Press
|isbn=9781921700835
|lg=http://libgen.rs/book/index.php?md5=99FF4ED3FDF1F4BDB79D3CCFB39EAB66
|epub=https://shared.prolewiki.org/uploads/0/0b/Fidel_Castro_%E2%80%93_Che-_a_memoir._Ocean_Press_%282012%29.epub
}}

Fidel Castro (2005). 'Reflections on Che' in Che: a memoir[EPUB] Melbourne: Ocean Press. ISBN 9781921700835 [LG]

{{textcite
|author=Perry Anderson
|title=Passages from antiquity to feudalism
|chapter=Classical antiquity
|year=1978
|city=London
|publisher=NLB
|isbn=9780860917090
|lg=http://libgen.rs/book/index.php?md5=D506850919AFB63C856850E82780EF31
|pdf=https://shared.prolewiki.org/uploads/1/1e/Perry_Anderson_-_Passages_from_Antiquity_to_Feudalism_%281974%29.pdf
|epub=
}}

Perry Anderson (1978). 'Classical antiquity' in Passages from antiquity to feudalism[PDF] London: NLB. ISBN 9780860917090 [LG]

author (year). 'transchap' in trans [translang: 'chapter' in title] (p. page). publisher.

Produces the formatted text for a citation

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Authorauthor

Author of work

Example
Perry Anderson
Stringrequired
Yearyear

Year of first publication of work

Example
1974
Unknownrequired
Titletitle

Title of work in the original language

Example
Passages from antiquity to feudalism
Unknownrequired
Pagespage

Page of information

Example
201
Unknownoptional
Chapterchapter

Chapter title of the book

Example
Classical and antiquity
Unknownoptional
PDF linkpdf

PDF link to work

Example
http://www.chinhnghia.com/Passages%20from%20Antiquity%20to%20Feudalism.PDF
Unknownsuggested
EPUB linkepub

EPUB link to work

Unknownoptional
Citycity

City of published work

Example
London
Unknownoptional
Publisherpublisher

Publisher of work

Example
New Left Books
Unknownoptional
ISBNisbn

ISBN of work

Example
090230870X
Unknownoptional
Library Genesis linklg

Library Genesis link of work

Example
libgen.rs/book/index.php?md5=D506850919AFB63C856850E82780EF31
Unknownsuggested
DOI codedoi

Generates a Sci-Hub link

Example
10.2307/1162754
Unknownsuggested
Translation of titletrans

Used when the work is in a foreign language

Unknownoptional
Language of worktranslang

Used when the work is in a foreign language

Example
Italian
Unknownoptional
Translation of book chaptertranschap

Used when the work is in a foreign language

Unknownoptional
Chapter websitewebchap

Website for chapter in source language

Example
https://www.marxists.org/reference/archive/stalin/works/1913/03.htm
Unknownoptional
Websiteweb

Website for the text in the language it is cited

Example
https://www.marxists.org/reference/archive/stalin/works/1913/03.htm
Unknownsuggested
Marxists Internet Archivemia

Link to Marxists Internet Archive, if available

Example
https://www.marxists.org/reference/archive/stalin/works/1913/03a.htm
Unknownoptional