Knowledge

Template:Webarchive/sandbox

Source đź“ť

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

Index

Template:Webarchive
template sandbox
Template:Webarchive
diff
test cases
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

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

↑