John Sanzi | 11 Sep 2012 14:10
Picon

Not a fan of "contribslink"

Hi there, MediaWiki-l folks.  For this wiki version...

MediaWiki 1.19.1
PHP 5.2.17 (cgi-fcgi)
MySQL 5.5.23-55

...by any chance is there a way (that a non-programmer, like me, would
understand) to prevent the "contribslink" from existing?  Or at least
stop some user groups from getting it?  This is the link with text
that's controlled by the "MediaWiki:contribslink" page; it appears as
"contribs" by default, in various places.  I'm never going to need
that link.

Thank you very much.

-- John
Yury Katkov | 12 Sep 2012 03:48
Picon

Re: Not a fan of "contribslink"

The broader question to the experts: how to replace the system messages
with something invisible without CSS tricks?

John, the following method works but it really a desperate
and wretched one: add to your MediaWiki:Common.css page the following:

span.mw-usertoollinks>a:nth-of-type(2), {
display:none;
}

This will hide the contribslink but the extra "|" will remain.

-----
Yury Katkov

On Tue, Sep 11, 2012 at 4:10 PM, John Sanzi <johnsanzi <at> gmail.com> wrote:

> Hi there, MediaWiki-l folks.  For this wiki version...
>
> MediaWiki 1.19.1
> PHP 5.2.17 (cgi-fcgi)
> MySQL 5.5.23-55
>
> ...by any chance is there a way (that a non-programmer, like me, would
> understand) to prevent the "contribslink" from existing?  Or at least
> stop some user groups from getting it?  This is the link with text
> that's controlled by the "MediaWiki:contribslink" page; it appears as
> "contribs" by default, in various places.  I'm never going to need
> that link.
>
(Continue reading)

John Sanzi | 12 Sep 2012 13:21
Picon

Re: Not a fan of "contribslink"

Hey, Yury, I do feel "desperate and wretched" today, so I'll try that.
 I'm grateful for your suggestion.  And I appreciate you recognizing
the broader question-behind-the-question, too.

-- John

On Tue, Sep 11, 2012 at 9:48 PM, Yury Katkov <katkov.juriy <at> gmail.com> wrote:
> The broader question to the experts: how to replace the system messages
> with something invisible without CSS tricks?
>
> John, the following method works but it really a desperate
> and wretched one: add to your MediaWiki:Common.css page the following:
>
> span.mw-usertoollinks>a:nth-of-type(2), {
> display:none;
> }
>
> This will hide the contribslink but the extra "|" will remain.
>
>
> -----
> Yury Katkov
>
>
>
>
> On Tue, Sep 11, 2012 at 4:10 PM, John Sanzi <johnsanzi <at> gmail.com> wrote:
>
>> Hi there, MediaWiki-l folks.  For this wiki version...
>>
(Continue reading)

Marcin Cieslak | 22 Sep 2012 13:15
Gravatar

Re: Not a fan of "contribslink"

>> John Sanzi <johnsanzi <at> gmail.com> wrote:
> This is the link with text that's controlled by the
> "MediaWiki:contribslink" page; it appears as "contribs"

You can always override MediaWiki messages by editing
pages in the MediaWiki namespace as somebody who
has 'editinterface' right (sysop is enough by default).

If the message is empty though the hard-coded default
will be used.

You can go for a CSS solution or you can introduce
a dirty hack by commenting out

$items[] = self::link( $contribsPage, wfMessage( 'contribslink' )->escaped(), $attribs );

in includes/Linker.php file. 

//Saper

Gmane