Similar question to Dinth's, but rather than actually rename the "Main Page", how can I not have the page display the words "Main Page". I would like the sort of effect that Wikipedia has that the Main Page is called main page but does not display the words. See http://en.wikipedia.org/wiki/Main_Page
Thanks,
Hugh
Hugh Prior a écrit :
Similar question to Dinth's, but rather than actually rename the "Main Page", how can I not have the page display the words "Main Page". I would like the sort of effect that Wikipedia has that the Main Page is called main page but does not display the words. See http://en.wikipedia.org/wiki/Main_Page
two ways for this : a javascript or a modification of monobook.php :
see the archives of the mediawiki mailing-list (and follow the threads) :
http://mail.wikipedia.org/pipermail/mediawiki-l/2006-June/012748.html
to make things shorter :
in monobook.php change :
<h1 class="firstHeading"><?php $this->text('title') ?></h1>
into
<?php if($this->haveData('title') != wfMsgForContent('mainpage')){ ?> <h1 class="firstHeading"><?php $this->text('title') ?></h1> <?php } ?>
OR change something in MediaWiki:Monobook.js (javascript) (everything is explained in the threads above)
Thanks Alexis!
That seems to have done the trick: http://en.tervuren.treekee.com/wiki/Main_Page
The version of MediaWiki is 1.7.1 and the change is slightly different, as the line for the heading is a bit more complex, but the principle is identical.
In MonoBook.php, Before: <h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this->text('title'):$this->html('title') ?></h1>
After: <?php if($this->haveData('title') != wfMsgForContent('mainpage')){ ?> <h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this->text('title'):$this->html('title') ?></h1> <?php } ?>
I just noticed that the Email notification function on my version 1.7.1 mediawiki was not sending notifications of page changes I specified using the "Watch" tab. I determined it was due to my user preferences not having the "E-mail me on page changes" preference checked. Three questions:
1) Why, when the "E-mail me on page changes" preference is not checked is the "Watch" tab visible? I would think it makes better sense to not have it appear if selecting it means nothing at the time. I understand that I can "watch" the page and later set my preference to receive email notifications so maybe that is why is is there, but it would be nice to add to the tab something that says that though you may add this to your watch list you will not receive notifications should the page change.
2) Why is the installation default to not receive email notification?
3) Is there something I can set in LocalSettings to change this so that when a user is created the "E-mail me on page changes" preference is checked?
Thanks to all...
-Jim
Hello, I would like to know if its possible to embed quicktimes and MP3 files in the Wiki pages?
Thanks, Kim
Yes, MP3 is possible. I've done it on my wiki, check http://tousauxbalkans.jexiste.fr/MP3 .
Copy this content of http://iubito.pastebin.com/793915 into a new file extensions/mp3.php, follow instructions, and enjoy !
2006/9/21, Kim Grinfeder grinfeder@miami.edu:
Hello, I would like to know if its possible to embed quicktimes and MP3 files in the Wiki pages?
Thanks, Kim
Sullivan, James (NIH/CIT) [C] wrote:
I just noticed that the Email notification function on my version 1.7.1 mediawiki was not sending notifications of page changes I specified using the "Watch" tab. I determined it was due to my user preferences not having the "E-mail me on page changes" preference checked. Three questions:
- Why, when the "E-mail me on page changes" preference is not checked
is the "Watch" tab visible?
Why on earth would that hide the watch tab? The watchlist has been a standard feature for nearly five years, long before the additional e-mail notification option existed.
- Why is the installation default to not receive email notification?
Many people probably don't want their servers spewing huge amounts of email for an optional, nonessential server.
- Is there something I can set in LocalSettings to change this so that
when a user is created the "E-mail me on page changes" preference is checked?
See DefaultSettings.php for all available configuration settings, such as the array of user option default overrides.
-- brion vibber (brion @ pobox.com)
Similar question to Dinth's, but rather than actually rename the "Main Page", how can I not have the page display the words "Main Page". I
would
like the sort of effect that Wikipedia has that the Main Page is called main page but does not display the words. See http://en.wikipedia.org/wiki/Main_Page
Add the following code to your monobook.js file [[Mediawiki:monobook.js]]:
/* BEGIN */ // Remove "Main Page" title from just that page var mpTitle = "Main Page"; var isMainPage = (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 && !isDiff) { document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>'); } /* END */
-Justin
PRIVACY NOTICE
This email and any attachments may be confidential and/or privileged. Use of the information contained in this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email.
mediawiki-l@lists.wikimedia.org