Jump to content

Global user pages

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Global user pages and the translation is 3% complete.
קיצור דרך:
GUP

Global user pages are user pages defined on Meta that apply on other Wikimedia wikis. This includes three pages:

  1. Your Meta user page will be shown on any wiki where you don't have a local user page.
  2. Your global.css contains styles that are imported on every wiki when you're logged in.
  3. Your global.js contains scripts that are loaded on every wiki when you're logged in.

You must have a global account to use these features. The global pages will only be inherited on wikis where you have a local account (see a list of accounts attached to your global account), meaning your global user page won't appear on wikis you've never visited.

Managing global user page and scripts

Global user page, JS script and style sheet are enabled by default, and once these pages are created they will come into effect automatically. For more details about managing and controlling global user pages, scripts and style sheets, see the documentation:

To prevent your Meta-Wiki userpage from appearing globally, you may add the __NOGLOBAL__ magic word, which also determines whether a link to a user page on a remote wiki should be red or blue.

Metawiki (this wiki) utilises an abuse filter to prevent another person's (global) user page from being edited by IP editors and editors without an elevated level of permission.

Local user pages

Your global user page won't be shown on local wikis if you already have a user page there.

This page is displayed as a transclusion of the userpage in Meta in your local wiki. Therefore, if you don't want a particular text to appear globally, you can use <noinclude></noinclude> tag. Also, if you want a text to appear only globally, you can use <includeonly></includeonly> tag.

Wikilinks for your userpage on Meta do not work on another wiki, for example: in User:Example, when you link on User:Example/sandbox, in Wikidata this link would be redirected to d:User:Example/sandbox, not your Meta sandbox. You can bypass this issue by using m:User:Example/sandbox.

Content

Your global user page should not contain content considered inappropriate on projects where it will be displayed (see help about user pages for more information, and for interwiki links to language help pages).

Please use Meta:Civility as a guide.

Translation

While you can't translate your user page automatically into the local content language, you can translate it into the reader's user interface language (which may not be the wiki's default language!). For example, this adds a user language box, and a sentence translated into either German or English:

{{#babel:en|de-2}}
{{#switch:{{int:lang}}
 |de=Willkommen auf meiner Benutzerseite!
 |en=Welcome to my user page!
 |#default=Welcome to my user page!
}}

The text in any language can be any number of lines, but every language can only occur once inside the #switch-block. The #default-block must not be missed, as it is the fallback for all possible languages, that are not explicitly mentioned.

You can see a more complex example.

See also