Template:User username/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

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":

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}}
This user submits data to OpenStreetMap under the name
Harry Wood.
Display an alternative text
{{User username|Harry Wood|H. Wood}}
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}}
This user submits data to OpenStreetMap under the name
H. Wood.
Also, you can set the language:
{{User username|lang=fa}}
من با این نام کاربری به اوپن‌استریت‌مپ داده می‌فرستم:
User username

See also