Knowledge (XXG)

Template:Webarchive

Source đź“ť

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

Index

view
edit
history
purge
approximately 572,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
Wayback Machine

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

↑