Template:User/doc

From OpenStreetMap Wiki
Jump to: navigation, search

Inserts links to an OpenStreetMap.org user's profile, traces, edits (after the user page on this wiki if that OSM user has one here).

Usage

The first mandatory parameter is an OSM registered user name (used for edits, notes, etc.).

Note that this template assumes the username is the same for both OSM.org and the OSM wiki:

  • If a OSM user does not have an account on this wiki, you can specify "wiki=" explicitly (and no link will be generated to a user page on this wiki).
  • If a OSM user uses an account named differently on this wiki, you can specify "wiki=user name" explicitly to generate a link to his correct user page on this wiki).
  • Otherwise the OSM user name given in the first parameter will be used to generate a link to his identically named user page on this wiki.

There are various reasons why the account names don't match between this wiki, and the OSM website/database, notably because user names don't have exactly the same requirements, and because the first letter of a user name is not case-sensiteon this wiki, but is case sensive on the OSM website and database. Some characters are also accepted in user names on one site but not another (this wiki does not allow "/" and does not differentiate a space with underscores, but still allows "%" and "+" in user names). Another reason is that OSM edits may require you use a separate account for mechanical edits, when this wiki may have only one user page for both OSM accounts. Also there are contributors on this wiki that do not contribute on OSM directly: the two projects are in fact separate, allowing distinct identities.

Note: don't attempt to URL-encode user names (notably those containing spaces or non-ASCII characters), just use the normal, readable user names, with standard spaces and standard UTF-8 encoding (as used for normal text on this wiki): the effective encoding depends on the kind of targets for URLs or wikilinks, and where the user names are used in URLs (in the "/resource/path" or in a "?query" string, or in an "#anchor"). This template will determine the appropriate encoding.

Optional parameters

  • wiki= with an empty value will remove the link for users without account on this wiki, keeping only the link to user's page on OSM.
  • noedits=1 will still show links to user's page on this wiki (unless it is removed by the previous parameter) and on OSM, but will will remove links to their edits and history on OSM.
  • f=1 changes the default icon (which may be interpreted as a male user) to a more appropriate icon for a female user. Note in absence of this parameter, and if the user has an account on this wiki, the appropriate gender may be determined automatically from the local user's preferences on this wiki (but many users don't define it and this setting remains "neutral"). Normally this parameter is not needed if the user has an account on this wiki (i.e. the parameter "wiki=" is not set to an empty value). For users without any account on this wiki, and not specifying f=1, the icon displayed is still the male one.

Examples

You type You get
{{User|phobie}} System-users-3.svg phobie (on osm, edits, contrib, heatmap)
{{User|phobie|noedits=1}} System-users-3.svg phobie (on osm)
{{User|phobie|f=1}} User icon 3.svg phobie (on osm, edits, contrib, heatmap)
{{User|phobie|noedits=1|f=1}} User icon 3.svg phobie (on osm)
{{User|Harry Wood}} User icon 2.svg Harry Wood (on osm, edits, contrib, heatmap)
{{User|Harry Wood|noedits=1}} User icon 2.svg Harry Wood (on osm)
{{User|phobie|wiki=|f=1}} User icon 3.svg phobie (on osm, edits, contrib, heatmap)
{{User|phobie|wiki=|f=1|noedits=1}} User icon 3.svg phobie (on osm)
{{User|Seandebasti|wiki=Sean de Basti}} User icon 2.svg Sean de Basti (Seandebasti on osm, edits, contrib, heatmap)
{{User|Seandebasti|wiki=Sean de Basti|noedits=1}} User icon 2.svg Sean de Basti (Seandebasti on osm)

See also

  • {{OSM user}} or {{OsmUser}} - a simple link to the user's page without traces, edits, or wiki link