Giter Club home page Giter Club logo

mediawiki-extensions-hideprefix's Introduction

<!-- README -->

== What? ==

The HidePrefix extension hides prefix in links and page titles.

For example, wikitext `[[Help:FAQ]]' normally results in link `Help:FAQ'. If this extension is
enabled, result will be just `FAQ' without the `Help:' prefix.

The same is about page titles. Page `FAQ' in `Help' namespace normally has `Help:FAQ' title. If this
extension is enabled, visible page title will be just `FAQ' without the `Help:' prefix.

== Why? ==

I as a user do not care too much about namespace of the link target page. To me there is no big
difference between `Help:FAQ' and `Manual:FAQ' (especially if one of them is a redirection to
another). But both these prefixes looks ugly to me.

Namespace of target is often clear from context. If you see `Author: User:Van de Bugger' it is clear
that `User:Van de Bugger' is a link to her/his personal page. Moreover, actually it does not matter
whether that page is in `User' namespace or not. But again, the prefix looks very ugly, so many
wikieditors use `[[User:Van de Bugger|Van de Bugger]]' to suppress the prefix.

Prefixes look especially ugly if there is a long list of links with the same prefix. For example,
look at the list of Extensions used on Wikimedia. More than 100 occurrences of prefix `Extension:'
just clutter the screen and does not add any value. (BTW, did you notice that I had to use
`[[:Category:Extensions used on Wikimedia|Extensions used on Wikimedia]]' to suppress ugly
`Category:' prefix?)

Thus, If I want to hide the ugly prefix so often, why should I hide it at every link manually? Let
me write an extension which will hide the prefix in all the links. Everywhere.

BTW, prefix is hidden in link text, but it is still available โ€” if one hovers the mouse cursor over
the link, tooltip will show full target page title, including prefix.

Almost the same reasoning is applicable to page title. The prefix looks ugly and does not add any
value to reader, because just above the page title (at least, in Vector skin) there are namespace
tabs, and the leftmost tab shows the namespace name.

== Download ==

 git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HidePrefix

== Installation ==

To install this extension, add the following to LocalSettings.php:

 require_once( "$IP/extensions/HidePrefix/HidePrefix.php" );

== License ==

GNU Affero General Public License, version 3 or any later version. See AGPL-3.0.txt file for the
full license text.

== See also ==

*   Extension HideNamespace โ€” This extension allows drop prefix in page title and provides control
    (e. g. hide prefix only in pages of specific namespace, or control prefix visibility from within
    page content), but it does not affect links.

== Links ==

* Extension page: https://www.mediawiki.org/wiki/Extension:HidePrefix
* Author page:    https://www.mediawiki.org/wiki/User:Van_de_Bugger
* License page:   https://www.gnu.org/licenses/agpl.html

<!-- end of file -->

mediawiki-extensions-hideprefix's People

Contributors

hashar avatar kizule avatar ladsgroup avatar legoktm avatar paladox avatar reedy avatar siebrand avatar translatewiki avatar umherirrender avatar van-de-bugger avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.