CINXE.COM
Bantuan:Templat - Wikipedia Bahasa Melayu, ensiklopedia bebas
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="ms" dir="ltr"> <head> <meta charset="UTF-8"> <title>Bantuan:Templat - Wikipedia Bahasa Melayu, ensiklopedia bebas</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mswikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy" ,"wgMonthNames":["","Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],"wgRequestId":"8aa96e16-1892-4b32-b3b4-4236edb1b834","wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Bantuan:Templat","wgTitle":"Templat","wgCurRevisionId":4542984,"wgRevisionId":4542984,"wgArticleId":170543,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Laman yang menggunakan argumen pendua dalam panggilan templat"],"wgPageViewLanguage":"ms","wgPageContentLanguage":"ms","wgPageContentModel":"wikitext","wgRelevantPageName":"Bantuan:Templat","wgRelevantArticleId":170543,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0, "wgVisualEditor":{"pageLanguageCode":"ms","pageLanguageDir":"ltr","pageVariantFallbacks":"ms"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":60000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"visual","wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q4168710","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true, "wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.gadget.charinsert-styles":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp", "ext.gadget.teahouse","ext.gadget.ReferenceTooltips","ext.gadget.watchlist-notice","ext.gadget.DRN-wizard","ext.gadget.charinsert","ext.gadget.refToolbar","ext.gadget.extra-toolbar-buttons","ext.gadget.MenuKedaiKopi","ext.gadget.mySandbox","ext.gadget.AdvancedSiteNotices","ext.gadget.switcher","ext.gadget.featured-articles-links","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=ms&modules=ext.cite.styles%7Cext.discussionTools.init.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=ms&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=ms&modules=ext.gadget.charinsert-styles&only=styles&skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=ms&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Bantuan:Templat - Wikipedia Bahasa Melayu, ensiklopedia bebas"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//ms.m.wikipedia.org/wiki/Bantuan:Templat"> <link rel="alternate" type="application/x-wiki" title="Sunting" href="/w/index.php?title=Bantuan:Templat&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (ms)"> <link rel="EditURI" type="application/rsd+xml" href="//ms.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://ms.wikipedia.org/wiki/Bantuan:Templat"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.ms"> <link rel="alternate" type="application/atom+xml" title="Suapan Atom Wikipedia" href="/w/index.php?title=Khas:Perubahan_terkini&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-12 ns-subject mw-editable page-Bantuan_Templat rootpage-Bantuan_Templat skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Pergi ke kandungan</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Tapak"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Menu utama" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Menu utama</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Menu utama</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">alih ke bar sisi</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">sorokkan</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Pandu arah </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Laman-Utama" class="mw-list-item"><a href="/wiki/Laman_Utama"><span>Laman Utama</span></a></li><li id="n-Tinjau" class="mw-list-item"><a href="/wiki/Wikipedia:Tinjau"><span>Tinjau</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Hal_semasa" title="Cari maklumat latar belakang mengenai peristiwa semasa"><span>Hal semasa</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Khas:Rawak" title="Muat laman rawak [x]" accesskey="x"><span>Rencana rawak</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Perhubungan </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Tentang-Wikipedia" class="mw-list-item"><a href="/wiki/Wikipedia:Perihal"><span>Tentang Wikipedia</span></a></li><li id="n-Gerbang-komuniti" class="mw-list-item"><a href="/wiki/Wikipedia:Gerbang_Komuniti"><span>Gerbang komuniti</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Khas:Perubahan_terkini" title="Senarai perubahan terkini dalam wiki [r]" accesskey="r"><span>Perubahan terkini</span></a></li><li id="n-Hubungi-kami" class="mw-list-item"><a href="/wiki/Wikipedia:Hubungi_kami"><span>Hubungi kami</span></a></li><li id="n-Menderma" class="mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_ms.wikipedia.org&uselang=ms"><span>Menderma</span></a></li><li id="n-help" class="mw-list-item"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" title="Tempat mencari jawapan"><span>Bantuan</span></a></li><li id="n-Kedai-Kopi" class="mw-list-item"><a href="/wiki/Wikipedia:Kedai_Kopi"><span>Kedai Kopi</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Laman_Utama" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="Ensiklopedia Bebas" src="/static/images/mobile/copyright/wikipedia-tagline-ms.svg" width="120" height="13" style="width: 7.5em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Khas:Cari" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Cari di wiki ini [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Cari</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Cari Wikipedia" aria-label="Cari Wikipedia" autocapitalize="sentences" title="Cari di wiki ini [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Khas:Cari"> </div> <button class="cdx-button cdx-search-input__end-button">Cari</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Alat peribadi"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Penampilan"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Tukar penampilan saiz, lebar dan warna fon laman" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Penampilan" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Penampilan</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_ms.wikipedia.org&uselang=ms" class=""><span>Derma</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Khas:Buka_akaun&returnto=Bantuan%3ATemplat" title="Anda digalakkan untuk membuka akaun dan melog masuk; walau bagaimanapun, ianya tidak wajib" class=""><span>Buka akaun</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Khas:Log_masuk&returnto=Bantuan%3ATemplat" title="Anda digalakkan untuk melog masuk; walau bagaimanapun, ia tidak wajib. [o]" accesskey="o" class=""><span>Log masuk</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Lebih pilihan" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Alat peribadi" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Alat peribadi</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Menu pengguna" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_ms.wikipedia.org&uselang=ms"><span>Derma</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Khas:Buka_akaun&returnto=Bantuan%3ATemplat" title="Anda digalakkan untuk membuka akaun dan melog masuk; walau bagaimanapun, ianya tidak wajib"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Buka akaun</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Khas:Log_masuk&returnto=Bantuan%3ATemplat" title="Anda digalakkan untuk melog masuk; walau bagaimanapun, ia tidak wajib. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log masuk</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Laman untuk penyunting log keluar <a href="/wiki/Bantuan:Pengenalan" aria-label="Ketahui lebih lanjut tentang menyunting"><span>Ketahui lebih lanjut</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Khas:Sumbangan_saya" title="Senarai suntingan yang dibuat daripada alamat IP ini [y]" accesskey="y"><span>Sumbangan</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Khas:Perbincangan_saya" title="Perbincangan mengenai penyuntingan daripada alamat IP anda [n]" accesskey="n"><span>Perbincangan</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Tapak"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Kandungan" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Kandungan</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">alih ke bar sisi</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">sorokkan</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Permulaan</div> </a> </li> <li id="toc-Umum" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Umum"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Umum</span> </div> </a> <button aria-controls="toc-Umum-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Togol subbahagian Umum</span> </button> <ul id="toc-Umum-sublist" class="vector-toc-list"> <li id="toc-Pengenalan" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Pengenalan"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Pengenalan</span> </div> </a> <ul id="toc-Pengenalan-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Muka_surat_templat_dan_ruang_nama" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Muka_surat_templat_dan_ruang_nama"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Muka surat templat dan ruang nama</span> </div> </a> <ul id="toc-Muka_surat_templat_dan_ruang_nama-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Templat_penggunaan" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Templat_penggunaan"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Templat penggunaan</span> </div> </a> <ul id="toc-Templat_penggunaan-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Contoh_penggunaan_templat" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Contoh_penggunaan_templat"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Contoh penggunaan templat</span> </div> </a> <button aria-controls="toc-Contoh_penggunaan_templat-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Togol subbahagian Contoh penggunaan templat</span> </button> <ul id="toc-Contoh_penggunaan_templat-sublist" class="vector-toc-list"> <li id="toc-Templat_dengan_tiada_parameter" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Templat_dengan_tiada_parameter"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Templat dengan tiada parameter</span> </div> </a> <ul id="toc-Templat_dengan_tiada_parameter-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Templat_parameter_tiada_nama" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Templat_parameter_tiada_nama"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Templat parameter tiada nama</span> </div> </a> <ul id="toc-Templat_parameter_tiada_nama-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Templat_dengan_parameter_bernama" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Templat_dengan_parameter_bernama"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Templat dengan parameter bernama</span> </div> </a> <ul id="toc-Templat_dengan_parameter_bernama-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Penggantian" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Penggantian"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Penggantian</span> </div> </a> <ul id="toc-Penggantian-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Lain-lain_maklumat_penggunaan" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Lain-lain_maklumat_penggunaan"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Lain-lain maklumat penggunaan</span> </div> </a> <ul id="toc-Lain-lain_maklumat_penggunaan-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Mencipta_dan_menyunting_templat" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Mencipta_dan_menyunting_templat"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Mencipta dan menyunting templat</span> </div> </a> <button aria-controls="toc-Mencipta_dan_menyunting_templat-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Togol subbahagian Mencipta dan menyunting templat</span> </button> <ul id="toc-Mencipta_dan_menyunting_templat-sublist" class="vector-toc-list"> <li id="toc-Fungsi_Parser" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Fungsi_Parser"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Fungsi Parser</span> </div> </a> <ul id="toc-Fungsi_Parser-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Parameter-Parameter" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Parameter-Parameter"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span>Parameter-Parameter</span> </div> </a> <ul id="toc-Parameter-Parameter-sublist" class="vector-toc-list"> <li id="toc-Parameter_default" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Parameter_default"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2.1</span> <span>Parameter default</span> </div> </a> <ul id="toc-Parameter_default-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Latihan_parameter_dan_susun_atur_tag" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Latihan_parameter_dan_susun_atur_tag"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2.2</span> <span>Latihan parameter dan susun atur tag</span> </div> </a> <ul id="toc-Latihan_parameter_dan_susun_atur_tag-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Kekangan_terhadap_parameters_dan_nilai_parameter" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Kekangan_terhadap_parameters_dan_nilai_parameter"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2.3</span> <span>Kekangan terhadap parameters dan nilai parameter</span> </div> </a> <ul id="toc-Kekangan_terhadap_parameters_dan_nilai_parameter-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Nesting_templates" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Nesting_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3</span> <span>Nesting templates</span> </div> </a> <ul id="toc-Nesting_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Noinclude,_includeonly,_and_onlyinclude" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Noinclude,_includeonly,_and_onlyinclude"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.4</span> <span>Noinclude, includeonly, and onlyinclude</span> </div> </a> <ul id="toc-Noinclude,_includeonly,_and_onlyinclude-sublist" class="vector-toc-list"> <li id="toc-noinclude" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#noinclude"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.4.1</span> <span>noinclude</span> </div> </a> <ul id="toc-noinclude-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-includeonly" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#includeonly"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.4.2</span> <span>includeonly</span> </div> </a> <ul id="toc-includeonly-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-onlyinclude" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#onlyinclude"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.4.3</span> <span>onlyinclude</span> </div> </a> <ul id="toc-onlyinclude-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Magic_words" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Magic_words"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.5</span> <span>Magic words</span> </div> </a> <ul id="toc-Magic_words-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Other_editing_information" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Other_editing_information"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.6</span> <span>Other editing information</span> </div> </a> <ul id="toc-Other_editing_information-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Template-like_constructions" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Template-like_constructions"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Template-like constructions</span> </div> </a> <button aria-controls="toc-Template-like_constructions-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Togol subbahagian Template-like constructions</span> </button> <ul id="toc-Template-like_constructions-sublist" class="vector-toc-list"> <li id="toc-Composite_pages" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Composite_pages"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Composite pages</span> </div> </a> <ul id="toc-Composite_pages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Pages_with_a_common_section" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Pages_with_a_common_section"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Pages with a common section</span> </div> </a> <ul id="toc-Pages_with_a_common_section-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Repetition_within_a_page" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Repetition_within_a_page"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>Repetition within a page</span> </div> </a> <ul id="toc-Repetition_within_a_page-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Common_usages,_tips_and_tricks" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Common_usages,_tips_and_tricks"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Common usages, tips and tricks</span> </div> </a> <button aria-controls="toc-Common_usages,_tips_and_tricks-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Togol subbahagian Common usages, tips and tricks</span> </button> <ul id="toc-Common_usages,_tips_and_tricks-sublist" class="vector-toc-list"> <li id="toc-Templates_as_table_pieces" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Templates_as_table_pieces"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>Templates as table pieces</span> </div> </a> <ul id="toc-Templates_as_table_pieces-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Templates_in_different_versions_of_MediaWiki" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Templates_in_different_versions_of_MediaWiki"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Templates in different versions of MediaWiki</span> </div> </a> <button aria-controls="toc-Templates_in_different_versions_of_MediaWiki-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Togol subbahagian Templates in different versions of MediaWiki</span> </button> <ul id="toc-Templates_in_different_versions_of_MediaWiki-sublist" class="vector-toc-list"> <li id="toc-Version_1.7" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.7"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1</span> <span>Version 1.7</span> </div> </a> <ul id="toc-Version_1.7-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1.6" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.6"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.2</span> <span>Version 1.6</span> </div> </a> <ul id="toc-Version_1.6-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1.5" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.5"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.3</span> <span>Version 1.5</span> </div> </a> <ul id="toc-Version_1.5-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1.4" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.4"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.4</span> <span>Version 1.4</span> </div> </a> <ul id="toc-Version_1.4-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1.3" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.3"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.5</span> <span>Version 1.3</span> </div> </a> <ul id="toc-Version_1.3-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1.2.6" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.2.6"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.6</span> <span>Version 1.2.6</span> </div> </a> <ul id="toc-Version_1.2.6-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1._.." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1._.."> <div class="vector-toc-text"> <span class="vector-toc-numb">6.7</span> <span>Version 1. ..</span> </div> </a> <ul id="toc-Version_1._..-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Revision_history_of_pages_containing_templates" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Revision_history_of_pages_containing_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Revision history of pages containing templates</span> </div> </a> <ul id="toc-Revision_history_of_pages_containing_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Other_pages_not_primarily_meant_for_direct_viewing" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Other_pages_not_primarily_meant_for_direct_viewing"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Other pages not primarily meant for direct viewing</span> </div> </a> <ul id="toc-Other_pages_not_primarily_meant_for_direct_viewing-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Notes" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Notes"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>Notes</span> </div> </a> <ul id="toc-Notes-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Kandungan" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Togol isi kandungan" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Togol isi kandungan</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Bantuan</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Templat</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Pergi ke rencana dalam bahasa lain. Tersedia dalam 73 bahasa" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-73" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">73 bahasa</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-als mw-list-item"><a href="https://als.wikipedia.org/wiki/Hilfe:Vorlage" title="Hilfe:Vorlage – Jerman Switzerland" lang="gsw" hreflang="gsw" data-title="Hilfe:Vorlage" data-language-autonym="Alemannisch" data-language-local-name="Jerman Switzerland" class="interlanguage-link-target"><span>Alemannisch</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%85%D8%B3%D8%A7%D8%B9%D8%AF%D8%A9:%D9%82%D8%A7%D9%84%D8%A8" title="مساعدة:قالب – Arab" lang="ar" hreflang="ar" data-title="مساعدة:قالب" data-language-autonym="العربية" data-language-local-name="Arab" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-as mw-list-item"><a href="https://as.wikipedia.org/wiki/%E0%A6%B8%E0%A6%B9%E0%A6%BE%E0%A6%AF%E0%A6%BC:%E0%A6%B8%E0%A6%BE%E0%A6%81%E0%A6%9A" title="সহায়:সাঁচ – Assam" lang="as" hreflang="as" data-title="সহায়:সাঁচ" data-language-autonym="অসমীয়া" data-language-local-name="Assam" class="interlanguage-link-target"><span>অসমীয়া</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%DA%A9%D8%A4%D9%85%DA%A9:%D8%B4%D8%A7%D8%A8%D9%84%D9%88%D9%86" title="کؤمک:شابلون – South Azerbaijani" lang="azb" hreflang="azb" data-title="کؤمک:شابلون" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Bantuan:Templat" title="Bantuan:Templat – Indonesia" lang="id" hreflang="id" data-title="Bantuan:Templat" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesia" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%B8%E0%A6%BE%E0%A6%B9%E0%A6%BE%E0%A6%AF%E0%A7%8D%E0%A6%AF:%E0%A6%9F%E0%A7%87%E0%A6%AE%E0%A6%AA%E0%A7%8D%E0%A6%B2%E0%A7%87%E0%A6%9F" title="সাহায্য:টেমপ্লেট – Benggali" lang="bn" hreflang="bn" data-title="সাহায্য:টেমপ্লেট" data-language-autonym="বাংলা" data-language-local-name="Benggali" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/%D0%92%D1%96%D0%BA%D1%96%D0%BF%D0%B5%D0%B4%D1%8B%D1%8F:%D0%9C%D0%B5%D1%85%D0%B0%D0%BD%D1%96%D0%B7%D0%BC_%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%B0%D1%9E" title="Вікіпедыя:Механізм шаблонаў – Belarus" lang="be" hreflang="be" data-title="Вікіпедыя:Механізм шаблонаў" data-language-autonym="Беларуская" data-language-local-name="Belarus" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bh mw-list-item"><a href="https://bh.wikipedia.org/wiki/%E0%A4%AE%E0%A4%A6%E0%A4%A6:%E0%A4%9F%E0%A5%87%E0%A4%AE%E0%A5%8D%E0%A4%AA%E0%A4%B2%E0%A5%87%E0%A4%9F" title="मदद:टेम्पलेट – Bhojpuri" lang="bh" hreflang="bh" data-title="मदद:टेम्पलेट" data-language-autonym="भोजपुरी" data-language-local-name="Bhojpuri" class="interlanguage-link-target"><span>भोजपुरी</span></a></li><li class="interlanguage-link interwiki-br mw-list-item"><a href="https://br.wikipedia.org/wiki/Wikipedia:Patromo%C3%B9" title="Wikipedia:Patromoù – Breton" lang="br" hreflang="br" data-title="Wikipedia:Patromoù" data-language-autonym="Brezhoneg" data-language-local-name="Breton" class="interlanguage-link-target"><span>Brezhoneg</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Ajuda:Plantilla" title="Ajuda:Plantilla – Catalonia" lang="ca" hreflang="ca" data-title="Ajuda:Plantilla" data-language-autonym="Català" data-language-local-name="Catalonia" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/N%C3%A1pov%C4%9Bda:%C5%A0ablony" title="Nápověda:Šablony – Czech" lang="cs" hreflang="cs" data-title="Nápověda:Šablony" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Hj%C3%A6lp:Skabeloner" title="Hjælp:Skabeloner – Denmark" lang="da" hreflang="da" data-title="Hjælp:Skabeloner" data-language-autonym="Dansk" data-language-local-name="Denmark" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Hilfe:Vorlagen" title="Hilfe:Vorlagen – Jerman" lang="de" hreflang="de" data-title="Hilfe:Vorlagen" data-language-autonym="Deutsch" data-language-local-name="Jerman" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-dsb mw-list-item"><a href="https://dsb.wikipedia.org/wiki/Pomoc:P%C5%9Bed%C5%82ogi" title="Pomoc:Pśedłogi – Sorbian Rendah" lang="dsb" hreflang="dsb" data-title="Pomoc:Pśedłogi" data-language-autonym="Dolnoserbski" data-language-local-name="Sorbian Rendah" class="interlanguage-link-target"><span>Dolnoserbski</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Juhend:Mall" title="Juhend:Mall – Estonia" lang="et" hreflang="et" data-title="Juhend:Mall" data-language-autonym="Eesti" data-language-local-name="Estonia" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/%CE%92%CE%BF%CE%AE%CE%B8%CE%B5%CE%B9%CE%B1:%CE%A0%CF%81%CF%8C%CF%84%CF%85%CF%80%CE%BF" title="Βοήθεια:Πρότυπο – Greek" lang="el" hreflang="el" data-title="Βοήθεια:Πρότυπο" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Help:Template" title="Help:Template – Inggeris" lang="en" hreflang="en" data-title="Help:Template" data-language-autonym="English" data-language-local-name="Inggeris" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Ayuda:Plantillas" title="Ayuda:Plantillas – Sepanyol" lang="es" hreflang="es" data-title="Ayuda:Plantillas" data-language-autonym="Español" data-language-local-name="Sepanyol" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Helpo:%C5%9Cablono" title="Helpo:Ŝablono – Esperanto" lang="eo" hreflang="eo" data-title="Helpo:Ŝablono" data-language-autonym="Esperanto" data-language-local-name="Esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Laguntza:Txantiloiak" title="Laguntza:Txantiloiak – Basque" lang="eu" hreflang="eu" data-title="Laguntza:Txantiloiak" data-language-autonym="Euskara" data-language-local-name="Basque" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%B1%D8%A7%D9%87%D9%86%D9%85%D8%A7:%D8%A7%D9%84%DA%AF%D9%88" title="راهنما:الگو – Parsi" lang="fa" hreflang="fa" data-title="راهنما:الگو" data-language-autonym="فارسی" data-language-local-name="Parsi" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Aide:Mod%C3%A8le" title="Aide:Modèle – Perancis" lang="fr" hreflang="fr" data-title="Aide:Modèle" data-language-autonym="Français" data-language-local-name="Perancis" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/Axuda:Modelos" title="Axuda:Modelos – Galicia" lang="gl" hreflang="gl" data-title="Axuda:Modelos" data-language-autonym="Galego" data-language-local-name="Galicia" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EB%8F%84%EC%9B%80%EB%A7%90:%ED%8B%80" title="도움말:틀 – Korea" lang="ko" hreflang="ko" data-title="도움말:틀" data-language-autonym="한국어" data-language-local-name="Korea" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/%D5%8E%D5%AB%D6%84%D5%AB%D5%BA%D5%A5%D5%A4%D5%AB%D5%A1:%D5%8E%D5%AB%D6%84%D5%AB%D5%86%D5%A1%D5%AD%D5%A1%D5%A3%D5%AB%D5%AE_%D5%88%D6%82%D5%B2%D5%A5%D5%A3%D5%AB%D5%AE/%D5%80%D5%A1%D6%84%D5%A1%D5%A9%D5%B8%D5%B6/%D5%95%D5%A3%D5%B6%D5%B8%D6%82%D5%A9%D5%B5%D5%B8%D6%82%D5%B6:%D4%BF%D5%A1%D5%B2%D5%A1%D5%BA%D5%A1%D6%80" title="Վիքիպեդիա:ՎիքիՆախագիծ Ուղեգիծ/Հաքաթոն/Օգնություն:Կաղապար – Armenia" lang="hy" hreflang="hy" data-title="Վիքիպեդիա:ՎիքիՆախագիծ Ուղեգիծ/Հաքաթոն/Օգնություն:Կաղապար" data-language-autonym="Հայերեն" data-language-local-name="Armenia" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%B8%E0%A4%B9%E0%A4%BE%E0%A4%AF%E0%A4%A4%E0%A4%BE:%E0%A4%B8%E0%A4%BE%E0%A4%81%E0%A4%9A%E0%A4%BE" title="सहायता:साँचा – Hindi" lang="hi" hreflang="hi" data-title="सहायता:साँचा" data-language-autonym="हिन्दी" data-language-local-name="Hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-hsb mw-list-item"><a href="https://hsb.wikipedia.org/wiki/Pomoc:P%C5%99ed%C5%82ohi" title="Pomoc:Předłohi – Sorbian Atas" lang="hsb" hreflang="hsb" data-title="Pomoc:Předłohi" data-language-autonym="Hornjoserbsce" data-language-local-name="Sorbian Atas" class="interlanguage-link-target"><span>Hornjoserbsce</span></a></li><li class="interlanguage-link interwiki-ilo mw-list-item"><a href="https://ilo.wikipedia.org/wiki/Tulong:Plantilia" title="Tulong:Plantilia – Iloko" lang="ilo" hreflang="ilo" data-title="Tulong:Plantilia" data-language-autonym="Ilokano" data-language-local-name="Iloko" class="interlanguage-link-target"><span>Ilokano</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/Hj%C3%A1lp:Sni%C3%B0" title="Hjálp:Snið – Iceland" lang="is" hreflang="is" data-title="Hjálp:Snið" data-language-autonym="Íslenska" data-language-local-name="Iceland" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Aiuto:Template" title="Aiuto:Template – Itali" lang="it" hreflang="it" data-title="Aiuto:Template" data-language-autonym="Italiano" data-language-local-name="Itali" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%A2%D7%96%D7%A8%D7%94:%D7%AA%D7%91%D7%A0%D7%99%D7%95%D7%AA" title="עזרה:תבניות – Ibrani" lang="he" hreflang="he" data-title="עזרה:תבניות" data-language-autonym="עברית" data-language-local-name="Ibrani" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-jv mw-list-item"><a href="https://jv.wikipedia.org/wiki/Pitulung:Cithakan" title="Pitulung:Cithakan – Jawa" lang="jv" hreflang="jv" data-title="Pitulung:Cithakan" data-language-autonym="Jawa" data-language-local-name="Jawa" class="interlanguage-link-target"><span>Jawa</span></a></li><li class="interlanguage-link interwiki-ky mw-list-item"><a href="https://ky.wikipedia.org/wiki/%D0%96%D0%B0%D1%80%D0%B4%D0%B0%D0%BC:%D0%9A%D0%B0%D0%BB%D1%8B%D0%BF" title="Жардам:Калып – Kirghiz" lang="ky" hreflang="ky" data-title="Жардам:Калып" data-language-autonym="Кыргызча" data-language-local-name="Kirghiz" class="interlanguage-link-target"><span>Кыргызча</span></a></li><li class="interlanguage-link interwiki-la mw-list-item"><a href="https://la.wikipedia.org/wiki/Auxilium:Formulae" title="Auxilium:Formulae – Latin" lang="la" hreflang="la" data-title="Auxilium:Formulae" data-language-autonym="Latina" data-language-local-name="Latin" class="interlanguage-link-target"><span>Latina</span></a></li><li class="interlanguage-link interwiki-lb mw-list-item"><a href="https://lb.wikipedia.org/wiki/H%C3%ABllef:Schablounen" title="Hëllef:Schablounen – Luxembourg" lang="lb" hreflang="lb" data-title="Hëllef:Schablounen" data-language-autonym="Lëtzebuergesch" data-language-local-name="Luxembourg" class="interlanguage-link-target"><span>Lëtzebuergesch</span></a></li><li class="interlanguage-link interwiki-lt mw-list-item"><a href="https://lt.wikipedia.org/wiki/Pagalba:Kaip_naudotis_%C5%A1ablonais" title="Pagalba:Kaip naudotis šablonais – Lithuania" lang="lt" hreflang="lt" data-title="Pagalba:Kaip naudotis šablonais" data-language-autonym="Lietuvių" data-language-local-name="Lithuania" class="interlanguage-link-target"><span>Lietuvių</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%B8%E0%B4%B9%E0%B4%BE%E0%B4%AF%E0%B4%82:%E0%B4%AB%E0%B4%B2%E0%B4%95%E0%B4%82" title="സഹായം:ഫലകം – Malayalam" lang="ml" hreflang="ml" data-title="സഹായം:ഫലകം" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-mt mw-list-item"><a href="https://mt.wikipedia.org/wiki/G%C4%A7ajnuna:Mudell" title="Għajnuna:Mudell – Malta" lang="mt" hreflang="mt" data-title="Għajnuna:Mudell" data-language-autonym="Malti" data-language-local-name="Malta" class="interlanguage-link-target"><span>Malti</span></a></li><li class="interlanguage-link interwiki-mr mw-list-item"><a href="https://mr.wikipedia.org/wiki/%E0%A4%B8%E0%A4%B9%E0%A4%BE%E0%A4%AF%E0%A5%8D%E0%A4%AF:%E0%A4%B8%E0%A4%BE%E0%A4%9A%E0%A4%BE" title="सहाय्य:साचा – Marathi" lang="mr" hreflang="mr" data-title="सहाय्य:साचा" data-language-autonym="मराठी" data-language-local-name="Marathi" class="interlanguage-link-target"><span>मराठी</span></a></li><li class="interlanguage-link interwiki-arz mw-list-item"><a href="https://arz.wikipedia.org/wiki/%D9%85%D8%B3%D8%A7%D8%B9%D8%AF%D8%A9:%D9%82%D8%A7%D9%84%D8%A8" title="مساعدة:قالب – Arab Mesir" lang="arz" hreflang="arz" data-title="مساعدة:قالب" data-language-autonym="مصرى" data-language-local-name="Arab Mesir" class="interlanguage-link-target"><span>مصرى</span></a></li><li class="interlanguage-link interwiki-my mw-list-item"><a href="https://my.wikipedia.org/wiki/%E1%80%A1%E1%80%80%E1%80%B0%E1%80%A1%E1%80%8A%E1%80%AE:Template" title="အကူအညီ:Template – Burma" lang="my" hreflang="my" data-title="အကူအညီ:Template" data-language-autonym="မြန်မာဘာသာ" data-language-local-name="Burma" class="interlanguage-link-target"><span>မြန်မာဘာသာ</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Help:Gebruik_van_sjablonen" title="Help:Gebruik van sjablonen – Belanda" lang="nl" hreflang="nl" data-title="Help:Gebruik van sjablonen" data-language-autonym="Nederlands" data-language-local-name="Belanda" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-nds-nl mw-list-item"><a href="https://nds-nl.wikipedia.org/wiki/Hulpe:Mallen" title="Hulpe:Mallen – Saxon Rendah" lang="nds-NL" hreflang="nds-NL" data-title="Hulpe:Mallen" data-language-autonym="Nedersaksies" data-language-local-name="Saxon Rendah" class="interlanguage-link-target"><span>Nedersaksies</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Help:%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88" title="Help:テンプレート – Jepun" lang="ja" hreflang="ja" data-title="Help:テンプレート" data-language-autonym="日本語" data-language-local-name="Jepun" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Hjelp:Maler" title="Hjelp:Maler – Bokmal Norway" lang="nb" hreflang="nb" data-title="Hjelp:Maler" data-language-autonym="Norsk bokmål" data-language-local-name="Bokmal Norway" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-oc mw-list-item"><a href="https://oc.wikipedia.org/wiki/Ajuda:Mod%C3%A8l" title="Ajuda:Modèl – Occitania" lang="oc" hreflang="oc" data-title="Ajuda:Modèl" data-language-autonym="Occitan" data-language-local-name="Occitania" class="interlanguage-link-target"><span>Occitan</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%B8%E0%AC%B9%E0%AC%AF%E0%AD%8B%E0%AC%97:%E0%AC%9B%E0%AC%BE%E0%AC%9E%E0%AD%8D%E0%AC%9A" title="ସହଯୋଗ:ଛାଞ୍ଚ – Odia" lang="or" hreflang="or" data-title="ସହଯୋଗ:ଛାଞ୍ଚ" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="Odia" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-ps mw-list-item"><a href="https://ps.wikipedia.org/wiki/%D9%84%D8%A7%D8%B1%DA%9A%D9%88%D8%AF:%DA%A9%D9%8A%D9%86%DA%89%DB%8D" title="لارښود:کينډۍ – Pashto" lang="ps" hreflang="ps" data-title="لارښود:کينډۍ" data-language-autonym="پښتو" data-language-local-name="Pashto" class="interlanguage-link-target"><span>پښتو</span></a></li><li class="interlanguage-link interwiki-km mw-list-item"><a href="https://km.wikipedia.org/wiki/%E1%9E%87%E1%9F%86%E1%9E%93%E1%9E%BD%E1%9E%99:%E1%9E%91%E1%9F%86%E1%9E%96%E1%9F%90%E1%9E%9A%E1%9E%82%E1%9F%86%E1%9E%9A%E1%9E%BC" title="ជំនួយ:ទំព័រគំរូ – Khmer" lang="km" hreflang="km" data-title="ជំនួយ:ទំព័រគំរូ" data-language-autonym="ភាសាខ្មែរ" data-language-local-name="Khmer" class="interlanguage-link-target"><span>ភាសាខ្មែរ</span></a></li><li class="interlanguage-link interwiki-shn mw-list-item"><a href="https://shn.wikipedia.org/wiki/%E1%80%9C%E1%80%BD%E1%80%84%E1%80%BA%E1%82%88%E1%81%B8%E1%80%BD%E1%82%86%E1%82%88%E1%80%91%E1%82%85%E1%80%99%E1%80%BA:Template" title="လွင်ႈၸွႆႈထႅမ်:Template – Shan" lang="shn" hreflang="shn" data-title="လွင်ႈၸွႆႈထႅမ်:Template" data-language-autonym="ၽႃႇသႃႇတႆး " data-language-local-name="Shan" class="interlanguage-link-target"><span>ၽႃႇသႃႇတႆး </span></a></li><li class="interlanguage-link interwiki-ksh mw-list-item"><a href="https://ksh.wikipedia.org/wiki/Wikipedia:Wat_sinn_dann_Shabloone_joot_f%C3%B6r%3F" title="Wikipedia:Wat sinn dann Shabloone joot för? – Colognian" lang="ksh" hreflang="ksh" data-title="Wikipedia:Wat sinn dann Shabloone joot för?" data-language-autonym="Ripoarisch" data-language-local-name="Colognian" class="interlanguage-link-target"><span>Ripoarisch</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Ajutor:Formate" title="Ajutor:Formate – Romania" lang="ro" hreflang="ro" data-title="Ajutor:Formate" data-language-autonym="Română" data-language-local-name="Romania" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9C%D0%B5%D1%85%D0%B0%D0%BD%D0%B8%D0%B7%D0%BC_%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%BE%D0%B2" title="Википедия:Механизм шаблонов – Rusia" lang="ru" hreflang="ru" data-title="Википедия:Механизм шаблонов" data-language-autonym="Русский" data-language-local-name="Rusia" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sco mw-list-item"><a href="https://sco.wikipedia.org/wiki/Help:Templates" title="Help:Templates – Scots" lang="sco" hreflang="sco" data-title="Help:Templates" data-language-autonym="Scots" data-language-local-name="Scots" class="interlanguage-link-target"><span>Scots</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/Ndihm%C3%AB:Stampa" title="Ndihmë:Stampa – Albania" lang="sq" hreflang="sq" data-title="Ndihmë:Stampa" data-language-autonym="Shqip" data-language-local-name="Albania" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/%E0%B6%8B%E0%B6%AF%E0%B7%80%E0%B7%94:Template" title="උදවු:Template – Sinhala" lang="si" hreflang="si" data-title="උදවු:Template" data-language-autonym="සිංහල" data-language-local-name="Sinhala" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Help:Template" title="Help:Template – Simple English" lang="en-simple" hreflang="en-simple" data-title="Help:Template" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sd mw-list-item"><a href="https://sd.wikipedia.org/wiki/%D9%85%D8%AF%D8%AF:%D8%B3%D8%A7%D9%86%DA%86%D9%88" title="مدد:سانچو – Sindhi" lang="sd" hreflang="sd" data-title="مدد:سانچو" data-language-autonym="سنڌي" data-language-local-name="Sindhi" class="interlanguage-link-target"><span>سنڌي</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%DB%8C%D8%A7%D8%B1%D9%85%DB%95%D8%AA%DB%8C:%D8%AF%D8%A7%DA%95%DB%8E%DA%98%DB%95" title="یارمەتی:داڕێژە – Kurdi Tengah" lang="ckb" hreflang="ckb" data-title="یارمەتی:داڕێژە" data-language-autonym="کوردی" data-language-local-name="Kurdi Tengah" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/%D0%9F%D0%BE%D0%BC%D0%BE%D1%9B:%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD" title="Помоћ:Шаблон – Serbia" lang="sr" hreflang="sr" data-title="Помоћ:Шаблон" data-language-autonym="Српски / srpski" data-language-local-name="Serbia" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/Pomo%C4%87:%C5%A0ablon" title="Pomoć:Šablon – SerboCroatia" lang="sh" hreflang="sh" data-title="Pomoć:Šablon" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="SerboCroatia" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Ohje:Malline" title="Ohje:Malline – Finland" lang="fi" hreflang="fi" data-title="Ohje:Malline" data-language-autonym="Suomi" data-language-local-name="Finland" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-tt mw-list-item"><a href="https://tt.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9A%D0%B0%D0%BB%D1%8B%D0%BF%D0%BB%D0%B0%D1%80_%D0%BC%D0%B5%D1%85%D0%B0%D0%BD%D0%B8%D0%B7%D0%BC%D1%8B" title="Википедия:Калыплар механизмы – Tatar" lang="tt" hreflang="tt" data-title="Википедия:Калыплар механизмы" data-language-autonym="Татарча / tatarça" data-language-local-name="Tatar" class="interlanguage-link-target"><span>Татарча / tatarça</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82:%E0%B0%AE%E0%B1%82%E0%B0%B8" title="సహాయం:మూస – Telugu" lang="te" hreflang="te" data-title="సహాయం:మూస" data-language-autonym="తెలుగు" data-language-local-name="Telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B9%83%E0%B8%8A%E0%B9%89:%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A" title="วิธีใช้:แม่แบบ – Thai" lang="th" hreflang="th" data-title="วิธีใช้:แม่แบบ" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Tr%E1%BB%A3_gi%C3%BAp:B%E1%BA%A3n_m%E1%BA%ABu" title="Trợ giúp:Bản mẫu – Vietnam" lang="vi" hreflang="vi" data-title="Trợ giúp:Bản mẫu" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnam" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Yard%C4%B1m:%C5%9Eablon" title="Yardım:Şablon – Turki" lang="tr" hreflang="tr" data-title="Yardım:Şablon" data-language-autonym="Türkçe" data-language-local-name="Turki" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%94%D0%BE%D0%B2%D1%96%D0%B4%D0%BA%D0%B0:%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%B8" title="Довідка:Шаблони – Ukraine" lang="uk" hreflang="uk" data-title="Довідка:Шаблони" data-language-autonym="Українська" data-language-local-name="Ukraine" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D9%85%D8%B9%D8%A7%D9%88%D9%86%D8%AA:%D8%B3%D8%A7%D9%86%DA%86%DB%81" title="معاونت:سانچہ – Urdu" lang="ur" hreflang="ur" data-title="معاونت:سانچہ" data-language-autonym="اردو" data-language-local-name="Urdu" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-vec mw-list-item"><a href="https://vec.wikipedia.org/wiki/Juto:Mode%C5%82i" title="Juto:Modełi – Venetian" lang="vec" hreflang="vec" data-title="Juto:Modełi" data-language-autonym="Vèneto" data-language-local-name="Venetian" class="interlanguage-link-target"><span>Vèneto</span></a></li><li class="interlanguage-link interwiki-yi mw-list-item"><a href="https://yi.wikipedia.org/wiki/%D7%94%D7%99%D7%9C%D7%A3:%D7%9E%D7%95%D7%A1%D7%98%D7%A2%D7%A8" title="הילף:מוסטער – Yiddish" lang="yi" hreflang="yi" data-title="הילף:מוסטער" data-language-autonym="ייִדיש" data-language-local-name="Yiddish" class="interlanguage-link-target"><span>ייִדיש</span></a></li><li class="interlanguage-link interwiki-diq mw-list-item"><a href="https://diq.wikipedia.org/wiki/Desteg:Template" title="Desteg:Template – Zazaki" lang="diq" hreflang="diq" data-title="Desteg:Template" data-language-autonym="Zazaki" data-language-local-name="Zazaki" class="interlanguage-link-target"><span>Zazaki</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Help:%E6%A8%A1%E6%9D%BF" title="Help:模板 – Cina" lang="zh" hreflang="zh" data-title="Help:模板" data-language-autonym="中文" data-language-local-name="Cina" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q4168710#sitelinks-wikipedia" title="Sunting pautan antara bahasa" class="wbc-editpage">Sunting pautan</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Ruang nama"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-help" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Bantuan:Templat" title="Lihat laman bantuan [c]" accesskey="c"><span>Bantuan</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Perbincangan_bantuan:Templat&action=edit&redlink=1" rel="discussion" class="new" title="Perbincangan mengenai laman kandungan (laman tidak wujud) [t]" accesskey="t"><span>Perbincangan</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Tukar kelainan bahasa" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Bahasa Melayu</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Rupa"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Bantuan:Templat"><span>Baca</span></a></li><li id="ca-ve-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&veaction=edit" title="Sunting laman ini [v]" accesskey="v"><span>Sunting</span></a></li><li id="ca-edit" class="collapsible vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&action=edit" title="Sunting kod sumber untuk laman ini [e]" accesskey="e"><span>Sunting sumber</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&action=history" title="Semakan terdahulu bagi laman ini [h]" accesskey="h"><span>Lihat sejarah</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Alatan laman"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Peralatan" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Peralatan</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Peralatan</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">alih ke bar sisi</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">sorokkan</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Lagi pilihan" > <div class="vector-menu-heading"> Tindakan </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Bantuan:Templat"><span>Baca</span></a></li><li id="ca-more-ve-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&veaction=edit" title="Sunting laman ini [v]" accesskey="v"><span>Sunting</span></a></li><li id="ca-more-edit" class="collapsible vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&action=edit" title="Sunting kod sumber untuk laman ini [e]" accesskey="e"><span>Sunting sumber</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&action=history"><span>Lihat sejarah</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Umum </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Khas:Pautan_ke_sini/Bantuan:Templat" title="Senarai semua laman wiki yang mengandungi pautan ke laman ini [j]" accesskey="j"><span>Pautan ke laman ini</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Khas:Perubahan_berkaitan/Bantuan:Templat" rel="nofollow" title="Perubahan terkini bagi laman yang dipaut dari laman ini [k]" accesskey="k"><span>Perubahan berkaitan</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=ms" title="Muat naik fail [u]" accesskey="u"><span>Muat naik fail</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Khas:Laman_khas" title="Senarai semua laman khas [q]" accesskey="q"><span>Laman khas</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&oldid=4542984" title="Pautan kekal ke semakan laman ini"><span>Pautan kekal</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&action=info" title="Maklumat lanjut mengenai laman ini"><span>Maklumat laman</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Khas:UrlShortener&url=https%3A%2F%2Fms.wikipedia.org%2Fwiki%2FBantuan%3ATemplat"><span>Dapatkan URL pendek</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Khas:QrCode&url=https%3A%2F%2Fms.wikipedia.org%2Fwiki%2FBantuan%3ATemplat"><span>Muat turun kod QR</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Cetak/eksport </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Khas:Buku&bookcmd=book_creator&referer=Bantuan%3ATemplat"><span>Cipta buku</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Khas:DownloadAsPdf&page=Bantuan%3ATemplat&action=show-download-screen"><span>Muat turun sebagai PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Bantuan:Templat&printable=yes" title="Versi boleh cetak bagi laman ini [p]" accesskey="p"><span>Versi boleh cetak</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> Dalam projek lain </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Help:Template" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-mediawiki mw-list-item"><a href="https://www.mediawiki.org/wiki/Help:Templates" hreflang="en"><span>MediaWiki</span></a></li><li class="wb-otherproject-link wb-otherproject-meta mw-list-item"><a href="https://meta.wikimedia.org/wiki/Help:Template" hreflang="en"><span>Meta-Wiki</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://ms.wikibooks.org/wiki/Bantuan:Templat" hreflang="ms"><span>Wikibuku</span></a></li><li class="wb-otherproject-link wb-otherproject-wikidata mw-list-item"><a href="https://www.wikidata.org/wiki/Help:Templates" hreflang="en"><span>Wikidata</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q4168710" title="Pautan ke item repositori data yang bersambung [g]" accesskey="g"><span>Butir Wikidata</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Alatan laman"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Penampilan"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Penampilan</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">alih ke bar sisi</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">sorokkan</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">Daripada Wikipedia, ensiklopedia bebas.</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="ms" dir="ltr"><table class="box-Terjemah plainlinks metadata ambox ambox-content ambox-not_English" role="presentation"><tbody><tr><td class="mbox-image"><div style="width:52px"><span typeof="mw:File"><a href="/wiki/Fail:Translation_arrow-indic.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Translation_arrow-indic.svg/50px-Translation_arrow-indic.svg.png" decoding="async" width="50" height="17" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Translation_arrow-indic.svg/75px-Translation_arrow-indic.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Translation_arrow-indic.svg/100px-Translation_arrow-indic.svg.png 2x" data-file-width="60" data-file-height="20"/></a></span></div></td><td class="mbox-text"><div class="mbox-text-span"><span class="plainlinks"><b>Tolong bantu menterjemahkan sebahagian laman ini.</b> <br/> Laman ini memerlukan kemaskini dalam Bahasa Melayu piawai <a href="/wiki/Dewan_Bahasa_dan_Pustaka" title="Dewan Bahasa dan Pustaka">Dewan Bahasa dan Pustaka</a>. Sila <a class="external text" href="https://ms.wikipedia.org/w/index.php?title=Bantuan:Templat&action=edit">membantu</a>, bahan-bahan boleh didapati di <a href="https://en.wikipedia.org/wiki/Bantuan:Templat" class="extiw" title="en:Bantuan:Templat">Templat</a><b> <span class="languageicon" style="font-size:0.85em; font-weight:bold; color:#555" title="Bahasa (en)">(Inggeris)</span>.</b> <hr/> Jika anda ingin menilai laman ini, anda mungkin mahu menyemak di <a rel="nofollow" class="external text" href="http://translate.google.com/translate?u=https://en.wikipedia.org/wiki/Bantuan:Templat&sl=en&tl=ms&hl=ms">terjemahan Google</a>. Walau bagaimanapun, <b>jangan menambah terjemahan automatik kepada laman</b>, kerana ini biasanya mempunyai kualiti yang sangat teruk.<br/><small><i>Sumber-sumber bantuan:</i> <a rel="nofollow" class="external text" href="http://prpm.dbp.gov.my/">Pusat Rujukan Persuratan Melayu</a>.</small></span></div></td></tr></tbody></table><div style="position:relative;top:-3em"><span id="B:T"></span></div> <div class="shortcutbox plainlist noprint" role="note" style="float:right;border:1px solid #aaa;background:#fff;margin:0em 0em 0em 1em;padding:.3em .6em .2em .6em;text-align:center;font-size:85%;font-weight:bold"><div style="display:inline-block;border-bottom:1px solid #aaa;margin-bottom:.2em;font-weight:normal"><a href="/wiki/Wikipedia:Jalan_pintas" title="Wikipedia:Jalan pintas">Jalan pintas</a> </div><ul><li><a href="https://ms.wikibooks.org/wiki/T" class="extiw" title="b:T">B:T</a></li></ul></div> <p><b>Templat</b> merupakan satu halaman yang diciptakan khusus untuk <i><a href="/wiki/Wikipedia:Transklusi" title="Wikipedia:Transklusi">transklusi</a></i> – proses MediaWiki untuk memasukkan isi kandungan suatu laman di dalam halaman yang lain. Apa-apa saja laman boleh ditransklusikan, tetapi templat telah direka khusus untuk tujuan tersebut, biasanya bagi bahan-bahan berulang yang juga mungkin perlu ditampilkan pada beberapa rencana atau laman Wikimedia. Templat lazimnya digunakan bagi pesanan <a href="/wiki/Wikipedia:Glosari#Teks_plat_dandang" title="Wikipedia:Glosari">plat dandang</a>, amaran atau notis piawai, <a href="/w/index.php?title=Wikipedia:WikiProjek_kotak_maklumat&action=edit&redlink=1" class="new" title="Wikipedia:WikiProjek kotak maklumat (laman tidak wujud)">kotak maklumat</a>, <a href="/wiki/Wikipedia:Templat_pandu_arah" title="Wikipedia:Templat pandu arah">kotak pandu arah</a> dan yang serupa dengannya. </p><p>Bagi pengenalan ringkas mengenai perkara berkenaan, sila lihat <i><a href="/w/index.php?title=Bantuan:Panduan_ringkas_bagi_templat&action=edit&redlink=1" class="new" title="Bantuan:Panduan ringkas bagi templat (laman tidak wujud)">panduan ringkas bagi templat</a></i>.<br/> Bagi senarai templat yang biasa digunakan, sila lihat <i><a href="/wiki/Wikipedia:Templat" title="Wikipedia:Templat">Pesanan templat</a>.</i> </p> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Umum" data-mw-thread-id="h-Umum"><span data-mw-comment-start="" id="h-Umum"></span>Umum<span data-mw-comment-end="h-Umum"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=1" title="Sunting bahagian: Umum" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=1" title="Sunting kod sumber bahagian: Umum"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Umum","replies":["h-Pengenalan-Umum","h-Muka_surat_templat_dan_ruang_nama-Umum","h-Templat_penggunaan-Umum"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="Pengenalan" data-mw-thread-id="h-Pengenalan-Umum"><span data-mw-comment-start="" id="h-Pengenalan-Umum"></span>Pengenalan<span data-mw-comment-end="h-Pengenalan-Umum"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=2" title="Sunting bahagian: Pengenalan" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=2" title="Sunting kod sumber bahagian: Pengenalan"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Templat-templat mungkin mengandungi apa wikiteks yang mungkin kita inginkan, termasuklah panggilan-panggilan ke templat-templat lain. Mereka mempunyai kapasiti pengaturcaraan terhad: nilai-nilai yang mengikut batasan tertentu (dipanggil <a href="#Parameter">parameter</a>), pengiraan dan pemecahan (menggunakan <a href="#Fungsi_Parser">fungsi Parser</a>), dan laluan kepada pemboleh -pemboleh ubah wiki-spesifik (<a href="#Perkataan-perkataan_ajaib">perkataan-perkataan ajaib</a>), seperti tarikh, masa dan nama-nama halaman. </p><p>Untuk menggunakan satu templat dalam satu artikel atau halaman, satu tag templat (dalam bentuk <i>{{template name}}</i>; name templat yang ditutup di dalam kedua-dua kurungan) ditambah di mana anda hendak ia ditimbulkan. Apabila seseorang itu hendak membaca halaman itu, pelayan-pelayan Wikimedia akan ambil isi kandungan pada templat, buatkan apa-apa pengiraan yang tidak perlu dibuat, dan gantikan tag templat dalam wikitext dengan isi kandungan templat itu yang diproses. </p> <div class="mw-heading mw-heading3"><h3 id="Muka_surat_templat_dan_ruang_nama" data-mw-thread-id="h-Muka_surat_templat_dan_ruang_nama-Umum"><span data-mw-comment-start="" id="h-Muka_surat_templat_dan_ruang_nama-Umum"></span>Muka surat templat dan ruang nama<span data-mw-comment-end="h-Muka_surat_templat_dan_ruang_nama-Umum"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=3" title="Sunting bahagian: Muka surat templat dan ruang nama" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=3" title="Sunting kod sumber bahagian: Muka surat templat dan ruang nama"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Templat-templat mempunyai <a href="/w/index.php?title=Bantuan:Ruang_nama&action=edit&redlink=1" class="new" title="Bantuan:Ruang nama (laman tidak wujud)">ruang nama</a> mereka sendiri yang menggunakan prefiks "Templat:" (serupa dengan ruang nama "Pengguna:", "Bantuan:", dan "Talk:" yang dikenali). (Bahasa-bahasa Wikipedia lain mungkin menggunakan prefiks berbeza, seperti "Vorlage:", "Modèle:", "Sjabloon:", walaupun "Template:" boleh digunakan pada tempat-tempat ini.) </p><p>Kebanyakan templat wujud di dalam ruang nama, dan boleh ditemui dalam halaman bertajuk "Template:<i>Template name</i>". Walau bagaimanapun, pengguna kadangkala membuat templat dalam ruang nama lain seperti User: namespace. <a href="/wiki/Wikipedia:TRANS" class="mw-redirect" title="Wikipedia:TRANS">Transklusi</a> boleh diguna pakai dari mana-mana ruang nama,<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> tetapi kelebihan ruang nama templat ialah awalan "Templat:" tidak diperlukan apabila mentransklusi. </p><p>Nama-nama templat adalah sama dengan nama halaman yang lain: kes-sensitif melainkan huruf pertama dan ruang tidak diperlainkan dengan tanda garis bawah. Andai simbol # (biasanya digunakan bagi memaut bahagian suatu halaman) muncul dalam transklusi, simbol tersebut dan mana-mana karakter susulan tidak diendahkan. </p><p>Halaman templat, seperti kebanyakan halaman lain, ada halaman perbincangan yang berkaitan di mana penyunting boleh membincang apa-apa isu berkaitan templat itu. (atas sebab ini, templat tidak sepatutnya diletakkan di ruang nama "Talk:", meskipun dengan tujuan menggunakannya pada halaman perbincangan; lantaran halaman perbincangan tidak mempunyai halaman perbincangannya sendiri, tiada halaman untuk membincangkan templat.) </p><p>Templat hanya berkesan dalam projek Wikimedia tertentu. Salinan templat tersebut mesti dibuat dalam setiap projek andai templat itu hendak digunakan dalam projek lain. </p> <div class="mw-heading mw-heading3"><h3 id="Templat_penggunaan" data-mw-thread-id="h-Templat_penggunaan-Umum"><span data-mw-comment-start="" id="h-Templat_penggunaan-Umum"></span>Templat penggunaan<span data-mw-comment-end="h-Templat_penggunaan-Umum"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=4" title="Sunting bahagian: Templat penggunaan" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=4" title="Sunting kod sumber bahagian: Templat penggunaan"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>To transclude a template into another page, use the following syntax (called a <b>template tag</b>): </p> <dl><dd><i>{{ template name | parameter | parameter | ... }}</i></dd></dl> <p>This consists of the template name and various parameters that are passed to the template, where each parameter is separated by a vertical bar (or <i>pipe</i>), and the entirety is surrounded by doubled curly braces, {{...}}. The template tag should be placed in a page or article wherever the template is intended to appear. The "Template:" prefix is never needed for transclusion, only for finding and editing the template itself (though if the template is created in a different namespace that prefix <i>is</i> needed). Not all templates have parameters, and not all templates that have parameters need to have values provided, so sometimes <i>{{ template name }}</i> is sufficient to use a template. If a parameter is needed, but a value not provided by the user, the template may render with something like <b>{{{...}}}</b> in the text, where the '...' might be a number or a parameter name. This is to inform the user that a named or unnamed parameter is missing, and can be avoided by using <a href="#Parameter_defaults">default values</a> for the parameter. </p><p>Parameters come in two basic forms: </p> <ul><li>unnamed parameters: values that are put into the template in the order they appear <dl><dd><i>{{ template name|parameter1|parameter2|...}}</i></dd></dl></li> <li>named parameters: values associated with a particular named key in the template <dl><dd><i>{{ template name | parametername1 = parameter1 | parametername2 = parameter2 | ... }}</i></dd></dl></li></ul> <p>These may be mixed: </p> <dl><dd><dl><dd><i>{{ template name |parameter1|parameter2| parametername1 = parameter3 | parametername2 = parameter4 | ... }}</i></dd></dl></dd></dl> <p>By convention named parameters are listed last, though that is not a requirement. Whitespace characters (spaces, tabs, returns) are stripped from the beginnings and ends of <i>named</i> parameter values (unnamed parameters are unaffected), but not from the middle: thus {{ ... | myparam = this is a test }} will be treated as though the user had typed {{ ... |myparam=this is a test}}. </p><p>Template pages themselves may include material that is <i>not</i> transcluded with the template (such as documentation or Wikimedia categories that the template itself belongs to), or material that is <i>only</i> used when the page is transcluded (such as categories that apply to the transclusion page, but not the template). See the discussion of the <a href="#Noinclude,_includeonly,_and_onlyinclude"><i>includeonly</i> and <i>noinclude</i></a> tags, below. </p><p>Attempting to transclude a template that does not exist produces a redlink, just like linking to any other nonexistent page. Following the link allows one to create that particular template. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Contoh_penggunaan_templat" data-mw-thread-id="h-Contoh_penggunaan_templat"><span data-mw-comment-start="" id="h-Contoh_penggunaan_templat"></span>Contoh penggunaan templat<span data-mw-comment-end="h-Contoh_penggunaan_templat"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=5" title="Sunting bahagian: Contoh penggunaan templat" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=5" title="Sunting kod sumber bahagian: Contoh penggunaan templat"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Contoh_penggunaan_templat","replies":["h-Templat_dengan_tiada_parameter-Contoh_penggunaan_templat","h-Templat_parameter_tiada_nama-Contoh_penggunaan_templat","h-Templat_dengan_parameter_bernama-Contoh_penggunaan_templat","h-Penggantian-Contoh_penggunaan_templat","h-Lain-lain_maklumat_penggunaan-Contoh_penggunaan_templat"]}}--></div> <p>Jika anda ingin mencuba templat-templat di bawah, sila gunakan <a href="/wiki/Templat:Kotak_pasir" class="mw-redirect" title="Templat:Kotak pasir">templat kotak pasir</a> </p> <div class="mw-heading mw-heading4"><h4 id="Templat_dengan_tiada_parameter" data-mw-thread-id="h-Templat_dengan_tiada_parameter-Contoh_penggunaan_templat"><span data-mw-comment-start="" id="h-Templat_dengan_tiada_parameter-Contoh_penggunaan_templat"></span>Templat dengan tiada parameter<span data-mw-comment-end="h-Templat_dengan_tiada_parameter-Contoh_penggunaan_templat"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=6" title="Sunting bahagian: Templat dengan tiada parameter" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=6" title="Sunting kod sumber bahagian: Templat dengan tiada parameter"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Untuk melihat contoh templat yang paling mudah, perhatikan <a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">Template:Tc</a>. Templat ini membantu mengalihkan huruf di <i>"dalam"</i> ke halaman lain. Contohnya, menyunting frasa berikut ke mana-mana halaman akan menghasilkan hasil seperti di bawah: </p> <table class="wikitable" style="text-align:center"> <caption>Menggunakan templat {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">tc</a>}} </caption> <tbody><tr> <th>Penerangan</th> <th>Perkataan yang dimasukkan</th> <th>Hasilnya </th></tr> <tr> <td>Hanya {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">Tc</a>}} </td> <td>{{tc}} </td> <td><span style="white-space:nowrap;"><code>{{tlc|...}}</code></span> </td></tr> <tr> <td>Hanya satu penggunaan {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">tc</a>}} dalam teks </td> <td>{{tc}} 2009, with Barack Obama settling into the White House, we find the beginning of... </td> <td><span style="white-space:nowrap;"><code>{{tlc|...}}</code></span> 2009, with Barack Obama settling into the White House, we find the beginning of... </td></tr> <tr> <td>Penggunaan {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">tc</a>}} yang banyak dalam teks </td> <td>{{tc}} 2009, with Barack Obama settl{{tc}}g {{tc}}to the White House, we f{{tc}}d the beg{{tc}}n{{tc}}g of... </td> <td><span style="white-space:nowrap;"><code>{{tlc|...}}</code></span> 2009, with Barack Obama settl<span style="white-space:nowrap;"><code>{{tlc|...}}</code></span>g <span style="white-space:nowrap;"><code>{{tlc|...}}</code></span>to the White House, we f<span style="white-space:nowrap;"><code>{{tlc|...}}</code></span>d the beg<span style="white-space:nowrap;"><code>{{tlc|...}}</code></span>n<span style="white-space:nowrap;"><code>{{tlc|...}}</code></span>g of... </td></tr></tbody></table> <p>Anda akan perasan bahawa templat tersebut hanya mengandungi huruf <i>"dalam"</i> apabila dikosongkan, walaupun ada teks penjelasan pada halaman templat ("Templat ini digunakan ..." klik pada pautan templat di atas untuk melihat). Jika anda menyunting halaman templat, (klik <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template:Tc&action=edit">pautan ini</a>), anda akan melihat semuanya kecuali huruf-huruf di <i>"dalam"</i> yang disertakan dalam '<a href="#noinclude">noinclude</a>', yang akan dibincangkan kemudian. </p> <div class="mw-heading mw-heading4"><h4 id="Templat_parameter_tiada_nama" data-mw-thread-id="h-Templat_parameter_tiada_nama-Contoh_penggunaan_templat"><span data-mw-comment-start="" id="h-Templat_parameter_tiada_nama-Contoh_penggunaan_templat"></span>Templat parameter tiada nama<span data-mw-comment-end="h-Templat_parameter_tiada_nama-Contoh_penggunaan_templat"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=7" title="Sunting bahagian: Templat parameter tiada nama" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=7" title="Sunting kod sumber bahagian: Templat parameter tiada nama"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Transclusion with parameters is only slightly more complicated. For a quick example, the famous <a href="/w/index.php?title=Dead_man%27s_hand&action=edit&redlink=1" class="new" title="Dead man's hand (laman tidak wujud)">dead man's hand</a> can be reproduced by the following templates, using unnamed parameters: </p> <table class="wikitable" style="text-align:center"> <caption>making the Dead Man's Hand </caption> <tbody><tr> <th>Description</th> <th>Text Entered</th> <th>Result after Processing </th></tr> <tr> <td>using three templates (<a href="/wiki/Templat:Clubs" title="Templat:Clubs">Template:Clubs</a>, <a href="/wiki/Templat:Diamonds" title="Templat:Diamonds">Template:Diamonds</a>, and <a href="/wiki/Templat:Spades" title="Templat:Spades">Template:Spades</a>) </td> <td>{{ clubs |A}} {{ clubs |8}} {{ spades |A}} {{ spades |8}} {{ diamonds |9}} </td> <td style="width:30%">A♣ 8♣ A♠ 8♠ <span style="color:red">9♦</span> </td></tr> <tr> <td>Using (<a href="/wiki/Templat:BridgeHandInline" title="Templat:BridgeHandInline">Template:BridgeHandInline</a>); not quite as pretty, but just one template, with four parameters. </td> <td>{{ BridgeHandInline |A8||9|A8}} </td> <td><span class="nowrap"><span class="nowrap">♠ A8 <span style="color: red">♥</span> </span> <span class="nowrap"><span style="color:red">♦</span> 9 ♣ A8</span></span> </td></tr> <tr> <td>Using (<a href="/wiki/Templat:BridgeHandInline" title="Templat:BridgeHandInline">Template:BridgeHandInline</a>), but with a missing <i>pipe</i> separator </td> <td>{{ BridgeHandInline |A8|9|A8}} </td> <td><span class="nowrap"><span class="nowrap">♠ A8 <span style="color: red">♥</span> 9</span> <span class="nowrap"><span style="color:red">♦</span> A8 ♣ {{{4}}}</span></span> </td></tr></tbody></table> <p>In the second example, the position of the parameter in the template tag determines which suit it belongs to. Thus, the first A8 (first slot) goes to spades, the empty position (second slot) goes to hearts, the 9 (third slot) goes to diamonds, the second A8 (fourth slot) goes to clubs. Note that the empty parameter position is counted; if the extra pipe is forgotten, as in the third example, the result is that the cards end up in the wrong positions, and a {{{4}}} appears, meaning that the template was expecting a value for the fourth positional parameter but none was provided. See the section on parameters and default values, below. </p> <div class="mw-heading mw-heading4"><h4 id="Templat_dengan_parameter_bernama" data-mw-thread-id="h-Templat_dengan_parameter_bernama-Contoh_penggunaan_templat"><span data-mw-comment-start="" id="h-Templat_dengan_parameter_bernama-Contoh_penggunaan_templat"></span>Templat dengan parameter bernama<span data-mw-comment-end="h-Templat_dengan_parameter_bernama-Contoh_penggunaan_templat"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=8" title="Sunting bahagian: Templat dengan parameter bernama" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=8" title="Sunting kod sumber bahagian: Templat dengan parameter bernama"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Using named parameters is similar to using unnamed parameters. For example, <a href="/w/index.php?title=Templat:Payoff_matrix&action=edit&redlink=1" class="new" title="Templat:Payoff matrix (laman tidak wujud)">Template:Payoff matrix</a> (which is used in some <a href="/w/index.php?title=Game_theory&action=edit&redlink=1" class="new" title="Game theory (laman tidak wujud)">game theory</a> pages) gives a simple 2-by-2 grid with adjustable values, using the names UL, UR, DL, and DR to refer to Up Left, Up Right, Down Left and Down Right, and a Name parameter to add a name to the bottom of the matrix. </p> <table class="wikitable" style="text-align:center"> <tbody><tr> <th>Description</th> <th>Code</th> <th>Result </th></tr> <tr> <td>Payoff matrix </td> <td class="">{{payoff matrix | UL = 5 | UR = 7 | DL = 2 | DR = 9 | Name = Example usage }} </td> <td><a href="/w/index.php?title=Templat:Payoff_matrix&action=edit&redlink=1" class="new" title="Templat:Payoff matrix (laman tidak wujud)">Templat:Payoff matrix</a> </td></tr> <tr> <td>Payoff matrix showing a default value for a missing parameter, and different ordering for the others </td> <td class="">{{payoff matrix | DR = 9 | Name = Example usage | DL = 2 | UR = 7 }} </td> <td><a href="/w/index.php?title=Templat:Payoff_matrix&action=edit&redlink=1" class="new" title="Templat:Payoff matrix (laman tidak wujud)">Templat:Payoff matrix</a> </td></tr></tbody></table> <p>In the second case, the order of the parameters has been altered without changing the result - one of the advantages that named parameters have over unnamed parameters - and one of the values (UL) has been removed entirely, allowing the template to insert the default value of "0, 0". </p><p>Parameter names are case sensitive, even in the first character. for example, using <i>"dr = 9"</i>,<i>"Dr = 9"</i> or <i>"dR = 9"</i> instead of <i>"DR = 9"</i> will cause the Down Right cell to display the default "0, 0". The alternate case versions are treated as different parameters and ignored by the template. </p> <div class="mw-heading mw-heading3"><h3 id="Penggantian" data-mw-thread-id="h-Penggantian-Contoh_penggunaan_templat"><span data-mw-comment-start="" id="h-Penggantian-Contoh_penggunaan_templat"></span>Penggantian<span data-mw-comment-end="h-Penggantian-Contoh_penggunaan_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=9" title="Sunting bahagian: Penggantian" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=9" title="Sunting kod sumber bahagian: Penggantian"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r5614044">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}</style><div role="note" class="hatnote navigation-not-searchable">Rencana utama: <a href="/w/index.php?title=Bantuan:Penggantian&action=edit&redlink=1" class="new" title="Bantuan:Penggantian (laman tidak wujud)">Help:Penggantian</a></div> <p>Generally, templates are processed into readable text when a user browses a page. This is the normal intention of a template: since the template is reevaluated each time it's used, changes to the template can propagate across many pages quickly and effortlessly. Occasionally, however, this is not appropriate. For instance, a user may want a template which returns a date or time that remains fixed, rather than changing each time the page is browsed. For those cases there is substitution, which is done by adding <i>subst:</i> before the template name in the template tag. substitution does exactly what its name suggests: rather than processing the template each time the page is browsed, substitution processes the template at the time the edit is saved, and replaces the template tag with the processed results. </p><p>For example, the template {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">tc</a>}} (as shown above) adds the letters <i>"in"</i> wherever it is placed. Thus, the wikitext <i>bra{{tc}}</i> will produce the word <i>bra<span style="white-space:nowrap;"><code>{{tlc|...}}</code></span></i>. The wikitext will always remain as <i>bra{{tc}}</i>, however, so if {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">tc</a>}} is changed so that it adds the letters <i>"wn"</i>, the wikitext will produce <i>brawn</i> instead of <i>brain</i>. Substituting like so - <i>bra{{subst:tc}}</i> - will permanently change the wikitext to read <i>brain</i>, and later changes to the template {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">tc</a>}} will have no effect on the substituted text. </p><p>In general, substitution processes one level, so if the template in question contains other template tags, those template tags will be substituted in, rather than the processed results of those tags. This is a sometimes useful trick when <a href="#Other_editing_information">debugging</a> complex templates. For information on multi-level substitution, see <a href="/w/index.php?title=Bantuan:Substitution&action=edit&redlink=1" class="new" title="Bantuan:Substitution (laman tidak wujud)">Help:Substitution#Multilevel substitution</a>. Articles where templates were substituted rather than transcluded are listed on <a href="/w/index.php?title=Wikipedia:WikiProject_Check_Wikipedia&action=edit&redlink=1" class="new" title="Wikipedia:WikiProject Check Wikipedia (laman tidak wujud)">WikiProject Check Wikipedia#Template programming element</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Lain-lain_maklumat_penggunaan" data-mw-thread-id="h-Lain-lain_maklumat_penggunaan-Contoh_penggunaan_templat"><span data-mw-comment-start="" id="h-Lain-lain_maklumat_penggunaan-Contoh_penggunaan_templat"></span>Lain-lain maklumat penggunaan<span data-mw-comment-end="h-Lain-lain_maklumat_penggunaan-Contoh_penggunaan_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=10" title="Sunting bahagian: Lain-lain maklumat penggunaan" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=10" title="Sunting kod sumber bahagian: Lain-lain maklumat penggunaan"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>To quote a template, creating a link to the template rather than actually invoking the template, use the "{{<a href="/wiki/Templat:Tl" title="Templat:Tl">tl</a>}}" template (the <i>template link</i> template). For example, using the text "<tt>{{tl|tc}}</tt>" creates a link to <a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">Template:Tc</a> without actually doing what the template normally does, like so: {{<a href="/wiki/Templat:Tc" class="mw-redirect" title="Templat:Tc">tc</a>}}.</li> <li>a list of all pages that a particular template is transcluded onto can be found by clicking the 'What links here' link on the main template page.</li> <li>a list of all the templates that a particular page transcludes can be found by clicking the Edit link on the page normally and scrolling down past the edit window. The list will include the entire template "tree", that is, any sub-templates called by other templates to produce the preview will also be listed. To find the actual templates used in the article page itself, you will need to search in the edit window text for template invocations (names included within the "{{...}}" wiki-template invocations). <ul><li>A list of templates used in a particular section can be found by clicking the Edit link for that section and then clicking Preview</li> <li>Likewise, a list of templates used in an old version of a page can be found by choosing the version from the page history, clicking the Edit link, and clicking Preview. Note that this only works to one level: the sub-templates listed will reflect the current state of the templates transcluded on the old page. There is no way to examine which sub-templates were transcluded at the time the old page was current.</li></ul></li> <li>Templates may seem small compared to other pages on Wikimedia, but editing them can consume a tremendously disproportionate amount of system resources, particularly when they are transcluded on to large numbers of pages. When a change is made to a template, the MediaWiki software automatically places every page in which the template is transcluded onto the <a href="/w/index.php?title=Wikipedia:Job_queue&action=edit&redlink=1" class="new" title="Wikipedia:Job queue (laman tidak wujud)">job queue</a> to update the template links and ensure that any new page views will reflect the change. For very popular templates, it is better to create a copy in userspace or in a sandbox, make and test any needed changes there, present it on the template talk page to make sure there are no objections, and then introduce it as a single edit. See <a href="/w/index.php?title=Wikipedia:Template_test_cases&action=edit&redlink=1" class="new" title="Wikipedia:Template test cases (laman tidak wujud)">Wikipedia:Template test cases</a> for a systematic way of doing so.</li> <li>In rare circumstances, templates may be so complex and invoke so many sub-templates that they impose a significant load on the parser software. This load can be checked by examining the generated HTML for a page and looking for the "NewPP limit report" comments, which show how relatively "expensive" the article page is.</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Mencipta_dan_menyunting_templat" data-mw-thread-id="h-Mencipta_dan_menyunting_templat"><span data-mw-comment-start="" id="h-Mencipta_dan_menyunting_templat"></span>Mencipta dan menyunting templat<span data-mw-comment-end="h-Mencipta_dan_menyunting_templat"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=11" title="Sunting bahagian: Mencipta dan menyunting templat" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=11" title="Sunting kod sumber bahagian: Mencipta dan menyunting templat"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Mencipta_dan_menyunting_templat","replies":["h-Fungsi_Parser-Mencipta_dan_menyunting_templat","h-Parameter-Parameter-Mencipta_dan_menyunting_templat","h-Nesting_templates-Mencipta_dan_menyunting_templat","h-Noinclude,_includeonly,_and_onlyinclude-Mencipta_dan_menyunting_templat","h-Magic_words-Mencipta_dan_menyunting_templat","h-Other_editing_information-Mencipta_dan_menyunting_templat"]}}--></div> <p>Templates are created and edited in much the same way as any other page on WikiMedia: choose an appropriate name, navigate to that page, then click the Edit tab or create a new page as needed. The only real difference is that templates will normally be placed in the "Template:" namespace rather than the (unprefixed) article namespace. Anything that can be included on a normal page or article can be included on a template, including other templates (though as a practical matter templates will often have relatively small contents). Beyond that, templates have access to programming features - <a href="#Parameters">parameters</a>, <a href="#Parser_functions">parser functions</a>, and <a href="#Magic_words">magic words</a> - which allow for context dependent use,<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> and special tags that help control which information is transcluded and which is not. </p><p>When creating templates, it's best to follow a few simple principles: </p> <ul><li>Choose a short, descriptive name. Some people suggest that template names be completely small caps, some that spaces in template names should be avoided, but there is currently no hard guideline.</li> <li>Make a quick search of template space to make sure that the template you're creating hasn't already been done. It is sometimes easier and better to enhance an already existent template than to create a new template from scratch.</li> <li>Make sure your template is properly documented and included in the correct categories. Categorizing your template and documenting it will make it easier for other editors to find and use. <ul><li>To add documentation, put the {{<a href="/wiki/Templat:Documentation" class="mw-redirect" title="Templat:Documentation">Documentation</a>}} template inside 'noinclude' tags on the template page. This will create a documentation subpage that you can edit</li> <li>Categories that apply to the template itself should be added to the template page (inside 'noinclude' tags, with the {{<a href="/wiki/Templat:Documentation" class="mw-redirect" title="Templat:Documentation">Documentation</a>}} template). Categories that are to be transcluded to the transclusion page should be placed on the template page inside 'includeonly' tags.</li></ul></li> <li>Try to make your template modular: i.e. capable of standing on its own and in a variety of different page contexts, without breaking, producing poor output, or messing up a page's layout. In general, you want your template to be transparently useful to other editors - the more effort they have to put into understanding how your template is used, the less they will be willing to use it.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Fungsi_Parser" data-mw-thread-id="h-Fungsi_Parser-Mencipta_dan_menyunting_templat"><span data-mw-comment-start="" id="h-Fungsi_Parser-Mencipta_dan_menyunting_templat"></span>Fungsi Parser<span data-mw-comment-end="h-Fungsi_Parser-Mencipta_dan_menyunting_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=12" title="Sunting bahagian: Fungsi Parser" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=12" title="Sunting kod sumber bahagian: Fungsi Parser"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r5614044"><div role="note" class="hatnote navigation-not-searchable">Laman utama: <a href="https://www.mediawiki.org/wiki/Help:ParserFunctions" class="extiw" title="mw:Help:ParserFunctions">parserFunctions extension</a> dan <a href="/w/index.php?title=Bantuan:Magic_words&action=edit&redlink=1" class="new" title="Bantuan:Magic words (laman tidak wujud)">core parser functions</a></div> <p>Parser functions are the WikiMedia toolkit for simple branchings, calculations, text manipulations, and the like. As a group, they take one or more parameters and return a wikitext value based on the parameters. There are two basic forms for Parser functions (distinguished by whether a pound sign follows the opening brackets): </p> <ul><li>Core parser functions, of the form {{functionName: parameter | parameter | ... }}. These functions are part of the core wikimedia software, and should be available in all projects.</li> <li>Parser functions from the parserFunctions extension, of the form {{#functionName: parameter | parameter | ... }}. These functions are part of the parserFunctions extension, and may not be available everywhere.</li></ul> <p>Parser functions are primarily used for the evaluation of <a href="#Parameters">parameters</a> or <a href="#Magic_words">magic words</a>, in order to produce different results in different contexts. </p><p>Core parser functions generally deal with text manipulation and WikiMedia specific tasks. </p> <table class="wikitable" style="text-align:center;" width="80%"> <caption>Examples of core parser functions </caption> <tbody><tr> <th width="30%">Description</th> <th width="40%">Text Entered</th> <th width="30%">Result </th></tr> <tr> <td>Uppercasing text </td> <td>{{uc: Heavens to BETSY! }} </td> <td>HEAVENS TO BETSY! </td></tr> <tr> <td>Lowercasing text </td> <td>{{lc: Heavens to BETSY! }} </td> <td>heavens to betsy! </td></tr> <tr> <td>Getting a namespace name </td> <td>{{NS: 1 }} </td> <td>Perbincangan </td></tr> <tr> <td>Getting a wikipedia URL </td> <td>{{fullurl: pagename }} </td> <td>//ms.wikipedia.org/wiki/Pagename </td></tr></tbody></table> <p>The parserFunctions extension gives more more programming-oriented parser functions. </p> <table class="wikitable" style="text-align:center;" width="80%"> <caption>Examples of extension parser functions </caption> <tbody><tr> <th width="30%">Description</th> <th width="40%">Text Entered</th> <th width="30%">Result </th></tr> <tr> <td>Testing between options </td> <td>{{#ifeq: yes | yes | Hooray...! | Darn...! }}<br/>{{#ifeq: yes | no | Hooray...! | Darn...! }} </td> <td>Hooray...!<br/>Darn...! </td></tr> <tr> <td>Testing if a parameter is set </td> <td>{{#if: {{{param|}}} | Hooray...! | Darn...! }} </td> <td>Darn...! </td></tr> <tr> <td>making a calculation </td> <td>{{#expr: ( 27 * 46 / pi ) round 2 }} </td> <td>395.34 </td></tr></tbody></table> <p>These functions are discussed in greater detail on their respective help pages. </p> <div class="mw-heading mw-heading3"><h3 id="Parameter-Parameter" data-mw-thread-id="h-Parameter-Parameter-Mencipta_dan_menyunting_templat"><span data-mw-comment-start="" id="h-Parameter-Parameter-Mencipta_dan_menyunting_templat"></span>Parameter-Parameter<span data-mw-comment-end="h-Parameter-Parameter-Mencipta_dan_menyunting_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=13" title="Sunting bahagian: Parameter-Parameter" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=13" title="Sunting kod sumber bahagian: Parameter-Parameter"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Parameters are special codes that allow wikitext to be fed to a template; the template can be constructed to produce different outcomes depending on the values of the parameters it receives. Parameters may have names, or may be referenced by the position of values provided in the template tag (the order of the parameters in the template itself is irrelevant). Parameters in a template take the form {{{...}}}, where the tripled curled-braces surround the name of a named parameter or the number of a positional parameter. Values entered for parameters can be quite long (see <a href="https://meta.wikimedia.org/wiki/Help:Long_parameter_demo" class="extiw" title="m:Help:Long parameter demo">Help:Long parameter demo</a>), and if needed the transclusion of an entire page may be used as the value for a parameter. </p><p>To see how parameters work, consider this example. Assume there is a template called 'peoplepets' that produces some text about people and their pets. A template tag for this template might look like the following: </p> <ol><li>{{ peoplepets | John | Mary | age = 6 | Fido | small | kind = dog }}</li> <li>{{ peoplepets | Bill | Susan | age = 7 | Queenie | fat | kind = cat }}</li></ol> <p>The contents of the template itself, on the page <a href="/wiki/Templat:Peoplepets" title="Templat:Peoplepets">Template:Peoplepets</a>, looks as follows: </p> <dl><dd>{{{1}}} and {{{2}}} own a {{{4}}} [[{{{kind}}}]] named {{{3}}} who is {{{age}}} years old.</dd></dl> <p>Thus, the two template tags above will transclude the following text, respectively: </p> <ol><li>John dan Mary mempunyai seekor small <a href="/w/index.php?title=Dog&action=edit&redlink=1" class="new" title="Dog (laman tidak wujud)">dog</a> bernama Fido yang berumur 6 tahun.</li></ol> <ol><li>Bill dan Susan mempunyai seekor fat <a href="/wiki/Cat" title="Cat">cat</a> bernama Queenie yang berumur 7 tahun.</li></ol> <p><br/> Things to note: </p> <ul><li>The numbering of positional parameters skips over named parameters (as with 'age' above)</li> <li>The leading and trailing spaces around the values of <i>named</i> parameters in the template tags are stripped by the template. <ul><li>This is not true for unnamed parameters, which preserve trailing and leading whitespace. However, browsers render multiple whitespace characters as a single space, so the extra spaces around 'Fido', 'fat' and the other unnamed parameter values aren't immediately visible. This can be confusing if unnamed parameters are used for something other than display, such as links.</li></ul></li> <li>The order in which parameter values are used in the template doesn't matter.</li> <li>The number of a positional parameter is treated as though it were a name: {{ peoplepets | John | ... }} could have been written {{ peoplepets | 1 = John | ... }}. This is useful when positional parameters need to be entered out of order.</li> <li>Values may be empty. Here the second positional parameter and the 'age' parameter have empty values: <dl><dd>Template tag:{{ peoplepets | John || age = | Fido | small | kind = dog }}</dd> <dd>Produces (note the missing words): John dan mempunyai seekor small <a href="/w/index.php?title=Dog&action=edit&redlink=1" class="new" title="Dog (laman tidak wujud)">dog</a> bernama Fido yang berumur tahun.</dd></dl></li></ul> <ul><li>Values can remain unprovided. Here the 'kind' parameter has been omitted: <dl><dd>Template tag: {{ peoplepets | John | Mary | age = 6 | Fido | small }}</dd> <dd>Produces (this displays the missing variable): John dan Mary mempunyai seekor small [[{{{kind}}}]] bernama Fido yang berumur 6 tahun.</dd></dl></li></ul> <p><br/> </p> <div class="mw-heading mw-heading4"><h4 id="Parameter_default" data-mw-thread-id="h-Parameter_default-Parameter-Parameter"><span data-mw-comment-start="" id="h-Parameter_default-Parameter-Parameter"></span>Parameter default<span data-mw-comment-end="h-Parameter_default-Parameter-Parameter"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=14" title="Sunting bahagian: Parameter default" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=14" title="Sunting kod sumber bahagian: Parameter default"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Default values can be specified for parameters using the vertical pipe character: |. The above example template could be rewritten as follows (in which 'friend' is the default value for positional parameter 2, the 4th positional parameter defaults to emptiness, and the 'kind' of the pet defaults to 'dog'): </p> <dl><dd>{{{1}}} and {{{2|friend}}} own a {{{4|}}} [[{{{kind|dog}}}]] named {{{3}}} who is {{{age}}} years old.</dd></dl> <p>A template tag like the following: {{ peoplepets | Bill || age = 7 | Queenie }} will then produce the phrase <i>Bill and friend own a dog named Queenie who is 7 years old</i>. </p> <div class="mw-heading mw-heading4"><h4 id="Latihan_parameter_dan_susun_atur_tag" data-mw-thread-id="h-Latihan_parameter_dan_susun_atur_tag-Parameter-Parameter"><span data-mw-comment-start="" id="h-Latihan_parameter_dan_susun_atur_tag-Parameter-Parameter"></span>Latihan parameter dan susun atur tag<span data-mw-comment-end="h-Latihan_parameter_dan_susun_atur_tag-Parameter-Parameter"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=15" title="Sunting bahagian: Latihan parameter dan susun atur tag" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=15" title="Sunting kod sumber bahagian: Latihan parameter dan susun atur tag"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Parameters that are not used in the template are ignored if they are provided by the template tag. This was intended to prevent transclusions from breaking if a template is changed in a way that removes a parameter; there's no need to go to every page a template is transcluded onto and change the tags. This has an added benefit, however, of making some template tags more readable, through spacing, or by adding comments. Using {{<a href="/wiki/Templat:T3d" title="Templat:T3d">t3d</a>}}: </p> <table class="wikitable" style="text-align:center;" width="80%"> <caption>Dummy parameters </caption> <tbody><tr> <th width="30%">Description</th> <th width="40%">Text Entered</th> <th width="30%">Result </th></tr> <tr> <td>Adding comments using template {{<a href="/wiki/Templat:T3d" title="Templat:T3d">t3d</a>}} </td> <td><pre>{{t3d |a|b|c| row 1 |d|e|f| row 2 |g|h|i| row 3 }}</pre> </td> <td>a b c<br/> <p>d e f<br/> g h i </p> </td></tr></tbody></table> <p>Since {{<a href="/wiki/Templat:T3d" title="Templat:T3d">t3d</a>}} does not use parameters {{{4}}}, {{{8}}}, or {{{12}}} the 'row #' values have no effect on the produced wikitext. </p><p>Dummy named parameters can be used in any template tag; simply choose an unused parameter name and add it into the tag as 'unusedname = value'. One special case of a named dummy parameter is to use an empty string as the parameter name. This acts like a named parameter in that it isn't counted when assessing the unnamed parameter positions, but it doesn't risk accidentally conflicting with an actual named parameter. </p> <table class="wikitable" style="text-align:left;" width="80%"> <caption>Named dummy parameter (empty string) </caption> <tbody><tr> <th width="30%">Description</th> <th width="40%">Text Entered</th> <th width="30%">Result </th></tr> <tr> <td>dummy variables with {{<a href="/wiki/Templat:Chess_position" title="Templat:Chess position">chess position</a>}} </td> <td><pre>{{chess position|= comments go here 8 |rd|nd|bd|qd|kd|bd|nd|rd|= 7 |pd|pd|pd| | |pd|pd|pd|= 6 | | | | | | | | |= 5 | | | |pd|pd| | | |= standard opening 4 | |pl| | | | |pl| |= 3 | | | | | | | |bl|= odd move 2 |pl| |pl|pl|pl|pl| |pl|= 1 |rl|nl|bl|ql|kl| |nl|rl|= a b c d e f g h |30}} </pre> </td> <td> <table cellspacing="0" cellpadding="0" style="border-collapse: collapse; background-color:{{{66}}};"> <tbody><tr> <td style="text-align: center; font-family: monospace; border-top: none; padding-right: 2px;">8 </td> <td style="border-top: solid thin; border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_rdl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/4/43/Chess_rdl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-top: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_ndd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/18/Chess_ndd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-top: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_bdl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/1f/Chess_bdl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-top: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_qdd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/5f/Chess_qdd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-top: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_kdl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/e/e6/Chess_kdl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-top: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_bdd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/0/02/Chess_bdd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-top: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_ndl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/7/7d/Chess_ndl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-top: solid thin; border-right: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_rdd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/53/Chess_rdd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr> <td style="text-align: center; font-family: monospace; padding-right: 2px;">7 </td> <td style="border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/53/Chess_pdd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/1f/Chess_pdl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/53/Chess_pdd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/1f/Chess_pdl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/53/Chess_pdd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-right: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/1f/Chess_pdl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr> <td style="text-align: center; font-family: monospace; padding-right: 2px;">6 </td> <td style="border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-right: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr> <td style="text-align: center; font-family: monospace; padding-right: 2px;">5 </td> <td style="border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdl40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/1f/Chess_pdl40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pdd40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/53/Chess_pdd40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-right: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr> <td style="text-align: center; font-family: monospace; padding-right: 2px;">4 </td> <td style="border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/56/Chess_pld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/e/ed/Chess_pll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-right: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr> <td style="text-align: center; font-family: monospace; padding-right: 2px;">3 </td> <td style="border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-right: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_bll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/1a/Chess_bll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr> <td style="text-align: center; font-family: monospace; padding-right: 2px;">2 </td> <td style="border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/e/ed/Chess_pll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_d40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/39/Chess_d40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/e/ed/Chess_pll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/56/Chess_pld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/e/ed/Chess_pll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/56/Chess_pld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-right: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_pld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/56/Chess_pld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr> <td style="text-align: center; font-family: monospace; padding-right: 2px;">1 </td> <td style="border-bottom: solid thin; border-left: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_rld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/4/47/Chess_rld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-bottom: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_nll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/c/c6/Chess_nll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-bottom: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_bld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/7/75/Chess_bld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-bottom: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_qll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/1/14/Chess_qll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-bottom: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_kld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/5/52/Chess_kld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-bottom: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_l40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/3/3e/Chess_l40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-bottom: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_nld40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/d/d2/Chess_nld40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td> <td style="border-right: solid thin; border-bottom: solid thin;"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fail:Chess_rll40.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/f/f8/Chess_rll40.png" decoding="async" width="40" height="40" class="mw-file-element" data-file-width="40" data-file-height="40"/></a></span> </td></tr> <tr style="text-align: center; font-family: monospace; font-size: 100%;"> <td> </td> <td>a </td> <td>b </td> <td>c </td> <td>d </td> <td>e </td> <td>f </td> <td>g </td> <td>h </td></tr></tbody></table> </td></tr></tbody></table> <p>{{<a href="/wiki/Templat:Chess_position" title="Templat:Chess position">chess position</a>}} uses the first 64 unnamed parameters to specify pieces; adding in unnumbered dummy parameters for comments would have required that the template be rewritten (or that the unnumbered parameters be specified explicitly using the '#=value' format). </p> <div class="mw-heading mw-heading4"><h4 id="Kekangan_terhadap_parameters_dan_nilai_parameter" data-mw-thread-id="h-Kekangan_terhadap_parameters_dan_nilai_parameter-Parameter-Parameter"><span data-mw-comment-start="" id="h-Kekangan_terhadap_parameters_dan_nilai_parameter-Parameter-Parameter"></span>Kekangan terhadap parameters dan nilai parameter<span data-mw-comment-end="h-Kekangan_terhadap_parameters_dan_nilai_parameter-Parameter-Parameter"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=16" title="Sunting bahagian: Kekangan terhadap parameters dan nilai parameter" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=16" title="Sunting kod sumber bahagian: Kekangan terhadap parameters dan nilai parameter"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Unnamed parameters cannot be assigned a value containing an <a href="/w/index.php?title=Equals_sign&action=edit&redlink=1" class="new" title="Equals sign (laman tidak wujud)">equals sign (=)</a>; the parser will treat the equals sign as the assignment of a named parameter. There are several indirect means around this limitation: <ul><li>In the template, write the value as the default of an undefined parameter: <ul><li>{{{...| a=b }}}, where the ellipsis can be number of an unused positional parameter, or can be a blank string (a null parameter).</li></ul></li> <li>In the article, assign the values to the template parameters with one of the following methods: <ul><li>{{<i>templatename</i>| 1= a=b }}, where the '1=' notation explicitly names the first unnamed parameter.</li> <li>Use the special template {{<a href="/wiki/Templat:%3D" title="Templat:=">=</a>}}, e.g. {{<i>template name</i>| a{{=}}b }}</li> <li>Use the HTML entity for an equals sign: &#x3d;. This is only useful for text representation; If the equals sign needs to be processed as an <i>actual</i> equals sign (as in another template) this approach won't work.</li></ul></li></ul></li> <li>Parameter values cannot contain <a href="/w/index.php?title=Vertical_bar&action=edit&redlink=1" class="new" title="Vertical bar (laman tidak wujud)">vertical pipe (|)</a> characters; the parser will treat the pipe character as a separator rather than as text. Pipes are possible within wikilinks (country=[[United States|USA]]) or nested templates (e.g. volume= {{convert|30|acre.ft|m3}}). Indirect means around this limitation are as follows: <ul><li>Use the special template {{<a href="/wiki/Templat:!" title="Templat:!">!</a>}}, which returns a valid pipe character. Use this method if you need something that will be read as an <i>actual</i> pipe character (for instance, if you're using the parameter to modify the structure of a wikitext table)</li> <li>Use the HTML entity for a vertical pipe: &#124;. This is only useful for text representation; If the pipe needs to be processed as an <i>actual</i> pipe this approach won't work.</li></ul></li> <li>Parameter values cannot contain unmatched sequential curled brackets - }} or {{. The parser will try to parse them as the beginning or ending of a template tag or parameter, and will throw errors somewhere. Parameters can, however, contain other parameters, magic words, or template tags. <ul><li>again, this can be circumvented using 'nowiki' tags or HTML entities.</li></ul></li></ul> <p>Parameters do not get expanded when they are inside nowiki tags or XML-style extension tags. Thus, the following will not work within a template - <myextension xparam={{{tparam}}}> ... </myextension> - because the parameter is not expanded: </p><p>Because template tags, parser functions, magic words, and parameters are all defined using curled braces, there are times when their combined use can be ambiguous. For example, the construction {{{{{NAMESPACE}}}}} might be interpreted as: </p> <ol><li>{{ {{{NAMESPACE}}} }} (a template tag whose name is specified by the named parameter NAMESPACE)</li> <li>{{{ {{NAMESPACE}} }}} (a parameter whose name is specified by the value of the magic word NAMESPACE).</li></ol> <p>In general, wherever the parser finds more than 3 opening braces in a row, it will assume it is a parameter if the matching closing braces are 3-in-a-row, or as a template tag if only two of the matching closing braces are contiguous. In some cases it is advisable to add a space in the opening brackets to clarify the construction. For instance, the {{{{{NAMESPACE}}}}} construction from above will always default to the first interpretation; it might be better to use {{{ {{NAMESPACE}}}}} or {{ {{{NAMESPACE}}}}} as required so that the intention of the code is clear to other editors. </p> <div class="mw-heading mw-heading3"><h3 id="Nesting_templates" data-mw-thread-id="h-Nesting_templates-Mencipta_dan_menyunting_templat"><span data-mw-comment-start="" id="h-Nesting_templates-Mencipta_dan_menyunting_templat"></span>Nesting templates<span data-mw-comment-end="h-Nesting_templates-Mencipta_dan_menyunting_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=17" title="Sunting bahagian: Nesting templates" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=17" title="Sunting kod sumber bahagian: Nesting templates"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Templates may contain other templates - usually called 'nesting'. As the template is processed, the wikitext produced by any nested templates is transcluded into the nesting template, so that the final product is essentially processed from the most deeply nested template out. While fairly straight-forward in application, it involves some noteworthy quirks and tricks. </p><p>To pass a parameter value to a nested template, place a parameter tag as the value of one of the nested template's parameters. </p> <ul><li>Examples: <ul><li>Template:A contains "the quick brown {{B|{{{3}}}}} jumped over...". This takes the value passed to the third positional parameter of Template:A and passes it as the first positional parameter of Template:B, then returns the wikitext produced by B as part of the phrase.</li> <li>Template:A contains "the quick brown {{B|waldo={{{3}}}}} jumped over...". As above, except the third positional parameter of Template:A is passed to the named parameter 'waldo' of Template:B.</li></ul></li></ul> <p>Template parameters themselves can be chosen conditionally. </p> <ul><li>Example: <ul><li>Template:A contains "the quick brown {{B|{{{3}}}=fox}} jumped over...". Template:A passes the word 'fox' to a parameter of Template:B that's named in A's third positional parameter.</li></ul></li></ul> <p>The Wikimedia software will allow a template to call itself, but will stop after one iteration to prevent an infinite loop. </p><p>When a nested template contains unmatched curled-brackets - as in {{<a href="/w/index.php?title=Templat:Lb&action=edit&redlink=1" class="new" title="Templat:Lb (laman tidak wujud)">lb</a>}} - the unmatched brackets are treated as text during processing, and do not affect the parsing of brackets in the nesting template. If the nested template is substituted, however, the substitution is processed first, and this <i>will</i> change how braces are parsed in the nesting template. This has little practical use, but can occasionally introduce unexpected errors. </p><p>See the <a href="/w/index.php?title=Bantuan:Advanced_templates&action=edit&redlink=1" class="new" title="Bantuan:Advanced templates (laman tidak wujud)">help:advanced templates</a> and <a href="https://meta.wikimedia.org/wiki/Help:Recursive_conversion_of_wikitext" class="extiw" title="meta:Help:Recursive conversion of wikitext">meta:Help:Recursive conversion of wikitext</a> for more information. </p> <div class="mw-heading mw-heading3"><h3 id="Noinclude,_includeonly,_and_onlyinclude" data-mw-thread-id="h-Noinclude,_includeonly,_and_onlyinclude-Mencipta_dan_menyunting_templat"><span id="Noinclude.2C_includeonly.2C_and_onlyinclude"></span><span data-mw-comment-start="" id="h-Noinclude,_includeonly,_and_onlyinclude-Mencipta_dan_menyunting_templat"></span>Noinclude, includeonly, and onlyinclude<span data-mw-comment-end="h-Noinclude,_includeonly,_and_onlyinclude-Mencipta_dan_menyunting_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=18" title="Sunting bahagian: Noinclude, includeonly, and onlyinclude" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=18" title="Sunting kod sumber bahagian: Noinclude, includeonly, and onlyinclude"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Several tags are available to control what does and doesn't get transcluded from a template.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> The three tags are noinclude, includeonly, and onlyinclude. They are used in the same fashion as standard HTML or XML blocks: opening and closing tags in angled brackets (e.g. <tt><noinclude>affected wikitext</noinclude></tt>). </p><p>Perhaps the most common issue with the use of these blocks is unwanted spaces or lines. It is important to remember that the effect of these tags ends immediately after the last angle bracket, not on the next line or with the next visible character. </p><p>These tags can be nested inside each other, though (for a given page) this really only applies to the 'onlyinclude' tag; nesting 'includeonly' and 'noinclude' tags is fairly pointless. Be careful not to split the tags, however. Constructions like this <tt><onlyinclude>abc<includeonly>def</onlyinclude>ghi</includeonly></tt> will not work as expected. Use the 'first opened, last closed' rule that is standard for XML. </p><p>Note further that expansions may not occur the way expected. For instance, <tt>~<includeonly>~</includeonly>~~</tt> will be displayed as <tt>~~~</tt> in the template, and will be transcluded as <tt>~~~~</tt>, but it will <i>not be expanded</i> in either case (as user name or the name/date combination). The template would have to be substituted to get this wikitext to expand. </p> <div class="mw-heading mw-heading4"><h4 id="noinclude" data-mw-thread-id="h-noinclude-Noinclude,_includeonly,_and_onlyinclude"><span data-mw-comment-start="" id="h-noinclude-Noinclude,_includeonly,_and_onlyinclude"></span>noinclude<span data-mw-comment-end="h-noinclude-Noinclude,_includeonly,_and_onlyinclude"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=19" title="Sunting bahagian: noinclude" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=19" title="Sunting kod sumber bahagian: noinclude"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The 'noinclude' tag is used to prevent text on the template page from being transcluded onto other pages. This is often used for: </p> <ul><li>documentation</li> <li>categories that apply to the template itself</li> <li>interwiki links to related templates on other wikis.</li></ul> <p>Its use is straightforward: </p> <dl><dd><tt>If this text were in a template page, this part would be transcluded</tt></dd><tt> </tt><dd><tt><noinclude>but this text would not be transcluded</noinclude></tt></dd></dl> <p>One of the peculiarities of 'noinclude' tags is that the text contained in them is actually processed, even though it is not included in the rendered output. This has to do with error reporting: the processor needs to retain the text while it checks that there is a valid </noinclude> closing tag, and this consumes system resources. For templates that are not heavily used, this is rarely a problem, but on some templates excess text (and interwiki links in particular) can create a tremendous overhead for the system. As a rule, interwikis and documentation should be placed on a /doc subpage (such as is generated automatically by the {{<a href="/wiki/Templat:Documentation" class="mw-redirect" title="Templat:Documentation">Documentation</a>}} template). </p> <div class="mw-heading mw-heading4"><h4 id="includeonly" data-mw-thread-id="h-includeonly-Noinclude,_includeonly,_and_onlyinclude"><span data-mw-comment-start="" id="h-includeonly-Noinclude,_includeonly,_and_onlyinclude"></span>includeonly<span data-mw-comment-end="h-includeonly-Noinclude,_includeonly,_and_onlyinclude"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=20" title="Sunting bahagian: includeonly" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=20" title="Sunting kod sumber bahagian: includeonly"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The 'includeonly' tag is the opposite of the 'noinclude' tag. Text within an include only block is <i>only</i> included when the page is transcluded, is does not appear on the template page itself. This is frequently used for: </p> <ul><li>categories that apply to the transclusion page</li> <li>hiding messy text or error messages that occur on the template page itself (often because parameters that need a value are undefined)</li></ul> <p>Its use is straightforward: </p> <dl><dd><tt>If this text were in a template page, this part would appear on the template page and on the transclusion page</tt></dd><tt> </tt><dd><tt><includeonly>but this text would only appear on the transclusion page</includeonly></tt></dd></dl> <div class="mw-heading mw-heading4"><h4 id="onlyinclude" data-mw-thread-id="h-onlyinclude-Noinclude,_includeonly,_and_onlyinclude"><span data-mw-comment-start="" id="h-onlyinclude-Noinclude,_includeonly,_and_onlyinclude"></span>onlyinclude<span data-mw-comment-end="h-onlyinclude-Noinclude,_includeonly,_and_onlyinclude"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=21" title="Sunting bahagian: onlyinclude" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=21" title="Sunting kod sumber bahagian: onlyinclude"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The 'onlyinclude' tag literally only includes the material that is between the tags; anything else on the page - even text within 'includeonly' tags, will appear on the template page but will not be included. This is not frequently used, but might be useful when only a small bit of text in the middle of an otherwise large page is to be transcluded. It is used like this: </p> <dl><dd><tt>If this text were in a template page, this part would be visible there, but would not be transcluded</tt></dd><tt> <dd><includeonly>This text would not be visible on the template page, nor would it be transcluded</includeonly></dd> </tt><dd><tt><onlyinclude>this text is all that would be transcluded</onlyinclude></tt></dd></dl> <div class="mw-heading mw-heading3"><h3 id="Magic_words" data-mw-thread-id="h-Magic_words-Mencipta_dan_menyunting_templat"><span data-mw-comment-start="" id="h-Magic_words-Mencipta_dan_menyunting_templat"></span>Magic words<span data-mw-comment-end="h-Magic_words-Mencipta_dan_menyunting_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=22" title="Sunting bahagian: Magic words" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=22" title="Sunting kod sumber bahagian: Magic words"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r5614044"><div role="note" class="hatnote navigation-not-searchable">Rencana utama: <a href="https://www.mediawiki.org/wiki/Help:Magic_words" class="extiw" title="mw:Help:Magic words">mw:Help:Magic words</a></div> <p>There are three general types of <a href="https://www.mediawiki.org/wiki/Help:Magic_words" class="extiw" title="mw:Help:Magic words">magic words</a> on Wikimedia pages. One - parser functions - are already discussed above. The second type - behavioral switches - involves page structure modifications which are of little use on templates. The last type, however - variables (or system variables) - are often used on templates. These magic words provide information directly from the system itself: local dates and times, information about the current articles or pages, and even information about the wiki itself. </p><p>System variables take the format {{...}} where the enclosed text is always entirely capitalized. A small number of system variables take a parameter as well, using the standard colon separator - {{MAGICWORD:parameter}}. If the enclosed text starts and ends with doubled underscores (__...__) it is a behavioral switch, not a variable. </p> <table class="wikitable" style="text-align:center;" width="80%"> <caption>Examples of System Variables </caption> <tbody><tr> <th width="30%">Description</th> <th width="40%">Text Entered</th> <th width="30%">Result (for this help page) </th></tr> <tr> <td>Page names </td> <td>{{PAGENAME}}<br/>{{FULLPAGENAME}} </td> <td>Templat<br/>Bantuan:Templat </td></tr> <tr> <td>Name of the current namespace </td> <td>{{NAMESPACE}} </td> <td>Bantuan </td></tr> <tr> <td>Number of registered users </td> <td>{{NUMBEROFUSERS}} </td> <td>345,717 </td></tr> <tr> <td>Number of pages in a given category </td> <td>{{PAGESINCATEGORY:"Weird Al" Yankovic albums}} </td> <td>0 </td></tr> <tr> <td>Current software version </td> <td>{{CURRENTVERSION}} </td> <td>1.44.0-wmf.4 (a8dd895) </td></tr> <tr> <td>Timestamp of last revision </td> <td>{{REVISIONTIMESTAMP}} </td> <td>20190301111046 </td></tr></tbody></table> <p>The PAGENAME and NAMESPACE variables are particularly useful, and frequently used, to change template behavior based on context. For example, if the template transcludes a category link (e.g. cleanup templates, which transclude a link categorizing the page as a page which needs cleanup), it will often check the NAMESPACE variable to make sure that talk pages, user pages, or anywhere else the tag might incidentally be placed do not themselves get categorized as pages needing cleanup. </p> <div class="mw-heading mw-heading3"><h3 id="Other_editing_information" data-mw-thread-id="h-Other_editing_information-Mencipta_dan_menyunting_templat"><span data-mw-comment-start="" id="h-Other_editing_information-Mencipta_dan_menyunting_templat"></span>Other editing information<span data-mw-comment-end="h-Other_editing_information-Mencipta_dan_menyunting_templat"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=23" title="Sunting bahagian: Other editing information" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=23" title="Sunting kod sumber bahagian: Other editing information"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>If the first included character of a template is one of the Wiki markup characters <b><tt>:;*#</tt></b>, then it is processed as though it is at the beginning of a line (even when the template tag is not). This allows the creation of various kinds of lists in templates where the template may not always be in the correct place for a list. To avoid this effect use <tt><nowiki>#</nowiki></tt> or a numeric character reference (<a href="/w/index.php?title=Templat:Mlw&action=edit&redlink=1" class="new" title="Templat:Mlw (laman tidak wujud)">Templat:Mlw</a>) or HTML entity such as <tt>&#58;</tt> for a colon. This NCR is also useful in conjunction with definition <a href="/w/index.php?title=Bantuan:List&action=edit&redlink=1" class="new" title="Bantuan:List (laman tidak wujud)">lists</a>.</li> <li>When a page called for transclusion is a redirect page, the redirect target is included instead.</li> <li>A page that consists of nothing but the transclusion of another page is similar to a redirect, with minor differences. This method can be used to create functional "double redirects", should a need for such arise.</li> <li>For debugging templates the following techniques are sometimes helpful <ul><li>using 'subst:' - substituting a template (rather than transcluding it) can show more clearly what is happening when the template is transcluded.</li> <li>using 'msgnw:' - this keyword (short for "message, nowiki") transcludes the wikitext of the template page, more or less, rather than the processed contents. it is not perfect: lists are rendered, comments are removed, and single newlines are replaced with spaces (which is particularly confounding when transcluding wikitext tables).</li></ul></li></ul> <table class="wikitable" style="text-align:center"> <caption>Transclusion, substitution and message no wiki of {{<a href="/w/index.php?title=Templat:Msgnw_demo&action=edit&redlink=1" class="new" title="Templat:Msgnw demo (laman tidak wujud)">msgnw demo</a>}} </caption> <tbody><tr> <th>Transclusion <br/>{{msgnw demo}}</th> <th>Substitution <br/>{{subst:msgnw demo}}</th> <th>Message, no wiki <br/>{{msgnw:msgnw demo}} </th></tr> <tr> <td><a href="/w/index.php?title=Templat:Msgnw_demo&action=edit&redlink=1" class="new" title="Templat:Msgnw demo (laman tidak wujud)">Templat:Msgnw demo</a> </td> <td> <ul><li>abc <b>def</b> <i>ghi</i> ≤</li> <li><a href="/w/index.php?title=Jkl&action=edit&redlink=1" class="new" title="Jkl (laman tidak wujud)">jkl</a> <a href="/w/index.php?title=Templat:T1demo&action=edit&redlink=1" class="new" title="Templat:T1demo (laman tidak wujud)">Templat:T1demo</a> [[<span style="white-space:nowrap;"><code>{{tlc|...}}</code></span>]]</li></ul> <ol><li>a</li> <li>b</li></ol> <p>jkl mno </p> </td> <td>[[:Templat:Msgnw demo]] </td> <td> </td></tr></tbody></table> <p>Click the edit link for this section to see how the substituted section is different. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Template-like_constructions" data-mw-thread-id="h-Template-like_constructions"><span data-mw-comment-start="" id="h-Template-like_constructions"></span>Template-like constructions<span data-mw-comment-end="h-Template-like_constructions"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=24" title="Sunting bahagian: Template-like constructions" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=24" title="Sunting kod sumber bahagian: Template-like constructions"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template-like_constructions","replies":["h-Composite_pages-Template-like_constructions","h-Pages_with_a_common_section-Template-like_constructions","h-Repetition_within_a_page-Template-like_constructions"]}}--></div> <p>Any Wikimedia page can be transcluded, and this allows for constructions that are not <i>technically</i> templates, but share some of the features of them. </p> <div class="mw-heading mw-heading3"><h3 id="Composite_pages" data-mw-thread-id="h-Composite_pages-Template-like_constructions"><span data-mw-comment-start="" id="h-Composite_pages-Template-like_constructions"></span>Composite pages<span data-mw-comment-end="h-Composite_pages-Template-like_constructions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=25" title="Sunting bahagian: Composite pages" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=25" title="Sunting kod sumber bahagian: Composite pages"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The wikitext of a page may (partly or fully) consist of tags for the inclusion of component pages. The component pages are usually not in the template namespace, and are often full pages in their own right. Composite pages are intended to gather the material on them into a central location. </p><p>Examples are: </p> <ul><li><a href="https://meta.wikimedia.org/wiki/Help:A_simple_composite_example" class="extiw" title="m:Help:A simple composite example">m:Help:A simple composite example</a></li> <li><a href="/w/index.php?title=Wikipedia:Village_pump&action=edit&redlink=1" class="new" title="Wikipedia:Village pump (laman tidak wujud)">Wikipedia:Village pump</a> with six component pages, e.g. <a href="/w/index.php?title=Wikipedia:Village_pump_(technical)&action=edit&redlink=1" class="new" title="Wikipedia:Village pump (technical) (laman tidak wujud)">Wikipedia:Village pump (technical)</a></li> <li>Daily a page like <a href="/w/index.php?title=Wikipedia:Votes_for_deletion/Log/2005_May_31&action=edit&redlink=1" class="new" title="Wikipedia:Votes for deletion/Log/2005 May 31 (laman tidak wujud)">Wikipedia:Votes for deletion/Log/2005 May 31</a> where each component page consists of the discussion on the deletion of one Wikipedia page, e.g. <a href="/w/index.php?title=Wikipedia:Votes_for_deletion/Sp3tt&action=edit&redlink=1" class="new" title="Wikipedia:Votes for deletion/Sp3tt (laman tidak wujud)">Wikipedia:Votes for deletion/Sp3tt</a> (for this day there are 75 of such component pages)</li> <li><a href="https://meta.wikimedia.org/wiki/Meta:Translation/Coordination" class="extiw" title="m:Meta:Translation/Coordination">m:Meta:Translation/Coordination</a>, mainly containing <ul><li><a href="https://meta.wikimedia.org/wiki/Meta:Translation/Coordination/List/Meta" class="extiw" title="m:Meta:Translation/Coordination/List/Meta">m:Meta:Translation/Coordination/List/Meta</a></li> <li><a href="https://meta.wikimedia.org/wiki/Meta:Translation/Coordination/List/Main" class="extiw" title="m:Meta:Translation/Coordination/List/Main">m:Meta:Translation/Coordination/List/Main</a></li></ul></li> <li><a class="external autonumber" href="https://ms.wikipedia.org/w/index.php?title=2005_English_cricket_season_(1-14_June)&diff=27917447&oldid=27330886">[1]</a> - rejection of composite page by Wikipedia</li></ul> <p>This allows the choice between viewing the component pages separately or together. Viewing a composite page is convenient when there are many small, related component pages, in that it allows an overview of all the components without the effort of following numerous links. </p><p>in general, each component page and the composite page are treated separately. While the actual changes on the component pages will be transcluded onto the composite page, the edit history, recent changes, page-watch settings, page protection, TOC, "what links here" link, and other Wikimedia features of the composite page do not reflect or affect the histories, watch settings, protection levels, <i>what links here</i> lists of the component pages. The composite page is a page in its own right. The talk page of a composite page is used to talk about the composition and the page in general, not the component pages, though it in turn could be a composite of the talk pages of the component pages. </p><p>Editing a section of a component page can be done directly from the composite page, see <a href="/w/index.php?title=Bantuan:Section&action=edit&redlink=1" class="new" title="Bantuan:Section (laman tidak wujud)">editing sections of included templates</a>. After saving, one ends up at the page for the component page to which the section belongs. </p><p>On projects with the <a href="/w/index.php?title=Bantuan:Interwiki_linking&action=edit&redlink=1" class="new" title="Bantuan:Interwiki linking (laman tidak wujud)">interlanguage link feature</a> the composite page shows the combined interlanguage links of all component pages, hence possibly multiple links for one language or even for one page. </p><p>See also <a href="/w/index.php?title=Perbincangan_Wikipedia:Template_namespace&action=edit&redlink=1" class="new" title="Perbincangan Wikipedia:Template namespace (laman tidak wujud)">Wikipedia talk:Template namespace#transcluding prose</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Pages_with_a_common_section" data-mw-thread-id="h-Pages_with_a_common_section-Template-like_constructions"><span data-mw-comment-start="" id="h-Pages_with_a_common_section-Template-like_constructions"></span>Pages with a common section<span data-mw-comment-end="h-Pages_with_a_common_section-Template-like_constructions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=26" title="Sunting bahagian: Pages with a common section" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=26" title="Sunting kod sumber bahagian: Pages with a common section"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>When two pages need to discuss the same material in the same way, they can share a section. This involves creating a third page and transcluding that page onto both pages. This third page may be a page in its own right or a subpage of either of the other two, and if the first it may be placed in the same namespace as the other pages or in template namespace. Common sections like this should be marked with an explanatory header, and/or given a special layout, to inform the reader that this section of the page is in a different location. They can easily confuse editors and readers alike if they aren't. </p><p>Examples: </p> <ul><li><a href="https://meta.wikimedia.org/wiki/Help:Editing_sections_of_included_templates" class="extiw" title="m:Help:Editing sections of included templates">m:Help:Editing sections of included templates</a> (<a href="https://meta.wikimedia.org/wiki/Help_talk:Editing_sections_of_included_templates" class="extiw" title="m:Help talk:Editing sections of included templates">bincang</a>, <a href="https://meta.wikimedia.org/wiki/Special:Whatlinkshere/Help:Editing_sections_of_included_templates" class="extiw" title="m:Special:Whatlinkshere/Help:Editing sections of included templates">pautan balik</a>, <a class="external text" href="https://meta.wikimedia.org//w/index.php?title=Bantuan:Editing_sections_of_included_templates&action=edit">sunting</a>)</li> <li><a href="https://meta.wikimedia.org/wiki/Help:Alphabetic_order" class="extiw" title="m:Help:Alphabetic order">m:Help:Alphabetic order</a> (<a href="https://meta.wikimedia.org/wiki/Help_talk:Alphabetic_order" class="extiw" title="m:Help talk:Alphabetic order">bincang</a>, <a href="https://meta.wikimedia.org/wiki/Special:Whatlinkshere/Help:Alphabetic_order" class="extiw" title="m:Special:Whatlinkshere/Help:Alphabetic order">pautan balik</a>, <a class="external text" href="https://meta.wikimedia.org//w/index.php?title=Bantuan:Alphabetic_order&action=edit">sunting</a>)</li></ul> <div class="mw-heading mw-heading3"><h3 id="Repetition_within_a_page" data-mw-thread-id="h-Repetition_within_a_page-Template-like_constructions"><span data-mw-comment-start="" id="h-Repetition_within_a_page-Template-like_constructions"></span>Repetition within a page<span data-mw-comment-end="h-Repetition_within_a_page-Template-like_constructions"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=27" title="Sunting bahagian: Repetition within a page" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=27" title="Sunting kod sumber bahagian: Repetition within a page"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>On pages where there is a lot of repetitive information - various kinds of lists, usually - it is sometimes useful to make a template which contains the repeating text, and then call that template multiple times. For example, <a href="/w/index.php?title=Templat:List_of_Languages&action=edit&redlink=1" class="new" title="Templat:List of Languages (laman tidak wujud)">Template:List of Languages</a> calls <a href="/w/index.php?title=Templat:Lang_def&action=edit&redlink=1" class="new" title="Templat:Lang def (laman tidak wujud)">Template:Lang def</a> repeatedly with different parameters in order to generate the visible text. </p><p>Simple repetition of the same text be handled with repetition of a parameter in a single template: e.g. {{<a href="/w/index.php?title=Templat:3x&action=edit&redlink=1" class="new" title="Templat:3x (laman tidak wujud)">3x</a>}}, where {{3x| howdy!}} produces <a href="/w/index.php?title=Templat:3x&action=edit&redlink=1" class="new" title="Templat:3x (laman tidak wujud)">Templat:3x</a>. </p><p>There is no real looping functionality built into the Mediawiki software as of this time (see, however, {{<a href="/wiki/Templat:For_loop" title="Templat:For loop">for loop</a>}}), but there are some tricks for mimicking them. For instance, repeatedly calling a template which repeatedly calls a different template can mimic a double loop (see e.g. <span class="plainlinks"><a href="/w/index.php?title=Templat:Ld&action=edit&redlink=1" class="new" title="Templat:Ld (laman tidak wujud)">Template:ld</a> <span style="font-size:90%;">(<a href="/wiki/Khas:Pautan_ke_sini/Template:ld" title="Khas:Pautan ke sini/Template:ld">pautan balik</a> <a class="external text" href="https://en.wikipedia.org/wiki/Template:ld?action=edit">sunting</a>)</span></span>, <span class="plainlinks"><a href="/w/index.php?title=Templat:L2d&action=edit&redlink=1" class="new" title="Templat:L2d (laman tidak wujud)">Template:l2d</a> <span style="font-size:90%;">(<a href="/wiki/Khas:Pautan_ke_sini/Template:l2d" title="Khas:Pautan ke sini/Template:l2d">pautan balik</a> <a class="external text" href="https://en.wikipedia.org/wiki/Template:l2d?action=edit">sunting</a>)</span></span>, and <span class="plainlinks"><a href="/w/index.php?title=Templat:L3d&action=edit&redlink=1" class="new" title="Templat:L3d (laman tidak wujud)">Template:l3d</a> <span style="font-size:90%;">(<a href="/wiki/Khas:Pautan_ke_sini/Template:l3d" title="Khas:Pautan ke sini/Template:l3d">pautan balik</a> <a class="external text" href="https://en.wikipedia.org/wiki/Template:l3d?action=edit">sunting</a>)</span></span>). Templates can also be coerced into calling themselves (normally prohibited by the Mediawiki software past a single instance, to prevent infinite loops), by the artful use of redirects (see <a href="https://meta.wikimedia.org/wiki/Template:Loop1" class="extiw" title="m:Template:Loop1">m:Template:Loop1</a> (<a href="https://meta.wikimedia.org/wiki/Special:Whatlinkshere/Template:Loop1" class="extiw" title="m:Special:Whatlinkshere/Template:Loop1">backlinks</a>, <a class="external text" href="https://meta.wikimedia.org/wiki/Template:Loop1?action=edit">edit</a>) See also <a href="https://meta.wikimedia.org/wiki/Help:Recursive_conversion_of_wikitext" class="extiw" title="m:Help:Recursive conversion of wikitext">m:Help:Recursive conversion of wikitext</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Common_usages,_tips_and_tricks" data-mw-thread-id="h-Common_usages,_tips_and_tricks"><span id="Common_usages.2C_tips_and_tricks"></span><span data-mw-comment-start="" id="h-Common_usages,_tips_and_tricks"></span>Common usages, tips and tricks<span data-mw-comment-end="h-Common_usages,_tips_and_tricks"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=28" title="Sunting bahagian: Common usages, tips and tricks" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=28" title="Sunting kod sumber bahagian: Common usages, tips and tricks"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Common_usages,_tips_and_tricks","replies":["h-Templates_as_table_pieces-Common_usages,_tips_and_tricks"]}}--></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r5614044"><div role="note" class="hatnote navigation-not-searchable">Lihat juga: <a href="/w/index.php?title=Wikipedia:Template_messages&action=edit&redlink=1" class="new" title="Wikipedia:Template messages (laman tidak wujud)">Wikipedia:Template messages</a></div> <div class="mw-heading mw-heading3"><h3 id="Templates_as_table_pieces" data-mw-thread-id="h-Templates_as_table_pieces-Common_usages,_tips_and_tricks"><span data-mw-comment-start="" id="h-Templates_as_table_pieces-Common_usages,_tips_and_tricks"></span>Templates as table pieces<span data-mw-comment-end="h-Templates_as_table_pieces-Common_usages,_tips_and_tricks"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=29" title="Sunting bahagian: Templates as table pieces" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=29" title="Sunting kod sumber bahagian: Templates as table pieces"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r5614044"><div role="note" class="hatnote navigation-not-searchable">Rencana utama: <a href="/w/index.php?title=Bantuan:Table&action=edit&redlink=1" class="new" title="Bantuan:Table (laman tidak wujud)">conditional table row</a></div> <p>Tables using wikitable syntax can have rows and cells provided by templates. For instance: </p> <table class="wikitable" style="text-align:left;" width="80%"> <caption>Adding a table row with a template </caption> <tbody><tr> <th>Table construction</th> <th>Template add_row contains</th> <th>Processed result </th></tr> <tr> <td><pre>{| border="1" |a||b |- {{add_row}} |c||d |} </pre> </td> <td><pre>|1||2 |- </pre> </td> <td><pre>{| border="1" |a||b |- |1||2 |- |c||d |} </pre> </td></tr></tbody></table> <p>This always works for wikitables, and will work for HTML tables if the server variable <a href="https://www.mediawiki.org/wiki/Manual:$wgUseTidy" class="extiw" title="mw:Manual:$wgUseTidy"> $wgUseTidy</a> is set to true (it defaults to false, but many WikiMedia projects enable it). </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Templates_in_different_versions_of_MediaWiki" data-mw-thread-id="h-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Templates_in_different_versions_of_MediaWiki"></span>Templates in different versions of MediaWiki<span data-mw-comment-end="h-Templates_in_different_versions_of_MediaWiki"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=30" title="Sunting bahagian: Templates in different versions of MediaWiki" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=30" title="Sunting kod sumber bahagian: Templates in different versions of MediaWiki"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Templates_in_different_versions_of_MediaWiki","replies":["h-Version_1.7-Templates_in_different_versions_of_MediaWiki","h-Version_1.6-Templates_in_different_versions_of_MediaWiki","h-Version_1.5-Templates_in_different_versions_of_MediaWiki","h-Version_1.4-Templates_in_different_versions_of_MediaWiki","h-Version_1.3-Templates_in_different_versions_of_MediaWiki","h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki","h-Version_1._..-Templates_in_different_versions_of_MediaWiki"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="Version_1.7" data-mw-thread-id="h-Version_1.7-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.7-Templates_in_different_versions_of_MediaWiki"></span>Version 1.7<span data-mw-comment-end="h-Version_1.7-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=31" title="Sunting bahagian: Version 1.7" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=31" title="Sunting kod sumber bahagian: Version 1.7"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="https://www.mediawiki.org/wiki/Extension:ParserFunctions" class="extiw" title="mw:Extension:ParserFunctions">ParserFunctions</a> were added. Before they were available, multiple assignments of parameters with the same name (and thus allowing parameter overrides) were ingeniously used to perform branching, e.g. in the now deleted <a href="https://en.wikipedia.org/wiki/Template:If_defined" class="extiw" title="en:Template:If defined">en:Template:If defined</a>.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1.6" data-mw-thread-id="h-Version_1.6-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.6-Templates_in_different_versions_of_MediaWiki"></span>Version 1.6<span data-mw-comment-end="h-Version_1.6-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=32" title="Sunting bahagian: Version 1.6" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=32" title="Sunting kod sumber bahagian: Version 1.6"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>More magic words and the <a href="/w/index.php?title=Bantuan:Parameter_default&action=edit&redlink=1" class="new" title="Bantuan:Parameter default (laman tidak wujud)">parameter default</a> mechanism were added.</li> <li><tt><noinclude></tt> and <tt><includeonly></tt> (see above) were added.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1.5" data-mw-thread-id="h-Version_1.5-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.5-Templates_in_different_versions_of_MediaWiki"></span>Version 1.5<span data-mw-comment-end="h-Version_1.5-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=33" title="Sunting bahagian: Version 1.5" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=33" title="Sunting kod sumber bahagian: Version 1.5"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>More <a href="/w/index.php?title=Bantuan:Magic_words&action=edit&redlink=1" class="new" title="Bantuan:Magic words (laman tidak wujud)">magic words</a> were added.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1.4" data-mw-thread-id="h-Version_1.4-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.4-Templates_in_different_versions_of_MediaWiki"></span>Version 1.4<span data-mw-comment-end="h-Version_1.4-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=34" title="Sunting bahagian: Version 1.4" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=34" title="Sunting kod sumber bahagian: Version 1.4"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Including the same template more than five times in the same page works from version 1.4, now on all Wikimedia sites. Also new was that subst can be used with parameters.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1.3" data-mw-thread-id="h-Version_1.3-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.3-Templates_in_different_versions_of_MediaWiki"></span>Version 1.3<span data-mw-comment-end="h-Version_1.3-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=35" title="Sunting bahagian: Version 1.3" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=35" title="Sunting kod sumber bahagian: Version 1.3"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>A specific template namespace is created. Templates are no longer stored in MediaWiki namespace.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></li> <li>See, among other things, <a class="external text" href="https://meta.wikimedia.org/wiki/Help:Template?oldid=86075#Default_values_of_parameters">default values of parameters</a>. Starting with version 1.3 the prefix "msg:" is generally optional.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1.2.6" data-mw-thread-id="h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki"></span>Version 1.2.6<span data-mw-comment-end="h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=36" title="Sunting bahagian: Version 1.2.6" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=36" title="Sunting kod sumber bahagian: Version 1.2.6"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Templates and MediaWiki interface messages are both stored in MediaWiki namespace: make a page MediaWiki:mytemplate and refer to it with {{msg:mytemplate}}. In this version parameters are not possible.</li> <li>Compatibility with 1.3, in the sense of having the content in Template:mytemplate, is possible with a redirect from MediaWiki:mytemplate to Template:mytemplate on the 1.2.6 project.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1._.." data-mw-thread-id="h-Version_1._..-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1._..-Templates_in_different_versions_of_MediaWiki"></span>Version 1. ..<span data-mw-comment-end="h-Version_1._..-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=37" title="Sunting bahagian: Version 1. .." class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=37" title="Sunting kod sumber bahagian: Version 1. .."><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Khas:Sumber_buku" title="Khas:Sumber buku">Special:BookSources</a> generates a page with external links based on <a href="/w/index.php?title=Wikipedia:Book_sources&action=edit&redlink=1" class="new" title="Wikipedia:Book sources (laman tidak wujud)">Wikipedia:Book sources</a> by replacing MAGICNUMBER with the ISBN to be entered. To some extent, this is a precursor to templates.</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Revision_history_of_pages_containing_templates" data-mw-thread-id="h-Revision_history_of_pages_containing_templates"><span data-mw-comment-start="" id="h-Revision_history_of_pages_containing_templates"></span>Revision history of pages containing templates<span data-mw-comment-end="h-Revision_history_of_pages_containing_templates"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=38" title="Sunting bahagian: Revision history of pages containing templates" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=38" title="Sunting kod sumber bahagian: Revision history of pages containing templates"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Revision_history_of_pages_containing_templates","replies":[]}}--></div> <p>Pages in the stored <a href="/w/index.php?title=Bantuan:Page_history&action=edit&redlink=1" class="new" title="Bantuan:Page history (laman tidak wujud)">page history</a> consist of wikitext with possible <i>references</i> to templates and images. When viewing an old version of a page, these refer to the current versions of the templates and images, if these still exist. Thus the former composite page is not reconstructed. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Other_pages_not_primarily_meant_for_direct_viewing" data-mw-thread-id="h-Other_pages_not_primarily_meant_for_direct_viewing"><span data-mw-comment-start="" id="h-Other_pages_not_primarily_meant_for_direct_viewing"></span>Other pages not primarily meant for direct viewing<span data-mw-comment-end="h-Other_pages_not_primarily_meant_for_direct_viewing"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=39" title="Sunting bahagian: Other pages not primarily meant for direct viewing" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=39" title="Sunting kod sumber bahagian: Other pages not primarily meant for direct viewing"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Other_pages_not_primarily_meant_for_direct_viewing","replies":[]}}--></div> <p>Pages not primarily meant for direct viewing include, apart from templates: </p> <ul><li>multilingual portal pages, see <a href="/w/index.php?title=Www&action=edit&redlink=1" class="new" title="Www (laman tidak wujud)">www</a></li> <li>CSS and JS pages, see <a href="/w/index.php?title=Bantuan:User_style&action=edit&redlink=1" class="new" title="Bantuan:User style (laman tidak wujud)">Help:User style</a></li> <li>pages in the MediaWiki namespace, see <a href="/w/index.php?title=Bantuan:System_message&action=edit&redlink=1" class="new" title="Bantuan:System message (laman tidak wujud)">Help:System message</a></li> <li><a href="/w/index.php?title=Wikipedia:Book_sources&action=edit&redlink=1" class="new" title="Wikipedia:Book sources (laman tidak wujud)">Wikipedia:Book sources</a>, used by <a href="/wiki/Khas:Sumber_buku" title="Khas:Sumber buku">Special:Booksources</a></li> <li><a href="https://meta.wikimedia.org/wiki/Spam_blacklist" class="extiw" title="m:Spam blacklist">m:Spam blacklist</a></li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="See_also" data-mw-thread-id="h-See_also"><span data-mw-comment-start="" id="h-See_also"></span>See also<span data-mw-comment-end="h-See_also"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=40" title="Sunting bahagian: See also" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=40" title="Sunting kod sumber bahagian: See also"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[]}}--></div> <table class="wikitable"> <tbody><tr> <th width="33%">Help pages </th> <th width="33%">Manual pages </th> <th width="33%">Special pages </th></tr> <tr valign="top"> <td> <ul><li><a href="https://meta.wikimedia.org/wiki/Help:Template" class="extiw" title="m:Help:Template">m:Help:Template</a></li> <li><a href="/w/index.php?title=Bantuan:Advanced_templates&action=edit&redlink=1" class="new" title="Bantuan:Advanced templates (laman tidak wujud)">Help:Advanced templates</a></li> <li><a href="https://meta.wikimedia.org/wiki/User:Happy-melon/Templates" class="extiw" title="meta:User:Happy-melon/Templates">meta:User:Happy-melon/Templates</a></li> <li><a href="https://www.mediawiki.org/wiki/Help:Templates" class="extiw" title="mw:Help:Templates">mw:Help:Templates</a></li> <li><a href="https://meta.wikimedia.org/wiki/Help:Advanced_templates" class="extiw" title="m:Help:Advanced templates">m:Help:Advanced templates</a></li> <li>Introductions: <ul><li><a href="/w/index.php?title=Transclusion&action=edit&redlink=1" class="new" title="Transclusion (laman tidak wujud)">Transclusion</a><span style="display:none">//ms.wikipedia.org/wiki/Transclusion</span></li> <li><a href="/w/index.php?title=Bantuan:A_quick_guide_to_templates&action=edit&redlink=1" class="new" title="Bantuan:A quick guide to templates (laman tidak wujud)">Help:A quick guide to templates</a><span style="display:none">//ms.wikipedia.org/wiki/Bantuan:A_quick_guide_to_templates</span></li> <li><a href="https://www.mediawiki.org/wiki/Help:Templates" class="extiw" title="mw:Help:Templates">mw:Help:Templates</a></li></ul></li> <li><a href="/w/index.php?title=Bantuan:Calculation&action=edit&redlink=1" class="new" title="Bantuan:Calculation (laman tidak wujud)">Help:Calculation</a></li> <li><a href="/w/index.php?title=Bantuan:Magic_words&action=edit&redlink=1" class="new" title="Bantuan:Magic words (laman tidak wujud)">Help:Magic words</a></li> <li><a href="https://www.mediawiki.org/wiki/Help:Magic_words" class="extiw" title="mw:Help:Magic words">mw:Help:Magic words</a></li> <li><a href="https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions" class="extiw" title="mw:Help:Extension:ParserFunctions">mw:Help:Extension:ParserFunctions</a></li> <li><a href="https://meta.wikimedia.org/wiki/Help:Parameter_default" class="extiw" title="m:Help:Parameter default">m:Help:Parameter default</a></li> <li><a href="/w/index.php?title=Bantuan:Substitution&action=edit&redlink=1" class="new" title="Bantuan:Substitution (laman tidak wujud)">Help:Substitution</a></li> <li><a href="/w/index.php?title=Wikipedia:Template_documentation&action=edit&redlink=1" class="new" title="Wikipedia:Template documentation (laman tidak wujud)">Wikipedia:Template documentation</a></li> <li><a href="/w/index.php?title=Bantuan:What_links_here&action=edit&redlink=1" class="new" title="Bantuan:What links here (laman tidak wujud)">Help:What links here</a></li> <li><a href="/w/index.php?title=Wikipedia:Template_namespace&action=edit&redlink=1" class="new" title="Wikipedia:Template namespace (laman tidak wujud)">Wikipedia:Template namespace</a></li> <li><a href="/w/index.php?title=Wikipedia:Template_limits&action=edit&redlink=1" class="new" title="Wikipedia:Template limits (laman tidak wujud)">Wikipedia:Template limits</a></li> <li><a href="/w/index.php?title=Wikipedia:Template_test_cases&action=edit&redlink=1" class="new" title="Wikipedia:Template test cases (laman tidak wujud)">Wikipedia:Template test cases</a></li></ul> </td> <td> <ul><li><a href="https://www.mediawiki.org/wiki/Manual:$wgEnableScaryTranscluding" class="extiw" title="mw:Manual:$wgEnableScaryTranscluding">interwiki transclusion</a></li> <li><a href="https://www.mediawiki.org/wiki/Extension:ExpandTemplates" class="extiw" title="mw:Extension:ExpandTemplates">mw:Extension:ExpandTemplates</a></li> <li><a href="https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion" class="extiw" title="mw:Extension:Labeled Section Transclusion">mw:Extension:Labeled Section Transclusion</a> - transclusion of part of a page</li> <li><a href="https://www.mediawiki.org/wiki/Extension:DynamicFunctions" class="extiw" title="mw:Extension:DynamicFunctions">#arg:</a> - instead of <i>including</i> a page for given parameter values, this allows <i>linking</i> to a page for given parameter values. Syntax for parameter use: {{arg:<i>parameter name</i>|<i>default</i>}}. Syntax for linking: external link style with "&<i>parameter name</i>=<i>parameter value</i>" added to the URL.</li> <li><a href="https://www.mediawiki.org/wiki/Manual:Parser.php" class="extiw" title="mw:Manual:Parser.php">mw:Manual:Parser.php</a></li></ul> </td> <td> <ul><li><a href="/wiki/Khas:Templat_dipaut_terbanyak" title="Khas:Templat dipaut terbanyak">Special:Mostlinkedtemplates</a> - shows the number of pages in which each template is transcluded, not counting transclusions through redirects</li> <li><a href="/wiki/Khas:Templat_tak_digunakan" title="Khas:Templat tak digunakan">Special:Unusedtemplates</a> - templates which are not transcluded (however, they may be used for substitution)</li> <li><a class="external text" href="https://ms.wikipedia.org/w/index.php?title=Khas:Allpages&namespace=10">Special:Allpages (namespace 10)</a> all templates on this server</li> <li><a href="/wiki/Khas:Kembangkan_templat" title="Khas:Kembangkan templat">Special:ExpandTemplates</a></li></ul> </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Notes" data-mw-thread-id="h-Notes"><span data-mw-comment-start="" id="h-Notes"></span>Notes<span data-mw-comment-end="h-Notes"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bantuan:Templat&veaction=edit&section=41" title="Sunting bahagian: Notes" class="mw-editsection-visualeditor"><span>sunting</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Bantuan:Templat&action=edit&section=41" title="Sunting kod sumber bahagian: Notes"><span>sunting sumber</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Notes","replies":[]}}--></div> <style data-mw-deduplicate="TemplateStyles:r6173370">.mw-parser-output .reflist{font-size:90%;margin-bottom:0.5em;list-style-type:decimal}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist reflist-columns references-column-width reflist-columns-2" style=""> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text">Namespaces from which transclusion is not allowed are specified on a wiki by the variable <a href="https://www.mediawiki.org/wiki/Manual:$wgNonincludableNamespaces" class="extiw" title="mw:Manual:$wgNonincludableNamespaces">$wgNonincludableNamespaces</a></span> </li> <li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text">technically, these features are available on all wikipedia pages, but they have little use outside of transclusion, and so they are generally considered template features.</span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text">Beginning with Wikimedia version 1.6.</span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><a href="/w/index.php?title=Pengguna:Template_namespace_initialisation_script&action=edit&redlink=1" class="new" title="Pengguna:Template namespace initialisation script (laman tidak wujud)">User:Template namespace initialisation script</a></span> </li> </ol></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐688fc9465‐8k9pq Cached time: 20241125172348 Cache expiry: 3600 Reduced expiry: true Complications: [show‐toc] DiscussionTools time usage: 0.041 seconds CPU time usage: 0.230 seconds Real time usage: 0.323 seconds Preprocessor visited node count: 2338/1000000 Post‐expand include size: 20121/2097152 bytes Template argument size: 1958/2097152 bytes Highest expansion depth: 11/100 Expensive parser function count: 1/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 7769/5000000 bytes Lua time usage: 0.024/10.000 seconds Lua memory usage: 1162196/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 177.753 1 -total 24.80% 44.086 1 Templat:Terjemahan 20.68% 36.761 1 Templat:Ambox 12.99% 23.096 4 Templat:Main 8.86% 15.756 1 Templat:Shortcut 7.31% 12.999 1 Templat:Reflist 5.27% 9.368 6 Templat:Nowrap 4.32% 7.682 10 Templat:Tc 3.88% 6.891 4 Templat:Spades 3.69% 6.566 3 Templat:Tiw --> <!-- Saved in parser cache with key mswiki:pcache:idhash:170543-0!canonical and timestamp 20241125172348 and revision id 4542984. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Diambil daripada "<a dir="ltr" href="https://ms.wikipedia.org/w/index.php?title=Bantuan:Templat&oldid=4542984">https://ms.wikipedia.org/w/index.php?title=Bantuan:Templat&oldid=4542984</a>"</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Kategori tersembunyi: <ul><li><a href="/wiki/Kategori:Laman_yang_menggunakan_argumen_pendua_dalam_panggilan_templat" title="Kategori:Laman yang menggunakan argumen pendua dalam panggilan templat">Laman yang menggunakan argumen pendua dalam panggilan templat</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> Laman ini kali terakhir disunting pada 11:10, 1 Mac 2019.</li> <li id="footer-info-copyright">Teks disediakan di bawah <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.ms">Lesen Creative Commons Pengiktirafan/Perkongsian Serupa</a>; terma tambahan mungkin digunapakai. Lihat <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terma Penggunaan</a> untuk butiran lanjut.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Dasar privasi</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Perihal">Perihal Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Penafian_umum">Penafian</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Kod Tatakelakuan</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Pembangun</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/ms.wikipedia.org">Statistik</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Kenyataan kuki</a></li> <li id="footer-places-mobileview"><a href="//ms.m.wikipedia.org/w/index.php?title=Bantuan:Templat&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Paparan mudah alih</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-688fc9465-8k9pq","wgBackendResponseTime":462,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Umum","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Pengenalan-Umum","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Muka_surat_templat_dan_ruang_nama-Umum","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Templat_penggunaan-Umum","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Contoh_penggunaan_templat","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Templat_dengan_tiada_parameter-Contoh_penggunaan_templat","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Templat_parameter_tiada_nama-Contoh_penggunaan_templat","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Templat_dengan_parameter_bernama-Contoh_penggunaan_templat","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Penggantian-Contoh_penggunaan_templat","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Lain-lain_maklumat_penggunaan-Contoh_penggunaan_templat","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Mencipta_dan_menyunting_templat","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Fungsi_Parser-Mencipta_dan_menyunting_templat","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Parameter-Parameter-Mencipta_dan_menyunting_templat","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Parameter_default-Parameter-Parameter","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Latihan_parameter_dan_susun_atur_tag-Parameter-Parameter","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Kekangan_terhadap_parameters_dan_nilai_parameter-Parameter-Parameter","replies":[]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Nesting_templates-Mencipta_dan_menyunting_templat","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Noinclude,_includeonly,_and_onlyinclude-Mencipta_dan_menyunting_templat","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-noinclude-Noinclude,_includeonly,_and_onlyinclude","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-includeonly-Noinclude,_includeonly,_and_onlyinclude","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-onlyinclude-Noinclude,_includeonly,_and_onlyinclude","replies":[]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Magic_words-Mencipta_dan_menyunting_templat","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Other_editing_information-Mencipta_dan_menyunting_templat","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template-like_constructions","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Composite_pages-Template-like_constructions","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Pages_with_a_common_section-Template-like_constructions","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Repetition_within_a_page-Template-like_constructions","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Common_usages,_tips_and_tricks","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Templates_as_table_pieces-Common_usages,_tips_and_tricks","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Templates_in_different_versions_of_MediaWiki","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.7-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.6-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.5-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.4-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.3-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1._..-Templates_in_different_versions_of_MediaWiki","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Revision_history_of_pages_containing_templates","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Other_pages_not_primarily_meant_for_direct_viewing","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Notes","replies":[]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.041"},"limitreport":{"cputime":"0.230","walltime":"0.323","ppvisitednodes":{"value":2338,"limit":1000000},"postexpandincludesize":{"value":20121,"limit":2097152},"templateargumentsize":{"value":1958,"limit":2097152},"expansiondepth":{"value":11,"limit":100},"expensivefunctioncount":{"value":1,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":7769,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 177.753 1 -total"," 24.80% 44.086 1 Templat:Terjemahan"," 20.68% 36.761 1 Templat:Ambox"," 12.99% 23.096 4 Templat:Main"," 8.86% 15.756 1 Templat:Shortcut"," 7.31% 12.999 1 Templat:Reflist"," 5.27% 9.368 6 Templat:Nowrap"," 4.32% 7.682 10 Templat:Tc"," 3.88% 6.891 4 Templat:Spades"," 3.69% 6.566 3 Templat:Tiw"]},"scribunto":{"limitreport-timeusage":{"value":"0.024","limit":"10.000"},"limitreport-memusage":{"value":1162196,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-688fc9465-8k9pq","timestamp":"20241125172348","ttl":3600,"transientcontent":true}}});});</script> </body> </html>