Main Page design

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.

Change the look of the wiki front page?

Poll ended at Tue Dec 19, 2006 11:35 am

Yes, to http://www.osdev.org/wiki/User:Walling/Sandbox
6
46%
Yes, to http://www.osdev.org/wiki/User:Walling/Sandbox2
3
23%
No, keep the current one
4
31%
 
Total votes: 13

User avatar
chase
Site Admin
Posts: 694
Joined: Wed Oct 20, 2004 10:46 pm
Location: Texas
Contact:

Post by chase »

Since my boring old page was losing the votes I went ahead and switched the [wiki]Main Page[/wiki]. It's a modified verion of jhawthorns page which was a modified version of Wallings page. My changes were to move the navigation/about stuff of the left side.
User avatar
Walling
Member
Member
Posts: 158
Joined: Mon Dec 04, 2006 6:06 am
Location: Berlin, Germany

Post by Walling »

Jhawthorn, that is a cool main page! I'm impressed. I understand that mine and your proposal are two different looks, but I really like yours too. You're inspired from enwiki, whereas some of my inspiration was dawiki (Danish). I like them quite equally. Don't know about the poll then... :?

I also feel a bit controversy about my two proposals from the comments and the votes, so maybe it should be discussed more before any final decision is made. Right now my first proposal leads, but it is just less than half the votes, so what about the majority? (don't know if OSDev is a democracy :)) I don't want to offend anyone.
  • Is the welcome box nice? I think most agree on this. Should the quick links be removed or stay?
  • Mine/Jharthorns looks? (Thin/thick boxes? Colors?) Other look?
  • No boxes for the different subjects?
  • No edit links?

Can we all agree on something? I'm reasonably flexible. Just hoping for a more interesting main page with some colors and nice look. (No offence, chase!)

Edit: It seems that chase has taken a decision... :)
User avatar
Walling
Member
Member
Posts: 158
Joined: Mon Dec 04, 2006 6:06 am
Location: Berlin, Germany

Post by Walling »

I removed the gab, don't know if it was intended, but I didn't like it. Neither mine and jhawthorns versions have it.

A technical thing... on English Wikipedia, the title is not shown on the mainpage. I thought it was the <div id="mainpage"></div> that did the trick, but it seems it does not. Would it be nice to hide the "Main Page" title on the main page like on enwiki?
User avatar
chase
Site Admin
Posts: 694
Joined: Wed Oct 20, 2004 10:46 pm
Location: Texas
Contact:

Post by chase »

Walling wrote:I removed the gab, don't know if it was intended, but I didn't like it. Neither mine and jhawthorns versions have it.

A technical thing... on English Wikipedia, the title is not shown on the mainpage. I thought it was the <div id="mainpage"></div> that did the trick, but it seems it does not. Would it be nice to hide the "Main Page" title on the main page like on enwiki?

Probably just a copy and paste error on my part. Not sure about the title thing, either they have a more up to date version of mediawiki or it's customized.
User avatar
Walling
Member
Member
Posts: 158
Joined: Mon Dec 04, 2006 6:06 am
Location: Berlin, Germany

Post by Walling »

I really like the new main page.

I archived my main page proposals. They can no longer be seen clicking the links in this thread. :)
User avatar
Steve the Pirate
Member
Member
Posts: 152
Joined: Fri Dec 15, 2006 7:01 am
Location: Brisbane, Australia
Contact:

Post by Steve the Pirate »

A technical thing... on English Wikipedia, the title is not shown on the mainpage. I thought it was the <div id="mainpage"></div> that did the trick, but it seems it does not. Would it be nice to hide the "Main Page" title on the main page like on enwiki?



Here's one solution (via http://mail.wikipedia.org/pipermail/mediawiki-l/2006-May/012392.html)
/* Hide the main page title */
function hideMainPageTitle(e)
{
e = (e) ? e : event;
var mainPageTitle = "Main Page";
var headings = document.getElementsByTagName("h1");
var i, done = false;
for (i = 1; ((!done) && (i <= headings.length)); i++)
{
if (headings[i - 1].className == "firstHeading")
{
done = true;
if ((headings[i - 1].innerHTML == mainPageTitle) && (document.getElementById("contentSub").innerHTML == ""))
{
headings[i - 1].style.display = "none";
document.getElementById("siteSub").style.display = "none";
document.getElementById("contentSub").style.display = "none";
}
}
}
}
window.onload = hideMainPageTitle;


It's not a great way of doing it, but it works...

-Stephen
My Site | My Blog
Symmetry - My operating system.
User avatar
Walling
Member
Member
Posts: 158
Joined: Mon Dec 04, 2006 6:06 am
Location: Berlin, Germany

Post by Walling »

Steve the Pirate wrote:It's not a great way of doing it, but it works...

It seems that user scripts are disabled.
User avatar
chase
Site Admin
Posts: 694
Joined: Wed Oct 20, 2004 10:46 pm
Location: Texas
Contact:

Post by chase »

Walling wrote:
Steve the Pirate wrote:It's not a great way of doing it, but it works...

It seems that user scripts are disabled.
If you want user javascipt and css enabled I can do that. I'd rather figure out how wikipedia is doing it and implement that so everyone gets the same thing for the main page title hiding.
User avatar
Walling
Member
Member
Posts: 158
Joined: Mon Dec 04, 2006 6:06 am
Location: Berlin, Germany

Post by Walling »

chase wrote:
Walling wrote:
Steve the Pirate wrote:It's not a great way of doing it, but it works...

It seems that user scripts are disabled.
If you want user javascipt and css enabled I can do that. I'd rather figure out how wikipedia is doing it and implement that so everyone gets the same thing for the main page title hiding.

I'd use another implementation than javascript as well. I found this, maybe it is useful: http://bugzilla.wikimedia.org/show_bug.cgi?id=6129 There is a patch file attached. I don't know how to apply it. It will hide the main page title for all users, when enabled in the configuration file. I researched a bit on enwiki and they are using a different method, one using javascript, but not the one posted here. They insert this code in the generated site script (don't know where it is generated from). I stripped out the irrelevant parts:

Code: Select all

var mpTitle = "Main Page";
var isMainPage = (/(title=|\/wiki\/)([Tt]alk:|)[Mm]ain[ _][Pp]age/.test(document.location));
var isMainPageFront = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle);
var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 ||
             document.location.search.indexOf("oldid=") != -1));
 
if (isMainPage) {
  if (isMainPageFront && !isDiff)
  {
    document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, ' +
                   'h1.firstHeading { display: none !important; } /*]]>*/</style>');
  }
}

What it does is to locate the main page (excluding diff views and talk page) and then hides it using dynamically generated css code. It is some kind of a "hack". Look up the code on line 334 of this url.
Post Reply