Difference between revisions of "Template:comic"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
Line 4: Line 4:
 
{{#ifeq:{{{number|}}}|1
 
{{#ifeq:{{{number|}}}|1
 
   |
 
   |
   |<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;">[[{{#expr:{{{number|}}}-1}}|<span style="color: #FFFFFF;">&lt; Prev</span>]]</li>
+
   |<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;">[[{{#expr:{{{number|}}}-1}}|<span style="color: #FFFFFF;">&lt; Prev</span>]]</li>|<li style="border: 1.5px ; border-radius: 3px 3px 3px 3px; box-shadow: 0; display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 12px;"><span style="color: #FFFFFF;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>}}
 
}}
 
}}
 
<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>
 
<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>
 
{{#ifexist:{{#expr:{{{number|}}}+1}}
 
{{#ifexist:{{#expr:{{{number|}}}+1}}
   |<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;">[[{{#expr:{{{number|}}}+1}}|<span style="color: #FFFFFF;">Next &gt;</span>]]</li>|<li style="border: 1.5px ; border-radius: 3px 3px 3px 3px; box-shadow: 0; display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 12px;"><span style="color: #FFFFFF;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>}}
+
   |<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;">[[{{#expr:{{{number|}}}+1}}|<span style="color: #FFFFFF;">Next &gt;</span>]]</li>|<li style="border: 1.5px ; border-radius: 3px 3px 3px 3px; box-shadow: 0; display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600; margin: 0 4px; padding: 1.5px 12px;"><span style="color: #FFFFFF;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li>}}
 
</ul></td></tr>
 
</ul></td></tr>
 
<tr><td>{{#if:{{{title|}}}|<span style="font-size:20px">'''{{{title|}}}'''</span>}}</td></tr>
 
<tr><td>{{#if:{{{title|}}}|<span style="font-size:20px">'''{{{title|}}}'''</span>}}</td></tr>

Revision as of 17:16, 3 August 2012

Usage

{{Comicheader/beta1
| number  = 
| date    = 
| title   = {{PAGENAME}}
| image   = 
| alttext = 
}}

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