Knowledge

Template:Commons category/doc

Source 📝

388: 66: 31: 431: 418: 405: 483:. Pages can be removed from the tracking categories by correcting the local link; removing misplaced template uses; fixing the sitelinks on Wikidata; or expanding the category system on Commons. Ideally there should be one Commons category link per article, and it should be easy for readers to identify the related content on Commons. Some suggested approaches are: 135:
will attempt to fix or remove links to non-existent categories. In articles, this template should be placed at the top of the last section on the page so that it floats to the right of that section. A warning will appear if the Commons link is not on Wikidata.
343:" prefix. If this first parameter is used, then the template will display the Commons category name, which may be confusing to readers. This text can be overridden by the second parameter, where the Knowledge page name would typically be used. 335:(1 & 2) are optional, and are intended for cases where the Commons category name is different from the Knowledge page name. The first parameter is the name of the corresponding category on the Wikimedia Commons, 606:
This template creates a small box containing a link to a category on Commons. If no value is provided the Commons category value from Wikidata is used, and if none was provided there then the page name is
470:
In categories, this template should be grouped with other templates at the beginning of the category introduction. This avoids unnecessary white space as any text is floated around the template boxes.
646:
The name of the Commons category this template will link to. If no value is provided the Commons category value from Wikidata is used, and if none was provided there then the page name is used.
552: 391:
If using a large, graphical template produces odd layout problems, like the excessive white space shown on the right of this screenshot, then switch to a different
479:
This template compares locally-defined values against the interwiki links to Commons stored on Wikidata. The discrepancies are highlighted through the addition of
558: 564: 455: 539: 102: 533: 125:
repository that corresponds to the article or category. If the Commons category name is misspelled or missing, the link will still appear "
129:" even though the link will fail. Check the existence of the category on Commons as well as the spelling of names carefully. That said, 669:
The text that the link will display to the user. If no value is provided it will default to category name or page name, in that order.
878: 692:
When set to 'left', the template will be positioned on the left side of the page. Otherwise it will default to the right side.
73: 589: 958: 1021: 981: 109: 84: 970: 1002: 80: 922: 361: 357: 38: 934: 862: 464: 92: 496:
Or if there aren't any images connected to the article on Commons, could the Commons category link be removed?
1014: 946: 375:, that moves the box to the left side, instead of the default right side. More information may be found at 581: 1144: 1123: 1186: 1165: 1102: 851: 1081: 1039: 910: 785: 774: 593: 311: 294: 277: 256: 228: 204: 187: 117: 46: 17: 91:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 1060: 840: 52: 898: 993: 585: 577: 88: 158: 1134: 1113: 818: 79:
To avoid major disruption and server load, any changes should be tested in the template's
8: 1176: 1155: 1092: 829: 1071: 1029: 504:
Could they be replaced by a single Commons category that has the rest as subcategories?
387: 149: 140: 41: 1050: 376: 167: 122: 886: 425:
Do not place this template in a section containing columns without floating left.
126: 451:
of the last section on the page so that it floats to the right of that section.
763: 353:{{Commons category|Ursus maritimus|Polar bears}} 807: 412:
Do not place this template in a section all by itself without floating left.
490:
Is there a more specific Commons category that could be linked to instead?
796: 270:
Floats link-box to the left side, as option to align box to left-margin
347: 438:
Do not indent this template with colon (:) or a bullet (*) markup.
614: 101:"Template:CC" redirects here. For Creative Commons templates, see 493:
If not, could it be created with images connected to the article?
74:
approximately 868,000 pages, or roughly 1% of all pages
55:
and other content that is not part of the original template page.
514:
The Commons category links back to the wrong Knowledge article:
518:
Can you move the sitelink to the Wikidata item for the article?
500:
There are links to multiple Commons categories in the article:
197:
Fetches the Commons sitelink from Wikidata (where available)
553:
Category:Commons category link is defined as the pagename
467:, this template is usually placed at the top of the page. 456:
Knowledge:Wikimedia sister projects#Where to place links
879:
Knowledge:Manual of Style/Layout § External links
486:
The link is to a more general topic than the article:
287:
Stops the text of the Commons category from wrapping
131: 715:
Stops the text of the Commons category from wrapping
447:In articles, this template should be placed at the 952:—shows Commons box with both gallery and category 559:Category:Commons category link is locally defined 510:Are they all necessary, or could they be removed? 121:}} links to a "Category:" name in the 987:—specialized soft redirect template for Commons 565:Category:Commons category link is the pagename 540:Category:Commons category link is on Wikidata 507:Do all of the Commons categories still exist? 103:Category:Creative Commons copyright templates 534:Category:Commons category link from Wikidata 596:in articles based on its TemplateData. 480: 964:—shows Commons gallery and category inline 474: 999:—to link to a gallery hosted on Knowledge 546: 386: 304:Displays the first letter as lower-case 738:Displays the first letter as lower-case 14: 522: 458:for more information and alternatives. 590:See a monthly parameter usage report 527: 321:Turn off italics for displayed text 60: 25: 1020:—to link all Wikinews, Wikisource, 23: 51:It may contain usage information, 24: 1202: 1003:mw:Manual:Pywikibot/commonscat.py 746: 723: 700: 677: 654: 599:TemplateData for Commons category 429: 416: 403: 358:Commons:Category:Ursus maritimus 246:Puts link-box showing the title 64: 29: 615: 571: 218:Puts link-box connecting title 928:—shows Commons category inline 13: 1: 940:—to list up to six categories 904:—shows Commons gallery inline 754: 7: 959:Commons and category inline 916:—shows Commons category box 871: 382: 10: 1207: 982:Wikimedia Commons redirect 580:for this template used by 138: 107: 100: 971:Copy to Wikimedia Commons 620: 594:Template:Commons category 110:Wikimedia sister projects 108:This template is part of 95:before implementing them. 87:subpages, or in your own 72:This template is used on 47:Template:Commons category 18:Template:Commons category 177: 923:Commons category-inline 475:Resolving discrepancies 373:|position=left 935:Commons category multi 547:Maintenance categories 481:maintenance categories 396: 863:Wikimedia commons cat 390: 263:|position=left}} 1015:Sister project links 947:Commons and category 465:disambiguation pages 346:For example, on the 752: 617: 613:Template parameters 523:Tracking categories 371:accepts one value, 369:|position= 356:produces a link to 327:The two parameters 297:|lcfirst=yes}} 1145:Wikiversity inline 1124:Wikispecies-inline 892:—shows Commons box 611: 609: 603: 397: 280:|nowrap=yes}} 44: 1187:Wiktionary-inline 1166:Wikivoyage inline 1103:Wikisource-inline 852:Commonsimages cat 751: 750: 633: 604: 588:and other tools. 528:Normal categories 377:Template:Side box 325: 324: 314:|italic=no}} 123:Wikimedia Commons 99: 98: 59: 58: 36: 1198: 1191: 1185: 1181: 1175: 1170: 1164: 1160: 1154: 1149: 1143: 1139: 1133: 1128: 1122: 1118: 1112: 1107: 1101: 1097: 1091: 1086: 1082:Wikiquote-inline 1080: 1076: 1070: 1065: 1059: 1055: 1049: 1044: 1040:Wikibooks inline 1038: 1034: 1028: 1019: 1013: 998: 992: 986: 980: 975: 969: 963: 957: 951: 945: 939: 933: 927: 921: 915: 911:Commons category 909: 903: 897: 891: 885: 867: 861: 856: 850: 845: 839: 834: 828: 823: 817: 812: 806: 801: 795: 790: 786:Category Commons 784: 779: 775:Category commons 773: 768: 762: 734: 711: 688: 665: 642: 634: 618: 610: 436: 433: 432: 423: 420: 419: 410: 407: 406: 374: 370: 355: 354: 342: 315: 312:Commons category 298: 295:Commons category 281: 278:Commons category 264: 257:Commons category 240: 229:Commons category 212: 205:Commons category 191: 188:Commons category 182: 181: 170: 161: 152: 134: 118:Commons category 68: 67: 61: 33: 32: 26: 1206: 1205: 1201: 1200: 1199: 1197: 1196: 1195: 1194: 1189: 1183: 1179: 1173: 1168: 1162: 1158: 1152: 1147: 1141: 1137: 1131: 1126: 1120: 1116: 1110: 1105: 1099: 1095: 1089: 1084: 1078: 1074: 1068: 1063: 1061:Wikinews inline 1057: 1053: 1047: 1042: 1036: 1032: 1026: 1017: 1011: 1007: 996: 990: 984: 978: 973: 967: 961: 955: 949: 943: 937: 931: 925: 919: 913: 907: 901: 895: 889: 883: 874: 865: 859: 854: 848: 843: 841:Commonscategory 837: 832: 826: 821: 815: 810: 804: 799: 793: 788: 782: 777: 771: 766: 760: 757: 732: 709: 686: 663: 640: 602: 574: 549: 542: (626,190) 536: (410,651) 530: 525: 477: 434: 430: 421: 417: 408: 404: 393:sister template 385: 372: 368: 352: 351: 340: 309: 292: 275: 254: 226: 202: 185: 180: 175: 174: 166: 157: 148: 143: 130: 113: 106: 78: 65: 50: 30: 22: 21: 20: 12: 11: 5: 1204: 1193: 1192: 1171: 1150: 1129: 1108: 1087: 1066: 1045: 1024: 1008: 1006: 1005: 1000: 988: 976: 965: 953: 941: 929: 917: 905: 899:Commons-inline 893: 881: 875: 873: 870: 869: 868: 857: 846: 835: 824: 813: 802: 791: 780: 769: 756: 753: 749: 748: 745: 742: 741: 735: 730: 726: 725: 722: 719: 718: 712: 707: 703: 702: 699: 696: 695: 689: 684: 680: 679: 676: 673: 672: 666: 661: 660:Displayed text 657: 656: 653: 650: 649: 643: 638: 632: 631: 628: 625: 622: 582:TemplateWizard 575: 573: 570: 569: 568: 562: 561: (19,254) 556: 548: 545: 544: 543: 537: 529: 526: 524: 521: 520: 519: 512: 511: 508: 505: 498: 497: 494: 491: 476: 473: 472: 471: 468: 461: 460: 459: 443:Specifically: 441: 440: 427: 414: 384: 381: 367:The parameter 360:displayed as " 323: 322: 319: 316: 306: 305: 302: 299: 289: 288: 285: 282: 272: 271: 268: 265: 251: 250: 244: 241: 223: 222: 216: 213: 199: 198: 195: 192: 179: 176: 173: 172: 163: 154: 144: 139: 97: 96: 69: 57: 56: 34: 15: 9: 6: 4: 3: 2: 1203: 1188: 1178: 1172: 1167: 1157: 1151: 1146: 1136: 1130: 1125: 1115: 1109: 1104: 1094: 1088: 1083: 1073: 1067: 1062: 1052: 1046: 1041: 1031: 1025: 1023: 1016: 1010: 1009: 1004: 1001: 995: 994:Wiki category 989: 983: 977: 972: 966: 960: 954: 948: 942: 936: 930: 924: 918: 912: 906: 900: 894: 888: 882: 880: 877: 876: 864: 858: 853: 847: 842: 836: 831: 825: 820: 814: 809: 803: 798: 792: 787: 781: 776: 770: 765: 759: 758: 743: 740: 739: 736: 731: 728: 727: 720: 717: 716: 713: 708: 705: 704: 697: 694: 693: 690: 685: 682: 681: 674: 671: 670: 667: 662: 659: 658: 651: 648: 647: 644: 639: 637:Category name 636: 635: 629: 626: 623: 619: 616: 608: 601: 600: 595: 591: 587: 583: 579: 567: (1,184) 566: 563: 560: 557: 555: (1,916) 554: 551: 550: 541: 538: 535: 532: 531: 517: 516: 515: 509: 506: 503: 502: 501: 495: 492: 489: 488: 487: 484: 482: 469: 466: 462: 457: 453: 452: 450: 446: 445: 444: 439: 428: 426: 415: 413: 402: 401: 400: 394: 389: 380: 378: 365: 363: 359: 349: 344: 338: 334: 330: 320: 317: 313: 308: 307: 303: 300: 296: 291: 290: 286: 283: 279: 274: 273: 269: 266: 262: 258: 253: 252: 249: 245: 242: 238: 234: 230: 225: 224: 221: 217: 214: 210: 206: 201: 200: 196: 193: 189: 184: 183: 169: 164: 160: 155: 151: 146: 145: 142: 137: 133: 128: 124: 120: 119: 111: 104: 94: 90: 86: 82: 76: 75: 70: 63: 62: 54: 48: 43: 40: 39:documentation 35: 28: 27: 19: 1190:}} 1184:{{ 1180:}} 1174:{{ 1169:}} 1163:{{ 1159:}} 1153:{{ 1148:}} 1142:{{ 1138:}} 1132:{{ 1127:}} 1121:{{ 1117:}} 1111:{{ 1106:}} 1100:{{ 1096:}} 1090:{{ 1085:}} 1079:{{ 1075:}} 1069:{{ 1064:}} 1058:{{ 1054:}} 1048:{{ 1043:}} 1037:{{ 1033:}} 1027:{{ 1018:}} 1012:{{ 997:}} 991:{{ 985:}} 979:{{ 974:}} 968:{{ 962:}} 956:{{ 950:}} 944:{{ 938:}} 932:{{ 926:}} 920:{{ 914:}} 908:{{ 902:}} 896:{{ 890:}} 884:{{ 866:}} 860:{{ 855:}} 849:{{ 844:}} 838:{{ 833:}} 827:{{ 822:}} 816:{{ 811:}} 805:{{ 800:}} 794:{{ 789:}} 783:{{ 778:}} 772:{{ 767:}} 761:{{ 737: 714: 691: 668: 645: 612: 605: 598: 597: 586:VisualEditor 578:TemplateData 576:This is the 572:TemplateData 513: 499: 485: 478: 448: 442: 437: 424: 411: 398: 392: 366: 345: 336: 332: 328: 326: 260: 247: 236: 232: 219: 208: 171:}} 165:{{ 162:}} 156:{{ 153:}} 147:{{ 116: 115:{{ 114: 89:user subpage 71: 1135:Wikiversity 1114:Wikispecies 819:Commons cat 624:Description 399:Generally: 362:Polar bears 1177:Wiktionary 1156:Wikivoyage 1093:Wikisource 830:Commonscat 348:Polar bear 159:Commonscat 85:/testcases 53:categories 37:This is a 1072:Wikiquote 1030:Wikibooks 755:Redirects 621:Parameter 341:Category: 141:Shortcuts 93:talk page 1051:Wikinews 872:See also 747:optional 724:optional 701:optional 687:position 683:Position 678:optional 655:optional 383:Location 333:showname 248:showname 237:showname 81:/sandbox 887:Commons 733:lcfirst 729:lcfirst 337:without 329:catname 261:catname 233:catname 220:catname 209:catname 42:subpage 744:String 721:String 710:nowrap 706:nowrap 698:String 675:String 652:String 630:Status 350:page, 259:| 235:| 231:| 207:| 132:Pi bot 764:C cat 607:used. 339:the " 178:Usage 16:< 1022:etc. 808:Ccat 627:Type 592:for 454:See 331:and 150:Ccat 127:blue 45:for 463:In 449:top 364:". 83:or 1182:/ 1161:/ 1140:/ 1119:/ 1098:/ 1077:/ 1056:/ 1035:/ 797:Cc 584:, 379:. 310:{{ 293:{{ 276:{{ 255:{{ 239:}} 227:{{ 211:}} 203:{{ 190:}} 186:{{ 168:Cc 664:2 641:1 435:N 422:N 409:N 395:. 318:– 301:– 284:– 267:– 243:– 215:– 194:– 112:. 105:. 77:. 49:.

Index

Template:Commons category
documentation
subpage
Template:Commons category
categories
approximately 868,000 pages, or roughly 1% of all pages
/sandbox
/testcases
user subpage
talk page
Category:Creative Commons copyright templates
Wikimedia sister projects
Commons category
Wikimedia Commons
blue
Pi bot
Shortcuts
Ccat
Commonscat
Cc
Commons category
Commons category
Commons category
Commons category
Commons category
Commons category
Commons category
Polar bear
Commons:Category:Ursus maritimus
Polar bears

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