Difference between revisions of "User:Markhurd/sandbox"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Test nowiki when preloaded)
 
(Getting title text popups working with external links)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{comic
+
External hyperlink with title: <span title="title text">[http://example.com example link]</span>.
| 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==
+
[[File:Wikipedia-Marker-commons.svg|thumb|A picture from Wikimedia Commons embedded in this Wiki]]
<!-- Replace this line with the explanation! -->
+
[[File:other car.jpg|frameless|300px|]]
 +
<noinclude>{{comic discussion}}</noinclude>
 +
{|class="wikitable plainlinks"
 +
|-
 +
!Description
 +
!You type
 +
!You get
 +
!URL
 +
!other car
 +
!URL
 +
|-
 +
| no format specified
 +
Rendered as a floating block: no
 +
Rendered inline: yes
 +
Rendered caption: no
 +
| <nowiki>
 +
... text text text
 +
[[File:example.jpg|caption]]
 +
text text text ...
 +
</nowiki>
 +
|
 +
... text text text
 +
[[File:example.jpg|caption]]
 +
text text text ...
 +
|
 +
http://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
 +
|
 +
... text text text
 +
[[File:other car.jpg|caption]]
 +
text text text ...
 +
|
 +
http://www.explainxkcd.com/wiki/images/thumb/2/20/other_car.jpg/372px-other_car.jpg
 +
|-
 +
| border results in a very small gray border
 +
Rendered as a floating block: no
 +
Rendered inline: yes
 +
Rendered caption: no
 +
| <nowiki>
 +
... text text text
 +
[[File:example.jpg|border|caption]]
 +
text text text ...
 +
</nowiki>
 +
|
 +
... text text text
 +
[[File:example.jpg|border|caption]]
 +
text text text ...
 +
|
 +
http://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
 +
|
 +
... text text text
 +
[[File:other car.jpg|border|caption]]
 +
text text text ...
 +
|
 +
http://www.explainxkcd.com/wiki/images/thumb/2/20/other_car.jpg/372px-other_car.jpg
 +
|-
 +
| frameless, like thumbnail, respect user preferences for image width, but without border and no right float
 +
Rendered as a floating block: no
 +
Rendered inline: yes
 +
Rendered caption: no
 +
| <nowiki>
 +
... text text text
 +
[[File:example.jpg|frameless|caption]]
 +
text text text ...
 +
</nowiki>
 +
|
 +
... text text text
 +
[[File:example.jpg|frameless|caption]]
 +
text text text ...
 +
|
 +
http://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
 +
|
 +
... text text text
 +
[[File:other car.jpg|frameless|caption]]
 +
text text text ...
 +
|
 +
http://www.explainxkcd.com/wiki/images/thumb/2/20/other_car.jpg/180px-other_car.jpg
 +
|-
 +
| frameless and border
 +
Rendered as a floating block: no
 +
Rendered inline: yes
 +
Rendered caption: no
 +
| <nowiki>
 +
... text text text
 +
[[File:example.jpg|frameless|border|caption]]
 +
text text text ...
 +
</nowiki>
 +
|
 +
... text text text
 +
[[File:example.jpg|frameless|border|caption]]
 +
text text text ...
 +
|
 +
http://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
 +
|
 +
... text text text
 +
[[File:other car.jpg|frameless|border|caption]]
 +
text text text ...
 +
|
 +
http://www.explainxkcd.com/wiki/images/thumb/2/20/other_car.jpg/180px-other_car.jpg
 +
|-
 +
| frame
 +
Rendered as a floating block: yes
 +
Rendered inline: no
 +
Rendered caption: yes
 +
| <nowiki>
 +
... text text text
 +
[[File:example.jpg|frame|caption]]
 +
text text text ...
 +
</nowiki>
 +
|
 +
... text text text
 +
[[File:example.jpg|frame|caption]]
 +
text text text ...
 +
|
 +
http://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
 +
|
 +
... text text text
 +
[[File:other car.jpg|frame|caption]]
 +
text text text ...
 +
|
 +
http://www.explainxkcd.com/wiki/images/thumb/2/20/other_car.jpg/372px-other_car.jpg
 +
|-
 +
| thumb or thumbnail
 +
Rendered as a floating block: yes
 +
Rendered inline: no
 +
Rendered caption: yes
 +
| <nowiki>
 +
... text text text
 +
[[File:example.jpg|thumb|caption]]
 +
text text text ...
 +
</nowiki>
 +
|
 +
... text text text
 +
[[File:example.jpg|thumb|caption]]
 +
text text text ...
 +
|
 +
http://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
 +
|
 +
... text text text
 +
[[File:other car.jpg|thumb|caption]]
 +
text text text ...
 +
|
 +
http://www.explainxkcd.com/wiki/images/thumb/2/20/other_car.jpg/180px-other_car.jpg
 +
|}
  
==Transcript==
+
Allowing "external" hotlinking to this wiki's images shows the other car image properly:
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript".
+
http://www.explainxkcd.com/wiki/images/2/20/other_car.jpg
  -- 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}}
 
<!-- 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:
 
 
 
<pre>
 
{{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==
 
<!-- Replace this line with the explanation! -->
 
 
 
==Transcript==
 
<!-- 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}}
 
<!-- Include any categories below this line. -->
 
</pre>
 
 
 
[[:Category:Templates]]
 
</noinclude>
 

Latest revision as of 14:13, 5 May 2016

External hyperlink with title: example link.

A picture from Wikimedia Commons embedded in this Wiki

other car.jpg

comment.png add a comment! ⋅ comment.png add a topic (use sparingly)! ⋅ Icons-mini-action refresh blue.gif refresh comments!

Discussion

Frame 1normal


Allowing "external" hotlinking to this wiki's images shows the other car image properly: http://www.explainxkcd.com/wiki/images/2/20/other_car.jpg