Template:User box
From OpenStreetMap Wiki
Contents |
Description
This template inserts a box in your User page, with quick informations and some links about you.
You can enter your country, state, region, department, county, city..
Each unused value will simply be unused.
You can also tell your prefered GPS device and OSM editor.
Arguments
- name (optional) your real name
- osmname (optional) your OSM user account as in url, but with spaces replaced by %20 or _ (due to a past non-implementation of the StringFunction extension on the wiki, the transformation could not be done automaticaly.) — obsolete parameter, the default osmname value should be {{BASEPAGENAMEE}} instead of {{BASEPAGENAME}}, to convert spaces in usernames to underscores, and does not require any StringFunction extension.
Situation
- country (optional)
- state (optional)
- region (optional)
- department (optional)
- county (optional)
- city (optional)
Location
- lat : your latitude
- lon : your longitude
- zoom : prefered zomm for your map (optional, default: 14)
Tools
- GPS_device : your prefered companion on the road (optional)
- OSM_editor : your best friend at home (optional).
- mapJumper : the number of services in yout bookmarklet mapJumper (optional)
Usage
{{User box
| name = First Last <!-- your real or preferred name or alias to display -->
| osmname = First_Last <!-- the true page name of your user page, with spaces converted to underscores (obsolete) -->
| country = France
| state =
| region = Franche-Comté
| department = Doubs
| county =
| city = Besançon
| GPS_device = Garmin eTrex Legend HCx
| OSM_editor = JOSM
| mapJumper = 8
| lat = 47.21836
| lon = 6.04635
| zoom = 15
}}
Copy, paste into your user page, change what must be changed (quite all !) and enjoy !
Example
See FrViPofm
Localisation
You can create a template in your own language (let's say : lg) that call this one.
- Create the template : Template:User_box:lg
- Paste the following code :
<includeonly>
{{User box
|lg=fr
|traces_lb=traces
|map_lb=carte
|country_lb=Pays
|state_lb=État
|region_lb=Région
|department_lb=Département
|county_lb=Comté
|city_lb=Ville
|GPS_text = {{#if:{{{GPS_device|}}}|J’utilise un GPS [[{{{GPS_device}}}]]|}}
|editor_text = {{#if:{{{OSM_editor|}}}|J’édite avec [[{{{OSM_editor|}}}]]|}}
|mapJumper_text = {{#if:{{{mapJumper|}}}|I jump between {{{mapJumper}}} maps using [[User:FrViPofm/mapJumper|mapJumper]]|}}
| name = {{{name|}}}
| country = {{{country|}}}
| state = {{{state|}}}
| region = {{{region|}}}
| department = {{{department|}}}
| county ={{{county|}}}
| city = {{{city|}}}
| GPS_device = {{{GPS_device|}}}
| OSM_editor = {{{OSM_editor|}}}
| mapJumper = {{{mapJumper|}}}
| lat = {{{lat|}}}
| lon = {{{lon|}}}
| zoom = {{{zoom|}}}
}}</includeonly><noinclude>{{{{BASEPAGENAME}}/Documentation}}</noinclude>
- Translate the first set of variables, preview...
- Click on the red link Template:User_box:lg/Documentation
- Put in the new page a translation of this documentation (without this last paragraph concerning localisation). Preview, Make corrections, Publish.
- Preview your Template:User_box:lg. Make corrections
- Publish
- Enjoy !