Difference between revisions of "User:Markhurd/sandbox"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Test nowiki when preloaded)
 
(Test without Special:ExpandTemplates)
Line 1: Line 1:
<includeonly>{{comic
+
<!--
| number    =  
+
--><table class="" cellspacing="5"
| date      = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. -->
+
          style="background-color: #FFFFFF; border: 1px solid #AAAAAA; color: black; font-size: 88%; line-height: 1.5em;
| title    =
+
                margin: 0.5em 0 0.5em 1em; padding: 0.2em; text-align: center; width:98%; "><!--
| image    =
 
| titletext =
 
}}
 
  
==Explanation==
+
  ### Navigation bar (previous, next...) ###
<!-- Replace this line with the explanation! -->
 
  
==Transcript==
+
  --><tr><td><!--
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript".
+
    --><ul style="text-align: center; margin-bottom: 10px;" class="no-link-underline"><!--
  -- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks.
 
  -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking.
 
  -- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki></nowiki>.
 
  -- Do not include the title text again here. -->
 
  
{{comic discussion}}
+
      ### If there is an article for the comic prior to this one, create a "prev" ###
<!-- Include any categories below this line. --></includeonly><noinclude>
 
  
See [[mw:Manual:Creating pages with preloaded text]] and [[mw:Manual:Parameters to index.php#Options affecting the edit form]]. The following is the text preloaded by this template:
+
      -->{{#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;">&lt; Prev</span>]]<!--
 +
        --></li><!--
 +
      -->|<li style="display: inline; font-size: 16px; margin: 0 4px; padding: 1.5px 12px;"><!--
 +
          -->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--
 +
        --></li><!--
 +
      -->}}<!--
  
<pre>
+
      ### Create a centre button with comic number, date (if exists) and link ###
{{comic
 
| number   =
 
| date     = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. -->
 
| title    =
 
| image    =
 
| titletext =
 
}}
 
  
==Explanation==
+
      --><li style="background-color: #6E7B91;
<!-- Replace this line with the explanation! -->
+
                    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 &#35;80 {{#if:March 24, 2006|(March 24, 2006)}}</span>]<!--
 +
      --></li><!--
  
==Transcript==
+
      ### If there is an article for the comic following this one, create a "next" ###
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript".
 
  -- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks.
 
  -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking.
 
  -- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki><nowiki></nowiki></nowiki>.
 
  -- Do not include the title text again here. -->
 
  
{{comic discussion}}
+
      -->{{#ifexist:{{#expr:80 + 1}}<!--
<!-- Include any categories below this line. -->
+
      -->|<li style="background-color: #6E7B91;
</pre>
+
                      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 &gt;</span>]]<!--
 +
        --></li><!--
 +
      -->|<li style="display: inline; font-size: 16px; margin: 0 4px; padding: 1.5px 12px;"><!--
 +
          -->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--
 +
        --></li><!--
 +
      -->}}<!--
 +
    --></ul><!--
 +
  --></td></tr><!--
  
[[:Category:Templates]]
+
  ### Comic title ###
</noinclude>
+
 
 +
  -->{{#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:&nbsp;{{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 ###
 +
 
 +
-->

Revision as of 11:59, 21 April 2013

My Other Car
It's much better than the other one.
Title text: It's much better than the other one.