फलकम्:Location mark+/doc

विकिपीडिया, कश्चन स्वतन्त्रः विश्वकोशः

This template places one or more marks on an image, with optional labels. A helper template, Location mark~, is used one or more times to generate the marks and labels.

Other templates are more capable of superimposing one image on another. This template centers a mark over a location on any image using coordinate values that are relative. The size of the composite image can changed without changing the relative positions of the markers. The composite image can be displayed as a simple image, a bordered image or a thumbnail image.

If the geographic coordinates of the locations are known and a location map template exists then one of the templates in the Location map family should be used. The See also section below lists alternative templates.

Usage[सम्पादयतु]

Some locations in the U.S.
San Francisco
San Francisco
Four Corners
Four Corners
New York
New York
Some locations in the U.S.
{{Location mark+
| image = 
| width = 
| caption = 
| alt = 
| type = 
| float = 
| marks = 
}}
{{Location mark~
| width = 
| label = 
| position = 
| font_size = 
| background = 
| mark = 
| mark_width = 
| mark_alt = 
| mark_link = 
| x = 
| y = 
}}

Parameters[सम्पादयतु]

Parameters for Location map+
Parameter Description
image Required. The name of an image file.
width Determines the width of the image in pixels. The default is 220px. For example width=240 and not width=240px.
caption The caption text displays below the image if the thumbnail option is used. See the examples.
alt Alt text for the map. See WP:ALT. If no alt text is provided the caption text will be used.
type Determines the display format. Valid values are thumb, and border. The thumb option generates output similar to [[File:|name|thumb]], while the border option generates output similar to [[File:|name|border]]. If no valid value is assigned, the output will not be framed or bordered. See below and this page.
float Determines the position of the image on the page. Valid values are left, right, center and none. The default is right.
marks Places one or more marks on the image using the template {{Location mark~}}. See below.
Parameters for Location mark~
Parameter Description
width The width of the image. The default is 220px. फलकम्:Underline be the same as the width of the image.
label Optional. The text of the label to display next to the mark. The text can be wiki linked.
position The position of the label relative to the mark. Valid values are left, right, top and bottom. The default is right. If none is assigned then the template will place the label either to the right or the left depending on the location of the mark.
font_size The font size to use for the label as a percentage. The default is 90%. For example font_size=80.
background The background color to use for the label text. See Web colors. By default the background color is inherited from the image behind the label.
mark The name of an image to display as the mark. The default is Red pog.svg. Go here and here for some examples.
mark_width The width of the mark in pixels. The default is 8px. For example mark_width=7 and not mark_width=7px. Labels do not work well with large mark images. This template is not intended to generate overlays. See {{Superimpose}}.
mark_link Specifies a wiki link which will be followed if the reader clicks on the mark. The name of the linked article will be displayed as a tool tip when the mouse pointer hovers over the mark.
mark_alt Alt text for the mark image. See WP:ALT. If no mark_alt text is provided the label text will be used.
x Determines the location of the mark in the horizontal axis. See below.
y Determines the location of the mark in the vertical axis. See below.

The x and y parameters[सम्पादयतु]

फलकम्:Location mark+/x and y parameters

The type parameter[सम्पादयतु]

type= type=border type=thumb
Three locations on the coast of Scotland
Cape Wrath
Cape Wrath
Rattray Head
Rattray Head
Ardnamurchan Point
Ardnamurchan Point
Three locations on the coast of Scotland
Cape Wrath
Cape Wrath
Rattray Head
Rattray Head
Ardnamurchan Point
Ardnamurchan Point
Three locations on the coast of Scotland
Cape Wrath
Cape Wrath
Rattray Head
Rattray Head
Ardnamurchan Point
Ardnamurchan Point
Three locations on the coast of Scotland

Examples[सम्पादयतु]

The first two examples could be duplicated using {{Location map+}}.

Using mostly default values[सम्पादयतु]

Weather stations in Scotland
Cape Wrath
Cape Wrath
Rattray Head
Rattray Head
Ardnamurchan Point
Ardnamurchan Point
{{Location mark+
| width = 
| image = Scotland relief location map.jpg
| caption = Weather stations in Scotland
| float = 
| type = 
| marks = 
{{Location mark~
  | width = 
  | label = '''Cape Wrath'''
  | position = 
  | x = 452 | y = 480 }}
{{Location mark~
  | width = 
  | label = '''Rattray Head'''
  | position = 
  | x = 835 | y = 703 }}
{{Location mark~
  | width = 
  | label = '''Ardnamurchan Point'''
  | position = 
  | x = 307 | y = 865 }}
}}

Using backround color for labels[सम्पादयतु]

Largest cities in North Rhine-Westphalia
Cologne
Cologne
Düsseldorf
Düsseldorf
Dortmund
Dortmund
Essen

Essen
Duisburg
Duisburg
Largest cities in North Rhine-Westphalia
{{Location mark+
| image = North Rhine-Westphalia location map 05.svg
| width = 300
| caption = Largest cities in [[North Rhine-Westphalia]]
| type = thumb
| marks = 
{{Location mark~ 
  | width = 300
  | label = Cologne
  | position = right
  | background = #a7cb9d
  | x = 302 | y = 702 }}
{{Location mark~
  | width = 300
  | label = Düsseldorf
  | position = left
  | background = #a7cb9d
  | x = 267 | y = 574 }}
{{Location mark~
  | width = 300
  | label = Dortmund
  | position = right
  | background = #a7cb9d
  | x = 456 | y = 457 }}
{{Location mark~
  | width = 300
  | label = <br />Essen
  | position = right
  | background = #a7cb9d
  | x = 328 | y = 484 }}
{{Location mark~
  | width = 300
  | label = Duisburg
  | position = left
  | background = #a7cb9d
  | x = 261 | y = 496 }}
}}

Using an invisible mark[सम्पादयतु]

Cute chicks
Rachel
Rachel
Alice
Alice
Cute chicks
{{Location mark+
| image = Take five.jpg
| caption = Cute chicks
| type = thumb
| marks = 
{{Location mark~
  | label = Rachel
  | position = top
  | background = #ae9074
  | mark = Blanksvg.svg
  | x = 433 | y = 295 }}
{{Location mark~
  | label = Alice
  | position = top
  | background = #ae9074
  | mark = Blanksvg.svg
  | x = 812 | y = 245 }}
}}

See also[सम्पादयतु]


"https://sa.wikipedia.org/w/index.php?title=फलकम्:Location_mark%2B/doc&oldid=191770" इत्यस्माद् प्रतिप्राप्तम्