More languages
More actions
m (very experimental work in progress) |
m (Put website as a suggested option for textcite) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
-->{{#if:{{{chapter|}}}|<!-- | -->{{#if:{{{chapter|}}}|<!-- | ||
-->{{#if:{{{transchap|}}}|'{{{transchap}}}' in |<!-- | -->{{#if:{{{transchap|}}}|'{{{transchap}}}' in |<!-- | ||
-->{{#if:{{{webchap|}}}|'[{{{webchap}}} {{{chapter}}}]' in |'{{{chapter}}}' in }}}}}}<!-- | -->{{#if:{{{webchap|}}}|'[{{{webchap}}} {{{chapter}}}]' in |'{{{chapter}}}' in }}}}}}<!-- | ||
-->{{#if:{{{trans|}}}|''{{{trans}}}'' [{{#if:{{{translang|}}}|{{{translang}}}<nowiki>:</nowiki> }}<!-- | -->{{#if:{{{trans|}}}|''{{{trans}}}'' [{{#if:{{{translang|}}}|{{{translang}}}<nowiki>:</nowiki> }}<!-- | ||
-->{{#if:{{{transchap|}}}|{{#if:{{{webchap|}}}|[{{{webchap}}} '{{{chapter}}}'] in |'{{{chapter}}}' in }}}}<!-- | |||
-->{{#if:{{{web|}}}|[{{{web}}} ''{{{title}}}'']|<!-- | |||
-->''{{{title}}}''}}]|<!-- | -->''{{{title}}}''}}]|<!-- | ||
-->{{#if:{{{web|}}}|[{{{web}}} ''{{{title}}}'']|<!-- | -->{{#if:{{{web|}}}|[{{{web}}} ''{{{title}}}'']|<!-- | ||
-->''{{{title}}}''}}}}.}}<!-- | -->''{{{title}}}''}}}}{{#if:{{{page|}}}| (p. {{{page}}})}}.}}<!-- | ||
-->{{#if:{{{pdf|}}}| <span class="plainlinks">[{{{pdf}}} <span title="PDF download"><small>[PDF<nowiki>]</nowiki></span></small>]</span>}}<!-- | -->{{#if:{{{pdf|}}}| <span class="plainlinks">[{{{pdf}}} <span title="PDF download"><small>[PDF<nowiki>]</nowiki></span></small>]</span>}}<!-- | ||
-->{{#if:{{{epub|}}}| <span class="plainlinks">[{{{epub}}} <span title="EPUB download"><small>[EPUB<nowiki>]</nowiki></span></small>]</span>}}<!-- | -->{{#if:{{{epub|}}}| <span class="plainlinks">[{{{epub}}} <span title="EPUB download"><small>[EPUB<nowiki>]</nowiki></span></small>]</span>}}<!-- | ||
-->{{#if:{{{mia|}}}| <span class="plainlinks">[{{{mia}}} <span title="Marxists Internet Archive"><small>[MIA<nowiki>]</nowiki></span></small>]</span>}}<!-- | |||
-->{{#if:{{{city|}}}| {{{city}}}<!-- | -->{{#if:{{{city|}}}| {{{city}}}<!-- | ||
-->{{#if:{{{publisher|}}}|<nowiki>:</nowiki> {{{publisher}}}}}.|<!-- | -->{{#if:{{{publisher|}}}|<nowiki>:</nowiki> {{{publisher}}}}}.|<!-- | ||
Line 26: | Line 27: | ||
|title= | |title= | ||
|chapter= | |chapter= | ||
|transchap= | |||
|year= | |year= | ||
|page= | |||
|translang= | |translang= | ||
|trans= | |trans= | ||
Line 37: | Line 40: | ||
|doi= | |doi= | ||
|web= | |web= | ||
|webchap= | |||
|mia= | |||
}}</nowiki> | }}</nowiki> | ||
Example: | Example: | ||
Line 91: | Line 96: | ||
|title=title | |title=title | ||
|chapter=chapter | |chapter=chapter | ||
|year= | |year=year | ||
|translang=translang | |translang=translang | ||
|trans=trans | |trans=trans | ||
Line 97: | Line 102: | ||
|city= | |city= | ||
|publisher=publisher | |publisher=publisher | ||
|page=page | |||
|isbn= | |isbn= | ||
|lg= | |lg= | ||
Line 169: | Line 175: | ||
"label": "DOI code", | "label": "DOI code", | ||
"description": "Generates a Sci-Hub link", | "description": "Generates a Sci-Hub link", | ||
"example": "10.2307/1162754" | "example": "10.2307/1162754", | ||
"suggested": true | |||
}, | }, | ||
"trans": { | "trans": { | ||
"label": "Translation of | "label": "Translation of title", | ||
"description": "Used when the work is in a foreign language" | "description": "Used when the work is in a foreign language" | ||
}, | }, | ||
"translang": { | "translang": { | ||
"label": "Language of work", | "label": "Language of work", | ||
"description": " | "description": "Used when the work is in a foreign language", | ||
"example": "Italian" | "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" | |||
} | } | ||
}, | }, | ||
Line 186: | Line 218: | ||
"year", | "year", | ||
"title", | "title", | ||
"page", | |||
"chapter", | "chapter", | ||
"pdf", | "pdf", | ||
Line 195: | Line 228: | ||
"doi", | "doi", | ||
"trans", | "trans", | ||
"translang" | "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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Author | author | Author of work
| String | required |
Year | year | Year of first publication of work
| Unknown | required |
Title | title | Title of work in the original language
| Unknown | required |
Pages | page | Page of information
| Unknown | optional |
Chapter | chapter | Chapter title of the book
| Unknown | optional |
PDF link | pdf | PDF link to work
| Unknown | suggested |
EPUB link | epub | EPUB link to work | Unknown | optional |
City | city | City of published work
| Unknown | optional |
Publisher | publisher | Publisher of work
| Unknown | optional |
ISBN | isbn | ISBN of work
| Unknown | optional |
Library Genesis link | lg | Library Genesis link of work
| Unknown | suggested |
DOI code | doi | Generates a Sci-Hub link
| Unknown | suggested |
Translation of title | trans | Used when the work is in a foreign language | Unknown | optional |
Language of work | translang | Used when the work is in a foreign language
| Unknown | optional |
Translation of book chapter | transchap | Used when the work is in a foreign language | Unknown | optional |
Chapter website | webchap | Website for chapter in source language
| Unknown | optional |
Website | web | Website for the text in the language it is cited
| Unknown | suggested |
Marxists Internet Archive | mia | Link to Marxists Internet Archive, if available
| Unknown | optional |