CINXE.COM

Help:TemplateData - 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>Help:TemplateData - 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":[",\t.",".\t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"],"wgRequestId":"6ec42950-69cf-4701-9303-a05a5607b1c6","wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:TemplateData/eu","wgTitle":"TemplateData/eu","wgCurRevisionId":6796455,"wgRevisionId":6796455,"wgArticleId":328500,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"eu","wgPageContentLanguage":"eu","wgPageContentModel":"wikitext","wgRelevantPageName":"Help:TemplateData/eu","wgRelevantArticleId":328500,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode": "eu","pageLanguageDir":"ltr","pageVariantFallbacks":"eu"},"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&amp;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&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="Help:TemplateData - 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/eu"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Help:TemplateData/eu&amp;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/eu"> <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&amp;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_eu 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&amp;page=Help%3ATemplateData%2Feu" 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&#039;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/?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=spontaneous&amp;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&amp;returnto=Help%3ATemplateData%2Feu" 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&amp;returnto=Help%3ATemplateData%2Feu" 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/?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=spontaneous&amp;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&amp;returnto=Help%3ATemplateData%2Feu" 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&amp;returnto=Help%3ATemplateData%2Feu" 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-History" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#History"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>History</span> </div> </a> <ul id="toc-History-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Adding_or_editing_template_data" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Adding_or_editing_template_data"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Adding or editing template data</span> </div> </a> <button aria-controls="toc-Adding_or_editing_template_data-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 Adding or editing template data subsection</span> </button> <ul id="toc-Adding_or_editing_template_data-sublist" class="vector-toc-list"> <li id="toc-Checking_the_current_state" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Checking_the_current_state"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Checking the current state</span> </div> </a> <ul id="toc-Checking_the_current_state-sublist" class="vector-toc-list"> <li id="toc-Documentation_subpages" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Documentation_subpages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.1</span> <span>Documentation subpages</span> </div> </a> <ul id="toc-Documentation_subpages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Templates_without_documentation_subpages" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Templates_without_documentation_subpages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2</span> <span>Templates without documentation subpages</span> </div> </a> <ul id="toc-Templates_without_documentation_subpages-sublist" class="vector-toc-list"> <li id="toc-Creating_the_subpage_and_moving_the_documentation" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Creating_the_subpage_and_moving_the_documentation"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2.1</span> <span>Creating the subpage and moving the documentation</span> </div> </a> <ul id="toc-Creating_the_subpage_and_moving_the_documentation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Adding_and_editing_template_data_on_the_main_template_page" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Adding_and_editing_template_data_on_the_main_template_page"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.2.2</span> <span>Adding and editing template data on the main template page</span> </div> </a> <ul id="toc-Adding_and_editing_template_data_on_the_main_template_page-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Methods" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Methods"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Methods</span> </div> </a> <ul id="toc-Methods-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-TemplateData_editorea" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#TemplateData_editorea"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>TemplateData editorea</span> </div> </a> <button aria-controls="toc-TemplateData_editorea-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 TemplateData editorea subsection</span> </button> <ul id="toc-TemplateData_editorea-sublist" class="vector-toc-list"> <li id="toc-Manual_method" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Manual_method"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Manual method</span> </div> </a> <ul id="toc-Manual_method-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Deskribapena_eta_parametroak" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Deskribapena_eta_parametroak"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Deskribapena eta parametroak</span> </div> </a> <button aria-controls="toc-Deskribapena_eta_parametroak-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 Deskribapena eta parametroak subsection</span> </button> <ul id="toc-Deskribapena_eta_parametroak-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">4.1</span> <span>Within params</span> </div> </a> <ul id="toc-Within_params-sublist" class="vector-toc-list"> <li id="toc-Within_the_parameter&#039;s_name" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Within_the_parameter&#039;s_name"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1.1</span> <span>Within the parameter's name</span> </div> </a> <ul id="toc-Within_the_parameter&#039;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">4.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">4.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">4.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">5</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-Sintaxi_errorean_JSON-en._/_Bad_JSON_format" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Sintaxi_errorean_JSON-en._/_Bad_JSON_format"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>Sintaxi errorean JSON-en. / Bad JSON format</span> </div> </a> <ul id="toc-Sintaxi_errorean_JSON-en._/_Bad_JSON_format-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Required_property_&quot;paramOrder[number]&quot;_not_found." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Required_property_&quot;paramOrder[number]&quot;_not_found."> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2</span> <span>Required property "paramOrder[<span dir="ltr">number</span>]" not found.</span> </div> </a> <ul id="toc-Required_property_&quot;paramOrder[number]&quot;_not_found.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Invalid_value_for_property_&quot;paramOrder[number]&quot;." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Invalid_value_for_property_&quot;paramOrder[number]&quot;."> <div class="vector-toc-text"> <span class="vector-toc-numb">5.3</span> <span>Invalid value for property "paramOrder[<span dir="ltr">number</span>]".</span> </div> </a> <ul id="toc-Invalid_value_for_property_&quot;paramOrder[number]&quot;.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Property_&quot;params.parametername.required&quot;_is_expected_to_be_of_type_&quot;boolean&quot;." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Property_&quot;params.parametername.required&quot;_is_expected_to_be_of_type_&quot;boolean&quot;."> <div class="vector-toc-text"> <span class="vector-toc-numb">5.4</span> <span>Property "params.<span dir="ltr">parametername</span>.required" is expected to be of type "boolean".</span> </div> </a> <ul id="toc-Property_&quot;params.parametername.required&quot;_is_expected_to_be_of_type_&quot;boolean&quot;.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Property_&quot;format&quot;_is_expected_to_be_..." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Property_&quot;format&quot;_is_expected_to_be_..."> <div class="vector-toc-text"> <span class="vector-toc-numb">5.5</span> <span>Property "format" is expected to be ...</span> </div> </a> <ul id="toc-Property_&quot;format&quot;_is_expected_to_be_...-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Unexpected_property_&quot;parametername&quot;." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Unexpected_property_&quot;parametername&quot;."> <div class="vector-toc-text"> <span class="vector-toc-numb">5.6</span> <span>Unexpected property "<span dir="ltr">parametername</span>".</span> </div> </a> <ul id="toc-Unexpected_property_&quot;parametername&quot;.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Required_property_&quot;params&quot;_not_found." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Required_property_&quot;params&quot;_not_found."> <div class="vector-toc-text"> <span class="vector-toc-numb">5.7</span> <span>Required property "params" not found.</span> </div> </a> <ul id="toc-Required_property_&quot;params&quot;_not_found.-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">6</span> <span>Limitations and feedback</span> </div> </a> <ul id="toc-Limitations_and_feedback-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Beste_tresnak" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Beste_tresnak"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Beste tresnak</span> </div> </a> <ul id="toc-Beste_tresnak-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">Help:TemplateData</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/eu" 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/eu&amp;action=edit&amp;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">euskara</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/eu"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Special:Translate&amp;group=page-Help%3ATemplateData&amp;action=page&amp;filter=&amp;language=eu" 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/eu&amp;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/eu"><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&amp;group=page-Help%3ATemplateData&amp;action=page&amp;filter=&amp;language=eu" 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/eu&amp;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/eu" 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/eu" 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/eu&amp;oldid=6796455" 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/eu&amp;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&amp;url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FHelp%3ATemplateData%2Feu"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FHelp%3ATemplateData%2Feu"><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&amp;bookcmd=book_creator&amp;referer=Help%3ATemplateData%2Feu"><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&amp;page=Help%3ATemplateData%2Feu&amp;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/eu&amp;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&amp;group=page-Help%3ATemplateData&amp;action=page&amp;filter=&amp;language=eu">translated version</a></span> of the page <a href="/wiki/Help:TemplateData" title="Help:TemplateData">Help:TemplateData</a> and the translation is 4% 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="eu" 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><a href="/wiki/Help:TemplateData/ms" class="mw-pt-progress mw-pt-progress--med" title="Bantuan:DataTemplat (32% translated)" lang="ms" dir="ltr">Bahasa Melayu</a></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><span class="mw-pt-languages-selected mw-pt-progress mw-pt-progress--low" lang="eu" dir="ltr">euskara</span></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--high" title="Help:TemplateData (99% 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>Oharra:</b> Orri hau aldatzean, zure ekarpena <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/deed.eu">CC0</a>-ren lizentziapean uztea onartzen duzu. Ikusi <a href="/wiki/Special:MyLanguage/Project:PD_help" title="Special:MyLanguage/Project:PD help">Domeinu Publikoko Laguntza Orriak</a> informazio gehiagorako. </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> </p> <div class="mw-translate-fuzzy"> <p><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> <a href="/wiki/Special:MyLanguage/Help:Templates" title="Special:MyLanguage/Help:Templates">wikitextu txantiloi</a> bati eta haren parametroei buruzko informazioa gordetzeko modu bat da, VisualEditor-ek berreskuratu eta erakus dezan txantiloi editorean, honela errazagoa izan dadin txantiloiak aldatzea. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">As of April 2019, template data functionality is part of the default user experience for all users on all Wikimedia wikis when they add a template, even unregistered users.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Both the default source and visual editors incorporate it in some way, as do many scripts, tools and gadgets.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If you want this functionality on your own wiki, install <a href="/wiki/Special:MyLanguage/Extension:TemplateData" title="Special:MyLanguage/Extension:TemplateData">Extension:TemplateData</a><span style="display:none"><a href="/wiki/Extension:TemplateData" title="Extension:TemplateData"> </a></span>.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Adding template data to a template for this extension to use involves inserting a small, simple block of <a href="https://en.wikipedia.org/wiki/JSON" class="extiw" title="w:JSON">JSON</a> (explained below) into the template's documentation page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can do this manually or with the template data editor, a graphical user interface you can access on a template's "Aldatu"/"Aldatu iturburu kodea" pages on wikis with the TemplateData extension installed.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The JSON contains a list of the template's parameters and information about those parameters and about the template as a whole (see below for details).</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Templates that contain template data will display this information in the user interface when a user adds the template.</span> <span lang="en" dir="ltr" class="mw-content-ltr">In some cases, it will change how the editor behaves when you use it to edit or insert a given template, making it much easier for users to perform the steps needed to add a given template.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="History" data-mw-thread-id="h-History"><span data-mw-comment-start="" id="h-History"></span>History<span data-mw-comment-end="h-History"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-History","replies":[]}}--></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Template data was originally developed in early 2013 with <a href="/wiki/Special:MyLanguage/VisualEditor" title="Special:MyLanguage/VisualEditor">VisualEditor</a><span style="display:none"><a href="/wiki/VisualEditor" title="VisualEditor"> </a></span> in mind, which was in MediaWiki testing stages at the time.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The visual editor is the main visual editing interface for Wikimedia wikis, and template data allows it to have a more useful interface when adding templates.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It was officially supported by the visual editor <a href="/wiki/Special:MyLanguage/VisualEditor/Portal/TemplateData" title="Special:MyLanguage/VisualEditor/Portal/TemplateData">immediately</a>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">As the visual editor was rolled out to the various major Wikimedia wikis as a default feature from 2013 through 2016, template data became a part of them as well.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In December 2016, the visual editor interface was made available for editing source code as a beta feature.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This was termed 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>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This brought the features of template data to source editing for the first time.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">In March 2018, <a href="/wiki/User:Samwilson" title="User:Samwilson">Sam Wilson</a> developed <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>, a GUI template editor extension for the default Wikimedia source editor, <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> (otherwise known as the 2010 wikitext editor), designed to make the process of adding templates easier by using information from template data.</span> <span lang="en" dir="ltr" class="mw-content-ltr">In <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 was made a default part of the 2010 wikitext editor on all Wikimedia wikis.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This meant that template data was now a default part of both the visual editor and the source editor on Wikimedia wikis.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Adding_or_editing_template_data" data-mw-thread-id="h-Adding_or_editing_template_data"><span data-mw-comment-start="" id="h-Adding_or_editing_template_data"></span>Adding or editing template data<span data-mw-comment-end="h-Adding_or_editing_template_data"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Adding_or_editing_template_data","replies":["h-Checking_the_current_state-Adding_or_editing_template_data","h-Methods-Adding_or_editing_template_data"]}}--></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>To add or edit template data, first navigate to a template's page, located at "/Template:<i>Templatename</i>". </p> </div> <p><span class="anchor" id="Prior_checks"></span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Checking_the_current_state" data-mw-thread-id="h-Checking_the_current_state-Adding_or_editing_template_data"><span data-mw-comment-start="" id="h-Checking_the_current_state-Adding_or_editing_template_data"></span>Checking the current state<span data-mw-comment-end="h-Checking_the_current_state-Adding_or_editing_template_data"></span></h3></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Before adding or editing template data, check whether the template has a <b>documentation subpage</b>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Then check whether the template <b>already contains template data</b> and, if so, whether it's located on the template page or the documentation subpage.</span> </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"><span lang="en" dir="ltr" class="mw-content-ltr">Be sure to check whether a subpage exists.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If you add template data to a template's main page while a subpage exists with template data, the template data in the main page will override the data on the subpage.</span></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading4"><h4 id="Documentation_subpages" data-mw-thread-id="h-Documentation_subpages-Checking_the_current_state"><span data-mw-comment-start="" id="h-Documentation_subpages-Checking_the_current_state"></span>Documentation subpages<span data-mw-comment-end="h-Documentation_subpages-Checking_the_current_state"></span></h4></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>There are two main ways templates on most Wikimedia wikis store their usage notes and other data that shouldn't be included in the actual template itself, like categories the template should be contained in: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The vast majority of templates keep usage notes and other data that doesn't belong on the template page itself on a documentation subpage: "/Template:<i>Templatename</i>/doc".</li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">On pages like this, the {{<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>}} template <a href="/wiki/Special:MyLanguage/Help:Transclusion" title="Special:MyLanguage/Help:Transclusion">transcludes</a> all the /doc page's content onto the template page, keeping the template's source code much cleaner.</span> </p><ul><li><ul><li><span lang="en" dir="ltr" class="mw-content-ltr">On templates with documentation subpages, the "<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>Template documentation</b>" heading will be followed by links such as [view], [edit], [history] and [purge].</span></li></ul></li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>A few template pages have retained that information on the template's main page.</li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">You can spot it on these pages by looking for an occurrence of <code>{{Documentation|content=</code> between <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">noinclude</span><span class="p">></span></code> tags.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Different wikis may present all this differently.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Rarely, main template pages may still contain documentation even when you've checked all of the foregoing;</span> <span lang="en" dir="ltr" class="mw-content-ltr">here, a user will have added a custom /doc page title between "<code>{{Documentation|</code>" and "<code>|content=</code>" and then added content after "<code>|content=</code>".</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You can also look for a notice at the bottom of the page similar to this: "The above documentation is transcluded from Template:<i>Templatename</i>/doc". </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading4"><h4 id="Templates_without_documentation_subpages" data-mw-thread-id="h-Templates_without_documentation_subpages-Checking_the_current_state"><span data-mw-comment-start="" id="h-Templates_without_documentation_subpages-Checking_the_current_state"></span>Templates without documentation subpages<span data-mw-comment-end="h-Templates_without_documentation_subpages-Checking_the_current_state"></span></h4></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If a template doesn't have a documentation subpage, create it and move the template's documentation there (or a placeholder for it).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Then you can add template data to the documentation subpage.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading5"><h5 id="Creating_the_subpage_and_moving_the_documentation" data-mw-thread-id="h-Creating_the_subpage_and_moving_the_documentation-Templates_without_documentation_subpages"><span data-mw-comment-start="" id="h-Creating_the_subpage_and_moving_the_documentation-Templates_without_documentation_subpages"></span>Creating the subpage and moving the documentation<span data-mw-comment-end="h-Creating_the_subpage_and_moving_the_documentation-Templates_without_documentation_subpages"></span></h5></div> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info"><span lang="en" dir="ltr" class="mw-content-ltr">On many Wikimedia wikis, you can only create a page if you have been a registered user there for a number of days and have made a minimum number of edits.</span></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>To create the documentation subpage, click "Aldatu"/"Aldatu iturburu kodea" on the main template page; look for the <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">noinclude</span><span class="p">></span></code> tags and their contents (usually at the bottom). </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>It should look something like this: </p> </div> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;noinclude></span> {{Documentation|content= ==<span class="w"> </span>Usage<span class="w"> </span>== Information<span class="w"> </span>about<span class="w"> </span>usage. ==<span class="w"> </span>More<span class="w"> </span>example<span class="w"> </span>headings<span class="w"> </span>== More<span class="w"> </span>example<span class="w"> </span>contents [[Category:Example<span class="w"> </span>category]] [[Category:Example<span class="w"> </span>category<span class="w"> </span>2]] }} <span class="nt">&lt;/noinclude></span> </pre></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">You may also find that it already contains template data.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If so, it will look something like this:</span> </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;noinclude></span> {{Documentation|content= ... <span class="nt">&lt;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>"Example<span class="w"> </span>parameter", <span class="w"> </span>"description":<span class="w"> </span>"Example<span class="w"> </span>parameter<span class="w"> </span>description", <span class="w"> </span>"type":<span class="w"> </span>"string" <span class="w"> </span>} <span class="w"> </span>} } <span class="nt">&lt;/templatedata></span> <span class="nt">&lt;/noinclude></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Select everything after "<code>|content=</code>" and before "<code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;/</span><span class="nt">noinclude</span><span class="p">></span></code>" and cut it into your clipboard or save it in a temporary document. Delete "<code>|content=</code>", leaving only the following: </p> </div> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;noinclude></span> {{Documentation}} <span class="nt">&lt;/noinclude></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Save the template page. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Now, to create the new subpage, look at your browser's address bar and add /doc to the end of the URL.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Press <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>, then choose the option to create a new page.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">If this wiki has a {{<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>}} notice template, add it at the top of the new page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You may also wish to add other templates, such as a {{<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&amp;action=edit&amp;redlink=1" class="new" title="Template:Purge button (page does not exist)"> </a></span>}} or {{<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>}} link (if supported by the wiki in question).</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Insert the text you cut or saved in the previous text (beneath the notice template, if applicable). </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Wrap any categories in <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">includeonly</span><span class="p">></span></code> tags so that they apply only to the template's main page: </p> </div> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;includeonly></span> [[Category:Example<span class="w"> </span>category]] [[Category:Example<span class="w"> </span>category<span class="w"> </span>2]] <span class="nt">&lt;/includeonly></span> </pre></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Many wikis have a <code>{{Sandbox other}}</code> template.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Use this template here if it's likely that the template you're editing exists in a sandbox version (located at "Template:<i>Templatename</i>/sandbox") in order to prevent the categories from applying to the sandbox page:</span> </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;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">&lt;/includeonly></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Finally, publish the page. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You can now add and edit the template data on the documentation subpage using the instructions described in <a href="#Methods">#Methods</a>. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading5"><h5 id="Adding_and_editing_template_data_on_the_main_template_page" data-mw-thread-id="h-Adding_and_editing_template_data_on_the_main_template_page-Templates_without_documentation_subpages"><span data-mw-comment-start="" id="h-Adding_and_editing_template_data_on_the_main_template_page-Templates_without_documentation_subpages"></span>Adding and editing template data on the main template page<span data-mw-comment-end="h-Adding_and_editing_template_data_on_the_main_template_page-Templates_without_documentation_subpages"></span></h5></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If you can't create the /doc page, you can add and edit template data on the template's main page by following the instructions in <a href="#Methods">#Methods</a>. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If a template has a documentation subpage, check both the main page and the documentation subpage for the presence of template data (the <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">templatedata</span><span class="p">></span></code> tag followed by an array inside curly brackets: <code>{}</code>). </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Alternatively, the TemplateData extension can perform this check for you.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Click "Aldatu" or "Aldatu iturburu kodea" on either page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the template already has template data on either page, you will see a yellow notice at the top of the page saying either:</span> </p> <dl><dd><i>Please note: there is already a template data block on the related page "[[<span lang="en" dir="ltr" class="mw-content-ltr">Template:Templatename/doc</span>]]".</i></dd></dl> <p><span lang="en" dir="ltr" class="mw-content-ltr">or</span> </p> <dl><dd><i>Please note: there is already a template data block on the related page "[[<span lang="en" dir="ltr" class="mw-content-ltr">Template:Templatename</span>]]".</i></dd></dl> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>If the template has template data on its documentation subpage</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If the template has template data on its documentation subpage, this is the page you should edit.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can do this by clicking the "[edit]" located after the heading "<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>Template documentation</b>" (or similar), or, if you are already on the /doc page, by clicking "Aldatu" or "Aldatu iturburu kodea" at the top.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Follow the guidance at <a href="#Methods">#Methods</a> to add or edit the template data.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>If the template has template data on its main page</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If the template has template data on its main page, you once again have two options: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>You can either move to its documentation subpage. This is the preferred option.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>Or, you can edit it on the main template page.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Moving template data to the documentation subpage</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">To do this, click "Aldatu"/"Aldatu iturburu kodea" on the main template page, and look for the <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">templatedata</span><span class="p">></span></code> tags, enclosed within <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">noinclude</span><span class="p">></span></code> tags.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It should look something like this:</span> </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;noinclude></span> {{Documentation}} <span class="nt">&lt;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>"Example<span class="w"> </span>parameter", <span class="w"> </span>"description":<span class="w"> </span>"Example<span class="w"> </span>parameter<span class="w"> </span>description", <span class="w"> </span>"type":<span class="w"> </span>"string" <span class="w"> </span>} <span class="w"> </span>} } <span class="nt">&lt;/templatedata></span> <span class="nt">&lt;/noinclude></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Cut only the <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">templatedata</span><span class="p">></span></code> tags and their contents out of the code, then save the page. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Next, edit the documentation subpage by clicking the "[edit]" located after the heading "<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>Template documentation</b>" (or similar). </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Type a heading, like "Template data", then beneath it paste the template data. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You can now edit the template data based on the guidance at <a href="#Methods">#Methods</a>. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Editing template data on the main template page</b> </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If you do not wish to move the template data to the /doc page, you can edit it on the main template page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See <a href="#Methods">#Methods</a> for how to edit template data.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>If the template does not yet have template data but has a doc subpage</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If the template does not yet have template data, you should add it to the documentation subpage. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Do this by clicking the "[edit]" located after the heading "<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>Template documentation</b>" (or similar), or, if you are already on the /doc page, by clicking "Aldatu" or "Aldatu iturburu kodea" at the top.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Type a heading, like "Template data", then add it beneath this heading.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The section <a href="#Methods">#Methods</a> explains how to add template data.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Methods" data-mw-thread-id="h-Methods-Adding_or_editing_template_data"><span data-mw-comment-start="" id="h-Methods-Adding_or_editing_template_data"></span>Methods<span data-mw-comment-end="h-Methods-Adding_or_editing_template_data"></span></h3></div> </div> <p><span class="anchor" id="TemplateData_editor"></span> <span id="Template_data_editor_method"></span> </p> <div class="mw-translate-fuzzy"> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="TemplateData_editorea" data-mw-thread-id="h-TemplateData_editorea"><span data-mw-comment-start="" id="h-TemplateData_editorea"></span>TemplateData editorea<span data-mw-comment-end="h-TemplateData_editorea"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-TemplateData_editorea","replies":["h-Manual_method-TemplateData_editorea"]}}--></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>This is a simple way to add or edit template data, recommended for less experienced users. </p> </div> <p><span class="mw-translate-fuzzy">Bada tresna integratu bat TemplateData modu sinpleagoan editatzeko.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It is part of the TemplateData extension, available on any template's page (or documentation subpage) by clicking "Aldatu" or "Aldatu iturburu kodea".</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>After clicking "Aldatu" or "Aldatu iturburu kodea", you will see a button above the editing area and page title that says "TemplateData kudeatu". </p> </div> <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><span class="mw-translate-fuzzy">Sakatu botoi hau TemplateData aldatzeko GUI tresnan sartzeko.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the page you are on already contains template data, it will automatically appear here.</span> </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="The template data editing tool, on a page with no template data."><img alt="A screenshot of the template data editing tool" 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> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Features in the above window: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The top item chooses the language of the interface text. It allows you to enter text content in multiple languages, displayed to users based on their settings in Preferences, <b>not based on the wiki's language</b>; different wikis have entirely different template databases.</li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If no language template data exists, the interface will only offer users the wiki's own language, but users can click "Gehitu hizkuntza" to add more inputs.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The language code is displayed in brackets next to the parameters to which it can be applied, such as descriptions and labels.</span> </p><div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The next item is the template description. This is the description of the template as a whole; it's shown to users in numerous places in the template editors while adding a template. This <a href="#Description">parameter and its effects are documented below</a>.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The third item controls the wikitext formatting of the template. This parameter determines how the wikitext will be laid out when the user clicks "Ezarri", the two main types being <code>"inline"</code> (on one line) and <code>"block"</code> (on new lines). This <a href="#Format">parameter and its effects are documented below</a>.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <dl><dd>If the user chooses "Pertsonalizatua", they can enter wikitext under "Custom format string" according to <a href="#Custom_formats">Custom formats rules documented below</a>, in order to create a custom layout for the template when the user clicks "Ezarri".</dd></dl> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The fourth item configures a template's parameters.</li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If parameters have already been defined in template data, this area displays them in a list.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the template's source code specifies parameters for which no template data exists, you may see a button labeled "Add 2 suggested parameters".</span> <span lang="en" dir="ltr" class="mw-content-ltr">The editor extracts these suggestions from the template's source code by looking for <code>{{{parametername}}}</code> or <code>{{{parametername|}}}</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Clicking "Add 2 suggested parameters" will add these parameters using their names as defined in the source code.</span> <span lang="en" dir="ltr" class="mw-content-ltr">A green notice will also appear at the top, for example, "2 parametro berri inportatu dira: <i>names of parameters</i>".</span> </p><div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>At the bottom of the window you see an "Gehitu parametroa" button. This allows you to add a parameter manually with a custom name.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Continue to the next step by clicking any one of the parameters in the list. This will allow you to edit that parameter's info. </p> </div> <p><span typeof="mw:File"><a href="/wiki/File:TemplateData_GUI_editor_parameter_list.png" class="mw-file-description"><img alt="" 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> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>All of these features and their effects are outlined in the section <a href="#Within_a_parameter's_name">#Within a parameter's name</a>. </p> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info"><div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The template data editor will not allow you to change a parameter to a blank "<a href="#Parameter_name">Izena</a>".</li></ul> </div> <span lang="en" dir="ltr" class="mw-content-ltr">Parameters in template data that somehow acquire blank strings as names will not cause issues in the 2010 wikitext editor with TemplateWizard, but neither the visual editor nor the 2017 wikitext editor will display them at all.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is the only mandatory field in the template data editor.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>Clicking "Kendu parametroaren informazioa" will delete the parameter and all its information from the template data. You can't retrieve or undo this in the template data unless you click "X" afterwards. You can undo any changes made after clicking "Ezarri" by hitting <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></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>Exiting the template data editor after making changes prompts you to confirm that you want to discard your changes.</li></ul> </div></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">When finished, click "Ezarri".</span> <span lang="en" dir="ltr" class="mw-content-ltr">This will automatically insert the template data at the bottom of the page before the <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;/</span><span class="nt">noinclude</span><span class="p">></span></code> tag; or, if already present, it will be updated with the new information without changing its position.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The template data text will also be selected when you click "Ezarri".</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">The template data editor creates a <code>"paramOrder"</code> parameter at the bottom of the template data (or updates it if it already exists).</span> <span lang="en" dir="ltr" class="mw-content-ltr"><code>"paramOrder"</code> contains the current template data parameters in the order in which they were displayed by the template data editor.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can change the <code>"paramOrder"</code> by dragging the parameters up and down in the template data editor using the three horizontal bars on the left.</span> <span lang="en" dir="ltr" class="mw-content-ltr"><a href="#ParamOrder"><code>"paramOrder"</code> and its effects are documented below</a>.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>After this, click "Gorde" to save your revision of the page. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading4"><h4 id="Manual_method" data-mw-thread-id="h-Manual_method-TemplateData_editorea"><span data-mw-comment-start="" id="h-Manual_method-TemplateData_editorea"></span>Manual method<span data-mw-comment-end="h-Manual_method-TemplateData_editorea"></span></h4></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">You can also add or edit template data manually.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Template data is written in <a href="https://en.wikipedia.org/wiki/JSON" class="extiw" title="w:JSON">JSON</a>, but you do not need to learn JSON to learn how to create template data.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Template data follows a few very simple rules and accepts only a few dozen possible predefined parameters and values, typically following a <code>"parameter": "value"</code> format.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p><b>Adding template data manually</b> </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Considerations: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>If you're adding template data on a template's documentation subpage (<b>recommended</b>), you may add it anywhere on the page; check to see if your language's Wikipedia has a preferred location for it. For example, on the English Wikipedia, template data is typically near the bottom of the documentation page; on the German Wikipedia, it is typically at the top.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>If you're adding template data on a template's main page (<b>not recommended</b>; see <a href="#Prior_checks">#Prior checks</a>), you must make sure to place it inside the <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">noinclude</span><span class="p">></span>...<span class="p">‎&lt;/</span><span class="nt">noinclude</span><span class="p">></span></code> tags.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Click "Aldatu" or "Aldatu iturburu kodea" on the respective page, then move to the place in the page where you intend to add template data and write a heading: "Template data". </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Many wikis have a {{<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>}} template that adds a short notice regarding template data. If your wiki does, add it after the heading. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>To start adding template data, type an opening and closing <code class="mw-highlight" style="white-space:nowrap"><span class="p">‎&lt;</span><span class="nt">templatedata</span><span class="p">></span></code> tag and a pair of curly brackets on new lines, with an empty line between them: </p> </div> <div class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span><span class="p">&lt;</span><span class="nt">templatedata</span><span class="p">></span> { } <span class="p">&lt;/</span><span class="nt">templatedata</span><span class="p">></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Next, add an indent on the empty line between the two curly brackets, and start adding parameters. Details for the parameters can be found at <a href="#Template_data_parameters">#Template data parameters</a>. Most are optional; some are highly recommended. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Parameters can be in any order, but what follows is the order that best conforms to template data documentation and makes the content easiest to use for editors: </p> </div> <div class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span><span class="p">&lt;</span><span class="nt">templatedata</span><span class="p">></span> { "description": "", "format": "", "params": { "parameter1": { "aliases": ["",""] "label": "", "description": "", "type": "" } }, "paramOrder": [ "" ] } <span class="p">&lt;/</span><span class="nt">templatedata</span><span class="p">></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Make sure the parameters, for example, in the <code>"params"</code> object, remain inside that object; otherwise you will trigger an "<a href="#Unexpected_property">Unexpected property "<var>propertyname</var>".</a>" error when you try to save. </p> </div> <p><span class="anchor" id="Example"></span> <b>Adibidez</b> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Here is some example template data for a hypothetical cleanup template.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Such a template would display a notice and place the page into a dated category based on the month and year entered.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The notice might also contain a link to a talk page section. The template data would look something like this:</span> </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="o">&lt;</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">"Use this template to indicate that an article is in need of cleanup."</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">"Month and year"</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">"The month and year that the template was added"</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">"January 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">"Reason"</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">"The reason the article is in need of cleanup"</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">"talksection"</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">"Talk page section"</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">"The section of the talk page containing relevant discussion"</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">&lt;</span><span class="err">/templatedata></span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The corresponding template data documentation would display as follows: </p> </div> <section class="mw-templatedata-doc-wrap"><header><p class="mw-templatedata-doc-desc">Use this template to indicate that an article is in need of cleanup.</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>Month and year</th><td class="mw-templatedata-doc-param-name"><code>date</code></td><td><p>The month and year that the template was added</p><dl><dt>Example</dt><dd>January 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>Reason</th><td class="mw-templatedata-doc-param-name"><code>reason</code> <code class="mw-templatedata-doc-param-alias">1</code></td><td><p>The reason the article is in need of cleanup</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>Talk page section</th><td class="mw-templatedata-doc-param-name"><code>talk</code> <code class="mw-templatedata-doc-param-alias">talksection</code></td><td><p>The section of the talk page containing relevant discussion</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="Deskribapena_eta_parametroak" data-mw-thread-id="h-Deskribapena_eta_parametroak"><span data-mw-comment-start="" id="h-Deskribapena_eta_parametroak"></span>Deskribapena eta parametroak<span data-mw-comment-end="h-Deskribapena_eta_parametroak"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Deskribapena_eta_parametroak","replies":["h-Within_params-Deskribapena_eta_parametroak","h-Custom_formats-Deskribapena_eta_parametroak","h-Blank_boilerplate-Deskribapena_eta_parametroak"]}}--></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">All available template data parameters (i.e those between tags <code>&lt;templatedata>...&lt;/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>Lehenengo etiketa <code>"description"</code> da, zeinek txantiloiak egiten duena deskribatzen duen. <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">WikiEditor</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 "Deskribapenik ez." 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">"Txantiloi bat Commons kategoria bati lotzeko"</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 class="mw-translate-fuzzy"> <p><code>"params"</code> etiketa bat dago, geroko atalek txantiloiko parametro bakoitza estaltzen dutela adierazten dutenak. </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">// eta hemen</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">Required property "<i>propertyname</i>" not found.</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-Deskribapena_eta_parametroak"><span data-mw-comment-start="" id="h-Within_params-Deskribapena_eta_parametroak"></span>Within params<span data-mw-comment-end="h-Within_params-Deskribapena_eta_parametroak"></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>Parametroaren izena</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 "Parametroaren izena" 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">// parametroaren izena</span> <span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="c1">// Parametroari buruzko informazioa hemen doa</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&#039;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">"1 Gaia"</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">"Gaia"</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">"Argipen orri honetan aipatutako gai bat"</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">"2 Gaia"</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">"1 Gaia"</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="s2">"3 Gaia"</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">"1 Gaia"</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 class="mw-translate-fuzzy"><code>"description"</code> dugu ondoren: oraingoan, parametroaren deskripzioa da, ez txantiloiarena osotasunean.</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>Edukia</li> <li>Lerroa</li> <li>Katea</li> <li>Zenbakia</li> <li>Ezezaguna</li> <li>Wikitestu desorekatua</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 "TemplateData kudeatu".</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>Badugu beraz <code>"required"</code>, <code>true</code> ala <code>false</code> bezala ezarri daitekeena. <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 "Eremua beharrezkoa da." 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">WikiEditor</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">Extension: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 "Eremua beharrezkoa da." 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 class="mw-translate-fuzzy">Azkenik, <code>"suggested"</code> dago, <code>true</code> ala <code>false</code> bezala ezarri daitekeena.</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">WikiEditor</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 "Eremua zaharkitua dago:<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 "Gorde". 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&#039;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-Deskribapena_eta_parametroak"><span data-mw-comment-start="" id="h-Custom_formats-Deskribapena_eta_parametroak"></span><span lang="en" dir="ltr" class="mw-content-ltr">Custom formats</span><span data-mw-comment-end="h-Custom_formats-Deskribapena_eta_parametroak"></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-Deskribapena_eta_parametroak"><span data-mw-comment-start="" id="h-Blank_boilerplate-Deskribapena_eta_parametroak"></span>Blank boilerplate<span data-mw-comment-end="h-Blank_boilerplate-Deskribapena_eta_parametroak"></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">&lt;</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">&lt;</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-Sintaxi_errorean_JSON-en._\/_Bad_JSON_format-Errors","h-Required_property_\"paramOrder[number]\"_not_found.-Errors","h-Invalid_value_for_property_\"paramOrder[number]\".-Errors","h-Property_\"params.parametername.required\"_is_expected_to_be_of_type_\"boolean\".-Errors","h-Property_\"format\"_is_expected_to_be_...-Errors","h-Unexpected_property_\"parametername\".-Errors","h-Required_property_\"params\"_not_found.-Errors"]}}--></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Sintaxi_errorean_JSON-en._/_Bad_JSON_format" data-mw-thread-id="h-Sintaxi_errorean_JSON-en._/_Bad_JSON_format-Errors"><span id="Sintaxi_errorean_JSON-en._.2F_Bad_JSON_format"></span><span data-mw-comment-start="" id="h-Sintaxi_errorean_JSON-en._/_Bad_JSON_format-Errors"></span>Sintaxi errorean JSON-en. / Bad JSON format<span data-mw-comment-end="h-Sintaxi_errorean_JSON-en._/_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>"Sintaxi errorean JSON-en." 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 "Barne errorea" 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="Required_property_&quot;paramOrder[number]&quot;_not_found." data-mw-thread-id="h-Required_property_&quot;paramOrder[number]&quot;_not_found.-Errors"><span id="Required_property_.22paramOrder.5Bnumber.5D.22_not_found."></span><span data-mw-comment-start="" id="h-Required_property_&quot;paramOrder[number]&quot;_not_found.-Errors"></span>Required property "paramOrder[<var><span lang="en" dir="ltr" class="mw-content-ltr">number</span></var>]" not found.<span data-mw-comment-end="h-Required_property_&quot;paramOrder[number]&quot;_not_found.-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">// &lt;-- 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="Invalid_value_for_property_&quot;paramOrder[number]&quot;." data-mw-thread-id="h-Invalid_value_for_property_&quot;paramOrder[number]&quot;.-Errors"><span id="Invalid_value_for_property_.22paramOrder.5Bnumber.5D.22."></span><span data-mw-comment-start="" id="h-Invalid_value_for_property_&quot;paramOrder[number]&quot;.-Errors"></span>Invalid value for property "paramOrder[<var><span lang="en" dir="ltr" class="mw-content-ltr">number</span></var>]".<span data-mw-comment-end="h-Invalid_value_for_property_&quot;paramOrder[number]&quot;.-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">// &lt;-- 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="Property_&quot;params.parametername.required&quot;_is_expected_to_be_of_type_&quot;boolean&quot;." data-mw-thread-id="h-Property_&quot;params.parametername.required&quot;_is_expected_to_be_of_type_&quot;boolean&quot;.-Errors"><span id="Property_.22params.parametername.required.22_is_expected_to_be_of_type_.22boolean.22."></span><span data-mw-comment-start="" id="h-Property_&quot;params.parametername.required&quot;_is_expected_to_be_of_type_&quot;boolean&quot;.-Errors"></span>Property "params.<var><span lang="en" dir="ltr" class="mw-content-ltr">parametername</span></var>.required" is expected to be of type "boolean".<span data-mw-comment-end="h-Property_&quot;params.parametername.required&quot;_is_expected_to_be_of_type_&quot;boolean&quot;.-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">// &lt;-- 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_&quot;format&quot;_is_expected_to_be_..." data-mw-thread-id="h-Property_&quot;format&quot;_is_expected_to_be_...-Errors"><span id="Property_.22format.22_is_expected_to_be_..."></span><span data-mw-comment-start="" id="h-Property_&quot;format&quot;_is_expected_to_be_...-Errors"></span>Property "format" is expected to be ...<span data-mw-comment-end="h-Property_&quot;format&quot;_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" is expected to be "inline", "block", or a valid format string.". </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="Unexpected_property_&quot;parametername&quot;." data-mw-thread-id="h-Unexpected_property_&quot;parametername&quot;.-Errors"><span id="Unexpected_property_.22parametername.22."></span><span data-mw-comment-start="" id="h-Unexpected_property_&quot;parametername&quot;.-Errors"></span>Unexpected property "<var><span lang="en" dir="ltr" class="mw-content-ltr">parametername</span></var>".<span data-mw-comment-end="h-Unexpected_property_&quot;parametername&quot;.-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">&lt;</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">// &lt;-- 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">&lt;</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">&lt;</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">// &lt;-- 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">&lt;</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="Required_property_&quot;params&quot;_not_found." data-mw-thread-id="h-Required_property_&quot;params&quot;_not_found.-Errors"><span id="Required_property_.22params.22_not_found."></span><span data-mw-comment-start="" id="h-Required_property_&quot;params&quot;_not_found.-Errors"></span>Required property "params" not found.<span data-mw-comment-end="h-Required_property_&quot;params&quot;_not_found.-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>Falta diren funtzionalitateak</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>Oraingo arazoak</b> – Egungo akatsen eta funtzionalitate eskaeren zerrenda erabilgarri dago <a href="https://phabricator.wikimedia.org/maniphest/query/qXa9bowMj3nX/#R" class="extiw" title="phabricator:maniphest/query/qXa9bowMj3nX/">Wikimedia bug tracker</a>-n.</li></ul> <p><span id="Other_tools"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Beste_tresnak" data-mw-thread-id="h-Beste_tresnak"><span data-mw-comment-start="" id="h-Beste_tresnak"></span>Beste tresnak<span data-mw-comment-end="h-Beste_tresnak"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Beste_tresnak","replies":[]}}--></div> <dl><dt><a href="/wiki/Special:MyLanguage/Help:Extension:TemplateWizard" title="Special:MyLanguage/Help:Extension:TemplateWizard">Help:Extension: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>Interfaze interaktiboaren bidez TemplateData sortzen duen tresna.</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>Tresna bat aukera ematen duena eskuz idatzitako JSON-en baliketak egitea sintaxia akatsak aurkitzen laguntzeko.</dd></dl> <ul><li><span class="mw-translate-fuzzy">Wiki honetan <a class="external text" href="https://www.mediawiki.org/wiki/Special:PagesWithProp?propname=templatedata&amp;propname-other=">TemplateData duten txantiloi guztien zerrenda</a>.</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‐api‐int.codfw.main‐5cfcf7bc8d‐kb4xs Cached time: 20241121113302 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.080 seconds CPU time usage: 0.720 seconds Real time usage: 0.897 seconds Preprocessor visited node count: 6196/1000000 Post‐expand include size: 39960/2097152 bytes Template argument size: 12887/2097152 bytes Highest expansion depth: 15/100 Expensive parser function count: 49/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 54433/5000000 bytes Lua time usage: 0.145/10.000 seconds Lua memory usage: 1688760/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 341.318 1 -total 34.16% 116.595 20 Template:Ll 27.73% 94.658 40 Template:Translatable 20.28% 69.235 69 Template:Int 14.36% 49.023 40 Template:Pagelang 13.30% 45.381 41 Template:Anchor 6.77% 23.103 1 Template:PD_Help_Page 6.74% 22.998 4 Template:Note 4.46% 15.239 3 Template:Lm 2.67% 9.104 2 Template:Key_press --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:328500-0!canonical and timestamp 20241121113302 and revision id 6796455. Rendering was triggered because: api-parse --> </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/eu&amp;oldid=6796455">https://www.mediawiki.org/w/index.php?title=Help:TemplateData/eu&amp;oldid=6796455</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:52.</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/eu&amp;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-f69cdc8f6-9dtxv","wgBackendResponseTime":237,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-History","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Adding_or_editing_template_data","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Checking_the_current_state-Adding_or_editing_template_data","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Documentation_subpages-Checking_the_current_state","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Templates_without_documentation_subpages-Checking_the_current_state","replies":[{"headingLevel":5,"name":"h-","type":"heading","level":0,"id":"h-Creating_the_subpage_and_moving_the_documentation-Templates_without_documentation_subpages","replies":[]},{"headingLevel":5,"name":"h-","type":"heading","level":0,"id":"h-Adding_and_editing_template_data_on_the_main_template_page-Templates_without_documentation_subpages","replies":[]}]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Methods-Adding_or_editing_template_data","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-TemplateData_editorea","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Manual_method-TemplateData_editorea","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Deskribapena_eta_parametroak","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Within_params-Deskribapena_eta_parametroak","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-Deskribapena_eta_parametroak","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Blank_boilerplate-Deskribapena_eta_parametroak","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Errors","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Sintaxi_errorean_JSON-en._/_Bad_JSON_format-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Required_property_\"paramOrder[number]\"_not_found.-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Invalid_value_for_property_\"paramOrder[number]\".-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Property_\"params.parametername.required\"_is_expected_to_be_of_type_\"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-Unexpected_property_\"parametername\".-Errors","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Required_property_\"params\"_not_found.-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-Beste_tresnak","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-f69cdc8f6-9dtxv","timestamp":"20241124133212","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10