Template:User box
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.
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 to display (by default will display the base page name on the wiki).
- osmname (optional) your real OSM user account (by default will display the base page name on the wiki). This is needed because:
- the wiki user name base page name of the user page is ambiguous about the letter case on the wiki (which is necessarily uppercase) and about the presence of spaces (not differentiated from underscores) but OSM user names are fully case significant and differentiate underscores or spaces and are less restricted than on the wiki.
- user accounts on OSM and on the wiki are created separately and could conflict between different unrelated users so their respective OSM username and wiki username will not necessarily match.
- Do not URL-encode the OSM name, just specify the actual username (in its native script, not necessarily ASCII-only) as it is typed to login on the OSM website.
Geolocation
- country (optional)
- state (optional)
- region (optional)
- department (optional)
- county (optional)
- city (optional)
- lat : your latitude
- lon : your longitude
- zoom : prefered zoom level for your map (optional, default: 14)
Tools
- GPS_device : your preferred companion on the road (optional). You can specify up to 3 devices, separated by a comma or semicolon.
- OSM_editor : your best friend at home (optional). You can specify up to 3 editors, separated by a comma or semicolon.
- mapJumper : the number of services in your bookmarklet mapJumper (optional)
Usage
{{User box | name = First Last <!-- your real or preferred name or alias to display --> | osmname = First_Last <!-- the actual page name of your OSM user page, if different from the wiki user name or if it includes spaces --> | 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
Translation and adaptations of this template
You can create a template in your own language (let's say it uses the language code : lang) that calls this one.
- Create the template : Template:lang:User_box
- The language code used should be conforming to the BCP 47 standard:
- Use a 2-letters code for a single language from ISO 639-1 (lowercase except DE,ES,FR,IT,JA,NL,RU), else from ISO 639-2 (lowercase only), otherwise a 3-letters code from ISO 639-3 (lowercase only).
- If you need to adapt the template for a country or a subdivision to display correct names for their subdivision types, name it: Template:lang-cc-sub:User_box, where cc is a country code (lowercase only) from the ISO 3166-1 standard. This 2-letters country code may be possibly followed by -sub for specifying a lowercase 2-to-3-letters/digits subdivision code (preferably from ISO 3166-2 or a national standard otherwise; if this standard uses some 1-letter codes, don't use it, use a standard language variant code described here after, or an abbreviation described in the next item); the standard country code and the optional standard subdivision code may then also be followed by a short lowercase abbreviation of the subdivision (preferably a 5-to-8-letters language variant code from the BCP 47 standard); and then it may be followed by -ssss for a lowercase 4-letters script code (from the ISO 15924 standard).
- But if there's no standard for the subdivision code, use -x-abbrev at end of the prefix just before the : colon (for example, Template:lang-cc-x-abbrev:User_box), where the abreviation is made with 1 to 8 lowercase letters/digits without any spaces.
- However the generic translation (using only a language code prefix and no extension) should not be too much regional specific, if the same language is used in multiple countries or regions.
- The language code used should be conforming to the BCP 47 standard:
- Paste the following code
<includeonly>{{User box | lg = lang<!-- replace "lang" by the actual language code without any enclosing quotes --> | traces_lb = traces | map_lb = map | country_lb = Country | state_lb = State, Province or Federal subject<!-- may be adapted for a country --> | region_lb = Administrative region, Regierungsbezirk, Oblast, or Autonomous community<!-- may be adapted for a country or state --> | department_lb = Department, or Subregional province<!-- may be adapted for a country or subdivision --> | county_lb = County, Arrondissement, or Local district<!-- may be adapted for a country or subdivision --> | city_lb = Local municipality (City, Town or Village)<!-- may be adapted for a country or subdivision --> | 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|}}} | osmname = {{{osmname|}}} | 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>{{Documentation|Template:User box/doc}}</noinclude>
You may remove the parameter |Template:User box/doc
in this last line, if you wish to also translate the documentation page for your new template.
See also
This template inserts a box in your User page, with quick information and some links about you.
You can enter your country, state, region, department, county, city..
You can also tell your preferred GPS device and OSM editor.Parameter | Description | Type | Status | |
---|---|---|---|---|
Language | lg | no description | Unknown | optional |
Name | name | Your real or preferred name or alias to display
| Unknown | optional |
urlname | urlname | no description | Unknown | optional |
OSM Name | osmname | The true page of your OSM user page, if different from the wiki user name or if it includes spaces. | Unknown | optional |
Traces | traces_lb | no description | Unknown | optional |
Latitude | lat | Your latitude
| Number | suggested |
Longitude | lon | Your longitude.
| Number | suggested |
Zoom | zoom | Preferred zoom for your map
| Number | suggested |
Map | map_lb | no description | Unknown | optional |
Country | country | no description | Unknown | optional |
country_lb | country_lb | no description | Unknown | optional |
State | state | no description | Unknown | optional |
state_lb | state_lb | no description | Unknown | optional |
Region | region | no description | Unknown | optional |
region_lb | region_lb | no description | Unknown | optional |
Department | department | no description | Unknown | optional |
department_lb | department_lb | no description | Unknown | optional |
County | county | no description | Unknown | optional |
county_lb | county_lb | no description | Unknown | optional |
City | city | no description | Unknown | optional |
city_lb | city_lb | no description | Unknown | optional |
GPS_text | GPS_text | no description | Unknown | optional |
GPS device | GPS_device | Prefered GPS device. You can specify up to 3 devices, separated by a comma or semicolon.
| Unknown | suggested |
editor_text | editor_text | no description | Unknown | optional |
OSM editor | OSM_editor | Preferred OSM editor. You can specify up to 3 editors, separated by a comma or semicolon.
| Unknown | suggested |
mapJumper_text | mapJumper_text | no description | Unknown | optional |
mapJumper | mapJumper | no description | Unknown | optional |