More languages
More actions
m (Attempting to implement website links) |
m (Put website as a suggested option for textcite) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{author|}}}|{{{author}}}}}{{#if:{{{year|}}}| ({{{year|}}})}} | <includeonly><!-- | ||
-->{{#if:{{{author|}}}|{{{author}}}}}<!-- | |||
-->{{#if:{{{year|}}}| ({{{year|}}}).|.}}<!-- | |||
-->{{#if:{{{title|}}}| <!-- | |||
-->{{#if:{{{chapter|}}}|<!-- | |||
-->{{#if:{{{transchap|}}}|'{{{transchap}}}' in |<!-- | |||
-->{{#if:{{{webchap|}}}|'[{{{webchap}}} {{{chapter}}}]' in |'{{{chapter}}}' in }}}}}}<!-- | |||
-->{{#if:{{{trans|}}}|''{{{trans}}}'' [{{#if:{{{translang|}}}|{{{translang}}}<nowiki>:</nowiki> }}<!-- | |||
-->{{#if:{{{transchap|}}}|{{#if:{{{webchap|}}}|[{{{webchap}}} '{{{chapter}}}'] in |'{{{chapter}}}' in }}}}<!-- | |||
-->{{#if:{{{web|}}}|[{{{web}}} ''{{{title}}}'']|<!-- | |||
-->''{{{title}}}''}}]|<!-- | |||
-->{{#if:{{{web|}}}|[{{{web}}} ''{{{title}}}'']|<!-- | |||
-->''{{{title}}}''}}}}{{#if:{{{page|}}}| (p. {{{page}}})}}.}}<!-- | |||
-->{{#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:{{{mia|}}}| <span class="plainlinks">[{{{mia}}} <span title="Marxists Internet Archive"><small>[MIA<nowiki>]</nowiki></span></small>]</span>}}<!-- | |||
-->{{#if:{{{city|}}}| {{{city}}}<!-- | |||
-->{{#if:{{{publisher|}}}|<nowiki>:</nowiki> {{{publisher}}}}}.|<!-- | |||
-->{{#if:{{{publisher|}}}| {{{publisher}}}.}}}}<!-- | |||
-->{{#if:{{{isbn|}}}| <span class="plainlinks">[https://www.worldcat.org/search?qt=worldcat_org_all&q={{{isbn}}} <span title="WorldCat">ISBN {{{isbn}}}</span>]</span>}}<!-- | |||
-->{{#if:{{{doi|}}}| doi:{{{doi}}} <span class="plainlinks">[https://sci-hub.do/{{{doi}}} <span title="Sci-Hub link"><small>[HUB<nowiki>]</nowiki></span></small>]</span>}}<!-- | |||
-->{{#if:{{{lg|}}}| <span class="plainlinks">[{{{lg}}} <span title="Library Genesis link"><small>[LG<nowiki>]</nowiki></span></small>]</span>}}</includeonly><noinclude> | |||
Usage: | Usage: | ||
<nowiki> | <nowiki> | ||
Line 7: | Line 26: | ||
|author= | |author= | ||
|title= | |title= | ||
|chapter= | |||
|transchap= | |||
|year= | |||
|page= | |||
|translang= | |translang= | ||
|trans= | |trans= | ||
|city= | |city= | ||
|publisher= | |publisher= | ||
Line 18: | Line 39: | ||
|epub= | |epub= | ||
|doi= | |doi= | ||
| | |web= | ||
|webchap= | |||
|mia= | |||
}}</nowiki> | }}</nowiki> | ||
Example: | Example: | ||
Line 68: | 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 131: | 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 148: | Line 218: | ||
"year", | "year", | ||
"title", | "title", | ||
"page", | |||
"chapter", | "chapter", | ||
"pdf", | "pdf", | ||
Line 157: | 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 |