Difference between revisions of "User:Markhurd/sandbox"
(Test nowiki when preloaded) |
(Test without Special:ExpandTemplates) |
||
Line 1: | Line 1: | ||
− | < | + | <!-- |
− | + | --><table class="" cellspacing="5" | |
− | + | style="background-color: #FFFFFF; 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%; "><!-- | |
− | |||
− | |||
− | |||
− | + | ### Navigation bar (previous, next...) ### | |
− | |||
− | + | --><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:80 - 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:80 - 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="plainlinks"><!-- | ||
+ | -->[http://www.xkcd.com/80/ <!-- | ||
+ | --><span style="color: #FFFFFF;">Comic #80 {{#if:March 24, 2006|(March 24, 2006)}}</span>]<!-- | ||
+ | --></li><!-- | ||
− | + | ### If there is an article for the comic following this one, create a "next" ### | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | + | -->{{#ifexist:{{#expr:80 + 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:80 + 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><!-- | ||
− | [[:Category: | + | ### Comic title ### |
− | < | + | |
+ | -->{{#if:My Other Car|<tr><td style="font-size: 20px; padding-bottom:10px"><!-- | ||
+ | -->'''My Other Car'''<!-- | ||
+ | --></td></tr>}}<!-- | ||
+ | |||
+ | ### Text before comic ### | ||
+ | |||
+ | -->{{#if:|<tr><td style="padding-bottom:10px"><!-- | ||
+ | -->{{{before}}}<!-- | ||
+ | --></td></tr>}}<!-- | ||
+ | |||
+ | ### Comic image and title text ### | ||
+ | |||
+ | --><tr><td><!-- | ||
+ | -->{{#if:other car.jpg|[[File:other car.jpg||It's much better than the other one.]]}}<!-- | ||
+ | -->{{#if:|<br />[Click comic to enlarge]}}<!-- | ||
+ | -->{{#if:It's much better than the other one.|<br /><span style=""><span style="color:grey">Title text:</span> It's much better than the other one.</span>}}<!-- | ||
+ | --></td></tr><!-- | ||
+ | --></table><!-- | ||
+ | |||
+ | ### Add categories to comic based on date field ### | ||
+ | |||
+ | -->{{DEFAULTSORT: {{padleft:80|4}}}}<!-- (default sorting key for all categories: use zero-padding to make sure #9 comes before #10, etc.) | ||
+ | -->{{#ifeq:{{NAMESPACE}}|{{ns:10}}||<!-- (no categorization on the Template namespace) | ||
+ | -->{{#ifeq:{{FULLPAGENAME}}|{{int:mainpage}}||<!-- (no categorization when transcluded into the main page) | ||
+ | -->[[Category:Comics]]<!-- | ||
+ | -->{{#if:March 24, 2006|<!-- | ||
+ | -->[[Category:Comics from {{#time:Y|March 24, 2006}}]]<!-- (categorize by year) | ||
+ | -->[[Category:Comics from {{#time:F|March 24, 2006}}]]<!-- (categorize by month) | ||
+ | -->[[Category:{{#time:l|March 24, 2006}} comics]]<!-- (categorize by weekday) | ||
+ | -->}}<!-- | ||
+ | -->}}<!-- | ||
+ | -->}}<!-- | ||
+ | |||
+ | ### DOCUMENTATION ### | ||
+ | |||
+ | --> |