Template:User username/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:User username. It contains usage information, categories and other content or metadata that is not part of the original template. |
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}} |
|
See also