Knowledge (XXG)

Template:Shortcut

Source đź“ť

32: 63: 168: 360:
template suffixed to the redirect. Name the page after your shortcut name. Include the namespace name in both the shortcut name and the redirect page name. For example, substitute your own shortcut name as the title of the page, and substitute the proper namespace, then add the REDIRECT as the
381:
Shortcuts are used mainly on user pages and talk pages in reference to the Knowledge (XXG), Help, and Portal namespaces. These templates inform about the shortcuts available to the page they are on. For example,
390:
and therefore, Knowledge (XXG):Shortcut renders a shortcut box listing WP:SHORT. It is a self-reference that is normally avoided in the main article namespace.
646:
This makes it easier to create a shortcut for a section of a page, because you can refer to the anchor when creating the shortcut redirect itself. Like this:
1375: 1360: 664:
Before July 26, 2010, when the anchor was inside the box, this caused the section header to scroll above the page window. Fixes for this issue included:
1348: 47: 408:
to determine which ones are most commonly used. Most linkboxes only show one shortcut. It is rare for three or more shortcuts to be commonly used.
1387: 1344: 233: 43: 258: 1330: 328: 1273:– The how-to guide and guideline about how and when to create shortcuts and shortcut boxes. A must-read for anyone handling shortcuts. 51: 1403: 1408: 1370: 223: 79: 709: 248: 1303: 760: 1355: 671:
Creating the redirect to the section header, not the shortcut; this would break if the section header was renamed
374:
Verify operation. Note that shortcut templates should display in all capitals, but operate without all capitals.
339:
This template should not be used for articles in the main namespace, because the graphic produces an unavoidable
218: 75: 705: 697: 1291: 354: 468:
is set), the box appears beneath, not beside, another floating element preceding it (infobox, thumbnail etc.).
243: 185: 83: 1315: 1285:– a way to overcome the otherwise permanent fact that section titles are the only way to link to a section 701: 212: 87: 397: 1383: 1338: 401: 228: 39: 1270: 630: 626: 581: 538: 509: 387: 298: 290: 144: 97: 1322: 253: 622: 383: 302:
family of templates is put into context here, but they each have their own documentation pages,
1334: 340: 174: 1279: 678: 310: 238: 181: 1397: 321: 361:
top-line on your redirect page, and the category to the third line of the redirect:
661:
This template is usually placed below the section header or at the top of a page.
621:
for each shortcut name parameter. For example, if a shortcut box with the shortcut
618: 688:
These fixes are no longer needed, but do not break the current implementation.
70: 633:
will take you to the position in the page where that shortcut box is placed.
574:{{Shortcut|WP:V|WP:VERIFY|msg=A message}} 17: 668:
Placing the shortcut above the section header; a bit confusing when editing
26: 641: 531:{{Shortcut|WP:V|WP:VERIFY|WP:SOURCE}} 320:
graphic to the rendered page, as well as providing an alternative name.
400:
guideline, list the most common and easily remembered redirects. Use
74:
and changes may be widely noticed. Test changes in the template's
405: 480:– set to "no", "n", "false" or "0" to suppress error categories. 162: 57: 810:
Whether to refer to the “shortcut/s” as “redirect/s” instead.
725:
This template displays one or more of a template's shortcuts.
293:
are available for linking to a page or a section of a page.
1003:
Whether to add pages to the error category if no alias or
474:– an unlinked message that goes after the shortcut links. 1364: 1052:
An unlinked message that goes after the shortcut links.
596: 589: 560: 553: 546: 517: 153: 133: 124: 115: 106: 753:
Whether this is a list of shortcuts for a Template.
324:
is a requirement to fulfill the shortcut mechanism.
477: 471: 461: 457: 453: 447: 443: 437: 433: 429: 684:in the section header that duplicated the shortcut 1309:– used for shortcuts/redirects to a template page 502:{{Shortcut|WP:SHORT}} 8: 394:Do not list every single redirect for a page 716:in articles based on its TemplateData. 1354:Editors can experiment in this template's 726: 196: 306:. A shortcut template is similar to the 1232: 1211: 1190: 1169: 1148: 1127: 1106: 1085: 1062: 1041: 992: 943: 893: 844: 799: 742: 728: 289:renders a box, informing editors which 199: 465: 617:These templates automatically add an 86:. Consider discussing changes on the 7: 1297:– for placement on the redirect page 710:See a monthly parameter usage report 279:and its sister templates. Template 1321:– for short URLs created with the 1025: 1014: 877: 866: 828: 817: 783: 772: 25: 631:Knowledge (XXG):Shortcut#WP:SHORT 425:takes the following parameters: 350:Create a redirect page with the 166: 61: 30: 651:#REDIRECT ] {{R from shortcut}} 327:In templates, it is put in the 316:template, but it adds a visual 71:approximately 20,000 pages 406:https://pageviews.wmcloud.org/ 269:This is the documentation for 1: 637: 450:, the box floats to the left. 347:Insert the shortcut template. 303: 1425: 1328: 700:for this template used by 579: 536: 507: 142: 95: 1388:Subpages of this template 729: 719:TemplateData for Shortcut 440:... – the shortcut links. 90:before implementing them. 82:subpages, or in your own 69:This template is used on 1271:Knowledge (XXG):Shortcut 627:Knowledge (XXG):Shortcut 388:Knowledge (XXG):Shortcut 322:Creating a redirect page 1243:Page/section shortcut 9 1222:Page/section shortcut 8 1201:Page/section shortcut 7 1180:Page/section shortcut 6 1159:Page/section shortcut 5 1138:Page/section shortcut 4 1117:Page/section shortcut 3 1096:Page/section shortcut 2 1073:Page/section shortcut 1 1382:Add categories to the 625:is placed on the page 35:Template documentation 1339:Template:Shortcut/doc 402:Special:WhatLinksHere 855:Whether to omit the 466:|float=left 173:This template uses 1404:Lua-based templates 368:{{R from shortcut}} 1409:Shortcut templates 329:documentation page 224:Template testcases 1323:WMF URL shortener 1304:Template shortcut 1254: 1253: 761:Template shortcut 714:Template:Shortcut 708:and other tools. 610: 609: 267: 266: 234:Template subpages 195: 194: 94: 93: 16:(Redirected from 1416: 1379: 1368: 1352: 1320: 1314: 1308: 1302: 1296: 1290: 1284: 1278: 1239: 1218: 1197: 1176: 1155: 1134: 1113: 1092: 1082: 1069: 1048: 1030: 1027: 1019: 1016: 1006: 999: 979: 974: 969: 962:Suggested values 957: 950: 924: 919: 912:Suggested values 907: 900: 882: 879: 871: 868: 858: 851: 833: 830: 822: 819: 806: 788: 785: 777: 774: 764: 749: 727: 683: 677: 652: 629:, then the link 599: 592: 576: 575: 563: 556: 549: 533: 532: 520: 504: 503: 489: 488: 479: 473: 467: 463: 459: 455: 449: 445: 439: 435: 431: 424: 418: 369: 359: 353: 315: 309: 288: 282: 278: 272: 249:Module testcases 219:Template sandbox 197: 170: 169: 163: 156: 136: 127: 118: 109: 65: 64: 58: 55: 36: 34: 33: 21: 1424: 1423: 1419: 1418: 1417: 1415: 1414: 1413: 1394: 1393: 1392: 1391: 1381: 1373: 1358: 1353: 1342: 1327: 1318: 1312: 1306: 1300: 1294: 1292:R from shortcut 1288: 1282: 1276: 1267: 1262: 1261: 1244: 1237: 1223: 1216: 1202: 1195: 1181: 1174: 1160: 1153: 1139: 1132: 1118: 1111: 1097: 1090: 1080: 1074: 1067: 1053: 1046: 1028: 1017: 1008: 1004: 997: 977: 972: 967: 959: 958:property value. 955: 948: 922: 917: 909: 908:property value. 905: 898: 880: 869: 860: 856: 849: 831: 820: 811: 804: 786: 775: 766: 758: 747: 722: 694: 681: 675: 659: 650: 615: 606: 605: 595: 588: 584: 573: 572: 567: 566: 559: 552: 545: 541: 530: 529: 524: 523: 516: 512: 501: 500: 487: 422: 416: 414: 367: 366: 364: 357: 355:R from shortcut 351: 337: 313: 307: 286: 280: 276: 270: 263: 259:Module subpages 191: 182:Module:Shortcut 167: 161: 160: 154:Policy shortcut 152: 147: 141: 140: 132: 123: 114: 105: 100: 62: 56: 37: 31: 29: 23: 22: 15: 12: 11: 5: 1422: 1420: 1412: 1411: 1406: 1396: 1395: 1326: 1325: 1310: 1298: 1286: 1274: 1266: 1263: 1252: 1251: 1248: 1245: 1242: 1240: 1235: 1231: 1230: 1227: 1224: 1221: 1219: 1214: 1210: 1209: 1206: 1203: 1200: 1198: 1193: 1189: 1188: 1185: 1182: 1179: 1177: 1172: 1168: 1167: 1164: 1161: 1158: 1156: 1151: 1147: 1146: 1143: 1140: 1137: 1135: 1130: 1126: 1125: 1122: 1119: 1116: 1114: 1109: 1105: 1104: 1101: 1098: 1095: 1093: 1088: 1084: 1083: 1078: 1075: 1072: 1070: 1065: 1061: 1060: 1057: 1054: 1051: 1049: 1044: 1040: 1039: 1036: 1033: 1032: 1031: 1023: 1020: 1012: 1002: 1000: 995: 991: 990: 987: 984: 983: 982: 981: 980: 975: 970: 963: 953: 951: 946: 942: 941: 938: 935: 934: 933: 930: 927: 926: 925: 920: 913: 903: 901: 896: 892: 891: 888: 885: 884: 883: 875: 872: 864: 859:URL parameter. 854: 852: 847: 843: 842: 839: 836: 835: 834: 826: 823: 815: 809: 807: 802: 798: 797: 794: 791: 790: 789: 781: 778: 770: 752: 750: 745: 741: 740: 737: 734: 731: 724: 723: 702:TemplateWizard 695: 693: 690: 686: 685: 672: 669: 658: 655: 654: 653: 614: 611: 608: 607: 604: 603: 600: 593: 585: 580: 577: 569: 568: 565: 564: 557: 550: 542: 537: 534: 526: 525: 522: 521: 513: 508: 505: 497: 496: 493: 486: 483: 482: 481: 475: 469: 451: 441: 413: 410: 376: 375: 372: 371: 370: 348: 341:self-reference 336: 333: 265: 264: 262: 261: 256: 251: 246: 244:Module sandbox 241: 236: 231: 226: 221: 216: 205: 202: 201: 193: 192: 190: 189: 178: 171: 159: 158: 148: 143: 139: 138: 129: 120: 111: 101: 96: 92: 91: 66: 28: 27: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1421: 1410: 1407: 1405: 1402: 1401: 1399: 1389: 1385: 1377: 1372: 1366: 1362: 1357: 1350: 1346: 1340: 1336: 1332: 1331:documentation 1324: 1317: 1316:Short URL box 1311: 1305: 1299: 1293: 1287: 1281: 1275: 1272: 1269: 1268: 1264: 1260: 1259: 1249: 1246: 1241: 1236: 1233: 1228: 1225: 1220: 1215: 1212: 1207: 1204: 1199: 1194: 1191: 1186: 1183: 1178: 1173: 1170: 1165: 1162: 1157: 1152: 1149: 1144: 1141: 1136: 1131: 1128: 1123: 1120: 1115: 1110: 1107: 1102: 1099: 1094: 1089: 1086: 1079: 1076: 1071: 1066: 1063: 1058: 1055: 1050: 1045: 1042: 1037: 1034: 1024: 1021: 1013: 1010: 1009: 1007:is specified. 1001: 996: 993: 988: 985: 976: 971: 966: 965: 964: 961: 960: 952: 947: 944: 939: 936: 931: 928: 921: 916: 915: 914: 911: 910: 902: 897: 894: 889: 886: 876: 873: 865: 862: 861: 853: 848: 845: 840: 837: 827: 824: 816: 813: 812: 808: 803: 800: 795: 792: 782: 779: 771: 768: 767: 765: 762: 757: 751: 746: 743: 738: 735: 732: 721: 720: 715: 711: 707: 703: 699: 691: 689: 680: 673: 670: 667: 666: 665: 662: 656: 649: 648: 647: 644: 643: 642:MOS:MATH#TONE 639: 634: 632: 628: 624: 620: 612: 601: 598: 594: 591: 587: 586: 583: 578: 571: 570: 562: 558: 555: 551: 548: 544: 543: 540: 535: 528: 527: 519: 515: 514: 511: 506: 499: 498: 494: 491: 490: 484: 476: 470: 452: 442: 428: 427: 426: 421: 411: 409: 407: 403: 399: 395: 391: 389: 386:redirects to 385: 380: 373: 363: 362: 356: 349: 346: 345: 344: 342: 334: 332: 330: 325: 323: 319: 312: 305: 301: 300: 294: 292: 285: 275: 260: 257: 255: 252: 250: 247: 245: 242: 240: 237: 235: 232: 230: 227: 225: 222: 220: 217: 214: 210: 207: 206: 204: 203: 200:Related pages 198: 187: 183: 180: 179: 176: 172: 165: 164: 155: 150: 149: 146: 135: 130: 126: 121: 117: 112: 108: 103: 102: 99: 89: 85: 81: 77: 73: 72: 67: 60: 59: 53: 49: 45: 41: 19: 1319:}} 1313:{{ 1307:}} 1301:{{ 1295:}} 1289:{{ 1283:}} 1277:{{ 1257: 1255: 755: 754: 718: 717: 713: 706:VisualEditor 698:TemplateData 696:This is the 692:TemplateData 687: 682:}} 676:{{ 663: 660: 645: 635: 616: 456:– if set to 446:– if set to 423:}} 419: 417:{{ 415: 398:WP:LINKBOXES 393: 392: 378: 377: 358:}} 352:{{ 338: 326: 317: 314:}} 308:{{ 297: 295: 287:}} 283: 281:{{ 277:}} 273: 271:{{ 268: 229:Template doc 208: 157:}} 151:{{ 137:}} 131:{{ 128:}} 122:{{ 119:}} 113:{{ 110:}} 104:{{ 84:user subpage 68: 18:Template:Shc 1335:transcluded 857:redirect=no 733:Description 674:Placing an 657:Positioning 396:. Per the 365:#REDIRECT ] 50:] [ 46:] [ 42:] [ 1398:Categories 1329:The above 1234:Shortcut 9 1213:Shortcut 8 1192:Shortcut 7 1171:Shortcut 6 1150:Shortcut 5 1129:Shortcut 4 1108:Shortcut 3 1087:Shortcut 2 1064:Shortcut 1 1022:Auto value 994:Categorize 874:Auto value 825:Auto value 780:Auto value 636:Examples: 412:Parameters 254:Module doc 80:/testcases 1386:subpage. 1371:testcases 1247:Page name 1226:Page name 1205:Page name 1184:Page name 1163:Page name 1142:Page name 1121:Page name 1100:Page name 1077:Page name 801:Redirect? 756:See also: 744:Template? 730:Parameter 638:#WP:SHORT 602:A message 597:WP:VERIFY 582:Shortcuts 561:WP:SOURCE 554:WP:VERIFY 539:Shortcuts 304:see below 291:shortcuts 134:Shorthand 98:Shortcuts 88:talk page 1265:See also 1256:Format: 1250:optional 1229:optional 1208:optional 1187:optional 1166:optional 1145:optional 1124:optional 1103:optional 1081:required 1059:optional 1038:optional 998:category 989:optional 954:The CSS 940:optional 904:The CSS 890:optional 841:optional 805:redirect 796:optional 748:template 623:WP:SHORT 518:WP:SHORT 510:Shortcut 485:Examples 478:category 420:shortcut 384:WP:SHORT 299:shortcut 284:shortcut 274:shortcut 209:Template 145:Redirect 76:/sandbox 1363:| 1356:sandbox 1349:history 1347:| 1056:Content 1043:Message 1035:Boolean 1011:Default 929:Default 887:Boolean 863:Default 846:Target? 838:Boolean 814:Default 793:Boolean 769:Default 613:Anchors 495:Result 186:sandbox 48:history 1380:pages. 1280:Anchor 1258:inline 986:String 937:String 850:target 739:Status 679:anchor 640:, and 619:anchor 460:, (or 311:anchor 239:Module 1337:from 1026:False 973:right 956:clear 949:clear 945:Clear 932:right 923:right 906:float 899:float 895:Float 867:False 818:False 773:False 492:Code 458:right 454:clear 444:float 379:Notes 335:Usage 125:Short 54:] 52:purge 38:[ 1384:/doc 1376:edit 1369:and 1365:diff 1361:edit 1345:edit 1015:True 978:both 968:left 918:left 878:True 829:True 784:True 736:Type 712:for 590:WP:V 547:WP:V 462:left 448:left 404:and 296:The 213:talk 44:edit 40:view 1333:is 1047:msg 1005:msg 472:msg 464:if 318:box 175:Lua 116:Shc 78:or 1400:: 1341:. 763:}} 759:{{ 704:, 436:, 432:, 343:. 331:. 177:: 107:Sh 1390:. 1378:) 1374:( 1367:) 1359:( 1351:) 1343:( 1238:9 1217:8 1196:7 1175:6 1154:5 1133:4 1112:3 1091:2 1068:1 1029:0 1018:1 881:1 870:0 832:1 821:0 787:1 776:0 438:3 434:2 430:1 215:) 211:( 188:) 184:( 20:)

Index

Template:Shc
view
edit
history
purge
approximately 20,000 pages
/sandbox
/testcases
user subpage
talk page
Shortcuts
Sh
Shc
Short
Shorthand
Redirect
Policy shortcut
Lua
Module:Shortcut
sandbox
Template
talk
Template sandbox
Template testcases
Template doc
Template subpages
Module
Module sandbox
Module testcases
Module doc

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

↑