Difference between revisions of "User:NeatNit/Template/comic"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(remove all noinclude)
(make 2x images smaller (300px hardcoded for testing))
Line 98: Line 98:
 
      
 
      
 
     Not going to replace the image, so let's draw that if it exists
 
     Not going to replace the image, so let's draw that if it exists
     -->|{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imagesize|}}}|{{{titletext|}}}]]}}}}<!--
+
     -->|{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imagesize|{{#ifeq:_2x|{{#sub:{{{image}}}|-7|3}}|300px}}}}}|{{{titletext|}}}]]}}}}<!--
 
      
 
      
 
     {{{imagesize}}} will allow the comic to be shrinked if it's especially large
 
     {{{imagesize}}} will allow the comic to be shrinked if it's especially large

Revision as of 18:28, 24 June 2019