Template:MIA citation: Difference between revisions
Harrystein (talk | contribs) (Alphabetized all author entries except top few: marx, engels, lenin, stalin, mao (four heads of Maoism, notable for popularity of citing. don't @ me).) |
Harrystein (talk | contribs) (Re-formatted author section - this hopefully will make it easier to alphabetize in the future.) |
||
Line 85: | Line 85: | ||
Marx Engels Lenin Stalin Mao--> | Marx Engels Lenin Stalin Mao--> | ||
| marx | | marx | karl marx | marx karl = <!-- | ||
Checks the date for any year after Marx's death - all Engels works are under /marx/!! (hopefully this solution works somewhat) | Checks the date for any year after Marx's death - all Engels works are under /marx/!! (hopefully this solution works somewhat) | ||
-->{{#ifexpr: 1883 < {{{year|{{{3|{{switch by pattern|_input={{{link|{{{1|}}}}}}|_returncaptures=y|/(%d%d%d%d)/|_default=0}}}}}}}}|[[Friedrich Engels|Engels, Friedrich]]|[[Karl Marx|Marx, Karl]]}} | -->{{#ifexpr: 1883 < {{{year|{{{3|{{switch by pattern|_input={{{link|{{{1|}}}}}}|_returncaptures=y|/(%d%d%d%d)/|_default=0}}}}}}}}|[[Friedrich Engels|Engels, Friedrich]]|[[Karl Marx|Marx, Karl]]}} | ||
| friedrich engels | | engels | friedrich engels | engels friedrich | frederick engels | engels frederick = [[Friedrich Engels|Engels, Friedrich]] | ||
| lenin | v i lenin | vladimir lenin | lenin vladimir = [[Vladimir Lenin|Lenin, V. I.]] | |||
| stalin | j stalin | stalin j | joseph stalin | stalin joseph | j v stalin | stalin j v | josef stalin | stalin josef | j v dzhugashvili<!--Think you're cute, huh?--> = [[Joseph Stalin|Stalin, J.V.]] | |||
| mao | zedong<!--Someone doesn't understand Chinese names--> | mao zedong = [[Mao Zedong|Mao, Zedong]] | |||
| trotsky | trotsky leon | leon trotsky | lev trotsky | trotsky lev | lev bronstein | bronstein lev = [[Leon Trotsky|Trotsky, Leon]]<!-- | |||
| lenin | |||
| stalin | |||
| j v dzhugashvili<!--Think you're cute, huh?--> = [[Joseph Stalin|Stalin, J.V.]] | |||
| mao | |||
| trotsky | |||
Other authors, alphabetically sorted. --> | Other authors, alphabetically sorted. --> | ||
Line 132: | Line 106: | ||
| brezhnev = [[Leonid Brezhnev|Brezhnev, Leonid]] | | brezhnev = [[Leonid Brezhnev|Brezhnev, Leonid]] | ||
| browder = [[Earl Browder|Browder, Earl]] | | browder = [[Earl Browder|Browder, Earl]] | ||
| bukharin | | bukharin | bhukarin | nikolai bukharin | nikolai bhukarin = [[Nikolai Bukharin|Bukharin, Nikolai]] | ||
| chernenko = [[Konstantin Chernenko|Chernenko, Konstantin]] | | chernenko = [[Konstantin Chernenko|Chernenko, Konstantin]] | ||
| connolly = [[James Connolly|Connolly, James]] | | connolly = [[James Connolly|Connolly, James]] | ||
Line 145: | Line 116: | ||
| foster = [[William Z. Foster|Foster, William Z.]] | | foster = [[William Z. Foster|Foster, William Z.]] | ||
| gorbachev = [[Mikhail Gorbachev|Gorbachev, Mikhail]] | | gorbachev = [[Mikhail Gorbachev|Gorbachev, Mikhail]] | ||
| gorky-maxim | | gorky-maxim | gorky = [[Maxim Gorky|Gorky, Maxim]] | ||
| gramsci = [[Antonio Gramsci|Gramsci, Antonio]] | | gramsci = [[Antonio Gramsci|Gramsci, Antonio]] | ||
| hall = [[Gus Hall|Hall, Gus]] | | hall = [[Gus Hall|Hall, Gus]] | ||
| hill-christopher | | hill-christopher | christopher hill = [[Christopher Hill|Hill, Christopher]] | ||
| hillquit = [[Morris Hillquit|Hillquit, Morris]] | | hillquit = [[Morris Hillquit|Hillquit, Morris]] | ||
| hoxha = [[Enver Hoxha|Hoxha, Enver]] | | hoxha = [[Enver Hoxha|Hoxha, Enver]] | ||
| jaures | | jaures | jaurès = [[Jean Jaurès|Jaurès, Jean]] | ||
| kamenev = [[Lev Kamenev|Kamenev, Lev]] | | kamenev = [[Lev Kamenev|Kamenev, Lev]] | ||
| kapo = [[Hysni Kapo|Kapo, Hysni]] | | kapo = [[Hysni Kapo|Kapo, Hysni]] | ||
| kautsky = [[Karl Kautsky|Kautsky, Karl]] | | kautsky = [[Karl Kautsky|Kautsky, Karl]] | ||
| khrushchev | | khrushchev | nikita khrushchev | kruschev | khruschev | nikita kruschev | nikita khruschev = [[Nikita Khrushchev|Khrushchev, Nikita]] | ||
| kim-il-sung | kim il sung = [[Kim Il Sung|Kim Il Sung]] | |||
| kim-jong-il | kim jong il = [[Kim Jong Il|Kim Jong Il]] | |||
| kim-il-sung | |||
| kim-jong-il | |||
| kollonta<!--URL version.--> | | kollonta<!--URL version.--> | ||
| kollontai = [[Alexandra Kollontai|Kollontai, Alexandra]] | | kollontai = [[Alexandra Kollontai|Kollontai, Alexandra]] | ||
| kun-bela | | kun-bela | bela kun = [[Bela Kun|Kun, Bela]] | ||
| lafargue = [[Paul Lafargue|Lafargue, Paul]] | | lafargue = [[Paul Lafargue|Lafargue, Paul]] | ||
| luxemburg | | luxemburg | luxembourg | rosa luxemburg | rosa luxembourg = [[Rosa Luxemburg|Luxemburg, Rosa]] | ||
| maclean = [[John MacLean|MacLean, John]] | | maclean = [[John MacLean|MacLean, John]] | ||
| malenkov = [[Georgy Malenkov|Malenkov, Georgy]] | | malenkov = [[Georgy Malenkov|Malenkov, Georgy]] | ||
| mariateg<!--URL version.--> | | mariateg<!--URL version.--> | mariategui | mariátegui = [[José Carlos Mariátegui|Mariátegui, José Carlos]] | ||
| markievicz = [[Constance Markievicz|Markievicz, Constance]] | | markievicz = [[Constance Markievicz|Markievicz, Constance]] | ||
| molotov = [[V. M. Molotov|Molotov, V. M.]] | | molotov = [[V. M. Molotov|Molotov, V. M.]] | ||
Line 188: | Line 143: | ||
| plekhanov = [[Georgi Plekhanov|Plekhanov, Georgi]] | | plekhanov = [[Georgi Plekhanov|Plekhanov, Georgi]] | ||
| radek = [[Karl Radek|Radek, Karl]] | | radek = [[Karl Radek|Radek, Karl]] | ||
| reed | | reed | john reed = [[John Reed|Reed, John]] | ||
| riazanov = [[David Riazanov|Riazanov, David]] | | riazanov = [[David Riazanov|Riazanov, David]] | ||
| roy = [[Manabendra Nath Roy|Roy, Manabendra Nath]] | | roy = [[Manabendra Nath Roy|Roy, Manabendra Nath]] | ||
Line 195: | Line 149: | ||
| serge = [[Victor Serge|Serge, Victor]] | | serge = [[Victor Serge|Serge, Victor]] | ||
| shehu = [[Mehmet Shehu|Shehu, Mehmet]] | | shehu = [[Mehmet Shehu|Shehu, Mehmet]] | ||
| adam smith | | adam smith | smith-adam | smith adam = [[Adam Smith|Smith, Adam]] | ||
| tito | josip broz tito = [[Josip Broz Tito|Tito, Josip Broz]] | |||
| tito | |||
| zinoviev = [[Gregory Zinoviev|Zinoviev, Gregory]] | | zinoviev = [[Gregory Zinoviev|Zinoviev, Gregory]] | ||
Revision as of 22:58, 10 June 2024
In this templatespace:
WIP template implemented by Harrystein to make citing Marxists.org a lot easier!
Usage
This is designed to read whatever Marxists.org URL you give it and output a nicely-formatted title, author, and year, complete with links to Leftypedia articles on those topics (aka "Wikilinks"). It doesn't use any LUA or outside coding/bots, which at the moment would be harder by an order of magnitude. If such things are implemented later, they should be used in concert with this template or, if they are pretty foolproof, supersede it.
Visual editor
In visual editing, you should be able to copy-paste the code shown below (adapted or otherwise) into your page. I would have to test this to see issues with it. If not, then [explain here how to make the link the only argument, even if not named, i.e. {{{1}}} ] -6/5/24
Source editor
This template is designed to do most of the work for you. I suggest starting by putting the link in, like so:
{{MIA citation|<link>}}
Any missing or incorrect details should be corrected:
{{MIA citation|<link>|author=<author>|author2=<author2> (optional)|year=<year>|title=<title>}}
See below for some examples.
Capital works the best and hopefully should be fully implemented with no gaps:
{{MIA citation | https://www.marxists.org/archive/marx/works/1867-c1/ch03.htm#S1}} {{MIA citation | https://www.marxists.org/archive/marx/works/1885-c2/ch20_02.htm}} {{MIA citation | https://www.marxists.org/archive/marx/works/1894-c3/ch13.htm}}
- Marx, Karl (1867). Capital, Volume I. Chapter 3: "Money, or the Circulation of Commodities." Available online at the Marxists Internet Archive
- Marx, Karl & Engels, Friedrich (1885). Capital, Volume II. Chapter 20: "Simple Reproduction." Available online at the Marxists Internet Archive
- Marx, Karl & Engels, Friedrich (1894). Capital, Volume III. Chapter 13: "The Law as Such." Available online at the Marxists Internet Archive
More Marx works will be added upon request or popular usage.
The template also works reasonably well with other works:
{{MIA citation | https://www.marxists.org/archive/draper/1990/zionism/13-antisemitism.htm}} {{MIA citation | https://www.marxists.org/reference/archive/stalin/works/1938/09.htm | title = dialectical and Historical Materialism}} {{MIA citation | https://www.marxists.org/archive/lenin/works/1917/staterev/ch01.htm | title = state and revolution}} {{MIA citation | https://www.marxists.org/reference/archive/smith-adam/works/wealth-of-nations/book01/ch01.htm | title = the wealth of nations | year = 1776}}
Sample[1]
- ↑ [Author missing] (). [ Available online] at the Marxists Internet Archive