<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jack+wang</id>
		<title>explain xkcd - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jack+wang"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/Jack_wang"/>
		<updated>2026-04-29T23:29:17Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=User:Yfmcpxpj/Template:comic_2x_test&amp;diff=214294</id>
		<title>User:Yfmcpxpj/Template:comic 2x test</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User:Yfmcpxpj/Template:comic_2x_test&amp;diff=214294"/>
				<updated>2021-06-27T08:24:34Z</updated>
		
		<summary type="html">&lt;p&gt;Jack wang: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;metadesc&amp;gt;Explain xkcd is a wiki dedicated to explaining the webcomic xkcd. Go figure.&amp;lt;/metadesc&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
  Create the 'box' around the comic template&lt;br /&gt;
  &lt;br /&gt;
  --&amp;gt;&amp;lt;table class=&amp;quot;{{{bodyclass|}}}&amp;quot; cellspacing=&amp;quot;5&amp;quot; style=&amp;quot;background-color: #FFFFFF;&lt;br /&gt;
      border: 1px solid #AAAAAA; color: black; font-size: 88%;&lt;br /&gt;
      line-height: 1.5em; margin: 0.5em 0 0.5em 1em; padding: 0.2em;&lt;br /&gt;
      text-align: center; width:98%; {{{bodystyle|}}}&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
      &lt;br /&gt;
      This table will contain a table row (tr) and cell (td)&lt;br /&gt;
   --&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;!--&lt;br /&gt;
   &lt;br /&gt;
      Now make an unordered list which will display as the navigation bar&lt;br /&gt;
   --&amp;gt;&amp;lt;ul style=&amp;quot;text-align: center; margin-bottom: 10px;&amp;quot; class=&amp;quot;no-link-underline&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
   &lt;br /&gt;
      Generate the |&amp;lt; and prev buttons, but only if {{{number}}} exists and is greater than 1&lt;br /&gt;
     --&amp;gt;{{#ifexpr:{{{number|-1}}}&amp;gt;1&amp;lt;!--&lt;br /&gt;
     &lt;br /&gt;
        {{{number}}} is greater than 1; make a list item and put a button in it that links to #1&lt;br /&gt;
       --&amp;gt;|&amp;lt;li style=&amp;quot;background-color: #6E7B91;&lt;br /&gt;
              border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray;&lt;br /&gt;
              display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600;&lt;br /&gt;
              margin: 0 4px; padding: 1.5px 0;&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
              link to #1&lt;br /&gt;
         --&amp;gt;[[1|&amp;lt;span style=&amp;quot;color: #FFFFFF; padding: 0 12px;&amp;quot;&amp;gt;&amp;amp;#124;&amp;amp;lt;&amp;lt;/span&amp;gt;]]&amp;lt;/li&amp;gt;&amp;lt;!--&lt;br /&gt;
         &lt;br /&gt;
        We're not done here yet, make the back button next&lt;br /&gt;
         --&amp;gt;&amp;lt;li style=&amp;quot;background-color: #6E7B91;&lt;br /&gt;
              border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray;&lt;br /&gt;
              display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600;&lt;br /&gt;
              margin: 0 4px; padding: 1.5px 0;&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
              &lt;br /&gt;
              link to previous comic&lt;br /&gt;
           --&amp;gt;[[{{#expr:{{{number}}}-1}}|&amp;lt;span style=&amp;quot;color: #FFFFFF; padding: 0 12px;&amp;quot;&amp;gt;&amp;amp;lt;&amp;amp;nbsp;Prev&amp;lt;/span&amp;gt;]]&amp;lt;/li&amp;gt;&amp;lt;!--&lt;br /&gt;
              &lt;br /&gt;
              {{{number}}} doesn't exist or is less than 1; just put non-breaking spaces here&lt;br /&gt;
              --&amp;gt;|&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;}}&amp;lt;!--&lt;br /&gt;
        &lt;br /&gt;
        Regardless of {{{number}}}, we need to make the comic date, link etc.&lt;br /&gt;
      --&amp;gt;&amp;lt;li style=&amp;quot;background-color: #6E7B91;&lt;br /&gt;
          border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray;&lt;br /&gt;
          display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600;&lt;br /&gt;
          margin: 0 4px; padding: 1.5px 0;&amp;quot;&lt;br /&gt;
          class=&amp;quot;plainlinks&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
          &lt;br /&gt;
          [ and ] makes an external link, vs. [[ and ]] which are internal only.&lt;br /&gt;
          Depending whether {{{number}}} exists or not, toggle between using wide link mode or number link mode.&lt;br /&gt;
          Wide link mode requires {{{lappend}}} to be set, while {{{ldomain}}} can default to www&lt;br /&gt;
          --&amp;gt;[{{#ifexpr:{{{number|-1}}}&amp;gt;=1&amp;lt;!--&lt;br /&gt;
          &lt;br /&gt;
          Comic number is probably valid, use number link mode&lt;br /&gt;
          --&amp;gt;|https://www.xkcd.com/{{{number}}}/&amp;lt;!--&lt;br /&gt;
          &lt;br /&gt;
          Comic number is invalid or doesn't exist, use wide link mode&lt;br /&gt;
          --&amp;gt;|http://{{{ldomain|www}}}.xkcd.com/{{{lappend}}}/}}&amp;lt;!--&lt;br /&gt;
          &lt;br /&gt;
          Generate the title, with date if it exists&lt;br /&gt;
          --&amp;gt;&amp;lt;span style=&amp;quot;color: #FFFFFF; padding: 0 12px;&amp;quot;&amp;gt;Comic&amp;amp;nbsp;&amp;lt;!--&lt;br /&gt;
          --&amp;gt;{{#ifexpr:{{{number|-1}}}&amp;gt;= 1|&amp;amp;#35;|}}{{{number|}}}&amp;amp;nbsp;{{#if:{{{date|}}}|({{#replace:{{{date}}}| |&amp;amp;nbsp;}})}}&amp;lt;/span&amp;gt;]&amp;lt;/li&amp;gt;&amp;lt;!--&lt;br /&gt;
        &lt;br /&gt;
        Should we include a 2x button?&lt;br /&gt;
        --&amp;gt;{{#if:{{{omit2x|}}}| |&amp;lt;!--&lt;br /&gt;
          &lt;br /&gt;
          Has a 2x image been explicitly specified?&lt;br /&gt;
          --&amp;gt;{{#if:{{{override2x|}}}&amp;lt;!--&lt;br /&gt;
            &lt;br /&gt;
            Use that target for the 2x button.&lt;br /&gt;
            --&amp;gt;|&amp;lt;li style=&amp;quot;background-color: #6E7B91;&lt;br /&gt;
                           border: 1.5px solid #333333;&lt;br /&gt;
                           border-radius: 3px 3px 3px 3px;&lt;br /&gt;
                           box-shadow: 0 0 5px 0 gray;&lt;br /&gt;
                           display: inline;&lt;br /&gt;
                           font-size: 16px;&lt;br /&gt;
                           font-variant: small-caps;&lt;br /&gt;
                           font-weight: 600;&lt;br /&gt;
                           margin: 0 4px;&lt;br /&gt;
                           padding: 1.5px 0;&amp;quot;&lt;br /&gt;
                    class=&amp;quot;plainlinks&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
              &lt;br /&gt;
              The image files are hosted at imgs.xkcd.com/comics/&lt;br /&gt;
              --&amp;gt;[https://imgs.xkcd.com/comics/{{{override2x}}} &amp;lt;span style=&amp;quot;color: #FFFFFF; padding: 0 12px;&amp;quot;&amp;gt;2x&amp;lt;/span&amp;gt;]&amp;lt;/li&amp;gt;&amp;lt;!--&lt;br /&gt;
            &lt;br /&gt;
            Otherwise, check if the comic is #1084 or above.&lt;br /&gt;
            --&amp;gt;|{{#ifexpr:{{{number|-1}}}&amp;gt;=1084|&amp;lt;!--&lt;br /&gt;
              &lt;br /&gt;
              If so, add a &amp;quot;2x&amp;quot; button linking to the 2x image.&lt;br /&gt;
              --&amp;gt;&amp;lt;li style=&amp;quot;background-color: #6E7B91;&lt;br /&gt;
                            border: 1.5px solid #333333;&lt;br /&gt;
                            border-radius: 3px 3px 3px 3px;&lt;br /&gt;
                            box-shadow: 0 0 5px 0 gray;&lt;br /&gt;
                            display: inline;&lt;br /&gt;
                            font-size: 16px;&lt;br /&gt;
                            font-variant: small-caps;&lt;br /&gt;
                            font-weight: 600;&lt;br /&gt;
                            margin: 0 4px;&lt;br /&gt;
                            padding: 1.5px 0;&amp;quot;&lt;br /&gt;
                     class=&amp;quot;plainlinks&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
                &lt;br /&gt;
                The image files are hosted at imgs.xkcd.com/comics/&lt;br /&gt;
                --&amp;gt;[https://imgs.xkcd.com/comics/&amp;lt;!--&lt;br /&gt;
                &lt;br /&gt;
                The filename is the same as the original comic, but with &amp;quot;_2x&amp;quot; inserted at the end of the filename before the extension.&lt;br /&gt;
                So take everything before the final dot.&lt;br /&gt;
                --&amp;gt;{{#sub:{{{image|}}}|0|{{#rpos:{{{image|}}}|.}}}}&amp;lt;!--&lt;br /&gt;
                &lt;br /&gt;
                Then insert &amp;quot;_2x&amp;quot;.&lt;br /&gt;
                --&amp;gt;_2x&amp;lt;!--&lt;br /&gt;
                &lt;br /&gt;
                Then append the dot and filename extension.&lt;br /&gt;
                --&amp;gt;{{#sub:{{{image|}}}|{{#rpos:{{{image|}}}|.}}}}&amp;lt;!--&lt;br /&gt;
                &lt;br /&gt;
                Finally, add the displayed text for the button.&lt;br /&gt;
                --&amp;gt; &amp;lt;span style=&amp;quot;color: #FFFFFF; padding: 0 12px;&amp;quot;&amp;gt;2x&amp;lt;/span&amp;gt;]&amp;lt;/li&amp;gt;}}&amp;lt;!--&lt;br /&gt;
                &lt;br /&gt;
          --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
        --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
        &lt;br /&gt;
        Now make the next and &amp;gt;| buttons provided comic number exists&lt;br /&gt;
        --&amp;gt;{{#ifexist:{{#expr:{{{number|-2}}}+1}}&amp;lt;!--&lt;br /&gt;
        &lt;br /&gt;
        No numbers higher than LATESTCOMIC&lt;br /&gt;
        --&amp;gt;|{{#ifexpr:{{LATESTCOMIC}}-{{{number}}}&amp;gt;0&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
        Comic number is valid, generate the buttons&lt;br /&gt;
        --&amp;gt;|&amp;lt;li style=&amp;quot;background-color: #6E7B91;&lt;br /&gt;
              border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray;&lt;br /&gt;
              display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600;&lt;br /&gt;
              margin: 0 4px; padding: 1.5px 0;&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
        --&amp;gt;[[{{#expr:{{{number}}}+1}}{{!}}&amp;lt;span style=&amp;quot;color: #FFFFFF; padding: 0 12px;&amp;quot;&amp;gt;Next&amp;amp;nbsp;&amp;amp;gt;&amp;lt;/span&amp;gt;]]&amp;lt;/li&amp;gt;&amp;lt;!--&lt;br /&gt;
        &lt;br /&gt;
        Make a button that points to LATESTCOMIC (which is of course the latest comic)&lt;br /&gt;
        --&amp;gt;&amp;lt;li style=&amp;quot;background-color: #6E7B91;&lt;br /&gt;
              border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray;&lt;br /&gt;
              display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600;&lt;br /&gt;
              margin: 0 4px; padding: 1.5px 0;&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
              --&amp;gt;[[{{LATESTCOMIC}}{{!}}&amp;lt;span style=&amp;quot;color: #FFFFFF; padding: 0 12px;&amp;quot;&amp;gt;&amp;amp;gt;&amp;amp;#124;&amp;lt;/span&amp;gt;]]&amp;lt;/li&amp;gt;&amp;lt;!--&lt;br /&gt;
        &lt;br /&gt;
        Comic number (plus one) is not valid, don't show the buttons&lt;br /&gt;
        --&amp;gt;|&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;}}|&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;}}&amp;lt;/ul&amp;gt;&amp;lt;!--&lt;br /&gt;
    --&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    Now that the nav bar has been generated, display the rest of the filled-out comic template&lt;br /&gt;
    &lt;br /&gt;
    Comic title in =BOLD=&lt;br /&gt;
    --&amp;gt;{{#if:{{{title|}}}|&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;font-size: 20px; padding-bottom:10px&amp;quot;&amp;gt;'''{{{title}}}'''&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;}}&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    Display the (optional) text just before the comic&lt;br /&gt;
    --&amp;gt;{{#if:{{{before|}}}|&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;padding-bottom:10px&amp;quot;&amp;gt;{{{before}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;}}&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    Almost done; just need to display the comic, title text and a bit more&lt;br /&gt;
    --&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    {{{custom}}} will replace the image with whatever it contains if it exists&lt;br /&gt;
    --&amp;gt;{{#if: {{{custom|}}}|{{{custom|}}}&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    Not going to replace the image, so let's draw that if it exists&lt;br /&gt;
    --&amp;gt;|{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imagesize|}}}|{{{titletext|}}}]]}}}}&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    {{{imagesize}}} will allow the comic to be shrinked if it's especially large&lt;br /&gt;
    --&amp;gt;{{#if:{{{imagesize|}}}|&amp;lt;br /&amp;gt;[Click comic to enlarge]}}&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    Final bit; if the comic has text on mouse-over, add that in a small print underneath the comic&lt;br /&gt;
    --&amp;gt;{{#if:{{{titletext|}}}|&amp;lt;br /&amp;gt;&amp;lt;span style=&amp;quot;{{{captionstyle|}}}&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:grey&amp;quot;&amp;gt;Title text:&amp;lt;/span&amp;gt; {{{titletext}}}&amp;lt;!--&lt;br /&gt;
    --&amp;gt;&amp;lt;/span&amp;gt;}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
    Categorisation for people who like that kind of thing&lt;br /&gt;
    &lt;br /&gt;
    Sort this page in categories by number. The padding ensures that #9 comes before #10&lt;br /&gt;
    It otherwise sorts 'alphanumerically'; as in since the first char of 10 is 1, it would normally be placed before 9&lt;br /&gt;
    The padding turns each into 0009 and 0010 etc. and since 0 is less than 1, #9 gets sorted before #10.&lt;br /&gt;
    --&amp;gt;{{#ifexpr:{{{number|-1}}}&amp;gt;=1|{{DEFAULTSORT: {{padleft:{{{number}}}|4}}|noreplace}}|&amp;lt;!--&lt;br /&gt;
    --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
    &lt;br /&gt;
  Only categorise if in the main namespace&lt;br /&gt;
  --&amp;gt;{{#ifeq:{{NAMESPACE}}|{{ns:0}}&amp;lt;!--&lt;br /&gt;
  &lt;br /&gt;
  Don't try to categorise the main page nor the extra comics&lt;br /&gt;
  --&amp;gt;|{{#ifeq:{{FULLPAGENAME}}|{{int:mainpage}}||{{#ifeq:{{{extra|}}}|yes|[[Category:Extra comics]]|&amp;lt;!--&lt;br /&gt;
  &lt;br /&gt;
    Alright, start putting it in the appropriate date categories&lt;br /&gt;
    --&amp;gt;[[Category:All comics]]{{#if:{{{date|}}}|[[Category:Comics from {{#time:Y|{{{date}}}}}]]&amp;lt;!-- Years&lt;br /&gt;
    --&amp;gt;[[Category:Comics from {{#time:F|{{{date}}}}}]]                                           &amp;lt;!-- Months&lt;br /&gt;
    --&amp;gt;[[Category:{{#time:l|{{{date}}}}} comics]]                                                &amp;lt;!-- Weekdays&lt;br /&gt;
    --&amp;gt;}}}}}}|}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!--    DOCUMENTATION   --&amp;gt;&lt;br /&gt;
This is a test version of [[Template:comic]], which is the basic infobox-style header template used to display [[xkcd]] comics on their own pages, including the comic number (with external link to xkcd), publication date, title, comic image, and title text.  This particular version adds a &amp;quot;2x&amp;quot; button to link to the comic's double-resolution image on xkcd.com.&lt;br /&gt;
&lt;br /&gt;
== Sample ==&lt;br /&gt;
&lt;br /&gt;
The following is a sample usage of this template:&lt;br /&gt;
{{User:Yfmcpxpj/Template:comic 2x test&lt;br /&gt;
| number    = 1084&lt;br /&gt;
| date      = July 20, 2012&lt;br /&gt;
| title     = Server Problem&lt;br /&gt;
| image     = server_problem.png&lt;br /&gt;
| titletext = Protip: Annoy Ray Kurzweil by always referring to it as the 'Cybersingularity'.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{User:Yfmcpxpj/Template:comic 2x test&lt;br /&gt;
| number    =&lt;br /&gt;
| date      =&lt;br /&gt;
| title     =&lt;br /&gt;
| before    =&lt;br /&gt;
| image     =&lt;br /&gt;
| custom    =&lt;br /&gt;
| imagesize =&lt;br /&gt;
| titletext =&lt;br /&gt;
| ldomain   =&lt;br /&gt;
| lappend   =&lt;br /&gt;
| override2x=&lt;br /&gt;
| omit2x    =&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
* At least the number, title and image are required.&lt;br /&gt;
* The date should be written in the form: January 1, 2006&lt;br /&gt;
* The imagesize field is optional.&lt;br /&gt;
** The comic's '''width''' will be limited to the set size. Format must be in pixels (eg: &amp;quot;350px&amp;quot;)&lt;br /&gt;
** The comic's '''height''' may be set by adding an 'x' to the start (eg: &amp;quot;x350px&amp;quot;)&lt;br /&gt;
** Warning: If the size is larger than the image, the image will be stretched.&lt;br /&gt;
* '''before''' is a special field for inserting text before the comic. One use is for extremely large comics (e.g. [[Umwelt]]), to skip to the explanation.&lt;br /&gt;
* If the '''custom''' field is not empty, the image field will be ignored and be replaced with any text that you put in the '''custom''' field.&lt;br /&gt;
* if '''number''' is left undefined, most of the navigation bar will be disabled.&lt;br /&gt;
** '''lappend''' must be defined as &amp;lt;pre&amp;gt;...kd.com/'''lappend'''/&amp;lt;/pre&amp;gt; to keep the link to xkcd.com valid.&lt;br /&gt;
** If the link is to eg. a blog post (blog.xkcd.com) '''ldomain''' can be defined as &amp;lt;pre&amp;gt;blog&amp;lt;/pre&amp;gt; to change the subdomain in the link.&lt;br /&gt;
* For comics as of [[1084]], a &amp;quot;2x&amp;quot; button will automatically appear, linking to the double-size version of the comic on xkcd.com.  That behavior can be modified with the following optional parameters:&lt;br /&gt;
** If the 2x image for a particular comic doesn't exist, or has some other problem, the &amp;quot;2x&amp;quot; button can be omitted by specifying a non-zero/non-empty value for '''omit2x''' (example: &amp;lt;code&amp;gt;omit2x=true&amp;lt;/code&amp;gt;).&lt;br /&gt;
** Or, if the ''filename'' of the 2x file is different, a specific image filename can be specified for '''override2x''', even for older comics (example: &amp;lt;code&amp;gt;override2x=server_problem_2x.png&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
The above sample is produced by the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{User:Yfmcpxpj/Template:comic 2x test&lt;br /&gt;
| number    = 1084&lt;br /&gt;
| date      = July 20, 2012&lt;br /&gt;
| title     = Server Problem&lt;br /&gt;
| image     = server_problem.png&lt;br /&gt;
| titletext = Protip: Annoy Ray Kurzweil by always referring to it as the 'Cybersingularity'.&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
Free learning website:&amp;lt;a href=&amp;quot;https://magictarot.com/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;MagicTarot&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Category:Templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jack wang</name></author>	</entry>

	</feed>