Difference between revisions of "Template:sandbox"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m
 
(26 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{infobox
+
<includeonly><!--
| bodyclass  = vcard
+
--><metadesc>Explain xkcd is a wiki dedicated to explaining the webcomic xkcd. Go figure.</metadesc><!--
 +
--><table class="{{{bodyclass|}}}" 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%; {{{bodystyle|}}}"><!--
  
| abovestyle = background-color:#BCD4E6;
+
  ### Navigation bar (previous, next...) ###
| aboveclass = fn
 
| above      = ᏆᎳᏗᎧᎶᎶᏇᏂᏤᏂ <br> (English Version, Alternative Lyrics)
 
  
| labelstyle = line-height: 1.3em
+
  --><tr><td><!--
| datastyle  = line-height: 1.3em
+
    --><ul style="text-align: center; margin-bottom: 10px;" class="no-link-underline"><!--
  
| image      = c6h4cl2.png
+
      ### Create the prev button ###
| caption    = ''The Chaotic''
 
  
| label1    = Lyrics by
+
    --><li style="background-color: #6E7B91;
| data1      = [[User:Donald Amadeus Theophilus Gottlieb Trump|Donald ATG Trump]]<br>Scratch---Cat (Stack Exchange)
+
                    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 0;"><!--
 +
        -->[[{{#expr:{{{number}}} - 1}}|<span style="color: #FFFFFF; padding: 0 12px;">&lt; Prev</span>]]<!--
 +
      --></li><!--
  
| label2    = Music by
+
      ### Create a centre button with comic number, date (if exists) and link ###
| data2      = Owata-P
 
  
| label3    = Arranged by
+
      --><li style="background-color: #6E7B91;
| data3      = Down Left Forte
+
                    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 0;"
 +
            class="plainlinks"><!--
 +
        -->[http://www.xkcd.com/{{{number}}}/ <!--
 +
        --><span style="color: #FFFFFF; padding: 0 12px;">Comic &#35;{{{number}}} {{#if:{{{date|}}}|({{{date}}})}}</span>]<!--
 +
      --></li><!--
  
| label4    = Vocals by
+
      ### If there is an article for the comic following this one, create a "next" ###
| data4      = The Donald Trump Vocaloid (TBD)<br>Kagamine Len (TBD)
 
  
| label5    = In Album
+
      -->{{#ifexist:{{#expr:{{{number}}} + 1}}<!--
| data5      = The Chaotic<br>April Fools Day Special Album
+
      -->|<li style="background-color: #6E7B91;
}}
+
                      border: 1.5px solid #333333; border-radius: 3px 3px 3px 3px; box-shadow: 0 0 5px 0 gray;
{{notice|'''Caution: This page may contain spelling issues.'''<br>''A hidden program may have scrambled some of the words while the lyrics were being copied to this website.''}}
+
                      display: inline; font-size: 16px; font-variant: small-caps; font-weight: 600;
what had I actually written this song for?
+
                      margin: 0 4px; padding: 1.5px 0;"><!--
 +
          -->[[{{#expr:{{{number}}} + 1}}|<span style="color: #FFFFFF; padding: 0 12px;">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><!--
  
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
+
  ### Comic title ###
  
and I sang without yet understanding the words in  it
+
  -->{{#if:{{{title|}}}|<tr><td style="font-size: 20px; padding-bottom:10px"><!--
 +
    -->'''{{{title}}}'''<!--
 +
  --></td></tr>}}<!--
  
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
+
  ### Text before comic ###
  
I ran outward for seeking the answer to problems
+
  -->{{#if:{{{before|}}}|<tr><td style="padding-bottom:10px"><!--
 +
    -->{{{before}}}<!--
 +
  --></td></tr>}}<!--
  
ᏆᎳᏗᎧᎶᎶᏇᏂᏤᏂ
+
  ### Comic image and title text ###
  
even though in advance I knew that there was nothing where I was to struggle toward
+
  --><tr><td><!--
 +
  -->{{#if: {{{custom|}}} |<!--
 +
    -->{{{custom|}}}|<!--
 +
    -->{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imagesize|}}}|{{{titletext|}}}]]}}}}<!--
 +
  -->{{#if:{{{imagesize|}}}|<br />[Click comic to enlarge]}}<!--
 +
  -->{{#if:{{{titletext|}}}|<br /><span style="{{{captionstyle|}}}"><span style="color:grey">Title text:</span> {{{titletext}}}</span>}}<!--
 +
  --></td></tr><!--
  
now lets sing now lets dance now lets move now lets chant now
+
  ### Transcript ###
  
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
+
-->{{{transcript}}}<!--
 +
  -->{{#if: {{{transcript|}}} |<!--
 +
    --><tr><td style="font-size: 50px; padding-bottom:3px; padding-top:10px">Transcript<!--
 +
    --><div class="mw-collapsible mw-collapsed"><!--
 +
      -->{{{transcript|}}}<!--
 +
    --></div><!--
 +
    --></td></tr>}}<!--
  
now lets cry now lets yell now lets shout now lets scream out now
+
  --></table><!--
  
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
+
  ### Add categories to comic based on date field ###
  
and the gogs and the cats and the bulls and the pigs and all
+
-->{{DEFAULTSORT:&nbsp;{{padleft:{{{number}}}|4}}}}<!-- (default sorting key for all categories: use zero-padding to make sure #9 comes before #10, etc.)
 +
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!-- (no categorization except for the main namespace)
 +
  -->{{#ifeq:{{FULLPAGENAME}}|{{int:mainpage}}||<!-- (no categorization when transcluded into the main page)
 +
    -->[[Category:Comics]]<!--
 +
    -->{{#if:{{{date|}}}|<!--
 +
      -->[[Category:Comics from {{#time:Y|{{{date}}}}}]]<!-- (categorize by year)
 +
      -->[[Category:Comics from {{#time:F|{{{date}}}}}]]<!-- (categorize by month)
 +
      -->[[Category:{{#time:l|{{{date}}}}} comics]]<!-- (categorize by weekday)
 +
    -->}}<!--
 +
  -->}}<!--
 +
-->|}}<!--
  
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
+
  ### DOCUMENTATION ###
  
now lets rage now lets rave now lets rant now lets rest now lets go the mortality way so
+
--></includeonly><noinclude>
 +
This is the basic infobox-style header template used to display <span style="background:#0064de;font-size:12px;padding:4px 12px;border-radius:8px;">[[xkcd|<span style="color:#f0faff;">xkcd</span>]]</span> comics on their own pages, including the comic number (with external link to xkcd), publication date, title, comic image, and title text.
  
rules and convention are what I hate
+
== Sample ==
  
I just dont want to be tied up like that
+
The following is a sample usage of this template:
 
+
{{sandbox
That's the reason why I fled and ran away
+
| number    = 16
 
+
| date      = October 4, 2005
thus forgetting the things happening around
+
| title    = Monty Python -- Enough
 
+
| image    = monty_python.jpg
Being told what to do is what I do hate
+
| 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.
 
+
| transcript= 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.
A bit Bad is just what I I want to be a
+
}}
 
 
Slipping out of the house in the deepest night
 
 
 
Wandering carelessly in the the city streets
 
 
 
so what is the purpose of my living?
 
 
 
I just talked with a stray cat about what I had thought
 
 
 
But the cat, not replying with anything
 
 
 
Just merely looked down upon me with his thorny eyes
 
 
 
After drinking up the C0FFEE that I'd never drink
 
 
 
And looking up to the sky, which was cloudy
 
 
 
Now I do not know what I am able to do
 
 
 
Or care of my situation
 
 
 
and that is why I've been singing and shouting for so long
 
 
 
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
 
 
 
Still I yell without yet understanding myself at all
 
 
 
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
 
 
 
Are U able to be satisfied with what U already have
 
 
 
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
 
 
 
Breaking rules, breaking laws&mdash;
 
 
 
In that case, what is that making any changes to U?
 
 
 
Now whoever it is;
 
 
 
I just open my heart to him
 
 
 
⍰⍰⍰⍰⍰⍰⍰⍰⍰⍰
 
 
 
Punish all the bad; in support of the justice
 
 
 
⍰⍰⍰⍰⍰⍰⍰⍰⍰⍰
 
 
 
Just relieving the stress; under armor of justice
 
 
 
⍰⍰⍰⍰⍰⍰⍰⍰⍰⍰
 
 
 
Such stupid behavior that we didnt notice, when others did stop in the way Ah
 
 
 
Ah, this song hsant got any sense
 
 
 
This song has never got any sense
 
 
 
This song hasnt it had any sin
 
 
 
This song has never had any sin
 
 
 
⍰⍰⍰⍰ hsant got any sense
 
 
 
⍰⍰⍰⍰ has never got any sense
 
 
 
⍰⍰⍰⍰ hasnt it had any sin
 
 
 
This song has got a sense of . . .
 
 
 
⍰⍰⍰⍰
 
 
 
It was not until then that I realise
 
 
 
That what I did experience was only hypocrisy
 
 
 
And the value of living  is what on Earth?
 
 
 
The stray cat has suffocated deep under the water
 
 
 
I threw away that C0FFEE cup that's emptied
 
 
 
And looked to the sky covered by the darkness
 
 
 
Now I do not know what I have been doing
 
 
 
What happened in my surroundings
 
 
 
Still yet I've never ever known anything
 
 
 
After that U did laugh at me Loudly and happily
 
 
 
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
 
 
 
After that I did shove you out fiercely and angrily
 
 
 
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
 
 
 
"I'm right, U are wrong End of discussion"
 
 
 
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
 
 
 
U will now disappear Surrounded by nothingness, till I'm totally gone
 
  
So now it is time to look back on what U have done
+
== Usage ==
  
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
+
<pre>{{comic
 +
| number    =
 +
| date      =
 +
| title    =
 +
| before    =
 +
| image    =
 +
| custom    =
 +
| imagesize =
 +
| titletext =
 +
| transcript=
 +
}}</pre>
  
Now lets laugh now lets mock now lets sneer now lets envy
+
=== Notes ===
  
Ꮖ̦Ꮃ̣ᏗᎧ̱ᎶᎶ̣Ꮗ̗ẖᏤẖ
+
* At least the number, title and image are required.
 +
* The date should be written in the form: January 1, 2006
 +
* The imagesize field is optional.
 +
** The comic's '''width''' will be limited to the set size. Format must be in pixels (eg: "350px")
 +
** The comic's '''height''' may be set by adding an 'x' to the start (eg: "x350px")
 +
** Warning: If the size is larger than the image, the image will be stretched.
 +
* '''before''' is a special field for inserting text before the comic. One use is for extremely large comics (e.g. [[Umwelt]]), to skip to the explanation.
 +
* If the '''custom''' field is not empty, the image field will be ignored and be replaced with any text that you put in the '''custom''' field.
  
Even I, even U, and whoever, and all of them
+
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
 +
| 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>
  
now lets rage now lets rave now lets rant now lets rest till were finally rotting away so
+
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 22:59, 25 May 2023

This is the basic infobox-style header template used to display xkcd comics on their own pages, including the comic number (with external link to xkcd), publication date, title, comic image, and title text.

Sample[edit]

The following is a sample usage of this template:

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.
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.
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.
Transcript
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[edit]

{{comic
| number    = 
| date      = 
| title     = 
| before    =
| image     = 
| custom    = 
| imagesize = 
| titletext = 
| transcript= 
}}

Notes[edit]

  • At least the number, title and image are required.
  • The date should be written in the form: January 1, 2006
  • The imagesize field is optional.
    • The comic's width will be limited to the set size. Format must be in pixels (eg: "350px")
    • The comic's height may be set by adding an 'x' to the start (eg: "x350px")
    • Warning: If the size is larger than the image, the image will be stretched.
  • before is a special field for inserting text before the comic. One use is for extremely large comics (e.g. Umwelt), to skip to the explanation.
  • If the custom field is not empty, the image field will be ignored and be replaced with any text that you put in the custom field.

The above sample is produced by the following code:

{{comic
| number    = 16
| date      = October 4, 2005
| title     = Monty Python -- Enough
| image     = monty_python.jpg
| 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.
}}