Template:sandbox

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search

This 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.

Sample[edit]

The following is a sample usage of this template:

I went to a dinner where there was a full 10 minutes of Holy Grail quotes exchanged, with no context, in lieu of conversation. It depressed me badly.
Monty Python -- Enough
I went to a dinner where there was a full 10 minutes of Holy Grail quotes exchanged, with no context, in lieu of conversation.  It depressed me badly.
Title text: I went to a dinner where there was a full 10 minutes of Holy Grail quotes exchanged, with no context, in lieu of conversation. It depressed me badly.
Transcript
I went to a dinner where there was a full 10 minutes of Holy Grail quotes exchanged, with no context, in lieu of conversation. It depressed me badly.

Usage[edit]

{{comic
| number    = 
| date      = 
| title     = 
| before    =
| image     = 
| custom    = 
| imagesize = 
| titletext = 
| transcript= 
}}

Notes[edit]

  • At least the number, title and image are required.
  • The date should be written in the form: January 1, 2006
  • The imagesize field is optional.
    • The comic's width will be limited to the set size. Format must be in pixels (eg: "350px")
    • The comic's height may be set by adding an 'x' to the start (eg: "x350px")
    • Warning: If the size is larger than the image, the image will be stretched.
  • 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.
  • 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.

The above sample is produced by the following code: tvtropes

{{comic
| number    = 16
| date      = October 4, 2005
| title     = Monty Python -- Enough
| image     = monty_python.jpg
| titletext = I went to a dinner where there was a full 10 minutes of Holy Grail quotes exchanged, with no context, in lieu of conversation.  It depressed me badly.
}}
B-Univ
@RULE B-Univ
#State 1 is wire
#State 2 is turn right signal/command
#State 3 is signal tail, also emulates B2ae/S
#State 4 is turn left signal/command
#State 5 is the hand
#State 6 is retract signal/command
#State 7 is extend signal/command
@TABLE
n_states:8
neighborhood:Moore
symmetries:rotate4
var s = {2,4,6,7}
var s1 = {2,4,6,7}
var s2 = {4,6,7}
var s3 = {2,6,7}
var s4 = {2,4,7}
var s5 = {2,4,6}
var ts = {2,4}
var a1 = {0,1,2,3,4,5,6,7}
var a2 = {0,1,2,3,4,5,6,7}
var a3 = {0,1,2,3,4,5,6,7}
var a4 = {0,1,2,3,4,5,6,7}
var a5 = {0,1,2,3,4,5,6,7}
var a6 = {0,1,2,3,4,5,6,7}
var a7 = {0,1,2,3,4,5,6,7}
var a8 = {0,1,2,3,4,5,6,7}
var w1 = {0,1,3,5}
var w2 = {0,1,3,5}
var w3 = {0,1,3,5}
var w4 = {0,1,3,5}
var w5 = {0,1,3,5}
var w6 = {0,1,3,5}
var w7 = {0,1,3,5}
var w8 = {0,1,3,5}
var b1 = {0,5}
var b2 = {0,5}
var b3 = {0,5}
var b4 = {0,5}
var b5 = {0,5}
var b6 = {0,5}
var b7 = {0,5}
var l1 = {0,3}
var l2 = {0,3}
var l3 = {0,3}
var l4 = {0,3}
var l5 = {0,3}
var l6 = {0,3}
var l7 = {0,3}
var l8 = {0,3}
var h = {1,5}
0,1,0,1,0,0,0,0,0,1
0,5,1,w1,w2,a1,a2,a3,6,5
0,5,4,a1,a2,a3,a4,a5,a6,5
0,5,0,0,0,a1,1,1,2,0
0,5,0,a1,a2,a3,a4,a5,2,5
0,1,3,2,5,0,0,0,0,0
0,a1,2,5,a2,a3,a4,a5,0,5
0,5,1,a1,a2,a3,a4,a5,6,5
0,6,5,0,0,0,0,0,5,1
0,6,5,w1,w2,w3,w4,w5,5,3
0,3,0,3,0,0,0,0,0,3
0,3,3,0,0,0,0,0,0,3
0,0,3,3,0,0,0,0,0,3
0,0,3,6,5,5,0,0,0,6
s,3,0,5,1,1,1,5,0,0
1,3,5,w1,w2,w3,w4,w5,5,0
3,5,0,5,w1,1,w2,5,0,0
5,0,1,0,0,0,0,0,0,0
5,0,3,1,1,0,0,1,0,0
5,6,0,1,0,0,a1,0,0,2
5,s,3,h,0,0,0,a1,1,5
5,s,3,5,a1,a2,a3,a4,1,5
5,5,w1,1,w2,0,0,6,0,3
5,0,5,3,1,w1,w2,a1,a2,0
5,w1,1,3,5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
n_states:8
neighborhood:Moore
symmetries:rotate4reflect
# v1.1.0 - Integrated the newest stable CataProp release
var w={0,1} # Empty and blue
var w1=w
var w2=w
var a={0,1,2,3,4,5,6,7} # All cells
var a1=a
var a2=a
var a3=a
var a4=a
var a5=a
var a6=a
var a7=a
var c={0,3,5} # CataProp cells
var c5=c
var c3=c
var c3=c
var c4=c
var c5=c
var c6=c
var c7=c
var d={0,1,2,4,5,6,7} # All cells except red
var s={2,4,6,7} # Signal heads

