Knowledge (XXG)

Template:Main if exists

Source 📝

21: 988: 52: 83:
It allows the creation of links to pages which do not exist yet, but which will be displayed if and when the page is created. This is useful when articles/topics are being developed, because editors do not have to guess whether a target page is likely to exist any time soon: the link can be created
160:{{Main if exists | History of Briarcliff Manor | WP:RAPYDENEUSRAATYAI | Economy of Galaxy AE23 | =08h1g35b | Extinction | poiytrewq6789 | zzzzzzzzy | List of Novels produced by Aliens}} 1045: 36: 1078: 1041: 32: 1109: 260: 218: 40: 1006: 1001: 207: 1099: 1013: 793: 1027: 703: 613: 715: 624: 422: 948: 680: 444: 253: 904: 692: 602: 1094: 915: 1074: 1035: 815: 477: 185: 165: 28: 285: 1104: 991: 669: 635: 433: 246: 196: 882: 591: 579: 996: 893: 567: 331: 230: 826: 489: 411: 320: 143: 849: 781: 511: 500: 466: 65: 290: 838: 657: 522: 280: 269: 937: 400: 759: 555: 376: 1031: 959: 804: 544: 364: 970: 871: 770: 309: 58: 388: 1088: 737: 353: 224:– includes a fallback category which is tried if the first does not exist 169: 15: 76:
Displays a link to one or more "main" pages, followed by a line break,
238: 80:. If none of the supplied pages exist, the template does nothing. 242: 46: 1066: 1058: 1054: 113:|page1|page2|page3|...}} 84:
now, rather than having to edit the page again later.
927: 861: 727: 647: 534: 456: 343: 299: 1051:Editors can experiment in this template's sandbox 585:(for several redirects, without listing each) 254: 8: 261: 247: 239: 152:{{Main if exists|History of Planet Zerg}} 138:{{Main if exists|Media in New York City}} 1110:Knowledge (XXG) page-section templates 157:A set of pages, some of which exist: 7: 1014:hatnote templates for category pages 14: 987: 986: 50: 19: 286:Knowledge (XXG):Disambiguation 1: 219:Category see also if exists 2 1036:Template:Main if exists/doc 208:Category see also if exists 166:History of Briarcliff Manor 1126: 1100:Conditional link templates 1025: 992:Category:Hatnote templates 794:Further interlanguage link 483:(adds "about" description) 163: 141: 1079:Subpages of this template 982: 704:Redirect-distinguish-text 614:Redirect-distinguish-text 276: 716:Redirect-distinguish-for 625:Redirect-distinguish-for 573:(for multiple redirects) 423:Redirect-distinguish-for 291:Knowledge (XXG):Redirect 135:A page which does exist: 281:Knowledge (XXG):Hatnote 1073:Add categories to the 949:Highway detail hatnote 681:About-distinguish-text 663:(supports custom text) 445:About-distinguish-text 144:Media in New York City 125:At least one page name 102:|page}} 24:Template documentation 66:Module:Main if exists 905:Transcluding article 693:Redirect-distinguish 603:Redirect-distinguish 149:A non-existent page: 57:This template uses 1095:Lua-based templates 916:Transcluded section 728:For use in sections 561:(for two redirects) 382:(for multiple uses) 816:See also if exists 478:About other people 186:See also if exists 78:if the page exists 1105:Hatnote templates 1022: 1021: 832:(for custom text) 787:(for custom text) 709:(for custom text) 686:(for custom text) 670:About-distinguish 636:Technical reasons 434:About-distinguish 370:(for custom text) 270:Hatnote templates 197:Category see also 74: 73: 1117: 1070: 1062: 1049: 990: 989: 975: 969: 964: 958: 953: 947: 942: 936: 928:Subject specific 920: 914: 909: 903: 898: 892: 887: 883:For introduction 881: 876: 870: 854: 848: 843: 837: 831: 825: 820: 814: 809: 803: 798: 792: 786: 780: 775: 769: 764: 758: 753: 747: 742: 736: 720: 714: 708: 702: 697: 691: 685: 679: 674: 668: 662: 656: 640: 634: 629: 623: 618: 612: 607: 601: 596: 592:Redirect-synonym 590: 584: 580:Redirect-several 578: 572: 566: 560: 554: 549: 543: 527: 521: 516: 510: 505: 499: 494: 488: 482: 476: 471: 465: 449: 443: 438: 432: 427: 421: 416: 410: 405: 399: 393: 387: 381: 375: 369: 363: 358: 352: 336: 330: 325: 319: 314: 308: 263: 256: 249: 240: 235: 229: 223: 217: 212: 206: 201: 195: 190: 184: 161: 153: 139: 114: 103: 54: 53: 47: 44: 25: 23: 22: 1125: 1124: 1120: 1119: 1118: 1116: 1115: 1114: 1085: 1084: 1083: 1082: 1072: 1064: 1052: 1050: 1039: 1024: 1023: 1018: 978: 973: 967: 962: 956: 951: 945: 940: 934: 923: 918: 912: 907: 901: 896: 890: 885: 879: 874: 868: 857: 852: 846: 841: 835: 829: 823: 818: 812: 807: 801: 796: 790: 784: 778: 773: 767: 762: 756: 751: 745: 740: 734: 723: 718: 712: 706: 700: 695: 689: 683: 677: 672: 666: 660: 654: 643: 638: 632: 627: 621: 616: 610: 605: 599: 594: 588: 582: 576: 570: 564: 558: 552: 547: 541: 530: 525: 519: 514: 508: 503: 497: 492: 486: 480: 474: 469: 463: 452: 447: 441: 436: 430: 425: 419: 414: 408: 403: 397: 391: 385: 379: 373: 367: 361: 356: 350: 339: 334: 328: 323: 317: 312: 306: 295: 272: 267: 233: 227: 221: 215: 210: 204: 199: 193: 188: 182: 179: 172: 159: 158: 151: 150: 146: 137: 136: 108: 97: 90: 70: 51: 45: 26: 20: 18: 12: 11: 5: 1123: 1121: 1113: 1112: 1107: 1102: 1097: 1087: 1086: 1063:and testcases 1020: 1019: 1017: 1016: 1011: 1010: 1009: 1004: 999: 983: 980: 979: 977: 976: 965: 954: 943: 931: 929: 925: 924: 922: 921: 910: 899: 894:See Wiktionary 888: 877: 865: 863: 859: 858: 856: 855: 844: 833: 821: 810: 799: 788: 776: 765: 754: 749:Main if exists 743: 731: 729: 725: 724: 722: 721: 710: 698: 687: 675: 664: 651: 649: 645: 644: 642: 641: 630: 619: 608: 597: 586: 574: 568:Redirect-multi 562: 550: 538: 536: 532: 531: 529: 528: 517: 506: 495: 484: 472: 460: 458: 454: 453: 451: 450: 439: 428: 417: 406: 394: 383: 371: 359: 347: 345: 341: 340: 338: 337: 332:Self-reference 326: 315: 303: 301: 297: 296: 294: 293: 288: 283: 277: 274: 273: 268: 266: 265: 258: 251: 243: 237: 236: 231:Link if exists 225: 213: 202: 191: 178: 175: 174: 173: 155: 147: 132: 131: 127: 126: 117: 116: 111:Main if exists 105: 100:Main if exists 94: 89: 86: 72: 71: 69: 68: 62: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 1122: 1111: 1108: 1106: 1103: 1101: 1098: 1096: 1093: 1092: 1090: 1080: 1076: 1068: 1060: 1056: 1047: 1043: 1037: 1033: 1029: 1028:documentation 1015: 1012: 1008: 1005: 1003: 1000: 998: 995: 994: 993: 985: 984: 981: 972: 966: 961: 955: 950: 944: 939: 933: 932: 930: 926: 917: 911: 906: 900: 895: 889: 884: 878: 873: 867: 866: 864: 860: 851: 845: 840: 834: 828: 827:See also-text 822: 817: 811: 806: 800: 795: 789: 783: 777: 772: 766: 761: 755: 750: 744: 739: 733: 732: 730: 726: 717: 711: 705: 699: 694: 688: 682: 676: 671: 665: 659: 653: 652: 650: 646: 637: 631: 626: 620: 615: 609: 604: 598: 593: 587: 581: 575: 569: 563: 557: 551: 546: 540: 539: 537: 533: 524: 518: 513: 507: 502: 496: 491: 490:Similar names 485: 479: 473: 468: 462: 461: 459: 455: 446: 440: 435: 429: 424: 418: 413: 412:Other uses of 407: 402: 395: 390: 384: 378: 372: 366: 360: 355: 349: 348: 346: 344:For and about 342: 333: 327: 322: 321:Hatnote group 316: 311: 305: 304: 302: 298: 292: 289: 287: 284: 282: 279: 278: 275: 271: 264: 259: 257: 252: 250: 245: 244: 241: 232: 226: 220: 214: 209: 203: 198: 192: 187: 181: 180: 176: 171: 167: 156: 148: 145: 134: 133: 129: 128: 124: 123: 122: 121: 115: 112: 106: 104: 101: 95: 92: 91: 87: 85: 81: 79: 67: 64: 63: 60: 56: 49: 48: 42: 38: 34: 30: 974:}} 968:{{ 963:}} 957:{{ 952:}} 946:{{ 941:}} 935:{{ 919:}} 913:{{ 908:}} 902:{{ 897:}} 891:{{ 886:}} 880:{{ 875:}} 869:{{ 853:}} 850:For timeline 847:{{ 842:}} 836:{{ 830:}} 824:{{ 819:}} 813:{{ 808:}} 802:{{ 797:}} 791:{{ 785:}} 782:Further-text 779:{{ 774:}} 768:{{ 763:}} 757:{{ 752:}} 748: 746:{{ 741:}} 735:{{ 719:}} 713:{{ 707:}} 701:{{ 696:}} 690:{{ 684:}} 678:{{ 673:}} 667:{{ 661:}} 655:{{ 639:}} 633:{{ 628:}} 622:{{ 617:}} 611:{{ 606:}} 600:{{ 595:}} 589:{{ 583:}} 577:{{ 571:}} 565:{{ 559:}} 553:{{ 548:}} 542:{{ 526:}} 520:{{ 515:}} 512:Other places 509:{{ 504:}} 501:Other storms 498:{{ 493:}} 487:{{ 481:}} 475:{{ 470:}} 467:Other people 464:{{ 457:Other topics 448:}} 442:{{ 437:}} 431:{{ 426:}} 420:{{ 415:}} 409:{{ 404:}} 398:{{ 396:Variations: 392:}} 386:{{ 380:}} 374:{{ 368:}} 362:{{ 357:}} 351:{{ 335:}} 329:{{ 324:}} 318:{{ 313:}} 307:{{ 234:}} 228:{{ 222:}} 216:{{ 211:}} 205:{{ 200:}} 194:{{ 189:}} 183:{{ 119: 118: 110: 109:{{ 107: 99: 98:{{ 96: 93:Usual syntax 82: 77: 75: 1032:transcluded 839:For outline 658:Distinguish 648:Distinguish 523:Other ships 120:Parameters: 39:] [ 35:] [ 31:] [ 1089:Categories 1026:The above 1002:for names 938:About year 401:Other uses 170:Extinction 164:See also: 142:See also: 1077:subpage. 1007:for lists 760:Main list 556:Redirect2 377:For-multi 960:For LMST 805:See also 545:Redirect 535:Redirect 365:For-text 177:See also 130:Examples 1057:| 1046:history 1044:| 997:modules 971:WikiIPA 872:Broader 862:Special 771:Further 310:Hatnote 300:Generic 37:history 1071:pages. 1067:create 1059:mirror 1055:create 1034:from 389:About 88:Usage 43:] 41:purge 27:[ 1075:/doc 1042:edit 738:Main 168:and 33:edit 29:view 1030:is 354:For 59:Lua 1091:: 1038:. 162:→ 140:→ 61:: 1081:. 1069:) 1065:( 1061:) 1053:( 1048:) 1040:( 262:e 255:t 248:v 154:→

Index

view
edit
history
purge
Lua
Module:Main if exists
Main if exists
Main if exists
Media in New York City
History of Briarcliff Manor
Extinction
See also if exists
Category see also
Category see also if exists
Category see also if exists 2
Link if exists
v
t
e
Hatnote templates
Knowledge (XXG):Hatnote
Knowledge (XXG):Disambiguation
Knowledge (XXG):Redirect
Hatnote
Hatnote group
Self-reference
For
For-text
For-multi
About

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