موضيل:خريطة د لبلايص/شرح

من ويكيپيديا

موضيل:فهرس يسار

هذا القالب ينشئ خريطة موقع في هيئة صورة مُركّبة، تتكون من خريطة وعلامة موقع جغرافي. ويمكن أن تختار إضافة تسمية توضيحية.

تخدام[بدل لكود]

لا يتم الوصول إلى ملفات صور الخرائط مباشرة، ولكن باستخدام تعريف خريطة إضافية. على سبيل الميتال، إذا كانت البيان الأول غير المُسمّى في بيانات القالب هي "اليابان"، فإن هذا القالب يستخدم الإدخال الخاص باليابان في وحدة:خريطة مواقع/بيانات/اليابان إن كانت موجودة، أو {{خريطة مواقع اليابان}} كبديل لها، التي تحتوي إحداها على البيانات المطلوبة لإنشاء الصورة المُركّبة.

لاحظ أن
  • يؤدي تحديد أي قيمة للمتغير تعليق الصورة إلى عرض الخريطة كصورة مصغرة. إذا لم يتم تعبئة هذا المتغير، سينشئ القالب تسمية توضيحية افتراضية.
  • إذا كانت الإحداتيات المحددة تقع خارج المنطقة التي تغطيها صورة الخريطة، فلن يتم عرض علامة الموقع داخل الصورة؛ ومع ذلك، قد تظهر في مكان آخر في الصفحة.
  • لا تستخدم بك أو px عند ضبط حجم الصورة. عند استخدام عرض=200px فسيؤدي ذلك عادةً إلى عرض خريطة كبيرة جدًا. استخدم عرض=200.
  • لإنشاء خريطة بداخلها أكثر من علامة موقع، استخدم إما {{خريطة مواقع+}} أو {{Location map many}}.

قوالب فارغة[بدل لكود]

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

درجات عشرية درجات، دقائق، ثواني مع {{Coord}}
(عادة لصناديق المعلومات)
ويكيداطا
{{خريطة مواقع|{{{1}}}
|width      = 
|float      = 
|border     = 
|caption    = 
|alt        = 
|relief     = 
|AlternativeMap= 
|overlay_image = 
|label      = 
|label_size = 
|position   = 
|background = 
|mark       = 
|marksize   = 
|link       = 
|lat_deg    = 
|lon_deg    = 
}}
{{خريطة مواقع|{{{1}}}
|width      = 
|float      = 
|border     = 
|caption    = 
|alt        = 
|relief     = 
|AlternativeMap= 
|overlay_image = 
|label      = 
|label_size = 
|position   = 
|background = 
|mark       = 
|marksize   = 
|link       = 
|lat_deg    = 
|lat_min    = 
|lat_sec    = 
|lat_dir    = 
|lon_deg    = 
|lon_min    = 
|lon_sec    = 
|lon_dir    = 
}}
{{خريطة مواقع|{{{1}}}
|width      = 
|float      = 
|border     = 
|caption    = 
|alt        = 
|relief     = 
|AlternativeMap= 
|overlay_image = 
|label      = 
|label_size = 
|position   = 
|background = 
|mark       = 
|marksize   = 
|coordinates= 
}}
{{خريطة مواقع|{{{1}}}
|width      = 
|float      = 
|border     = 
|caption    = 
|alt        = 
|relief     = 
|AlternativeMap= 
|overlay_image = 
|label      = 
|label_size = 
|position   = 
|background = 
|mark       = 
|marksize   = 
}}

لمتبدلات[بدل لكود]

متغيرات عرض الخريطة
المتغير وصفه
{{{1}}} أساسي. استخدم اسم الخريطة في المتغير الأول غير المُسمّى. على سبيل الميتال، استخدام إنجلترا سيستدعي بيانات إنجلترا من وحدة:خريطة مواقع/بيانات/إنجلترا إذا كانت موجودة، أو {{Location map England}} إن لم تكن موجودة. أنظر الأمتيلا بالأسفل.
عرض تحدد عرض الخريطة بوحدات البكسل، متجاوزة أي قيم افتراضية. لا تكتب px، على سبيل الميتال: عرض=300، وليس عرض=300px.
عرض_افتراضي تحدد العرض الافتراضي للخريطة بالبكسل، المخصصة للاستخدام في القوالب. العرض الافتراضي هو 240. لا تكتب px. سيتم ضرب هذه القيمة في متغير عرض_افتراضي المحدّد في قوالب الخرائط الفردية، إن وُجدت، من أجل عرض حجم مناسب للخرائط الرأسية. على سبيل الميتال، إذا كان عرض_افتراضي=200 كان مُحدّدًا، فستُعرض خريطة تايلاند بعرض 200 * 0.57 = 114 بكسل (كما هو محدد في موضيل:خريطة مواقع تايلاند).
تموضع تحدد موقع الخريطة في الصفحة. القيم المتاحة هي يسار، يمين، وسط، لا_شئ. الافتراضي سيكون يسار.
حدود تحدّد لون حدّ الخريطة ذو الـ 1px. الافتراضي هو lightgrey (أنظر ألوان الويب). إذا اخترت لا_شيء، لن تنشئ أي حدود. هذا المتغير نادرًا ما يستخدم.
تعليق لكتابة نص تعليق على الخريطة. إذا كتبت تعليق، فسيظهر إطار للخريطة. إذا حدّدت تعليق دون كتابة نص، لن يظهر إطار للخريطة. وإذا لم تحدد تعليق، لن يكون هناك إطار للخريطة، وسيظهر تعليق افتراضي تحت الخريطة. التعليق الافتراضي يتولّد من المتغير وسم (أو الاسم الحالي للصفحة، إذا لم يكن المتغير وسم محددًا) ومن المتغير اسم من قالب تعريف الخريطة. أنظر الأمتيلا بالأسفل.
بديل نص بديل للخريطة؛ يستخدمه screen reader، أنظر موضيل:صندوق معلومات تجهيزات مخبرية.
تضاريس أي قيمة ليست فارغة (1، نعم، ...) ستجعل القالب يعرض الخريطة المحددة في قالب تعريف الخريطة صورة1، التي هي عادةً خريطة تضاريس. أنظر الميتال في Location map+/relief.
خريطة_بديلة يسمح باستخدام خريطة بديلة. يجب أن تكون الصورة لها نفس الاحداثيات مثل قالب خريطة مواقع. أنظر الميتال في Location map+/AlternativeMap.
صورة_تراكبية يسمح بتراكب صورة على الخريطة. هذا المتغير نادرًا ما يستخدم. أنظر الميتال في Location map+/overlay.
متغيرات الوسوم والعلامات
المتغير وصفه
وسم يُعرض نصّ الوسم إلى جوار العلامة. يمكن استخدام وصلة داخلية. الافتراضي في حالة عدم تحديد وسم، ألا يظهر نص، فقط علامة
حجم_الوسم يُعطى حجم خط الوسم بالنسبة المئوية من حجم الخط العادي (<100 = أقل، >100 = أكبر). المعتاد هو 90. لا تكتب %، على سبيل الميتال: حجم_الوسم=80، وليس حجم_الوسم=80%.
عرض_الوسم المعتاد هو 6. لا تستخدم em، على سبيل الميتال: عرض_الوسم=7، وليس عرض_الوسم=7em.
موقع_الوسم يحدد موقع الوسم بالنسبة للعلامة. القيم المتاحة هي يسار، يمين، فوق تحت. المعتاد إما يسار أو يمين، حسب إحداتيات العلامة وموقعها بالنسبة إلى الحدّ الأيمن لصورة الخريطة.
خلفية_الوسم يحدد لون خلفية الوسم. أنظر ألوان الويب. المعتاد هو بدون ألوان، فتظهر الخريطة على حالتها خلف الوسم.
علامة تحدد شكل العلامة التي ستظهر على الخريطة. المعتاد هو Red pog.svg (). أنظر الأمتيلا على Commons:Location markers وCommons:Category:Map icons.
حجم_العلامة لتحديد حجم العلامة يالبكسل. المعتاد هو 8. لا تضع px، ميتال: حجم_العلامة=10، وليس حجم_العلامة=10px.
وصلة لتحديد وصلة داخلية تذهب بالقارئ لتلك الصفحة إذا ضغط عليها في الخريطة، ويظهر اسمها عندما تعلوها الفأرة.
احداثيات الاحداثيات في صيغة {{Coord}}، لا يوصى باستخدامها، إذا كنت لا تريد هدر وقتك، يمكن إدخال الدرجات العشرية (ميتال 48.067°N 12.863°E)؛ لا داعي لذلك.
خط_عرض_درجة مطلوب. درجات خطوط العرض الجغرافي. يمكن كتابتها بقيم عشرية، وإذا استخدمت القيم العشرية في هذا المتغير لا تعبأ متغيرات الدقائق والثواني.
خط_عرض_دقيقة دقائق خط العرض.
خط_عرض_ثانية ثواني خط العرض. عادةً غير ضرورية.
lat_dir N للشمال (القيمة المعتادة) أو S لجنوب خط الاستواء. أي قيم أخرى سيتم تجاهلها. يمكن استخدام قيم سالبة لخطوط العرض جنوب خط الاستواء
خط_طول_درجة مطلوب. درجات خطوط الطول الجغرافي. يمكن كتابتها بقيم عشرية، وإذا استخدمت القيم العشرية في هذا المتغير لا تعبأ متغيرات الدقائق والثواني.
خط_طول_دقيقة دقائق خط الطول.
خط_طول_ثانية ثواني خط الطول. عادةً غير ضرورية.
lon_dir E للشرق (القيمة المعتادة) أو W لغرب خط غرينتش. أي قيم أخرى سيتم تجاهلها. يمكن استخدام قيم سالبة لخطوط الطول غرب خط غرينتش

الخرائط المتاحة[بدل لكود]

هناك أكثر من 1,000 خريطة متاحة. للبحث عن الخرائط:

عمل تعريفات لخريطة جديدة[بدل لكود]

أنظر عمل تعريفات لخريطة جديدة.

أمتيلا[بدل لكود]

عرض وتموضع معتاد، دون وسم، تعليق معتاد (احداثيات عشرية)[بدل لكود]

لاحظ أن: إذا لم تحدد وسم، سيكون التعليق هو "عنوان الصفحة (اسم الخريطة)"، لذا إذا عُرض هذا الميتال في صفحة اسمها باج، سيكون التعليق "باج (كرواتيا)". بالمثل، في صفحة اسمها باج (مدينة)، سيكون التعليق "باج (مدينة) (كرواتيا)". خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| كرواتيا
| alt     = Pag is on an island.
| lat_deg = 44.44
| lon_deg = 15.05
}}

Map with the default caption (degrees/minutes)[بدل لكود]

Note: When a label is specified, the default caption is "Label text (Map name)", seen as "Pag (كرواتيا)" in this example. خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| كرواتيا
| width = 200
| float = left
| alt = Pag is on an island.
| label = Pag
| position = right
<!--green dot-->
| mark = Green pog.svg 
<!-- default: lat_dir = N -->
| lat_deg = 44 | lat_min = 26 
<!-- default: lon_dir = E -->
| lon_deg = 15 | lon_min = 3  
}}

Mark outside of map border, no caption[بدل لكود]

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| كرواتيا
| width    = 200
| float    = right
| caption  =
| alt      = Rimini in Italy (outside the map)
| lat_deg  = 44.05
| lon_deg  = 12.57 <!--outside map's left border at 13.1-->
| outside  = 1 <!-- we're aware the point is outside the map, so suppress the warning category -->
| label    = Rimini
| position = right
}}

Caption, label_size, background, mark, marksize[بدل لكود]

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| Italy
| width      = 200
| float      = right
| caption    = Location of Rimini in Italy
| alt        = Map of Italy with mark showing location of Rimini
| label      = Rimini
| label_size = 150 <!--150% of normal size-->
| position   = bottom
| background = orange
| mark       = Orange_pog.svg
| marksize   = 12 <!--size in pixels-->
| lat_deg    = 44.05
| lon_deg    = 12.57
}}

موضيل:أنجر

AlternativeMap parameter[بدل لكود]

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| Italy
| AlternativeMap = Italy location map.svg
| width   = 200
| float   = right
| caption = Location of Rome in Italy
| alt     = Map of Italy with mark showing location of Rome
| label   = Rome
| lat_deg = 41.9
| lon_deg = 12.5
}}

موضيل:أنجر

Relief parameter[بدل لكود]

Also demonstrates automatic positioning of label to the left, due to far right position of mark. خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| نيبال
| relief = yes
| caption = Location of Biratnagar Airport in نيبال
| alt = Biratnagar Airport is located in southeastern نيبال
| label = Biratnagar
| mark = Airplane silhouette.svg
| marksize = 10
| lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N
| lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E
}}

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| نيبال
| relief = 
| caption = Location of Biratnagar Airport in نيبال
| alt = Biratnagar Airport is located in southeastern نيبال
| label = Biratnagar
| mark = Airplane silhouette.svg
| marksize = 10
| lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N
| lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E
}}

موضيل:أنجر

نفس الإحداتيات على خرائط مختلفة[بدل لكود]

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| UK Scotland
| relief = 1
| width = 180
| float = right
| caption = Lockerbie in Scotland, UK
| alt = تقع لوكربي في جنوب اسكتلندا.
| label = لوكربي
| mark = Blue_pog.svg
| marksize = 9
| lat_deg = 55 | lat_min = 07 | lat_sec = 16 | lat_dir = N
| lon_deg = 03 | lon_min = 21 | lon_sec = 19 | lon_dir = W
}}

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| United Kingdom
| relief = 1
| width = 180
| float = right
| caption = [[لوكربي]] في اسكتلندا بالمملكة المتحدة
| alt = تقع لوكربي في جنوب اسكتلندا.
| label = لوكربي
| mark = Blue_pog.svg
| marksize = 9
| lat_deg = 55 | lat_min = 07 | lat_sec = 16 | lat_dir = N
| lon_deg = 03 | lon_min = 21 | lon_sec = 19 | lon_dir = W
}}

Map that crosses 180° meridian[بدل لكود]

See

خطأ لوا ف مودول:Location_map على السطر 422: No value was provided for longitude.

{{خريطة مواقع| Fiji
| width      = 180
| float      = right
| label      = Suva
| position   = right
| background = yellow
| mark       = Locator_Dot.png
| marksize   = 7
| lat_deg =  18 | lat_min =  8 | lat_sec = 0 | lat_dir = S
| lon_deg = 178 | lon_min = 26 | lon_sec = 0 | lon_dir = E
}}

Template data[بدل لكود]

هذا توثيق بيانات القالب لهذا القالب المستخدم بواسطة المحرر المرئي وأداة الترجمة والأدوات الأخرى.

بيانات قالب خريطة د لبلايص

This template places a location mark on a map.

وسائط القالب[تحرير بيانات القالب]

وسيطوصفنوعحالة
Map name1

The name of the map to be used

نصمطلوب
Map widthwidth

Determines the width of the map in pixels, overriding any default values. Do not include "px", for example: "300", not "300px".

رقماختياري
Default widthdefault_width

Determines the default width of the map in pixels, intended for use by templates such as infoboxes. The default value is 240. Do not include "px". This value will be multiplied by the defaultscale parameter specified in individual map templates, if it exists, in order to achieve an appropriate size for vertical maps.

رقماختياري
Positionfloat

Specifies the position of the map on the page. Valid values are left, right, center and none. The default is right.

نصاختياري
Border colorborder

Specifies the color of the map border. If set to none, no border will be generated.

نصاختياري
Map captioncaption

The text of a caption to be displayed below the map. If caption is defined but is not assigned a value, the map will not be framed and no caption will be displayed. If caption is not defined, the map will not be framed and a default caption will be generated.

نصاختياري
Alt textalt

Alt text for map; used by screen readers.

نصاختياري
Alternative map from templaterelief

Any non-blank value (1, yes, etc.) will cause the template to display the map specified in the map definition template as image1, which is usually a relief map.

نصاختياري
Alternative map not from templateAlternativeMap

Allows the use of an alternative map. The image must have the same edge coordinates as the map template.

نصاختياري
Overlay imageoverlay_image

Allows an overlay to be superimposed on the map. This parameter is seldom used.

نصاختياري
Marker labellabel

The text of the label to display next to the mark. A wiki link can be used.

نصاختياري
Label sizelabel_size

The font size to use for the label, given as a percentage of the normal font size. Do not include "%".

رقماختياري
Label widthlabel_width

The width to use for the label, given as an em size. Do not include "em".

رقماختياري
Label positionposition

The position of the label relative to the mark. Valid values are left, right, top and bottom. This defaults to either left or right, depending on the coordinates of the marker and its position relative to the right border of the map image.

نصاختياري
Label backgroundbackground

The background color to use for the label.

نصاختياري
Marker imagemark

The name of an image to display as the marker.

نصاختياري
Marker sizemarksize

The size of the mark in pixels. Do not include "px".

رقماختياري
Marker linklink

Specifies a wiki link which will be followed if the reader clicks on the mark.

نصاختياري
Latitude degreeslat_deg

The degrees of latitude. This value can be specified using decimal degrees. When this format is used minutes and seconds should not be specified.

رقممطلوب
Latitude minuteslat_min

The minutes of latitude.

رقماختياري
Latitude secondslat_sec

The seconds of latitude.

رقماختياري
Latitude directionlat_dir

N if north or S for south of the Equator. Not required if using signed decimal degrees.

نصاختياري
Longitude degreeslon_deg

The degrees of longitude. This value can be specified using decimal degrees. When this format is used minutes and seconds should not be specified.

رقممطلوب
Longitude minuteslon_min

The minutes of longitude.

رقماختياري
Longitude secondslon_sec

The seconds of longitude.

رقماختياري
Longitude directionlon_dir

E for east or W for west of the Prime Meridian. Not required if using signed decimal degrees.

نصاختياري

شوف تا[بدل لكود]

موضيل:كومنز

Wikimedia Commons تقدر تزيد شوف بزاف د تّصاور و لمعلومات ديال Map pointers ف ويكيميديا كومنز.