0,s,1,5,1,0,1,5,1,7 # Color changer
0,7,1,5,5,0,5,5,1,4
0,4,1,5,5,0,5,5,1,2
0,2,1,5,5,0,5,5,1,6

5,0,5,0,5,0,0,0,0,3 # T-ship
0,5,0,0,0,3,0,0,0,5
0,3,0,0,5,5,5,0,0,3
0,5,0,5,0,5,0,0,0,3
0,0,5,3,5,0,0,0,c,3
0,0,5,3,5,0,5,3,5,3
0,5,3,5,5,0,0,0,0,5
0,5,5,5,0,0,0,0,0,5
5,5,0,5,5,0,0,0,0,3
5,0,3,3,3,0,0,0,0,0
5,5,3,0,0,5,0,0,0,0
5,0,3,5,0,5,5,5,0,0
5,0,5,5,0,5,0,5,5,0
3,0,5,3,5,0,5,3,5,3
3,0,5,3,5,0,c,0,0,3
3,5,c,0,0,5,0,0,0,3
0,3,3,5,c3,c,c5,c3,0,5
5,3,3,0,c,c5,c3,0,0,0
3,c,c5,c3,c3,c4,c5,c6,c7,0 # Red otherwise dies

0,2,5,0,0,0,0,0,0,1 # Make FIRE elbow
1,s,5,0,a,a1,a2,a3,a4,0 # Delete blue after FIRE
0,0,5,4,3,0,0,0,0,5 # Switch magenta
0,5,5,7,3,0,0,0,0,7 # Make new elbow usable
5,1,0,0,6,5,a,a1,a2,5
5,4,5,0,0,0,0,0,a,0 # Kill magenta after switch
0,0,3,2,5,0,0,0,0,3 # Make new hand
0,4,5,0,0,0,0,0,0,5 # Make DO elbow
0,0,3,s,5,0,a,a1,a2,s # Signal make turn on elbow
0,5,a,0,6,0,a1,a2,a3,5 # Pull magenta
5,0,5,7,3,a,a1,a2,a3,5 # Keep magenta after making abnew magenta
5,7,5,d,a1,a2,a3,a4,a5,0 # Kill magenta after creating one using cyan
5,5,6,3,0,0,a,a1,a2,0 # Kill magenta in FIRE elbow
0,6,5,5,0,1,a,a1,a2,6 # Keep white in FIRE elbow
0,6,5,5,0,a,a1,a2,a3,0 # Kill white after pulling
5,5,0,0,6,5,a,a1,a2,5 # Keep magenta if there's a cell next to to it
5,5,6,0,1,a,a1,a2,a3,5 # Keep magenta in FIRE elbow
5,5,6,0,a,a1,a2,a3,a4,0 # Kill magenta
0,7,5,0,0,0,0,0,0,3 # Push action from Sticky
0,3,3,5,a3,a,a1,a2,0,5 # Add magenta
5,3,3,0,a,a1,a2,0,0,0 # Kill magenta
0,s,d,a,a1,a2,a3,a4,d,s # Signal propagation
0,s,3,a,a1,a2,a3,a4,1,s # Signal splits
0,s,3,1,a,a1,a2,1,a3,s # Signal splits
s,a,a1,a2,a3,a4,a5,a6,a7,3 # Red always decay from head
3,a,a1,a2,a3,a4,a5,a6,a7,0 # Red always die
@NAMES
0 Empty
1 Sheath
2 FIRE/MKARM
3 Signal tail
4 DO/SWITCH
5 Hand/elbow
6 PULL/CLEAR
7 PUSH/ADD
@COLORS
1 0 0 255
2 0 255 0
3 255 0 0
4 255 255 0
5 255 0 255
6 255 255 255
7 0 255 255