Project portals

From Meta, a Wikimedia project coordination wiki
(Redirected from Www)
Jump to: navigation, search
Correct.svg This page is currently a draft. More information pertaining to this may be available on the talk page.

Translation admins: Normally, drafts should not be marked for translation.

Projects

The central Wikimedia portal wikimedia.org and the multilingual portal pages provide central access to the Wikimedia projects. This page provides a list of the portals and information on how to update each.

Portal pages[edit]

These are the 9 portals that currently exist for our multilingual projects, including the Wikimedia movement portal and API portal.

Statistics[edit]

Project portals get approximately 3 to 5% of our total page views. For instance, wikipedia.org gets 3% of page views from many countries, but 5% on average and as many as 33% in India. See the following links for more statistics.

Wikipedia.org[edit]

As a result of a poll in 2008, the ring of Top Ten Wikipedias in the wikipedia.org template is defined by number of views per hour, rather than the number of content pages.

As a result of a A/B test in 2016, the ring of Top Ten Wikipedias are now resorted automatically by the visitor's preferred language (as set by their web browser preferences). If the portal is unable to detect the visitor's preferred language, the remaining top ten Wikipedias will be displayed in the order of "page views per hour".

Updates to the statistics on the Wikipedia.org portal are performed approximately every two weeks and are tracked in this phabricator task.

Updating portals[edit]

Wikipedia.org[edit]

As of June 2016, the Portal team of the Discovery department at the Wikimedia Foundation is updating the Wikipedia.org portal. The team has performed a number of A/B tests and documents their changes and process on MediaWiki.org.

The Wikipedia.org portal code is hosted at at https://gerrit.wikimedia.org/r/wikimedia/portals with a subdirectory for each version of the portal. All code is managed via Gerrit.

For changes, a task can be made in Phabricator or discussed on the Wikipedia.org portal talk page.

Other Wikimedia portals[edit]

The remaining Wikimedia portals listed below are managed via Meta pages and Modules that generate the published code (hosted in gerrit as described above).

Bug reports and feature requests can be created in Phabricator or on the talk page for each portal as listed above. For general discussion a new topic can be left on the talk page for the Project Portals.

The Wikimedia portals are deployed to the production servers via a code management tool called Gerrit.

Portal code[edit]

The published code for the portals is hosted at https://gerrit.wikimedia.org/r/wikimedia/portals with each project's production code stored in the prod sub-directory. Use git to download a copy of the portal code. In a terminal window, enter the following command:

git clone https://gerrit.wikimedia.org/r/wikimedia/portals

This clones the entire portals repository into a subdirectory named portals. If you would like to learn more about using git/gerrit there is a tutorial available on MediaWiki.org.

CSS and JavaScript[edit]

By including the lines containing "modules=ext.gadget.wm-portal" from Www.wikipedia.org template, you can include CSS from MediaWiki:Gadget-wm-portal.css and the JavaScript code from MediaWiki:Gadget-wm-portal.js, whose code can be viewed on Meta-Wiki. The CSS contains classes to make the "ring of languages" around the logo (e.g., on www.wikipedia.org).

These can be used (please copy from one of the actual portals, not from here!):

  • <link rel="stylesheet" href="//meta.wikimedia.org/w/load.php?debug=false&amp;lang=en&amp;modules=ext.gadget.wm-portal&amp;only=styles&amp;skin=vector&amp;*">
    (used in head)
  • <script src="//meta.wikimedia.org/w/load.php?debug=false&amp;lang=en&amp;modules=ext.gadget.wm-portal&amp;only=scripts&amp;skin=vector&amp;*"></script>
    (bottom of body)

See also[edit]