User:°/multilingual global user page − how to

Copy this in your global user page (do not use VisualEditor):

<!-- use left-to-right text, even on ar, he, yi -->
<div dir="ltr">
<!-- babelbox, displaying xx-0, if user does not understand the ui-language -->
{{#babel:en|de-2|
{{#switch: {{int:lang}}
|en
|en-gb
|en-ca
|de=
|#default={{int:lang}}-0
}}
}}
<!-- start of page content -->
{{#switch: {{int:lang}}
|de-at
|de-ch
|de=
<!-- text in german, austrian and swiss variants -->
Hallo

Willkommen auf meiner Benutzerseite!
<!-- headings are different in different languages, therefore using an anchor -->
{{anchor|heading1}}
== Erste Überschrift ==
* [[w:en:{{SUBJECTPAGENAME}}]] Meine lokale Benutzerseite in der englischen Wikipedia
|de-formal=
<!-- text in formal german -->
Willkommen

Ich begrüße Sie auf meiner Benutzerseite!
{{anchor|heading1}}
== Überschrift 1 ==
* [[w:en:{{SUBJECTPAGENAME}}]] Meine lokale Benutzerseite in der englischen Wikipedia
|#default=
<!-- text in english; fallback -->
Hello

Welcome on my userpage!
{{anchor|heading1}}
== First heading ==
* [[w:en:{{SUBJECTPAGENAME}}]] My local userpage in the english Wikipedia
}}
</div>
<!-- userpage-template is already multilingual, try en, fr, he, de -->
{{userpage}}

For a working example see yi:user:°.

The page will be displayed on every Wikimedia-wiki, where you have logged in, but not have a local user page. No longer needed local user pages can be deleted by Synchbot.

See also