{{i}} Документація шаблону[перегляд] [редагувати] [історія] [очистити кеш]

{{Webarchive}} (обг. · викор. · ред.) надає посилання на сервіси архівування інтернет-контенту, такі як, наприклад, Wayback Machine, WebCite та інших сервісів архівування в інтернеті[en].

Цей шаблон призначений для заміни функцій наступних шаблонів: {{wayback}} (обг. · викор. · ред.), {{WebCite}} (обг. · викор. · ред.), {{memento}} (обг. · викор. · ред.) та {{cite archives}} (обг. · викор. · ред.) (див. відповідні англовікі).

Використання ред.

Зазвичай, шаблону треба два єдиних аргументи:

  • |url=URL-посилання на сторінку сервіса архівування
  • |date= — дата архівування вихідної сторінки поточним сервісом архівування

Приклад:

{{webarchive |url=https://web.archive.org/web/20160801000000/http://example.com |date=August 1, 2016}}
Повертає: [Архівовано August 1, 2016, у Wayback Machine.]

Приклад 2:

{{webarchive |url=http://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=12 February 2009}}
Повертає: [Архівовано 12 February 2009 у WebCite]

Також вітається включення параметру |title=

Приклад 3:

{{webarchive |url=http://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=12 February 2009 |title=назва сторінки}}
Повертає: [назва сторінки у WebCite (арх. 12 February 2009)]

Множинні мережеві посилання (URLs) ред.

Шаблон опціонально підтримує до 10 альтернативних посилань на кілька сервісів архівування цільвої сторінки-джерела: |url=, |url2= .. |url10=. Кожен URL може мати власні аргументи дати і назви: |date2= .. |date10= та |title2= .. |title10=.

Параметри ред.

Основні параметри

url..url10
URL, посилання на відповідну архівовану сторінку на сайті сервісу архівації. Параметр |url= має завжди бути присутнім і заданим і розглядається як перше посилання. Для кожного |url#=, де «#» — номер, можна вказати відповідно |date#= та |title#= з таким самим номером. Посилання, номери та дати співставляються за присвоєним їм номером, а не позицією параметра по порядку. Нумерація по порядку не є обов'язковою, наприклад після |url2= може йти |url5=.
date..date10
Дата архівації сторінки. Дату буде показано так, як її введено. Якщо |date= відсутній, шаблон намагатиметься визначити дату з URL архіву (наприклад, Wayback і Webcite зазначають дату в URL) та завжди показуватиме дату в ISO форматі за замовчуванням. Однак, рекомендуємо включати дату, щоб задати формат, а також оскільки інші інструменти можуть не мати можливості визначити дату з URL.
title..title10
Текст посилання. Якщо |title= не задано, то буде показано |date=. Якщо задано обидва, то буде показано |title=.

Додаткові параметри

nolink
If set to any value (including blank such as |nolink=) the wiki-link for the archive service will not be displayed. For example if Wayback Machine was previously linked in an article, it won't be linked again.
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 1 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.
origurl
This is the original URL and this argument should not be used unless you know what you're doing. This option is not recommended because it is redundant, not needed by the template and creates error-prone interactions with other link rot tools. For example given the original URL http://www.example.com it is already contained in the archive URLs:
Wayback: |url=https://web.archive.org/web/YYYYMMDDhhmmss/http://www.example.com
Webcite: |url=http://www.webcitation.org/5eWaHRbn4?url=http://www.example.com (more info at Using WebCite)
Archive.is: |url=http://archive.is/YYYYMMDDhhmmss/http://www.example.com (more info at Using Archive.is)
Archive services that have the option for long-form URLs, like the above examples, should use that (most do) instead of |origurl=. See RfC which discusses the policy of disallowing URL-shortening which can be used to hide blacklisted websites. In the rare instances when an archive service only has shortened URLs available, the original URL can be stored in the |origurl= argument. Another reason not to use this argument unless necessary is because other link-rot tools (bots, edit scripts etc) may try to "save" the URL - which is presumably dead - by converting it to an archive URL, adding a dead link tag or even messing with the archive URL. Note that the argument is not used by the template it's only for storage.

Приклади ред.

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 Wayback with date and title (recommended method)
{{webarchive |url=https://web.archive.org/web/20160801000000/http://example.com |date=August 1, 2016 |title=Page title}}
[Page title у Wayback Machine (арх. August 1, 2016)]
  • Single link at Wayback with date only
{{webarchive |url=https://web.archive.org/web/20160801000000/http://example.com |date=August 1, 2016}}
[Архівовано August 1, 2016, у Wayback Machine.]
  • Single link at WebCite with no date and no title
{{webarchive |url=http://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/}}
[Архівовано 2012-05-26 у WebCite]
  • Multi-link at Wayback with dates and titles (recommended method)
{{webarchive |url=https://web.archive.org/web/20160801/http://example.com |title=Page title |date=August 1, 2016 |url2=https://web.archive.org/web/20160901/http://example.com |title2=Page2 title |date2=September 1, 2016}}
[Page title у Wayback Machine (арх. August 1, 2016). Додаткові архіви: Page2 title.]
  • Multi-link at Wayback with dates only
{{webarchive |url=https://web.archive.org/web/20160801/http://example.com |date=August 1, 2016 |url2=https://web.archive.org/web/20160901/http://example.com |date2=September 1, 2016}}
[Архівовано August 1, 2016, у Wayback Machine. Додаткові архіви: September 1, 2016.]
  • Multi-link at Wayback with titles only
{{webarchive |url=https://web.archive.org/web/20160801/http://example.com |title=Page title |url2=https://web.archive.org/web/20160901/http://example.com |title2=Page2 title}}
[Page title у Wayback Machine (арх. 2016-08-01). Додаткові архіви: Page2 title.]


Tracking categories ред.


Категорії спостереження ред.


Цей шаблон містить код, запозичений з шаблону «Webarchive» англійської Вікіпедії.

Переклад


Template maintenance ред.

The following can be done to maintain the template.

Monitor tracking categories

  • The tracking categories for "warnings" and "errors" can be monitored to alert for any problems in the data.
  • The tracking category for "unknown archives" may indicate a problem in the data; for example an editor used the source URL instead of the archive URL in the |url= field.

Configuration: verifydates

The template can verify that Wayback (or WebCite) dates in the URL portion match the date in the |date= argument. If the dates don't match it will leave a red warning message "date mismatch" and add the article to the warning tracking category.

Because the verification function adds some overhead to the template, it can optionally be globally disabled by setting the variable "verifydates = no" (see the Module source in function p.webarchive()). Note that after setting to "yes", it can take a week or more for the tracking category to be fully populated. Set to "yes" if you are searching for problems in the data that need fixing (they'll show up in the tracking category).

Configuration: maxurls

The max number of URLs is 10 but this can be changed by setting the "maxurls" variable in the p.webarchive() function. This is a global variable that will effect all instances of the template, use with caution. Reducing the number will increase the template speed and reduce resource use.

Немає опису.

Параметри шаблону[Управління TemplateData]

ПараметрОписТипСтатус
urlurl

Посилання на архів сторінки

URLнеобов'язковий
datedate

Дата архівації

Датанеобов'язковий