قالب:Webarchive/شرح

من ويكيبيديا، الموسوعة الحرة

يستخدم قالب {{Webarchive/شرح}} لربط خدمات أرشفة الويب مثل واي باك مشين وويب سايت.

الاستخدام[عدل]

Note: The most common method for linking a web archive are the CS1|2 templates such as {{cite web}} with the |archive-url=, |archive-date=, and |url-status= parameters. Please be aware of ويكيبيديا:الاستشهاد بمصادر before converting this template to a CS1|2 template.

Usage[عدل]

In most cases the template needs only two parameters, the archive |url= and archive |date=. It is also common to include a |title=. For some URLs, the template can automatically display the date. To prevent the template from adding a wikilink to the name of the أرشفة الويب site, use the |nolink= parameter with any value.

Usage with |url= and |date=
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |date=2 August 2016}}
نسخة محفوظة 2 أغسطس 2016 في Wayback Machine
{{Webarchive|url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=12 February 2009}}
نسخة محفوظة 12 فبراير 2009 في WebCite
Usage with |url= and |title=
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Page title}}
Page title في Wayback Machine (نسخة محفوظة 2016-08-02)
{{Webarchive|url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |title=Page title}}
Page title في WebCite (نسخة محفوظة 2009-02-12)
Usage with |url=, |date= and |title=
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 2, 2016 |title=Page title}}
Page title في Wayback Machine (نسخة محفوظة أغسطس 2, 2016)
{{Webarchive|url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=February 12, 2009 |title=Page title}}
Page title في WebCite (نسخة محفوظة فبراير 12, 2009)
Usage with |url=, |date= and |nolink=
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 2, 2016 |nolink=y}}
نسخة محفوظة أغسطس 2, 2016 في Wayback Machine
{{Webarchive|url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=February 12, 2009 |nolink=1}}
نسخة محفوظة فبراير 12, 2009 في WebCite

Multiple URLs[عدل]

The template optionally supports multiple URLs (up to 10) for linking to multiple archiving services for the same source link. The first url argument is |url= then |url2= .. |url10=. Each URL can have its own date and title argument, thus |date2= .. |date10= and |title2= .. |title10=.

خيارات[عدل]

Main parameters[عدل]

url..url10
The URL(s) to the archive service. There should always be a |url= which counts as the first url. Each |url#= can have its own numbered corresponding |date#= and |title#=. Matching of URL with date and title is done by numbers, not position. Numbers do not need to be in sequence, for example |url2= followed by |url5= works.
date..date10
The date the page was archived. The date format displayed is the same as entered. If |date= is missing the template will make a best effort to find the date by decoding the archive URL (wayback and webcite for example provide this data in the URL), and will display the date in iso format by default. However including a date is recommended for date formatting reasons, and because other tools may not have the ability to decode the date from the URL.
title..title10
The text displayed for the link. If no |title= is provided then |date= is displayed. Otherwise |title= takes precedence if both are set.

Secondary parameters[عدل]

nolink
If set to any value, the archive service name will not be wikilinked.
format
This is a special option to support the merger of {{cite archives}}. It may be deprecated in the future. Because CS1|2 templates do not currently support more than one archive link, this template will tack on additional archive links to the end of a CS1|2 template output. It takes two values: |format=addlarchives or |format=addlpages. Addlarchives will display output appropriate for linking to multiple web archiving services. Addlpages will display output appropriate for linking to multiple pages at the same archive.

أمثلة[عدل]

The number of possible examples is extensive depending on the mix of options. Some common cases follow. For more extensive testing see the testcases page [الإنجليزية].

Single link at واي باك مشين with date and title (recommended method)
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 2, 2016 |title=Page title}}
Page title في Wayback Machine (نسخة محفوظة أغسطس 2, 2016)
Single link at Wayback Machine with date only
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 1, 2016}}
نسخة محفوظة أغسطس 2, 2016 في Wayback Machine
Single link at Wayback Machine with title; date extracted from URL
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Example}}
Example في Wayback Machine (نسخة محفوظة 2016-08-02)
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Example |date=mdy}}
Example في Wayback Machine (نسخة محفوظة أغسطس 2, 2016)
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Example |date=dmy}}
Example في Wayback Machine (نسخة محفوظة 2 أغسطس 2016)
Single link at ويب سايت with title; date extracted from URL
{{Webarchive|url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com |title=Example}}
Example في WebCite (نسخة محفوظة 2009-02-12)
{{Webarchive|url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com |title=Example |date=mdy}}
Example في WebCite (نسخة محفوظة فبراير 12, 2009)
{{Webarchive|url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com |title=Example |date=dmy}}
Example في WebCite (نسخة محفوظة 12 فبراير 2009)
Single link at أرشيف.تودي with title; date extracted from URL
{{Webarchive|url=https://archive.today/2016.08.08-112330/http://example.com |title=Example}}
Example في archive.today (نسخة محفوظة 2016-08-08)
{{Webarchive|url=https://archive.today/2016.08.08-112330/http://example.com |title=Example |date=mdy}}
Example في archive.today (نسخة محفوظة أغسطس 8, 2016)
{{Webarchive|url=https://archive.today/2016.08.08-112330/http://example.com |title=Example |date=dmy}}
Example في archive.today (نسخة محفوظة 8 أغسطس 2016)
Multi-link at Wayback Machine with dates and titles (recommended method)
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Page title |date=August 2, 2016 |url2=https://web.archive.org/web/20160902000046/http://example.com/ |title2=Page2 title |date2=September 2, 2016}}
Page title في Wayback Machine (نسخة محفوظة أغسطس 2, 2016). Additional archives: Page2 title.
Multi-link at Wayback Machine with dates only
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 2, 2016 |url2=https://web.archive.org/web/20160902000046/http://example.com/ |date2=September 2, 2016}}
نسخة محفوظة أغسطس 2, 2016 في Wayback Machine. Additional archives: September 2, 2016.
Multi-link at Wayback Machine with titles only
{{Webarchive|url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Page title |url2=https://web.archive.org/web/20160902000046/http://example.com/ |title2=Page2 title}}
Page title في Wayback Machine (نسخة محفوظة 2016-08-02). Additional archives: Page2 title.
Additional archives format
{{Webarchive|format=addlarchives |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=12 February 2009}}
Additional archives: 12 فبراير 2009.
Additional pages format
{{Webarchive|format=addlpages |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |url2=https://web.archive.org/web/20160902000046/http://example.com/ |date=12 February 2009}}
المزيد من النسخ المحفوظة في 12 فبراير 2009: Page 1, Page 2.

تصنيفات تتبع[عدل]

يتم إضافتها عبر وحدة:Webarchive:

Tracking archive sites[عدل]

  • تصنيف:Webarchive template unknown archives (220 صفحة) –القالب لا يتعرف على وصلة الأرشيف؛ هذا قد يشير إلى وجود خطأ في البيانات، أو أن القالب يحتاج إلى تحديث لمواكبة مواقع الأرشيفات الجديدة.

Tracking warnings and errors[عدل]

صيانة القالب[عدل]

يمكن القيام بالتالي لصيانة القالب.

مراقبة تصنيفات التتبع

يمكن مراقبة تصنيفات التتبع لـ "التحذيرات" و "الأخطاء" للإنذار بأي مشاكل في البيانات. قد يشير تصنيف التتبع لـ "الأرشيفات المجهولة" إلى وجود مشكلة في البيانات. على سبيل المثال، قد يستخدم المحرر عنوان URL المصدر بدلاً من عنوان URL الأرشيف في حقل |url=.

التكوين: التحقق من التواريخ (verifydates)

يمكن للقالب التحقق من تطابق تواريخ Wayback (أو WebCite) في جزء عنوان URL مع التاريخ في |date=. إذا لم تتطابق التواريخ، فسيترك رسالة تحذيرية حمراء "عدم تطابق التاريخ" ويضيف المقالة إلى تصنيف التتبع للتحذيرات.

نظرًا لأن وظيفة التحقق تضيف بعض العبء إلى القالب، يمكن تعطيلها عالميًا اختياريًا عن طريق تعيين المتغير "verifydates = no" (انظر مصدر الوحدة في الوظيفة p.webarchive()). لاحظ أنه بعد التعيين على "نعم"، قد يستغرق الأمر أسبوعًا أو أكثر لاكتمال تصنيف التتبع. ضعه على "نعم" إذا كنت تبحث عن مشاكل في البيانات التي تحتاج إلى إصلاح (ستظهر في تصنيف التتبع).

التكوين: maxurls الحد الأقصى لعدد عناوين URL هو 10 ولكن يمكن تغيير ذلك عن طريق تعيين المتغير "maxurls" في وظيفة p.webarchive(). هذا متغير عالمي سيؤثر على جميع حالات القالب، استخدمه بحذر. ستزيد تقليل العدد من سرعة القالب وتقليل استخدام الموارد.

وسائط المحرر المرئي[عدل]

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

بيانات قالب: «Webarchive»

قالب لربط الأرشيفات الخارجية مثل Wayback و WebCite و Archive.is وما إلى ذلك.

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

وسيطوصفنوعحالة
عنوان الأرشيفurl

عنوان URL للأرشيف.

مثال
https://web.archive.org/web/20160101000000/http://example.com
نصمطلوب
تاريخ الأرشيفdate

تاريخ الأرشيف.

مثال
1 يناير 2016
نصمقترح
عنوان الأرشيفtitle

العنوان (أو النص) المعروض على صفحة الويكي للرابط.

غيابي
وسيط التاريخ أو كلمة أرشيف
مثال
مثال أرشيف
نصمقترح
وصلة الويكيnolink

وصلة الويكي إلى صفحة الأرشيف في التقديم. أي قيمة بما في ذلك الفراغ يعني عدم وجود وصلة ويتم تجاهلها.

نصاختياري
تنسيق عرض القالب.format

في حالة وجود عدة عناوين URL، يتم عرض العرض في إحدى صيغتين.

نصاختياري