Difference between revisions of "Template:comic"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
Line 1: Line 1:
<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;"><noinclude>
  
Line 30: Line 30:
  
 
-->{{#if:{{{alttext|}}}|<span class="error">'''Error:''' The alttext= parameter to the {{tl|comic}} template was deprecated. Please edit this page and replace alttext= with titletext=.</span>}}<noinclude>
 
-->{{#if:{{{alttext|}}}|<span class="error">'''Error:''' The alttext= parameter to the {{tl|comic}} template was deprecated. Please edit this page and replace alttext= with titletext=.</span>}}<noinclude>
 +
</includeonly><noinclude>
 +
==Sample==
 +
The following is a sample usage of this template:
 +
{{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.
 +
}}
 +
 
==Usage==
 
==Usage==
 
<pre>{{comic
 
<pre>{{comic
Line 43: Line 55:
  
 
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 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:
 +
<pre>{{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.
 +
}}</pre>
 
</noinclude>
 
</noinclude>

Revision as of 16:12, 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.
}}