HRWiki:Sandbox

From Homestar Runner Wiki

Jump to: navigation, search
Shortcuts:
HRW:SB
sandbox

The Sandbox is an HRWiki namespace page designed for testing and experimenting with wiki syntax. Feel free to try your skills at formatting here: click on edit, make your changes, and click 'Save page' when you are finished. Content added here will not stay permanently. If you need help editing, see Help:Editing.


Contents

A section!

A Sub-Section!

// ==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!")
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: Everything's fine, nothing is ruined.")
alert("You can go back to your interwebs now.")

//

<tag>

  • newline
  • newline
  • newline
newline
newline
newline
  1. newline
  2. newline
  3. newline

newline<br />
newline<br />
newline<br />
newline newline </tag>

what tag do i put around this so that each "newline" is on its own line? — Defender1031*Talk 21:03, 6 August 2007 (UTC) newline newline newline newline

newline
newline
newline
newline

this is not what you meant, is it?

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.

newline
newline
newline
newline
No matter
what you do,
this is weird.
Who'd knew?

Good job, Qermaq, you get good prize. Ding!

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... — Defender1031*Talk 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.

Another Section!

This is where I test out something. To download the above script, all you gotta do is click this link (I hope). Don't do it unless you're experimenting with Greasemonkey like I am.

One more section!

To view the script, click here (probably).


Personal tools