Template:Ar:User box

From OpenStreetMap Wiki
Jump to: navigation, search
[Edit] [Octicons-sync.svgpurge Help translate this into Arabic!] Template-info.svg Template documentation

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.

Geolocation

  • country (optional)
  • state (optional)
  • region (optional)
  • department (optional)
  • county (optional)
  • city (optional)
  • 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

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 call 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.
  • 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|}}}
| 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

اللغات المتوفرة — User box
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · português do Brasil · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް