Difference between revisions of "Template:comic"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly><table class="{{{bodyclass|}}}" cellspacing="5" style="background-color: #F9F9F9; border: 1px solid #AAAAAA; color: black; font-size: 88%; line-height: 1.5em; margin: 0.5em 0 0.5em 1em; padding: 0.2em; text-align: center; width:98%;  {{{bodystyle|}}}">
 
<includeonly><table class="{{{bodyclass|}}}" cellspacing="5" style="background-color: #F9F9F9; border: 1px solid #AAAAAA; color: black; font-size: 88%; line-height: 1.5em; margin: 0.5em 0 0.5em 1em; padding: 0.2em; text-align: center; width:98%;  {{{bodystyle|}}}">
<tr><td><ul style="text-align: center; margin-bottom: 10px;"><noinclude>
+
<tr><td><ul style="text-align: center; margin-bottom: 10px;" class="no-link-underline"><noinclude>
  
 
<!-- NAVBAR: If there is an article for the comic prior to this one, create a "prev"-->
 
<!-- NAVBAR: If there is an article for the comic prior to this one, create a "prev"-->
Line 8: Line 8:
 
<!-- NAVBAR: Create a centre button with comic #, date (if exists) and link-->
 
<!-- NAVBAR: Create a centre button with comic #, date (if exists) and link-->
  
</noinclude><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: 16px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 12px;">[http://www.xkcd.com/{{{number}}}/ <span style="color: #FFFFFF;">Comic &#35;{{{number}}} {{#if:{{{date|}}}|({{{date|}}})}}</span>]</li><noinclude>
+
</noinclude><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: 16px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 12px;" class="no-xkcd-favicon">[http://www.xkcd.com/{{{number}}}/ <span style="color: #FFFFFF;">Comic &#35;{{{number}}} {{#if:{{{date|}}}|({{{date|}}})}}</span>]</li><noinclude>
  
 
<!-- NAVBAR: If there is an article for the comic following this one, create a "next"-->
 
<!-- NAVBAR: If there is an article for the comic following this one, create a "next"-->

Revision as of 16:25, 7 August 2012

Sample

The following is a sample usage of this template:

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.
[Click comic to enlarge]
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.

Usage

{{comic
| number    = 
| date      = 
| title     = {{PAGENAME}}
| image     = 
| imagesize = 
| titletext = 
}}

Note: If the page title is not the comic title, change the "title" field.

The imagesize field is optional for larger comics. The larger dimension (height or width) will be limited to the size. Warning: If the size is larger than the image, the image will be stretched. Format must be in pixels (eg: "350px")

The above sample is produced by the following code:

{{comic
| number    = 16
| date      = October 4, 2005
| title     = Monty Python -- Enough
| image     = Monty python.jpg
| imagesize = 350px
| 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.
}}