CINXE.COM
Help:Templates - 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:Templates - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"0f036c9f-1f7d-4471-9546-4d62386a604b","wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:Templates","wgTitle":"Templates","wgCurRevisionId":6825773,"wgRevisionId":6825773,"wgArticleId":1759,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Help","Template","MediaWiki for site admins"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Help:Templates","wgRelevantArticleId":1759,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":["autoconfirmed"],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true, "wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":60000,"wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"visual","wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q4168710","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","ext.translate.tag.languages":"ready","ext.pygments":"ready","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp", "ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.discussionTools.init.styles%7Cext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.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:Templates - 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:Templates"> <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:Templates"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-12 ns-subject page-Help_Templates rootpage-Help_Templates 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"> <li class="interlanguage-link interwiki-als mw-list-item"><a href="https://als.wikipedia.org/wiki/Hilfe:Vorlage" title="Hilfe:Vorlage – Alemannic" lang="gsw" hreflang="gsw" data-title="Hilfe:Vorlage" data-language-autonym="Alemannisch" data-language-local-name="Alemannic" class="interlanguage-link-target"><span>Alemannisch</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%85%D8%B3%D8%A7%D8%B9%D8%AF%D8%A9:%D9%82%D8%A7%D9%84%D8%A8" title="مساعدة:قالب – Arabic" lang="ar" hreflang="ar" data-title="مساعدة:قالب" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-arz mw-list-item"><a href="https://arz.wikipedia.org/wiki/%D9%85%D8%B3%D8%A7%D8%B9%D8%AF%D8%A9:%D9%82%D8%A7%D9%84%D8%A8" title="مساعدة:قالب – Egyptian Arabic" lang="arz" hreflang="arz" data-title="مساعدة:قالب" data-language-autonym="مصرى" data-language-local-name="Egyptian Arabic" class="interlanguage-link-target"><span>مصرى</span></a></li><li class="interlanguage-link interwiki-as mw-list-item"><a href="https://as.wikipedia.org/wiki/%E0%A6%B8%E0%A6%B9%E0%A6%BE%E0%A6%AF%E0%A6%BC:%E0%A6%B8%E0%A6%BE%E0%A6%81%E0%A6%9A" title="সহায়:সাঁচ – Assamese" lang="as" hreflang="as" data-title="সহায়:সাঁচ" data-language-autonym="অসমীয়া" data-language-local-name="Assamese" class="interlanguage-link-target"><span>অসমীয়া</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%DA%A9%D8%A4%D9%85%DA%A9:%D8%B4%D8%A7%D8%A8%D9%84%D9%88%D9%86" title="کؤمک:شابلون – South Azerbaijani" lang="azb" hreflang="azb" data-title="کؤمک:شابلون" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/%D0%92%D1%96%D0%BA%D1%96%D0%BF%D0%B5%D0%B4%D1%8B%D1%8F:%D0%9C%D0%B5%D1%85%D0%B0%D0%BD%D1%96%D0%B7%D0%BC_%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%B0%D1%9E" title="Вікіпедыя:Механізм шаблонаў – Belarusian" lang="be" hreflang="be" data-title="Вікіпедыя:Механізм шаблонаў" data-language-autonym="Беларуская" data-language-local-name="Belarusian" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bh mw-list-item"><a href="https://bh.wikipedia.org/wiki/%E0%A4%AE%E0%A4%A6%E0%A4%A6:%E0%A4%9F%E0%A5%87%E0%A4%AE%E0%A5%8D%E0%A4%AA%E0%A4%B2%E0%A5%87%E0%A4%9F" title="मदद:टेम्पलेट – Bhojpuri" lang="bh" hreflang="bh" data-title="मदद:टेम्पलेट" data-language-autonym="भोजपुरी" data-language-local-name="Bhojpuri" class="interlanguage-link-target"><span>भोजपुरी</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%B8%E0%A6%BE%E0%A6%B9%E0%A6%BE%E0%A6%AF%E0%A7%8D%E0%A6%AF:%E0%A6%9F%E0%A7%87%E0%A6%AE%E0%A6%AA%E0%A7%8D%E0%A6%B2%E0%A7%87%E0%A6%9F" title="সাহায্য:টেমপ্লেট – Bangla" lang="bn" hreflang="bn" data-title="সাহায্য:টেমপ্লেট" data-language-autonym="বাংলা" data-language-local-name="Bangla" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-br mw-list-item"><a href="https://br.wikipedia.org/wiki/Wikipedia:Patromo%C3%B9" title="Wikipedia:Patromoù – Breton" lang="br" hreflang="br" data-title="Wikipedia:Patromoù" data-language-autonym="Brezhoneg" data-language-local-name="Breton" class="interlanguage-link-target"><span>Brezhoneg</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Ajuda:Plantilla" title="Ajuda:Plantilla – Catalan" lang="ca" hreflang="ca" data-title="Ajuda:Plantilla" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%DB%8C%D8%A7%D8%B1%D9%85%DB%95%D8%AA%DB%8C:%D8%AF%D8%A7%DA%95%DB%8E%DA%98%DB%95" title="یارمەتی:داڕێژە – Central Kurdish" lang="ckb" hreflang="ckb" data-title="یارمەتی:داڕێژە" data-language-autonym="کوردی" data-language-local-name="Central Kurdish" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/N%C3%A1pov%C4%9Bda:%C5%A0ablony" title="Nápověda:Šablony – Czech" lang="cs" hreflang="cs" data-title="Nápověda:Šablony" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Hj%C3%A6lp:Skabeloner" title="Hjælp:Skabeloner – Danish" lang="da" hreflang="da" data-title="Hjælp:Skabeloner" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Hilfe:Vorlagen" title="Hilfe:Vorlagen – German" lang="de" hreflang="de" data-title="Hilfe:Vorlagen" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-diq mw-list-item"><a href="https://diq.wikipedia.org/wiki/Desteg:Template" title="Desteg:Template – Zazaki" lang="diq" hreflang="diq" data-title="Desteg:Template" data-language-autonym="Zazaki" data-language-local-name="Zazaki" class="interlanguage-link-target"><span>Zazaki</span></a></li><li class="interlanguage-link interwiki-dsb mw-list-item"><a href="https://dsb.wikipedia.org/wiki/Pomoc:P%C5%9Bed%C5%82ogi" title="Pomoc:Pśedłogi – Lower Sorbian" lang="dsb" hreflang="dsb" data-title="Pomoc:Pśedłogi" data-language-autonym="Dolnoserbski" data-language-local-name="Lower Sorbian" class="interlanguage-link-target"><span>Dolnoserbski</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/%CE%92%CE%BF%CE%AE%CE%B8%CE%B5%CE%B9%CE%B1:%CE%A0%CF%81%CF%8C%CF%84%CF%85%CF%80%CE%BF" title="Βοήθεια:Πρότυπο – Greek" lang="el" hreflang="el" data-title="Βοήθεια:Πρότυπο" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Help:Template" title="Help:Template – English" lang="en" hreflang="en" data-title="Help:Template" data-language-autonym="English" data-language-local-name="English" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Helpo:%C5%9Cablono" title="Helpo:Ŝablono – Esperanto" lang="eo" hreflang="eo" data-title="Helpo:Ŝablono" data-language-autonym="Esperanto" data-language-local-name="Esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Ayuda:Plantillas" title="Ayuda:Plantillas – Spanish" lang="es" hreflang="es" data-title="Ayuda:Plantillas" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Juhend:Mall" title="Juhend:Mall – Estonian" lang="et" hreflang="et" data-title="Juhend:Mall" data-language-autonym="Eesti" data-language-local-name="Estonian" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Laguntza:Txantiloiak" title="Laguntza:Txantiloiak – Basque" lang="eu" hreflang="eu" data-title="Laguntza:Txantiloiak" data-language-autonym="Euskara" data-language-local-name="Basque" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%B1%D8%A7%D9%87%D9%86%D9%85%D8%A7:%D8%A7%D9%84%DA%AF%D9%88" title="راهنما:الگو – Persian" lang="fa" hreflang="fa" data-title="راهنما:الگو" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Ohje:Malline" title="Ohje:Malline – Finnish" lang="fi" hreflang="fi" data-title="Ohje:Malline" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Aide:Mod%C3%A8le" title="Aide:Modèle – French" lang="fr" hreflang="fr" data-title="Aide:Modèle" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/Axuda:Modelos" title="Axuda:Modelos – Galician" lang="gl" hreflang="gl" data-title="Axuda:Modelos" data-language-autonym="Galego" data-language-local-name="Galician" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%A2%D7%96%D7%A8%D7%94:%D7%AA%D7%91%D7%A0%D7%99%D7%95%D7%AA" title="עזרה:תבניות – Hebrew" lang="he" hreflang="he" data-title="עזרה:תבניות" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%B8%E0%A4%B9%E0%A4%BE%E0%A4%AF%E0%A4%A4%E0%A4%BE:%E0%A4%B8%E0%A4%BE%E0%A4%81%E0%A4%9A%E0%A4%BE" title="सहायता:साँचा – Hindi" lang="hi" hreflang="hi" data-title="सहायता:साँचा" data-language-autonym="हिन्दी" data-language-local-name="Hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-hsb mw-list-item"><a href="https://hsb.wikipedia.org/wiki/Pomoc:P%C5%99ed%C5%82ohi" title="Pomoc:Předłohi – Upper Sorbian" lang="hsb" hreflang="hsb" data-title="Pomoc:Předłohi" data-language-autonym="Hornjoserbsce" data-language-local-name="Upper Sorbian" class="interlanguage-link-target"><span>Hornjoserbsce</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/%D5%8E%D5%AB%D6%84%D5%AB%D5%BA%D5%A5%D5%A4%D5%AB%D5%A1:%D5%8E%D5%AB%D6%84%D5%AB%D5%86%D5%A1%D5%AD%D5%A1%D5%A3%D5%AB%D5%AE_%D5%88%D6%82%D5%B2%D5%A5%D5%A3%D5%AB%D5%AE/%D5%80%D5%A1%D6%84%D5%A1%D5%A9%D5%B8%D5%B6/%D5%95%D5%A3%D5%B6%D5%B8%D6%82%D5%A9%D5%B5%D5%B8%D6%82%D5%B6:%D4%BF%D5%A1%D5%B2%D5%A1%D5%BA%D5%A1%D6%80" title="Վիքիպեդիա:ՎիքիՆախագիծ Ուղեգիծ/Հաքաթոն/Օգնություն:Կաղապար – Armenian" lang="hy" hreflang="hy" data-title="Վիքիպեդիա:ՎիքիՆախագիծ Ուղեգիծ/Հաքաթոն/Օգնություն:Կաղապար" data-language-autonym="Հայերեն" data-language-local-name="Armenian" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Bantuan:Templat" title="Bantuan:Templat – Indonesian" lang="id" hreflang="id" data-title="Bantuan:Templat" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-ilo mw-list-item"><a href="https://ilo.wikipedia.org/wiki/Tulong:Plantilia" title="Tulong:Plantilia – Iloko" lang="ilo" hreflang="ilo" data-title="Tulong:Plantilia" data-language-autonym="Ilokano" data-language-local-name="Iloko" class="interlanguage-link-target"><span>Ilokano</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/Hj%C3%A1lp:Sni%C3%B0" title="Hjálp:Snið – Icelandic" lang="is" hreflang="is" data-title="Hjálp:Snið" data-language-autonym="Íslenska" data-language-local-name="Icelandic" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Aiuto:Template" title="Aiuto:Template – Italian" lang="it" hreflang="it" data-title="Aiuto:Template" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Help:%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88" title="Help:テンプレート – Japanese" lang="ja" hreflang="ja" data-title="Help:テンプレート" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-jv mw-list-item"><a href="https://jv.wikipedia.org/wiki/Pitulung:Cithakan" title="Pitulung:Cithakan – Javanese" lang="jv" hreflang="jv" data-title="Pitulung:Cithakan" data-language-autonym="Jawa" data-language-local-name="Javanese" class="interlanguage-link-target"><span>Jawa</span></a></li><li class="interlanguage-link interwiki-km mw-list-item"><a href="https://km.wikipedia.org/wiki/%E1%9E%87%E1%9F%86%E1%9E%93%E1%9E%BD%E1%9E%99:%E1%9E%91%E1%9F%86%E1%9E%96%E1%9F%90%E1%9E%9A%E1%9E%82%E1%9F%86%E1%9E%9A%E1%9E%BC" title="ជំនួយ:ទំព័រគំរូ – Khmer" lang="km" hreflang="km" data-title="ជំនួយ:ទំព័រគំរូ" data-language-autonym="ភាសាខ្មែរ" data-language-local-name="Khmer" class="interlanguage-link-target"><span>ភាសាខ្មែរ</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EB%8F%84%EC%9B%80%EB%A7%90:%ED%8B%80" title="도움말:틀 – Korean" lang="ko" hreflang="ko" data-title="도움말:틀" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ksh mw-list-item"><a href="https://ksh.wikipedia.org/wiki/Wikipedia:Wat_sinn_dann_Shabloone_joot_f%C3%B6r%3F" title="Wikipedia:Wat sinn dann Shabloone joot för? – Colognian" lang="ksh" hreflang="ksh" data-title="Wikipedia:Wat sinn dann Shabloone joot för?" data-language-autonym="Ripoarisch" data-language-local-name="Colognian" class="interlanguage-link-target"><span>Ripoarisch</span></a></li><li class="interlanguage-link interwiki-ky mw-list-item"><a href="https://ky.wikipedia.org/wiki/%D0%96%D0%B0%D1%80%D0%B4%D0%B0%D0%BC:%D0%9A%D0%B0%D0%BB%D1%8B%D0%BF" title="Жардам:Калып – Kyrgyz" lang="ky" hreflang="ky" data-title="Жардам:Калып" data-language-autonym="Кыргызча" data-language-local-name="Kyrgyz" class="interlanguage-link-target"><span>Кыргызча</span></a></li><li class="interlanguage-link interwiki-la mw-list-item"><a href="https://la.wikipedia.org/wiki/Auxilium:Formulae" title="Auxilium:Formulae – Latin" lang="la" hreflang="la" data-title="Auxilium:Formulae" data-language-autonym="Latina" data-language-local-name="Latin" class="interlanguage-link-target"><span>Latina</span></a></li><li class="interlanguage-link interwiki-lb mw-list-item"><a href="https://lb.wikipedia.org/wiki/H%C3%ABllef:Schablounen" title="Hëllef:Schablounen – Luxembourgish" lang="lb" hreflang="lb" data-title="Hëllef:Schablounen" data-language-autonym="Lëtzebuergesch" data-language-local-name="Luxembourgish" class="interlanguage-link-target"><span>Lëtzebuergesch</span></a></li><li class="interlanguage-link interwiki-lt mw-list-item"><a href="https://lt.wikipedia.org/wiki/Pagalba:Kaip_naudotis_%C5%A1ablonais" title="Pagalba:Kaip naudotis šablonais – Lithuanian" lang="lt" hreflang="lt" data-title="Pagalba:Kaip naudotis šablonais" data-language-autonym="Lietuvių" data-language-local-name="Lithuanian" class="interlanguage-link-target"><span>Lietuvių</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%B8%E0%B4%B9%E0%B4%BE%E0%B4%AF%E0%B4%82:%E0%B4%AB%E0%B4%B2%E0%B4%95%E0%B4%82" title="സഹായം:ഫലകം – Malayalam" lang="ml" hreflang="ml" data-title="സഹായം:ഫലകം" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-mr mw-list-item"><a href="https://mr.wikipedia.org/wiki/%E0%A4%B8%E0%A4%B9%E0%A4%BE%E0%A4%AF%E0%A5%8D%E0%A4%AF:%E0%A4%B8%E0%A4%BE%E0%A4%9A%E0%A4%BE" title="सहाय्य:साचा – Marathi" lang="mr" hreflang="mr" data-title="सहाय्य:साचा" data-language-autonym="मराठी" data-language-local-name="Marathi" class="interlanguage-link-target"><span>मराठी</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/Bantuan:Templat" title="Bantuan:Templat – Malay" lang="ms" hreflang="ms" data-title="Bantuan:Templat" data-language-autonym="Bahasa Melayu" data-language-local-name="Malay" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-mt mw-list-item"><a href="https://mt.wikipedia.org/wiki/G%C4%A7ajnuna:Mudell" title="Għajnuna:Mudell – Maltese" lang="mt" hreflang="mt" data-title="Għajnuna:Mudell" data-language-autonym="Malti" data-language-local-name="Maltese" class="interlanguage-link-target"><span>Malti</span></a></li><li class="interlanguage-link interwiki-my mw-list-item"><a href="https://my.wikipedia.org/wiki/%E1%80%A1%E1%80%80%E1%80%B0%E1%80%A1%E1%80%8A%E1%80%AE:Template" title="အကူအညီ:Template – Burmese" lang="my" hreflang="my" data-title="အကူအညီ:Template" data-language-autonym="မြန်မာဘာသာ" data-language-local-name="Burmese" class="interlanguage-link-target"><span>မြန်မာဘာသာ</span></a></li><li class="interlanguage-link interwiki-nds-nl mw-list-item"><a href="https://nds-nl.wikipedia.org/wiki/Hulpe:Mallen" title="Hulpe:Mallen – Low Saxon" lang="nds-NL" hreflang="nds-NL" data-title="Hulpe:Mallen" data-language-autonym="Nedersaksies" data-language-local-name="Low Saxon" class="interlanguage-link-target"><span>Nedersaksies</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Help:Gebruik_van_sjablonen" title="Help:Gebruik van sjablonen – Dutch" lang="nl" hreflang="nl" data-title="Help:Gebruik van sjablonen" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Hjelp:Maler" title="Hjelp:Maler – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="Hjelp:Maler" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-oc mw-list-item"><a href="https://oc.wikipedia.org/wiki/Ajuda:Mod%C3%A8l" title="Ajuda:Modèl – Occitan" lang="oc" hreflang="oc" data-title="Ajuda:Modèl" data-language-autonym="Occitan" data-language-local-name="Occitan" class="interlanguage-link-target"><span>Occitan</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%B8%E0%AC%B9%E0%AC%AF%E0%AD%8B%E0%AC%97:%E0%AC%9B%E0%AC%BE%E0%AC%9E%E0%AD%8D%E0%AC%9A" title="ସହଯୋଗ:ଛାଞ୍ଚ – Odia" lang="or" hreflang="or" data-title="ସହଯୋଗ:ଛାଞ୍ଚ" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="Odia" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-ps mw-list-item"><a href="https://ps.wikipedia.org/wiki/%D9%84%D8%A7%D8%B1%DA%9A%D9%88%D8%AF:%DA%A9%D9%8A%D9%86%DA%89%DB%8D" title="لارښود:کينډۍ – Pashto" lang="ps" hreflang="ps" data-title="لارښود:کينډۍ" data-language-autonym="پښتو" data-language-local-name="Pashto" class="interlanguage-link-target"><span>پښتو</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Ajutor:Formate" title="Ajutor:Formate – Romanian" lang="ro" hreflang="ro" data-title="Ajutor:Formate" data-language-autonym="Română" data-language-local-name="Romanian" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9C%D0%B5%D1%85%D0%B0%D0%BD%D0%B8%D0%B7%D0%BC_%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%BE%D0%B2" title="Википедия:Механизм шаблонов – Russian" lang="ru" hreflang="ru" data-title="Википедия:Механизм шаблонов" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sco mw-list-item"><a href="https://sco.wikipedia.org/wiki/Help:Templates" title="Help:Templates – Scots" lang="sco" hreflang="sco" data-title="Help:Templates" data-language-autonym="Scots" data-language-local-name="Scots" class="interlanguage-link-target"><span>Scots</span></a></li><li class="interlanguage-link interwiki-sd mw-list-item"><a href="https://sd.wikipedia.org/wiki/%D9%85%D8%AF%D8%AF:%D8%B3%D8%A7%D9%86%DA%86%D9%88" title="مدد:سانچو – Sindhi" lang="sd" hreflang="sd" data-title="مدد:سانچو" data-language-autonym="سنڌي" data-language-local-name="Sindhi" class="interlanguage-link-target"><span>سنڌي</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/Pomo%C4%87:%C5%A0ablon" title="Pomoć:Šablon – Serbo-Croatian" lang="sh" hreflang="sh" data-title="Pomoć:Šablon" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="Serbo-Croatian" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-shn mw-list-item"><a href="https://shn.wikipedia.org/wiki/%E1%80%9C%E1%80%BD%E1%80%84%E1%80%BA%E1%82%88%E1%81%B8%E1%80%BD%E1%82%86%E1%82%88%E1%80%91%E1%82%85%E1%80%99%E1%80%BA:Template" title="လွင်ႈၸွႆႈထႅမ်:Template – Shan" lang="shn" hreflang="shn" data-title="လွင်ႈၸွႆႈထႅမ်:Template" data-language-autonym="ၽႃႇသႃႇတႆး " data-language-local-name="Shan" class="interlanguage-link-target"><span>ၽႃႇသႃႇတႆး </span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/%E0%B6%8B%E0%B6%AF%E0%B7%80%E0%B7%94:Template" title="උදවු:Template – Sinhala" lang="si" hreflang="si" data-title="උදවු:Template" data-language-autonym="සිංහල" data-language-local-name="Sinhala" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Help:Template" title="Help:Template – Simple English" lang="en-simple" hreflang="en-simple" data-title="Help:Template" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/Ndihm%C3%AB:Stampa" title="Ndihmë:Stampa – Albanian" lang="sq" hreflang="sq" data-title="Ndihmë:Stampa" data-language-autonym="Shqip" data-language-local-name="Albanian" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/%D0%9F%D0%BE%D0%BC%D0%BE%D1%9B:%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD" title="Помоћ:Шаблон – Serbian" lang="sr" hreflang="sr" data-title="Помоћ:Шаблон" data-language-autonym="Српски / srpski" data-language-local-name="Serbian" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82:%E0%B0%AE%E0%B1%82%E0%B0%B8" title="సహాయం:మూస – Telugu" lang="te" hreflang="te" data-title="సహాయం:మూస" data-language-autonym="తెలుగు" data-language-local-name="Telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B9%83%E0%B8%8A%E0%B9%89:%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A" title="วิธีใช้:แม่แบบ – Thai" lang="th" hreflang="th" data-title="วิธีใช้:แม่แบบ" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Yard%C4%B1m:%C5%9Eablon" title="Yardım:Şablon – Turkish" lang="tr" hreflang="tr" data-title="Yardım:Şablon" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-tt mw-list-item"><a href="https://tt.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9A%D0%B0%D0%BB%D1%8B%D0%BF%D0%BB%D0%B0%D1%80_%D0%BC%D0%B5%D1%85%D0%B0%D0%BD%D0%B8%D0%B7%D0%BC%D1%8B" title="Википедия:Калыплар механизмы – Tatar" lang="tt" hreflang="tt" data-title="Википедия:Калыплар механизмы" data-language-autonym="Татарча / tatarça" data-language-local-name="Tatar" class="interlanguage-link-target"><span>Татарча / tatarça</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%94%D0%BE%D0%B2%D1%96%D0%B4%D0%BA%D0%B0:%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%B8" title="Довідка:Шаблони – Ukrainian" lang="uk" hreflang="uk" data-title="Довідка:Шаблони" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D9%85%D8%B9%D8%A7%D9%88%D9%86%D8%AA:%D8%B3%D8%A7%D9%86%DA%86%DB%81" title="معاونت:سانچہ – Urdu" lang="ur" hreflang="ur" data-title="معاونت:سانچہ" data-language-autonym="اردو" data-language-local-name="Urdu" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-vec mw-list-item"><a href="https://vec.wikipedia.org/wiki/Juto:Mode%C5%82i" title="Juto:Modełi – Venetian" lang="vec" hreflang="vec" data-title="Juto:Modełi" data-language-autonym="Vèneto" data-language-local-name="Venetian" class="interlanguage-link-target"><span>Vèneto</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Tr%E1%BB%A3_gi%C3%BAp:B%E1%BA%A3n_m%E1%BA%ABu" title="Trợ giúp:Bản mẫu – Vietnamese" lang="vi" hreflang="vi" data-title="Trợ giúp:Bản mẫu" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-yi mw-list-item"><a href="https://yi.wikipedia.org/wiki/%D7%94%D7%99%D7%9C%D7%A3:%D7%9E%D7%95%D7%A1%D7%98%D7%A2%D7%A8" title="הילף:מוסטער – Yiddish" lang="yi" hreflang="yi" data-title="הילף:מוסטער" data-language-autonym="ייִדיש" data-language-local-name="Yiddish" class="interlanguage-link-target"><span>ייִדיש</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Help:%E6%A8%A1%E6%9D%BF" title="Help:模板 – Chinese" lang="zh" hreflang="zh" data-title="Help:模板" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q4168710#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Help%3ATemplates" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Help%3ATemplates" 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&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Help%3ATemplates" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Help%3ATemplates" 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-Basic_usage" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Basic_usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Basic usage</span> </div> </a> <ul id="toc-Basic_usage-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Ways_to_invoke_a_template" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Ways_to_invoke_a_template"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Ways to invoke a template</span> </div> </a> <ul id="toc-Ways_to_invoke_a_template-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Parameters" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Parameters</span> </div> </a> <button aria-controls="toc-Parameters-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 Parameters subsection</span> </button> <ul id="toc-Parameters-sublist" class="vector-toc-list"> <li id="toc-Anonymous_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Anonymous_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Anonymous parameters</span> </div> </a> <ul id="toc-Anonymous_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Numbered_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Numbered_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span>Numbered parameters</span> </div> </a> <ul id="toc-Numbered_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Named_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Named_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3</span> <span>Named parameters</span> </div> </a> <ul id="toc-Named_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Mixing_named_and_unnamed_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Mixing_named_and_unnamed_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.4</span> <span>Mixing named and unnamed parameters</span> </div> </a> <ul id="toc-Mixing_named_and_unnamed_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Default_values" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Default_values"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.5</span> <span>Default values</span> </div> </a> <ul id="toc-Default_values-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Passing_parameters_to_other_templates" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Passing_parameters_to_other_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.6</span> <span>Passing parameters to other templates</span> </div> </a> <ul id="toc-Passing_parameters_to_other_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Empty_vs_undefined_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Empty_vs_undefined_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.7</span> <span>Empty vs undefined parameters</span> </div> </a> <ul id="toc-Empty_vs_undefined_parameters-sublist" class="vector-toc-list"> <li id="toc-Making_emptiness_and_undefinedness_equivalent" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Making_emptiness_and_undefinedness_equivalent"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.7.1</span> <span>Making emptiness and undefinedness equivalent</span> </div> </a> <ul id="toc-Making_emptiness_and_undefinedness_equivalent-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Using_equals_signs_in_unnamed_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Using_equals_signs_in_unnamed_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.8</span> <span>Using equals signs in unnamed parameters</span> </div> </a> <ul id="toc-Using_equals_signs_in_unnamed_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Handling_unmatched_curly_and_square_brackets" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Handling_unmatched_curly_and_square_brackets"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.9</span> <span>Handling unmatched curly and square brackets</span> </div> </a> <ul id="toc-Handling_unmatched_curly_and_square_brackets-sublist" class="vector-toc-list"> <li id="toc-Template-generated_brackets" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Template-generated_brackets"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.9.1</span> <span>Template-generated brackets</span> </div> </a> <ul id="toc-Template-generated_brackets-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Using_pipes_in_parameter_values" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Using_pipes_in_parameter_values"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.10</span> <span>Using pipes in parameter values</span> </div> </a> <ul id="toc-Using_pipes_in_parameter_values-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Formatting_template_calls_using_extra_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Formatting_template_calls_using_extra_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.11</span> <span>Formatting template calls using extra parameters</span> </div> </a> <ul id="toc-Formatting_template_calls_using_extra_parameters-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Tracking_parameter_usage" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Tracking_parameter_usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Tracking parameter usage</span> </div> </a> <ul id="toc-Tracking_parameter_usage-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Evaluation_process" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Evaluation_process"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Evaluation process</span> </div> </a> <button aria-controls="toc-Evaluation_process-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 Evaluation process subsection</span> </button> <ul id="toc-Evaluation_process-sublist" class="vector-toc-list"> <li id="toc-Recursion_in_templates" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Recursion_in_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>Recursion in templates</span> </div> </a> <ul id="toc-Recursion_in_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Tables_in_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Tables_in_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2</span> <span>Tables in parameters</span> </div> </a> <ul id="toc-Tables_in_parameters-sublist" class="vector-toc-list"> <li id="toc-Example_table" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Example_table"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2.1</span> <span>Example table</span> </div> </a> <ul id="toc-Example_table-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Controlling_template_inclusion" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Controlling_template_inclusion"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Controlling template inclusion</span> </div> </a> <ul id="toc-Controlling_template_inclusion-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Section_transclusion" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Section_transclusion"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Section transclusion</span> </div> </a> <ul id="toc-Section_transclusion-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Organizing_templates" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Organizing_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Organizing templates</span> </div> </a> <ul id="toc-Organizing_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Linking_to_a_template" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Linking_to_a_template"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>Linking to a template</span> </div> </a> <ul id="toc-Linking_to_a_template-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Template_naming" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Template_naming"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>Template naming</span> </div> </a> <ul id="toc-Template_naming-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Possible_uses_of_templates" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Possible_uses_of_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">11</span> <span>Possible uses of templates</span> </div> </a> <ul id="toc-Possible_uses_of_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Copying_from_one_wiki_to_another" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Copying_from_one_wiki_to_another"> <div class="vector-toc-text"> <span class="vector-toc-numb">12</span> <span>Copying from one wiki to another</span> </div> </a> <button aria-controls="toc-Copying_from_one_wiki_to_another-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 Copying from one wiki to another subsection</span> </button> <ul id="toc-Copying_from_one_wiki_to_another-sublist" class="vector-toc-list"> <li id="toc-MediaWiki_code" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#MediaWiki_code"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.1</span> <span>MediaWiki code</span> </div> </a> <ul id="toc-MediaWiki_code-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Extensions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Extensions"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.2</span> <span>Extensions</span> </div> </a> <ul id="toc-Extensions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-CSS_and_JavaScript_code" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#CSS_and_JavaScript_code"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.3</span> <span>CSS and JavaScript code</span> </div> </a> <ul id="toc-CSS_and_JavaScript_code-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Redirection" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Redirection"> <div class="vector-toc-text"> <span class="vector-toc-numb">13</span> <span>Redirection</span> </div> </a> <ul id="toc-Redirection-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Parser_functions" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Parser_functions"> <div class="vector-toc-text"> <span class="vector-toc-numb">14</span> <span>Parser functions</span> </div> </a> <ul id="toc-Parser_functions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">15</span> <span>See also</span> </div> </a> <button aria-controls="toc-See_also-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 See also subsection</span> </button> <ul id="toc-See_also-sublist" class="vector-toc-list"> <li id="toc-General_template_usage" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#General_template_usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.1</span> <span>General template usage</span> </div> </a> <ul id="toc-General_template_usage-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Special_constructs_used_in_templates" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Special_constructs_used_in_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.2</span> <span>Special constructs used in templates</span> </div> </a> <ul id="toc-Special_constructs_used_in_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Other_relevant_information" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Other_relevant_information"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.3</span> <span>Other relevant information</span> </div> </a> <ul id="toc-Other_relevant_information-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">16</span> <span>External links</span> </div> </a> <ul id="toc-External_links-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"><span class="mw-page-title-namespace">Help</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Templates</span></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:Templates" title="View the help page [c]" accesskey="c"><span>Help</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Help_talk:Templates" rel="discussion" title="Discussion about the content page [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">English</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:Templates"><span>Read</span></a></li><li id="ca-viewsource" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Help:Templates&action=edit" title="This page is protected. You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Help:Templates&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:Templates"><span>Read</span></a></li><li id="ca-more-viewsource" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Help:Templates&action=edit"><span>View source</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Help:Templates&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:Templates" 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:Templates" 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:Templates&oldid=6825773" 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:Templates&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FHelp%3ATemplates"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FHelp%3ATemplates"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Help%3ATemplates"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Help%3ATemplates&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:Templates&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" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Help:Template" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-meta mw-list-item"><a href="https://meta.wikimedia.org/wiki/Help:Template" hreflang="en"><span>Meta-Wiki</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://en.wikibooks.org/wiki/Help:Templates" hreflang="en"><span>Wikibooks</span></a></li><li class="wb-otherproject-link wb-otherproject-wikidata mw-list-item"><a href="https://www.wikidata.org/wiki/Help:Templates" hreflang="en"><span>Wikidata</span></a></li><li class="wb-otherproject-link wb-otherproject-wikipedia mw-list-item"><a href="https://en.wikipedia.org/wiki/Help:Template" hreflang="en"><span>Wikipedia</span></a></li><li class="wb-otherproject-link wb-otherproject-wikiquote mw-list-item"><a href="https://en.wikiquote.org/wiki/Help:Template" hreflang="en"><span>Wikiquote</span></a></li><li class="wb-otherproject-link wb-otherproject-wikisource mw-list-item"><a href="https://en.wikisource.org/wiki/Help:Templates" hreflang="en"><span>Wikisource</span></a></li><li class="wb-otherproject-link wb-otherproject-wikiversity mw-list-item"><a href="https://en.wikiversity.org/wiki/Wikiversity:FAQ/Template" hreflang="en"><span>Wikiversity</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q4168710" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="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 nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&group=page-Help%3ATemplates&action=page&filter=&action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" 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:Templates/id" class="mw-pt-progress mw-pt-progress--med" title="Bantuan:Templat (50% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Help:Templates/de" class="mw-pt-progress mw-pt-progress--high" title="Hilfe:Templates (Vorlagen) (77% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><a href="/wiki/Help:Templates/de-formal" class="mw-pt-progress mw-pt-progress--low" title="Hilfe:Templates (Vorlagen) (10% translated)" lang="de-x-formal" dir="ltr">Deutsch (Sie-Form)</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Help:Templates/ha" class="mw-pt-progress mw-pt-progress--med" title="Help:Templates/ha (29% translated)" lang="ha" dir="ltr">Hausa</a></li> <li><a href="/wiki/Help:Templates/lb" class="mw-pt-progress mw-pt-progress--low" title="Help:Schablounen (3% translated)" lang="lb" dir="ltr">Lëtzebuergesch</a></li> <li><a href="/wiki/Help:Templates/nap" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/na (1% translated)" lang="nap" dir="ltr">Napulitano</a></li> <li><a href="/wiki/Help:Templates/nl" class="mw-pt-progress mw-pt-progress--complete" title="Help:Sjablonen (100% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/wiki/Help:Templates/kaa" class="mw-pt-progress mw-pt-progress--low" title="Úlgiler (2% translated)" lang="kaa" dir="ltr">Qaraqalpaqsha</a></li> <li><a href="/wiki/Help:Templates/tl" class="mw-pt-progress mw-pt-progress--low" title="Tulong:Mga Padron/Suleras (7% translated)" lang="tl" dir="ltr">Tagalog</a></li> <li><a href="/wiki/Help:Templates/vi" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/vi (4% translated)" lang="vi" dir="ltr">Tiếng Việt</a></li> <li><a href="/wiki/Help:Templates/tr" class="mw-pt-progress mw-pt-progress--med" title="Help:Şablonlar (56% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/wiki/Help:Templates/yo" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/yo (1% translated)" lang="yo" dir="ltr">Yorùbá</a></li> <li><a href="/wiki/Help:Templates/diq" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/diq (2% translated)" lang="diq" dir="ltr">Zazaki</a></li> <li><a href="/wiki/Help:Templates/ca" class="mw-pt-progress mw-pt-progress--med" title="Ajuda:Plantilles (53% translated)" lang="ca" dir="ltr">català</a></li> <li><a href="/wiki/Help:Templates/da" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/da (3% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Help:Templates/es" class="mw-pt-progress mw-pt-progress--med" title="Ayuda:Plantillas (19% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Help:Templates/fr" class="mw-pt-progress mw-pt-progress--complete" title="Modèles (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Help:Templates/hr" class="mw-pt-progress mw-pt-progress--low" title="Pomoć:Predlošci (2% translated)" lang="hr" dir="ltr">hrvatski</a></li> <li><a href="/wiki/Help:Templates/it" class="mw-pt-progress mw-pt-progress--med" title="Help:Templates/it (57% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/wiki/Help:Templates/lt" class="mw-pt-progress mw-pt-progress--low" title="Pagalba:Šablonai (1% translated)" lang="lt" dir="ltr">lietuvių</a></li> <li><a href="/wiki/Help:Templates/hu" class="mw-pt-progress mw-pt-progress--low" title="Segítség:Sablonok (14% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Help:Templates/nb" class="mw-pt-progress mw-pt-progress--low" title="Maler (5% translated)" lang="nb" dir="ltr">norsk bokmål</a></li> <li><a href="/wiki/Help:Templates/pl" class="mw-pt-progress mw-pt-progress--low" title="Pomoc:Szablony (14% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Help:Templates/pt" class="mw-pt-progress mw-pt-progress--med" title="Ajuda:Modelos (38% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/wiki/Help:Templates/pt-br" class="mw-pt-progress mw-pt-progress--med" title="Help:Predefinições (45% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Help:Templates/ro" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/ro (3% translated)" lang="ro" dir="ltr">română</a></li> <li><a href="/wiki/Help:Templates/sk" class="mw-pt-progress mw-pt-progress--low" title="Šablóny (7% translated)" lang="sk" dir="ltr">slovenčina</a></li> <li><a href="/wiki/Help:Templates/fi" class="mw-pt-progress mw-pt-progress--low" title="Ohje:Mallineet (8% translated)" lang="fi" dir="ltr">suomi</a></li> <li><a href="/wiki/Help:Templates/sv" class="mw-pt-progress mw-pt-progress--low" title="Help:Mallar (7% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="/wiki/Help:Templates/tly" class="mw-pt-progress mw-pt-progress--low" title="Arajiš:Šablonon (1% translated)" lang="tly" dir="ltr">tolışi</a></li> <li><a href="/wiki/Help:Templates/cs" class="mw-pt-progress mw-pt-progress--high" title="Nápověda:Šablony (73% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Help:Templates/be-tarask" class="mw-pt-progress mw-pt-progress--low" title="Help:Шаблёны (9% translated)" lang="be-tarask" dir="ltr">беларуская (тарашкевіца)</a></li> <li><a href="/wiki/Help:Templates/bg" class="mw-pt-progress mw-pt-progress--low" title="Help:Шаблони (10% translated)" lang="bg" dir="ltr">български</a></li> <li><a href="/wiki/Help:Templates/ru" class="mw-pt-progress mw-pt-progress--high" title="Справка:Шаблоны (73% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Help:Templates/sr" class="mw-pt-progress mw-pt-progress--low" title="Помоћ:Шаблони (13% translated)" lang="sr" dir="ltr">српски / srpski</a></li> <li><a href="/wiki/Help:Templates/uk" class="mw-pt-progress mw-pt-progress--med" title="Help:Шаблони (42% translated)" lang="uk" dir="ltr">українська</a></li> <li><a href="/wiki/Help:Templates/he" class="mw-pt-progress mw-pt-progress--low" title="Help:תבניות (3% translated)" lang="he" dir="rtl">עברית</a></li> <li><a href="/wiki/Help:Templates/ur" class="mw-pt-progress mw-pt-progress--low" title="معاونت:سانچہ جات (0% translated)" lang="ur" dir="rtl">اردو</a></li> <li><a href="/wiki/Help:Templates/ar" class="mw-pt-progress mw-pt-progress--low" title="مساعدة:قوالب (3% translated)" lang="ar" dir="rtl">العربية</a></li> <li><a href="/wiki/Help:Templates/sd" class="mw-pt-progress mw-pt-progress--low" title="مدد:سانچا (4% translated)" lang="sd" dir="rtl">سنڌي</a></li> <li><a href="/wiki/Help:Templates/fa" class="mw-pt-progress mw-pt-progress--med" title="Help:الگوها (24% translated)" lang="fa" dir="rtl">فارسی</a></li> <li><a href="/wiki/Help:Templates/ps" class="mw-pt-progress mw-pt-progress--low" title="Help:کينډۍ (3% translated)" lang="ps" dir="rtl">پښتو</a></li> <li><a href="/wiki/Help:Templates/nqo" class="mw-pt-progress mw-pt-progress--med" title="ߘߍ߬ߡߍ߲߬ߠߌ߲:ߞߙߊߞߏ (36% translated)" lang="nqo" dir="rtl">ߒߞߏ</a></li> <li><a href="/wiki/Help:Templates/anp" class="mw-pt-progress mw-pt-progress--low" title="सहायता:साँचा सब (4% translated)" lang="anp" dir="ltr">अंगिका</a></li> <li><a href="/wiki/Help:Templates/bho" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/bho (1% translated)" lang="bho" dir="ltr">भोजपुरी</a></li> <li><a href="/wiki/Help:Templates/hi" class="mw-pt-progress mw-pt-progress--med" title="Help:साँचें (66% translated)" lang="hi" dir="ltr">हिन्दी</a></li> <li><a href="/wiki/Help:Templates/bn" class="mw-pt-progress mw-pt-progress--low" title="সাহায্য:টেমপ্লেট (2% translated)" lang="bn" dir="ltr">বাংলা</a></li> <li><a href="/wiki/Help:Templates/or" class="mw-pt-progress mw-pt-progress--low" title="Help:Templates/or (2% translated)" lang="or" dir="ltr">ଓଡ଼ିଆ</a></li> <li><a href="/wiki/Help:Templates/kn" class="mw-pt-progress mw-pt-progress--low" title="ಸಹಾಯ:ಟೆಂಪ್ಲೇಟುಗಳು (1% translated)" lang="kn" dir="ltr">ಕನ್ನಡ</a></li> <li><a href="/wiki/Help:Templates/ml" class="mw-pt-progress mw-pt-progress--low" title="സഹായം:ഫലകങ്ങൾ (2% translated)" lang="ml" dir="ltr">മലയാളം</a></li> <li><a href="/wiki/Help:Templates/th" class="mw-pt-progress mw-pt-progress--low" title="วิธีใช้:แม่แบบ (4% translated)" lang="th" dir="ltr">ไทย</a></li> <li><a href="/wiki/Help:Templates/zh" class="mw-pt-progress mw-pt-progress--high" title="Help:模板 (76% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Help:Templates/ja" class="mw-pt-progress mw-pt-progress--med" title="Help:テンプレート (65% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Help:Templates/mni" class="mw-pt-progress mw-pt-progress--low" title="ꯃꯇꯦꯡ: ꯇꯦꯝꯄꯂꯦꯠꯁꯤꯡ (1% translated)" lang="mni" dir="ltr">ꯃꯤꯇꯩ ꯂꯣꯟ</a></li> <li><a href="/wiki/Help:Templates/ko" class="mw-pt-progress mw-pt-progress--low" title="도움말:틀 (11% 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>Note:</b> When you edit this page, you agree to release your contribution under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">CC0</a>. See <a href="/wiki/Special:MyLanguage/Project:PD_help" title="Special:MyLanguage/Project:PD help">Public Domain Help Pages</a> for more info. </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>If you have standard texts you want to include on several pages, the MediaWiki <b>template</b> feature comes into play. Unlike <a href="/wiki/Special:MyLanguage/Manual:Extensions" title="Special:MyLanguage/Manual:Extensions">extensions</a><span style="display:none"><a href="/wiki/Manual:Extensions" title="Manual:Extensions"> </a></span> and <a href="/wiki/Special:MyLanguage/Help:Images" title="Special:MyLanguage/Help:Images">media files</a><span style="display:none"><a href="/wiki/Help:Images" title="Help:Images"> </a></span>, there is no central repository for templates. Templates can be newly written or, to save duplicating work already done, exported from another wiki e.g. Wikipedia, and then imported into the target wiki. </p> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Basic_usage" data-mw-thread-id="h-Basic_usage"><span data-mw-comment-start="" id="h-Basic_usage"></span>Basic usage<span data-mw-comment-end="h-Basic_usage"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Basic_usage","replies":[]}}--></div> <p>Templates are standard wiki pages whose content is designed to be <b><a href="/wiki/Special:MyLanguage/Transclusion" title="Special:MyLanguage/Transclusion">transcluded</a></b> (embedded) inside other pages. Templates follow a convention that the name is prefixed with "<code>Template:</code>", assigning it to that <a href="/wiki/Special:MyLanguage/Help:Namespaces" title="Special:MyLanguage/Help:Namespaces">namespace</a>; besides this, you can <a href="/wiki/Special:MyLanguage/Help:Starting_a_new_page" title="Special:MyLanguage/Help:Starting a new page">create them like any other wiki page</a>. </p><p>To transclude a template, you used double open & close curly brackets <code>{{template name}}</code>. </p><p>The simplest use of templates is as follows: Create a page called <code>Template:Welcome</code> with the content below: </p> <pre>Hello! Welcome to the wiki. </pre> <p>You have created your first template! Now, insert the code below in a new page: </p> <pre>{{Welcome}} </pre> <p>When the new page is viewed, the text "Hello! Welcome to the wiki." will appear instead of <code>{{Welcome}}</code>. The template content is <b>transcluded</b> into the other page, i.e., it is integrated in the page. </p><p>You can then insert <code>{{Welcome}}</code> at any point of any page where you wish to welcome someone. Suppose it is used in 100 pages. If you then change the template contents to: </p> <pre>Hi there! Welcome to this wonderful wiki. </pre> <p>And revisit any of the 100 pages where the template was used, you'll see the new text instead of the original one. In this way, you have changed the content of 100 pages without editing them, because the template is transcluded into these pages. </p><p>This is the basic mechanism. There are several additional features of transclusion that enrich this mechanism and make templates very useful. </p><p><span class="anchor" id="Usage"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Ways_to_invoke_a_template" data-mw-thread-id="h-Ways_to_invoke_a_template"><span data-mw-comment-start="" id="h-Ways_to_invoke_a_template"></span>Ways to invoke a template<span data-mw-comment-end="h-Ways_to_invoke_a_template"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Ways_to_invoke_a_template","replies":[]}}--></div> <p>Templates can be used in other pages in these ways: </p> <ul><li><code>{{Name}}</code> — As described above, this text (commonly referred to as a "template call") will be <i>dynamically</i> replaced by the content of the page titled Template:Name (a process called "transclusion") every time the page with the template call is <b>loaded</b> (i.e., viewed by a reader of the wiki). Because the template call remains in the pages's source, any subsequent change to Template:Name will be seen on the page containing the template call. Also, the page will be listed among those that "link to" the template.</li> <li><code>{{subst:Name}}</code> — When this type of template call is used, it will be replaced by a <i>static copy</i> of the content of Template:Name as of the time the page containing the template call is <b>saved</b>. That is, a copy of the contents of Template:Name will be <i>substituted</i> for the template call. No link is maintained between the page and the template, so each can be edited further without affecting the other. In effect, there is little difference between substituting the content in this way and simply typing it into the page's source "manually". See <a href="/wiki/Special:MyLanguage/Help:Substitution" title="Special:MyLanguage/Help:Substitution">Help:Substitution</a><span style="display:none"><a href="/wiki/Help:Substitution" title="Help:Substitution"> </a></span> for more information.</li> <li><code>{{safesubst:Name}}</code> — This was introduced to allow for recursive substitution in cases where templates contain calls to other templates or parser functions. See <a href="/wiki/Special:MyLanguage/Help:Substitution" title="Special:MyLanguage/Help:Substitution">Help:Substitution</a><span style="display:none"><a href="/wiki/Help:Substitution" title="Help:Substitution"> </a></span> for more information.</li> <li><code>{{msgnw:Name}}</code> — This displays the template content as raw wiki syntax (the way <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">nowiki</span><span class="p">></span></code> does) when the page containing it is viewed. For example, <code>{{msgnw:Template:Thankyou}}</code> displays:</li></ul> <p><noinclude> <languages/> </noinclude> '''A little thank you...''' for {{{reason|{{{1}}}}}}. hugs, {{{signature|{{{2}}}}}} <noinclude> [[Category:Template examples{{#translation:}}|{{PAGENAME}}]] </noinclude> </p><p>In fact, an ordinary wiki page can also be used as a template, simply by specifying the namespace it resides in, so: </p> <ul><li><code>{{Template:Pagename}}</code> transcludes the page titled Template:Pagename (equivalent to <code>{{Pagename}}</code>)</li> <li><code>{{Talk:Pagename}}</code> transcludes the page titled Talk:Pagename</li> <li><code>{{:Pagename}}</code> transcludes the page titled Pagename (i.e., in the main namespace) <ul><li><code>{{subst::Pagename}}</code> substitutes the contents of the page titled Pagename</li></ul></li></ul> <p>If the specified namespace doesn't exist, the full title is assumed to be a template: </p> <ul><li><code>{{Foo:Bar}}</code> transcludes Template:Foo:Bar</li></ul> <p>Regardless of what syntax is used, the name of the template can be relative to the current page For example, if <code>{{/bar}}</code> is called on page foo, it will transclude the page foo/bar. </p><p>It can also be generated dynamically. For example, <code>{{ {{foo}} }}</code> calls Template:foo and interprets the result as the name of another template to call. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Parameters" data-mw-thread-id="h-Parameters"><span data-mw-comment-start="" id="h-Parameters"></span>Parameters<span data-mw-comment-end="h-Parameters"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parameters","replies":["h-Anonymous_parameters-Parameters","h-Numbered_parameters-Parameters","h-Named_parameters-Parameters","h-Mixing_named_and_unnamed_parameters-Parameters","h-Default_values-Parameters","h-Passing_parameters_to_other_templates-Parameters","h-Empty_vs_undefined_parameters-Parameters","h-Using_equals_signs_in_unnamed_parameters-Parameters","h-Handling_unmatched_curly_and_square_brackets-Parameters","h-Using_pipes_in_parameter_values-Parameters","h-Formatting_template_calls_using_extra_parameters-Parameters"]}}--></div> <p>To enrich the mechanism of transclusion, MediaWiki allows parameters to be passed to a template when it is transcluded. Parameters allow the template to produce different contents or have different behaviors. </p><p>Suppose you wish to insert a little thank you note in the <a href="/wiki/Special:MyLanguage/Help:Talk_pages" title="Special:MyLanguage/Help:Talk pages">talk page</a> of other users, such as: </p><p><br/> <b>A little thank you...</b> for all your effort. hugs, Me </p><p><br/> The thank you note will have a reason (in this case, "all your effort") and a signature ("Me"). Your objective is for any user to be able to thank any other user, for any reason whatsoever. </p><p>So that the note will look similar everywhere it is used, you can define a template called <a href="/wiki/Special:MyLanguage/Template:Thankyou" title="Special:MyLanguage/Template:Thankyou">Template:Thankyou</a><span style="display:none"><a href="/wiki/Template:Thankyou" title="Template:Thankyou"> </a></span>, for example. Although the note should look similar whenever a user thanks another user, its specific contents (i.e., the reason and the signature) will be different. For that reason, you should pass them as parameters. If we ignore the remaining elements to format the box and place the image, the core content of the template will be this: </p> <div class="mw-highlight mw-highlight-lang-moin mw-content-ltr" dir="ltr"><pre><span></span><span class="c">'''</span>A little thank you...<span class="c">'''</span> for <span class="nb">{{{</span><span class="cp">1</span><span class="nb">}}}</span>. hugs, <span class="nb">{{{</span><span class="cp">2</span><span class="nb">}}}</span> </pre></div> <p>Notice the use of <code>{{{1}}}</code> and <code>{{{2}}}</code>. This is the way to identify, within templates, the parameters that will be passed in when the template is used. Note that, within the template, each parameter is surrounded by <b>three</b> braces: <code>{{{ }}}</code>. This is different from normal template name usage. </p><p>When using the template on a page, you fill in the parameter values, separated by a "pipe" character (<code>|</code>). MediaWiki allows parameters to be passed to the template in three ways: Anonymously, Numbered, and Named. </p> <div class="mw-heading mw-heading3"><h3 id="Anonymous_parameters" data-mw-thread-id="h-Anonymous_parameters-Parameters"><span data-mw-comment-start="" id="h-Anonymous_parameters-Parameters"></span>Anonymous parameters<span data-mw-comment-end="h-Anonymous_parameters-Parameters"></span></h3></div> <p>To pass in anonymous parameters, list the values of those parameters sequentially: </p> <pre>{{Thankyou|all your effort|Me}} </pre> <p>In this case, the <code>{{Thankyou}}</code> template receives parameters <code>{{{1}}}=all your effort</code> and <code>{{{2}}}=Me</code>, producing: </p><p><br/> <b>A little thank you...</b> for all your effort. hugs, Me </p><p><br/> The order in which anonymous parameters are passed in is crucial to its behavior. Reversing the order of the parameters, like so: </p> <pre>{{Thankyou|Me|all your effort}} </pre> <p>would produce this result: </p><p><br/> <b>A little thank you...</b> for Me. hugs, all your effort </p><p><br/> </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-info">Identifying parameters by order (with <code>{{{1}}}</code>, etc.) works <i>only</i> with anonymous parameters. Any parameters identified by name, as shown below, will not be accessible to the template using ordinal numbers.</div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">If an equal sign appears inside the argument to an anonymous template parameter, that parameter may be misinterpreted as a <a href="#Named_parameters">named parameter</a> (which is explained below in this document) treating the text before the equal sign as the parameter name and the text after it as the argument value. This is a common problem when you need to include an external link, or an HTML element with attributes (see <a href="https://phabricator.wikimedia.org/T16235" class="extiw" title="phabricator:T16235">task T16235</a>). The workaround is to use named parameters instead, or even numbered parameters as explained in the following section.</div> <div class="mw-heading mw-heading3"><h3 id="Numbered_parameters" data-mw-thread-id="h-Numbered_parameters-Parameters"><span data-mw-comment-start="" id="h-Numbered_parameters-Parameters"></span>Numbered parameters<span data-mw-comment-end="h-Numbered_parameters-Parameters"></span></h3></div> <p>To pass in parameters by number, identify each parameter when passing it: </p> <pre>{{Thankyou|2=Me|1=your friendship}} </pre> <p>This time, template <code>{{Thankyou}}</code> receives parameters <code>{{{1}}}=your friendship</code> and <code>{{{2}}}=Me</code>, though they have been supplied in inverse order, and produces: </p><p><br/> <b>A little thank you...</b> for your friendship. hugs, Me </p><p><br/> </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">This may also be useful when any of the numbered parameters contains an "=" sign.</div> <dl><dt>Examples</dt> <dd></dd></dl> <pre>{{Thankyou|1=adding “=”|2=Me}}</pre> <p>produces: </p><p><br/> <b>A little thank you...</b> for adding “=”. hugs, Me </p> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"><tbody><tr><td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"/></span></span></span> <b>Warning:</b> </td><td style="padding-left: 0.5em vertical-align: top;">This also requires numbering each other parameter.</td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Named_parameters" data-mw-thread-id="h-Named_parameters-Parameters"><span data-mw-comment-start="" id="h-Named_parameters-Parameters"></span>Named parameters<span data-mw-comment-end="h-Named_parameters-Parameters"></span></h3></div> <p>The third way of passing parameters is by name instead of numbers. In this case, the template contents would be changed to: </p> <pre>'''A little thank you...''' for {{{reason}}}. hugs, {{{signature}}}</pre> <p>Within the template, we use <code>{{{reason}}}</code> and <code>{{{signature}}}</code> to identify each parameter, instead of a number. To pass these parameters by name, identify each parameter when passing it: </p> <pre>{{Thankyou|signature=Me|reason=being who you are}} </pre> <p>In this case, template <code>{{Thankyou}}</code> receives parameters <code>{{{reason}}}=being who you are</code> and <code>{{{signature}}}=Me</code> and produces: </p><p><br/> <b>A little thank you...</b> for being who you are. hugs, Me </p><p><br/> Named parameters are <b>case-sensitive</b>, so: </p> <pre>{{Thankyou|signature=Me|Reason=being who you are|reason=being case-sensitive}}</pre> <p>produces: </p><p><br/> <b>A little thank you...</b> for being case-sensitive. hugs, Me </p><p><br/> The advantage of using named parameters in your template, besides also being flexible in the order parameters can be passed, is that it makes the template code much easier to understand if there are many parameters. </p><p>Spaces and newlines are automatically stripped from the start and end of named parameter names and values, but are preserved in unnamed parameters. </p> <div class="mw-heading mw-heading3"><h3 id="Mixing_named_and_unnamed_parameters" data-mw-thread-id="h-Mixing_named_and_unnamed_parameters-Parameters"><span data-mw-comment-start="" id="h-Mixing_named_and_unnamed_parameters-Parameters"></span>Mixing named and unnamed parameters<span data-mw-comment-end="h-Mixing_named_and_unnamed_parameters-Parameters"></span></h3></div> <p>If the template supports it, both kinds of parameters can be used in one call. </p><p>For example, <code>{{Thankyou|supporting both parameter types|signature=Me}}</code> results in: </p><p><br/> <b>A little thank you...</b> for supporting both parameter types. hugs, Me </p><p><br/> Be careful when doing this, because it can result in conterintuitive results as unnamed parameter counts are based only on the unnamed parameters, not the named parameters. For example, <code>{{Thankyou|Me|reason=supporting both parameter types}}</code> results in: </p><p><br/> <b>A little thank you...</b> for supporting both parameter types. hugs, {{{2}}} </p><p><br/> The template is coded to prefer the named parameter for the reason over the unnamed parameter, resulting in the "Me" being lost and no signature being given. This results in a default value of {{{2}}} being shown, as explained below. </p> <div class="mw-heading mw-heading3"><h3 id="Default_values" data-mw-thread-id="h-Default_values-Parameters"><span data-mw-comment-start="" id="h-Default_values-Parameters"></span>Default values<span data-mw-comment-end="h-Default_values-Parameters"></span></h3></div> <style data-mw-deduplicate="TemplateStyles:r6353907">.mw-parser-output .hatnote{font-style:italic;padding-bottom:0.4em;margin-bottom:0.4em;border-bottom:1px solid #ccc}.mw-parser-output .hatnote.no-border{border-bottom:none}</style><div role="note" class="hatnote mw-tpl-seealso">See also: <a href="/wiki/Manual:Advanced_templates#Use_of_parameter_default" title="Manual:Advanced templates">Manual:Advanced templates#Use of parameter default</a></div> <p>If you transclude a template that expects parameters, but do not provide their arguments, in this way: </p> <pre>{{Thankyou}} </pre> <p>in the numbered parameters example above you would get the following: </p><p><br/> <b>A little thank you...</b> for {{{1}}}. hugs, {{{2}}} </p><p><br/> Since no arguments were passed in, the template presents the parameters themselves, instead of their respective values. In these cases, it may be useful to define <i>default</i> values for the parameters, i.e. values that will be used if no value is passed in. For example, if the template contents are changed to: </p> <div class="mw-highlight mw-highlight-lang-moin mw-content-ltr" dir="ltr"><pre><span></span><span class="c">'''</span>A little thank you...<span class="c">'''</span> for <span class="nb">{{{</span><span class="cp">reason|everything</span><span class="nb">}}}</span>. hugs, <span class="nb">{{{</span><span class="cp">signature|Me</span><span class="nb">}}}</span> </pre></div> <p>then <code>{{{reason|everything}}}</code> defines that if no argument is provided for parameter <code>{{{reason}}}</code>, then the value <code>everything</code> will be used. Similarly, <code>{{{signature|Me}}}</code>, defaults parameter <code>{{{signature}}}</code> to value <code>Me</code>. Now, transcluding the template again without passing any argument results in the following: </p><p><br/> <b>A little thank you...</b> for everything. hugs, Me </p><p><br/> </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">The value of a parameter can be an empty string. For example, in <code>{{foo|bar=}}</code> or <code>{{foo|bar=|baz=qux}}</code>, the <code>foo</code> template considers the <code>bar</code> parameter to be <code>""</code>. This is different from omitting the parameter altogether, which leaves it undefined and triggers the default value mechanism described above.</div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">If you need to treat an empty string the same way as a missing parameter, you can use a conditional operator through an extension like <a href="/wiki/Extension:ParserFunctions" title="Extension:ParserFunctions">ParserFunctions</a>. For instance, <code>{{#if:{{{1|}}}|{{{1|}}}|undefined}}</code> returns undefined if the parameter is either undefined or empty, while <code>{{{1|undefined}}}</code> does so only if the parameter is undefined.</div> <p>Often default values are used to specify alternate names of parameters. For example, if you have <code>{{{a|{{{b|}}} }}}</code>, the template will first look for a parameter named "a". If it is not set, it will use the parameter named "b". If neither "a" nor "b" is set, it will output nothing. </p> <div class="mw-heading mw-heading3"><h3 id="Passing_parameters_to_other_templates" data-mw-thread-id="h-Passing_parameters_to_other_templates-Parameters"><span data-mw-comment-start="" id="h-Passing_parameters_to_other_templates-Parameters"></span>Passing parameters to other templates<span data-mw-comment-end="h-Passing_parameters_to_other_templates-Parameters"></span></h3></div> <p>If raw parameter syntax is generated by the above template call, and then passed through to another template, it is <b>not</b> interpreted as a parameter. This means that {{<a href="/wiki/Special:MyLanguage/Template:thankyou2" title="Special:MyLanguage/Template:thankyou2">Thankyou2</a><span style="display:none"><a href="/wiki/Template:Thankyou2" title="Template:Thankyou2"> </a></span>}}, which just calls {{<a href="/wiki/Special:MyLanguage/Template:thankyou" title="Special:MyLanguage/Template:thankyou">Thankyou</a><span style="display:none"><a href="/wiki/Template:Thankyou" title="Template:Thankyou"> </a></span>}} with no parameters, does not work: <style data-mw-deduplicate="TemplateStyles:r4719022">.mw-parser-output .monospaced{font-family:monospace,monospace}</style><span class="monospaced">{{<a href="/wiki/Template:Thankyou2" title="Template:Thankyou2">thankyou2</a>|everything|me}}</span> -> <b>A little thank you...</b> for {{{1}}}. hugs, {{{2}}} . </p><p>You instead need to explicitly pass the parameter to the other template, i.e if {{<a href="/wiki/Special:MyLanguage/Template:thankyou3" title="Special:MyLanguage/Template:thankyou3">Thankyou3</a><span style="display:none"><a href="/wiki/Template:Thankyou3" title="Template:Thankyou3"> </a></span>}} contains </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">thankyou</span><span class="p">|{{{</span><span class="nv">1</span><span class="p">}}}|{{{</span><span class="nv">2</span><span class="p">}}}}}</span>} </pre></div> <p>then <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4719022"><span class="monospaced">{{<a href="/wiki/Template:Thankyou3" title="Template:Thankyou3">thankyou3</a>|everything|me}}</span> -> <b>A little thank you...</b> for everything. hugs, me } works properly. </p><p>This example does not <a href="#Empty_vs_undefined_parameters">preserve emptiness vs. undefinedness in parameter values</a> - you would need more complicated syntax if you wanted to do that. </p> <div class="mw-heading mw-heading3"><h3 id="Empty_vs_undefined_parameters" data-mw-thread-id="h-Empty_vs_undefined_parameters-Parameters"><span data-mw-comment-start="" id="h-Empty_vs_undefined_parameters-Parameters"></span>Empty vs undefined parameters<span data-mw-comment-end="h-Empty_vs_undefined_parameters-Parameters"></span></h3></div> <p>The <code><span style="color:red">{{</span>t2demo<span style="color:red">||</span> <span style="color:green">a</span> <span style="color:red">}}</span></code> (refer to {{<a href="/wiki/Special:MyLanguage/Template:t2demo" title="Special:MyLanguage/Template:t2demo">T2demo</a><span style="display:none"><a href="/wiki/Template:T2demo" title="Template:T2demo"> </a></span>}} ), with a double pipe, sets the first parameter to an <b>empty</b> string instead of leaving it undefined. It produces the output <code>start--middle- a -end</code>, similar to how <code><span style="color:red">{{</span>t2demo<span style="color:red">|</span>1=<span style="color:red">|</span>2= <span style="color:green">a</span> <span style="color:red">}}</span></code> results in <code>start--middle-<font color="green" style="color:green"> a </font>-end</code>. On the other hand, explicitly setting the parameter "2" to "a," results in the first unnamed parameter being left <b>undefined</b>: </p><p><span style="color:red">{{</span>t2demo<span style="color:red">|</span>2= <span style="color:green">a</span> <span style="color:red">}}</span> results in start-{{{1}}}-middle-<font color="green" style="color:green"> a </font>-end </p><p>If the second parameter should not be trimmed, it must be unnamed. </p><p>Therefore, you can assign an empty string to the first parameter, but you cannot leave it undefined. </p> <div class="mw-heading mw-heading4"><h4 id="Making_emptiness_and_undefinedness_equivalent" data-mw-thread-id="h-Making_emptiness_and_undefinedness_equivalent-Empty_vs_undefined_parameters"><span data-mw-comment-start="" id="h-Making_emptiness_and_undefinedness_equivalent-Empty_vs_undefined_parameters"></span>Making emptiness and undefinedness equivalent<span data-mw-comment-end="h-Making_emptiness_and_undefinedness_equivalent-Empty_vs_undefined_parameters"></span></h4></div> <p>Good template coding practices result in passing an empty string to a parameter working the same as not assigning any value. This makes things easier and more consistent. </p><p>For example, using <code>p=</code> can show that a template has a parameter "p" that doesn't have a value yet. </p><p>To make an empty string and an undefined value equivalent, use the following approaches: </p> <ul><li>Use <code>{{{p|}}}</code> exclusively instead of <code>{{{p}}}</code> or <code>q</code> where "q" is a non-empty value.</li> <li>Use conditional checks like <code>{{#if:{{{p|}}}|..{{{p}}}..|..}}</code>, to ensure <code>{{{p}}}</code> is only used when it has a value.</li></ul> <p>If for some reason you want to treat undefined parameters differently from empty parameters or any other possible value you can compare the same parameter twice with different defaults, i.e <code>{{#ifeq:{{{foo|bar}}}|{{{foo|baz}}}|parameter is defined|parameter is undefined}}</code>. </p> <div class="mw-heading mw-heading3"><h3 id="Using_equals_signs_in_unnamed_parameters" data-mw-thread-id="h-Using_equals_signs_in_unnamed_parameters-Parameters"><span data-mw-comment-start="" id="h-Using_equals_signs_in_unnamed_parameters-Parameters"></span>Using equals signs in unnamed parameters<span data-mw-comment-end="h-Using_equals_signs_in_unnamed_parameters-Parameters"></span></h3></div> <p>Unnamed parameters can include equals signs, but this must be done indirectly. Here are some methods using <a href="/wiki/Template:T1demo" title="Template:T1demo">template:T1demo</a>: </p> <dl><dt>Default Value for Undefined Parameter</dt></dl> <p>Assign a default value to an undefined parameter: </p> <pre><code>{{T1demo|{{{1| a=b }}}}}</code> </pre> <p>This renders as: <code>start a=b end</code>. </p> <dl><dt>Using the <code>{{=}}</code> parser function</dt></dl> <p>Use a parser function that safely includes an equals sign: </p> <pre><code>{{T1demo| a{{=}}b }}</code> </pre> <p>This renders as: <code>start a=b end</code>. </p> <dl><dt>HTML Entities</dt></dl> <p>Replace the equals sign with an HTML entity for display: </p> <pre><code>{{T1demo| a=b }}</code> </pre> <p>This renders as: <code>start a=b end</code>. </p><p>This renders correctly without affecting the other parameters. </p> <div class="mw-heading mw-heading3"><h3 id="Handling_unmatched_curly_and_square_brackets" data-mw-thread-id="h-Handling_unmatched_curly_and_square_brackets-Parameters"><span data-mw-comment-start="" id="h-Handling_unmatched_curly_and_square_brackets-Parameters"></span>Handling unmatched curly and square brackets<span data-mw-comment-end="h-Handling_unmatched_curly_and_square_brackets-Parameters"></span></h3></div> <p>Unmatched curly brackets (<code>{{</code>, <code>}}</code>) or square brackets (<code>[[</code>, <code>]]</code>) must be inside nowiki tags or use HTML entities: </p> <ul><li>Rendering curly brackets have two options: <ul><li>Use <code><nowiki>{{</nowiki></code> or <code>&#123;</code> for <code>{</code></li> <li>Use <code><nowiki>}}</nowiki></code> or <code>&#125;</code> for <code>}</code>.</li></ul></li> <li>Use <code>&#91;</code> for <code>[</code> and <code>&#93;</code> for <code>]</code>.</li></ul> <p>Below are some examples: </p> <dl><dt>Unmatched curly brackets</dt></dl> <pre><code>{{T1demo| <nowiki>{{</nowiki>content<nowiki>}}</nowiki> }}</code> </pre> <p>This correctly renders the braces without breaking the template. </p> <dl><dt>Unmatched square brackets</dt></dl> <pre><code>{{T1demo| text [link] more text }}</code> </pre> <p>This correctly renders the braces without breaking the template. </p><p>This renders as: <code>start text [link] more text end</code> </p><p>Unmatched pairs not placed in nowiki tags either prevent template expansion or are taken as closing braces for the template call. </p><p>Below are some examples: </p> <pre><code>{{T1demo|abc]]def[[ghi}}</code> </pre> <p>This will not expand correctly because of unmatched brackets. </p><p>The correct use: </p> <pre><code>{{T1demo|abc<nowiki>]]</nowiki>def<nowiki>[[</nowiki>ghi}}</code> </pre> <p>This renders as: <code>startabc]]def[[ghiend</code> </p> <div class="mw-heading mw-heading4"><h4 id="Template-generated_brackets" data-mw-thread-id="h-Template-generated_brackets-Handling_unmatched_curly_and_square_brackets"><span data-mw-comment-start="" id="h-Template-generated_brackets-Handling_unmatched_curly_and_square_brackets"></span>Template-generated brackets<span data-mw-comment-end="h-Template-generated_brackets-Handling_unmatched_curly_and_square_brackets"></span></h4></div> <p>An alternate technique for passing arguments with unmatched brackets is to wrap them in another template. In that situation, (which exists with {{<a href="/wiki/Special:MyLanguage/Template:((" title="Special:MyLanguage/Template:((">((</a><span style="display:none"><a href="/wiki/Template:((" title="Template:(("> </a></span>}} and {{<a href="/wiki/Special:MyLanguage/Template:))" title="Special:MyLanguage/Template:))">))</a><span style="display:none"><a href="/wiki/Template:))" title="Template:))"> </a></span>}}) on this wiki), the unmatched brackets will be rendered literally, and not decoded as another template call. For example: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">t1demo</span><span class="p">|{{</span><span class="nt">((</span><span class="p">}}</span>t1demo<span class="p">{{</span><span class="nt">))</span><span class="p">}}}}</span> </pre></div> <p>results in: start{{t1demo}}end </p><p>When <a href="/wiki/Help:Substitution" title="Help:Substitution">substituting</a> a template, template inclusions are parsed once when the subst happens (with the same caveats explained above) and then a second time when rendering the resulting wikitext. For example: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nn">subst</span><span class="p">:</span><span class="nt">((</span><span class="p">}}</span>t1demo|foo}} </pre></div> <p>will expand on save to: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">((</span><span class="p">}}</span>t1demo|foo}} </pre></div> <p>which will then render as: </p> <pre>startfooend </pre> <p>If the wikitext generated via the first subst itself includes "subst:" syntax it will not be processed on the same save, but may be on the next save. This technique may be used to implement <a href="/wiki/Manual:Recursive_conversion_of_wikitext" title="Manual:Recursive conversion of wikitext">recursive substitutions</a> that take multiple saves to evaluate. </p> <div class="mw-heading mw-heading3"><h3 id="Using_pipes_in_parameter_values" data-mw-thread-id="h-Using_pipes_in_parameter_values-Parameters"><span data-mw-comment-start="" id="h-Using_pipes_in_parameter_values-Parameters"></span>Using pipes in parameter values<span data-mw-comment-end="h-Using_pipes_in_parameter_values-Parameters"></span></h3></div> <p>A parameter value cannot contain a pipe character (|), because it would be interpreted as the end of that parameter and the start of the next parameter. This can be worked around by using the <a href="/wiki/Special:MyLanguage/Help:Parser_function" title="Special:MyLanguage/Help:Parser function">parser function</a><span style="display:none"><a href="/wiki/Help:Parser_function" class="mw-redirect" title="Help:Parser function"> </a></span> <code>{{!}}</code>, or the HTML entity &124;. The two methods of doing this have slightly different behavior, which can be relevant in some corner cases like when a template is producing <a href="/wiki/Help:Tables" title="Help:Tables">wikitable</a> syntax. </p><p>Example: <code>{{T1demo|abc|def}}</code> produces: startabcend </p><p>The "def" doesn't display because it is treated as part of another unnamed parameter, which the template does not use. </p><p><code>{{T1demo|abc{{!}}def}}</code> produces: startabc|defend </p><p>The "def" displays properly. </p><p><code>{{T1demo|abc|def}}</code> produces: startabc|defend </p><p>The "def" displays properly again. </p> <div class="mw-heading mw-heading3"><h3 id="Formatting_template_calls_using_extra_parameters" data-mw-thread-id="h-Formatting_template_calls_using_extra_parameters-Parameters"><span data-mw-comment-start="" id="h-Formatting_template_calls_using_extra_parameters-Parameters"></span>Formatting template calls using extra parameters<span data-mw-comment-end="h-Formatting_template_calls_using_extra_parameters-Parameters"></span></h3></div> <p>Since templates ignore parameters they are passed but do not handle specifically, they can be used as a way of a adding extra whitespace or unused content to the template call. </p><p>For example: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">template name</span><span class="p">|</span>foo<span class="p">|</span>bar<span class="p">|</span>baz<span class="p">|</span>mumble<span class="p">|</span>quux<span class="p">}}</span> </pre></div> <p>is equivalent to, assuming the template doesn't recognize SPACEN as a parameter name: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">template name</span><span class="p">|</span><span class="nl">SPACE1</span><span class="o">=</span> <span class="p">|</span>foo<span class="p">|</span><span class="nl">SPACE2</span><span class="o">=</span> <span class="p">|</span>bar<span class="p">|</span><span class="nl">SPACE3</span><span class="o">=</span>Random stuff <span class="p">|</span>baz<span class="p">|</span><span class="nl">SPACE4</span><span class="o">=</span> <span class="p">|</span>mumble<span class="p">|</span><span class="nl">SPACE5</span><span class="o">=</span> quux <span class="p">}}</span> </pre></div> <p>It is also possible to use the same name for each spacer (often the empty string), but this will populate <a href="/wiki/Category:Pages_using_duplicate_arguments_in_template_calls" title="Category:Pages using duplicate arguments in template calls">Category:Pages using duplicate arguments in template calls</a>, which many wikis prefer to keep empty to catch instances of user error. </p><p>This can be used to make the template render in a way similar to its output, like showing each row of <a href="https://en.wikipedia.org/wiki/Template:Chess_position" class="extiw" title="w:Template:Chess position">w:Template:Chess position</a> on its own like to make the wikitext also look like a chessboard. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Tracking_parameter_usage" data-mw-thread-id="h-Tracking_parameter_usage"><span data-mw-comment-start="" id="h-Tracking_parameter_usage"></span>Tracking parameter usage<span data-mw-comment-end="h-Tracking_parameter_usage"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Tracking_parameter_usage","replies":[]}}--></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6353907"><div role="note" class="hatnote mw-tpl-seealso">See also: <a href="/wiki/Help:Tracking_categories" title="Help:Tracking categories">Help:Tracking categories</a></div> <p><br/> It may be wise for a template to add a link or category to a page if a certain parameter or combination of parameters is used, to make if possible to easily determine what pages are using a given parameter, and thus what the impacts of changing that parameter in the template would be. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Evaluation_process" data-mw-thread-id="h-Evaluation_process"><span data-mw-comment-start="" id="h-Evaluation_process"></span>Evaluation process<span data-mw-comment-end="h-Evaluation_process"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Evaluation_process","replies":["h-Recursion_in_templates-Evaluation_process","h-Tables_in_parameters-Evaluation_process"]}}--></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">This is an advanced topic which you can skip unless you need it.</div> <p>Generally speaking, template parameters are substituted into the template after tokenization, but as is. They are not evaluated until they are used. </p><p>This has a few consequences: </p> <ol><li>If you have a <code>Template:Start</code> containing <code>{{mytemplate</code>, and a <code>Template:End</code> containing <code>|foo=bar}}</code>, and put <code>{{start}}{{end}}</code> on a page, <i>mytemplate</i> isn't transcluded, because tokens like "|" cannot be added by a template and keep their special meaning in templates. You can still use templates to control the name of a parameter or template, but you cannot split a template call amongst multiple templates.</li> <li><b>Dead-code elimination:</b> If you make a template call like <code>{{foo|{{DISPLAYTITLE:Bar}} }}</code>, and <code>Template:Foo</code> does not contain {{{1}}}, then the <code>DISPLAYTITLE</code> is not used, since it is only evaluated when needed, and there is no parameter to substitute it into, so it is never evaluated. This usually comes into play when using <a href="/wiki/Special:MyLanguage/Extension:ParserFunctions" title="Special:MyLanguage/Extension:ParserFunctions">Extension:ParserFunctions</a><span style="display:none"><a href="/wiki/Extension:ParserFunctions" title="Extension:ParserFunctions"> </a></span>, and can be especially noticed when used in combination with the <code>int:</code> magic word that varies by user language. This isn't perfect, and in some cases even if the result of expanding a template is not used (because it is part of an if statement condition, for example), the process of evaluating it can still have <a href="https://en.wikipedia.org/wiki/Side_effect_(computer_science)" class="extiw" title="w:Side effect (computer science)">side effects</a>. For example, any <a href="/wiki/Special:MyLanguage/Help:Links" title="Special:MyLanguage/Help:Links">links</a><span style="display:none"><a href="/wiki/Help:Links" title="Help:Links"> </a></span> produced or other templates used will still be added to <a href="/wiki/Special:WhatLinksHere" title="Special:WhatLinksHere">Special:WhatLinksHere</a> even if they are not displayed.</li></ol> <p><br/> Template parameters are <a href="https://en.wikipedia.org/wiki/pass_by_value" class="extiw" title="w:pass by value">pass by value</a>, which means a template cannot modify its arguments. Parameters are treated as <a href="https://en.wikipedia.org/wiki/Associative_array" class="extiw" title="w:Associative array">associative array</a>, and parameter names are evaluated before parameter values. If the same parameter name is given more than once (either as named or unnamed), only the last instace is used, and the page is added to <a href="/wiki/Category:Pages_using_duplicate_arguments_in_template_calls" title="Category:Pages using duplicate arguments in template calls">Category:Pages using duplicate arguments in template calls</a>. </p><p>Template calls starting with the magic word <code>subst:</code> or <code>safesubst:</code> are evaluated in a separate first pass that only happens at save time, along with ~~~~ and links using the <a href="/wiki/Special:MyLanguage/pipe_trick" title="Special:MyLanguage/pipe trick">pipe trick</a>. If they cannot be evaluated during the first pass, <code>subst:</code> calls are ignored, and <code>safesubst:</code> are treated as if a normal template. </p><p>Many but not all parser functions, parser tags and trancluded special pages are not directly included like templates but instead are replaced by a "strip marker". This means you cannot manipulate the results with parser functions like padleft: or similar functions from extensions, as they see the strip marker instead of the result of the parser function. </p> <div class="mw-heading mw-heading3"><h3 id="Recursion_in_templates" data-mw-thread-id="h-Recursion_in_templates-Evaluation_process"><span data-mw-comment-start="" id="h-Recursion_in_templates-Evaluation_process"></span>Recursion in templates<span data-mw-comment-end="h-Recursion_in_templates-Evaluation_process"></span></h3></div> <p>Including a template in itself won't throw MediaWiki into infinite recursion. MediaWiki will stop the recursion with the template's name in bold. For example, if the content of Template:Aaaa is <code>a {{Aaaa}} z</code>, it'll display "a a <span class="error">Template loop detected: <b>Template:Aaaa</b></span> z z". </p><p>This safeguard precludes a potentially useful template idiom where a template self-normalizes its own calling arguments. In this forbidden example <code>template:d</code> can either be called <code>{{d|20200311}}</code> or <code>{{d|y=2020|m=3|d=11}}</code>. If called in the first manner, it recurses into itself with the second argument structure (obtained using string parser functions), which then follows a unified processing path. </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nf">#if</span><span class="p">:{{{</span><span class="nv">1</span><span class="p">|}}}|{{</span><span class="nt">d</span><span class="p">|</span><span class="nl">y</span><span class="o">=</span><span class="p">{{</span><span class="nf">#sub</span><span class="p">:{{{</span><span class="nv">1</span><span class="p">}}}|</span>0<span class="p">|</span>4<span class="p">}}|</span><span class="nl">m</span><span class="o">=</span><span class="p">{{</span><span class="nf">#sub</span><span class="p">:{{{</span><span class="nv">1</span><span class="p">}}}|</span>4<span class="p">|</span>2<span class="p">}}|</span><span class="nl">d</span><span class="o">=</span><span class="p">{{</span><span class="nf">#sub</span><span class="p">:{{{</span><span class="nv">1</span><span class="p">}}}|</span>6<span class="p">|</span>2<span class="p">}}}}|</span><span class="cm"><!-- processing path with arguments y,m,d regardless of original call pattern --></span><span class="p">}}</span> </pre></div> <p>If <code>template:d</code> is modified to recurse into <code>template:d/2</code> and <code>template:d/2</code> is an <i>identical manual copy</i> of <code>template:d</code> this idiom works fine as the self-recursion safeguard operates dynamically and not statically. </p><p>A feasible way for the MediaWiki software to loosen the self-recursion rule would be to require that each recursive call have a distinct argument count from all previous active calls, at most once recursing with the argument count non-decreasing. That would provide a strong guarantee against infinite self-recursion while enabling useful idioms such as the one described here in a flexible manner. </p><p>If the processing path is of low complexity, a simple solution using only one template is to handle each calling convention on a separate if/else branch, duplicating the logic of the processing path within each case. If the processing path is more complex, each call-structure case can delegate to an implementation template with a unified call structure which provides the final template behaviour. </p> <div class="mw-heading mw-heading3"><h3 id="Tables_in_parameters" data-mw-thread-id="h-Tables_in_parameters-Evaluation_process"><span data-mw-comment-start="" id="h-Tables_in_parameters-Evaluation_process"></span>Tables in parameters<span data-mw-comment-end="h-Tables_in_parameters-Evaluation_process"></span></h3></div> <p>Since the pipe character (<code>|</code>) and equality sign (<code>=</code>) have different meanings in template calls and wikitables, in order to use table markup in the value of a template parameter one generally needs to "escape" those characters (i.e., protect them from interpretation as template markup) using special sequences: </p> <ul><li>the built-in <a href="/wiki/Special:MyLanguage/Help:Magic_words" title="Special:MyLanguage/Help:Magic words">magic word</a><span style="display:none"><a href="/wiki/Help:Magic_words" title="Help:Magic words"> </a></span> <code>{{!}}</code> provides an "escaped" version of <code>|</code> since MediaWiki 1.24</li> <li>the built-in magic word <code>{{=}}</code> provides an "escaped" version of <code>=</code> since MediaWiki 1.39</li></ul> <p>Before the introduction of these magic words, many wikis used templates to accomplish the same things. On such a wiki, the magic words take precendence over the same-named templates. </p> <div class="mw-heading mw-heading4"><h4 id="Example_table" data-mw-thread-id="h-Example_table-Tables_in_parameters"><span data-mw-comment-start="" id="h-Example_table-Tables_in_parameters"></span>Example table<span data-mw-comment-end="h-Example_table-Tables_in_parameters"></span></h4></div> <table class="wikitable"> <tbody><tr> <th>A</th> <th>B</th> <th>C </th></tr> <tr> <td>A1</td> <td>B1</td> <td>C1 </td></tr> <tr> <td>A2</td> <td>B2</td> <td>C1 </td></tr></tbody></table> <p><b>Table code:</b> </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{|</span><span class="w"> </span><span class="na">class</span><span class="o">=</span><span class="s">wikitable</span> <span class="p">!</span><span class="gu">A</span><span class="p">!!</span><span class="gu">B</span><span class="p">!!</span><span class="gu">C</span> <span class="p">|-</span> <span class="p">|</span>A1<span class="p">||</span>B1<span class="p">||</span>C1 <span class="p">|-</span> <span class="p">|</span>A2<span class="p">||</span>B2<span class="p">||</span>C1 <span class="p">|}</span> </pre></div> <p><b>Escaped table code:</b> </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{{</span><span class="nv">!}} class{{=}}wikitable</span> <span class="nv">!A!!B!!C</span> <span class="nv">{{!}}-</span> <span class="nv">{{!}}A1{{!}}{{!}}B1{{!}}{{!}}C1</span> <span class="nv">{{!}}-</span> <span class="nv">{{!}}A2{{!}}{{!}}B2{{!}}{{!}}C2</span> <span class="nv">{{!</span><span class="p">}}}</span> </pre></div> <p>Note that the first left-brace (<code>{</code>) is interpreted as a literal left-brace character because it is immediately followed by the <code>{{!}}</code> magic word. Similarly, the last right-brace (<code>}</code>) is interpreted as a literal right-brace character because it is immediately preceeded by the same magic word. However, in some cases these brace characters do cause problems, so some wikis provide templates for escaping these characters, as well: </p> <ul><li>the template call <code>{{(}}</code> might provide an "escaped" version of <code>{</code></li> <li>the template call <code>{{)}}</code> might provide an "escaped" version of <code>}</code></li></ul> <p>Some wikis go even further and provide other convenience templates like <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4719022"><span class="monospaced">{{<a href="/wiki/Template:(!" title="Template:(!">(!</a>}}</span> (<code>{|</code>), <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4719022"><span class="monospaced">{{<a href="/wiki/Template:!)" title="Template:!)">!)</a>}}</span> (<code>|}</code>), <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4719022"><span class="monospaced">{{<a href="/wiki/Template:!!" title="Template:!!">!!</a>}}</span> (<code>||</code>). On such a wiki, the code can be simplified a bit to this form: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{</span><span class="nt">(!</span><span class="p">}}</span> class<span class="p">{{</span><span class="nf">=</span><span class="p">}}</span>wikitable !A!!B!!C <span class="p">{{</span><span class="nf">!</span><span class="p">}}</span>- <span class="p">{{</span><span class="nf">!</span><span class="p">}}</span>A1<span class="p">{{</span><span class="nt">!!</span><span class="p">}}</span>B1<span class="p">{{</span><span class="nt">!!</span><span class="p">}}</span>C1 <span class="p">{{</span><span class="nf">!</span><span class="p">}}</span>- <span class="p">{{</span><span class="nf">!</span><span class="p">}}</span>A2<span class="p">{{</span><span class="nt">!!</span><span class="p">}}</span>B2<span class="p">{{</span><span class="nt">!!</span><span class="p">}}</span>C2 <span class="p">{{</span><span class="nt">!)</span><span class="p">}}</span> </pre></div> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Controlling_template_inclusion" data-mw-thread-id="h-Controlling_template_inclusion"><span data-mw-comment-start="" id="h-Controlling_template_inclusion"></span>Controlling template inclusion<span data-mw-comment-end="h-Controlling_template_inclusion"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Controlling_template_inclusion","replies":[]}}--></div> <p>By default, a template's content is displayed in its entirety, both when viewed directly and when included in another page. The template's page when viewed directly appears exactly as the template would render without any parameters. If the template requires parameters to function properly, this will result in raw wikitext syntax or errors as a result of them being missing. For example: </p> <ul><li>If a parameter has no default value, it shows as the literal text {{{1}}}, indicating the template needs a parameter.</li> <li>If a parameter has an empty default value (it is written as {{{1|}}}), it displays nothing, which achieves the intended effect but lacks clarity for self-documentation. Using a non-empty default value like <code>{{{1|image}}}</code> could clarify a parameter's role, especially for templates involving images.</li> <li>If a parameter without a default is passed to the <code>#expr</code> parser function, it results in an error message: "Expression error: unrecognized punctuation character '{'."</li> <li>If a template creates a table, it's helpful for the template page to show the table's structure rather than the wikitext used to make it. To do this, the table syntax isn't enclosed in tags, and each table element includes both <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span>...<span class="p"></</span><span class="nt">noinclude</span><span class="p">></span></code> and <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">includeonly</span><span class="p">></span>...<span class="p"></</span><span class="nt">includeonly</span><span class="p">></span></code> parts where needed.</li></ul> <p>However, you can control which parts of a template will be seen and included by the use of the <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span></code>, <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">includeonly</span><span class="p">></span></code> and <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">onlyinclude</span><span class="p">></span></code> tags. </p><p>Anything between <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span></code> and <code class="mw-highlight" style="white-space:nowrap"><span class="p"></</span><span class="nt">noinclude</span><span class="p">></span></code> will be seen only when the template's page is being viewed directly, but not when it is included in another page. This is useful when you want to include text or code in a template that you do not want to propagate to any pages which include it, such as: </p> <ul><li><a href="/wiki/Special:MyLanguage/Help:Categories" title="Special:MyLanguage/Help:Categories">Category</a> links when categorizing the template itself</li> <li><a href="/wiki/Special:MyLanguage/Help:Links#Interlanguage_links" title="Special:MyLanguage/Help:Links">interlanguage links</a> to similar templates in other languages</li> <li>Explanatory text about how to use the template. It's a common pattern on some wikis to use a template like {{<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>}} to transclude the documentation from a subpage of the template. For example, <a href="/wiki/Template:Void" title="Template:Void">Template:Void</a> is documented at <a href="/wiki/Template:Void/doc" title="Template:Void/doc">Template:Void/doc</a>.</li></ul> <p>Likewise, anything between <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">includeonly</span><span class="p">></span></code> and <code class="mw-highlight" style="white-space:nowrap"><span class="p"></</span><span class="nt">includeonly</span><span class="p">></span></code> will be processed and displayed only when the page is being included, but not when the template page is being viewed directly, and is useful in situations such as: </p> <ul><li><a href="/wiki/Special:MyLanguage/Help:Categories" title="Special:MyLanguage/Help:Categories">Categorizing</a> pages which include the template. <b>Note:</b> when changing the categories applied by a template in this fashion, the categorization of the pages which include that template may not be updated until some time later: this is handled by the <a href="/wiki/Special:MyLanguage/Manual:Job_queue" title="Special:MyLanguage/Manual:Job queue">job queue</a><span style="display:none"><a href="/wiki/Manual:Job_queue" title="Manual:Job queue"> </a></span>. To force the re-categorization of a particular page, open that page for editing and save it without changes.</li> <li>Ensuring that the template's code is not executed when viewing the template page itself. Typically this is because it expects parameters, and its execution without parameters has an undesired result.</li></ul> <p>Everything outside <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">noinclude</span><span class="p">></span></code> and <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">includeonly</span><span class="p">></span></code> is processed and displayed normally; that is, both when the template page is being viewed directly and when the template is included in another page. The focus is on what is inside these two tags. </p><p>Everything outside <code class="mw-highlight" style="white-space:nowrap"><span class="p"><</span><span class="nt">onlyinclude</span><span class="p">></span></code> tags is discarded in the transclusion. Even sections tagged includeonly are discarded in the transclusion unless they are also tagged as onlyinclude. The focus is only on what is inside this tag. </p><p>For example, if a page like <a href="/wiki/Help:Templates/onlyinclude_demo" title="Help:Templates/onlyinclude demo">Help:Templates/onlyinclude demo</a> has the wikitext: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span>abc<span class="p"><</span><span class="nt">onlyinclude</span><span class="p">></span>def<span class="p"></</span><span class="nt">onlyinclude</span><span class="p">></span>ghi<span class="p"><</span><span class="nt">includeonly</span><span class="p">></span>jkl<span class="p"></</span><span class="nt">includeonly</span><span class="p">></span> </pre></div> <p>The result of transcluding it is def. </p><p>Nesting of these tags is also possible. </p><p>The three partial transclusion tags enable all possible combinations of what is processed and rendered. Comments also fill a role. Inclusion tags are respected when using <code>{{subst:templatename}}</code>, but they are <b>not</b> respected when using <code>{{msgnw:templatename}}</code> as that displays the raw wikitext without any processing. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Section_transclusion" data-mw-thread-id="h-Section_transclusion"><span data-mw-comment-start="" id="h-Section_transclusion"></span>Section transclusion<span data-mw-comment-end="h-Section_transclusion"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Section_transclusion","replies":[]}}--></div> <p>To transclude different sections of a template on different pages, you can wrap the content in onlyinclude tags and use an if statement on parameters to select which section. </p><p>Consider "Template:Example" with this wikitext: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="gu">== Section 1 ==</span> <span class="p">{{</span><span class="nf">#ifeq</span><span class="p">:{{{</span><span class="nv">1</span><span class="p">|</span>1<span class="p">}}}|</span>1<span class="p">|</span> Content of section one. <span class="p">}}</span> <span class="p">{{</span><span class="nf">#ifeq</span><span class="p">:{{{</span><span class="nv">1</span><span class="p">|</span>2<span class="p">}}}|</span>2<span class="p">|</span> <span class="o">=</span>= Section 2 == Content of section two. <span class="p">}}</span> </pre></div> <p>This will render both sections on the example page itself, and allow other pages to transclude the first section with <code>{{example|1}}</code> and the second section with <code>{{example|2}}</code>. </p><p>Another approach is to use literal parameter syntax instead: </p> <div class="mw-highlight mw-highlight-lang-wikitext mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{{{</span><span class="nv">section1</span><span class="p">|</span> == Section 1 == Content of section one. <span class="p">}}}</span> <span class="p">{{{</span><span class="nv">section2</span><span class="p">|</span> == Section 2 == Content of section two. <span class="p">}}}</span> </pre></div> <p>Transclude the first section with <code>{{example|section2=}}</code> and the second section with <code>{{example|section1=}}</code>. If neither parameter is used, then both sections will display. </p><p>A third approach is to use <a href="/wiki/Extension:Labeled_Section_Transclusion" title="Extension:Labeled Section Transclusion">Labeled Section Transclusion</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Organizing_templates" data-mw-thread-id="h-Organizing_templates"><span data-mw-comment-start="" id="h-Organizing_templates"></span>Organizing templates<span data-mw-comment-end="h-Organizing_templates"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Organizing_templates","replies":[]}}--></div> <p>For templates to be effective, users need to find them, and find out how to use them. </p><p>To find them, users can: </p> <ol><li>Click <b>Special pages</b> > <b>All pages</b></li> <li>In the <b>Namespace:</b> list, choose <b>Template</b> and click <b>Go</b>.</li></ol> <p>To give usage information, include an example like this one on the template page: </p> <pre><noinclude> == Usage == Welcome users: {{Thankyou|reason=your reason|signature=your signature}} </noinclude> </pre> <p>Then, an editor can simply copy and paste the example to use the template. </p><p>While editing a page, a list of all templates used is available under the editing form, in a collapsible section titled "Templates used on this page:" (also named "Templates used in this preview:", or "Templates used in this section:" depending on the context). This list provides a convenient link to the template's page, as well as information about its protection status. Redirected templates are shown in italics, with the redirect target added as a separate list item. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Linking_to_a_template" data-mw-thread-id="h-Linking_to_a_template"><span data-mw-comment-start="" id="h-Linking_to_a_template"></span>Linking to a template<span data-mw-comment-end="h-Linking_to_a_template"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Linking_to_a_template","replies":[]}}--></div> <p>A template page can be linked to like any other wiki page. For example, the link <a href="/wiki/Template:Navbar" title="Template:Navbar">Template:Navbar</a> is generated using the wikicode <code>[[Template:Navbar]]</code>. </p><p>On many wikis, <a href="/wiki/Template:Tl" title="Template:Tl">Template:Tl</a> can be used to provide a link to a template formatted in a way that shows the "double curly-braces" wikicode necessary to transclude the template without actually doing the tranclusion. For example, the code <code>{{tl|Navbar}}</code> may be used to create the link {{<a href="/wiki/Special:MyLanguage/Template:Navbar" title="Special:MyLanguage/Template:Navbar">Navbar</a><span style="display:none"><a href="/wiki/Template:Navbar" title="Template:Navbar"> </a></span>}}. </p><p>This construct is commonly used when referring to templates in template documentation, on help pages, and on talk pages. The same effect can be achieved by using <code>{{[[Template:Navbar|Navbar]]}}</code>, but the <code>{{<a href="/wiki/Special:MyLanguage/Template:tl" title="Special:MyLanguage/Template:tl">Tl</a><span style="display:none"><a href="/wiki/Template:Tl" title="Template:Tl"> </a></span>}}</code> approach involves much less typing. On any given wiki the Tl template, if it exists, may or may not render the text in a "code" element or as monospace type. If not (as on this wiki), another similarly named template may do so. See, for example, the <a href="/wiki/Template:Tl#See_also" title="Template:Tl">"See also" section of our Template:Tl documentation</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Template_naming" data-mw-thread-id="h-Template_naming"><span data-mw-comment-start="" id="h-Template_naming"></span>Template naming<span data-mw-comment-end="h-Template_naming"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template_naming","replies":[]}}--></div> <p>The name of a template is case-sensitive excluding the first character. </p><p>You make <a href="/wiki/Help:Redirect" class="mw-redirect" title="Help:Redirect">redirects</a> for alternate capitalizations. For example, if a template is named "AdminAbbr", you can create a redirect named "Adminabbr". This way, the template can be called with either <code>{{AdminAbbr}}</code> or <code>{{adminabbr}}</code>. If an editor prefers a mix of upper and lower case for clarity, they can use functions like <a href="/wiki/Help:Parser_function#LC" class="mw-redirect" title="Help:Parser function">lc</a> or <a href="/wiki/Help:Parser_function#UC" class="mw-redirect" title="Help:Parser function">uc</a>. For instance, instead of <code>{{CURRENTINTERNETTIME}}</code>, they could use <code>{{ {{uc:CurrentInternetTime}} }}</code> </p><p>Because template names are interpreted in the same way to the names of other pages, underscores are replaced with spaces, and any text after a number sign (what would be a <a href="/wiki/Help:Links#Anchors" title="Help:Links">anchor</a> in a standard link) is ignored. </p><p>An underscore <code>_</code> can be alternative to a blank space. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Possible_uses_of_templates" data-mw-thread-id="h-Possible_uses_of_templates"><span data-mw-comment-start="" id="h-Possible_uses_of_templates"></span>Possible uses of templates<span data-mw-comment-end="h-Possible_uses_of_templates"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Possible_uses_of_templates","replies":[]}}--></div> <p>Templates can be used for any situation in which one wants two or more pages to contain identical or similar content that is edited together rather than independently. They can be used to: </p> <ul><li>Provide structured elements on many pages, like <a href="https://en.wikipedia.org/wiki/WP:Infoboxes" class="extiw" title="w:WP:Infoboxes">infoboxes</a>, <a href="https://en.wikipedia.org/wiki/WP:Template_index" class="extiw" title="w:WP:Template index">maintenance templates</a>, <a href="https://en.wikipedia.org/wiki/Template:navbox" class="extiw" title="w:Template:navbox">navigational boxes</a>, etc.</li> <li>Perform calculations used as a programming tool on various pages, like <a href="https://en.wikipedia.org/wiki/Template:Sum" class="extiw" title="w:Template:Sum">w:Template:Sum</a>.</li> <li><span class="anchor" id="Composite_pages"></span> Build composite pages that display the content of multiple existing pages together, like <a href="https://en.wikipedia.org/wiki/WP:Village_pump_(all)" class="extiw" title="w:WP:Village pump (all)">w:WP:Village pump (all)</a> which includes content from each section of the village pump. The content of these pages can either be shown individually, or together, but the revision history, watchlist, etc. will only pick up changes to the transcluded pages and the raw wikitext of the composite page itself, not implicit changes to the composite page.</li> <li>Share some content between a few related pages. For example, the list at <a href="/wiki/Help:Preferences#Beta_features" title="Help:Preferences">Help:Preferences#Beta features</a> is duplicated at <a href="/wiki/Beta_Features#Current_Beta_Features" title="Beta Features">Beta Features#Current Beta Features</a>. While on MediaWiki.org that is built using <a href="/wiki/Extension:LabeledSectionTransclusion" class="mw-redirect" title="Extension:LabeledSectionTransclusion">Extension:LabeledSectionTransclusion</a> instead, it could have been done using a template.</li> <li>Store content referenced multiple times on the same page, so it only has to be written and calculated once. For example <a href="https://en.wikipedia.org/wiki/Template:Cite_Monumentenregister/URL" class="extiw" title="w:Template:Cite Monumentenregister/URL">w:Template:Cite Monumentenregister/URL</a> is called twice by <a href="https://en.wikipedia.org/wiki/Template:Cite_Monumentenregister" class="extiw" title="w:Template:Cite Monumentenregister">w:Template:Cite Monumentenregister</a> in two different places, and using another template means the URL pattern only has to be written once in the base template.</li> <li>Use templates as a programming element to generate a loop: if Template:A calls Template:B 10 times with different parameters, then that crudely simulates a for loop. If Template:B calls Template:C 10 times, then you have a nested loop of 100 calls of Template:C. But keep in mind that it is easy to run into the <a href="/wiki/Manual:Template_limits" title="Manual:Template limits">template limits</a> when using templates as advanced programming constructs, and using <a href="/wiki/Extension:Scribunto" title="Extension:Scribunto">Scribunto</a> is generally clearer and easier to follow.</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Copying_from_one_wiki_to_another" data-mw-thread-id="h-Copying_from_one_wiki_to_another"><span data-mw-comment-start="" id="h-Copying_from_one_wiki_to_another"></span>Copying from one wiki to another<span data-mw-comment-end="h-Copying_from_one_wiki_to_another"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Copying_from_one_wiki_to_another","replies":["h-MediaWiki_code-Copying_from_one_wiki_to_another","h-Extensions-Copying_from_one_wiki_to_another","h-CSS_and_JavaScript_code-Copying_from_one_wiki_to_another"]}}--></div> <p>It is possible, if <a href="/wiki/Special:MyLanguage/Manual:$wgEnableScaryTranscluding" title="Special:MyLanguage/Manual:$wgEnableScaryTranscluding">allowed by the wiki configuration</a><span style="display:none"><a href="/wiki/Manual:$wgEnableScaryTranscluding" title="Manual:$wgEnableScaryTranscluding"> </a></span> to transclude templates from other wikis. This configuration setting is disabled on Wikimedia wikis. Otherwise, you need to manually copy the template and its dependencies from the source wiki to the destination wiki to use it. </p><p>Templates often require <a href="/wiki/Special:MyLanguage/Manual:Interface/Stylesheets" title="Special:MyLanguage/Manual:Interface/Stylesheets">CSS</a> or other templates, so users frequently have trouble copying templates from one wiki to another. The steps below should work for most templates. </p> <div class="mw-heading mw-heading3"><h3 id="MediaWiki_code" data-mw-thread-id="h-MediaWiki_code-Copying_from_one_wiki_to_another"><span data-mw-comment-start="" id="h-MediaWiki_code-Copying_from_one_wiki_to_another"></span>MediaWiki code<span data-mw-comment-end="h-MediaWiki_code-Copying_from_one_wiki_to_another"></span></h3></div> <p>If you have import rights (specifically importupload) on the new wiki: </p> <ol><li>Go to <a href="/wiki/Special:Export" title="Special:Export">Special:Export</a> on the original wiki, and download an .xml file with the complete history of all necessary templates, as follows: <ul><li>Enter the name of the template in the big text box, e.g. "Template:Welcome". Pay special attention to capitalization and special characters — if the template name isn't exactly correct, the export may still occur but the .xml file will not have the expected data.</li> <li>Select the box "Include templates".</li> <li>Select the box "Include only the current revision, not the full history".</li> <li>Click "Export".</li></ul></li> <li>Go to <a href="/wiki/Special:Import" title="Special:Import">Special:Import</a> on the new wiki and upload the .xml file.</li></ol> <p>If you don't have import rights on the new wiki: </p> <ol><li>Go to the template you want to copy from the original wiki. Go to the edit page, and copy all the wikitext</li> <li>On the new wiki, go to the page with the same name as the template you copied. Hit create/edit and paste the wikitext you copied. In the edit summary of each template, link to the original page for attribution.</li> <li>Back in the original wiki at the edit window, below the edit box, look at the list of "Templates used on this page". For each template listed follow these instructions. Also do that for any template used by any of these templates, and so on.</li></ol> <p>This will copy the entire code necessary, and will suffice for some templates. Note that only page elements parsed in rendering the page get exported, consequently documentation subpages are not exported as part of this process. If it doesn't work also check for red links listed under "Pages transcluded onto the current version of this page:", below the edit box. If there are any repeat the above steps for these as well and also copy the code in the modules. </p><p>After successfully importing the template and all its linked templates from the other wiki, edit it to change customisations to suit your wiki. For example to change a logo, remove redundant categories or red links. </p> <div class="mw-heading mw-heading3"><h3 id="Extensions" data-mw-thread-id="h-Extensions-Copying_from_one_wiki_to_another"><span data-mw-comment-start="" id="h-Extensions-Copying_from_one_wiki_to_another"></span>Extensions<span data-mw-comment-end="h-Extensions-Copying_from_one_wiki_to_another"></span></h3></div> <p>An extension often used in templates is ParserFunctions. Visit page <a href="/wiki/Special:MyLanguage/Help:Extension:ParserFunctions" title="Special:MyLanguage/Help:Extension:ParserFunctions">Extension:ParserFunctions</a><span style="display:none"><a href="/wiki/Help:Extension:ParserFunctions" title="Help:Extension:ParserFunctions"> </a></span> and check if any of the functions listed there are used in the templates you've copied. If so, you have to install the <a href="/wiki/Special:MyLanguage/Extension:ParserFunctions" title="Special:MyLanguage/Extension:ParserFunctions">ParserFunctions</a><span style="display:none"><a href="/wiki/Extension:ParserFunctions" title="Extension:ParserFunctions"> </a></span> extension. To install it, you'll need system admin access to the server of your MediaWiki installation. </p><p>Another dependency that may be used in templates, especially those on Wikipedia, is <a href="https://en.wikipedia.org/wiki/Lua_(programming_language)" class="extiw" title="w:Lua (programming language)">Lua</a>. Having <b><code>{{#invoke: }}</code></b> in template code is a good sign for it. In case it's used, you need to install the <a href="/wiki/Special:MyLanguage/Extension:Scribunto" title="Special:MyLanguage/Extension:Scribunto">Scribunto</a><span style="display:none"><a href="/wiki/Extension:Scribunto" title="Extension:Scribunto"> </a></span> extension and system admin access is required too. See that page for more instructions about installing and using the extension. </p> <div class="mw-heading mw-heading3"><h3 id="CSS_and_JavaScript_code" data-mw-thread-id="h-CSS_and_JavaScript_code-Copying_from_one_wiki_to_another"><span data-mw-comment-start="" id="h-CSS_and_JavaScript_code-Copying_from_one_wiki_to_another"></span>CSS and JavaScript code<span data-mw-comment-end="h-CSS_and_JavaScript_code-Copying_from_one_wiki_to_another"></span></h3></div> <p>Besides MediaWiki code, many templates make use of CSS and some rely on JavaScript to work fully. If the copied templates are not behaving as expected, this may be the cause. To copy the required CSS and JavaScript to your wiki you'll normally need to have admin privileges, because you'll be editing system messages in the "MediaWiki:" namespace. </p> <ol><li>Look for the use of CSS classes (text like <code>class="foobar"</code>) in the template text. If those classes appear in "MediaWiki:Common.css" or "MediaWiki:Monobook.css" on the original wiki, copy those classes to "MediaWiki:Common.css" on the new wiki and check if the template is now fine.</li> <li>If the copied template is still not working as expected, check if there is code in "MediaWiki:Common.js" or "MediaWiki:Monobook.js" on the original wiki. If so, you can try copying it to "MediaWiki:Common.js" on the new wiki. Normally, it is a good idea to only copy code from trusted sources, and browse the code to identify and select the relevant parts. You may find comments that can serve as clues to identify the functionality of each part.</li></ol> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Redirection" data-mw-thread-id="h-Redirection"><span data-mw-comment-start="" id="h-Redirection"></span>Redirection<span data-mw-comment-end="h-Redirection"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Redirection","replies":[]}}--></div> <p>If a page uses a <a href="/wiki/Help:Redirect" class="mw-redirect" title="Help:Redirect">redirect</a> as a template, the redirect is resolved before processing the template and the target is used instead. This won't work if the target doesn't exist (a broken redirect), or is itself a redirect (a double redirect). </p><p>A page that just includes another page as a template might look like a redirect, but there are several differences between them: </p> <ul><li>The header of the result displays the title of the page it came from.</li> <li>No "Redirected from" message is shown.</li> <li>Buttons like edit, watch, talk, history, "what links here," and "last modified" point to the referring page. To access the target page, use a section edit link and navigate from there.</li> <li>Unless <b>includeonly</b> and/or <b>noinclude tags</b> are used, the referring page shares the same categories as the target page.</li> <li>"Double redirects" work when one or both are this type of pseudo-redirect.</li></ul> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-reminder">Embedding works on pages that support <a href="/wiki/Help:Redirects" title="Help:Redirects">redirects</a> and doesn't work on pages without it.</div> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Parser_functions" data-mw-thread-id="h-Parser_functions"><span data-mw-comment-start="" id="h-Parser_functions"></span>Parser functions<span data-mw-comment-end="h-Parser_functions"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parser_functions","replies":[]}}--></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6353907"><div role="note" class="hatnote relarticle mainarticle">Main page: <a href="/wiki/Special:MyLanguage/Help:Parser_functions" title="Special:MyLanguage/Help:Parser functions">Help:Parser functions</a><span style="display:none"><a href="/wiki/Help:Parser_functions" class="mw-redirect" title="Help:Parser functions"> </a></span></div> <p>MediaWiki also supports <a href="/wiki/Help:Parser_functions" class="mw-redirect" title="Help:Parser functions">parser functions</a>, which function similarly to templates but follow slightly different syntax: </p> <ul><li>Parser functions utilize a ":" instead of the initial "|".</li> <li>An edit page does not display parser functions used on that page.</li> <li>There is no "What links here" feature for parser functions to identify the pages where they are utilized.</li> <li>Parser functions templates do not generally accept named parameters, so equal signs generally have no special significance. For example:</li></ul> <dl><dd><code>{{ #if: not blank | x=abc }}</code> gives <code>x=abc</code></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="See_also" data-mw-thread-id="h-See_also"><span data-mw-comment-start="" id="h-See_also"></span>See also<span data-mw-comment-end="h-See_also"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":["h-General_template_usage-See_also","h-Special_constructs_used_in_templates-See_also","h-Other_relevant_information-See_also"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="General_template_usage" data-mw-thread-id="h-General_template_usage-See_also"><span data-mw-comment-start="" id="h-General_template_usage-See_also"></span>General template usage<span data-mw-comment-end="h-General_template_usage-See_also"></span></h3></div> <ul><li><a href="/wiki/Manual:Expr_parser_function_syntax" title="Manual:Expr parser function syntax">Manual:Expr parser function syntax</a></li> <li><a href="/wiki/Help:Substitution" title="Help:Substitution">Help:Substitution</a></li> <li><a href="https://en.wikipedia.org/wiki/Help:Template" class="extiw" title="w:Help:Template">w:Help:Template</a></li> <li><a href="/wiki/Special:MyLanguage/Manual:Advanced_templates" title="Special:MyLanguage/Manual:Advanced templates">Manual:Advanced templates</a><span style="display:none"><a href="/wiki/Manual:Advanced_templates" title="Manual:Advanced templates"> </a></span> – describes even more advanced techniques such as dynamic template calls and variable parameter names</li> <li><a href="/wiki/Special:MyLanguage/Help:Multiple-instance_templates" title="Special:MyLanguage/Help:Multiple-instance templates">Help:Multiple-instance templates</a><span style="display:none"><a href="/wiki/Help:Multiple-instance_templates" title="Help:Multiple-instance templates"> </a></span> - on the use of multiple instances of the same template on a page.</li> <li><a href="/wiki/Manual:Newlines_and_spaces#Automatic_newline" title="Manual:Newlines and spaces">Manual:Newlines and spaces#Automatic newline</a></li></ul> <div class="mw-heading mw-heading3"><h3 id="Special_constructs_used_in_templates" data-mw-thread-id="h-Special_constructs_used_in_templates-See_also"><span data-mw-comment-start="" id="h-Special_constructs_used_in_templates-See_also"></span>Special constructs used in templates<span data-mw-comment-end="h-Special_constructs_used_in_templates-See_also"></span></h3></div> <ul><li><a href="/wiki/Special:MyLanguage/Help:Magic_words" title="Special:MyLanguage/Help:Magic words">Help:Magic words</a><span style="display:none"><a href="/wiki/Help:Magic_words" title="Help:Magic words"> </a></span> – fancy stuff you may find in some templates</li> <li><a href="/wiki/Special:MyLanguage/Help:Extension:ParserFunctions" title="Special:MyLanguage/Help:Extension:ParserFunctions">Help:Extension:ParserFunctions</a><span style="display:none"><a href="/wiki/Help:Extension:ParserFunctions" title="Help:Extension:ParserFunctions"> </a></span> – additional fancy control functions such as #if and #switch</li> <li><a href="/wiki/Special:MyLanguage/Help:Parser_functions_in_templates" title="Special:MyLanguage/Help:Parser functions in templates">Help:Parser functions in templates</a><span style="display:none"><a href="/wiki/Help:Parser_functions_in_templates" title="Help:Parser functions in templates"> </a></span> – guidance on using parser functions in templates</li> <li><a href="/wiki/Special:MyLanguage/Help:TemplateData" title="Special:MyLanguage/Help:TemplateData">Help:TemplateData</a><span style="display:none"><a href="/wiki/Help:TemplateData" title="Help:TemplateData"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Extension:ParserFunctions" title="Special:MyLanguage/Help:Extension:ParserFunctions">Help:Extension:ParserFunctions</a><span style="display:none"><a href="/wiki/Help:Extension:ParserFunctions" title="Help:Extension:ParserFunctions"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto" title="Special:MyLanguage/Extension:Scribunto">Extension:Scribunto</a><span style="display:none"><a href="/wiki/Extension:Scribunto" title="Extension:Scribunto"> </a></span></li></ul> <div class="mw-heading mw-heading3"><h3 id="Other_relevant_information" data-mw-thread-id="h-Other_relevant_information-See_also"><span data-mw-comment-start="" id="h-Other_relevant_information-See_also"></span>Other relevant information<span data-mw-comment-end="h-Other_relevant_information-See_also"></span></h3></div> <ul><li><a href="/wiki/Special:MyLanguage/Help:ExpandTemplates" title="Special:MyLanguage/Help:ExpandTemplates">Help:ExpandTemplates</a><span style="display:none"><a href="/wiki/Help:ExpandTemplates" title="Help:ExpandTemplates"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:External_searches" title="Special:MyLanguage/Help:External searches">Help:External searches</a><span style="display:none"><a href="/wiki/Help:External_searches" title="Help:External searches"> </a></span> – a template special use case example</li> <li><a href="/wiki/Special:MyLanguage/Manual:Importing_Wikipedia_infoboxes_tutorial" title="Special:MyLanguage/Manual:Importing Wikipedia infoboxes tutorial">Manual:Importing Wikipedia infoboxes tutorial</a><span style="display:none"><a href="/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial" title="Manual:Importing Wikipedia infoboxes tutorial"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:PageTemplates" title="Special:MyLanguage/Extension:PageTemplates">Extension:PageTemplates</a><span style="display:none"><a href="/wiki/Extension:PageTemplates" title="Extension:PageTemplates"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Creating_pages_with_preloaded_text" title="Special:MyLanguage/Manual:Creating pages with preloaded text">Manual:Creating pages with preloaded text</a><span style="display:none"><a href="/wiki/Manual:Creating_pages_with_preloaded_text" title="Manual:Creating pages with preloaded text"> </a></span> – Using templates as the starting text of a page</li> <li><a href="/wiki/Special:MyLanguage/Help:Transclusion" title="Special:MyLanguage/Help:Transclusion">Help:Transclusion</a><span style="display:none"><a href="/wiki/Help:Transclusion" title="Help:Transclusion"> </a></span> – embedding pages from <a href="/wiki/Special:MyLanguage/Help:Namespaces" title="Special:MyLanguage/Help:Namespaces">namespaces</a> other than <code>Template:</code></li> <li><a href="/wiki/Special:MyLanguage/Manual:Template_limits" title="Special:MyLanguage/Manual:Template limits">Manual:Template limits</a><span style="display:none"><a href="/wiki/Manual:Template_limits" title="Manual:Template limits"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:What_links_here" title="Special:MyLanguage/Help:What links here">Help:What links here</a><span style="display:none"><a href="/wiki/Help:What_links_here" title="Help:What links here"> </a></span></li> <li><a href="/wiki/Special:MostTranscludedPages" title="Special:MostTranscludedPages">Special:Mostlinkedtemplates</a> - shows the templates with the most uses</li> <li><a href="/wiki/Special:UnusedTemplates" title="Special:UnusedTemplates">Special:Unusedtemplates</a> - shows templates with no uses (although they may be substituted)</li> <li><a href="/wiki/Special:MyLanguage/Manual:$wgEnableScaryTranscluding" title="Special:MyLanguage/Manual:$wgEnableScaryTranscluding">Manual:$wgEnableScaryTranscluding</a><span style="display:none"><a href="/wiki/Manual:$wgEnableScaryTranscluding" title="Manual:$wgEnableScaryTranscluding"> </a></span> - using templates from other wikis</li> <li><a href="https://en.wikipedia.org/wiki/WP:Anatomy_of_a_template" class="extiw" title="w:WP:Anatomy of a template">w:WP:Anatomy of a template</a></li> <li><a href="https://en.wikipedia.org/wiki/Wikipedia:Transclusion_costs_and_benefits" class="extiw" title="w:Wikipedia:Transclusion costs and benefits">w:Wikipedia:Transclusion costs and benefits</a></li> <li><a href="/wiki/Manual:Parser.php" title="Manual:Parser.php">Manual:Parser.php</a></li> <li><a href="/wiki/Special:MyLanguage/Help:Extension:TemplateSandbox" title="Special:MyLanguage/Help:Extension:TemplateSandbox">Help:Extension:TemplateSandbox</a><span style="display:none"><a href="/wiki/Help:Extension:TemplateSandbox" title="Help:Extension:TemplateSandbox"> </a></span> - for previewing your changes to a template as it renders elsewhere</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="External_links" data-mw-thread-id="h-External_links"><span data-mw-comment-start="" id="h-External_links"></span>External links<span data-mw-comment-end="h-External_links"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_links","replies":[]}}--></div> <ul><li><a rel="nofollow" class="external text" href="https://dev.miraheze.org/wiki/Miraheze_Developers_Wiki">Miraheze template repository</a> - MediaWiki templates intended for general use.</li></ul> <div class="navbox-styles nomobile"><style data-mw-deduplicate="TemplateStyles:r6230902">.mw-parser-output .navbox{border:1px solid #aaa;box-sizing:border-box;width:100%;margin:auto;clear:both;font-size:88%;text-align:center;padding:1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox th,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{text-align:center;padding-left:1em;padding-right:1em}.mw-parser-output th.navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background:#fdfdfd}.mw-parser-output .navbox-list{border-color:#fdfdfd}.mw-parser-output .navbox th,.mw-parser-output .navbox-title{background:#eaeeff}.mw-parser-output .navbox-abovebelow,.mw-parser-output th.navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background:#ddddff}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background:#e6e6ff}.mw-parser-output .navbox-even{background:#f7f7f7}.mw-parser-output .navbox-odd{background:transparent}.mw-parser-output th.navbox-title1{border-left:2px solid #fdfdfd;width:100%}.mw-parser-output td.navbox-list1{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .hlist dd,.mw-parser-output .navbox .hlist dt,.mw-parser-output .navbox .hlist li{white-space:nowrap}.mw-parser-output .navbox .hlist dd dl,.mw-parser-output .navbox .hlist dt dl,.mw-parser-output .navbox .hlist li ol,.mw-parser-output .navbox .hlist li ul{white-space:normal}.mw-parser-output ol+.navbox-styles+.navbox,.mw-parser-output ul+.navbox-styles+.navbox{margin-top:0.5em}</style></div><div role="navigation" class="navbox" aria-labelledby="Help" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="3"><style data-mw-deduplicate="TemplateStyles:r6387430">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li,.mw-parser-output .hlist .mw-empty-elt{display:none}.mw-parser-output .hlist dt:after{content:": "}.mw-parser-output .hlist dd:after,.mw-parser-output .hlist li:after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child:after,.mw-parser-output .hlist dt:last-child:after,.mw-parser-output .hlist li:last-child:after{content:none}.mw-parser-output .hlist dd dd:first-child:before,.mw-parser-output .hlist dd dt:first-child:before,.mw-parser-output .hlist dd li:first-child:before,.mw-parser-output .hlist dt dd:first-child:before,.mw-parser-output .hlist dt dt:first-child:before,.mw-parser-output .hlist dt li:first-child:before,.mw-parser-output .hlist li dd:first-child:before,.mw-parser-output .hlist li dt:first-child:before,.mw-parser-output .hlist li li:first-child:before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child:after,.mw-parser-output .hlist dd dt:last-child:after,.mw-parser-output .hlist dd li:last-child:after,.mw-parser-output .hlist dt dd:last-child:after,.mw-parser-output .hlist dt dt:last-child:after,.mw-parser-output .hlist dt li:last-child:after,.mw-parser-output .hlist li dd:last-child:after,.mw-parser-output .hlist li dt:last-child:after,.mw-parser-output .hlist li li:last-child:after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li:before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child:before,.mw-parser-output .hlist dt ol>li:first-child:before,.mw-parser-output .hlist li ol>li:first-child:before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r4692751">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar ul{display:inline;white-space:nowrap}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em;width:6em}</style><div class="plainlinks hlist navbar mini"><ul><li class="nv-view"><a href="/wiki/Template:Help" title="Template:Help"><abbr title="View this template" style=";;background:none transparent;border:none;box-shadow:none; padding:0;">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Help" title="Template talk:Help"><abbr title="Discuss this template" style=";;background:none transparent;border:none;box-shadow:none; padding:0;">t</abbr></a></li><li class="nv-edit"><a class="external text" href="https://www.mediawiki.org/w/index.php?title=Template:Help&action=edit"><abbr title="Edit this template" style=";;background:none transparent;border:none;box-shadow:none; padding:0;">e</abbr></a></li></ul></div><div id="Help" style="font-size:114%;margin:0 4em"><a href="/wiki/Special:MyLanguage/Help:Contents" title="Special:MyLanguage/Help:Contents">Help</a><span style="display:none"><a href="/wiki/Help:Contents" title="Help:Contents"> </a></span></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">Reading</th><td class="navbox-list1 navbox-list navbox-odd" style="width:100%;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/wiki/Special:MyLanguage/Help:Navigation" title="Special:MyLanguage/Help:Navigation">Navigation</a><span style="display:none"><a href="/wiki/Help:Navigation" title="Help:Navigation"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Searching" title="Special:MyLanguage/Help:Searching">Searching</a><span style="display:none"><a href="/wiki/Help:Searching" title="Help:Searching"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Tracking_changes" title="Special:MyLanguage/Help:Tracking changes">Tracking</a><span style="display:none"><a href="/wiki/Help:Tracking_changes" title="Help:Tracking changes"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Watchlist" title="Special:MyLanguage/Help:Watchlist">Watchlist</a><span style="display:none"><a href="/wiki/Help:Watchlist" title="Help:Watchlist"> </a></span></li></ul> </div></td><td class="navbox-image" rowspan="5" style="width:1px;padding:0px 0px 0px 2px"><div><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/5f/OOjs_UI_icon_info-progressive.svg/30px-OOjs_UI_icon_info-progressive.svg.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/5f/OOjs_UI_icon_info-progressive.svg/45px-OOjs_UI_icon_info-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/5f/OOjs_UI_icon_info-progressive.svg/60px-OOjs_UI_icon_info-progressive.svg.png 2x" data-file-width="20" data-file-height="20"/></span></span></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Editing</th><td class="navbox-list1 navbox-list navbox-even" style="width:100%;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/wiki/Special:MyLanguage/Help:Editing_pages" title="Special:MyLanguage/Help:Editing pages">Basic</a><span style="display:none"><a href="/wiki/Help:Editing_pages" title="Help:Editing pages"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Starting_a_new_page" title="Special:MyLanguage/Help:Starting a new page">New page</a><span style="display:none"><a href="/wiki/Help:Starting_a_new_page" title="Help:Starting a new page"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Formatting" title="Special:MyLanguage/Help:Formatting">Formatting</a><span style="display:none"><a href="/wiki/Help:Formatting" title="Help:Formatting"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Links" title="Special:MyLanguage/Help:Links">Links</a><span style="display:none"><a href="/wiki/Help:Links" title="Help:Links"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:User_page" title="Special:MyLanguage/Help:User page">User pages</a><span style="display:none"><a href="/wiki/Help:User_page" title="Help:User page"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Talk_pages" title="Special:MyLanguage/Help:Talk pages">Talks</a><span style="display:none"><a href="/wiki/Help:Talk_pages" title="Help:Talk pages"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Signatures" title="Special:MyLanguage/Help:Signatures">Signatures</a><span style="display:none"><a href="/wiki/Help:Signatures" title="Help:Signatures"> </a></span></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Advanced</th><td class="navbox-list1 navbox-list navbox-odd" style="width:100%;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/wiki/Special:MyLanguage/Help:Images" title="Special:MyLanguage/Help:Images">Images</a><span style="display:none"><a href="/wiki/Help:Images" title="Help:Images"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Tables" title="Special:MyLanguage/Help:Tables">Tables</a><span style="display:none"><a href="/wiki/Help:Tables" title="Help:Tables"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Categories" title="Special:MyLanguage/Help:Categories">Categories</a><span style="display:none"><a href="/wiki/Help:Categories" title="Help:Categories"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Subpages" title="Special:MyLanguage/Help:Subpages">Subpages</a><span style="display:none"><a href="/wiki/Help:Subpages" title="Help:Subpages"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Managing_files" title="Special:MyLanguage/Help:Managing files">Files</a><span style="display:none"><a href="/wiki/Help:Managing_files" title="Help:Managing files"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Moving_a_page" title="Special:MyLanguage/Help:Moving a page">Moving</a><span style="display:none"><a href="/wiki/Help:Moving_a_page" title="Help:Moving a page"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Redirects" title="Special:MyLanguage/Help:Redirects">Redirects</a><span style="display:none"><a href="/wiki/Help:Redirects" title="Help:Redirects"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Protected_pages" title="Special:MyLanguage/Help:Protected pages">Protected pages</a><span style="display:none"><a href="/wiki/Help:Protected_pages" title="Help:Protected pages"> </a></span></li> <li><b><a href="/wiki/Special:MyLanguage/Help:Templates" title="Special:MyLanguage/Help:Templates">Templates</a></b><span style="display:none"><a class="mw-selflink selflink"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Magic_words" title="Special:MyLanguage/Help:Magic words">Magic words</a><span style="display:none"><a href="/wiki/Help:Magic_words" title="Help:Magic words"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Namespaces" title="Special:MyLanguage/Help:Namespaces">Namespaces</a><span style="display:none"><a href="/wiki/Help:Namespaces" title="Help:Namespaces"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Special_pages" title="Special:MyLanguage/Help:Special pages">Special pages</a><span style="display:none"><a href="/wiki/Help:Special_pages" title="Help:Special pages"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:External_searches" title="Special:MyLanguage/Help:External searches">External searches</a><span style="display:none"><a href="/wiki/Help:External_searches" title="Help:External searches"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Bots" title="Special:MyLanguage/Help:Bots">Bots</a><span style="display:none"><a href="/wiki/Help:Bots" title="Help:Bots"> </a></span></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Personal</th><td class="navbox-list1 navbox-list navbox-even" style="width:100%;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/wiki/Special:MyLanguage/Help:Preferences" title="Special:MyLanguage/Help:Preferences">Preferences</a><span style="display:none"><a href="/wiki/Help:Preferences" title="Help:Preferences"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Skins" title="Special:MyLanguage/Help:Skins">Skins</a><span style="display:none"><a href="/wiki/Help:Skins" title="Help:Skins"> </a></span></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Admin</th><td class="navbox-list1 navbox-list navbox-odd" style="width:100%;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/wiki/Special:MyLanguage/Help:Sysops_and_permissions" title="Special:MyLanguage/Help:Sysops and permissions">Permissions</a><span style="display:none"><a href="/wiki/Help:Sysops_and_permissions" title="Help:Sysops and permissions"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Protecting_and_unprotecting_pages" title="Special:MyLanguage/Help:Protecting and unprotecting pages">Protecting</a><span style="display:none"><a href="/wiki/Help:Protecting_and_unprotecting_pages" class="mw-redirect" title="Help:Protecting and unprotecting pages"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Deletion_and_undeletion" title="Special:MyLanguage/Help:Deletion and undeletion">Deleting</a><span style="display:none"><a href="/wiki/Help:Deletion_and_undeletion" title="Help:Deletion and undeletion"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Patrolled_edits" title="Special:MyLanguage/Help:Patrolled edits">Patrolled edits</a><span style="display:none"><a href="/wiki/Help:Patrolled_edits" title="Help:Patrolled edits"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Blocking_users" title="Special:MyLanguage/Help:Blocking users">Blocking</a><span style="display:none"><a href="/wiki/Help:Blocking_users" title="Help:Blocking users"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:Range_blocks" title="Special:MyLanguage/Help:Range blocks">Range IP blocks</a><span style="display:none"><a href="/wiki/Help:Range_blocks" title="Help:Range blocks"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:User_rights_and_groups" title="Special:MyLanguage/Help:User rights and groups">User rights and groups</a><span style="display:none"><a href="/wiki/Help:User_rights_and_groups" title="Help:User rights and groups"> </a></span></li></ul> </div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐api‐int.codfw.main‐849f99967d‐h4jfq Cached time: 20241122113927 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.054 seconds CPU time usage: 1.042 seconds Real time usage: 1.360 seconds Preprocessor visited node count: 8740/1000000 Post‐expand include size: 68727/2097152 bytes Template argument size: 21181/2097152 bytes Highest expansion depth: 14/100 Expensive parser function count: 96/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 38259/5000000 bytes Lua time usage: 0.261/10.000 seconds Lua memory usage: 1813462/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 738.958 1 -total 56.87% 420.253 77 Template:Ll 29.46% 217.711 1 Template:Help 28.77% 212.601 1 Template:Navbox 25.80% 190.680 154 Template:Translatable 22.64% 167.314 78 Template:Pagelang 7.19% 53.153 18 Template:TNTN 5.28% 39.006 9 Template:Tl 4.60% 34.006 1 Template:PD_Help_Page 3.55% 26.261 7 Template:Note --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:1759-0!canonical and timestamp 20241122113927 and revision id 6825773. 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:Templates&oldid=6825773">https://www.mediawiki.org/w/index.php?title=Help:Templates&oldid=6825773</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:Help" title="Category:Help">Help</a></li><li><a href="/wiki/Category:Template" title="Category:Template">Template</a></li><li><a href="/wiki/Category:MediaWiki_for_site_admins" title="Category:MediaWiki for site admins">MediaWiki for site admins</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 3 November 2024, at 23:47.</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:Templates&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-qnvsb","wgBackendResponseTime":101,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Basic_usage","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Ways_to_invoke_a_template","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parameters","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Anonymous_parameters-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Numbered_parameters-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Named_parameters-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Mixing_named_and_unnamed_parameters-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Default_values-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Passing_parameters_to_other_templates-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Empty_vs_undefined_parameters-Parameters","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Making_emptiness_and_undefinedness_equivalent-Empty_vs_undefined_parameters","replies":[]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Using_equals_signs_in_unnamed_parameters-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Handling_unmatched_curly_and_square_brackets-Parameters","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Template-generated_brackets-Handling_unmatched_curly_and_square_brackets","replies":[]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Using_pipes_in_parameter_values-Parameters","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Formatting_template_calls_using_extra_parameters-Parameters","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Tracking_parameter_usage","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Evaluation_process","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Recursion_in_templates-Evaluation_process","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Tables_in_parameters-Evaluation_process","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Example_table-Tables_in_parameters","replies":[]}]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Controlling_template_inclusion","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Section_transclusion","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Organizing_templates","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Linking_to_a_template","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template_naming","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Possible_uses_of_templates","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Copying_from_one_wiki_to_another","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-MediaWiki_code-Copying_from_one_wiki_to_another","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Extensions-Copying_from_one_wiki_to_another","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-CSS_and_JavaScript_code-Copying_from_one_wiki_to_another","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Redirection","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parser_functions","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-General_template_usage-See_also","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Special_constructs_used_in_templates-See_also","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Other_relevant_information-See_also","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_links","replies":[]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.054"},"limitreport":{"cputime":"1.042","walltime":"1.360","ppvisitednodes":{"value":8740,"limit":1000000},"postexpandincludesize":{"value":68727,"limit":2097152},"templateargumentsize":{"value":21181,"limit":2097152},"expansiondepth":{"value":14,"limit":100},"expensivefunctioncount":{"value":96,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":38259,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 738.958 1 -total"," 56.87% 420.253 77 Template:Ll"," 29.46% 217.711 1 Template:Help"," 28.77% 212.601 1 Template:Navbox"," 25.80% 190.680 154 Template:Translatable"," 22.64% 167.314 78 Template:Pagelang"," 7.19% 53.153 18 Template:TNTN"," 5.28% 39.006 9 Template:Tl"," 4.60% 34.006 1 Template:PD_Help_Page"," 3.55% 26.261 7 Template:Note"]},"scribunto":{"limitreport-timeusage":{"value":"0.261","limit":"10.000"},"limitreport-memusage":{"value":1813462,"limit":52428800}},"cachereport":{"origin":"mw-api-int.codfw.main-849f99967d-h4jfq","timestamp":"20241122113927","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>