CINXE.COM
Bantuan:DataTemplat - MediaWiki
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-disabled 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="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Bantuan:DataTemplat - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled 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(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);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":"bc9126b3-f4ec-40c7-bbb9-dd2c93ebae1c","wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:TemplateData/ms","wgTitle":"TemplateData/ms","wgCurRevisionId":6796478,"wgRevisionId":6796478,"wgArticleId":1332303,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"ms","wgPageContentLanguage":"ms","wgPageContentModel":"wikitext","wgRelevantPageName":"Help:TemplateData/ms","wgRelevantArticleId":1332303,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"ms", "pageLanguageDir":"ltr","pageVariantFallbacks":"ms"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":100000,"wgTranslatePageTranslation":"translation","wgCentralAuthMobileDomain":false,"wgVisualEditorDisabledByHook":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"visual","wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready", "ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","ext.translate.tag.languages":"ready","ext.pygments":"ready","ext.templateData":"ready","ext.templateData.images":"ready","jquery.tablesorter.styles":"ready","ext.discussionTools.init.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","jquery.tablesorter","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.echo.centralauth","ext.discussionTools.init", "ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints"];</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=en&modules=ext.discussionTools.init.styles%7Cext.pygments%2CtemplateData%2Ctranslate%2CwikimediaBadges%7Cext.templateData.images%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.wikimediamessages.styles%7Cjquery.tablesorter.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=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <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:site_name" content="MediaWiki"> <meta property="og:title" content="Bantuan:DataTemplat - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Help:TemplateData/ms"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Help:TemplateData/ms&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Help:TemplateData/ms"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&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-Help_TemplateData_ms rootpage-Help_TemplateData skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</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="Site"> <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="Main menu" > <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">Main menu</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">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/MediaWiki" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-mw-download" class="mw-list-item"><a href="/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/wiki/Special:MyLanguage/How_to_contribute"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support" > <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>User help</span></a></li><li id="n-mw-faq" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Communication"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development" > <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/wiki/Development_statistics"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org" > <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Project:Help" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-mw-translate" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-mw-discussion" class="mw-list-item"><a href="/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/wiki/Project:Sandbox"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang" > <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=mediawikiwiki&page=Help%3ATemplateData%2Fms" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </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/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</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="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </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="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <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="Appearance" > <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">Appearance</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="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=www.mediawiki.org&uselang=en" class=""><span>Donate</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=Special:CreateAccount&returnto=Help%3ATemplateData%2Fms" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</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=Special:UserLogin&returnto=Help%3ATemplateData%2Fms" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</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="More options" > <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="Personal tools" > <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">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <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="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=www.mediawiki.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Help%3ATemplateData%2Fms" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Help%3ATemplateData%2Fms" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</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"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</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/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</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="Site"> <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="Contents" 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">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</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">Beginning</div> </a> </li> <li id="toc-Sejarah" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Sejarah"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Sejarah</span> </div> </a> <ul id="toc-Sejarah-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Menambah_atau_menyunting_TemplateData" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Menambah_atau_menyunting_TemplateData"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Menambah atau menyunting TemplateData</span> </div> </a> <button aria-controls="toc-Menambah_atau_menyunting_TemplateData-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>Toggle Menambah atau menyunting TemplateData subsection</span> </button> <ul id="toc-Menambah_atau_menyunting_TemplateData-sublist" class="vector-toc-list"> <li id="toc-Menyemak_keadaan_semasa" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Menyemak_keadaan_semasa"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Menyemak keadaan semasa</span> </div> </a> <ul id="toc-Menyemak_keadaan_semasa-sublist" class="vector-toc-list"> <li id="toc-Subhalaman_dokumentasi" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Subhalaman_dokumentasi"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.1</span> <span>Subhalaman dokumentasi</span> </div> </a> <ul id="toc-Subhalaman_dokumentasi-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Templat_tanpa_subhalaman_dokumentasi" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Templat_tanpa_subhalaman_dokumentasi"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2</span> <span>Templat tanpa subhalaman dokumentasi</span> </div> </a> <ul id="toc-Templat_tanpa_subhalaman_dokumentasi-sublist" class="vector-toc-list"> <li id="toc-Mencipta_subhalaman_dan_memindahkan_dokumentasi" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Mencipta_subhalaman_dan_memindahkan_dokumentasi"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2.1</span> <span>Mencipta subhalaman dan memindahkan dokumentasi</span> </div> </a> <ul id="toc-Mencipta_subhalaman_dan_memindahkan_dokumentasi-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2.2</span> <span>Menambah dan menyunting data templat pada halaman templat utama</span> </div> </a> <ul id="toc-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2.3</span> <span>Menambah dan menyunting data templat pada halaman templat utama</span> </div> </a> <ul id="toc-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Kaedah" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Kaedah"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Kaedah</span> </div> </a> <ul id="toc-Kaedah-sublist" class="vector-toc-list"> <li id="toc-Kaedah_penyunting_data_templat" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Kaedah_penyunting_data_templat"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.1</span> <span>Kaedah penyunting data templat</span> </div> </a> <ul id="toc-Kaedah_penyunting_data_templat-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Kaedah_manual" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Kaedah_manual"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.2</span> <span>Kaedah manual</span> </div> </a> <ul id="toc-Kaedah_manual-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Parameter_TemplateData" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Parameter_TemplateData"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Parameter TemplateData</span> </div> </a> <button aria-controls="toc-Parameter_TemplateData-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>Toggle Parameter TemplateData subsection</span> </button> <ul id="toc-Parameter_TemplateData-sublist" class="vector-toc-list"> <li id="toc-Within_params" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Within_params"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Within params</span> </div> </a> <ul id="toc-Within_params-sublist" class="vector-toc-list"> <li id="toc-Within_the_parameter's_name" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Within_the_parameter's_name"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1.1</span> <span>Within the parameter's name</span> </div> </a> <ul id="toc-Within_the_parameter's_name-sublist" class="vector-toc-list"> <li id="toc-Type_parameter" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Type_parameter"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1.1.1</span> <span>Type parameter</span> </div> </a> <ul id="toc-Type_parameter-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Custom_formats" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Custom_formats"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span><span dir="ltr">Custom formats</span></span> </div> </a> <ul id="toc-Custom_formats-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Blank_boilerplate" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Blank_boilerplate"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3</span> <span>Blank boilerplate</span> </div> </a> <ul id="toc-Blank_boilerplate-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Errors" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Errors"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Errors</span> </div> </a> <button aria-controls="toc-Errors-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>Toggle Errors subsection</span> </button> <ul id="toc-Errors-sublist" class="vector-toc-list"> <li id="toc-Ralat_sintaks_dalam_JSON._/_Bad_JSON_format" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Ralat_sintaks_dalam_JSON._/_Bad_JSON_format"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Ralat sintaks dalam JSON. / Bad JSON format</span> </div> </a> <ul id="toc-Ralat_sintaks_dalam_JSON._/_Bad_JSON_format-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Sifat_"paramOrder[number]"_yang_diperlukan_tidak_dijumpai." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Sifat_"paramOrder[number]"_yang_diperlukan_tidak_dijumpai."> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Sifat "paramOrder[<span dir="ltr">number</span>]" yang diperlukan tidak dijumpai.</span> </div> </a> <ul id="toc-Sifat_"paramOrder[number]"_yang_diperlukan_tidak_dijumpai.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Nilai_tidak_sah_untuk_sifat_"paramOrder[number]"." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Nilai_tidak_sah_untuk_sifat_"paramOrder[number]"."> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>Nilai tidak sah untuk sifat "paramOrder[<span dir="ltr">number</span>]".</span> </div> </a> <ul id="toc-Nilai_tidak_sah_untuk_sifat_"paramOrder[number]".-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Sifat_"params.parametername.required"_dijangka_jenis_"boolean"." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Sifat_"params.parametername.required"_dijangka_jenis_"boolean"."> <div class="vector-toc-text"> <span class="vector-toc-numb">4.4</span> <span>Sifat "params.<span dir="ltr">parametername</span>.required" dijangka jenis "boolean".</span> </div> </a> <ul id="toc-Sifat_"params.parametername.required"_dijangka_jenis_"boolean".-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Property_"format"_is_expected_to_be_..." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Property_"format"_is_expected_to_be_..."> <div class="vector-toc-text"> <span class="vector-toc-numb">4.5</span> <span>Property "format" is expected to be ...</span> </div> </a> <ul id="toc-Property_"format"_is_expected_to_be_...-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Sifat_"parametername"_tidak_dijangka." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Sifat_"parametername"_tidak_dijangka."> <div class="vector-toc-text"> <span class="vector-toc-numb">4.6</span> <span>Sifat "<span dir="ltr">parametername</span>" tidak dijangka.</span> </div> </a> <ul id="toc-Sifat_"parametername"_tidak_dijangka.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Sifat_"params"_yang_diperlukan_tidak_dijumpai." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Sifat_"params"_yang_diperlukan_tidak_dijumpai."> <div class="vector-toc-text"> <span class="vector-toc-numb">4.7</span> <span>Sifat "params" yang diperlukan tidak dijumpai.</span> </div> </a> <ul id="toc-Sifat_"params"_yang_diperlukan_tidak_dijumpai.-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Limitations_and_feedback" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Limitations_and_feedback"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Limitations and feedback</span> </div> </a> <ul id="toc-Limitations_and_feedback-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Other_tools" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Other_tools"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Other tools</span> </div> </a> <ul id="toc-Other_tools-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="Contents" 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="Toggle the table of contents" > <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">Toggle the table of contents</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">Bantuan:DataTemplat</h1> <div class="mw-indicators"> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <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/Help:TemplateData/ms" title="View the help page [c]" accesskey="c"><span>Help</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Help_talk:TemplateData/ms&action=edit&redlink=1" rel="discussion" class="new" title="Discussion about the content page (page does not exist) [t]" accesskey="t"><span>Discussion</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="Change language variant" > <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="Views"> <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/Help:TemplateData/ms"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Special:Translate&group=page-Help%3ATemplateData&action=page&filter=&language=ms" title="Edit this page [e]" accesskey="e"><span>Translate</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Help:TemplateData/ms&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <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="Tools" > <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">Tools</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">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </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/Help:TemplateData/ms"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:Translate&group=page-Help%3ATemplateData&action=page&filter=&language=ms" title="Edit this page [e]" accesskey="e"><span>Translate</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Help:TemplateData/ms&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Help:TemplateData/ms" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Help:TemplateData/ms" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Help:TemplateData/ms&oldid=6796478" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Help:TemplateData/ms&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FHelp%3ATemplateData%2Fms"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FHelp%3ATemplateData%2Fms"><span>Download QR code</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"> Print/export </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=Special:Book&bookcmd=book_creator&referer=Help%3ATemplateData%2Fms"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Help%3ATemplateData%2Fms&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Help:TemplateData/ms&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </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="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <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">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</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 id="siteSub" class="noprint">From mediawiki.org</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint" dir="ltr" lang="en">This page is a <span class="plainlinks"><a class="external text" href="https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-Help%3ATemplateData&action=page&filter=&language=ms">translated version</a></span> of the page <a href="/wiki/Help:TemplateData" title="Help:TemplateData">Help:TemplateData</a> and the translation is 32% complete.</div><div class="mw-pt-translate-header" dir="ltr" lang="en"><span class="mw-translate-fuzzy">Outdated translations are marked like this.</span></div><div class="mw-content-ltr mw-parser-output" lang="ms" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Help:TemplateData/id" class="mw-pt-progress mw-pt-progress--med" title="Bantuan:TemplateData (30% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><span class="mw-pt-languages-selected mw-pt-progress mw-pt-progress--med" lang="ms" dir="ltr">Bahasa Melayu</span></li> <li><a href="/wiki/Help:TemplateData/cy" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData/cy (0% translated)" lang="cy" dir="ltr">Cymraeg</a></li> <li><a href="/wiki/Help:TemplateData/de" class="mw-pt-progress mw-pt-progress--med" title="Hilfe:TemplateData (54% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><a href="/wiki/Help:TemplateData" class="mw-pt-languages-ui mw-pt-progress mw-pt-progress--complete" title="Help:TemplateData (100% translated)" lang="en" dir="ltr">English</a></li> <li><a href="/wiki/Help:TemplateData/eo" class="mw-pt-progress mw-pt-progress--low" title="Helpo:TemplateData (3% translated)" lang="eo" dir="ltr">Esperanto</a></li> <li><a href="/wiki/Help:TemplateData/ilo" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (0% translated)" lang="ilo" dir="ltr">Ilokano</a></li> <li><a href="/wiki/Help:TemplateData/dtp" class="mw-pt-progress mw-pt-progress--low" title="Uhupai: TemplateData (2% translated)" lang="dtp" dir="ltr">Kadazandusun</a></li> <li><a href="/wiki/Help:TemplateData/lb" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (1% translated)" lang="lb" dir="ltr">Lëtzebuergesch</a></li> <li><a href="/wiki/Help:TemplateData/mrh" class="mw-pt-progress mw-pt-progress--low" title="Baona:TemplateData (0% translated)" lang="mrh" dir="ltr">Mara</a></li> <li><a href="/wiki/Help:TemplateData/nl" class="mw-pt-progress mw-pt-progress--complete" title="Help:TemplateData (100% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/wiki/Help:TemplateData/om" class="mw-pt-progress mw-pt-progress--low" title="Gargaarsa:TemplateData (1% translated)" lang="om" dir="ltr">Oromoo</a></li> <li><a href="/wiki/Help:TemplateData/sco" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (0% translated)" lang="sco" dir="ltr">Scots</a></li> <li><a href="/wiki/Help:TemplateData/su" class="mw-pt-progress mw-pt-progress--low" title="Pitulung:DataCitakan (0% translated)" lang="su" dir="ltr">Sunda</a></li> <li><a href="/wiki/Help:TemplateData/vi" class="mw-pt-progress mw-pt-progress--low" title="Trợ giúp:Dữ liệu bản mẫu (6% translated)" lang="vi" dir="ltr">Tiếng Việt</a></li> <li><a href="/wiki/Help:TemplateData/tr" class="mw-pt-progress mw-pt-progress--high" title="Help:TemplateData (98% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/wiki/Help:TemplateData/yo" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData/yo (1% translated)" lang="yo" dir="ltr">Yorùbá</a></li> <li><a href="/wiki/Help:TemplateData/diq" class="mw-pt-progress mw-pt-progress--low" title="Help:Şablon malumat (2% translated)" lang="diq" dir="ltr">Zazaki</a></li> <li><a href="/wiki/Help:TemplateData/ast" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (0% translated)" lang="ast" dir="ltr">asturianu</a></li> <li><a href="/wiki/Help:TemplateData/az" class="mw-pt-progress mw-pt-progress--low" title="Kömək:ŞablonMəlumatları (0% translated)" lang="az" dir="ltr">azərbaycanca</a></li> <li><a href="/wiki/Help:TemplateData/br" class="mw-pt-progress mw-pt-progress--low" title="Skoazell:TemplateData (0% translated)" lang="br" dir="ltr">brezhoneg</a></li> <li><a href="/wiki/Help:TemplateData/ca" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (9% translated)" lang="ca" dir="ltr">català</a></li> <li><a href="/wiki/Help:TemplateData/da" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (da) (2% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Help:TemplateData/eml" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (0% translated)" lang="egl" dir="ltr">emiliàn e rumagnòl</a></li> <li><a href="/wiki/Help:TemplateData/es" class="mw-pt-progress mw-pt-progress--high" title="Ayuda:TemplateData (97% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Help:TemplateData/eu" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (4% translated)" lang="eu" dir="ltr">euskara</a></li> <li><a href="/wiki/Help:TemplateData/fr" class="mw-pt-progress mw-pt-progress--complete" title="Aide:TemplateData (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Help:TemplateData/fo" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (0% translated)" lang="fo" dir="ltr">føroyskt</a></li> <li><a href="/wiki/Help:TemplateData/gl" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (0% translated)" lang="gl" dir="ltr">galego</a></li> <li><a href="/wiki/Help:TemplateData/hr" class="mw-pt-progress mw-pt-progress--low" title="Pomoć:TemplateData (0% translated)" lang="hr" dir="ltr">hrvatski</a></li> <li><a href="/wiki/Help:TemplateData/it" class="mw-pt-progress mw-pt-progress--high" title="Help:TemplateData (97% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/wiki/Help:TemplateData/lt" class="mw-pt-progress mw-pt-progress--low" title="Pagalba:TemplateData (3% translated)" lang="lt" dir="ltr">lietuvių</a></li> <li><a href="/wiki/Help:TemplateData/hu" class="mw-pt-progress mw-pt-progress--med" title="Segítség:TemplateData (37% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Help:TemplateData/oc" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData/oc (2% translated)" lang="oc" dir="ltr">occitan</a></li> <li><a href="/wiki/Help:TemplateData/pl" class="mw-pt-progress mw-pt-progress--low" title="Pomoc:TemplateData (9% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Help:TemplateData/pt" class="mw-pt-progress mw-pt-progress--low" title="Ajuda:TemplateData (11% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/wiki/Help:TemplateData/pt-br" class="mw-pt-progress mw-pt-progress--med" title="Ajuda:TemplateData (16% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Help:TemplateData/ro" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData/ro (0% translated)" lang="ro" dir="ltr">română</a></li> <li><a href="/wiki/Help:TemplateData/sk" class="mw-pt-progress mw-pt-progress--low" title="Pomoc:TemplateData (0% translated)" lang="sk" dir="ltr">slovenčina</a></li> <li><a href="/wiki/Help:TemplateData/sl" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (0% translated)" lang="sl" dir="ltr">slovenščina</a></li> <li><a href="/wiki/Help:TemplateData/fi" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (9% translated)" lang="fi" dir="ltr">suomi</a></li> <li><a href="/wiki/Help:TemplateData/sv" class="mw-pt-progress mw-pt-progress--med" title="Help:TemplateData (15% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="/wiki/Help:TemplateData/tly" class="mw-pt-progress mw-pt-progress--low" title="Dastək:ŠablonMəlumot (4% translated)" lang="tly" dir="ltr">tolışi</a></li> <li><a href="/wiki/Help:TemplateData/vec" class="mw-pt-progress mw-pt-progress--low" title="Juto:TemplateData (0% translated)" lang="vec" dir="ltr">vèneto</a></li> <li><a href="/wiki/Help:TemplateData/cs" class="mw-pt-progress mw-pt-progress--high" title="Nápověda:TemplateData (99% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Help:TemplateData/el" class="mw-pt-progress mw-pt-progress--med" title="Βοήθεια:TemplateData (37% translated)" lang="el" dir="ltr">Ελληνικά</a></li> <li><a href="/wiki/Help:TemplateData/bg" class="mw-pt-progress mw-pt-progress--med" title="Help:TemplateData (18% translated)" lang="bg" dir="ltr">български</a></li> <li><a href="/wiki/Help:TemplateData/mk" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData (1% translated)" lang="mk" dir="ltr">македонски</a></li> <li><a href="/wiki/Help:TemplateData/ru" class="mw-pt-progress mw-pt-progress--med" title="Справка:TemplateData (48% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Help:TemplateData/sr" class="mw-pt-progress mw-pt-progress--low" title="Помоћ:TemplateData (1% translated)" lang="sr" dir="ltr">српски / srpski</a></li> <li><a href="/wiki/Help:TemplateData/uk" class="mw-pt-progress mw-pt-progress--high" title="Довідка:TemplateData (80% translated)" lang="uk" dir="ltr">українська</a></li> <li><a href="/wiki/Help:TemplateData/cv" class="mw-pt-progress mw-pt-progress--low" title="Пулӑшу:TemplateData (0% translated)" lang="cv" dir="ltr">чӑвашла</a></li> <li><a href="/wiki/Help:TemplateData/hy" class="mw-pt-progress mw-pt-progress--low" title="Help:ԿաղապարիՏվյալ (6% translated)" lang="hy" dir="ltr">հայերեն</a></li> <li><a href="/wiki/Help:TemplateData/yi" class="mw-pt-progress mw-pt-progress--low" title="Help:מוסטער דאטא (0% translated)" lang="yi" dir="rtl">ייִדיש</a></li> <li><a href="/wiki/Help:TemplateData/he" class="mw-pt-progress mw-pt-progress--med" title="עזרה:נתוני תבנית (21% translated)" lang="he" dir="rtl">עברית</a></li> <li><a href="/wiki/Help:TemplateData/ar" class="mw-pt-progress mw-pt-progress--low" title="مساعدة:بيانات القالب (2% translated)" lang="ar" dir="rtl">العربية</a></li> <li><a href="/wiki/Help:TemplateData/azb" class="mw-pt-progress mw-pt-progress--low" title="کؤمک:شابلونوئری (1% translated)" lang="azb" dir="rtl">تۆرکجه</a></li> <li><a href="/wiki/Help:TemplateData/sd" class="mw-pt-progress mw-pt-progress--low" title="مدد:سانچوڊيٽا (2% translated)" lang="sd" dir="rtl">سنڌي</a></li> <li><a href="/wiki/Help:TemplateData/fa" class="mw-pt-progress mw-pt-progress--med" title="راهنما:الگوداده (40% translated)" lang="fa" dir="rtl">فارسی</a></li> <li><a href="/wiki/Help:TemplateData/ps" class="mw-pt-progress mw-pt-progress--low" title="مرسته: کينډۍ مالومات (1% translated)" lang="ps" dir="rtl">پښتو</a></li> <li><a href="/wiki/Help:TemplateData/nqo" class="mw-pt-progress mw-pt-progress--low" title="ߞߙߊߞߏ ߘߕߊ߫:ߘߍ߬ߡߍ߲߬ߠߌ߲ (3% translated)" lang="nqo" dir="rtl">ߒߞߏ</a></li> <li><a href="/wiki/Help:TemplateData/anp" class="mw-pt-progress mw-pt-progress--low" title="सहायता:साँचाडेटा (5% translated)" lang="anp" dir="ltr">अंगिका</a></li> <li><a href="/wiki/Help:TemplateData/awa" class="mw-pt-progress mw-pt-progress--low" title="सहायता:टेम्प्लेट डाटा (3% translated)" lang="awa" dir="ltr">अवधी</a></li> <li><a href="/wiki/Help:TemplateData/mr" class="mw-pt-progress mw-pt-progress--low" title="Help:माहिती साचा (1% translated)" lang="mr" dir="ltr">मराठी</a></li> <li><a href="/wiki/Help:TemplateData/hi" class="mw-pt-progress mw-pt-progress--med" title="Help:TemplateData (37% translated)" lang="hi" dir="ltr">हिन्दी</a></li> <li><a href="/wiki/Help:TemplateData/bn" class="mw-pt-progress mw-pt-progress--high" title="সাহায্য:টেমপ্লেটউপাত্ত (99% translated)" lang="bn" dir="ltr">বাংলা</a></li> <li><a href="/wiki/Help:TemplateData/pa" class="mw-pt-progress mw-pt-progress--low" title="ਮਦਦਃ ਡੇਟਾਫਰਮਾ (1% translated)" lang="pa" dir="ltr">ਪੰਜਾਬੀ</a></li> <li><a href="/wiki/Help:TemplateData/th" class="mw-pt-progress mw-pt-progress--low" title="วิธีใช้:ข้อมูลแม่แบบ (5% translated)" lang="th" dir="ltr">ไทย</a></li> <li><a href="/wiki/Help:TemplateData/ka" class="mw-pt-progress mw-pt-progress--low" title="Help:თარგის მონაცემები (2% translated)" lang="ka" dir="ltr">ქართული</a></li> <li><a href="/wiki/Help:TemplateData/zh" class="mw-pt-progress mw-pt-progress--complete" title="Help:TemplateData (100% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Help:TemplateData/ja" class="mw-pt-progress mw-pt-progress--complete" title="Help:テンプレートデータ (100% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Help:TemplateData/nan" class="mw-pt-progress mw-pt-progress--low" title="Help:TemplateData/nan (0% translated)" lang="nan" dir="ltr">閩南語 / Bân-lâm-gú</a></li> <li><a href="/wiki/Help:TemplateData/mni" class="mw-pt-progress mw-pt-progress--low" title="ꯃꯇꯦꯡ:ꯇꯦꯝꯄꯂꯦꯠ ꯗꯥꯇꯥ (1% translated)" lang="mni" dir="ltr">ꯃꯤꯇꯩ ꯂꯣꯟ</a></li> <li><a href="/wiki/Help:TemplateData/ko" class="mw-pt-progress mw-pt-progress--low" title="도움말:틀데이터 (7% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <style data-mw-deduplicate="TemplateStyles:r6776268">.mw-parser-output .template-pd-help-page{color:var(--color-emphasized,#101418);border:solid 1px var(--border-color-base,#a2a9b1);padding:0.5em;margin:0.5em 0;background-color:var(--background-color-base,#ffffff);font-size:95%;vertical-align:middle;width:100%;box-sizing:border-box}.mw-parser-output .template-pd-help-page .icon-cell{padding:0 1em;width:30px}</style><table class="template-pd-help-page"><tbody><tr> <td class="icon-cell"><span typeof="mw:File"><span><img alt="PD" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/PD-icon.svg/30px-PD-icon.svg.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/PD-icon.svg/45px-PD-icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/PD-icon.svg/60px-PD-icon.svg.png 2x" data-file-width="196" data-file-height="196"/></span></span></td> <td><b>Catatan:</b> Apabila anda menyunting halaman ini, anda bersetuju untuk memberi keizinan sumbangan anda tertakluk di bawah <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/deed.ms">CC0</a>. Lihat <a href="/wiki/Special:MyLanguage/Project:PD_help" title="Special:MyLanguage/Project:PD help">Laman Bantuan Domain Awam</a> untuk maklumat lanjut. </td> <td class="icon-cell"><span typeof="mw:File"><span><img alt="PD" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/PD-icon.svg/30px-PD-icon.svg.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/PD-icon.svg/45px-PD-icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/PD-icon.svg/60px-PD-icon.svg.png 2x" data-file-width="196" data-file-height="196"/></span></span></td> </tr></tbody></table> <p><span class="anchor" id="What_is_TemplateData?"></span> <b><a href="/wiki/Special:MyLanguage/Extension:TemplateData" title="Special:MyLanguage/Extension:TemplateData">TemplateData</a><span style="display:none"><a href="/wiki/Extension:TemplateData" title="Extension:TemplateData"> </a></span></b> ialah sambungan yang menyimpan maklumat dan parameter yang dikaitkan dengan <a href="/wiki/Special:MyLanguage/Help:Templates" title="Special:MyLanguage/Help:Templates">templat teks wiki</a> dan menjadikannya tersedia untuk antara muka penyuntingan yang boleh mendapatkan dan membentangkannya dalam editor templat -- yang kesemuanya membantu pengguna menambah dan mengedit templat pada muka surat. </p><p>Mulai April 2019, kefungsian data templat adalah sebahagian daripada pengalaman pengguna lalai untuk semua pengguna di semua wiki Wikimedia apabila mereka menambah templat, walaupun pengguna tidak berdaftar. Kedua-dua sumber lalai dan editor visual menggabungkannya dalam beberapa cara, seperti juga banyak skrip, alat dan alat. Jika anda mahukan fungsi ini pada wiki anda sendiri, pasang <a href="/wiki/Special:MyLanguage/Extension:TemplateData" title="Special:MyLanguage/Extension:TemplateData">Sambungan:TemplateData</a><span style="display:none"><a href="/wiki/Extension:TemplateData" title="Extension:TemplateData"> </a></span>. </p> <ol><li>: désambiguïser alwi mawa#</li></ol> <p>Anda boleh melakukan ini secara manual atau dengan editor data templat, antara muka pengguna grafik yang boleh anda akses pada halaman "Sunting"/"Sunting sumber" templat di wiki dengan sambungan TemplateData dipasang. JSON mengandungi senarai parameter dan maklumat templat tentang parameter tersebut dan tentang templat secara keseluruhan (lihat di bawah untuk butiran). </p><p>Templat yang mengandungi data templat akan memaparkan maklumat ini dalam antara muka pengguna apabila pengguna menambah templat. Dalam sesetengah kes, ia akan mengubah cara editor berkelakuan apabila anda menggunakannya untuk mengedit atau memasukkan templat yang diberikan, menjadikannya lebih mudah untuk pengguna melakukan langkah yang diperlukan untuk menambah templat yang diberikan. </p><p><span id="History"></span> </p> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Sejarah" data-mw-thread-id="h-Sejarah"><span data-mw-comment-start="" id="h-Sejarah"></span>Sejarah<span data-mw-comment-end="h-Sejarah"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Sejarah","replies":[]}}--></div> <p>Data templat pada asalnya dibangunkan pada awal 2013 dengan <a href="/wiki/Special:MyLanguage/VisualEditor" title="Special:MyLanguage/VisualEditor">VisualEditor</a><span style="display:none"><a href="/wiki/VisualEditor" title="VisualEditor"> </a></span> dalam fikiran, yang berada dalam peringkat ujian MediaWiki pada masa itu.vv Editor visual ialah antara muka penyuntingan visual utama untuk wiki Wikimedia, dan data templat membolehkannya mempunyai antara muka yang lebih berguna apabila menambah templat. Ia disokong secara rasmi oleh editor visual <a href="/wiki/Special:MyLanguage/VisualEditor/Portal/TemplateData" title="Special:MyLanguage/VisualEditor/Portal/TemplateData">segera</a>. Apabila editor visual dilancarkan ke pelbagai wiki Wikimedia utama sebagai ciri lalai dari 2013 hingga 2016, data templat juga menjadi sebahagian daripadanya. </p><p>Pada Disember 2016, antara muka editor visual telah disediakan untuk mengedit kod sumber sebagai ciri beta. Ini dipanggil <a href="/wiki/Special:MyLanguage/2017_wikitext_editor" title="Special:MyLanguage/2017 wikitext editor">2017 wikitext editor</a><span style="display:none"><a href="/wiki/2017_wikitext_editor" title="2017 wikitext editor"> </a></span>. Ini membawa ciri data templat kepada penyuntingan sumber buat kali pertama. </p><p>Pada Mac 2018, <a href="/wiki/User:Samwilson" title="User:Samwilson">Sam Wilson</a> membangunkan <a href="/wiki/Special:MyLanguage/Extension:TemplateWizard" title="Special:MyLanguage/Extension:TemplateWizard">TemplateWizard</a><span style="display:none"><a href="/wiki/Extension:TemplateWizard" title="Extension:TemplateWizard"> </a></span>, sambungan editor templat GUI untuk penyunting sumber Wikimedia lalai, <a href="/wiki/Special:MyLanguage/WikiEditor" title="Special:MyLanguage/WikiEditor">WikiEditor</a><span style="display:none"><a href="/wiki/WikiEditor" class="mw-redirect" title="WikiEditor"> </a></span> (atau dikenali sebagai editor teks wiki 2010), direka bentuk untuk memudahkan proses menambah templat dengan menggunakan maklumat daripada data templat.v Pada <a href="https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2019-04-30/Technology_report" class="extiw" title="w:Wikipedia:Wikipedia Signpost/2019-04-30/Technology report">April 2019</a>, TemplateWizard telah dijadikan bahagian lalai editor teks wiki 2010 pada semua wiki Wikimedia. Ini bermakna data templat kini merupakan bahagian lalai bagi kedua-dua editor visual dan penyunting sumber di wiki Wikimedia. </p><p><span id="Adding_or_editing_template_data"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Menambah_atau_menyunting_TemplateData" data-mw-thread-id="h-Menambah_atau_menyunting_TemplateData"><span data-mw-comment-start="" id="h-Menambah_atau_menyunting_TemplateData"></span>Menambah atau menyunting TemplateData<span data-mw-comment-end="h-Menambah_atau_menyunting_TemplateData"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Menambah_atau_menyunting_TemplateData","replies":["h-Menyemak_keadaan_semasa-Menambah_atau_menyunting_TemplateData","h-Kaedah-Menambah_atau_menyunting_TemplateData"]}}--></div> <p>Untuk menambah atau mengedit data templat, mula-mula navigasi ke halaman templat, yang terletak di "/Templat:<i>Nama Templat</i>". </p><p><span class="anchor" id="Prior_checks"></span> <span id="Checking_the_current_state"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Menyemak_keadaan_semasa" data-mw-thread-id="h-Menyemak_keadaan_semasa-Menambah_atau_menyunting_TemplateData"><span data-mw-comment-start="" id="h-Menyemak_keadaan_semasa-Menambah_atau_menyunting_TemplateData"></span>Menyemak keadaan semasa<span data-mw-comment-end="h-Menyemak_keadaan_semasa-Menambah_atau_menyunting_TemplateData"></span></h3></div> <p>Sebelum menambah atau mengedit data templat, semak sama ada templat mempunyai <b>subhalaman dokumentasi</b>. Kemudian semak sama ada templat <b>sudah mengandungi data templat</b> dan, jika ya, sama ada ia terletak pada halaman templat atau subhalaman dokumentasi. </p> <style data-mw-deduplicate="TemplateStyles:r6651107">.mw-parser-output .note{background-position:left 7px top 50%;padding:0.5em 0.5em 0.5em 40px;margin:0.5em 0;overflow:hidden;background-color:#f8f9fa;color:#333;background-repeat:no-repeat;border:1px solid #ddd}.mw-parser-output .note-inline{display:inline-block;vertical-align:middle}.mw-parser-output .note-info{background-color:#eaf3ff;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/e/ec/OOjs_UI_icon_information-progressive.svg");background-size:25px;border-color:#a3caff;padding-left:40px;min-height:25px}.mw-parser-output .note-reminder{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-warn{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-error{background-color:#fee7e6;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg");background-size:25px;border-color:#c33;min-height:25px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .note{background-color:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .note{background-color:transparent;color:inherit}}</style><div role="note" class="note note-warn">Pastikan anda menyemak sama ada subhalaman wujud. Jika anda menambah data templat pada halaman utama templat semasa subhalaman wujud dengan data templat, data templat dalam halaman utama akan mengatasi data pada subhalaman tersebut.</div> <p><span id="Documentation_subpages"></span> </p> <div class="mw-heading mw-heading4"><h4 id="Subhalaman_dokumentasi" data-mw-thread-id="h-Subhalaman_dokumentasi-Menyemak_keadaan_semasa"><span data-mw-comment-start="" id="h-Subhalaman_dokumentasi-Menyemak_keadaan_semasa"></span>Subhalaman dokumentasi<span data-mw-comment-end="h-Subhalaman_dokumentasi-Menyemak_keadaan_semasa"></span></h4></div> <p>Terdapat dua cara utama templat pada kebanyakan wiki Wikimedia menyimpan nota penggunaannya dan data lain yang tidak sepatutnya disertakan dalam templat sebenar itu sendiri, seperti kategori templat harus terkandung dalam: </p> <ul><li>Sebilangan besar templat menyimpan nota penggunaan dan data lain yang bukan milik halaman templat itu sendiri pada subhalaman dokumentasi: "/Template:<i>Templatename</i>/doc". Pada halaman seperti ini, templat {{<a href="/wiki/Special:MyLanguage/Template:Documentation" title="Special:MyLanguage/Template:Documentation">Documentation</a><span style="display:none"><a href="/wiki/Template:Documentation" title="Template:Documentation"> </a></span>}} <a href="/wiki/Special:MyLanguage/Help:Transclusion" title="Special:MyLanguage/Help:Transclusion">transcludes</a> semua kandungan halaman /doc ke halaman templat, memastikan kod sumber templat lebih bersih. <ul><li>Pada templat dengan subhalaman dokumentasi, tajuk "<span typeof="mw:File"><a href="/wiki/File:Test_Template_Info-Icon_-_Version_(2).svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png" decoding="async" width="50" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/75px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/100px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 2x" data-file-width="1792" data-file-height="800"/></a></span> <b>Dokumentasi templat</b>" akan diikuti dengan pautan seperti [view], [edit], [history] dan [purge].</li></ul></li></ul> <ul><li>Beberapa halaman templat telah mengekalkan maklumat tersebut pada halaman utama templat. Anda boleh melihatnya di halaman ini dengan mencari kejadian <code>{{Documentation|content=</code> antara teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span></code>.</li></ul> <p>Wiki yang berbeza mungkin menyampaikan semua ini secara berbeza. Jarang sekali, halaman templat utama mungkin masih mengandungi dokumentasi walaupun anda telah menyemak semua perkara di atas; di sini, pengguna akan menambah tajuk halaman /dokumen tersuai antara "<code>{{Documentation|</code>" dan "<code>|content=</code>" dan kemudian menambah kandungan selepas "<code>|content=</code>". </p><p>Anda juga boleh mencari notis di bahagian bawah halaman yang serupa dengan ini: "Dokumentasi di atas ditransklusikan daripada Templat:<i>Templatename</i>/doc". </p><p><span id="Templates_without_documentation_subpages"></span> </p> <div class="mw-heading mw-heading4"><h4 id="Templat_tanpa_subhalaman_dokumentasi" data-mw-thread-id="h-Templat_tanpa_subhalaman_dokumentasi-Menyemak_keadaan_semasa"><span data-mw-comment-start="" id="h-Templat_tanpa_subhalaman_dokumentasi-Menyemak_keadaan_semasa"></span>Templat tanpa subhalaman dokumentasi<span data-mw-comment-end="h-Templat_tanpa_subhalaman_dokumentasi-Menyemak_keadaan_semasa"></span></h4></div> <p>Jika templat tidak mempunyai subhalaman dokumentasi, buat dan alihkan dokumentasi templat ke sana (atau pemegang tempat untuknya). Kemudian anda boleh menambah data templat pada subhalaman dokumentasi. </p><p><span id="Creating_the_subpage_and_moving_the_documentation"></span> </p> <div class="mw-heading mw-heading5"><h5 id="Mencipta_subhalaman_dan_memindahkan_dokumentasi" data-mw-thread-id="h-Mencipta_subhalaman_dan_memindahkan_dokumentasi-Templat_tanpa_subhalaman_dokumentasi"><span data-mw-comment-start="" id="h-Mencipta_subhalaman_dan_memindahkan_dokumentasi-Templat_tanpa_subhalaman_dokumentasi"></span>Mencipta subhalaman dan memindahkan dokumentasi<span data-mw-comment-end="h-Mencipta_subhalaman_dan_memindahkan_dokumentasi-Templat_tanpa_subhalaman_dokumentasi"></span></h5></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">Di banyak wiki Wikimedia, anda hanya boleh membuat halaman jika anda telah menjadi pengguna berdaftar di sana selama beberapa hari dan telah membuat jumlah penyuntingan minimum.</div> <p>Untuk membuat subhalaman dokumentasi, klik "Sunting"/"Sunting sumber" pada halaman templat utama; cari tag <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span></code> dan kandungan mereka (biasanya di bahagian bawah). </p><p>Ia sepatutnya kelihatan seperti ini: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt"><noinclude></span> {{Documentation|content= ==<span class="w"> </span>Penggunaan<span class="w"> </span>== Maklumat<span class="w"> </span>tentang<span class="w"> </span>penggunaan. ==<span class="w"> </span>Contoh<span class="w"> </span>lain<span class="w"> </span>bagi<span class="w"> </span>tajuk<span class="w"> </span>== contoh<span class="w"> </span>lain<span class="w"> </span>kandungan [[Kategori:Kategori<span class="w"> </span>contoh]] [[Kategori:Contoh<span class="w"> </span>kategori<span class="w"> </span>2]] }} <span class="nt"></noinclude></span> </pre></div> <p>Anda juga mungkin mendapati ia sudah mengandungi data templat. Jika ya, ia akan kelihatan seperti ini: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt"><noinclude></span> {{Documentation|content= ... <span class="nt"><templatedata></span> { <span class="w"> </span>"description":<span class="w"> </span>"", <span class="w"> </span>"params":<span class="w"> </span>{ <span class="w"> </span>"1":<span class="w"> </span>{ <span class="w"> </span>"label":<span class="w"> </span>"Contoh<span class="w"> </span>parameter", <span class="w"> </span>"description":<span class="w"> </span>"Contoh<span class="w"> </span>uraian<span class="w"> </span>parameter", <span class="w"> </span>"type":<span class="w"> </span>"string" <span class="w"> </span>} <span class="w"> </span>} } <span class="nt"></templatedata></span> <span class="nt"></noinclude></span> </pre></div> <p>Pilih semua selepas "<code>|content=</code>" dan sebelum "<code class="mw-highlight" style="white-space:nowrap"><span class="p"></</span><span class="nt">noinclude</span><span class="p">></span></code>" dan potong ke papan klip anda atau simpan ke dalam dokumen sementara. Hapus "<code>|content=</code>" dengan hanya meninggalkan yang berikut: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt"><noinclude></span> {{Documentation}} <span class="nt"></noinclude></span> </pre></div> <p>Simpan halaman templat. </p><p>Sekarang, untuk mencipta subhalaman baharu, lihat bar alamat penyemak imbas anda dan tambahkan /doc pada penghujung URL. Klik <style data-mw-deduplicate="TemplateStyles:r6747130">.mw-parser-output .keyboard-key{border:1px solid var(--border-color-base,#aaa);border-radius:0.2em;box-shadow:0.1em 0.2em 0.2em #ddd;background-image:linear-gradient(to bottom,var(--background-color-neutral,#eee),var(--background-color-interactive-subtle,#f9f9f9),var(--background-color-neutral,#eee));color:var(--color-base,#333);padding:0.1em 0.3em;font-family:inherit;font-size:0.85em}@media screen{html.skin-theme-clientpref-night .mw-parser-output .keyboard-key{box-shadow:0.1em 0.2em 0.2em #444}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .keyboard-key{box-shadow:0.1em 0.2em 0.2em #444}}</style><kbd class="keyboard-key nowrap">↵ Enter</kbd>, kemudian pilih pilihan untuk membuat halaman baru. </p><p>Jika wiki ini mempunyai templat notis {{<a href="/wiki/Special:MyLanguage/Template:Documentation_subpage" title="Special:MyLanguage/Template:Documentation subpage">Documentation subpage</a><span style="display:none"><a href="/wiki/Template:Documentation_subpage" title="Template:Documentation subpage"> </a></span>}}, tambahkan di bahagian atas halaman baru. Anda juga mungkin ingin menambah templat lain, seperti pautan {{<a href="/wiki/Special:MyLanguage/Template:Purge_button" class="new" title="Special:MyLanguage/Template:Purge button (page does not exist)">Purge button</a><span style="display:none"><a href="/w/index.php?title=Template:Purge_button&action=edit&redlink=1" class="new" title="Template:Purge button (page does not exist)"> </a></span>}} atau {{<a href="/wiki/Special:MyLanguage/Template:Purge" title="Special:MyLanguage/Template:Purge">Purge</a><span style="display:none"><a href="/wiki/Template:Purge" title="Template:Purge"> </a></span>}} (jika disokong oleh wiki berkenaan). </p><p>Masukkan teks yang anda potong atau simpan dalam teks sebelumnya (di bawah templat notis, jika berkenaan). </p><p>Balut mana-mana kategori dalam teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">includeonly</span><span class="p">></span></code> supaya ia digunakan hanya pada halaman utama templat: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt"><includeonly></span> [[Category:Example<span class="w"> </span>category]] [[Category:Example<span class="w"> </span>category<span class="w"> </span>2]] <span class="nt"></includeonly></span> </pre></div> <p>Banyak wiki mempunyai templat <code>{{Sandbox other}}</code>. Gunakan templat ini di sini jika kemungkinan templat yang anda edit wujud dalam versi kotak pasir (terletak di "Templat:<i>Nama Templat</i>/kotak pasir") untuk mengelakkan kategori daripada digunakan pada halaman kotak pasir: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt"><includeonly></span>{{sandbox<span class="w"> </span>other|| [[Category:Example<span class="w"> </span>category]] [[Category:Example<span class="w"> </span>category<span class="w"> </span>2]] }}<span class="nt"></includeonly></span> </pre></div> <p>Akhirnya, menerbitkan halaman. </p><p>Anda kini boleh menambah dan mengedit data templat pada subhalaman dokumentasi menggunakan arahan yang diterangkan dalam <a href="#Methods">#Methods</a>. </p><p><span id="Adding_and_editing_template_data_on_the_main_template_page"></span> </p> <div class="mw-heading mw-heading5"><h5 id="Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama" data-mw-thread-id="h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama-Templat_tanpa_subhalaman_dokumentasi"><span data-mw-comment-start="" id="h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama-Templat_tanpa_subhalaman_dokumentasi"></span>Menambah dan menyunting data templat pada halaman templat utama<span data-mw-comment-end="h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama-Templat_tanpa_subhalaman_dokumentasi"></span></h5></div> <p>Jika anda tidak boleh membuat halaman /doc, anda boleh menambah dan mengedit data templat pada halaman utama templat dengan mengikut arahan dalam <a href="#Methods">#Methods</a>. </p><p>Jika templat mempunyai subhalaman dokumentasi, semak kedua-dua halaman utama dan subhalaman dokumentasi untuk kehadiran data templat (teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">templatedata</span><span class="p">></span></code> diikuti dengan tatasusunan dalam kurungan kerinting: <code>{}</code>). </p><p>Sebagai alternatif, sambungan TemplateData boleh melakukan semakan ini untuk anda. Klik "Sunting" atau "Sunting sumber" pada mana-mana halaman. Jika templat sudah mempunyai data templat pada mana-mana halaman, anda akan melihat notis kuning di bahagian atas halaman yang menyatakan sama ada: </p> <dl><dd><i>Perhatian: terdapat sudah blok DataTemplat pada halaman berkaitan"<a href="/w/index.php?title=Templat:Templatename/doc&action=edit&redlink=1" class="new" title="Templat:Templatename/doc (page does not exist)">Templat:Templatename/doc</a>".</i></dd></dl> <p>atau </p> <dl><dd><i>Perhatian: terdapat sudah blok DataTemplat pada halaman berkaitan"<a href="/w/index.php?title=Templat:Templat_nama&action=edit&redlink=1" class="new" title="Templat:Templat nama (page does not exist)">Templat:Templat nama</a>".</i></dd></dl> <p><b>Jika templat mempunyai data templat pada subhalaman dokumentasinya</b> </p><p>Jika templat mempunyai data templat pada subhalaman dokumentasinya, ini ialah halaman yang perlu anda edit. Anda boleh melakukan ini dengan mengklik "[edit]" yang terletak selepas tajuk "<span typeof="mw:File"><a href="/wiki/File:Test_Template_Info-Icon_-_Version_(2).svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png" decoding="async" width="50" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/75px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/100px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 2x" data-file-width="1792" data-file-height="800"/></a></span> <b>Templat dokumentasi</b>" (atau serupa), atau, jika anda sudah berada di halaman /doc, dengan mengklik "Sunting" atau "Sunting sumber" di bahagian atas. Ikuti panduan di <a href="#Methods">#Methods</a> untuk menambah atau mengedit data templat. </p><p><b>Jika templat mempunyai data templat pada halaman utamanya</b> </p><p>Jika templat mempunyai data templat pada halaman utamanya, anda sekali lagi mempunyai dua pilihan: </p> <ul><li>Anda boleh sama ada beralih ke subhalaman dokumentasinya. Ini adalah pilihan pilihan.</li></ul> <ul><li>Atau, anda boleh mengeditnya pada halaman templat utama.</li></ul> <p><b>Mengalih data templat ke subhalaman dokumentasi</b> </p><p>Untuk melakukan ini, klik "Sunting"/"Sunting sumber" pada halaman templat utama dan cari teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">templatedata</span><span class="p">></span></code>, yang disertakan dalam teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span></code>. Ia sepatutnya kelihatan seperti ini: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt"><noinclude></span> {{Documentation}} <span class="nt"><templatedata></span> { <span class="w"> </span>"description":<span class="w"> </span>"", <span class="w"> </span>"params":<span class="w"> </span>{ <span class="w"> </span>"1":<span class="w"> </span>{ <span class="w"> </span>"label":<span class="w"> </span>"Contoh<span class="w"> </span>parameter", <span class="w"> </span>"description":<span class="w"> </span>"Contoh<span class="w"> </span>perihalan<span class="w"> </span>parameter", <span class="w"> </span>"type":<span class="w"> </span>"string" <span class="w"> </span>} <span class="w"> </span>} } <span class="nt"></templatedata></span> <span class="nt"></noinclude></span> </pre></div> <p>Potong hanya teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">templatedata</span><span class="p">></span></code> dan kandungannya daripada kod, kemudian simpan halaman tersebut. </p><p>Seterusnya, edit subhalaman dokumentasi dengan mengklik "[edit]" yang terletak selepas tajuk "<span typeof="mw:File"><a href="/wiki/File:Test_Template_Info-Icon_-_Version_(2).svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png" decoding="async" width="50" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/75px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/100px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 2x" data-file-width="1792" data-file-height="800"/></a></span> <b>Dokumentasi templat</b>" (atau serupa). </p><p>Taipkan tajuk, seperti "Data templat", kemudian di bawahnya tampal data templat. </p><p>Anda kini boleh mengedit data templat berdasarkan panduan di <a href="#Methods">#Methods</a>. </p> <div class="mw-heading mw-heading5"><h5 id="Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2" data-mw-thread-id="h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2-Templat_tanpa_subhalaman_dokumentasi"><span data-mw-comment-start="" id="h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2-Templat_tanpa_subhalaman_dokumentasi"></span>Menambah dan menyunting data templat pada halaman templat utama<span data-mw-comment-end="h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2-Templat_tanpa_subhalaman_dokumentasi"></span></h5></div> <p>Jika anda tidak mahu mengalihkan data templat ke halaman /doc, anda boleh mengeditnya pada halaman templat utama. Lihat <a href="#Methods">#Methods</a> untuk cara mengedit data templat. </p><p><b>Jika templat belum mempunyai data templat tetapi mempunyai subhalaman dokumen</b> </p><p>Jika templat belum mempunyai data templat, anda harus menambahkannya ke subhalaman dokumentasi. </p><p>Lakukan ini dengan mengklik "[edit]" yang terletak selepas tajuk "<span typeof="mw:File"><a href="/wiki/File:Test_Template_Info-Icon_-_Version_(2).svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png" decoding="async" width="50" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/75px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/100px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 2x" data-file-width="1792" data-file-height="800"/></a></span> <b>Templat dokumentasi</b>" (atau serupa), atau, jika anda sudah berada di halaman /doc, dengan mengklik "Sunting" atau "Sunting sumber "di bahagian atas. Taipkan tajuk, seperti "Data templat", kemudian tambahkannya di bawah tajuk ini. Bahagian <a href="#Methods">#Methods</a> menerangkan cara menambah data templat. </p><p><span id="Methods"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Kaedah" data-mw-thread-id="h-Kaedah-Menambah_atau_menyunting_TemplateData"><span data-mw-comment-start="" id="h-Kaedah-Menambah_atau_menyunting_TemplateData"></span>Kaedah<span data-mw-comment-end="h-Kaedah-Menambah_atau_menyunting_TemplateData"></span></h3></div> <p><span class="anchor" id="TemplateData_editor"></span> <span id="Template_data_editor_method"></span> </p> <div class="mw-heading mw-heading4"><h4 id="Kaedah_penyunting_data_templat" data-mw-thread-id="h-Kaedah_penyunting_data_templat-Kaedah"><span data-mw-comment-start="" id="h-Kaedah_penyunting_data_templat-Kaedah"></span>Kaedah penyunting data templat<span data-mw-comment-end="h-Kaedah_penyunting_data_templat-Kaedah"></span></h4></div> <p>Ini ialah cara mudah untuk menambah atau mengedit data templat, disyorkan untuk pengguna yang kurang berpengalaman. </p><p>Editor data templat ialah antara muka pengguna grafik untuk menambah dan mengedit data templat. Ia adalah sebahagian daripada sambungan TemplateData, tersedia pada mana-mana halaman templat (atau subhalaman dokumentasi) dengan mengklik "Sunting" atau "Sunting sumber". </p><p>Selepas mengklik "Sunting" atau "Sunting sumber", anda akan melihat butang di atas kawasan penyuntingan dan tajuk halaman yang menyatakan "Sunting data templat". </p> <div style="clear: both;"></div> <p><span typeof="mw:File"><a href="/wiki/File:Manage_template_documentation_button_for_TemplateData_2014.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/9/9b/Manage_template_documentation_button_for_TemplateData_2014.png" decoding="async" width="453" height="35" class="mw-file-element" data-file-width="419" data-file-height="32"/></a></span> </p><p>Mengklik butang ini akan membawa anda ke <b>editor data templat</b>. Jika halaman yang anda lawati sudah mengandungi data templat, ia akan dipaparkan secara automatik di sini. </p> <div style="clear: both;"></div> <p><span typeof="mw:File"><a href="/wiki/File:TemplateData_GUI_editor_new.png" class="mw-file-description" title="Alat penyuntingan data templat, pada halaman tanpa data templat."><img alt="Tangkapan skrin alat penyuntingan data templat" src="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/TemplateData_GUI_editor_new.png/600px-TemplateData_GUI_editor_new.png" decoding="async" width="600" height="610" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/2/26/TemplateData_GUI_editor_new.png 1.5x" data-file-width="763" data-file-height="776"/></a></span> </p><p>Ciri-ciri dalam tetingkap di atas: </p> <ul><li>Item teratas memilih bahasa teks antara muka. Ia membolehkan anda memasukkan kandungan teks dalam berbilang bahasa, dipaparkan kepada pengguna berdasarkan tetapan mereka dalam Keutamaan, <b>bukan berdasarkan bahasa wiki</b>; wiki yang berbeza mempunyai pangkalan data templat yang sama sekali berbeza. Jika tiada data templat bahasa wujud, antara muka hanya akan menawarkan pengguna bahasa wiki sendiri, tetapi pengguna boleh mengklik "Tambah bahasa" untuk menambah lebih banyak input. Kod bahasa dipaparkan dalam kurungan bersebelahan dengan parameter yang boleh digunakan, seperti perihalan dan label.</li> <li>Item seterusnya ialah penerangan templat. Ini ialah perihalan templat secara keseluruhan; ia ditunjukkan kepada pengguna di banyak tempat dalam editor templat sambil menambah templat. <a href="#Description">parameter ini dan kesannya didokumenkan di bawah</a>.</li> <li>Item ketiga mengawal pemformatan teks wiki templat. Parameter ini menentukan cara teks wiki akan dibentangkan apabila pengguna mengklik "Terapkan", dua jenis utama ialah <code>"inline"</code> (pada satu baris) dan <code>"block"</code> (pada baris baharu). <a href="#Format">parameter ini dan kesannya didokumenkan di bawah</a>.</li></ul> <dl><dd>Jika pengguna memilih "Tersuai", mereka boleh memasukkan teks wiki di bawah "Rentetan format tersuai" mengikut <a href="#Custom_formats">Peraturan format tersuai yang didokumenkan di bawah</a>, untuk mencipta reka letak tersuai untuk templat apabila pengguna mengklik "Terapkan".</dd></dl> <ul><li>Item keempat mengkonfigurasi parameter templat. Jika parameter telah ditakrifkan dalam data templat, kawasan ini memaparkannya dalam senarai. Jika kod sumber templat menentukan parameter yang tiada data templat wujud, anda mungkin melihat butang berlabel "Tambah 2 parameter yang dicadangkan". Editor mengekstrak cadangan ini daripada kod sumber templat dengan mencari <code>{{{parametername}}}</code> atau <code>{{{parametername|}}}</code>. Mengklik "Tambah 2 parameter yang dicadangkan" akan menambah parameter ini menggunakan nama mereka seperti yang ditakrifkan dalam kod sumber. Notis hijau juga akan muncul di bahagian atas, contohnya, "2 parameter baru diimport:<i>nama parameter</i>".</li> <li>Di bahagian bawah tetingkap anda melihat butang "Tambah parameter". Ini membolehkan anda menambah parameter secara manual dengan nama tersuai.</li></ul> <p>Teruskan ke langkah seterusnya dengan mengklik mana-mana satu daripada parameter dalam senarai. Ini akan membolehkan anda mengedit maklumat parameter tersebut. </p><p><span typeof="mw:File"><a href="/wiki/File:TemplateData_GUI_editor_parameter_list.png" class="mw-file-description"><img alt="Tangkapan skrin editor data templat, menunjukkan parameter kedua ditambah" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/TemplateData_GUI_editor_parameter_list.png/600px-TemplateData_GUI_editor_parameter_list.png" decoding="async" width="600" height="609" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/6/60/TemplateData_GUI_editor_parameter_list.png 1.5x" data-file-width="763" data-file-height="775"/></a></span> </p><p>Semua ciri ini dan kesannya digariskan dalam bahagian <a href="#Within_a_parameter's_name">#Within a parameter's name</a>. </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">* Editor data templat tidak akan membenarkan anda menukar parameter kepada "<a href="#Parameter_name">Nama</a>" kosong. Parameter dalam data templat yang entah bagaimana memperoleh rentetan kosong sebagai nama tidak akan menyebabkan isu dalam editor teks wiki 2010 dengan TemplateWizard, tetapi editor visual mahupun editor teks wiki 2017 tidak akan memaparkannya sama sekali. Ini adalah satu-satunya medan wajib dalam editor data templat. <ul><li>Mengklik "Keluarkan maklumat parameter" akan memadamkan parameter dan semua maklumatnya daripada data templat. Anda tidak boleh mendapatkan semula atau membuat asal ini dalam data templat melainkan anda mengklik "X" selepas itu. Anda boleh membuat asal sebarang perubahan yang dibuat selepas mengklik "Terapkan" dengan menekan <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6747130"><kbd class="keyboard-key nowrap">Ctrl</kbd>+<kbd class="keyboard-key nowrap">Z</kbd>.</li> <li>Keluar daripada editor data templat selepas membuat perubahan menggesa anda untuk mengesahkan bahawa anda ingin membuang perubahan anda.</li></ul></div> <p>Apabila selesai, klik "Terapkan". Ini secara automatik akan memasukkan data templat di bahagian bawah halaman sebelum teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"></</span><span class="nt">noinclude</span><span class="p">></span></code>; atau, jika sudah ada, ia akan dikemas kini dengan maklumat baharu tanpa mengubah kedudukannya. Teks data templat juga akan dipilih apabila anda mengklik "Terapkan". </p><p>Editor data templat mencipta parameter <code>"paramOrder"</code> di bahagian bawah data templat (atau mengemas kininya jika sudah wujud). <code>"paramOrder"</code> mengandungi parameter data templat semasa dalam susunan ia dipaparkan oleh editor data templat. Anda boleh menukar <code>"paramOrder"</code> dengan menyeret parameter ke atas dan ke bawah dalam editor data templat menggunakan tiga bar mendatar di sebelah kiri. <a href="#ParamOrder"><code>"paramOrder"</code> dan kesannya didokumenkan di bawah</a>. </p><p>Selepas ini, klik "Simpan" untuk menyimpan semakan halaman anda. </p><p><span id="Manual_method"></span> </p> <div class="mw-heading mw-heading4"><h4 id="Kaedah_manual" data-mw-thread-id="h-Kaedah_manual-Kaedah"><span data-mw-comment-start="" id="h-Kaedah_manual-Kaedah"></span>Kaedah manual<span data-mw-comment-end="h-Kaedah_manual-Kaedah"></span></h4></div> <p>Anda juga boleh menambah atau mengedit data templat secara manual. Data templat ditulis dalam <a href="https://en.wikipedia.org/wiki/JSON" class="extiw" title="w:JSON">JSON</a>, tetapi anda tidak perlu mempelajari JSON untuk mengetahui cara membuat data templat. Data templat mengikut beberapa peraturan yang sangat mudah dan hanya menerima beberapa dozen kemungkinan parameter dan nilai yang dipratentukan, biasanya mengikut format <code>"parameter": "value"</code>. </p><p><b>Menambah data templat secara manual</b> </p><p>Pertimbangan: </p> <ul><li>Jika anda menambah data templat pada subhalaman dokumentasi templat (<b>disyorkan</b>), anda boleh menambahkannya di mana-mana sahaja pada halaman; semak untuk melihat sama ada Wikipedia bahasa anda mempunyai lokasi pilihan untuknya. Sebagai contoh, pada Wikipedia Bahasa Inggeris, data templat lazimnya terletak berhampiran bahagian bawah halaman dokumentasi; di Wikipedia Jerman, ia biasanya berada di bahagian atas.</li> <li>Jika anda menambah data templat pada halaman utama templat (<b>tidak disyorkan</b>; lihat <a href="#Prior_checks">#Semakan sebelumnya</a>), anda mesti pastikan untuk meletakkannya di dalam teg <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span>...<span class="p"></</span><span class="nt">noinclude</span><span class="p">></span></code>.</li></ul> <p>Klik "Sunting" atau "Sunting sumber" pada halaman masing-masing, kemudian beralih ke tempat dalam halaman yang anda ingin tambahkan data templat dan tulis tajuk: "Data templat". </p><p>Banyak wiki mempunyai templat {{<a href="/wiki/Special:MyLanguage/Template:TemplateData_header" title="Special:MyLanguage/Template:TemplateData header">TemplateData header</a><span style="display:none"><a href="/wiki/Template:TemplateData_header" title="Template:TemplateData header"> </a></span>}} yang menambah notis ringkas mengenai data templat. Jika wiki anda ada, tambahkannya selepas tajuk. </p><p>Untuk mula menambah data templat, taip teg pembukaan dan penutup <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">templatedata</span><span class="p">></span></code> dan sepasang kurungan kerinting pada baris baharu, dengan garis kosong di antaranya: </p> <div class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span><span class="p"><</span><span class="nt">templatedata</span><span class="p">></span> { } <span class="p"></</span><span class="nt">templatedata</span><span class="p">></span> </pre></div> <p>Seterusnya, tambahkan inden pada baris kosong antara dua kurungan kerinting dan mula menambah parameter. Butiran untuk parameter boleh didapati di <a href="#Template_data_parameters">#Templat data parameter</a>. Kebanyakannya adalah pilihan; ada yang sangat disyorkan. </p><p>Parameter boleh dalam sebarang susunan, tetapi yang berikut ialah susunan yang paling sesuai dengan dokumentasi data templat dan menjadikan kandungan paling mudah digunakan untuk editor: </p> <div class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span><span class="p"><</span><span class="nt">templatedata</span><span class="p">></span> { "description": "", "format": "", "params": { "parameter1": { "aliases": ["",""] "label": "", "description": "", "type": "" } }, "paramOrder": [ "" ] } <span class="p"></</span><span class="nt">templatedata</span><span class="p">></span> </pre></div> <p>Pastikan parameter, sebagai contoh, dalam objek <code>"params"</code>, kekal di dalam objek itu; jika tidak, anda akan mencetuskan ralat "<a href="#Unexpected_property">Sifat "<var>propertyname</var>" tidak dijangka.</a>" apabila anda cuba menyimpan. </p><p><span class="anchor" id="Example"></span> <b>Contoh</b> </p><p>Berikut ialah beberapa contoh data templat untuk templat pembersihan hipotetikal. Templat seperti itu akan memaparkan notis dan meletakkan halaman ke dalam kategori ber tarikh berdasarkan bulan dan tahun yang dimasukkan. Pemberitahuan itu mungkin juga mengandungi pautan ke bahagian halaman perbincangan. Data templat akan kelihatan seperti ini: </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="o"><</span><span class="nx">templatedata</span><span class="o">></span> <span class="p">{</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Gunakan templat ini untuk menunjukkan bahawa satu artikel memerlukan pembersihan."</span><span class="p">,</span> <span class="w"> </span><span class="s2">"format"</span><span class="o">:</span><span class="w"> </span><span class="s2">"inline"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"date"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Bulan dan tahun"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Bulan dan tahun templat itu ditambahkan"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">"string"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"autovalue"</span><span class="o">:</span><span class="w"> </span><span class="s2">"{{SUBST:CURRENTMONTHNAME}} {{SUBST:CURRENTYEAR}}"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"example"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Januari 2013"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"suggested"</span><span class="o">:</span><span class="w"> </span><span class="kc">true</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"reason"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"aliases"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span><span class="s2">"1"</span><span class="p">],</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Sebab"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Sebab artikel itu memerlukan pembersihan"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">"string"</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"talk"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"aliases"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span><span class="s2">"seksyen perbualan"</span><span class="p">],</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Seksyen halaman perbincangan"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Bahagian halaman perbincangan yang mengandungi perbincangan yang berkaitan"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">"string"</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"paramOrder"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span> <span class="w"> </span><span class="s2">"date"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"reason"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"talk"</span> <span class="w"> </span><span class="p">]</span> <span class="p">}</span> <span class="o"><</span><span class="err">/templatedata></span> </pre></div> <p>Dokumentasi data templat yang sepadan akan dipaparkan seperti berikut: </p> <section class="mw-templatedata-doc-wrap"><header><p class="mw-templatedata-doc-desc">Gunakan templat ini untuk menunjukkan bahawa artikel memerlukan pembersihan.</p></header><table class="wikitable mw-templatedata-doc-params sortable"><caption><p class="mw-templatedata-caption">Template parameters</p><p><span class="oo-ui-widget oo-ui-widget-enabled oo-ui-iconElement-icon oo-ui-icon-template-format-inline oo-ui-iconElement oo-ui-labelElement-invisible oo-ui-iconWidget"></span><span class="mw-templatedata-format">This template prefers inline formatting of parameters.</span></p></caption><thead><tr><th colspan="2">Parameter</th><th>Description</th><th>Type</th><th>Status</th></tr></thead><tbody><tr><th>Bulan dan tahun</th><td class="mw-templatedata-doc-param-name"><code>tarikh</code></td><td><p>Bulan dan tahun templat itu ditambahkan</p><dl><dt>Example</dt><dd>Januari 2013</dd><dt>Auto value</dt><dd><code>{{SUBST:CURRENTMONTHNAME}} {{SUBST:CURRENTYEAR}}</code></dd></dl></td><td class="mw-templatedata-doc-param-type">String</td><td class="mw-templatedata-doc-param-status-suggested" data-sort-value="1">suggested</td></tr><tr><th>Sebab</th><td class="mw-templatedata-doc-param-name"><code>sebab</code> <code class="mw-templatedata-doc-param-alias">1</code></td><td><p>Sebab artikel itu memerlukan pembersihan</p><dl></dl></td><td class="mw-templatedata-doc-param-type">String</td><td class="mw-templatedata-doc-param-status-optional" data-sort-value="0">optional</td></tr><tr><th>Seksyen halaman perbincangan</th><td class="mw-templatedata-doc-param-name"><code>bincang</code> <code class="mw-templatedata-doc-param-alias">seksyen perbualan</code></td><td><p>Bahagian halaman perbincangan yang mengandungi perbincangan yang berkaitan</p><dl></dl></td><td class="mw-templatedata-doc-param-type">String</td><td class="mw-templatedata-doc-param-status-optional" data-sort-value="0">optional</td></tr></tbody></table></section> <p><span class="anchor" id="Description_and_parameters"></span> <span id="Template_data_parameters"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Parameter_TemplateData" data-mw-thread-id="h-Parameter_TemplateData"><span data-mw-comment-start="" id="h-Parameter_TemplateData"></span>Parameter TemplateData<span data-mw-comment-end="h-Parameter_TemplateData"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parameter_TemplateData","replies":["h-Within_params-Parameter_TemplateData","h-Custom_formats-Parameter_TemplateData","h-Blank_boilerplate-Parameter_TemplateData"]}}--></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">All available template data parameters (i.e those between tags <code><templatedata>...</templatedata></code> of the wiki source) are listed below with a description and example.</span> <span lang="en" dir="ltr" class="mw-content-ltr">They are also listed in more technical detail at <a href="/wiki/Special:MyLanguage/Extension:TemplateData#Format" title="Special:MyLanguage/Extension:TemplateData">Extension:TemplateData#Format</a>.</span> </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info"> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr">This information is current as of November 2021 and may change if new parameters are added or the template editing interfaces get updates to support existing parameters or treat certain parameters differently.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Wiki markup will not work in descriptions or labels.</span> <span lang="en" dir="ltr" class="mw-content-ltr">They are strictly plain text strings.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">New lines ("<code>\n</code>") in descriptions, labels, examples or defaults will not show in any of the main editors (TemplateWizard, the visual editor or the 2017 wikitext editor), even though they show in the auto-generated template data documentation.</span> <span lang="en" dir="ltr" class="mw-content-ltr">They are replaced by a null string in input forms and by a space elsewhere.</span></li></ul></div> <table class="wikitable"> <tbody><tr> <th style="width: 5%;"><span lang="en" dir="ltr" class="mw-content-ltr">Parameter</span> </th> <th style="width: 75%;"><span lang="en" dir="ltr" class="mw-content-ltr">Description</span> </th> <th style="width: 20%;"><span lang="en" dir="ltr" class="mw-content-ltr">Example</span> </th></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="description"></span><span class="anchor" id="Description"></span><span class="anchor" id="Template_description"></span> </td></tr> <tr> <th>description </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"description"</code> parameter describes what the template does.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It is optional but highly recommended.</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>On the template documentation page, the description will show in plain text below the "Template data for [template name]" subheading. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In all main editors (<a href="/wiki/Special:MyLanguage/VisualEditor" title="Special:MyLanguage/VisualEditor">VisualEditor</a><span style="display:none"><a href="/wiki/VisualEditor" title="VisualEditor"> </a></span>, the <a href="/wiki/Special:MyLanguage/2017_wikitext_editor" title="Special:MyLanguage/2017 wikitext editor">2017 wikitext editor</a><span style="display:none"><a href="/wiki/2017_wikitext_editor" title="2017 wikitext editor"> </a></span> and the <a href="/wiki/Special:MyLanguage/Extension:WikiEditor" title="Special:MyLanguage/Extension:WikiEditor">Alat sunting wiki</a><span style="display:none"><a href="/wiki/Extension:WikiEditor" title="Extension:WikiEditor"> </a></span> with <a href="/wiki/Special:MyLanguage/Help:Extension:TemplateWizard" title="Special:MyLanguage/Help:Extension:TemplateWizard">TemplateWizard</a>), the description shows in two main instances: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>below the template name in each search suggestion when the user is searching for a template</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>below the template name in the template editor, while they are adding values to parameters in the template.</li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">In the visual editor and 2017 wikitext editor, the description gets truncated to about 50 characters under each search suggestion, followed by a "...", but the whole description shows in the main template editor window.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Both are shown in grey text.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In the main template editor window, descriptions longer than four lines (about 540 characters) are provided a separate scrollbar, and they are shown in black text.</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">If not specified</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">If the description parameter does not exist or is not specified, the text "Tiada keterangan." will be displayed in the template data documentation below the "Template data for [template name]" subheading.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Additionally:</span> </p> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr">in the visual editor and the 2017 wikitext editor, it will behave the same as a template that does not have template data; instead of a description, the following text will display:</span></li></ul> <dl><dd><dl><dd><code>"<span lang="en" dir="ltr" class="mw-content-ltr">The "Template:<i>Templatename</i>" template doesn't yet have a description, but there might be some information on the template's page.</span>"</code></dd></dl></dd></dl> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr">in the 2010 wikitext editor with TemplateWizard, the following text will display where the description would be (except in search suggestions):</span></li></ul> <dl><dd><code>"No description exists for this template."</code></dd></dl> <dl><dd><span lang="en" dir="ltr" class="mw-content-ltr">This is different from the two standard placeholder descriptions in cases when template data doesn't exist:</span></dd></dl> <dl><dd><ul><li><code>"<span lang="en" dir="ltr" class="mw-content-ltr">Due to missing template data, parameters for this template have been auto-generated.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Please be aware that they may not be accurate.</span>"</code></li> <li><code>"<span lang="en" dir="ltr" class="mw-content-ltr">No parameters could be determined for this template due to absence of template data documentation.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You may insert the template without parameters.</span>"</code></li></ul></dd></dl> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">"A template for linking to a commons category"</span><span class="p">,</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="format"></span><span class="anchor" id="Format"></span> </td></tr> <tr> <th>format </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"format"</code> parameter describes how the template's wikitext should be laid out.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This can be set to the standard formats of <code>"inline"</code> and <code>"block"</code>, or the user can input a set of wikitext symbols to create a custom format; these symbols and some examples are listed in the section <a href="#Custom_formats">#Custom formats</a>.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">This parameter is not required, but it is recommended.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The default behavior when this parameter is not provided is preserving the existing formatting for existing parameters, or inline formatting for newly added parameters and templates.</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">Inline:</span></b> (<code>"inline"</code>) </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>When inserted, the template will lay its wikitext out on a single line with no white space between elements, like so: </p> </div> <dl><dd><code>{{Foo|bar=baz|longparameter=quux}}</code></dd></dl> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">Block:</span></b> (<code>"block"</code>) </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>When inserted, the template will distribute its parameters each on a new line, with single spaces between each element, like so: </p> </div> <pre>{{Foo | bar = baz | longparameter = quux }}</pre> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">Custom formatting:</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Alternatively, if the parameter is set to a custom string of wikitext, as per the rules listed at <a href="#Custom_formats">#Custom formats</a>, the template will lay its wikitext out as per the given wikitext. </p> </div> </td> <td> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"format"</span><span class="o">:</span><span class="w"> </span><span class="s2">"inline"</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="params"></span><span class="anchor" id="Params"></span><span class="anchor" id="Multiple_parameters"></span> </td></tr> <tr> <th>params </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"params"</code> object contains the information for each parameter of the template. It is required, and its parameters can be viewed in the <a href="#Within_params">#Within params</a> section. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>It should contain the <a href="#Parameter_name">name</a> of each parameter followed by a set of template data sub-parameters listed in <a href="#Within_a_parameter's_name">#Within a parameter's name</a>. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If there are multiple parameters, place a comma <i>between</i> each parameter object, but do not add one after the last curly bracket (see example). </p> </div> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"parameter1"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="c1">// parameter info</span> <span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="c1">// comma here</span> <span class="w"> </span><span class="s2">"parameter2"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="c1">// parameter info</span> <span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="c1">// and here</span> <span class="w"> </span><span class="s2">"parameter3"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="c1">// parameter info</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="c1">// but not here</span> <span class="p">}</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="paramOrder"></span><span class="anchor" id="ParamOrder"></span><span class="anchor" id="Paramorder"></span> </td></tr> <tr> <th>paramOrder </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"paramOrder"</code> object is an optional object that causes the parameters of a template to be displayed in a specific order when added in the template editor. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>How to use</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Add the parameter <code>"paramOrder"</code>, followed by a colon, a space and an open square bracket, then type the name of each of the template's parameters in double quotation marks (<code>"</code>) in the desired order, separated by commas.</span> <span lang="en" dir="ltr" class="mw-content-ltr">End with a closed square bracket (creating an array).</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The parameters need not be on new lines (they may be written as <code>"paramOrder": ["param1","param2","param3"]</code>), but placing them on new lines often helps readability. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">We recommend you place <code>"paramOrder"</code> after <code>"params"</code>, as the template data editor does; it isn't displayed in the template data documentation but simply forces the order of the parameters.</span> <span lang="en" dir="ltr" class="mw-content-ltr">A future editor may wish to quickly look through the parameter details and edit them rather than scrolling past the <code>"paramOrder"</code>, especially if there are a lot of parameters.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If you do choose to place paramOrder somewhere besides the end of the template data, end it with a comma.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You must include every parameter mentioned in the template data; otherwise a "<a href="#Required_property">Sifat "<i>propertyname</i>" yang diperlukan tidak dijumpai.</a>" error will show. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>If not specified</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Without <code>"paramOrder"</code>, the template's parameters will display in the order in which the template's source code declares them. If the source code contains objects inside objects, the parameters in outer objects will come first, followed by inner objects. </p> </div> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In the 2010 wikitext editor with TemplateWizard: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li><code>"<a href="#Required">required</a>"</code> parameters always appear at the top, regardless of the order in <code>"paramOrder"</code>.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li><code>"<a href="#Suggested">suggested</a>"</code> parameters will always appear second, above <code>"optional"</code> ones.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li><code>"<a href="#Deprecated">deprecated</a>"</code> parameters won't appear at all in this editor; see the description of <code>"deprecated"</code> for more info.</li></ul> </div> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr"><code>"paramOrder"</code> will only enforce its order within these categories (i.e., all <code>"required"</code> parameters will be in the order specified by <code>"paramOrder"</code>, and all <code>"suggested"</code> parameters will be too, but all <code>"suggested"</code> parameters will appear below all <code>"required"</code> parameters).</span></li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In the visual editor and the 2017 wikitext editor, <code>"paramOrder"</code> forces its order regardless of the status of each parameter. </p> </div> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"paramOrder"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span> <span class="w"> </span><span class="s2">"date"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"reason"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"talk"</span> <span class="p">]</span> </pre></div> </td></tr> </tbody></table> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Within_params" data-mw-thread-id="h-Within_params-Parameter_TemplateData"><span data-mw-comment-start="" id="h-Within_params-Parameter_TemplateData"></span>Within params<span data-mw-comment-end="h-Within_params-Parameter_TemplateData"></span></h3></div> </div> <table class="wikitable"> <tbody><tr> <th style="width: 5%;"><span lang="en" dir="ltr" class="mw-content-ltr">Parameter</span> </th> <th style="width: 75%;"><span lang="en" dir="ltr" class="mw-content-ltr">Description</span> </th> <th style="width: 20%;"><span lang="en" dir="ltr" class="mw-content-ltr">Example</span> </th></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="Parameter_name"></span> </td></tr> <tr> <th><i>Nama parameter</i> </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The only first-level item of the <code>params</code> object is the name of a parameter of the template. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>For example, in a template's source code, <code>{{{date}}}</code> denotes a parameter, and it should be added under <code>"params"</code> with the name <code>"date"</code>. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">You may also see parameters named <code>{{{1}}}</code> or another number (whose template data name should be, for example, <code>"1"</code>).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Parameters like this prevent a user inserting a template from having to type the parameter name and the equals sign (i.e., <code>|value|</code> instead of <code>|parametername=value|</code>).</span> <span lang="en" dir="ltr" class="mw-content-ltr">When there are multiple unnamed parameters, the number identifies which <a href="/wiki/Special:MyLanguage/Help:Templates#Anonymous_parameters" title="Special:MyLanguage/Help:Templates">unnamed parameter</a> is being referred to.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, in:</span> </p> <dl><dd><code>{{example template|value1|value2}}</code></dd></dl> <p><span lang="en" dir="ltr" class="mw-content-ltr"><code>value1</code> is the value of parameter <code>{{{1}}}</code>, and <code>value2</code> is the value of parameter <code>{{{2}}}</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Describe your template data parameters accordingly.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Note: a user can still force the use of <code>{{{2}}}</code> without <code>{{{1}}}</code> by inserting a parameter named "<code>2</code>" in the template editor or typing "<code>|2=</code>" in wikitext.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Finally, note that <code>"aliases"</code> creates alternatives to the parameter name which can be used interchangeably, and <code>"label"</code> replaces the parameter name <b>in the user interface</b> with the specified label (for situations in which the parameter name is not human readable or easily understood).</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>How to use</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Each of these "Nama parameter" objects should contain all of the information about the parameter, in the form of more template data parameters.</span> <span lang="en" dir="ltr" class="mw-content-ltr">These are listed in the following section, <a href="#Within_a_parameter's_name">Within a parameter's name</a>.</span> </p> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"1"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// name of the parameter</span> <span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="c1">// information about the parameter goes here</span> <span class="p">}</span> </pre></div> </td></tr> </tbody></table> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading4"><h4 id="Within_the_parameter's_name" data-mw-thread-id="h-Within_the_parameter's_name-Within_params"><span id="Within_the_parameter.27s_name"></span><span data-mw-comment-start="" id="h-Within_the_parameter's_name-Within_params"></span>Within the parameter's name<span data-mw-comment-end="h-Within_the_parameter's_name-Within_params"></span></h4></div> </div> <table class="wikitable"> <tbody><tr> <th style="width: 5%;"><span lang="en" dir="ltr" class="mw-content-ltr">Parameter</span> </th> <th style="width: 70%;"><span lang="en" dir="ltr" class="mw-content-ltr">Description</span> </th> <th style="width: 25%;"><span lang="en" dir="ltr" class="mw-content-ltr">Example</span> </th></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="aliases"></span><span class="anchor" id="Aliases"></span><span class="anchor" id="Parameter_aliases"></span> </td></tr> <tr> <th>aliases </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The optional <code>"aliases"</code> parameter allows a template parameter to have multiple names.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can check this by going into the template's source code and looking for:</span> </p> <dl><dd><code>{{{parameter1|{{{parameter2}}}}}}</code></dd></dl> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>or </p> </div> <dl><dd><code>{{{parameter1|{{{parameter2|}}}}}}</code></dd></dl> <p><span lang="en" dir="ltr" class="mw-content-ltr">This means that if the user inserts either of these parameters with a value, they will perform the same function.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Literally, it translates to, "Value of parameter1. If parameter1 doesn't exist or have a value: value of parameter2."</span> <span lang="en" dir="ltr" class="mw-content-ltr">In the second case, it also means, "If parameter2 doesn't exist or have a value: no value."</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">To insert the <code>"aliases"</code> parameter, add the text <code>"aliases"</code> followed by a colon, a space and an open square bracket, then typing the name of each of the parameter's aliases in quotation marks, separated by commas.</span> <span lang="en" dir="ltr" class="mw-content-ltr">End with a closed square bracket, creating an array.</span> </p> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"aliases"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span><span class="s2">"1"</span><span class="p">,</span><span class="w"> </span><span class="s2">"talk"</span><span class="p">,</span><span class="w"> </span><span class="s2">"talksection"</span><span class="p">],</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="inherits"></span><span class="anchor" id="Inherits"></span><span class="anchor" id="Similar_parameters"></span> </td></tr> <tr> <th>inherits </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr"><code>"inherits"</code> is an optional parameter for when a parameter should inherit all of the template data of another parameter.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This can then be overridden by any parameters specified for the inheriting parameter.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">To use this parameter, type <code>"inherits" :</code> followed by another template parameter's name, such as <code>"talk"</code> or <code>"1"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can then type another specific setting for the parameter underneath if you wish, like <code>"label" : "A different label"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The first parameter will inherit all of the second parameter's properties except this one.</span> </p> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"topic1"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Topic"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">"A topic mentioned on this disambiguation page"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">"string"</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"topic2"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"inherits"</span><span class="o">:</span><span class="w"> </span><span class="s2">"topic1"</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"topic3"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"inherits"</span><span class="o">:</span><span class="w"> </span><span class="s2">"topic1"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"label"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s2">"A different label"</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="label"></span><span class="anchor" id="Label"></span> </td></tr> <tr> <th>label </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"label"</code> parameter is a human-readable title for the parameter that will be displayed within the template editor.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The label is displayed in place of the parameter's raw name at all times, including when an alias is used in the wikitext.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This parameter is optional but highly recommended.</span> </p> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Month and year"</span><span class="p">,</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="Parameter_description"></span> </td></tr> <tr> <th>description </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">Here, <code>"description"</code> is a description of the parameter, not the template as a whole.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This description appears below the parameter name (a long descriptions will be shortened with a button to optionally expand it).</span> <span lang="en" dir="ltr" class="mw-content-ltr">It is optional but highly recommended.</span> </p> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">"The month and year that the template was inserted"</span><span class="p">,</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="type"></span><span class="anchor" id="Type"></span> </td></tr> <tr> <th>type </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">See the <a href="#Type_parameter">#Type parameter</a> section.</span> </p> </td> <td> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="default"></span><span class="anchor" id="Default"></span> </td></tr> <tr> <th>default </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">Some template parameters have a default value; the value is used unless overridden by the user.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The <code>"default"</code> item is an optional item, documentary only, that is intended to communicate this default value to the user.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The value need not match the actual default (if there is one) and has <b>no functional effect</b>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">(Not to be confused with <code>"autovalue"</code>, which <b>is</b> a functional parameter that fills in a field for the user.)</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), the <code>"default"</code> text will show as grey text in the input box of any open parameter when it is empty, in the format <code>"Default: <i>default text</i>"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Additionally, it will show in plain black text in the <a href="#Parameter_description">parameter description</a> (when the user hovers over the "i" symbol).</span> <span lang="en" dir="ltr" class="mw-content-ltr">In the visual editor and the 2017 wikitext editor, this will be below the parameter description, below "Field is <a href="#Required">required</a>"/"Field is <a href="#Deprecated">deprecated</a>", if specified (the 2010 wikitext editor doesn't show this text), and above "<a href="#Example">example</a>", if specified (<code>"example"</code> does not show in the parameter description in the 2010 wikitext editor).</span> <span lang="en" dir="ltr" class="mw-content-ltr">In the 2010 wikitext editor with TemplateWizard, the <code>"default"</code> text shows directly after the parameter description, on the same line, following a space.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It shows in the same format as the other editors (<code>"Default: <i>default text</i>"</code>).</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), if <code>"default"</code> is specified, the <code>"example"</code> value will not show in the input box. </p> </div> </td> <td> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"default"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Category:CommonsRoot"</span><span class="p">,</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="autovalue"></span><span class="anchor" id="Autovalue"></span><span class="anchor" id="Auto_value"></span> </td></tr> <tr> <th>autovalue </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">A parameter can be assigned an <code>"autovalue"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">When a user adds the template to a page, this value will automatically appear in the input box.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, many cleanup templates need the date added; setting the <code>"autovalue"</code> for the template's <code>date</code> parameter to be <code>{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}</code>, the month and year that the template was added will be filled in automatically.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">This value can be overwritten by the user in the template editor.</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), <code>"autovalue"</code> overrides the visible effects of <code>"url"</code> in the visual editor and the 2017 wikitext editor.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See <a href="#Type">the description for <code>"type"</code></a> for more info.</span> </p> </td> <td> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"autovalue"</span><span class="o">:</span><span class="w"> </span><span class="s2">"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}"</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="example"></span><span class="anchor" id="Example"></span> </td></tr> <tr> <th>example </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"example"</code> parameter is optional and documentary only; its value contains an example that helps the template's user understand the correct way to fill in the parameter (not to be confused with <code>"suggested"</code>; see that entry for more information).</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), this property is displayed below the parameter description (and below the <code>"default"</code> text, if specified).</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), <code>"example"</code> will not show in the input box if "default" is specified. </p> </div> </td> <td> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"example"</span><span class="o">:</span><span class="w"> </span><span class="s2">"January 2013"</span><span class="p">,</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="suggestedvalues"></span> </td></tr> <tr> <th>suggested values </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The parameter property <code>suggestedvalues</code> lets you define a list of parameter values to be shown to visual editor users in a dropdown for easy selection. This can be done either directly in JSON or using the template data editor (no coding required).</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can add suggested values to be displayed in the visual editor for parameters which have their type set to one of the following options (<a href="/wiki/Special:MyLanguage/Extension:TemplateData#Param_object" title="Special:MyLanguage/Extension:TemplateData">reference</a>):</span> </p> <ul><li>Kandungan</li> <li>Baris</li> <li>Rentetan</li> <li>Angka</li> <li>Tidak diketahui</li> <li>Wikiteks tidak seimbang</li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Other types (file, page, template, user, date, boolean, URL) are not currently supported because they have special functionalities in the visual editor already, such as autocomplete, which would interfere with the drop-down menu for suggested values in the visual editor. </p> </div> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">Editing template data as JSON in wikitext</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>To add suggested values to any parameter type, add the new property "suggestedvalues" to the parameter in JSON. The “suggestedvalues” attribute must be a list of strings. </p> </div> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">Editing template data with the template data editor</span></b> </p> <ol><li><span lang="en" dir="ltr" class="mw-content-ltr">Click on "Sunting data templat".</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Click on the name of the parameter you want to add suggested values to.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">If it’s not already done, set parameter type to one of the following: content, line, string, number, unknown, unbalanced wikitext. A new input field "Suggested values" will appear. If the parameter is already set to one of these types, the input field should already be visible.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Type in the suggested value(s), including any spaces and special characters, and press enter to add the value(s) to the list.</span></li></ol> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Once the values have been added to template data, the visual editor will display them in a combo box (a dropdown into which users can also enter a custom value) for the parameter types listed above. The user selects the desired value by clicking on it. If the list of values is long -- for example, a list of a country’s states -- the user can begin typing in the field, whereupon the list will be filtered to show only values containing the typed text. To change an entered value, the user must simply clear the field, and the full dropdown list will appear again. If the user needs a value not included in the list (for example, "message in a bottle") they can type it in manually.</span> </p> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="s2">"suggestedvalues"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span> <span class="w"> </span><span class="s2">"Journal"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"Book"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"Newspaper"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"Magazine"</span> <span class="w"> </span><span class="p">]</span> </pre></div> </td></tr> </tbody></table> <table class="wikitable"> <tbody><tr> <th style="width: 5%;"><span lang="en" dir="ltr" class="mw-content-ltr">Status option</span> </th> <th style="width: 70%;"><span lang="en" dir="ltr" class="mw-content-ltr">Description</span> </th> <th style="width: 25%;"><span lang="en" dir="ltr" class="mw-content-ltr">Example</span> </th></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="required"></span><span class="anchor" id="Required"></span> </td></tr> <tr> <th>required </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"required"</code> parameter can be set to either <code>true</code> or <code>false</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">When unspecified the value defaults to <code>false</code>.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>It determines whether filling in the given parameter is mandatory for the template. </p> </div> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>This status has several effects in the visual editor and the <a href="/wiki/Special:MyLanguage/2017_wikitext_editor" title="Special:MyLanguage/2017 wikitext editor">2017 wikitext editor</a><span style="display:none"><a href="/wiki/2017_wikitext_editor" title="2017 wikitext editor"> </a></span>: </p> </div> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr">it displays the parameter automatically when a user inserts the template;</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">it shows a black asterisk within the input box, on the right;</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">it shows the grey, italic text "Parameter diperlukan." below the parameter description;</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">it makes the input box glow red if the user clicks away without entering a value;</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">if a user attempts to insert the template without a value in the required parameter, it will show them a prompt, asking if they are sure.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If they confirm, it will insert the parameter with a blank value.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It will not stop them from inserting the template, though, and it does not result in a visible error by itself (though templates can be programmed to display an error when a required parameter is not filled in).</span></li></ul> <p><span lang="en" dir="ltr" class="mw-content-ltr">In the <a href="/wiki/Special:MyLanguage/Extension:WikiEditor" title="Special:MyLanguage/Extension:WikiEditor">Alat sunting wiki</a><span style="display:none"><a href="/wiki/Extension:WikiEditor" title="Extension:WikiEditor"> </a></span> with <a href="/wiki/Special:MyLanguage/Help:Extension:TemplateWizard" title="Special:MyLanguage/Help:Extension:TemplateWizard">Sambungan:TemplateWizard</a><span style="display:none"><a href="/wiki/Help:Extension:TemplateWizard" title="Help:Extension:TemplateWizard"> </a></span>, as in the other editors, it displays the parameter automatically when a user inserts the template, but the parameter cannot be removed using this or any editor.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It also does not display "Parameter diperlukan." in the parameter description; rather, it lists the parameter on the side under "Required parameters".</span> <span lang="en" dir="ltr" class="mw-content-ltr">Other than this, it generally behaves the same as in the other editors, except that the prompt says that the input doesn't "match the expected format".</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In the visual editor and the 2017 wikitext editor, the <code>"deprecated"</code> status does not override the functionality of this parameter, but in the 2010 wikitext editor with TemplateWizard it does.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See the description of <code>"deprecated"</code> for more info.</span> </p> </td> <td> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"required"</span><span class="o">:</span><span class="w"> </span><span class="kc">true</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="suggested"></span><span class="anchor" id="Suggested"></span> </td></tr> <tr> <th>suggested </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"suggested"</code> parameter can be set to either <code>true</code> or <code>false</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">When unspecified it defaults to <code>false</code>.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Use <code>"suggested"</code> for parameters that are not mandatory but strongly recommended for template users to provide. When filling in this parameter, a user will see this suggestion. </p> </div> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In the visual editor and the <a href="/wiki/Special:MyLanguage/2017_wikitext_editor" title="Special:MyLanguage/2017 wikitext editor">2017 wikitext editor</a><span style="display:none"><a href="/wiki/2017_wikitext_editor" title="2017 wikitext editor"> </a></span>, it causes the parameter to automatically show up when a user inserts a template.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the parameter has an autovalue set, this will also automatically be in the parameter's input box.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It has no other effect and doesn't show any additional text or warnings.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In the <a href="/wiki/Special:MyLanguage/Extension:WikiEditor" title="Special:MyLanguage/Extension:WikiEditor">Alat sunting wiki</a><span style="display:none"><a href="/wiki/Extension:WikiEditor" title="Extension:WikiEditor"> </a></span> with TemplateWizard, it does not place the parameter in the template automatically but instead causes it to be listed on the side under "Suggested parameters".</span> <span lang="en" dir="ltr" class="mw-content-ltr">The user can then click a "+" next to the parameter to add it to the template.</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"required"</code> status overrides the functionality of this status in all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor).</span> <span lang="en" dir="ltr" class="mw-content-ltr">It also overrides the displayed <code>"suggested"</code> status in template data documentation (it will display <code>"required"</code> if both <code>"required"</code> and "suggested" are set to <code>true</code>).</span> </p> </td> <td> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"suggested"</span><span class="o">:</span><span class="w"> </span><span class="kc">true</span> </pre></div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="deprecated"></span><span class="anchor" id="Deprecated"></span> </td></tr> <tr> <th>deprecated </th> <td> <p><span lang="en" dir="ltr" class="mw-content-ltr">Finally, there is <code>"deprecated"</code>, which can be set to <code>true</code>, <code>false</code>, or a string describing what users should instead do.</span> <span lang="en" dir="ltr" class="mw-content-ltr">When unspecified it defaults to <code>false</code>.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">This is a status for parameters that should not be used any more but still exist for the time being.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This could be because uses of the template are being moved from one set of parameters to another.</span> </p><p><b><span lang="en" dir="ltr" class="mw-content-ltr">Effects</span></b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">The effect of this parameter in the visual editor and the 2017 wikitext editor is that a grey exclamation mark shows next to the parameter's label when it is inserted, and in the parameter's information tooltip, the grey, italic text "Parameter telah dilupuskan. <i>deprecation reason</i>" is shown below the parameter description.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It does not affect the functionality or usability of the parameter or show any additional warnings.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Despite the fact that it can take a string, as of January 2020 none of the main editors (the visual editor, the 2017 wikitext editor or the 2010 wikitext editor) display the contents of the string anywhere to users.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Inputting a string has the same effect as <code>true</code>.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In the 2010 wikitext editor with TemplateWizard, setting this value as <code>true</code> does not allow the parameter to be added or seen. </p> </div> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If you set both this and <code>"suggested"</code> as <code>true</code>, the parameter status will show as <code>"deprecated"</code> in the template data documentation, but in the visual editor and the 2017 wikitext editor both functionalities will be retained; the parameter will automatically show up when a user inserts a template, but it will have the <code>"deprecated"</code> warnings around it. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If you set both this and <code>"required"</code> as <code>true</code>, the parameter status will show as "deprecated" in the template data documentation, but in the visual editor and the 2017 wikitext editor it will have the same functionality as only <code>"required"</code>; the parameter will automatically show up when a user inserts a template, and it will have the <code>"required"</code> warnings around it.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is the same for if you set <code>"deprecated"</code>, <code>"suggested"</code> and <code>"required"</code> as <code>true</code>.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In the 2010 wikitext editor with TemplateWizard, <code>"deprecated"</code> overrides the parameters <code>"required"</code> and <code>"suggested"</code>. </p> </div> </td> <td><div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"deprecated"</span><span class="o">:</span><span class="w"> </span><span class="s2">"Please use 'publicationDate' instead."</span> </pre></div> </td></tr> </tbody></table> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Note: if neither <code>"required"</code>, <code>"suggested"</code> nor <code>"deprecated"</code> are set as <code>true</code> for a parameter, its status will show as <code>"optional"</code> in the template data documentation. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Once you're done, hit "Simpan". If you've made errors, it will not let you save (which is disruptive but means you can't break anything). Should you run into errors, explain on the <a href="/wiki/Special:MyLanguage/VisualEditor/Feedback" title="Special:MyLanguage/VisualEditor/Feedback">feedback page</a> what you were trying to do, and we will be happy to help. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Note that if you are abusing a hack template to dynamically generate template data, it cannot be checked for errors before saving. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Note that each item of information is enclosed in quotation marks (except for <code>true</code> and <code>false</code>) and separated from the next item by a comma (unless it's the last one). </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading5"><h5 id="Type_parameter" data-mw-thread-id="h-Type_parameter-Within_the_parameter's_name"><span data-mw-comment-start="" id="h-Type_parameter-Within_the_parameter's_name"></span>Type parameter<span data-mw-comment-end="h-Type_parameter-Within_the_parameter's_name"></span></h5></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">The <code>"type"</code> parameter is meant to signal to a template editor the nature of a parameter's value.</span> <span lang="en" dir="ltr" class="mw-content-ltr">In some cases, template editors have been programmed to modify the user interface for a certain parameter according to this template data value, such as to only allow the user to enter valid values that match the specified type.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This parameter does not have any functional effect on the template parameter or its value; it merely controls how template editors see and treat the parameter in editing mode.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>How to use</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>It is used by adding the <code>"type"</code> parameter, followed by a colon and a space, then adding any of the values listed in the table below in quotation marks. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Example: </p> </div> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">"string"</span><span class="p">,</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>As of February 2020, only 5 of the 13 type values have visible effects in VisualEditor and the 2017 wikitext editor, while 8 have visible effects in TemplateWizard. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The effects of certain values are likely to change as the template editors get updates to support them. One such effort for VisualEditor and the 2017 wikitext editor is tracked in the Phabricator task <a href="https://phabricator.wikimedia.org/T55613" class="extiw" title="phab:T55613">T55613</a>. A similar effort to get TemplateWizard to support the boolean value is tracked in <a href="https://phabricator.wikimedia.org/T200664" class="extiw" title="phab:T200664">T200664</a>. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The currently known effects are listed as follows. </p> </div> <table class="wikitable"> <caption><span class="anchor" id="Type_parameter_table"></span> </caption> <tbody><tr> <th style="width: 10%;"><span lang="en" dir="ltr" class="mw-content-ltr">Value</span> </th> <th style="width: 90%;"><span lang="en" dir="ltr" class="mw-content-ltr">Description</span> </th></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="unknown"></span><span class="anchor" id="Unknown"></span> </td></tr> <tr> <th>unknown </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"unknown"</code> value is the default type value if no type is set. It can also be set manually by typing <code>"type": "unknown"</code>. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In all main editors (VisualEditor, 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), <code>"unknown"</code> has no visible effects compared to a template without template data. </p> </div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="string"></span><span class="anchor" id="String"></span> </td></tr> <tr> <th>string </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"string"</code> value is intended for any string of plain text. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), <code>"string"</code> has no visible effect compared to <code>"unknown"</code>. </p> </div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="line"></span><span class="anchor" id="Line"></span> </td></tr> <tr> <th>line </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"line"</code> value is intended for content that should be forced to stay on one line. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr">In the visual editor and the 2017 wikitext editor, <code>"line"</code> prevents a parameter's input box from allowing new lines, which are usually possible in these editors.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">In the 2010 wikitext editor with TemplateWizard, <code>"line"</code> has no visible effect (input boxes do not allow new lines by default in this editor).</span></li></ul> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="content"></span><span class="anchor" id="Content"></span> </td></tr> <tr> <th>content </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"content"</code> value is intended for wikitext of page content, for example, links, images or text formatting. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the visual editor and the 2017 wikitext editor, <code>"content"</code> has no visible effect.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"content"</code> makes the parameter input box one line taller and allows new lines, which regular input boxes in the 2010 wikitext editor do not.</li></ul> </div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="unbalanced-wikitext"></span><span class="anchor" id="Unbalanced-wikitext"></span> </td></tr> <tr> <th><style data-mw-deduplicate="TemplateStyles:r4673781">.mw-parser-output .nowrap,.mw-parser-output .nowrap a:before,.mw-parser-output .nowrap .selflink:before{white-space:nowrap}</style><span class="nowrap">unbalanced-wikitext</span> </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"unbalanced-wikitext"</code> value is intended for wikitext that cannot stand alone, i.e. it lacks an opening or closing tag or refers to other parts of wikitext. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the visual editor and the 2017 wikitext editor, <code>"unbalanced-wikitext"</code> has no visible effect.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"unbalanced-wikitext"</code> makes the parameter input box one line taller and allows new lines, which regular input boxes in the 2010 wikitext editor do not.</li></ul> </div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="wiki-page-name"></span><span class="anchor" id="Wiki-page-name"></span> </td></tr> <tr> <th><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4673781"><span class="nowrap">wiki-page-name</span> </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"wiki-page-name"</code> value is intended for a page name on a wiki. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), <code>"wiki-page-name"</code> makes the parameter input box show a suggestion dropdown menu containing a list of pages on the wiki, such as articles on Wikipedia, which can be selected.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Namespaces can also be defined in the search.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Additionally, in the visual editor and the 2017 wikitext editor, it forces the input box content to stay on one line.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It has no other visible effect and doesn't prevent a non-page from being inputted.</span> </p> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="wiki-file-name"></span><span class="anchor" id="Wiki-file-name"></span> </td></tr> <tr> <th><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4673781"><span class="nowrap">wiki-file-name</span> </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"wiki-file-name"</code> value is intended for a file name hosted either locally on a wiki or on Wikimedia Commons. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the visual editor and the 2017 wikitext editor, <code>"wiki-file-name"</code> has no visible effect.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"wiki-file-name"</code> makes the parameter input box show a suggestion dropdown menu containing a list of files hosted both locally and on Wikimedia Commons, which can be selected.</li></ul> </div> <span lang="en" dir="ltr" class="mw-content-ltr">The file names do not contain the "File:" namespace prefix.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The dropdown menu also shows the thumbnail of the files.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It has no other visible effect and doesn't prevent a non-file from being inputted.</span> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="wiki-template-name"></span><span class="anchor" id="Wiki-template-name"></span> </td></tr> <tr> <th><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4673781"><span class="nowrap">wiki-template-name</span> </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"wiki-template-name"</code> value is intended for the name of a template. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), <code>"wiki-template-name"</code> makes the parameter input box show a suggestion dropdown menu containing a list of templates, which can be selected.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Additionally, in the visual editor and the 2017 wikitext editor, it forces the input box content to stay on one line.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It has no other visible effect and doesn't prevent a non-template from being inputted.</span> </p> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="wiki-user-name"></span><span class="anchor" id="Wiki-user-name"></span> </td></tr> <tr> <th><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4673781"><span class="nowrap">wiki-user-name</span> </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"wiki-user-name"</code> value is intended for a username on a wiki. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">In all main editors (the visual editor, the 2017 wikitext editor and the 2010 wikitext editor with TemplateWizard), <code>"wiki-user-name"</code> makes the parameter input box show a suggestion dropdown menu containing a list of actual users' names, which can be selected.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Additionally, in the visual editor and the 2017 wikitext editor, it forces the input box content to stay on one line.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It has no other visible effect and doesn't prevent a non-username from being inputted.</span> </p> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="number"></span><span class="anchor" id="Number"></span> </td></tr> <tr> <th>number </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"number"</code> value is intended for numerical values, including negative values and decimals. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the visual editor and the 2017 wikitext editor, <code>"number"</code> has no visible effect.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"number"</code> causes the input box to display a "+" and "-" button on either side, which can raise or lower a number value in the input box, and the user can only type numbers into the box.</li></ul> </div> <span lang="en" dir="ltr" class="mw-content-ltr">The buttons can also lower the number into negatives.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>With other parameters</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"number"</code> overrides the effects of <code>"<a href="#Autovalue">autovalue</a>"</code>; the value of <code>"autovalue"</code> will not be automatically placed in the input box if the parameter type is <code>"number"</code>.</li></ul> </div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="boolean"></span><span class="anchor" id="Boolean"></span> </td></tr> <tr> <th>boolean </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"boolean"</code> value is intended for a value that is either true, false or unknown. This is intended by the <a href="/wiki/Special:MyLanguage/Extension:TemplateData#Param_object" title="Special:MyLanguage/Extension:TemplateData">manual</a> to be represented by a "1", "0" or blank value. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>As of February 2020, none of the main Wikimedia editors (the visual editor, the 2017 wikitext editor or the 2010 wikitext editor with TemplateWizard) make use of this value. It has no visible effects. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>With the <code>autovalue:0</code> checkbox appears in the visual editor, which can be switched on and off. </p> </div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="date"></span><span class="anchor" id="Date"></span> </td></tr> <tr> <th>date </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"date"</code> value is intended for a date in the YYYY-MM-DD (<a href="https://en.wikipedia.org/wiki/ISO_8601" class="extiw" title="en:ISO 8601">ISO 8601</a>) format; for example, 2014-05-22. The <a href="/wiki/Special:MyLanguage/Extension:TemplateData#Param_object" title="Special:MyLanguage/Extension:TemplateData">template data manual</a> also designates it as being intended for ISO 8601 date–time combinations, such as "2014-05-22T16:01:12Z", but in practice no major editing interface as of February 2020 uses it in this fashion, and almost all major Wikimedia template parameters take dates and times separately. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the visual editor and the 2017 wikitext editor, <code>"date"</code> has no visible effect.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"date"</code> makes the parameter input box about a third shorter and adds a dropdown calendar, allowing the user to choose a date input. It also displays the grey example text in the input box "YYYY-MM-DD". If an input does not conform to this standard, the box glows red, however the editor will always output a date conforming to the standard (if numbers are entered) or nothing (if only text or nothing is entered).</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>With other parameters</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"date"</code> overrides the effects of <code>"<a href="#Autovalue">autovalue</a>"</code>; the value of <code>"autovalue"</code> will not be automatically placed in the input box if the parameter type is <code>"date"</code>.</li></ul> </div> </td></tr> <tr style="visibility:collapse"> <td colspan="3"><span class="anchor" id="url"></span><span class="anchor" id="Url"></span><span class="anchor" id="URL"></span> </td></tr> <tr> <th>url </th> <td> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <code>"url"</code> value is intended for a URL, with Internet protocol (e.g., "https://" or "//") included. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Effects</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the visual editor and the 2017 wikitext editor, <code>"url"</code> makes the input box display an external link icon (a square with arrow pointing out of it) in the left hand side of the box and makes the box glow red when the user clicks away without entering a URL value that includes a valid Internet protocol (e.g., "https://", "ftp://" or "//") followed by some text.</li></ul> </div> <span lang="en" dir="ltr" class="mw-content-ltr">This second effect is similar to that of the "<code><a href="#Required">required</a></code>" setting, but it does not warn the user if they attempt to insert the template without a valid URL.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It also occurs with any status setting (such as "<code><a href="#Suggested">suggested</a>"</code>" or "<code><a href="#Deprecated">deprecated</a></code>").</span> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the 2010 wikitext editor with TemplateWizard, <code>"url"</code> has no visible effect.</li></ul> </div> <p><b><span lang="en" dir="ltr" class="mw-content-ltr">With other parameters</span></b> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>In the visual editor and the 2017 wikitext editor, <code>"autovalue"</code> overrides the visible effects of <code>"url"</code>: when both are set, the input box will not contain a URL icon nor glow red when the user clicks away without entering a valid URL.</li></ul> </div> </td></tr></tbody></table> <p><span class="anchor" id="Custom_formats"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Custom_formats" data-mw-thread-id="h-Custom_formats-Parameter_TemplateData"><span data-mw-comment-start="" id="h-Custom_formats-Parameter_TemplateData"></span><span lang="en" dir="ltr" class="mw-content-ltr">Custom formats</span><span data-mw-comment-end="h-Custom_formats-Parameter_TemplateData"></span></h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>When editing the <code>"format"</code> value, you create custom formats by inputting a set of wikitext symbols using some predefined rules. </p> </div> <ul><li><code>{{</code> - <span lang="en" dir="ltr" class="mw-content-ltr">start of the template</span></li> <li><code>_</code> - <span lang="en" dir="ltr" class="mw-content-ltr">content (e.g., string, integer or parameter).</span> <span lang="en" dir="ltr" class="mw-content-ltr">This underscore serves to indicate the minimum length of a value in characters and can be repeated, like <code>_______</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If this length is not reached, it fills the remaining characters with spaces.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This can be used to align all equals signs to a specific position after a parameter (if used with <code>\n</code> for new lines).</span></li> <li><code>|</code> - <span lang="en" dir="ltr" class="mw-content-ltr">pipe (separates parameters)</span></li> <li><code>=</code> - <span lang="en" dir="ltr" class="mw-content-ltr">equals sign (precedes the value of a parameter)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr"><code>\n</code> or pressing the enter key - new line (this will display as <code>↵</code> in the entry field)</span></li> <li><code> </code> - <span lang="en" dir="ltr" class="mw-content-ltr">space (can be used with <code>\n</code> to indent new lines)</span></li> <li><code>}}</code> - <span lang="en" dir="ltr" class="mw-content-ltr">end of the template</span></li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The wikitext should at least meet the minimum of <code>{{_|_=_}}</code>, otherwise there will be an invalid format string error. </p> </div> <table class="wikitable"> <caption><span lang="en" dir="ltr" class="mw-content-ltr">Examples of formats you can use</span> </caption> <tbody><tr> <th style="width:25%"><span lang="en" dir="ltr" class="mw-content-ltr">Objective</span> </th> <th><span lang="en" dir="ltr" class="mw-content-ltr">Format string</span> </th> <th><span lang="en" dir="ltr" class="mw-content-ltr">Output</span> </th></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">Inline formatting</span> </td> <td><code style="white-space: pre-wrap;">{{_|_=_}}</code> <br/> <code>inline</code> </td> <td><pre>{{Foo|bar=baz|longparameter=quux}}{{Bar}}</pre> </td></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">Block formatting</span> </td> <td><code style="white-space: pre-wrap;">{{_\n| _ = _\n}}</code> <br/> <code>block</code> </td> <td><pre>{{Foo | bar = baz | longparameter = quux }}{{Bar}}</pre> </td></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">No space before the parameter name, each template on its own line</span> </td> <td><code style="white-space: pre-wrap;">\n{{_\n|_ = _\n}}\n</code> </td> <td><pre>{{Foo |bar = baz |longparameter = quux }} {{Bar}}</pre> </td></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">Indent each parameter</span> </td> <td><code style="white-space: pre-wrap;">{{_\n |_ = _\n}}</code> </td> <td><pre>{{Foo |bar = baz |longparameter = quux }}{{Bar}}</pre> </td></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">Align all parameter names to a given length</span> </td> <td><code style="white-space: pre-wrap;">{{_\n|_______________ = _\n}}\n</code></td> <td><pre>{{Foo |bar = baz |longparameter = quux |veryverylongparameter = bat }} {{Bar}}</pre> </td></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">Pipe characters at the end of the previous line</span> </td> <td><code style="white-space: pre-wrap;">{{_|\n _______________ = _}}</code> </td> <td><pre>{{Foo| bar = baz| longparameter = quux}}{{Bar}}</pre> </td></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">Inline style with more spaces, must be at start of line</span> </td> <td><code style="white-space: pre-wrap;">\n{{_ | _ = _}}</code> </td> <td><pre>{{Foo | bar = baz | longparameter = quux}} {{Bar }}</pre> </td></tr> <tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">Template at the start of a line, indent-aligned parameters, pipe beforehand</span> </td> <td><code style="white-space: pre-wrap;">\n{{_ |\n _______________ = _}}</code> </td> <td><pre>{{Foo | bar = baz | longparameter = quux}} {{Bar}}</pre> </td></tr></tbody></table> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Blank_boilerplate" data-mw-thread-id="h-Blank_boilerplate-Parameter_TemplateData"><span data-mw-comment-start="" id="h-Blank_boilerplate-Parameter_TemplateData"></span>Blank boilerplate<span data-mw-comment-end="h-Blank_boilerplate-Parameter_TemplateData"></span></h3></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You can copy the blank boilerplate below to add new template data to a template. Only the most common tags are included. </p> </div> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="o"><</span><span class="nx">templatedata</span><span class="o">></span> <span class="p">{</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"1"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"2"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="p">}</span> <span class="o"><</span><span class="err">/templatedata></span> </pre></div> <p><br/> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Errors" data-mw-thread-id="h-Errors"><span data-mw-comment-start="" id="h-Errors"></span>Errors<span data-mw-comment-end="h-Errors"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Errors","replies":["h-Ralat_sintaks_dalam_JSON._\/_Bad_JSON_format-Errors","h-Sifat_\"paramOrder[number]\"_yang_diperlukan_tidak_dijumpai.-Errors","h-Nilai_tidak_sah_untuk_sifat_\"paramOrder[number]\".-Errors","h-Sifat_\"params.parametername.required\"_dijangka_jenis_\"boolean\".-Errors","h-Property_\"format\"_is_expected_to_be_...-Errors","h-Sifat_\"parametername\"_tidak_dijangka.-Errors","h-Sifat_\"params\"_yang_diperlukan_tidak_dijumpai.-Errors"]}}--></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Ralat_sintaks_dalam_JSON._/_Bad_JSON_format" data-mw-thread-id="h-Ralat_sintaks_dalam_JSON._/_Bad_JSON_format-Errors"><span id="Ralat_sintaks_dalam_JSON._.2F_Bad_JSON_format"></span><span data-mw-comment-start="" id="h-Ralat_sintaks_dalam_JSON._/_Bad_JSON_format-Errors"></span>Ralat sintaks dalam JSON. / Bad JSON format<span data-mw-comment-end="h-Ralat_sintaks_dalam_JSON._/_Bad_JSON_format-Errors"></span></h3></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>These errors occur when saving template data, usually manually edited, with invalid JSON code (duplicate keys/parameters, trailing or missing commas, etc.) in the visual editor or the 2017 wikitext editor. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>"Ralat sintaks dalam JSON." appears in the visual editor and the 2017 wikitext editor; "Bad JSON format" appears when editing in the template data GUI editor. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">These errors can be difficult to detect and come in too many forms to list.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The best way to avoid them is to edit template data exclusively with the template data editor; the best way to detect them once they've occurred is to use an external JSON validator, such as <a href="#jsonlint">JSONLint</a>, which will highlight errors and aid in fixing them.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">The 2010 wikitext editor does not check for invalid JSON thanks to an old, unfixed bug (<a href="https://phabricator.wikimedia.org/T128029" class="extiw" title="phabricator:T128029">task T128029</a>).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Pages that contain invalid JSON may throw alarming "Ralat dalaman" messages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To fix these errors, your best bet is to use a JSON validator (see above).</span> </p><p><span class="anchor" id="Required_property"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Sifat_"paramOrder[number]"_yang_diperlukan_tidak_dijumpai." data-mw-thread-id="h-Sifat_"paramOrder[number]"_yang_diperlukan_tidak_dijumpai.-Errors"><span id="Sifat_.22paramOrder.5Bnumber.5D.22_yang_diperlukan_tidak_dijumpai."></span><span data-mw-comment-start="" id="h-Sifat_"paramOrder[number]"_yang_diperlukan_tidak_dijumpai.-Errors"></span>Sifat "paramOrder[<var><span lang="en" dir="ltr" class="mw-content-ltr">number</span></var>]" yang diperlukan tidak dijumpai.<span data-mw-comment-end="h-Sifat_"paramOrder[number]"_yang_diperlukan_tidak_dijumpai.-Errors"></span></h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">This error occurs if you state a parameter in <code>"<a href="#Params">params</a>"</code> that is not stated in <code>"<a href="#ParamOrder">paramOrder</a>"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The number in the square brackets refers to the parameter in <code>"paramOrder"</code> that is missing. It refers to its order in the sequence, but it is one less than its actual position, since <code>"paramOrder"</code> is an array; 0 is the first one, 1 is the second, etc.</span> </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"date"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"reason"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"talk"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="c1">// <-- This parameter is not stated in "paramOrder", but it should be.</span> <span class="w"> </span><span class="p">}</span> <span class="p">},</span> <span class="s2">"paramOrder"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span> <span class="w"> </span><span class="s2">"date"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"reason"</span> <span class="p">]</span> <span class="c1">// Error: Required property "paramOrder[2]" not found.</span> </pre></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">To fix this, make sure all parameters stated in <code>"params"</code> are listed in <code>"paramOrder"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Alternatively, you can remove the <code>"paramOrder"</code> object to remove this error.</span> </p> <div class="mw-heading mw-heading3"><h3 id="Nilai_tidak_sah_untuk_sifat_"paramOrder[number]"." data-mw-thread-id="h-Nilai_tidak_sah_untuk_sifat_"paramOrder[number]".-Errors"><span id="Nilai_tidak_sah_untuk_sifat_.22paramOrder.5Bnumber.5D.22."></span><span data-mw-comment-start="" id="h-Nilai_tidak_sah_untuk_sifat_"paramOrder[number]".-Errors"></span>Nilai tidak sah untuk sifat "paramOrder[<var><span lang="en" dir="ltr" class="mw-content-ltr">number</span></var>]".<span data-mw-comment-end="h-Nilai_tidak_sah_untuk_sifat_"paramOrder[number]".-Errors"></span></h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">This error occurs if you state a parameter in <code>"<a href="#ParamOrder">paramOrder</a>"</code> that is not stated in <code>"<a href="#Params">params</a>"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The number in the square brackets refers to the parameter in <code>"paramOrder"</code> that shouldn't be there. It refers to its order in the sequence, but it is one less than its actual position, since <code>"paramOrder"</code> is an array; 0 is the first one, 1 is the second, etc.</span> </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"date"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"talk"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span> <span class="w"> </span><span class="p">}</span> <span class="p">},</span> <span class="s2">"paramOrder"</span><span class="o">:</span><span class="w"> </span><span class="p">[</span> <span class="w"> </span><span class="s2">"date"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"reason"</span><span class="p">,</span><span class="w"> </span><span class="c1">// <-- This parameter is not stated in "params", but it should be.</span> <span class="w"> </span><span class="s2">"talk"</span> <span class="p">]</span> <span class="c1">// Error: Invalid value for property "paramOrder[1]".</span> </pre></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">To fix this, make sure all parameters stated in <code>"paramOrder"</code> are listed in <code>"params"</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Alternatively, you can remove the <code>"paramOrder"</code> object to remove this error.</span> </p> <div class="mw-heading mw-heading3"><h3 id="Sifat_"params.parametername.required"_dijangka_jenis_"boolean"." data-mw-thread-id="h-Sifat_"params.parametername.required"_dijangka_jenis_"boolean".-Errors"><span id="Sifat_.22params.parametername.required.22_dijangka_jenis_.22boolean.22."></span><span data-mw-comment-start="" id="h-Sifat_"params.parametername.required"_dijangka_jenis_"boolean".-Errors"></span>Sifat "params.<var><span lang="en" dir="ltr" class="mw-content-ltr">parametername</span></var>.required" dijangka jenis "boolean".<span data-mw-comment-end="h-Sifat_"params.parametername.required"_dijangka_jenis_"boolean".-Errors"></span></h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>This error occurs if you put quotation marks around the value of either <code>"<a href="#Required">required</a>"</code> or <code>"<a href="#Suggested">suggested</a>"</code>. </p> </div> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"suggested"</span><span class="o">:</span><span class="w"> </span><span class="s2">"true"</span><span class="w"> </span><span class="c1">// <-- These quotation marks shouldn't be here.</span> </pre></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">These are boolean values, not strings, therefore they require no quotation marks.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To fix this, remove any quotation marks around the values <code>true</code> or <code>false</code> for these parameters.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Property_"format"_is_expected_to_be_..." data-mw-thread-id="h-Property_"format"_is_expected_to_be_...-Errors"><span id="Property_.22format.22_is_expected_to_be_..."></span><span data-mw-comment-start="" id="h-Property_"format"_is_expected_to_be_...-Errors"></span>Property "format" is expected to be ...<span data-mw-comment-end="h-Property_"format"_is_expected_to_be_...-Errors"></span></h3></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If the <code>"<a href="#Format">format</a>"</code> parameter exists but its value is not <code>"inline"</code>, <code>"block"</code> or a valid format string, you will see the error message "Property "format" dijangka "inline", "block", atau rentetan format yang sah.". </p> </div> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="s2">"format"</span><span class="o">:</span><span class="w"> </span><span class="s2">"notinline"</span> <span class="c1">// Error : Property "format" is expected to be "inline", "block", or a valid format string.</span> </pre></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">To fix this, make sure the value after <code>"format": </code> equals <code>"inline"</code> or <code>"block"</code> and that there no spelling mistakes. Alternatively, if it's wikitext, make sure it contains a minimum of <code>{{_|_=_}}</code> and that there are no mistakes in the syntax that would normally cause a template to fail, such as duplicate equals signs or missing/duplicate curly brackets; see the section <a href="#Custom_formats">#Custom formats</a> for the syntax for custom formats.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Alternatively, you can remove the <code>"format"</code> parameter to remove this error.</span> </p><p><span class="anchor" id="Unexpected_property"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Sifat_"parametername"_tidak_dijangka." data-mw-thread-id="h-Sifat_"parametername"_tidak_dijangka.-Errors"><span id="Sifat_.22parametername.22_tidak_dijangka."></span><span data-mw-comment-start="" id="h-Sifat_"parametername"_tidak_dijangka.-Errors"></span>Sifat "<var><span lang="en" dir="ltr" class="mw-content-ltr">parametername</span></var>" tidak dijangka.<span data-mw-comment-end="h-Sifat_"parametername"_tidak_dijangka.-Errors"></span></h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">This error occurs if you state a parameter that is unknown in template data.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is probably due to spelling mistakes or the use of uppercase letters instead of lowercase.</span> </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="o"><</span><span class="nx">templatedata</span><span class="o">></span> <span class="p">{</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"format"</span><span class="o">:</span><span class="w"> </span><span class="s2">"inline"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"1"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"descriptino"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w"> </span><span class="c1">// <-- spelling mistake</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="p">}</span> <span class="o"><</span><span class="err">/templatedata></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>It also occurs if you state a parameter in any template data object that is not a parameter of that object. This may be due to spelling mistakes, or you may have written the parameter of one template data object under another object that it doesn't belong to. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>For example, you might have written the parameter <code>"<a href="#Label">label</a>"</code> under the root template data object instead of inside <code>"<a href="#Params">params</a>"</code>: </p> </div> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="o"><</span><span class="nx">templatedata</span><span class="o">></span> <span class="p">{</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"format"</span><span class="o">:</span><span class="w"> </span><span class="s2">"inline"</span><span class="p">,</span> <span class="w"> </span><span class="s2">"label"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w"> </span><span class="c1">// <-- incorrectly placed parameter</span> <span class="w"> </span><span class="s2">"params"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="s2">"1"</span><span class="o">:</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// ↓ it should be in here</span> <span class="w"> </span><span class="s2">"description"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span> <span class="w"> </span><span class="s2">"type"</span><span class="o">:</span><span class="w"> </span><span class="s2">""</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="p">}</span> <span class="o"><</span><span class="err">/templatedata></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Alternatively, if the unexpected parameter is under a template parameter inside <code>"params"</code>, you'll see its name after "params.<i>parametername</i>." in the error. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">To fix this, make sure there aren't any spelling mistakes in the parameter names, and make sure your parameters are in their correct location.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Additionally, make sure you don't state any parameters that don't exist for a template data object.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can check which parameters exist for an object in the section <a href="#Template_data_parameters">#Template data parameters</a>.</span> </p> <div class="mw-heading mw-heading3"><h3 id="Sifat_"params"_yang_diperlukan_tidak_dijumpai." data-mw-thread-id="h-Sifat_"params"_yang_diperlukan_tidak_dijumpai.-Errors"><span id="Sifat_.22params.22_yang_diperlukan_tidak_dijumpai."></span><span data-mw-comment-start="" id="h-Sifat_"params"_yang_diperlukan_tidak_dijumpai.-Errors"></span>Sifat "params" yang diperlukan tidak dijumpai.<span data-mw-comment-end="h-Sifat_"params"_yang_diperlukan_tidak_dijumpai.-Errors"></span></h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">This error occurs if there is no <code>"<a href="#Params">params</a>"</code> object in the template data.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is a necessary object, as it contains all the details of each parameter, so to fix this error, make sure it's added and that there are no spelling mistakes.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See <a href="#Params">the section above</a> on how to add the <code>"params"</code> parameter.</span> </p><p><span class="anchor" id="Limitations_and_questions"></span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Limitations_and_feedback" data-mw-thread-id="h-Limitations_and_feedback"><span data-mw-comment-start="" id="h-Limitations_and_feedback"></span>Limitations and feedback<span data-mw-comment-end="h-Limitations_and_feedback"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Limitations_and_feedback","replies":[]}}--></div> </div> <ul><li><b><span lang="en" dir="ltr" class="mw-content-ltr">Missing features</span></b> – <span lang="en" dir="ltr" class="mw-content-ltr">Template data is an example of a tool that was made available with few features, in hope that users would help to guide development of features that they desired. If you'd like to request new features for template data, please <a class="external text" href="https://phabricator.wikimedia.org/maniphest/task/edit/form/102/?projects=MediaWiki-extensions-TemplateData">let us know</a>.</span></li> <li><b><span lang="en" dir="ltr" class="mw-content-ltr">Delays in showing in templates</span></b> – <span lang="en" dir="ltr" class="mw-content-ltr">After adding template data to a template, the metadata should be visible immediately when the template is opened in the visual editor. However, it is possible that it will take several hours before the metadata will show. You can force an update by making a null edit to the template page itself (not the documentation subpage). To perform a null edit, open the template page for editing, and save the page <i>without making any change and without adding any edit summary</i>.</span></li> <li><b><span lang="en" dir="ltr" class="mw-content-ltr">Current issues</span></b> – <span lang="en" dir="ltr" class="mw-content-ltr">A list of current bugs and feature requests is available <a href="https://phabricator.wikimedia.org/maniphest/query/qXa9bowMj3nX/#R" class="extiw" title="phabricator:maniphest/query/qXa9bowMj3nX/">in the Wikimedia bug tracker</a>.</span></li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Other_tools" data-mw-thread-id="h-Other_tools"><span data-mw-comment-start="" id="h-Other_tools"></span>Other tools<span data-mw-comment-end="h-Other_tools"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Other_tools","replies":[]}}--></div> </div> <dl><dt><a href="/wiki/Special:MyLanguage/Help:Extension:TemplateWizard" title="Special:MyLanguage/Help:Extension:TemplateWizard">Bantuan:Sambungan:TemplateWizard</a><span style="display:none"><a href="/wiki/Help:Extension:TemplateWizard" title="Help:Extension:TemplateWizard"> </a></span></dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">A toolbar dialog window for entering template wikitext via an form built from template data.</span></dd> <dt><a rel="nofollow" class="external text" href="http://tools.wikimedia.pl/~mlazowik/templatedata/">TemplateData Wizard</a></dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">A tool that generates template data through an interactive interface.</span></dd> <dt><a href="https://en.wikipedia.org/wiki/User:Salix_alba/TDSkell" class="extiw" title="w:User:Salix alba/TDSkell">Skeleton TemplateData generator</a></dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">A tool that reads the source wikicode of a template, tries to find all the parameters used and outputs a skeleton document with the parameters listed.</span></dd> <dt><span class="anchor" id="jsonlint"></span><a rel="nofollow" class="external text" href="https://jsonlint.com/">JSONLint</a></dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">A tool that allows you to validate manually-written JSON to help find errors in the syntax.</span></dd></dl> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr"><a class="external text" href="https://www.mediawiki.org/w/index.php?title=Special:PagesWithProp&propname=templatedata&propname-other=">List of all templates with template data</a> on this wiki</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">With <a href="https://en.wikipedia.org/wiki/de:Template:TemplateData" class="extiw" title="w:de:Template:TemplateData">dewiki template template data</a>: template data is shown in a box, and the template is added to a <a href="https://en.wikipedia.org/wiki/de:category:Vorlage:mit_TemplateData" class="extiw" title="w:de:category:Vorlage:mit TemplateData">category</a> of templates with template data</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr"><a class="external free" href="https://query.wikidata.org/">https://query.wikidata.org/</a> and <a href="https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Query_Helper" class="extiw" title="d:Wikidata:SPARQL query service/Query Helper">Query Helper</a></span></li></ul> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐6b8d669998‐kfljx Cached time: 20241128060615 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.072 seconds CPU time usage: 0.645 seconds Real time usage: 0.964 seconds Preprocessor visited node count: 6656/1000000 Post‐expand include size: 43962/2097152 bytes Template argument size: 14296/2097152 bytes Highest expansion depth: 18/100 Expensive parser function count: 57/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 54529/5000000 bytes Lua time usage: 0.161/10.000 seconds Lua memory usage: 1662859/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 386.238 1 -total 44.04% 170.116 20 Template:Ll 24.46% 94.470 40 Template:Translatable 14.89% 57.518 69 Template:Int 12.85% 49.648 40 Template:Pagelang 11.62% 44.889 41 Template:Anchor 7.18% 27.716 1 Template:PD_Help_Page 5.92% 22.851 17 Template:TNTN 5.28% 20.409 4 Template:Note 4.12% 15.914 4 Translations:Help:Extension:TemplateWizard/Page_display_title/ms --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:1332303-0!canonical and timestamp 20241128060615 and revision id 6796478. 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="">Retrieved from "<a dir="ltr" href="https://www.mediawiki.org/w/index.php?title=Help:TemplateData/ms&oldid=6796478">https://www.mediawiki.org/w/index.php?title=Help:TemplateData/ms&oldid=6796478</a>"</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 13 October 2024, at 19:53.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.mediawiki.org/w/index.php?title=Help:TemplateData/ms&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</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-6b8d669998-kfljx","wgBackendResponseTime":1213,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Sejarah","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Menambah_atau_menyunting_TemplateData","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Menyemak_keadaan_semasa-Menambah_atau_menyunting_TemplateData","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Subhalaman_dokumentasi-Menyemak_keadaan_semasa","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Templat_tanpa_subhalaman_dokumentasi-Menyemak_keadaan_semasa","replies":[{"headingLevel":5,"name":"h-","type":"heading","level":0,"id":"h-Mencipta_subhalaman_dan_memindahkan_dokumentasi-Templat_tanpa_subhalaman_dokumentasi","replies":[]},{"headingLevel":5,"name":"h-","type":"heading","level":0,"id":"h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama-Templat_tanpa_subhalaman_dokumentasi","replies":[]},{"headingLevel":5,"name":"h-","type":"heading","level":0,"id":"h-Menambah_dan_menyunting_data_templat_pada_halaman_templat_utama_2-Templat_tanpa_subhalaman_dokumentasi","replies":[]}]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Kaedah-Menambah_atau_menyunting_TemplateData","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Kaedah_penyunting_data_templat-Kaedah","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Kaedah_manual-Kaedah","replies":[]}]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parameter_TemplateData","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Within_params-Parameter_TemplateData","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Within_the_parameter's_name-Within_params","replies":[{"headingLevel":5,"name":"h-","type":"heading","level":0,"id":"h-Type_parameter-Within_the_parameter's_name","replies":[]}]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Custom_formats-Parameter_TemplateData","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Blank_boilerplate-Parameter_TemplateData","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Errors","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Ralat_sintaks_dalam_JSON._/_Bad_JSON_format-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Sifat_\"paramOrder[number]\"_yang_diperlukan_tidak_dijumpai.-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Nilai_tidak_sah_untuk_sifat_\"paramOrder[number]\".-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Sifat_\"params.parametername.required\"_dijangka_jenis_\"boolean\".-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Property_\"format\"_is_expected_to_be_...-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Sifat_\"parametername\"_tidak_dijangka.-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Sifat_\"params\"_yang_diperlukan_tidak_dijumpai.-Errors","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Limitations_and_feedback","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Other_tools","replies":[]}],"wgPageParseReport":{"limitreport":{"cputime":"0.001","walltime":"0.001","ppvisitednodes":{"value":3,"limit":1000000},"postexpandincludesize":{"value":0,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":1,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 0.000 1 -total"]},"cachereport":{"origin":"mw-web.codfw.main-6b8d669998-kfljx","timestamp":"20241128060614","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>