User:The Transhumanist/Resources

From Wikipedia, the free encyclopedia

START    DIR    TIPS 
Crystal Clear app package settings.png
Resources

Resources

Articles

List of character entities in HTMLList of colorsWeb colors

Help

Magic wordsTable: HTML to wikiTemplateUser styleVariable

MediaWiki

Common.cssMonobook.cssMonobook.js

Meta-Wiki

ParserFunctionsWatch list

User

ToolboxesVandalProof

Wikipedia +

AdministratorsArticle assessmentAutoWikiBrowserCatalogue of CSS classesColors: talk / UsabilityCompact TOCsCount • {{db-owner}} • Five pillarsGalleryGUS UBX catImage syntaxPolicies and guidelinesList of policiesList of guidelinesManual of StyleRequests for feedbackSpeedyTemplate messagesTip of the day – tomorrowUseful stylesVersion 0.5 •• Version 1.0 Index: Color

Hiding Mainpage's title

Does anybody know how wikipedia was programmed so that the main page doesn't feature "Main Page" as an opener? (Go to any other article on wikipedia and you'll see that article's name is the first thing in the article -- except for the Main Page)06:25, 1 March 2007 (UTC) 60.227.109.168 17:39, 23 February 2007 (UTC)

Seems like all you need to do is add a magic word to the beginning of the article: "__NOTITLECONVERT__" should do it -- but this doesn't seem to work in older versions of the wiki software.
Hmmm..
Rfwoolf 17:53, 23 February 2007 (UTC)
Scratch that. I've just tried the magic word "__NOTC__" on the sandbox and in my user and it doesn't seem to work. Rats. Rfwoolf 17:58, 23 February 2007 (UTC)

Solution

Ahh, I've found a workaround (Note that there was a magic word that was included in the software that was supposed to do all this work but had too many bugs so it is no longer enabled/supported. What follows is the current workaround):

Basically you have to fiddle with this. You place it at the very top of your article:

{| style="position:absolute; top:0; width:100%; background:#F8FCFF; color:#888;" valign="middle"
|-
|
Type your replacement heading text here
|}
-just replace the color part with your desired colour, and
-replace "Type your replacement heading text here" with whatever content you want -- you can put a table there if you like, or a big heading using <big> or <h1> tags.

Problemo solved.

Rfwoolf 18:22, 23 February 2007 (UTC)

Other solutions

Or you could use CSS and Javascript, like the Main Page currently does. Titoxd(?!?) 19:52, 23 February 2007 (UTC)
Any more information on that would be helpful Rfwoolf 13:05, 24 February 2007 (UTC)
iirc, the hack can be found on MediaWiki:Common.js. Search on that page for Main Page layout fixes. Zzyzx11 (Talk) 13:30, 24 February 2007 (UTC)
Thanks. But, I don't quite follow much of it (yet I understand pascal and some java). It speaks about renaming the name-space or something like that. All I want to know is... when the Main Page loads, at the top of the page (not to be confused with the Title of the window) instead of saying Main Page I want it to say [nothing] or [something else] ? Rfwoolf 07:15, 27 February 2007 (UTC)
Actually, I don't think MediaWiki:Common.js is the one that rids it of the title, as Common is for all skins, and the title's only gone in the monobook skin. However, in MediaWiki:Monobook.css, you can see right at the top where it says
/* Don't display some stuff on the
main page */
body.page-Main_Page #lastmod,
body.page-Main_Page #siteSub,
body.page-Main_Page #contentSub,
body.page-Main_Page h1.firstHeading {
   display: none !important;
  }


well that basically tells it not to display the subtitle, h1 (the top header/title), the content subtitle, and whatever lastmod means. Anyway, this is pretty simple to understand. It just tells monobook NOT to load these, and so it doesn't. Thats that. Alex43223 Talk | Contribs | E-mail | C 02:33, 28 February 2007 (UTC)

lastmod is presumably the note at the bottom of the page (next to the license) giving the date/time of the last edit. Algebraist 00:38, 4 March 2007 (UTC)

There was a template to do this, but I think it was deleted to prevent misuse. What page do you want to change the title of? You can try to puzzle out the code from Wikipedia:Template messages/General#Title-related messages (the {{lowercase}} template uses the trick), otherwise you should ask for help from Wikipedia:Village pump (technical) where you're likely to get better informed (and more relevantly located) feedback :) --Quiddity 23:07, 28 February 2007 (UTC)

Once again, the above div id is used to remove the title from the main page. If, however, you want to change the title of a page, say, in your user space, you could use the following Div id:
<div id="title-override" class="topicon" style="float: left; position: absolute; left: 0; top: 0px; width: 100%; padding-top: 5px; display:none"><div style="background: {{#ifeq:{{PAGENAME}}|{{FULLPAGENAME}}|white|#F8FCFF}}; font-size: 200%; padding-top: 0.5em; padding-bottom: 0.1em; position:relative; left:0.5em; font-family:Papyrus; font-weight:none;">Your title here</div></div>

One example of this being used is at User:Malber. Alex43223 Talk | Contribs | E-mail | C 04:20, 1 March 2007 (UTC)

Hmm... thanks to all for your suggestions. The Monobook.css seems to make the most sense but when I copied the code to a different wiki it didn't work - so somehow wikipedia's got it implemented and jacked - could be a version thing, too. My first solution is very much an override, but it seems to work both on and off of Wikipedia, so unfortunately that's more of a solution. If you're bored, try get the Monobook.css thing working on a different wiki -- and let me know how you go. Much appreciated and very interested thus far. Rfwoolf 15:05, 1 March 2007 (UTC)