Editing Design of xkcd.com

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[File:xkcd_website.png|thumb|right|250px|The four segments on [[xkcd|xkcd.com]]]]{{TOC}}The '''design of [https://xkcd.com xkcd.com]''' includes four white segments, which are separated by a thin black border and a light blue-gray background color. All text on the page uses a small caps font, except for the word "xkcd" in the logo image. Here is a list of the changes that have been made:
+
[[File:xkcd_website.png|thumb|right|250px|The four segments on [[xkcd|xkcd.com]]]]{{TOC}}The '''design of [https://xkcd.com xkcd.com]''' includes four white segments. These segments are separated by a thin black border and a light blue-gray background color. Here is a list of the changes that have been made:
  
 
The design has changed many times over the years, but mainly in the beginning. Prior to [https://web.archive.org/web/20041024201125/http://68.57.186.221:8080/ October 24, 2004], the website didn't mention the name "xkcd" and didn't include any comics. During that time, the site's message simply stated: "I don't use this page for much. It goes un-updated for a long time, and I don't really change the content, though I'm thinking of putting together a good links page. For now I just mostly use this to host pictures.". Before [https://web.archive.org/web/20051018051614/http://www.xkcd.com:80/ October 18, 2005], the website was redesigned to be used to host xkcd comics. Between [http://web.archive.org/web/20060706040359/http://xkcd.com:80/ July 6, 2006] and [http://web.archive.org/web/20060710090528/http://www.xkcd.com:80/ July 10, 2006], the design of the website changed dramatically to one very similar to the current one.
 
The design has changed many times over the years, but mainly in the beginning. Prior to [https://web.archive.org/web/20041024201125/http://68.57.186.221:8080/ October 24, 2004], the website didn't mention the name "xkcd" and didn't include any comics. During that time, the site's message simply stated: "I don't use this page for much. It goes un-updated for a long time, and I don't really change the content, though I'm thinking of putting together a good links page. For now I just mostly use this to host pictures.". Before [https://web.archive.org/web/20051018051614/http://www.xkcd.com:80/ October 18, 2005], the website was redesigned to be used to host xkcd comics. Between [http://web.archive.org/web/20060706040359/http://xkcd.com:80/ July 6, 2006] and [http://web.archive.org/web/20060710090528/http://www.xkcd.com:80/ July 10, 2006], the design of the website changed dramatically to one very similar to the current one.
Line 39: Line 39:
 
==Comic==
 
==Comic==
 
[[File:xkcd_comic.png|right|150px]]
 
[[File:xkcd_comic.png|right|150px]]
This section of the website is dedicated to displaying comics. Positioned above the comic is the title, presented in large and bold lettering. Just below the title, but above the primary comic image,  there are five buttons. They follow a fairly standard layout: on the outer edges are the <li style="background-color: #6E7B91; border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray; display: inline; font-size: 11px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 0;"><span style="color: #FFFFFF; padding: 0 12px;">|<</span></li> and <li style="background-color: #6E7B91; border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray; display: inline; font-size: 12px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 0;"><span style="color: #FFFFFF; padding: 0 11px;">>|</span></li> arrows, which transport the user to the first or most recent comic accordingly. Adjacent to these are the <li style="background-color: #6E7B91; border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray; display: inline; font-size: 12px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 0;"><span style="color: #FFFFFF; padding: 0 11px;"><&nbsp;Prev</span></li> and <li style="background-color: #6E7B91; border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray; display: inline; font-size: 12px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 0;"><span style="color: #FFFFFF; padding: 0 11px;">Next&nbsp;></span></li> buttons, allowing navigation between the comics immediately before and after the currently displayed one. In instances where the displayed comic is the first or the last, attempting to access the previous or next comic will simply result in the page being reloaded. At the center there is a <li style="background-color: #6E7B91; border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray; display: inline; font-size: 12px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 0;"><span style="color: #FFFFFF; padding: 0 11px;">Random</span></li> button, which, when clicked, loads a comic at random. The same set of buttons is duplicated below the comic as well. While this redundancy isn't needed in most comics, it ensures that the buttons are conveniently accessible both before and after scrolling, especially for [[:Category:Large drawings|large comics]].
 
  
Finally, beneath this second row of buttons, two links are provided. The first functions as a permalink, directly linking to the comic currently displayed on the page. In some cases, custom permalinks are used for various versions of the same comic, such as in some of the [[:Category:Interactive comics|interactive comics]] like [[1350: Lorenz]] and [[1663: Garden]]. The structure of this link consists solely of the [https://xkcd.com xkcd.com] domain followed by the respective comic number. For instance, the link for comic [[2000: xkcd Phone 2000]] would appear as: "https://www.xkcd.com/2000/". The second link leads to the image URL suitable for hotlinking or embedding, in this case "https://imgs.xkcd.com/comics/xkcd_phone_2000.png". This link is stored within a comics-specific logical subdirectory of the server. The filenames of these images typically align with the comic titles, although exceptions arise, particularly in cases of [[:Category:Comics sharing name|title conflicts]] or when the visible comic is dynamically generated or a composite rendering.
+
This is the main segment where the comics are. On the front page, the newest comic will always be displayed. This is therefore changing, typically three times a week, but these changes are not considered a change to the front-page design. This segment is as broad as the two above together and as broad as the one below it has a rectangular shape most of the time but shapes itself after the [[482: Height|height]] of the comic. So, it can be very short [https://www.xkcd.com/1123/ like here] [[1123: The Universal Label]] and very long for instances [https://www.xkcd.com/1732/ like here] with [[1732: Earth Temperature Timeline]].
  
:Permanent link to this comic: https://xkcd.com/2000/
+
*This is where the comics are displayed.
:Image URL (for hotlinking/embedding): https://imgs.xkcd.com/comics/xkcd_phone_2000.png
+
**Above the comic is the title, in large bold letters.
 +
***As always Randall uses a small caps font. By copying text to another program without preserving the font format, it shows both capital and lowercase characters.
 +
**Below the title and above the main comic image there is a row of buttons. These are fairly standard:
 +
***The two outermost "to the limit" arrows, <nowiki>|<</nowiki> or <nowiki>>|</nowiki>, take the user to either the very first or the most recent comic.
 +
***Next to those are the ''< Previous'' and the ''Next >'' buttons, taking the user to the two adjacent comics to the one currently displayed.
 +
***In the middle is the ''Random'' button comic which chooses a random comic.
 +
****If the user is on the main page, the two rightwards-pointing buttons will not do anything as there are no newer comics than the one displayed already.
 +
****Similarly, explicitly visiting the first or latest comics removes the utility of the respective directional choices.
 +
**These buttons are repeated below the comic. For smaller comics this is not so relevant, but for taller comics this ensures the buttons are at hand both before and after any scrolling down that may have heen required.
 +
**Finally, beneath the second row of bottoms there are two links.
 +
***The first is a permalink to the current comic displayed on the page.
 +
***Permalink is also used in some of xkcd's interactive comics see the [[1350:_Lorenz#Permalink|permalink section]] on [[1350: Lorenz]].
 +
***The link is just<!--check for exceptions? --> the xkcd server address with the number of the comic. So, for the comic [[1791: Telescopes: Refractor vs Reflector]], the link would just be:
 +
****https://www.xkcd.com/1791/
 +
***The other link is:
 +
****The image URL (for hotlinking/embedding):
 +
****http://imgs.xkcd.com/comics/telescopes_refractor_vs_reflector.png  
 +
***Here the link is also on xkcd, but indicates that it is stored within a comics-specific logical subdirectory of the server, with individual filenames often in line with the comic title (though there are exceptions, especially where title clashes occur or the visible comic is actually a dynamic/composite rendering) plus the extension for the image-type, which is often .png but may be .gif or otherwise in some instances.
  
 
==Bottom segment==
 
==Bottom segment==

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Templates used on this page: