Difference between revisions of "Template:Comicbox sandbox"
Line 1: | Line 1: | ||
<!-- This template was based on code from Template:Comicbox square or vertical and Template:Comicbox horizontal, both by User:Grep. --> | <!-- This template was based on code from Template:Comicbox square or vertical and Template:Comicbox horizontal, both by User:Grep. --> | ||
<includeonly>{| style="padding: 10px; width: {{{width|100%}}}; background-color: #DDD; border: 1px solid #CCC; text-align: center;" | <includeonly>{| style="padding: 10px; width: {{{width|100%}}}; background-color: #DDD; border: 1px solid #CCC; text-align: center;" | ||
+ | <tr><td><!-- | ||
+ | --><ul style="text-align: center; margin-bottom: 10px;" class="no-link-underline"><!-- | ||
+ | |||
+ | ### If there is an article for the comic prior to this one, create a "prev" ### | ||
+ | |||
+ | -->{{#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;">< Prev</span>]]<!-- | ||
+ | --></li><!-- | ||
+ | -->|<li style="display: inline; font-size: 16px; margin: 0 4px; padding: 1.5px 12px;"><!-- | ||
+ | --> <!-- | ||
+ | --></li><!-- | ||
+ | -->}}<!-- | ||
+ | |||
+ | ### Create a centre button with comic number, date (if exists) and link ### | ||
+ | |||
+ | --><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 #{{{number}}} {{#if:{{{date|}}}|({{{date}}})}}</span>]<!-- | ||
+ | --></li><!-- | ||
+ | |||
+ | ### If there is an article for the comic following this one, create a "next" ### | ||
+ | |||
+ | -->{{#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 ></span>]]<!-- | ||
+ | --></li><!-- | ||
+ | -->|<li style="display: inline; font-size: 16px; margin: 0 4px; padding: 1.5px 12px;"><!-- | ||
+ | --> <!-- | ||
+ | --></li><!-- | ||
+ | -->}}<!-- | ||
+ | --></ul><!-- | ||
+ | --></td></tr> | ||
|- | |- | ||
| style="font-size:20px;"| {{{title|}}} | | style="font-size:20px;"| {{{title|}}} |
Revision as of 11:20, 10 August 2012
Example template:
{{Comicbox
|horizontal = Leave blank or answer "no" if a square or vertical comic; "yes" if a horizontal comic.
|title = The comic's title
|image = The file in name.suffix
format
|imagewidth = "Optionally, set the width of the image. Include px/em/etc"
|caption = The text that you see when you hover your mouse over the comic.
|exp = The explanation of the comic.
|width = "Optionally, set the with of the entire box. Include px/em/etc"
}}
Horizontal comic sample:
Kill Hitler |
Revised directive: It is forbidden for you to interfere with human history until you've at least taken a class on it. |
In this comic, which I believe Randall created just to put in "BRB, Killing Hitler", Black Hat creates a one use time machine. Cueball selects the most common suggestion for Time Machine usage "Killing Hitler". Black Hat finally relents and goes to kill Hitler, however, he goes to the year 1945, when Hitler is already in his bunker. Hitler has already committed his atrocities and the war was already turning against him. Later in 1945, he reportedly died by suicide in that very same bunker. The joke in here being that he didn't save any lives or prevent the Holocaust or a global war by killing him in 1945 because he went back in time too late. He needed to go earlier, before his rise to power. |
Square or vertical comic sample: