Knowledge

Template:Webarchive

Source đź“ť

32: 63: 103: 127: 522:
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
1027:
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
1036:
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 affect all instances of the template, use with caution. Reducing the number will increase the template speed and reduce resource use.
802:{{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}} 566:. 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: 824:{{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}} 883:{{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}} 846:{{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}} 215: 1024:
argument. If the dates do not match it will display the date from the URL, add a red warning message "date mismatch", and add the article to the warning tracking category.
944: (259): the template doesn't recognize the archive URL; this may indicate an error in the data; or the template itself needs updating to reflect a new archive site 1291: 941: 1324: 1276: 984:
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
923: 1264: 935: 47: 929: 917: 443:
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
1303: 1260: 43: 954: 591:
The number of possible examples is extensive depending on the mix of options. Some common cases follow. For more extensive testing see the
1028:
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).
1319: 960: 184: 51: 1246: 868:{{webarchive |format=addlarchives |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=12 February 2009}} 387:{{webarchive |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=February 12, 2009 |title=Page title}} 154: 504:. Matching of URL with date and title is done by numbers, not position. Numbers do not need to be in sequence, for example 1286: 592: 81: 611:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 2, 2016 |title=Page title}} 372:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 2, 2016 |title=Page title}} 113: 1058: 997: 427:{{webarchive |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=February 12, 2009 |nolink=1}} 1271: 77: 416:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 2, 2016 |nolink=y}} 144: 109: 89: 728:{{webarchive |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com |title=Example |date=dmy}} 713:{{webarchive |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com |title=Example |date=mdy}} 1299: 1254: 304:{{webarchive |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |date=12 February 2009}} 39: 981:
The tracking categories for "warnings" and "errors" can be monitored to alert for any problems in the data.
676:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Example |date=dmy}} 661:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Example |date=mdy}} 1054: 1050: 1046: 150: 1004:
is being used by five instances in five articles. Since this is an error (the template does not support
263:. For some URLs, the template can automatically display the date. To prevent the template from adding a 780:{{webarchive |url=https://archive.today/2016.08.08-112330/http://example.com |title=Example |date=dmy}} 765:{{webarchive |url=https://archive.today/2016.08.08-112330/http://example.com |title=Example |date=mdy}} 629:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |date=August 1, 2016}} 343:{{webarchive |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com/ |title=Page title}} 1020:
The template can verify that dates in URLs for Wayback, WebCite, and Archive.is match the date in the
290:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |date=2 August 2016}} 85: 888: 873: 431: 391: 347: 328:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Page title}} 308: 88:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 732: 717: 702: 698:{{webarchive |url=https://www.webcitation.org/5eWaHRbn4?url=http://www.example.com |title=Example}} 1000:
shows which instances of the template are using which arguments—it might show, for example, that
892: 858: 850: 836: 828: 814: 806: 680: 665: 650: 646:{{webarchive |url=https://web.archive.org/web/20160802001301/http://example.com/ |title=Example}} 633: 615: 420: 376: 332: 294: 1250: 957: (312): soft errors that do not prevent the template from working but leave a red message 905: 240: 140: 1205:
Wikilink to the archive's page in the rendering. Any value including blank means no wikilink.
784: 769: 754: 750:{{webarchive |url=https://archive.today/2016.08.08-112330/http://example.com |title=Example}} 854: 832: 810: 684: 669: 654: 637: 619: 600: 380: 336: 298: 176: 76:
To avoid major disruption and server load, any changes should be tested in the template's
1075:
A template for linking to offsite archives such as Wayback, WebCite, Archive.is, etc..
938: (2,701): links to known archive sites that don't have their own tracking category 221:
Note: The most common method for linking a web archive are the CS1|2 templates such as
1313: 788: 773: 758: 743: 518:
The date the page was archived. The date format displayed is the same as entered. If
268: 264: 133: 17: 582:
will display output appropriate for linking to multiple pages at the same archive.
904:
The template has a number of hidden tracking categories which may be added (via
578:
will display output appropriate for linking to multiple web archiving services.
70: 26: 736: 721: 706: 691: 395: 351: 312: 180: 642:
Single link at the Wayback Machine with title; date extracted from URL
554:
If set to any value, the archive service name will not be wikilinked.
251:
In most cases the template needs only two parameters, the archive
71:
approximately 574,000 pages, or roughly 1% of all pages
1228:
For multi-URL instances, render display in one of two formats.
1119:
https://web.archive.org/web/20160802001301/http://example.com/
1008:) those five template instances should be fixed to remove the 121: 97: 57: 488:
The URL(s) to the archive service. There should always be a
455:. Each URL can have its own date and title argument, thus 963: (17): errors typically requiring human intervention 794:
Multi-link at the Wayback Machine with dates and titles (
523:
may not have the ability to decode the date from the URL.
1170:
Title (or text) displayed on the Wiki page for the link.
1280: 813: (archived August 2, 2016). Additional archives: 243:
before converting this template to a CS1|2 template.
175:
is for linking to web archiving services such as the
972:
The following can be done to maintain the template.
887:
Additional pages archived on 12 February 2009:
842:Multi-link at the Wayback Machine with titles only 560:This is a special option to support the merger of 857: (archived 2016-08-02). Additional archives: 820:Multi-link at the Wayback Machine with dates only 625:Single link at the Wayback Machine with date only 942:Category:Webarchive template unknown archives 920: (555,076): links to the Wayback Machine 8: 1072: 924:Category:Webarchive template archiveis links 1065:in articles based on its TemplateData. 936:Category:Webarchive template other archives 1270:Editors can experiment in this template's 1078: 930:Category:Webarchive template webcite links 918:Category:Webarchive template wayback links 496:can have its own numbered corresponding 529:The text displayed for the link. If no 1021: 1009: 1005: 1001: 985: 926: (24,496): links to Archive.today 571: 567: 538: 534: 530: 519: 509: 505: 501: 497: 493: 489: 468: 464: 460: 456: 452: 448: 444: 423:August 2, 2016, at the Wayback Machine 410: 406: 402: 366: 362: 358: 322: 318: 284: 280: 272: 260: 256: 252: 236: 232: 228: 955:Category:Webarchive template warnings 563:{{cite archives}} 211:{{cite archives}} 7: 1177:Date argument, or the word 'Archive' 1059:See a monthly parameter usage report 492:which counts as the first url. Each 1325:Web archive external link templates 961:Category:Webarchive template errors 746:with title; date extracted from URL 694:with title; date extracted from URL 190:This template is a replacement for 112:. It is not designed for use as a 25: 724: (archived February 12, 2009) 541:takes precedence if both are set. 398: (archived February 12, 2009) 259:. It is also common to include a 739: (archived 12 February 2009) 224:{{cite web}} 185:all other web archiving services 125: 101: 61: 30: 993:Monitor template argument usage 932: (2,476): links to WebCite 239:parameters. Please be aware of 205:{{memento}} 199:{{webcite}} 193:{{wayback}} 776: (archived August 8, 2016) 672: (archived August 2, 2016) 622: (archived August 2, 2016) 383: (archived August 2, 2016) 108:This template is intended for 1: 1219:Format of template rendering. 791: (archived 8 August 2016) 687: (archived 2 August 2016) 568:|format=addlarchives 434:February 12, 2009, at WebCite 949:Tracking warnings and errors 1068:TemplateData for Webarchive 976:Monitor tracking categories 1341: 1320:Internet Archive templates 1244: 1049:for this template used by 1016:Configuration: verifydates 864:Additional archives format 761: (archived 2016-08-08) 709: (archived 2009-02-12) 657: (archived 2016-08-02) 572:|format=addlpages 354: (archived 2009-02-12) 339: (archived 2016-08-02) 275:parameter with any value. 1304:Subpages of this template 1086: 92:before implementing them. 84:subpages, or in your own 69:This template is used on 537:is displayed. Otherwise 1255:Template:Webarchive/doc 879:Additional pages format 835:. Additional archives: 831:August 2, 2016, at the 636:August 2, 2016, at the 233:|archive-date= 1298:Add categories to the 1032:Configuration: maxurls 1010:|access-date= 1006:|access-date= 1002:|access-date= 912:Tracking archive sites 229:|archive-url= 151:Module:Webarchive/data 35:Template documentation 872:Additional archives: 603:with date and title ( 297:2 August 2016 at the 237:|url-status= 1141:Date of the archive. 968:Template maintenance 546:Secondary parameters 311:12 February 2009 at 132:This template uses 18:Template:Web archive 1242: 1112:URL to the archive. 1083: 1081:Template parameters 1063:Template:Webarchive 900:Tracking categories 599:Single link at the 267:to the name of the 1079: 1077: 796:recommended method 605:recommended method 469:|title10= 1241: 1240: 1099: 1073: 1057:and other tools. 906:Module:Webarchive 837:September 2, 2016 533:is provided then 502:|title#= 465:|title2= 461:|date10= 411:|nolink= 273:|nolink= 164: 163: 141:Module:Webarchive 120: 119: 114:citation template 96: 95: 16:(Redirected from 1332: 1295: 1284: 1268: 1224: 1201: 1166: 1137: 1108: 1100: 1084: 1023: 1011: 1007: 1003: 987: 884: 874:12 February 2009 869: 847: 825: 803: 781: 766: 751: 729: 714: 699: 677: 662: 647: 630: 612: 573: 569: 565: 564: 540: 539:|title= 536: 532: 531:|title= 521: 511: 507: 503: 499: 498:|date#= 495: 491: 470: 466: 462: 458: 457:|date2= 454: 453:|url10= 450: 446: 428: 417: 412: 408: 404: 388: 373: 368: 367:|title= 364: 360: 344: 329: 324: 323:|title= 320: 305: 291: 286: 282: 274: 262: 261:|title= 258: 254: 238: 234: 230: 226: 225: 214:, as decided in 213: 212: 207: 206: 201: 200: 195: 194: 174: 168: 129: 128: 122: 105: 104: 98: 65: 64: 58: 55: 36: 34: 33: 21: 1340: 1339: 1335: 1334: 1333: 1331: 1330: 1329: 1310: 1309: 1308: 1307: 1297: 1289: 1274: 1269: 1258: 1243: 1222: 1199: 1183:Example website 1164: 1135: 1106: 1071: 1043: 1034: 1022:|date= 1018: 995: 978: 970: 951: 914: 902: 882: 867: 855:Wayback Machine 845: 833:Wayback Machine 823: 811:Wayback Machine 801: 779: 764: 749: 742:Single link at 727: 712: 697: 690:Single link at 685:Wayback Machine 675: 670:Wayback Machine 660: 655:Wayback Machine 645: 638:Wayback Machine 628: 620:Wayback Machine 610: 601:Wayback Machine 589: 562: 561: 548: 535:|date= 520:|date= 510:|url5= 506:|url2= 494:|url#= 482: 480:Main parameters 477: 449:|url2= 441: 426: 415: 407:|date= 386: 381:Wayback Machine 371: 363:|date= 342: 337:Wayback Machine 327: 303: 299:Wayback Machine 289: 285:|date= 257:|date= 249: 223: 222: 216:this discussion 210: 209: 204: 203: 198: 197: 192: 191: 177:Wayback Machine 172: 166: 160: 126: 102: 75: 62: 56: 37: 31: 29: 23: 22: 15: 12: 11: 5: 1338: 1336: 1328: 1327: 1322: 1312: 1311: 1239: 1238: 1235: 1232: 1231: 1225: 1220: 1216: 1215: 1212: 1209: 1208: 1202: 1197: 1193: 1192: 1189: 1186: 1185: 1184: 1181: 1178: 1175: 1167: 1162: 1158: 1157: 1154: 1151: 1150: 1149: 1148:August 2, 2016 1146: 1138: 1133: 1129: 1128: 1125: 1122: 1121: 1120: 1117: 1109: 1104: 1098: 1097: 1094: 1091: 1088: 1051:TemplateWizard 1044: 1042: 1039: 1033: 1030: 1017: 1014: 994: 991: 990: 989: 986:|url= 982: 977: 974: 969: 966: 965: 964: 958: 950: 947: 946: 945: 939: 933: 927: 921: 913: 910: 901: 898: 897: 896: 885: 880: 877: 870: 865: 862: 848: 843: 840: 826: 821: 818: 804: 799: 797: 792: 782: 777: 767: 762: 752: 747: 740: 730: 725: 715: 710: 700: 695: 688: 678: 673: 663: 658: 648: 643: 640: 631: 626: 623: 613: 608: 606: 593:testcases page 588: 585: 584: 583: 558: 555: 552: 547: 544: 543: 542: 527: 526:title..title10 524: 516: 513: 490:|url= 486: 481: 478: 476: 473: 445:|url= 440: 437: 436: 435: 429: 424: 418: 413: 403:|url= 399: 389: 384: 374: 369: 359:|url= 355: 345: 340: 330: 325: 319:|url= 315: 306: 301: 292: 287: 281:|url= 271:site, use the 253:|url= 248: 245: 162: 161: 159: 158: 148: 137: 130: 118: 117: 110:external links 106: 94: 93: 66: 28: 27: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1337: 1326: 1323: 1321: 1318: 1317: 1315: 1305: 1301: 1293: 1288: 1282: 1278: 1273: 1266: 1262: 1256: 1252: 1248: 1247:documentation 1236: 1233: 1230: 1229: 1226: 1221: 1218: 1217: 1213: 1210: 1207: 1206: 1203: 1198: 1195: 1194: 1190: 1187: 1182: 1179: 1176: 1173: 1172: 1171: 1168: 1163: 1161:Archive title 1160: 1159: 1155: 1152: 1147: 1144: 1143: 1142: 1139: 1134: 1131: 1130: 1126: 1123: 1118: 1115: 1114: 1113: 1110: 1105: 1102: 1101: 1095: 1092: 1089: 1085: 1082: 1076: 1070: 1069: 1064: 1060: 1056: 1052: 1048: 1040: 1038: 1031: 1029: 1025: 1015: 1013: 999: 992: 983: 980: 979: 975: 973: 967: 962: 959: 956: 953: 952: 948: 943: 940: 937: 934: 931: 928: 925: 922: 919: 916: 915: 911: 909: 907: 899: 894: 890: 886: 881: 878: 875: 871: 866: 863: 860: 856: 852: 849: 844: 841: 838: 834: 830: 827: 822: 819: 816: 812: 808: 805: 800: 795: 793: 790: 789:archive.today 786: 783: 778: 775: 774:archive.today 771: 768: 763: 760: 759:archive.today 756: 753: 748: 745: 744:archive.today 741: 738: 734: 731: 726: 723: 719: 716: 711: 708: 704: 701: 696: 693: 689: 686: 682: 679: 674: 671: 667: 664: 659: 656: 652: 649: 644: 641: 639: 635: 632: 627: 624: 621: 617: 614: 609: 604: 602: 598: 597: 596: 594: 586: 581: 577: 559: 556: 553: 550: 549: 545: 528: 525: 517: 514: 487: 484: 483: 479: 474: 472: 439:Multiple URLs 438: 433: 430: 425: 422: 419: 414: 400: 397: 393: 390: 385: 382: 378: 375: 370: 356: 353: 349: 346: 341: 338: 334: 331: 326: 316: 314: 310: 307: 302: 300: 296: 293: 288: 278: 277: 276: 270: 269:web archiving 266: 246: 244: 242: 219: 217: 188: 186: 182: 178: 171: 156: 152: 149: 146: 142: 139: 138: 135: 131: 124: 123: 115: 111: 107: 100: 99: 91: 87: 83: 79: 73: 72: 67: 60: 59: 53: 49: 45: 41: 19: 1227: 1204: 1169: 1140: 1132:Archive date 1111: 1080: 1074: 1067: 1066: 1062: 1055:VisualEditor 1047:TemplateData 1045:This is the 1041:TemplateData 1035: 1026: 1019: 996: 971: 903: 590: 579: 576:Addlarchives 575: 515:date..date10 508:followed by 442: 255:and archive 250: 220: 189: 173:}} 169: 167:{{ 165: 86:user subpage 68: 1251:transcluded 1103:Archive URL 1090:Description 859:Page2 title 815:Page2 title 401:Usage with 357:Usage with 317:Usage with 279:Usage with 50:] [ 46:] [ 42:] [ 1314:Categories 1245:The above 851:Page title 807:Page title 616:Page title 485:url..url10 475:Parameters 392:Page title 377:Page title 348:Page title 333:Page title 241:WP:CITEVAR 170:Webarchive 82:/testcases 1302:subpage. 1287:testcases 1191:suggested 1156:suggested 1087:Parameter 998:This tool 580:Addlpages 227:with the 90:talk page 1237:optional 1214:optional 1196:Wikilink 1127:required 829:Archived 634:Archived 587:Examples 432:Archived 421:Archived 309:Archived 295:Archived 265:wikilink 78:/sandbox 1279:| 1272:sandbox 1265:history 1263:| 1180:Example 1174:Default 1145:Example 1116:Example 853:at the 809:at the 785:Example 770:Example 755:Example 737:WebCite 733:Example 722:WebCite 718:Example 707:WebCite 703:Example 692:WebCite 683:at the 681:Example 668:at the 666:Example 653:at the 651:Example 618:at the 396:WebCite 379:at the 352:WebCite 335:at the 313:WebCite 181:WebCite 155:sandbox 145:sandbox 48:history 1296:pages. 1234:String 1223:format 1211:String 1200:nolink 1188:String 1153:String 1124:String 1096:Status 988:field. 893:Page 2 889:Page 1 557:format 551:nolink 512:works. 235:, and 1253:from 1165:title 447:then 247:Usage 54:] 52:purge 38:[ 1300:/doc 1292:edit 1285:and 1281:diff 1277:edit 1261:edit 1136:date 1093:Type 1061:for 500:and 463:and 409:and 365:and 321:and 283:and 208:and 183:and 44:edit 40:view 1249:is 1107:url 908:): 787:at 772:at 757:at 735:at 720:at 705:at 570:or 471:. 467:.. 459:.. 451:.. 394:at 350:at 134:Lua 80:or 1316:: 1257:. 1053:, 1012:. 891:, 595:. 574:. 405:, 361:, 231:, 218:. 202:, 196:, 187:. 179:, 136:: 1306:. 1294:) 1290:( 1283:) 1275:( 1267:) 1259:( 895:. 876:. 861:. 839:. 817:. 798:) 607:) 157:) 153:( 147:) 143:( 116:. 74:. 20:)

Index

Template:Web archive
view
edit
history
purge
approximately 574,000 pages, or roughly 1% of all pages
/sandbox
/testcases
user subpage
talk page
external links
citation template
Lua
Module:Webarchive
sandbox
Module:Webarchive/data
sandbox
Webarchive
Wayback Machine
WebCite
all other web archiving services
this discussion
WP:CITEVAR
wikilink
web archiving
Archived
Wayback Machine
Archived
WebCite
Page title

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.

↑