User:Harrystein/sandbox/template/MIA citation: Difference between revisions
< User:Harrystein | sandbox | template
Jump to navigation
Jump to search
Harrystein (talk | contribs) m (Harrystein moved page User:Harrystein/sandbox/template/MIAE citation to User:Harrystein/sandbox/template/MIA citation without leaving a redirect) |
Harrystein (talk | contribs) (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}}< | #0: Check for special cases. This is an ad-hoc solution that could probably be simplified later using arrays. | ||
Author: {{ | -->{{#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 18:49, 30 May 2024
- ↑ Shit, mang. [Author missing] (year). [[[category:pages incorrectly using the MIAE template]] Source] at the Marxists Internet Archive