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

From Leftypedia
Jump to navigation Jump to search
m (Undo revision 22139 by Harrystein (talk))
m (Replaced content with "{{#tag:ref|<!-- -->{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}; {{array|get|{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}|/|3}} }}")
Tags: Replaced Reverted
Line 1: Line 1:
{{#tag:ref|<!--
{{#tag:ref|<!--
#0: Check for special cases. This is an ad-hoc solution that could probably be simplified later using arrays.
-->{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}; {{array|get|{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}|/|3}}
-->{{#switch: {{string split|{{{link|{{{1|}}}}}}|/archive/|2}}
    | marx/works/1867-c1/ch03.htm#S1 = Yeap!
    | Shit, mang.
  }}
<!--
#1: Author name
-->{{#switch: {{replace|{{replace|{{lc:{{{2|{{{author|{{first word|{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}|sep=/}}<!--shitty hack because i'm not a conputer geinius-->}}} }}} }}|,|}}|.|}}
| stalin
| j v stalin
| stalin joseph
| stalin j v
| 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 13:12, 28 May 2024

[1]

  1. ;