Hi
is there a method of supressing a page title on a wiki page similar to the _NOTOC_ directive for hiding table of contents?
thanks b
__________________________________ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs
Why? If it's for a print style, you can hide it only for print media.
The most you could do is hack up the skin and add an extension to do it.
On 6/8/05, b h bobhumphrey22@yahoo.com wrote:
Hi
is there a method of supressing a page title on a wiki page similar to the _NOTOC_ directive for hiding table of contents?
thanks b
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
--- Jamie Bliss astronouth7303@gmail.com wrote:
On 6/8/05, b h bobhumphrey22@yahoo.com wrote:
Hi
is there a method of supressing a page title on a
wiki
page similar to the _NOTOC_ directive for hiding
table
of contents?
thanks b
Why?
Well, I do like media wiki for it's clean look and feel, but on some pages, it is still too busy looking with that title there, especially if It's a long one.
Secondly, why is there a discrepancy between Talk and Discussion? You click on Discussion on the top, and then it brings up a page labelled Talk. Of course I know it's the same, but I get asked that question a lot.
Thirdly, sometimes I'd prefer to put my own headline at the top without actually moving the page. For instance, is there an easy way of changing the "Main Page" without breaking things? I presume that one might not be too hard. Also, one portion of our wiki has links between talk pages (ie, with Next and Previous links), but instead of going to article, we go to talk/discussion pages because we like how the "+" shows up for editing at the bottom of a page. Thus, all the pages in that portion of the wiki have the ugly Talk: at the beginning.
If it's for a print style, you can hide it only for print media.
The most you could do is hack up the skin and add an extension to do it.
Too bad. I was hoping it would be easy.
-- Jamie
Thanks though b
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On 08/06/05, b h bobhumphrey22@yahoo.com wrote:
Thirdly, sometimes I'd prefer to put my own headline at the top without actually moving the page. For instance, is there an easy way of changing the "Main Page" without breaking things? I presume that one might not be too hard. Also, one portion of our wiki has links between talk pages (ie, with Next and Previous links), but instead of going to article, we go to talk/discussion pages because we like how the "+" shows up for editing at the bottom of a page. Thus, all the pages in that portion of the wiki have the ugly Talk: at the beginning.
A better solution to this problem would be: * create a custom namespace, if appropriate, for these pages (http://meta.wikimedia.org/wiki/Help:Custom_namespaces); otherwise, just have them in the "main" namespace * modify the skin so that the "add section" link shows up on every page, or on the pages in your new namespace - the code to change (for monobook at least) is probably this bit in includes/SkinTemplate.php::buildContentActionUrls():
if ( $istalk ) { # this is the conditional statement you need to tweak somehow $content_actions['addsection'] = array( 'class' => $section == 'new'?'selected':false, 'text' => wfMsg('addsection'), 'href' => $wgTitle->getLocalUrl( 'action=edit§ion=new' ) ); }
On 6/9/05, Rowan Collins rowan.collins@gmail.com wrote:
On 08/06/05, b h bobhumphrey22@yahoo.com wrote:
Thirdly, sometimes I'd prefer to put my own headline at the top without actually moving the page. For instance, is there an easy way of changing the "Main Page" without breaking things? I presume that one might not be too hard. Also, one portion of our wiki has links between talk pages (ie, with Next and Previous links), but instead of going to article, we go to talk/discussion pages because we like how the "+" shows up for editing at the bottom of a page. Thus, all the pages in that portion of the wiki have the ugly Talk: at the beginning.
A better solution to this problem would be:
- create a custom namespace, if appropriate, for these pages
(http://meta.wikimedia.org/wiki/Help:Custom_namespaces); otherwise, just have them in the "main" namespace
- modify the skin so that the "add section" link shows up on every
page, or on the pages in your new namespace - the code to change (for monobook at least) is probably this bit in includes/SkinTemplate.php::buildContentActionUrls():
I wrote some Javascript to do this. See [[Wikipedia:User:Astronouth7303/monobook.js]] for the source. (you can copy it to [[MediaWiki:Monobook.js]]) Note that it will, as is, add the "+" link to every page. Also note that it has only been tested on FireFox, though it uses DOM level 2, so any modern should be able to run it.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
b h bobhumphrey22@yahoo.com wrote:
is there a method of supressing a page title on a wiki page similar to the _NOTOC_ directive for hiding table of contents?
There is no way to suppress it on individual pages that I know of.
You can suppress it on *all* pages in the article namespace using [[Mediawiki:Monobook.css]], by adding:
.ns-0 .firstHeading { display: none }
If you still need a title, you can add it manually, either with =single equals signs= (which adds it to the toc) or with the <h1> tag, which doesn't.
This may be more drastic than what you want.
*Muke!
mediawiki-l@lists.wikimedia.org