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

From Leftypedia
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
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.
#0: Check for special cases. Hacky solution that probably could be streamlined or simplified
-->{{#switch: {{string split|{{{link|{{{1|}}}}}}|/archive/|2}}
-->{{if then show|{{#switch:<!--
    | marx/works/1867-c1/ch03.htm#S1 = Yeap!
#0.1: The following returns codes that are then used by the switch function.
    | Shit, mang.  
-->{{switch by pattern|_input={{string split|{{{link|{{{1|}}}}}}|/archive/|2}}
  }}
  | capital1 = marx/works/1867%-c1
<!--
  | capital2 = marx/works/1867%-c2
  | capital3 = marx/works/1867%-c3
  | _default = NO SPECIAL CASE
}}
| capital1 = [[Karl Marx|Marx, Karl]] (1867). ''Capital, Volume I'', Chapter {{switch by pattern|_input={{{link|{{{1|}}}}}}|_returncaptures=y|marx/works/1867%-c1/ch0?(%d%d?)}}
| capital2 = [[Karl Marx|Marx, Karl]] (1867). ''Capital, Volume I'', Chapter {{switch by pattern|_input={{{link|{{{1|}}}}}}|_returncaptures=y|marx/works/1867%-c2/ch0?(%d%d?)}}
| capital3 = [[Karl Marx|Marx, Karl]] (1867). ''Capital, Volume I'', Chapter {{switch by pattern|_input={{{link|{{{1|}}}}}}|_returncaptures=y|marx/works/1867%-c3/ch0?(%d%d?)}}
|
}}|<!--
#1: Author name
#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-->}}} }}} }}|,|}}|.|}}
-->{{#switch: {{replace|{{replace|{{lc:{{{2|{{{author|{{first word|{{string split|{{{link|{{{1|}}}}}}|/archive/|2}}|sep=/}}<!--shitty hack because i'm not a conputer geinius-->}}} }}} }}|,|}}|.|}}
Line 37: Line 45:
-->{{switch by pattern|_input={{{link|{{{1|}}}}}}|_returncaptures=y|/(%d%d%d%d)/|_default=Four-digit year not in URL.}}}}}}}}).<!--
-->{{switch by pattern|_input={{{link|{{{1|}}}}}}|_returncaptures=y|/(%d%d%d%d)/|_default=Four-digit year not in URL.}}}}}}}}).<!--
#3: Link & Title.
#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]]
--> ''[{{{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 20:45, 30 May 2024

[1]

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