How can I, as a MediaWiki admin, create a message on every Wiki page/article?
(In my current case, I'm running MediaWiki on a server/domain that will change in the upcoming weeks, and I want to put a msg at the top of every page that reads something like "Please note: xxxx.com is a temporary location.")
The only thing I figured out was: {{global_header}}
...but this requires that every author inserts the above text into every page.
Do any automatic facilities exist? I've been hunting around the Template help stuff, but haven't yet found anything.
Thanks for any help, -Matt
"Matt" == Matt England mengland@mengland.net writes:
How can I, as a MediaWiki admin, create a message on every Wiki page/article? (In my current case, I'm running MediaWiki on a server/domain that will change in the upcoming weeks, and I want to put a msg at the top of every page that reads something like "Please note: xxxx.com is a temporary location.")
The only thing I figured out was: {{global_header}}
...but this requires that every author inserts the above text into every page.
Do any automatic facilities exist? I've been hunting around the Template help stuff, but haven't yet found anything.
Use MediaWiki:Sitenotice. What you place in that translation will be displayed at the top of all pages.
At 07:15 PM 4/22/05, you wrote:
"Matt" == Matt England mengland@mengland.net writes:
How can I, as a MediaWiki admin, create a message on every Wiki page/article? (In my current case, I'm running MediaWiki on a
---snip-- Use MediaWiki:Sitenotice. What you place in that translation will be displayed at the top of all pages.
I found the page which has <sitenotice> on the edit page. If I add or replace with sample text and then view the Main page, the test message isn't visible?
Am I missing a step?
James
On 4/30/05, =James Birkholz= j.birchwood@verizon.net wrote:
At 07:15 PM 4/22/05, you wrote:
"Matt" == Matt England mengland@mengland.net writes:
How can I, as a MediaWiki admin, create a message on every Wiki page/article? (In my current case, I'm running MediaWiki on a
---snip-- Use MediaWiki:Sitenotice. What you place in that translation will be displayed at the top of all pages.
I found the page which has <sitenotice> on the edit page. If I add or replace with sample text and then view the Main page, the test message isn't visible?
Am I missing a step?
You want to edit the article entitled MediaWiki:Sitenotice
You can get there by going to Special pages, then scroll down to the entry named sitenotice. The default contents is just a single -. I'm not sure what page you found.
Edit that page and it should appear at the top of each page on your wiki.
And, by the way, you might need to force a page refresh in order to see a new site notice on a page which your browser already has cached.
That's what I've already tried. Is there setting to turn it off? Mind checking? http://www.birchy.com/GenWiki/index.php?title=MediaWiki:Sitenotice
This isn't a recent feature is it? I'm using 1.3 something.
At 12:16 PM 4/30/05, you wrote:
And, by the way, you might need to force a page refresh in order to see a new site notice on a page which your browser already has cached. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
I'm still hoping someone will take the time to answer my previous query. I wonder about the use of the word "translation" in the reply below. Do this refer to the Languages modules?
I've edited this page: http://www.birchy.com/GenWiki/?title=MediaWiki:Sitenotice It used to have "<sitenotice>" in it.
but it doesn't do anything.
At 10:09 AM 4/30/05, you wrote:
At 07:15 PM 4/22/05, you wrote:
"Matt" == Matt England mengland@mengland.net writes:
How can I, as a MediaWiki admin, create a message on every Wiki page/article? (In my current case, I'm running MediaWiki on a
---snip-- Use MediaWiki:Sitenotice. What you place in that translation will be displayed at the top of all pages.
I found the page which has <sitenotice> on the edit page. If I add or replace with sample text and then view the Main page, the test message isn't visible?
Am I missing a step?
James _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
On 5/2/05, =James Birkholz= j.birchwood@verizon.net wrote:
I'm still hoping someone will take the time to answer my previous query. I wonder about the use of the word "translation" in the reply below. Do this refer to the Languages modules?
I've edited this page: http://www.birchy.com/GenWiki/?title=MediaWiki:Sitenotice It used to have "<sitenotice>" in it.
but it doesn't do anything.
Well, sitenotice works as advertised in mediawiki 1.4, and by upgrading to it you get any number of improvements, including security fixes. It appears that you've only got a small amount of stuff already in your 1.3.9 installation, so migration should be straightforward.
Are you stating that the site notice feature doesn't work in 1.3.9 or are you just saying that you know it does work in 1.4, so I should upgrade?
(Frankly, I'm not going to upgrade until there is a gigantic need, perhaps 1.5 or 1.6. Most of you may have the knowledge and time, but it would be a major project for me and I have several hundred more pressing things to do. I'm using a hosted site and there's no telling what will break, what changes I'd have to beg for, if I change what is working reasonably well. "ain't broke, ...")
It would be nice to have the site notice feature working, but so far, no one seems to be willing or able to tell me: 1) is it supposed to work in 1.3.x? 2) if so, is there something besides a simple edit of the contents of the MediaWiki:SiteNotice article required? 3) if so, what? If not, why would mine not work?
At 11:47 AM 5/2/05, John Fader wrote:
Well, sitenotice works as advertised in mediawiki 1.4, and by upgrading to it you get any number of improvements, including security fixes. It appears that you've only got a small amount of stuff already in your 1.3.9 installation, so migration should be straightforward.
--
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
=James Birkholz= wrote:
It would be nice to have the site notice feature working, but so far, no one seems to be willing or able to tell me:
- is it supposed to work in 1.3.x?
- if so, is there something besides a simple edit of the contents of
the MediaWiki:SiteNotice article required? 3) if so, what? If not, why would mine not work?
It seems to me that I distinctly remember seeing
$wgSiteNotice = ""
in my includes/DefaultSettings.php file in 1.3.x. I would imagine you would just need to add such a line to your LocalSettings.php file (don't edit DefaultSettings.php) to get the functionality. However, since I'm already running 1.4.x, I can't test it for you.
I'd always try to search DefaultSettings.php when looking for settings, even before looking on meta.wikipedia.org.
Good luck! Hínandil
=James Birkholz= wrote:
Are you stating that the site notice feature doesn't work in 1.3.9 or are you just saying that you know it does work in 1.4, so I should upgrade?
At the least I'd recommend you upgrade to 1.3.12, as there are some security fixes.
Release notes: http://sourceforge.net/project/shownotes.php?release_id=322144
It would be nice to have the site notice feature working, but so far, no one seems to be willing or able to tell me:
- is it supposed to work in 1.3.x?
- if so, is there something besides a simple edit of the contents of
the MediaWiki:SiteNotice article required?
Set $wgSiteNotice to the message in LocalSettings.php.
Alternatively, if you set it to ':sitenotice' I think it will try to load the MediaWiki:Sitenotice message.
(Be careful about capitalization!)
-- brion vibber (brion @ pobox.com)
At 07:02 PM 5/2/05, you wrote:
Set $wgSiteNotice to the message in LocalSettings.php.
Alternatively, if you set it to ':sitenotice' I think it will try to load the MediaWiki:Sitenotice message.
(Be careful about capitalization!)
Thanks, the first works, but couldn't get the latter to work.
James
Just edit MediaWiki:Sitenotice ;)
Cheers,
On 4/22/05, Matt England mengland@mengland.net wrote:
How can I, as a MediaWiki admin, create a message on every Wiki page/article?
(In my current case, I'm running MediaWiki on a server/domain that will change in the upcoming weeks, and I want to put a msg at the top of every page that reads something like "Please note: xxxx.com http://xxxx.com is a temporary location.")
The only thing I figured out was: {{global_header}}
...but this requires that every author inserts the above text into every page.
Do any automatic facilities exist? I've been hunting around the Template help stuff, but haven't yet found anything.
Thanks for any help, -Matt
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org