HRWiki:Sandbox

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(A Subway!)
(CLEANED! Phoof)
Line 1: Line 1:
-
=== A Subway! ===
 
-
<pre>
 
-
// ==Userscript==
 
-
// @name Some script I wrote.
 
-
// @namespace http://www.hrwiki.org/
 
-
// @description I wrote a Greasemonkey script!
 
-
// @include http://www.hrwiki.org/*
 
-
// ==/Userscript==
 
-
 
-
alert("OMG!!! It's a wiki about Homestar subwhich!")
 
-
alert("No it's not, it's a Homestar about wiki!")
 
-
alert("Errm, that doesn't make any sense.")
 
-
alert("It does in Germany")
 
-
alert("How would you know, you've never been to Germany. I doubt you even know German.")
 
-
alert("Well, fine then")
 
-
alert("System Report:nothing's fine,Every thing's is ruined.")
 
-
alert("You can go back to your interwebs now.")
 
-
 
-
//
 
-
</pre>
 
-
 
-
<tag>
 
-
*newline
 
-
*newline
 
-
*newline
 
-
:newline
 
-
:newline
 
-
:newline
 
-
#newline
 
-
#newline
 
-
#newline
 
-
newline<nowiki><br /></nowiki><br />
 
-
newline<nowiki><br /></nowiki><br />
 
-
newline<nowiki><br /></nowiki><br />
 
-
newline
 
-
newline
 
-
</tag>
 
-
 
-
what tag do i put around this so that each "newline" is on its own line? {{User:DeFender1031/sig}} 21:03, 6 August 2007 (UTC)
 
-
newline
 
-
newline
 
-
newline
 
-
newline
 
-
 
-
newline
 
-
newline
 
-
newline
 
-
newline
 
-
 
-
this is not what you meant, is it?
 
-
{{User:Homsar44withpie/sig}} 04:01, 8 August 2007 (UTC)
 
-
No matter what tags you surround the lines with, unless you do something to the lines themselves they will be seen by the UA as unformatted. The only exception is pre, which tells the UA the text is preformatted and to present as is. The wiki turns a return (or an Enter) between lines as a closing and re-opening of a paragraph element, that's why that works.  You could use the style attribute on pre to undo the inherent style the wiki adds to pre, if that visual formatting isn't desired.
 
-
 
-
<pre style="padding: inherit; border: 0; background-color: transparent; line-height: inherit; font-family: sans-serif; font-size; inherit;">
 
-
newline
 
-
newline
 
-
newline
 
-
newline
 
-
No matter
 
-
what you do,
 
-
this is weird.
 
-
Who'd knew?
 
-
</pre>
 
-
 
-
Good job, Qermaq, you get good prize. Ding!Free DIRT-IN-YO-FACE!!!
 
-
:Still, font is weird. Not the same. I'm referring to the default style sheet and using multiple browsers too. Grr....
 
-
::Yeah, but now you lose word wrap... {{User:DeFender1031/sig}} 03:50, 7 August 2007 (UTC)
 
-
 
-
::Here's the problem. In Opera (newest built on Windows) font-family: inherit; results in monospace. I can't think of a darn reason why that should be so, perhaps it's a bug in the latest build. Seems unlikely. Anyway, I yield to wiser minds here.
 
-
'''''WELL YOU HAVE CAME THY WRITE PLACE THESE ARE WHERE THY WISER SOULS DWELL...'''''
 
-
{how the heck do you use them weird font(oh and happy PRFOGDL DAY)}
 
-
 
-
 
-
 
-
What is up my doge
 
-
'''''Sup hourly wage'''''
 
-
 
-
== Another Section! ==
 
-
 
-
This is where I test out something. To download the above script, all you gotta do is click {{p|l=http://www.hrwiki.org/index.php?title=HRWiki:Sandbox&action=raw&ctype=text/javascript&fakeextension=.user.js  this link}} (I hope). Don't do it unless you're experimenting with Greasemonkey like I am. Even so, you have to be willing to delete some stuff. Go to Tools/Greasemonkey/Manage User Scripts and click on javascript&fakeextension= (which means THAT part didn't work. Ah well.) and delete everything that's not in the pre box at the top of the page under A Sub-Section! TSave it and then it should work fine for ya. For those of you who don't know Javascript, its function is to make pop-ups appear  every time you follow a link to a wiki page.
 
-
 
-
== One more section! ==
 
-
 
-
To view the script, click [[#A Sub-Section!|here]] (probably).
 
-
 
-
== Prob'ly another one, too ==
 
-
<span title="This is HTML."><big>Hagurumon</big></span> <span title="This is more HTML."><sup>is really cool</sup></span> <span title="I have too much time on mah hands."><sub>and awesome.</sub></span>
 
-
 
-
 
-
__FORCETOC__
 
-
[[Batteries]]
 
-
 
-
I <STRIKE>don't</STRIKE> rule! [[User:68.205.128.200|68.205.128.200]] 14:44, 7 August 2007 (UTC)
 
-
 
-
<span title="This is HTML."><big>Sean</big>>/span> <span
 
-
title= "This is more HTML.">is<STRIKE>n't</STRIKE>><sup awesome!
 
-
 
-
<math>\sum_{n=0}^\n \frac{x^n}{n!}</math> Nope. '''''WRO-O-O-O-ONG!''''' [annoying buzzer sound]
 

Revision as of 06:22, 12 August 2007

Personal tools