Template:User username

From OpenStreetMap Wiki
(Redirected from Template:Username)
Jump to navigation Jump to search
OSM Logo This user submits data to OpenStreetMap under the name
User username.
[Edit] [Purge] Template-info.svg Template documentation

Usage

This is an adaption of Template:Username to display a wiki user's OSM username in a userbox.

The command

{{User username|Example}}

will produce a box with a link to the OSM user named "Example":

OSM Logo This user submits data to OpenStreetMap under the name
Example.

(User username in the example output will be replaced with your wiki username (if used on your wiki userpage, else the name of the page, you can give another value if needed).

Use the second optional parameter to specify the text to display which is by default identical to the first parameter (OSM username).

Examples

Example Result
Link to OSM user "Harry Wood" (with similarly named wiki user User:Harry Wood)
{{User username|Harry Wood}}
OSM Logo This user submits data to OpenStreetMap under the name
Harry Wood.
Display an alternative text
{{User username|Harry Wood|H. Wood}}
OSM Logo This user submits data to OpenStreetMap under the name
H. Wood.
Additionally, you can set the background-color, border-color and icon-backgroud by using the respective parameters:
{{User username|Harry Wood|H. Wood|border-color=black|background-color=yellow|icon-color=cyan}}
OSM Logo This user submits data to OpenStreetMap under the name
H. Wood.
Also, you can set the language:
{{User username|lang=fa}}
OSM Logo من با این نام کاربری به اوپن‌استریت‌مپ داده می‌فرستم:
User username

See also