Template:User

From OpenStreetMap Wiki
Jump to: navigation, search
System-users-3.svg[[User:{{{1}}}|{{{1}}}]] (on osm, edits, contrib, heatmap)
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

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.). It may also be used as the user name on the OSM wiki.

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.

You may also set the first parameter for specifying the username used on this wiki, and specify the alternate user name of OSM in the "osm=" parameter:

  • If the "osm=" parameter is set to an empty value, there will be no links to any OSM account and its edit histories. The first parameter is only used for the wiki user name.

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.

In all cases the first parameter will be the name actually displayed, independantly of the names used for accounts on the wiki (changed by parameter "wiki=") or on OSM (changed by parameter "osm=") and that both take their default value from the first parameter.

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. If set to a non-empty value, it sets the actual title of the user's page in this wiki.
  • osm= with an empty value will remove the link for users without account on OSM, keeping only the link to user's page on this wiki. If set to a non-empty value, it sets the actual title of the user's page on OSM.
  • noedits=1 will still show links to user's page on this wiki (unless it is removed by wiki= set to an empty value) and on OSM (unless it is removed by osm= set to an empty value), but will will remove links to their edits and history on OSM (if osm= is not set to an empty value).
  • 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), where their gender is set in their preference. For users without any account on this wiki, and not specifying f=1, the icon displayed is still neutral: you can set m=1 to render the male version.

Examples

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

See also

  • {{OSM user}} or {{OsmUser}} - a simple link to the OSM user's page, without traces and edits, and without any leading link on this wiki.