Doctor Who Cuttings Archive

Difference between revisions of "Template:Img link"

From The Doctor Who Cuttings Archive
Jump to navigationJump to search
Line 1: Line 1:
<includeonly>{{#switch: comparison string
+
<includeonly>
| jpg
+
{{#ifeq: {{#pos:{{{filename}}}|.jpg}} | 0 | | [[Image:{{{filename}}}|link={{filepath:{{{filename}}}}}|{{px|250}}]] }}
| jpeg = [[Image:{{{filename}}}|link={{filepath:{{{filename}}}}}|{{px|
+
{{#ifeq: {{#pos:{{{filename}}}|.pdf}} | 0 | | [[File:{{{filename}}}|{{px|250}}]] }}  
250}}]]
 
| pdf = [[File:{{{filename}}}|{{px|250}}]]
 
}}
 
 
</includeonly>
 
</includeonly>

Revision as of 00:44, 13 October 2013