User:Holy Diver/Webring

From Wiki

Jump to: navigation, search

The webring (see http://en.swordofmoonlight.org) gets shuffled every day. If you find a link in the ring that is broken or seems somehow inappropriate, please #Report problems below. If you would like to add your Sword of Moonlight website to the ring #Webmaster howto will walk you through that.

Webmaster howto

First of all your site needs to be about Sword of Moonlight, or related. It cannot just be about King's Field for example. If it's about a game made with Sword of Moonlight that is cool. If the domain your site is under is already part of the webring (see User:Holy_Diver#Ringmaster duty) then your site may not be eligible. Cases where it would be is if your site is a complete website, that just happens to be parked in the subdirectory of some domain.

To add your site to the webring you must add two HTML files to your website. The first (index.html) should be at the URL that is your URL in the webring. The second (pause.html) should be in the same directory. The files should be identical except for one character.

There is a template for index.html below. You need to replace some URLs in the page with the ones for your link. You can change the name of index.html if you want, but it must resolve to your link URL. The second pause.html file must be named as such. And it must be found by stripping your link URL back to the last slash and adding 'pause.html' to the end.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Swordofmoonlight.org</title>
<style>
*{ margin:0; padding:0 }
html, body { height:100%; width:100%; overflow:hidden; background:black }
table {height:100%; width:100%; table-layout:fixed; border-collapse:collapse }
</style>
</head>
<body>
<table><tr><td height="47px">
<iframe width="100%" height="47px" frameborder="0" src="http://www.swordofmoonlight.org/X-Frame-Options/webring.php?pause=0&close=en.swordofmoonlight.org/wiki/" style="max-height:47px; height:47px; min-height:47px">
<center>A Sword of Moonlight Webring<br/>
<small>sorry, frames are a no go</a></small>
</center>
</iframe>
</td></tr><tr><td>
<iframe width="100%" height="0px" frameborder="1">
<!--a browser "chrome" border hack-->
</iframe>
</td></tr><tr><td height="100%">
<iframe width="100%" height="100%" frameborder="0" src="http://en.swordofmoonlight.org/wiki/" style="border-top:3px" onload="javascript:document.title=this.contentDocument.title">
<center>Your browser does not support frames.</br> 
<small><a href="http://en.swordofmoonlight.org/wiki/">click here to view en.swordofmoonlight.org/wiki/</a></small>
</center>
</iframe>
</td></tr></table>
</body>
</html>

So copy the HTML code above into a file on your site. And replace "en.swordofmoonlight.org/wiki/" with the URL of the page you want to be seen at your ring URL. Notice there is no "http://" in the address. If you want your page to be a non HTTP page, then say so in User_talk:Holy_Diver.

Finally copy the file and rename the copy to pause.html. Find "pause=0" in the copy, and replace it with "pause=1". This allows readers to disable the annoying spinning Moonlight graphics while navigating the ring.

Now your ring page should be working correctly, except it won't be accessible from the other links in the ring. Once everything is working, goto User:Holy_Diver#Ringmaster duty and add your link to the list, and it will be linked in ASAP. If it seems like no one has noticed the addition of you link, please try to get in touch with User:Holy_Diver somehow.

Also do not forget to change the page title, and add a favicon for your site. If you do not like the "frameless" browser messages/setup, feel free to augment those too. The rest of the page needs to remain as is for the webring to work. All links are intended to be uniform. Be careful so your link does not become delinked (see #Report problems below)

If you have any questions, or need assistance, please use the talk page. If you feel like you can improve this section... go for it.

Notes for webmasters

  • The URLs in this file are not the same as your webring URL. They are the page that will be shown in the content frame of the webring. Also it's a requirement that the two URLs more or less share the same web domain and directory tree. If the stem is not the same your site won't match any sites in the webring, so it won't be clear where it belongs in the daily shuffle. And if the content URL is more like some other site in the ring, then it will be mistaken. It's pretty simple. Just don't get confused between the two, and don't use too dissimilar URLs.

Report problems

Please make a new heading (if one does not already exist) for the problem you are reporting below. Be sure to mention the site that is having problems, if you can tell. And any steps to repeat the problem you are experiencing.