Knowledge (XXG)

Template:Shortcut/sandbox

Source đź“ť

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

Index

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

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

↑