Knowledge

Template talk:Catalog lookup link

Source πŸ“

689:
cs1|2 stripmarker errors occur because (usually) they mark places in wikitext where MediaWiki will insert something, a reference, a gallery, a poem, or in this case, a reference to a stylesheet. Most of these things do not belong in cs1|2 template parameter values, especially those parameter values
1174:
I wanted to emulate the behaviour of some pre-existing templates. Also, it looked desirable from a general perspective to let the template be neutral without arguments in order to be as flexible as possible for future
606:'"`UNIQ--templatestyles-00000018-QINU`"']&nbsp;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32; and 601:'"`UNIQ--templatestyles-00000016-QINU`"']&nbsp;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32;&#32;/&#32; and 383:{{tlx|Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Knowledge|article-name=WP|article-postfix=:|link-prefix=//en.wikipedia.org/|link-postfix=#hash|item-prefix=<|item-postfix=: --> 700:
stripmarkers (because the rendered equations are allowed in titles and because it used to be that the source could be gotten from MediaWiki though no longer). There is discussion at
1022:
is not set but the styles are always emitted in the template and moving them to the module allows one to have them be part of the result only when there is a (non-empty) result. β€”
596:
I have not tested any of this with real identifiers, but the contrived examples appear to work. Here is the last example showing the raw output from the template and the module:
1287:) and they're not really of the library/media genre that Cll seems catered toward. Is this still what I should use as a base, or is there a better base template to use? 1178:
I don't, however, think, this behaviour is currently required by any of the existing applications, so it could be changed if that would be advantageous elsewhere.
1070:). If there is a benefit to having this template render an empty string, it isn't obvious (to me) nor is it documented. Were it up to me, I would require 509:{{tlx|Catalog lookup link|1|2|3|4|5|6|7|8|9|list-leadout=and|list-separator= / |article-link=Knowledge|article-name=WP|link-prefix=//en.wikipedia.org/}} 40:. These examples are taken from the template's documentation. In each of the example pairs below, the lua implementation is the second of the pair: 675: 473:{{tlx|Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Knowledge|article-name=WP|article-postfix=:|item-prefix=<|item-postfix=: --> 1334: 690:
that will be made part of the template's COinS metadata so cs1|2 emits an error message. Heretofore, cs1|2 has only allowed
1215:
I was trying to create a new wrapper template when I noticed that the url encoding the module does kills compatibility with
1327: 1310: 1511: 1258: 1165: 1090: 733: 712: 642: 616: 1288: 701: 631: 37: 45:{{Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Knowledge|article-name=WP|link-prefix=//en.wikipedia.org/}} 634:, all have been silent. Without objection then, I shall replace the current template with the sandbox version. 1507: 1254: 1161: 1101: 1086: 744: 729: 708: 638: 612: 1186: 654: 1229:). If url encoding could be turned off for that use case, it would allow more catalogues to be added. – 132:{{tlx|Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Knowledge|link-prefix=//en.wikipedia.org/}} 1320: 1296: 942: 722: 1362: 1351: 17: 1182: 1145:, you wrote the original, why did you choose to have the template render an empty string when 1142: 219:{{tlx|Catalog lookup link|1|2|3|4|5|6|7|8|9|article-name=WP|link-prefix=//en.wikipedia.org/}} 1489: 1123: 1515: 1366: 1300: 1262: 1244: 1190: 1169: 1131: 1094: 1031: 1027: 737: 716: 646: 620: 1136:
Thanks. I thought that perhaps you knew the reason for the original template's behavior.
1292: 1281: 1337:
are freely accessible (such as ISBN), while others are behind a subscription paywall (
1358: 1341: 1236: 33: 1223: 1277:
field? I'm working on a bunch of EU legal/government document id templates (like
1119: 1061: 627: 1250:
Sigh ... An example? Always good to show an example when something is broken.
1273:
Is this template required as a base for template compatibility with the CS1|2
1023: 302:{{tlx|Catalog lookup link|1|2|3|4|5|6|7|8|9|link-prefix=//en.wikipedia.org/}} 1474: 553: 513: 492: 478: 429: 388: 176: 136: 89: 49: 651:
Done and undone. When this template is wrapped by an identifier template,
1231: 659:
for example, and that wrapper template is included in a cs1|2 template's
1082:
and have the module emit an error message when that parameter is absent.
725:
suite was recently updated and now ignores TemplateStyles stripmarkers.
32:
The notion of converting this template to a lua module was floated at
695:
stripmarkers (because the content can be gotten from MediaWiki) and
945:(which can use the sandbox styles when the sandbox module is used): 679: 941:
This is more inline with the following code from near the end of
702:
Help talk:Citation Style 1#TemplateStyles (any?) templates in CS1
1118:
were missing, and I was trying to match that behavior. --
1216: 1111: 1066: 1157:
is missing? Is that behavior appropriate? Necessary?
1375: 1146: 1071: 1049: 1037: 1017: 749:Would it not be better to have the module emit the 605: 600: 1483: 1477: 1036:Perhaps. But there is a bigger question. Why is 1496: 1490: 1484: 1478: 588: 584: 580: 576: 572: 568: 564: 560: 556: 548: 544: 540: 536: 532: 528: 524: 520: 516: 465: 461: 457: 453: 449: 445: 441: 437: 433: 424: 420: 416: 412: 408: 404: 400: 396: 392: 375: 371: 367: 363: 359: 355: 351: 347: 343: 338: 334: 330: 326: 322: 318: 314: 310: 306: 294: 290: 286: 282: 278: 274: 270: 266: 262: 256: 252: 248: 244: 240: 236: 232: 228: 224: 211: 207: 203: 199: 195: 191: 187: 183: 179: 171: 167: 163: 159: 155: 151: 147: 143: 139: 124: 120: 116: 112: 108: 104: 100: 96: 92: 84: 80: 76: 72: 68: 64: 60: 56: 52: 753:tag (instead of the template) with code like: 8: 28:lua support for template:catalog lookup link 1495: 678: 1274: 660: 36:. I have hacked a first version of a 1016:Notice the module emits nothing when 7: 1291:and they said to ask here. Thanks. 696: 691: 664: 25: 1114:would render an empty string if 805:'Module:Citation/CS1/styles.css' 667:stripmarker and shows an error: 1112:non-lua version of the template 1048:optional? The test that makes 18:Module talk:Catalog lookup link 1289:I asked this first at CS1 Help 1211:Template broke for ark numbers 1110:optional because the original 1: 1306:Add URL Access indicators to 1060:optional was added by Editor 663:parameter, cs1|2 detects the 1269:Requirements for CS id field 738:13:54, 3 October 2018 (UTC) 717:15:39, 18 August 2018 (UTC) 647:15:30, 13 August 2018 (UTC) 1532: 1516:11:48, 20 April 2024 (UTC) 1367:10:42, 20 April 2024 (UTC) 1263:22:03, 26 March 2021 (UTC) 1245:21:37, 26 March 2021 (UTC) 1427:https://en.wikipedia.org/ 1191:09:03, 18 July 2020 (UTC) 1170:17:13, 17 July 2020 (UTC) 1132:16:57, 17 July 2020 (UTC) 1095:10:49, 17 July 2020 (UTC) 1032:06:42, 17 July 2020 (UTC) 665:<templatestyles /: --> 621:15:02, 17 July 2018 (UTC) 1335:Catalog lookup templates 1301:23:38, 6 July 2022 (UTC) 946: 754: 630:contributions to the 1380:Catalog lookup link 1328:Catalog lookup link 1311:Catalog lookup link 943:Module:Citation/CS1 723:Module:Citation/CS1 693:...</nowiki: --> 1333:? A number of the 626:Except for Editor 38:lua implementation 1508:Trappist the monk 1255:Trappist the monk 1162:Trappist the monk 1102:Trappist the monk 1087:Trappist the monk 745:Trappist the monk 730:Trappist the monk 709:Trappist the monk 698:...</math: --> 639:Trappist the monk 613:Trappist the monk 16:(Redirected from 1523: 1499: 1493: 1487: 1481: 1471: 1470: 1466: 1463: 1460: 1456: 1453: 1450: 1446: 1443: 1440: 1436: 1433: 1430: 1426: 1423: 1420: 1416: 1413: 1410: 1406: 1403: 1400: 1396: 1392: 1388: 1384: 1381: 1378: 1372:Already exists: 1356: 1350: 1346: 1340: 1332: 1326: 1315: 1309: 1286: 1280: 1276: 1243: 1234: 1228: 1222: 1156: 1155: 1152: 1149: 1128: 1117: 1109: 1105: 1081: 1080: 1077: 1074: 1069: 1059: 1058: 1055: 1052: 1047: 1046: 1043: 1040: 1021: 1020: 1013: 1010: 1007: 1004: 1001: 998: 995: 992: 989: 988:'templatestyles' 986: 983: 980: 977: 974: 971: 968: 965: 962: 959: 956: 953: 950: 938: 935: 932: 929: 926: 923: 920: 917: 914: 911: 908: 905: 902: 899: 896: 893: 890: 887: 884: 881: 878: 875: 872: 869: 866: 863: 860: 857: 854: 851: 848: 845: 842: 839: 836: 833: 830: 827: 824: 821: 818: 815: 812: 809: 806: 803: 800: 797: 794: 791: 788: 785: 784:'templatestyles' 782: 779: 776: 773: 770: 767: 764: 761: 758: 752: 748: 699: 694: 684: 682: 666: 662: 658: 607: 602: 510: 475: 385: 303: 220: 133: 46: 21: 1531: 1530: 1526: 1525: 1524: 1522: 1521: 1520: 1468: 1464: 1461: 1458: 1454: 1451: 1448: 1444: 1441: 1438: 1434: 1431: 1428: 1424: 1421: 1418: 1414: 1411: 1408: 1404: 1401: 1398: 1394: 1390: 1386: 1382: 1379: 1376: 1354: 1348: 1344: 1338: 1330: 1324: 1317: 1313: 1307: 1284: 1278: 1271: 1232: 1230: 1226: 1220: 1213: 1153: 1150: 1147: 1124: 1115: 1107: 1099: 1078: 1075: 1072: 1065: 1056: 1053: 1050: 1044: 1041: 1038: 1018: 1015: 1014: 1011: 1008: 1005: 1002: 999: 996: 993: 990: 987: 984: 981: 978: 975: 972: 969: 966: 963: 960: 957: 954: 951: 948: 940: 939: 936: 933: 930: 927: 924: 921: 918: 915: 912: 909: 906: 903: 900: 897: 894: 891: 888: 885: 882: 879: 876: 873: 870: 867: 864: 861: 858: 855: 852: 849: 846: 843: 840: 837: 834: 831: 828: 825: 822: 819: 816: 813: 810: 807: 804: 801: 798: 795: 792: 789: 786: 783: 780: 777: 774: 771: 768: 765: 762: 759: 756: 750: 742: 692:<nowiki: --> 670: 652: 508: 472: 382: 301: 218: 131: 44: 30: 23: 22: 15: 12: 11: 5: 1529: 1527: 1519: 1518: 1504: 1503: 1502: 1501: 1500: 1323:indicators to 1316: 1304: 1270: 1267: 1266: 1265: 1251: 1212: 1209: 1208: 1207: 1206: 1205: 1204: 1203: 1202: 1201: 1200: 1199: 1198: 1197: 1196: 1195: 1194: 1193: 1179: 1176: 1158: 1139: 1137: 1126: 1083: 947: 931:list_separator 907:templatestyles 880:list_separator 844:templatestyles 760:templatestyles 755: 751:templatestyles 726: 705: 687: 686: 685: 635: 609: 608: 603: 594: 593: 592: 591: 551: 506: 505: 504: 490: 470: 469: 468: 427: 380: 379: 378: 341: 299: 298: 297: 259: 216: 215: 214: 174: 129: 128: 127: 87: 29: 26: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1528: 1517: 1513: 1509: 1505: 1498: 1492: 1486: 1480: 1476: 1473: 1472: 1447:registration 1437:subscription 1374: 1373: 1371: 1370: 1369: 1368: 1364: 1360: 1353: 1343: 1336: 1329: 1322: 1319:Could we add 1312: 1305: 1303: 1302: 1298: 1294: 1290: 1283: 1268: 1264: 1260: 1256: 1252: 1249: 1248: 1247: 1246: 1242: 1240: 1235: 1225: 1218: 1210: 1192: 1188: 1184: 1180: 1177: 1173: 1172: 1171: 1167: 1163: 1159: 1144: 1143:β€ŽMatthiaspaul 1140: 1138: 1135: 1134: 1133: 1129: 1121: 1113: 1103: 1098: 1097: 1096: 1092: 1088: 1084: 1068: 1063: 1035: 1034: 1033: 1029: 1025: 944: 746: 741: 740: 739: 735: 731: 727: 724: 721:Redone. The 720: 719: 718: 714: 710: 706: 703: 697:<math: --> 688: 681: 677: 673: 669: 668: 656: 650: 649: 648: 644: 640: 636: 633: 629: 625: 624: 623: 622: 618: 614: 604: 599: 598: 597: 590: 586: 582: 578: 574: 570: 566: 562: 558: 555: 552: 550: 546: 542: 538: 534: 530: 526: 522: 518: 515: 512: 511: 507: 494: 491: 480: 477: 476: 471: 467: 463: 459: 455: 451: 447: 443: 439: 435: 431: 428: 426: 422: 418: 414: 410: 406: 402: 398: 394: 390: 387: 386: 381: 377: 373: 369: 365: 361: 357: 353: 349: 345: 342: 340: 336: 332: 328: 324: 320: 316: 312: 308: 305: 304: 300: 296: 292: 288: 284: 280: 276: 272: 268: 264: 260: 258: 254: 250: 246: 242: 238: 234: 230: 226: 222: 221: 217: 213: 209: 205: 201: 197: 193: 189: 185: 181: 178: 175: 173: 169: 165: 161: 157: 153: 149: 145: 141: 138: 135: 134: 130: 126: 122: 118: 114: 110: 106: 102: 98: 94: 91: 88: 86: 82: 78: 74: 70: 66: 62: 58: 54: 51: 48: 47: 43: 42: 41: 39: 35: 27: 19: 1412:article-name 1402:article-link 1321:WP:URLACCESS 1318: 1272: 1238: 1214: 1183:Matthiaspaul 982:extensionTag 952:table.concat 919:table.concat 901:table.concat 886:list_leadout 838:table.concat 772:extensionTag 671: 655:ERIC/sandbox 610: 595: 503:, <9: --> 502:, <8: --> 501:, <7: --> 500:, <6: --> 499:, <5: --> 498:, <4: --> 497:, <3: --> 496:, <2: --> 495::Β <1: --> 489:, <9: --> 488:, <8: --> 487:, <7: --> 486:, <6: --> 485:, <5: --> 484:, <4: --> 483:, <3: --> 482:, <2: --> 481::Β <1: --> 31: 1462:url-access4 1452:url-access3 1442:url-access2 1432:url-access1 1422:link-prefix 1217:ark numbers 34:WP:VPT#ERIC 868:listToText 466:<9: --> 462:<8: --> 458:<7: --> 454:<6: --> 450:<5: --> 446:<4: --> 442:<3: --> 438:<2: --> 434:<1: --> 425:<9: --> 421:<8: --> 417:<7: --> 413:<6: --> 409:<5: --> 405:<4: --> 401:<3: --> 397:<2: --> 393:<1: --> 1407:Knowledge 1357:, etc.). 1352:EBSCOhost 1293:SamuelRiv 1067:this edit 958:citation0 177:Knowledge 137:Knowledge 1457:limited 1359:GobsPint 895:out_text 832:out_text 680:ED046562 628:Ahecht's 1116:{{{1}}} 1108:{{{1}}} 1106:I made 1219:(like 1120:Ahecht 1062:Ahecht 1009:styles 964:config 949:return 925:result 874:result 817:is_set 632:module 1282:CELEX 1175:uses. 1024:Uzume 1012:})}); 976:frame 913:label 850:label 766:frame 757:local 672:Title 1512:talk 1467:free 1363:talk 1342:Gale 1297:talk 1275:|id= 1259:talk 1239:Talk 1187:talk 1166:talk 1141:So, 1127:PAGE 1125:TALK 1091:talk 1028:talk 1019:args 970:args 934:)}); 892:else 889:)}); 862:text 829:then 823:args 790:args 778:name 734:talk 713:talk 676:ERIC 661:|id= 643:talk 617:talk 587:and 547:and 1233:MJL 1224:BNF 1154:}}} 1148:{{{ 1079:}}} 1073:{{{ 1064:at 1057:}}} 1051:{{{ 1045:}}} 1039:{{{ 1003:src 937:end 799:src 261:WP 223:WP 1514:) 1494:, 1488:, 1482:, 1475:WP 1469:}} 1417:WP 1377:{{ 1365:) 1355:}} 1349:{{ 1347:, 1345:}} 1339:{{ 1331:}} 1325:{{ 1314:}} 1308:{{ 1299:) 1285:}} 1279:{{ 1261:) 1227:}} 1221:{{ 1189:) 1181:-- 1168:) 1130:) 1093:) 1030:) 994:'' 973:), 955:({ 904:({ 856:mw 841:({ 814:if 736:) 715:) 674:. 657:}} 653:{{ 645:) 619:) 583:/ 579:/ 575:/ 571:/ 567:/ 563:/ 559:/ 554:WP 543:/ 539:/ 535:/ 531:/ 527:/ 523:/ 519:/ 514:WP 493:WP 479:WP 474:}} 464:, 460:, 456:, 452:, 448:, 444:, 440:, 436:, 432:: 430:WP 423:, 419:, 415:, 411:, 407:, 403:, 399:, 395:, 391:: 389:WP 384:}} 374:, 370:, 366:, 362:, 358:, 354:, 350:, 346:, 337:, 333:, 329:, 325:, 321:, 317:, 313:, 309:, 293:, 289:, 285:, 281:, 277:, 273:, 269:, 265:, 255:, 251:, 247:, 243:, 239:, 235:, 231:, 227:, 210:, 206:, 202:, 198:, 194:, 190:, 186:, 182:, 170:, 166:, 162:, 158:, 154:, 150:, 146:, 142:, 123:, 119:, 115:, 111:, 107:, 103:, 99:, 95:, 90:WP 83:, 79:, 75:, 71:, 67:, 63:, 59:, 55:, 50:WP 1510:( 1506:β€” 1497:4 1491:3 1485:2 1479:1 1465:= 1459:| 1455:= 1449:| 1445:= 1439:| 1435:= 1429:| 1425:= 1419:| 1415:= 1409:| 1405:= 1399:| 1397:4 1395:| 1393:3 1391:| 1389:2 1387:| 1385:1 1383:| 1361:( 1295:( 1257:( 1253:β€” 1241:‐ 1237:‐ 1185:( 1164:( 1160:β€” 1151:1 1122:( 1104:: 1100:@ 1089:( 1085:β€” 1076:1 1054:1 1042:1 1026:( 1006:= 1000:{ 997:, 991:, 985:( 979:: 967:, 961:( 928:, 922:( 916:, 910:, 898:= 883:, 877:, 871:( 865:. 859:. 853:, 847:, 835:= 826:) 820:( 811:} 808:} 802:= 796:{ 793:= 787:, 781:= 775:{ 769:: 763:= 747:: 743:@ 732:( 728:β€” 711:( 707:β€” 704:. 683:. 641:( 637:β€” 615:( 611:β€” 589:9 585:8 581:7 577:6 573:5 569:4 565:3 561:2 557:1 549:9 545:8 541:7 537:6 533:5 529:4 525:3 521:2 517:1 376:9 372:8 368:7 364:6 360:5 356:4 352:3 348:2 344:1 339:9 335:8 331:7 327:6 323:5 319:4 315:3 311:2 307:1 295:9 291:8 287:7 283:6 279:5 275:4 271:3 267:2 263:1 257:9 253:8 249:7 245:6 241:5 237:4 233:3 229:2 225:1 212:9 208:8 204:7 200:6 196:5 192:4 188:3 184:2 180:1 172:9 168:8 164:7 160:6 156:5 152:4 148:3 144:2 140:1 125:9 121:8 117:7 113:6 109:5 105:4 101:3 97:2 93:1 85:9 81:8 77:7 73:6 69:5 65:4 61:3 57:2 53:1 20:)

Index

Module talk:Catalog lookup link
WP:VPT#ERIC
lua implementation
WP
1
2
3
4
5
6
7
8
9
WP
1
2
3
4
5
6
7
8
9
Knowledge
1
2
3
4
5
6

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

↑