User:Harrystein/sandbox/template/MIA citation: Difference between revisions

From Leftypedia
Jump to navigation Jump to search
(Reverted to the proper version. The fight continues)
Tag: Manual revert
Line 1: Line 1:
{{#tag:ref|<!--
{{#tag:ref|<!--
-->{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}<br>
#0: Check for special cases. This is an ad-hoc solution that could probably be simplified later using arrays.
Author: {{array|get|{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}|/|1}}<br>
-->{{#switch: {{string split|{{{link|{{{1|}}}}}}|/archive/|2}}
Year: {{array|get|{{string split|{{{link|{{{1|}}}}}}|/works/|2}}|/|3}}<br>
    | marx/works/1867-c1/ch03.htm#S1 = Yeap!
For loop: {{for loop|%
    | Shit, mang.
| call = array
  }}
| pv = 4
<!--
| stop = 5
#1: Author name
| pc1n = 1
-->{{#switch: {{replace|{{replace|{{lc:{{{2|{{{author|{{first word|{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}|sep=/}}<!--shitty hack because i'm not a conputer geinius-->}}} }}} }}|,|}}|.|}}
| pc1v = get
| stalin
| pc2n = 2
| j v stalin
| pc2v = {{string split|{{{link|{{{1|}}}}}}|/archive/|2}}
| stalin joseph
| pc3n = 3
| stalin j v
| pc3v = /
| stalin josef = [[Joseph Stalin|Stalin, J.V.]]
}}
| marx
| karl marx
| marx karl = [[Karl Marx|Marx, Karl]]
| lenin
| v i lenin
| vladimir lenin
| lenin vladimir = [[Vladimir Lenin|Lenin, V. I.]]
| adam smith
| smith-adam
| smith adam = [[Adam Smith|Smith, Adam]]
| trotsky
| trotsky leon
| leon trotsky
| lev trotsky
| lev bronstein
| bronstein lev = [[Leon Trotsky|Trotsky, Leon]]
| {{{author|[Author missing]}}}
}}<!--
#2: Year
Check for year param:
--> ({{{year|{{{3|<!--
If the year is not provided, check the URL for a year and make sure it is numeric:
-->{{if then show|{{isnumeric|{{first word|{{string split|{{{link|{{{1|/works/YEAR/}}}}}}|/works/|2}}|sep=/}}}}|year}}}}}}}}).<!--
#3: Link & Title.
--> ''[{{{1|{{{link|[[category:pages incorrectly using the MIAE template]]}}}}}} {{if then show|{{title case|{{{4|{{{title|}}}}}}}}|Source<includeonly>[[category:pages incorrectly using the MIAE template]]</includeonly>}}]'' at the [[Marxists Internet Archive]]
}}
}}

Revision as of 18:49, 30 May 2024

[1]

  1. Shit, mang. [Author missing] (year). [[[category:pages incorrectly using the MIAE template]] Source] at the Marxists Internet Archive