Template:User username
Jump to navigation
Jump to search
This user submits data to OpenStreetMap under the name User username. |
This documentation is transcluded from Template:User username/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
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}} |
| ||
Display an alternative text {{User username|Harry Wood|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}} |
| ||
Also, you can set the language: {{User username|lang=fa}} |
|