CINXE.COM
Help:Template - Wikiquote
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Help:Template - Wikiquote</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikiquotemwclientpreferences=([^;]+)/);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":"ba242b59-89e3-4e45-ab71-510e7fdecd65","wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:Template","wgTitle":"Template","wgCurRevisionId":2133083,"wgRevisionId":2133083,"wgArticleId":5535,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Wikiquote help"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Help:Template","wgRelevantArticleId":5535,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikiquote","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr", "pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":70000,"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"source","wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q4168710","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"wgSiteNoticeId":"2.3"};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user": "ready","user":"ready","user.options":"loading","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready","ext.dismissableSiteNotice.styles":"ready"};RLPAGEMODULES=["site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","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.interface", "wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking","ext.dismissableSiteNotice"];</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.dismissableSiteNotice.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=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:title" content="Help:Template - Wikiquote"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikiquote.org/wiki/Help:Template"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Help:Template&action=edit"> <link rel="icon" href="/static/favicon/wikiquote.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikiquote (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikiquote.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikiquote.org/wiki/Help:Template"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikiquote Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-12 ns-subject mw-editable page-Help_Template rootpage-Help_Template 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/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikiquote:Community_Portal" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-Village-pump" class="mw-list-item"><a href="/wiki/Wikiquote:Village_pump"><span>Village pump</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-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-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="The place to find out"><span>Help</span></a></li><li id="n-Contact-Wikiquote" class="mw-list-item"><a href="/wiki/Wikiquote:Contact_us"><span>Contact Wikiquote</span></a></li> </ul> </div> </div> <div id="p-Wikiquote_links" class="vector-menu mw-portlet mw-portlet-Wikiquote_links" > <div class="vector-menu-heading"> Wikiquote links </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-People" class="mw-list-item"><a href="/wiki/List_of_people_by_name"><span>People</span></a></li><li id="n-Literary-works" class="mw-list-item"><a href="/wiki/List_of_literary_works"><span>Literary works</span></a></li><li id="n-Proverbs" class="mw-list-item"><a href="/wiki/Category:Proverbs"><span>Proverbs</span></a></li><li id="n-Films" class="mw-list-item"><a href="/wiki/List_of_films"><span>Films</span></a></li><li id="n-TV-shows" class="mw-list-item"><a href="/wiki/List_of_television_shows"><span>TV shows</span></a></li><li id="n-Themes" class="mw-list-item"><a href="/wiki/Category:Themes"><span>Themes</span></a></li><li id="n-Categories" class="mw-list-item"><a href="/wiki/Category:Categories"><span>Categories</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikiquote.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikiquote" src="/static/images/mobile/copyright/wikiquote-wordmark-fr.svg" style="width: 4.8125em; height: 2.5em;"> </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 Wikiquote [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 Wikiquote" aria-label="Search Wikiquote" autocapitalize="sentences" title="Search Wikiquote [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 emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="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="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikiquote.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Help%3ATemplate" 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%3ATemplate" 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="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikiquote.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Help%3ATemplate" 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%3ATemplate" 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"><div id="mw-dismissablenotice-anonplace"></div><script>(function(){var node=document.getElementById("mw-dismissablenotice-anonplace");if(node){node.outerHTML="\u003Cdiv class=\"mw-dismissable-notice\"\u003E\u003Cdiv class=\"mw-dismissable-notice-close\"\u003E[\u003Ca tabindex=\"0\" role=\"button\"\u003Ehide\u003C/a\u003E]\u003C/div\u003E\u003Cdiv class=\"mw-dismissable-notice-body\"\u003E\u003C!-- CentralNotice --\u003E\u003Cdiv id=\"localNotice\" data-nosnippet=\"\"\u003E\u003Cdiv class=\"anonnotice\" lang=\"en\" dir=\"ltr\"\u003E\u003Cdiv style=\"position:absolute; z-index:100; right:100px; top:-0px;\" class=\"metadata\" id=\"donate\"\u003E\n\u003Cdiv style=\"text-align:right; font-size:80%\"\u003E\u003Ci\u003EYour \u003Cb\u003E\u003Ca href=\"https://foundation.wikimedia.org/wiki/Fundraising\" class=\"extiw\" title=\"wikimedia:Fundraising\"\u003Econtinued donations\u003C/a\u003E\u003C/b\u003E keep Wikiquote running!\u003C/i\u003E\n\u003C/div\u003E\u003C/div\u003E\n\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E";}}());</script></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-General" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#General"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>General</span> </div> </a> <ul id="toc-General-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Use_of_templates_across_projects" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Use_of_templates_across_projects"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Use of templates across projects</span> </div> </a> <ul id="toc-Use_of_templates_across_projects-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> <ul id="toc-Parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Restrictions_on_parameter_values" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Restrictions_on_parameter_values"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Restrictions on parameter values</span> </div> </a> <ul id="toc-Restrictions_on_parameter_values-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Named_vs._numbered_parameters" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Named_vs._numbered_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Named vs. numbered parameters</span> </div> </a> <ul id="toc-Named_vs._numbered_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Mix_of_named_and_unnamed_parameters" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Mix_of_named_and_unnamed_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Mix of named and unnamed parameters</span> </div> </a> <ul id="toc-Mix_of_named_and_unnamed_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Template_page" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Template_page"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Template page</span> </div> </a> <button aria-controls="toc-Template_page-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 Template page subsection</span> </button> <ul id="toc-Template_page-sublist" class="vector-toc-list"> <li id="toc-Template_page_if_no_defaults_have_been_specified" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Template_page_if_no_defaults_have_been_specified"> <div class="vector-toc-text"> <span class="vector-toc-numb">7.1</span> <span>Template page if no defaults have been specified</span> </div> </a> <ul id="toc-Template_page_if_no_defaults_have_been_specified-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Template_talk_page" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Template_talk_page"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Template talk page</span> </div> </a> <ul id="toc-Template_talk_page-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-A_parameter_value_depending_on_parameters" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#A_parameter_value_depending_on_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>A parameter value depending on parameters</span> </div> </a> <ul id="toc-A_parameter_value_depending_on_parameters-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Remarks" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Remarks"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>Remarks</span> </div> </a> <ul id="toc-Remarks-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Equals_sign_in_parameter_value" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Equals_sign_in_parameter_value"> <div class="vector-toc-text"> <span class="vector-toc-numb">11</span> <span>Equals sign in parameter value</span> </div> </a> <ul id="toc-Equals_sign_in_parameter_value-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-msgnw" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#msgnw"> <div class="vector-toc-text"> <span class="vector-toc-numb">12</span> <span>msgnw</span> </div> </a> <ul id="toc-msgnw-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Link_for_editing_a_template" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Link_for_editing_a_template"> <div class="vector-toc-text"> <span class="vector-toc-numb">13</span> <span>Link for editing a template</span> </div> </a> <ul id="toc-Link_for_editing_a_template-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Editing_sections_of_included_templates" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Editing_sections_of_included_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">14</span> <span>Editing sections of included templates</span> </div> </a> <ul id="toc-Editing_sections_of_included_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Usage" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">15</span> <span>Usage</span> </div> </a> <button aria-controls="toc-Usage-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 Usage subsection</span> </button> <ul id="toc-Usage-sublist" class="vector-toc-list"> <li id="toc-Navigational_templates" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Navigational_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.1</span> <span>Navigational templates</span> </div> </a> <ul id="toc-Navigational_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Composite_pages" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Composite_pages"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.2</span> <span>Composite pages</span> </div> </a> <ul id="toc-Composite_pages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Pages_with_a_common_section" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Pages_with_a_common_section"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.3</span> <span>Pages with a common section</span> </div> </a> <ul id="toc-Pages_with_a_common_section-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Repetition_within_a_page" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Repetition_within_a_page"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.4</span> <span>Repetition within a page</span> </div> </a> <ul id="toc-Repetition_within_a_page-sublist" class="vector-toc-list"> <li id="toc-Providing_effective_repetition_without_repetition_of_similar_template_calls_in_the_wikitext" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Providing_effective_repetition_without_repetition_of_similar_template_calls_in_the_wikitext"> <div class="vector-toc-text"> <span class="vector-toc-numb">15.4.1</span> <span>Providing effective repetition without repetition of similar template calls in the wikitext</span> </div> </a> <ul id="toc-Providing_effective_repetition_without_repetition_of_similar_template_calls_in_the_wikitext-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Images_in_templates" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Images_in_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">16</span> <span>Images in templates</span> </div> </a> <ul id="toc-Images_in_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Internal_links" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Internal_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">17</span> <span>Internal links</span> </div> </a> <button aria-controls="toc-Internal_links-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 Internal links subsection</span> </button> <ul id="toc-Internal_links-sublist" class="vector-toc-list"> <li id="toc-Interwiki_links" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Interwiki_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">17.1</span> <span>Interwiki links</span> </div> </a> <ul id="toc-Interwiki_links-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">18</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Navigational_images" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Navigational_images"> <div class="vector-toc-text"> <span class="vector-toc-numb">19</span> <span>Navigational images</span> </div> </a> <ul id="toc-Navigational_images-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Noinclude_and_includeonly" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Noinclude_and_includeonly"> <div class="vector-toc-text"> <span class="vector-toc-numb">20</span> <span>Noinclude and includeonly</span> </div> </a> <ul id="toc-Noinclude_and_includeonly-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-A_category_tag_in_a_template;_caching_problem" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#A_category_tag_in_a_template;_caching_problem"> <div class="vector-toc-text"> <span class="vector-toc-numb">21</span> <span>A category tag in a template; caching problem</span> </div> </a> <ul id="toc-A_category_tag_in_a_template;_caching_problem-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Newline_in_a_template" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Newline_in_a_template"> <div class="vector-toc-text"> <span class="vector-toc-numb">22</span> <span>Newline in a template</span> </div> </a> <ul id="toc-Newline_in_a_template-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Indentation_or_list_code_at_the_beginning_of_template_content" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Indentation_or_list_code_at_the_beginning_of_template_content"> <div class="vector-toc-text"> <span class="vector-toc-numb">23</span> <span>Indentation or list code at the beginning of template content</span> </div> </a> <ul id="toc-Indentation_or_list_code_at_the_beginning_of_template_content-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Server_cache_impacts" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Server_cache_impacts"> <div class="vector-toc-text"> <span class="vector-toc-numb">24</span> <span>Server cache impacts</span> </div> </a> <ul id="toc-Server_cache_impacts-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Stale_cache_purge" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Stale_cache_purge"> <div class="vector-toc-text"> <span class="vector-toc-numb">25</span> <span>Stale cache purge</span> </div> </a> <ul id="toc-Stale_cache_purge-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Subst" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Subst"> <div class="vector-toc-text"> <span class="vector-toc-numb">26</span> <span>Subst</span> </div> </a> <button aria-controls="toc-Subst-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 Subst subsection</span> </button> <ul id="toc-Subst-sublist" class="vector-toc-list"> <li id="toc-Input_box" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Input_box"> <div class="vector-toc-text"> <span class="vector-toc-numb">26.1</span> <span>Input box</span> </div> </a> <ul id="toc-Input_box-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"> <div class="vector-toc-text"> <span class="vector-toc-numb">27</span> <span>Rewriting a template that calls other templates in a self-contained form</span> </div> </a> <button aria-controls="toc-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form-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 Rewriting a template that calls other templates in a self-contained form subsection</span> </button> <ul id="toc-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form-sublist" class="vector-toc-list"> <li id="toc-Case_where_a_template_name_depends_on_a_variable_or_parameter" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Case_where_a_template_name_depends_on_a_variable_or_parameter"> <div class="vector-toc-text"> <span class="vector-toc-numb">27.1</span> <span>Case where a template name depends on a variable or parameter</span> </div> </a> <ul id="toc-Case_where_a_template_name_depends_on_a_variable_or_parameter-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">28</span> <span>Redirection</span> </div> </a> <ul id="toc-Redirection-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Math_tags" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Math_tags"> <div class="vector-toc-text"> <span class="vector-toc-numb">29</span> <span>Math tags</span> </div> </a> <ul id="toc-Math_tags-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-A_template_looked_upon_as_a_subroutine" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#A_template_looked_upon_as_a_subroutine"> <div class="vector-toc-text"> <span class="vector-toc-numb">30</span> <span>A template looked upon as a subroutine</span> </div> </a> <ul id="toc-A_template_looked_upon_as_a_subroutine-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Simple_computations" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Simple_computations"> <div class="vector-toc-text"> <span class="vector-toc-numb">31</span> <span>Simple computations</span> </div> </a> <ul id="toc-Simple_computations-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">32</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-Comparison_of_linking_and_embedding" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Comparison_of_linking_and_embedding"> <div class="vector-toc-text"> <span class="vector-toc-numb">33</span> <span>Comparison of linking and embedding</span> </div> </a> <ul id="toc-Comparison_of_linking_and_embedding-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Developing_templates_and_template_tags" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Developing_templates_and_template_tags"> <div class="vector-toc-text"> <span class="vector-toc-numb">34</span> <span>Developing templates and template tags</span> </div> </a> <ul id="toc-Developing_templates_and_template_tags-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Templates_in_different_versions_of_MediaWiki" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Templates_in_different_versions_of_MediaWiki"> <div class="vector-toc-text"> <span class="vector-toc-numb">35</span> <span>Templates in different versions of MediaWiki</span> </div> </a> <button aria-controls="toc-Templates_in_different_versions_of_MediaWiki-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Templates in different versions of MediaWiki subsection</span> </button> <ul id="toc-Templates_in_different_versions_of_MediaWiki-sublist" class="vector-toc-list"> <li id="toc-Version_1.4" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.4"> <div class="vector-toc-text"> <span class="vector-toc-numb">35.1</span> <span>Version 1.4</span> </div> </a> <ul id="toc-Version_1.4-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1.3" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.3"> <div class="vector-toc-text"> <span class="vector-toc-numb">35.2</span> <span>Version 1.3</span> </div> </a> <ul id="toc-Version_1.3-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Version_1.2.6" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Version_1.2.6"> <div class="vector-toc-text"> <span class="vector-toc-numb">35.3</span> <span>Version 1.2.6</span> </div> </a> <ul id="toc-Version_1.2.6-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Revision_history_of_pages_containing_templates" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Revision_history_of_pages_containing_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">36</span> <span>Revision history of pages containing templates</span> </div> </a> <ul id="toc-Revision_history_of_pages_containing_templates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Reserved_template_names" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Reserved_template_names"> <div class="vector-toc-text"> <span class="vector-toc-numb">37</span> <span>Reserved template names</span> </div> </a> <ul id="toc-Reserved_template_names-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">38</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Wikiquote-specific_content" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Wikiquote-specific_content"> <div class="vector-toc-text"> <span class="vector-toc-numb">39</span> <span>Wikiquote-specific content</span> </div> </a> <ul id="toc-Wikiquote-specific_content-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Links_to_other_help_pages" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Links_to_other_help_pages"> <div class="vector-toc-text"> <span class="vector-toc-numb">40</span> <span>Links to other help pages</span> </div> </a> <ul id="toc-Links_to_other_help_pages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_Links_2" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#External_Links_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">41</span> <span>External Links</span> </div> </a> <ul id="toc-External_Links_2-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">Template</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 7 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-7" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">7 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikiquote.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-de mw-list-item"><a href="https://de.wikiquote.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-eo mw-list-item"><a href="https://eo.wikiquote.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.wikiquote.org/wiki/Wikiquote:Ayuda:Plantillas" title="Wikiquote:Ayuda:Plantillas – Spanish" lang="es" hreflang="es" data-title="Wikiquote: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-fi mw-list-item"><a href="https://fi.wikiquote.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.wikiquote.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-it mw-list-item"><a href="https://it.wikiquote.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> </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-wikiquote" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="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:Template" title="View the help page [c]" accesskey="c"><span>Help page</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Help_talk:Template" 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:Template"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Help:Template&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Help:Template&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:Template"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Help:Template&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Help:Template&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:Template" 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:Template" 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:Template&oldid=2133083" 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:Template&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%2Fen.wikiquote.org%2Fwiki%2FHelp%3ATemplate"><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%2Fen.wikiquote.org%2Fwiki%2FHelp%3ATemplate"><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%3ATemplate"><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%3ATemplate&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:Template&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-mediawiki mw-list-item"><a href="https://www.mediawiki.org/wiki/Help:Templates" hreflang="en"><span>MediaWiki</span></a></li><li class="wb-otherproject-link wb-otherproject-meta mw-list-item"><a href="https://meta.wikimedia.org/wiki/Help:Template" hreflang="en"><span>Meta-Wiki</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://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-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 class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikiquote</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><p><i>This is a copy of the master help page at <b><a href="https://meta.wikimedia.org/wiki/Help:Template" class="extiw" title="m:Help:Template">m:Help:Template</a></b>. <b>Do not edit this page. Edits will be lost in the next update from the master page.</b> Either edit the master help page for all projects at Meta, or edit the project-specific text at <a href="/w/index.php?title=Template:Ph:Template&action=edit&redlink=1" class="new" title="Template:Ph:Template (page does not exist)">Template:Ph:Template</a>. You are welcome to copy the exact wikitext from the master page at Meta and paste it into this page at any time.</i> </p> <hr/> <table class="noprint" width="20%" style="float:right; font-size:80%; border:solid black 1px; margin: 2.8em 0 0 3.2em; padding: 1em 1em 1.5em 1em"> <tbody><tr> <td><div align="right"><small class="editlink"><a class="external text" href="https://en.wikiquote.org/w/index.php?title=Template:Editor_toc&action=edit">Edit editor toc</a></small> <a href="/wiki/Help:Editor" title="Help:Editor">view this alone</a></div> <p><b><a href="/wiki/Help:Editing" title="Help:Editing">Editing overview</a></b> </p><p><b><a href="/wiki/Help:Starting_a_new_page" title="Help:Starting a new page">Starting a new page</a></b> </p> <ol><li><a href="/wiki/Help:Page_name" title="Help:Page name">Page name</a></li></ol> <p><b>Referencing</b> </p> <ol><li><a href="/wiki/Help:Link" title="Help:Link">Links</a></li> <li><a href="/wiki/Help:Piped_link" title="Help:Piped link">Piped links</a></li> <li><a href="/wiki/Help:Interwiki_linking" title="Help:Interwiki linking">Interwiki linking</a></li> <li><a href="/wiki/Help:Variable" title="Help:Variable">Variables</a></li> <li><a href="/wiki/Help:URL" title="Help:URL">URLs</a></li> <li><a href="/wiki/Help:Anchors" title="Help:Anchors">Anchors</a></li></ol> <p><b>Formatting</b> </p> <ol><li><a href="/wiki/Help:Formula" title="Help:Formula">Formulas</a></li> <li><a href="/wiki/Help:List" title="Help:List">Lists</a></li> <li><a href="/wiki/Help:Table" title="Help:Table">Tables</a></li> <li><a href="/wiki/Help:HTML_in_wikitext" title="Help:HTML in wikitext">HTML in wikitext</a></li> <li><a href="/wiki/Help:Images_and_other_uploaded_files" class="mw-redirect" title="Help:Images and other uploaded files">Image & File uploads</a></li> <li><a href="/wiki/Help:Image_page" class="mw-redirect" title="Help:Image page">Image page</a></li></ol> <p><b>Organizing</b> </p> <ol><li><a href="/wiki/Help:Section" title="Help:Section">Sections</a></li> <li><a class="mw-selflink selflink">Templates</a></li> <li><a href="/wiki/Help:Category" title="Help:Category">Categories</a></li> <li><a href="/wiki/Help:Redirect" title="Help:Redirect">Redirects</a></li> <li><a href="/wiki/Help:Namespace" title="Help:Namespace">Namespaces</a></li> <li><a href="/wiki/Help:Moving_a_page" title="Help:Moving a page">Renaming (moving) a page</a></li></ol> <p><b>Fixing mistakes and vandalism</b> </p> <ol><li><a href="/wiki/Help:Reverting" title="Help:Reverting">Reverting edits</a></li> <li><a href="/wiki/Help:Testing" title="Help:Testing">Testing</a><br/></li></ol> <p><b>Saving effort</b> </p> <ol><li><a href="/wiki/Help:Editing_shortcuts" title="Help:Editing shortcuts">Editing shortcuts</a></li> <li><a href="/wiki/Help:Editing_toolbar" class="mw-redirect" title="Help:Editing toolbar">Editing toolbar</a></li> <li><a href="/wiki/Help:Magic_words" title="Help:Magic words">Magic words</a></li></ol> <p><b>Communicating</b> </p> <ol><li><a href="/wiki/Help:Edit_summary" title="Help:Edit summary">Edit summary</a></li> <li><a href="/wiki/Help:Talk_page" title="Help:Talk page">Talk page</a></li> <li><a href="/wiki/Help:Edit_conflict" title="Help:Edit conflict">Edit conflict</a></li> <li><a href="/wiki/Help:Minor_edit" title="Help:Minor edit">Minor edit</a></li></ol> <p><b><a href="/wiki/Help:Special_characters" title="Help:Special characters">Special characters</a></b> </p> <ol><li><a href="/wiki/Help:Turkish_characters" title="Help:Turkish characters">Turkish characters</a></li> <li><a href="/wiki/Help:Romanian_characters" title="Help:Romanian characters">Romanian characters</a></li></ol> <p><b>Extensions</b> </p> <ol><li><a href="/wiki/Help:WikiHiero_syntax" title="Help:WikiHiero syntax">WikiHiero syntax</a> — <b>warning:</b> lots of images! (for <a href="https://en.wikipedia.org/wiki/Egyptian_hieroglyph" class="extiw" title="w:Egyptian hieroglyph">Egyptian hieroglyphs</a>)</li> <li><a href="/wiki/Help:EasyTimeline_syntax" title="Help:EasyTimeline syntax">EasyTimeline syntax</a></li></ol> <p><b><a href="/wiki/Help:Editing_FAQ" title="Help:Editing FAQ">Frequently Asked Questions</a></b> </p> </td></tr></tbody></table> <p><br/> In MediaWiki, a <b>template</b> is a page which can be inserted into another page via a process called <a href="https://en.wikipedia.org/wiki/transclusion" class="extiw" title="w:transclusion">transclusion</a>. It is comparable to a <a href="https://en.wikipedia.org/wiki/en:subroutine" class="extiw" title="w:en:subroutine">subroutine</a>. </p><p>This page and its extension <b><a href="/wiki/Help:Template_names,_variable_names_and_parameters_depending_on_a_variable_or_parameter" class="mw-redirect" title="Help:Template names, variable names and parameters depending on a variable or parameter">Help:Template names, variable names and parameters depending on a variable or parameter</a></b> provide a reference manual on templates in MediaWiki. For an introduction, see <i><a href="/wiki/Help:A_quick_guide_to_templates" title="Help:A quick guide to templates">A quick guide to templates</a></i>. </p><p><b>Notes:</b> </p> <ul><li>The master version of this page is the page <a href="https://meta.wikimedia.org/wiki/Help:Template" class="extiw" title="m:Help:Template">m:Help:Template</a> on Meta-Wikipedia; template demos work there, but may not work if you are viewing a copy of this page on another project.</li> <li>Templates can be used to control (part of) the page body, but not the margins (logo, sidebars, etc.). These are controlled by the skin, the <a href="/wiki/Help:User_style" title="Help:User style">user style</a>, and part of the contents of the <a href="/w/index.php?title=Help:MediaWiki_namespace&action=edit&redlink=1" class="new" title="Help:MediaWiki namespace (page does not exist)">MediaWiki namespace</a>.</li></ul> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="General" data-mw-thread-id="h-General"><span data-mw-comment-start="" id="h-General"></span>General<span data-mw-comment-end="h-General"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=1" title="Edit section: General"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-General","replies":[]}}--></div> <p>The <b>template namespace</b> is the <a href="/wiki/Help:Namespace" title="Help:Namespace">namespace</a> with prefix "<b>Template:</b>" (this prefix can be used in all languages, but the canonical prefixes in languages other than English include Vorlage, Modèle, Sjabloon, with colon; the site WikiFAQ calls it Snippet). </p><p>A page in this namespace is called a <b>template</b>. The contents of such a page (either fixed or depending on <a href="https://en.wikipedia.org/wiki/en:Parameter_(computer_science)" class="extiw" title="w:en:Parameter (computer science)">parameters</a> and/or <a href="/wiki/Help:Variable" title="Help:Variable">variables</a>) is designed to be useful for insertion in other pages (<a href="/w/index.php?title=Transclusion&action=edit&redlink=1" class="new" title="Transclusion (page does not exist)">transclusion</a>, creating a <a href="https://en.wikipedia.org/wiki/compound_document" class="extiw" title="w:compound document">compound document</a>). </p><p>The syntax for insertion of the page "Template:<i>name</i>" is {{<i>name</i>}}. This is called a template tag. Example: abc{{tc}}def <a href="/w/index.php?title=Template:Ut1&action=edit&redlink=1" class="new" title="Template:Ut1 (page does not exist)">Template:Ut1</a> gives abc<a href="/w/index.php?title=Template:Tc&action=edit&redlink=1" class="new" title="Template:Tc (page does not exist)">Template:Tcdef</a>. </p><p>This reference in the wikitext causes insertion of the template content when the referring page is rendered. Various equivalent terms are: </p> <ul><li><a href="https://en.wikipedia.org/wiki/call" class="extiw" title="w:call">calling</a> the template</li> <li>referring to the template</li> <li>including the template</li> <li>transcluding the template</li> <li>using the template</li></ul> <p>If the page "Template:<i>name</i>" does not exist, then {{<i>name</i>}} works as [[Template:<i>name</i>]], a link to a non-existing page, leading to the edit page. Thus, one way of making a template is putting the tag first, and then following the link. </p><p>If <i>name</i> starts with a valid namespace prefix, or a colon, then it is not prefixed with "Template:". This way any page can be used as template (a colon at the start refers to the main namespace). </p><p>However, a page in the template namespace has advantages: </p> <ul><li>they are listed on the edit page of pages that call the template</li> <li>when a page in the template namespace is changed, all the other pages that link to it automatically have their server caches (as opposed to browser cache) purged. With other namespaces, you need to purge the server cache manually.</li></ul> <p>Also it provides an alternative way of calling a template, which can be used in the case of a name conflict with a variable, e.g. <a href="/w/index.php?title=Template:Ns:3&action=edit&redlink=1" class="new" title="Template:Ns:3 (page does not exist)">Template:Ns:3</a> and <a href="/w/index.php?title=Template:PAGENAME&action=edit&redlink=1" class="new" title="Template:PAGENAME (page does not exist)">Template:PAGENAME</a>. </p><p>In the case of an image or category, it gives the description part. E.g. {{Image:tst.png}} gives <a href="/wiki/File:Tst.png" title="File:Tst.png">File:Tst.png</a>. However, if the image is on commons, the template call is treated as a link, which in turn is the embedding command, so the image is embedded: {{Image:Map South Holland.png}} gives: </p><p><a href="/wiki/File:Map_South_Holland.png" title="File:Map South Holland.png">File:Map South Holland.png</a> </p><p>Using a page outside the template namespace as template can be useful for: </p> <ul><li>quoting interface messages in the MediaWiki namespace</li> <li>experimenting with templates in subpages of one's userpage</li> <li><a href="/wiki/Help:Image_page#Caption" class="mw-redirect" title="Help:Image page">using as the caption of an image the editable part of its image page</a></li> <li>inclusion of pages in other pages in the same namespace, e.g. having an extra page associated with each page, such as a to-do list, with a simple name correspondence; it can be created and included with {{{{NAMESPACE}}:{{PAGENAME}}/todo}}.</li></ul> <p>As usual the template name is case sensitive except (on most projects) for the first letter, and a blank space is equivalent with an underscore (as opposed to parameter names, see below: they are case-sensitive, even with respect to the first letter, and spaces are distinguished from underscores). </p><p>One can call a template that calls another template. If a template calls itself directly or indirectly, inclusion works only on one level for each template. However, with templates redirecting to the template that one would want to call recursively, one can achieve recursion without having to make copies of the whole template content, with the number of levels limited by the number of redirects. See also <a class="mw-selflink-fragment" href="#Repetition_within_a_page">Repetition within a page</a>. </p><p>A <a href="/wiki/Help:Variable" title="Help:Variable">variable</a> in a template is evaluated after insertion in the referring page, i.e. if {{PAGENAME}} occurs in the wikitext of a template, it is rendered as the name of the referring page, not the name of the template. </p><p>A list of templates used on a page, all with links, is given on the edit page. Notes: </p> <ul><li>only those in the template namespace are given, <i>not</i> pages in other namespaces, transcluded in the page</li> <li>even on a section edit page the whole list is given, i.e. also the templates used in other sections</li> <li>even when editing an old version of a page, the list is given for the current version</li> <li>templates for which the tags have not been saved yet are not shown, even on the preview page</li></ul> <p>(<i>Supported in version 1.4 and higher.</i>) </p><p>When saving a page without newline at the end, and going to the edit page again, there is a newline at the end. However, this does not seem to have effect, see the example above and the following example: </p> <pre>{{Numbered list demo}}{{Numbered list demo}} {{Numbered list demo}}</pre> <p>using <a href="/w/index.php?title=Template:Numbered_list_demo&action=edit&redlink=1" class="new" title="Template:Numbered list demo (page does not exist)">Template:Numbered list demo</a>, gives </p><p><a href="/w/index.php?title=Template:Numbered_list_demo&action=edit&redlink=1" class="new" title="Template:Numbered list demo (page does not exist)">Template:Numbered list demo</a><a href="/w/index.php?title=Template:Numbered_list_demo&action=edit&redlink=1" class="new" title="Template:Numbered list demo (page does not exist)">Template:Numbered list demo</a> <a href="/w/index.php?title=Template:Numbered_list_demo&action=edit&redlink=1" class="new" title="Template:Numbered list demo (page does not exist)">Template:Numbered list demo</a> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Use_of_templates_across_projects" data-mw-thread-id="h-Use_of_templates_across_projects"><span data-mw-comment-start="" id="h-Use_of_templates_across_projects"></span>Use of templates across projects<span data-mw-comment-end="h-Use_of_templates_across_projects"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=2" title="Edit section: Use of templates across projects"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Use_of_templates_across_projects","replies":[]}}--></div> <p>A template only works when referred to from a page in the same project. To use it in another project, one has to copy it to there. <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=1126" class="extiw" title="bugzilla:1126">Bugzilla:1126</a> is a request to lift that restriction, i.e. allow interwiki use of templates. </p><p>The adjustments needed in the copy, to work on the other project, can be reduced by using {{SERVER}}, localurl, and generic namespace names, and writing links in a way that works on multiple projects, e.g. <a href="https://meta.wikimedia.org/wiki/Help:Table" class="extiw" title="m:Help:Table">m:Help:Table</a>. For copying multiple templates, <a href="/wiki/Help:Export_and_import" title="Help:Export and import">export and import</a> can be helpful. It is also convenient if the template names can be the same on the other project. Therefore, when choosing template names, check which names are in use on other projects to which people might want to copy the templates. Note that if a template is referred to by something like abc{{NAMESPACE}}, a project with different namespace names requires a different template name, or a redirect. </p><p>Transclusion across projects, hence changing contents from a central place, is only possible: </p> <ul><li>for content in the form of an image on Commons, to any page,</li> <li>for editable content on an image page on Commons, including content transcluded from other pages on Commons, to the corresponding local image pages, if there is no local image with the same name</li></ul> <dl><dd><dl><dd>Those on the central Wikicities work in the separate Wikicities projects, provided that the prefix "wikicities:" is used, see <a href="https://community.fandom.com/wiki/w:Help:Shared_templates" class="extiw" title="wikicities:Help:Shared templates">wikicities:Help:Shared templates</a>.</dd> <dd>Please note that these external Wikicities projects are NOT hosted and managed by the Wikipedia Foundation.</dd></dl></dd></dl> <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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=3" title="Edit section: Parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parameters","replies":[]}}--></div> <p>Template parameters are either named or numbered. They are <a href="https://en.wikipedia.org/wiki/en:Parameter_(computer_science)#Calling_conventions" class="extiw" title="w:en:Parameter (computer science)">called-by-value</a>, and therefore input parameters only. <a href="/w/index.php?title=Template:MW_1.6&action=edit&redlink=1" class="new" title="Template:MW 1.6 (page does not exist)">Template:MW 1.6</a> The syntax is <tt>{{templatename|parname1=parvalue1|parname2=parvalue2}}</tt> with tags <tt>{{{parname1|default}}}</tt>, <tt>{{{parname2|default}}}</tt>, etc. in the template, or <tt>{{templatename|parvalue1|parvalue2}}</tt> with tags <tt>{{{1|default}}}</tt>, <tt>{{{2|default}}}</tt>, etc. in the template. The default (optional, together with the pipe character in front) can be different for every occurrence, and applies if no value is specified when calling the template, not to be confused with the case that the empty value is specified. Thus the formal parameter (the <a href="https://en.wikipedia.org/wiki/en:Free_variables_and_bound_variables" class="extiw" title="w:en:Free variables and bound variables">placeholder</a> for the parameter value) is the parameter name with three pairs of braces. </p><p>Thus the template mechanism involves the following steps: </p> <ul><li>in template calls the template name, parameter names and parameter values depending on variables are evaluated; the result of this step can be viewed by applying subst (possibly multiple times), save and edit, see below; in the case of a variable depending on a variable this may have to be done a second time;</li> <li>the values are assigned to the parameters from left to right (the result can not be directly viewed), meaning that a named or numbered parameter may be specified several times, the last one being the actual value that will be kept when passing the parameter during the final instanciation of the template below.</li> <li>template calls are replaced by template content, where the parameter tags with matching names are replaced by their values or defaults (the result of this step can be viewed by applying subst either again, or directly to the template and the variables).</li></ul> <p>The process is applied recursively until there are no more template calls to replace. </p><p>Spaces before or after a parameter value are normally ignored: </p> <dl><dd>"{{t|a}}" <a href="/w/index.php?title=Template:Ut1&action=edit&redlink=1" class="new" title="Template:Ut1 (page does not exist)">Template:Ut1</a> gives "{{<a href="/w/index.php?title=Template:A&action=edit&redlink=1" class="new" title="Template:A (page does not exist)">a</a>}}".</dd> <dd>"{{t| a}}" gives "{{<a href="/w/index.php?title=Template:A&action=edit&redlink=1" class="new" title="Template:A (page does not exist)">a</a>}}".</dd> <dd>"{{t|a }}" gives "{{<a href="/w/index.php?title=Template:A&action=edit&redlink=1" class="new" title="Template:A (page does not exist)">a</a>}}".</dd></dl> <p>A parameter value can contain a piped link; the "|" in such a link is not taken as parameter separator. </p> <dl><dd>Example: "{{t|[[a|b]]}}" gives "{{[[Template:<a href="/w/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">b</a>|<a href="/w/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">b</a>]]}}".</dd> <dd>Example: "{{t|[[a|b]] }}" gives "{{[[Template:<a href="/w/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">b</a> |<a href="/w/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">b</a> ]]}}".</dd></dl> <p>(In this case the space <i>has</i> effect.) </p><p>On rendering, surplus parameter values (including named parameters that do not occur in the template) are ignored: {{t|a|b}} gives {{<a href="/w/index.php?title=Template:A&action=edit&redlink=1" class="new" title="Template:A (page does not exist)">a</a>}}. </p><p>Parameters without names (i.e. that don't contain an equal sign) are numbered implicitly starting by 1, from left to right. </p> <dl><dd>Example: "{{t|a|b|c}}" is equivalent to "{{t|1=a|2=b|3=c}}"</dd></dl> <p>Numbered parameters can also be skipped or can be specified in alternate order by numbering them specifically. </p> <dl><dd>Example: "{{t|3=c|2=b|1=a}}" is equivalent to "{{t|1=a|2=b|3=c}}"</dd> <dd>Example: "{{t|a|b|c|10=j}}" is equivalent to "{{t|1=a|2=b|3=c|10=j}}"</dd></dl> <p>Template calls can contain multiple occurences of the same named parameter, and a numbered parameter can be specified multiple times by using its number explicitly. The effective value of parameters is the value of the last occurence (from left to right) of the parameter with the same name, once the parameter names have been evaluated. </p> <dl><dd>Example: "{{t|a|b|c|2=B}}" is equivalent to "{{t|a|B|c}}"</dd></dl> <p>The final list of formal formal parameters before the template itself is instanciated is then unordered because the list is indexed by the evaluated parameter named (this list is an <a href="/w/index.php?title=Associative_array&action=edit&redlink=1" class="new" title="Associative array (page does not exist)">associative array</a>). </p><p>A useful example that uses of multiple assignments of parameters with the same name (and thus allowing parameter overrides) is performed in the <a href="/w/index.php?title=Template:If_defined_call1&action=edit&redlink=1" class="new" title="Template:If defined call1 (page does not exist)">en:Template:If defined call1</a> template used for example in English Wikipedia (and many other localized editions). </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Restrictions_on_parameter_values" data-mw-thread-id="h-Restrictions_on_parameter_values"><span data-mw-comment-start="" id="h-Restrictions_on_parameter_values"></span>Restrictions on parameter values<span data-mw-comment-end="h-Restrictions_on_parameter_values"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=4" title="Edit section: Restrictions on parameter values"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Restrictions_on_parameter_values","replies":[]}}--></div> <ul><li>If a parameter value contains an equals sign, the parameter name must be put explicitly, even when it is 1, 2, 3, etc.</li></ul> <ul><li>If the expression for a parameter value contains two consecutive closing braces which are not part of a variable or parameter tag, they have to be put in nowiki tags.</li></ul> <ul><li>If the expression for a parameter value contains a pipe character (|) which is not part of a piped link or within an image tag, it has to be put in nowiki tags: <nowiki>|</nowiki>.</li></ul> <ul><li>The expression for a parameter value cannot contain the variable localurl with query string, due to the pipe character.</li></ul> <ul><li>A parameter value can be quite long, see <a href="/w/index.php?title=Help:Long_parameter_demo&action=edit&redlink=1" class="new" title="Help:Long parameter demo (page does not exist)">Help:Long parameter demo</a>.</li></ul> <ul><li>A parameter value can contain pairs of square brackets or text to be used within a link, but not a closing part of one link and an opening part of another link: {{tlis|abc]]def[[ghi}}</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Named_vs._numbered_parameters" data-mw-thread-id="h-Named_vs._numbered_parameters"><span data-mw-comment-start="" id="h-Named_vs._numbered_parameters"></span>Named vs. numbered parameters<span data-mw-comment-end="h-Named_vs._numbered_parameters"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=5" title="Edit section: Named vs. numbered parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Named_vs._numbered_parameters","replies":[]}}--></div> <p>Advantage of numbering: </p> <ul><li>in the template call no name or "=" is needed; this means less to type and also less to memorize or lookup (on the other hand, one has to memorize or lookup the order); an exception is when the value contains "=": then the other equals sign is needed, with the parameter number in front.</li> <li>numbers are international, both in the template tags and in the parameter tags in the template, no parameter name has to be translated (alternatively, one can e.g. use English names, only editors would see them and need to understand them)</li></ul> <p>Advantages of naming: </p> <ul><li>the order of specifying the values does not matter <ul><li>a dummy unnamed parameter for comment and for formatting the template call can be inserted at any time, without planning in advance or renumbering (in the case of unplanned insertion of a dummy parameter between numbered ones, the text has to contain an equals sign; this works even if there is a newline somewhere before the "=", although a newline is not allowed in a parameter name).</li></ul></li> <li>the template is easier to understand</li> <li>some special techniques use the fact that multiple assignments of values to the same parameter in the same template call is allowed and results in the last value being used; this implies that at least one parameter name is specified explicitly in the template call</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Mix_of_named_and_unnamed_parameters" data-mw-thread-id="h-Mix_of_named_and_unnamed_parameters"><span data-mw-comment-start="" id="h-Mix_of_named_and_unnamed_parameters"></span>Mix of named and unnamed parameters<span data-mw-comment-end="h-Mix_of_named_and_unnamed_parameters"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=6" title="Edit section: Mix of named and unnamed parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Mix_of_named_and_unnamed_parameters","replies":[]}}--></div> <p>In the case of a mix of named and unnamed parameters in a template tag, the unnamed parameters are numbered 1,2,3,.., so they are <i>not</i> numbered according to the position in the mixed list as a whole. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Template_page" data-mw-thread-id="h-Template_page"><span data-mw-comment-start="" id="h-Template_page"></span>Template page<span data-mw-comment-end="h-Template_page"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=7" title="Edit section: Template page"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template_page","replies":["h-Template_page_if_no_defaults_have_been_specified-Template_page"]}}--></div> <p>The following are identical: </p> <ul><li>the rendering of the wikitext of the template (this is on the template page, and would be the same in other pages with that wikitext)</li> <li>the rendering of the template on a page that calls it without parameters</li></ul> <p>Thus the defaults are shown. </p> <div class="mw-heading mw-heading3"><h3 id="Template_page_if_no_defaults_have_been_specified" data-mw-thread-id="h-Template_page_if_no_defaults_have_been_specified-Template_page"><span data-mw-comment-start="" id="h-Template_page_if_no_defaults_have_been_specified-Template_page"></span>Template page if no defaults have been specified<span data-mw-comment-end="h-Template_page_if_no_defaults_have_been_specified-Template_page"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=8" title="Edit section: Template page if no defaults have been specified"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In simple cases this corresponds to treating the parameter tags as ordinary text, for example: </p><p>"{{t2}}" (using <a href="/w/index.php?title=Template:T2&action=edit&redlink=1" class="new" title="Template:T2 (page does not exist)">Template:t2</a> containing [[:Template:T2]]) gives <a href="/w/index.php?title=Template:T2&action=edit&redlink=1" class="new" title="Template:T2 (page does not exist)">Template:T2</a> </p><p>Similarly, if part of the parameters is undefined, only those show up as {{{<i>parameter number or name</i>}}}. </p><p>However, if a parameter is in another template call, then, as a result of what was explained in the previous section, the template page seemingly demonstrates an error in the wikitext: it is confusing, as a result of parsing the code differently from when it is used, i.e. called with a parameter value. </p><p>Thus, for getting informed about the contents of a template, just looking at the template page is insufficient (because it is ambiguous) and misleading. Note also that variable tags are not shown, but evaluated. However, some formatting aspects may show up which are not readily seen from the edit box. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Template_talk_page" data-mw-thread-id="h-Template_talk_page"><span data-mw-comment-start="" id="h-Template_talk_page"></span>Template talk page<span data-mw-comment-end="h-Template_talk_page"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=9" title="Edit section: Template talk page"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template_talk_page","replies":[]}}--></div> <p>The template page is of a different nature than other pages. It is not for explaining anything to the reader, but for defining the template for the system (this is done by the wikitext, the rendered page is just a by-product). Therefore the template talk page has an especially important role. It typically consists of two parts: </p> <ul><li>the first part explaining the template and its parameters <ul><li>preferably examples are given of template calls (put them in nowiki tags) and the results (put the template call without nowiki tags in the wikitext)</li></ul></li> <li>the second part used for the ordinary talk page function</li></ul> <p>In complicated cases, "subst:" can be very helpful in the explanation, see below. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="A_parameter_value_depending_on_parameters" data-mw-thread-id="h-A_parameter_value_depending_on_parameters"><span data-mw-comment-start="" id="h-A_parameter_value_depending_on_parameters"></span>A parameter value depending on parameters<span data-mw-comment-end="h-A_parameter_value_depending_on_parameters"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=10" title="Edit section: A parameter value depending on parameters"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-A_parameter_value_depending_on_parameters","replies":[]}}--></div> <p>As mentioned above, if a parameter is left undefined, the triple braced parameter name in the result does not function as a parameter if the page is called as a template from another page; if it should, do not omit the parameter value but specify it in terms of a parameter of the calling page; compare: </p> <ul><li>{{t2a|b}} (using <a href="/w/index.php?title=Template:T2a&action=edit&redlink=1" class="new" title="Template:T2a (page does not exist)">Template:t2a</a> containing [[:Template:T2a]]) gives <a href="/w/index.php?title=Template:T2a&action=edit&redlink=1" class="new" title="Template:T2a (page does not exist)">Template:T2a</a></li> <li>{{t2a1|b}} (using <a href="/w/index.php?title=Template:T2a1&action=edit&redlink=1" class="new" title="Template:T2a1 (page does not exist)">Template:t2a1</a> containing [[:Template:T2a1]]) gives <a href="/w/index.php?title=Template:T2a1&action=edit&redlink=1" class="new" title="Template:T2a1 (page does not exist)">Template:T2a1</a>.</li> <li>Similarly, {{t2a2|b}} (using <a href="/w/index.php?title=Template:T2a2&action=edit&redlink=1" class="new" title="Template:T2a2 (page does not exist)">Template:t2a2</a> containing [[:Template:T2a2]]) gives <a href="/w/index.php?title=Template:T2a2&action=edit&redlink=1" class="new" title="Template:T2a2 (page does not exist)">Template:T2a2</a>. See also below.</li></ul> <p>The most straightforward way of expressing a parameter value in terms of a parameter is using the same name and making it equal, e.g. {{Lan is|lr=af|le={{{le}}}}} in <a href="/w/index.php?title=Template:Lan_is_mr&action=edit&redlink=1" class="new" title="Template:Lan is mr (page does not exist)">Template:Lan is mr</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Remarks" data-mw-thread-id="h-Remarks"><span data-mw-comment-start="" id="h-Remarks"></span>Remarks<span data-mw-comment-end="h-Remarks"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=11" title="Edit section: Remarks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Remarks","replies":[]}}--></div> <p>{{t2||a}} makes the first parameter equal to the empty string rather than leaving it undefined: it gives <a href="/w/index.php?title=Template:T2&action=edit&redlink=1" class="new" title="Template:T2 (page does not exist)">Template:T2</a>. By treating the second unnamed parameter as a parameter with the name "2", the first unnamed parameter can be left undefined. </p> <dl><dd>Example: {{t2|2=a}} gives <a href="/w/index.php?title=Template:T2&action=edit&redlink=1" class="new" title="Template:T2 (page does not exist)">Template:T2</a>.</dd></dl> <p>If the parameter is used in a tag like <font size> the default text may give invalid code that is conveniently ignored, rather than resulting in perhaps ugly code being rendered (but this may depend on the browser). See e.g. <a href="/w/index.php?title=Template_talk:Fontsize&action=edit&redlink=1" class="new" title="Template talk:Fontsize (page does not exist)">Template talk:Fontsize</a>. </p><p>Parameter names (as opposed to template names) are case-sensitive, even with respect to the first letter, and spaces are distinguished from underscores. The <a href="https://en.wikipedia.org/wiki/en:String_(computer_science)#Formal_theory" class="extiw" title="w:en:String (computer science)">empty string</a> is also a valid parameter name, see <a href="/w/index.php?title=Template:T_empty_string_as_parameter_name&action=edit&redlink=1" class="new" title="Template:T empty string as parameter name (page does not exist)">Template:T empty string as parameter name</a>. </p><p>Parameter 02 is distinguished from parameter 2. </p><p>Note that parameters in the <a href="/w/index.php?title=MediaWiki_namespace&action=edit&redlink=1" class="new" title="MediaWiki namespace (page does not exist)">MediaWiki namespace</a> (interface messages) are written differently: as $1, $2, etc., see <a href="/w/index.php?title=Meta-Wikimedia:MediaWiki_namespace_text&action=edit&redlink=1" class="new" title="Meta-Wikimedia:MediaWiki namespace text (page does not exist)">Meta-Wikimedia:MediaWiki namespace text</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Equals_sign_in_parameter_value" data-mw-thread-id="h-Equals_sign_in_parameter_value"><span data-mw-comment-start="" id="h-Equals_sign_in_parameter_value"></span>Equals sign in parameter value<span data-mw-comment-end="h-Equals_sign_in_parameter_value"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=12" title="Edit section: Equals sign in parameter value"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Equals_sign_in_parameter_value","replies":[]}}--></div> <p>When a parameter value contains an equals sign, the parameter name must be stated explicitly, otherwise the part of the parameter value before the equals sign is taken as the parameter name. If that happens accidently, this parameter is likely to be unused, hence harmless, but the intended implicit parameter 1, 2, or 3, etc., gets no value. </p> <dl><dd>Example: {{TTT|a=b|c}} <a href="/w/index.php?title=Template:Ut1&action=edit&redlink=1" class="new" title="Template:Ut1 (page does not exist)">Template:Ut1</a> gives <a href="/w/index.php?title=Template:TTT&action=edit&redlink=1" class="new" title="Template:TTT (page does not exist)">Template:TTT</a> (unused parameter a is assigned the value b, the first parameter value for which no parameter name is specified is assigned to the parameter with the implicit name "1" — it reads like so: Use template TTT, assign "b" to the perameter "a", use the value "c" for your first <i>implicit</i> parameter {{{1}}}.), while {{TTT|1=a=b|2=c}} gives <a href="/w/index.php?title=Template:TTT&action=edit&redlink=1" class="new" title="Template:TTT (page does not exist)">Template:TTT</a> (the first parameter is assigned the value "a=b" — it reads like so: Use template TTT, assign "a=b" to the <i>expressed</i> parameter "1", assign "c" to the <i>expressed</i> parameter "2"). In this case, if template TTT had a perameter {{{3}}}, {{TTT|1=a=b|2=c|d}}, "d" would be assigned to "3" as first <i>implicit</i> parameter without a value.</dd></dl> <p>The same applies if a parameter value depends on a parameter, and <i>may</i> therefore contain an equals sign. Compare: </p> <ul><li>{{t2a1|1=x=y}} (using <a href="/w/index.php?title=Template:T2a1&action=edit&redlink=1" class="new" title="Template:T2a1 (page does not exist)">Template:t2a1</a> containing [[:Template:T2a1]]) gives <a href="/w/index.php?title=Template:T2a1&action=edit&redlink=1" class="new" title="Template:T2a1 (page does not exist)">Template:T2a1</a>.</li> <li>{{t2a2|1=x=y}} (using <a href="/w/index.php?title=Template:T2a2&action=edit&redlink=1" class="new" title="Template:T2a2 (page does not exist)">Template:t2a2</a> containing [[:Template:T2a2]]) gives <a href="/w/index.php?title=Template:T2a2&action=edit&redlink=1" class="new" title="Template:T2a2 (page does not exist)">Template:T2a2</a>.</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="msgnw" data-mw-thread-id="h-msgnw"><span data-mw-comment-start="" id="h-msgnw"></span>msgnw<span data-mw-comment-end="h-msgnw"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=13" title="Edit section: msgnw"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-msgnw","replies":[]}}--></div> <p>The prefix <b>msgnw</b> (short for "message, nowiki") is used to display the uninterpreted wikitext of a template (the same thing you'd see if you were editing the page) on another page. An exception is that numbered and unnumbered lists are rendered as such instead of displaying # or * signs. Parameter values are ignored. </p><p>Examples: </p><p><a href="/w/index.php?title=Template:En&action=edit&redlink=1" class="new" title="Template:En (page does not exist)">Template:en</a> </p> <ul><li>{{msgnw:en}} gives [[:Template:En]]</li> <li>{{en}} gives <a href="/w/index.php?title=Template:En&action=edit&redlink=1" class="new" title="Template:En (page does not exist)">Template:En</a></li></ul> <p><a href="/w/index.php?title=Template:T2&action=edit&redlink=1" class="new" title="Template:T2 (page does not exist)">Template:t2</a> </p> <ul><li>{{msgnw:t2|a|b}} gives [[:Template:T2]]</li> <li>{{t2|a|b}} gives <a href="/w/index.php?title=Template:T2&action=edit&redlink=1" class="new" title="Template:T2 (page does not exist)">Template:T2</a></li></ul> <p><a href="/w/index.php?title=Template:Numbered_list_demo&action=edit&redlink=1" class="new" title="Template:Numbered list demo (page does not exist)">Template:Numbered list demo</a> </p><p>{{msgnw:Numbered list demo}} gives: [[:Template:Numbered list demo]] </p><p>{{Numbered list demo}} gives: <a href="/w/index.php?title=Template:Numbered_list_demo&action=edit&redlink=1" class="new" title="Template:Numbered list demo (page does not exist)">Template:Numbered list demo</a> </p><p>The edit box shows: </p> <pre>#Amsterdam #Rotterdam #The Hague </pre> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Link_for_editing_a_template" data-mw-thread-id="h-Link_for_editing_a_template"><span data-mw-comment-start="" id="h-Link_for_editing_a_template"></span>Link for editing a template<span data-mw-comment-end="h-Link_for_editing_a_template"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=14" title="Edit section: Link for editing a template"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Link_for_editing_a_template","replies":[]}}--></div> <p>An edit page shows template tags in the edit box, not the wikitext of the included templates. A list of links is provided to the templates used on the page. To edit a template, one can follow the link, and go to the edit page of the template. </p><p>More convenient is to have a special link for editing the template on the calling page. This link can be put in the template itself. Since these edit links are similar for various templates, it can be made a template itself, with the name of the template as parameter. See e.g. <a href="/wiki/Template:Edit" title="Template:Edit">en:template:edit</a> and <a href="/wiki/Train" class="mw-disambig" title="Train">en:Train</a>. </p><p><br/> For a template containing only one paragraph or less, without links or images, one can also make the whole contents link to the edit page. </p><p>This is e.g. convenient for editing an individual entry in a table, without having to search in the wikitext of the table. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Editing_sections_of_included_templates" data-mw-thread-id="h-Editing_sections_of_included_templates"><span data-mw-comment-start="" id="h-Editing_sections_of_included_templates"></span>Editing sections of included templates<span data-mw-comment-end="h-Editing_sections_of_included_templates"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Editing_sections_of_included_templates&action=edit&section=T-1" title="Edit section: Editing sections of included templates"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Editing_sections_of_included_templates","replies":[]}}--></div> <p><i>This section appears both in <a href="/wiki/Help:Section#Editing_sections_of_included_templates" title="Help:Section">Help:Section</a> and in <a class="mw-selflink-fragment" href="#Editing_sections_of_included_templates">Help:Template</a><a class="external text" href="https://en.wikiquote.org/w/index.php?title=Help:Template&action=purge">.</a></i> </p><p>The editing facilities can also be applied to a section of an included template. This section, <a href="/wiki/Help:Editing_sections_of_included_templates" title="Help:Editing sections of included templates">Help:Editing sections of included templates</a>, is an example. </p><p>For the purpose of section editing the extent of a section is governed by the headers in the calling page itself. It may consist of a part before the template tag, the template tag, and a part after the template tag, even if the template has sections. </p><p>It tends to be confusing if the extent of sections according to the system is different from what the rendered page suggests. To avoid this: </p> <ul><li>if a template has headers, do not put any text before the first header</li> <li>in the calling page, start a new section after a template that itself has sections</li></ul> <p>It may be convenient, where suitable, to start a template with a section header, even if normally the contents of the template would not need a division into sections, and thus the template is only one section. The edit facilities for editing sections can then be used for editing the template from a page that includes it, without specially putting an edit link. This template is an example, it does not need a <i>division</i> into sections, but has a header at the top. </p><p>The __NOEDITSECTION__ tag in <i>any</i> template affects both that template, the pages it's included on, and any other templates included on the same page. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Usage" data-mw-thread-id="h-Usage"><span data-mw-comment-start="" id="h-Usage"></span>Usage<span data-mw-comment-end="h-Usage"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=15" title="Edit section: Usage"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Usage","replies":["h-Navigational_templates-Usage","h-Composite_pages-Usage","h-Pages_with_a_common_section-Usage","h-Repetition_within_a_page-Usage"]}}--></div> <p>Templates are useful for any text for which one wants a copy in two or more pages, and there is no need for each copy to be edited independently, to adapt it to the page it is in. Since parameters can be used, versions may to that extent even be different, and parameter values can be edited independently for each. Templates are not only convenient, but they can also "force" a useful uniformity. See also <a href="https://en.wikipedia.org/wiki/en:Subroutine#Advantages_of_subprograms" class="extiw" title="w:en:Subroutine">advantages of subprograms</a>. </p><p>Typical applications are: </p> <ul><li><a href="https://en.wikipedia.org/wiki/en:Wikipedia:Template_messages" class="extiw" title="w:en:Wikipedia:Template messages">template messages</a> such as <a href="https://en.wikipedia.org/wiki/en:Template:stub" class="extiw" title="w:en:Template:stub">w:en:Template:stub</a></li> <li><a href="https://en.wikipedia.org/wiki/en:Wikipedia:Navigational_templates" class="extiw" title="w:en:Wikipedia:Navigational templates">navigational templates</a> such as <a href="https://en.wikipedia.org/wiki/en:Template:europe" class="extiw" title="w:en:Template:europe">w:en:Template:europe</a></li> <li><a href="https://en.wikipedia.org/wiki/en:Wikipedia:Infobox" class="extiw" title="w:en:Wikipedia:Infobox">infoboxes</a>, each time showing the same kind of information in the same format, but each time for a different case, using parameters, e.g. the <a href="https://en.wikipedia.org/wiki/en:Template:Infobox_Countries" class="extiw" title="w:en:Template:Infobox Countries">w:en:Template:Infobox Countries</a>.</li> <li>provide cross-language portability of texts which are largely internationally the same, but contain some standard terms different in each language; the standard terms are replaced by {{..}} referring to template pages which have the same name but localised content in each language. This is <a href="https://meta.wikimedia.org/wiki/Using_templates_in_Wiktionary" class="extiw" title="m:Using templates in Wiktionary">applied in Wiktionaries</a> for names of languages, terms like "noun", etc.; it is also <a href="https://en.wikipedia.org/wiki/en:Wikipedia:Template_messages#Taxobox_components_.28Taxons.29" class="extiw" title="w:en:Wikipedia:Template messages">applied for taxoboxes</a>, see e.g. <a href="https://en.wikipedia.org/wiki/en:Template:Familia" class="extiw" title="w:en:Template:Familia">w:en:Template:Familia</a> and <a href="https://en.wikipedia.org/wiki/fr:Mod%C3%A8le:Familia" class="extiw" title="w:fr:Modèle:Familia">w:fr:Modèle:Familia</a>.</li> <li>allow a composite image, composed of a table of images, to be specified by a template tag which itself has a corresponding table-like lay-out, see <a href="https://en.wikipedia.org/wiki/en:Template:Chess_position" class="extiw" title="w:en:Template:Chess position">w:en:Template:Chess position</a> and <a href="https://en.wikipedia.org/wiki/en:Template:Game_of_Go_Position" class="extiw" title="w:en:Template:Game of Go Position">w:en:Template:Game of Go Position</a> (the latter example also shows that the number of parameters a template can have is quite large, in this case 362). Newlines in parameter values provide the lay-out of the template tag, but they are not allowed in image names, therefore they are put within comment tags; alternatively, dummy parameters could be used on these positions.</li></ul> <p>Various combinations are possible. E.g., the last two could be combined, so that e.g. every language version of Wikipedia has the same Infobox Countries template (for each project a copy, because the template mechanism can not import across projects), which has parameters for the data, and refers to templates with translations of standard terms. </p><p>See also <b><a href="/wiki/Help:Template_names,_variable_names_and_parameters_depending_on_a_variable_or_parameter" class="mw-redirect" title="Help:Template names, variable names and parameters depending on a variable or parameter">Help:Template names, variable names and parameters depending on a variable or parameter</a></b>. </p> <div class="mw-heading mw-heading3"><h3 id="Navigational_templates" data-mw-thread-id="h-Navigational_templates-Usage"><span data-mw-comment-start="" id="h-Navigational_templates-Usage"></span>Navigational templates<span data-mw-comment-end="h-Navigational_templates-Usage"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=16" title="Edit section: Navigational templates"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A common, simple type of navigational template in a hierarchy of pages is one with the names, with links, of a parent page and child pages. It is placed on all the pages it lists. Thus a page that is not at the top or bottom of the hierarchy has two templates, one with its parent and siblings, and one with its children. </p><p>Variations also occur, such as pages having two parents, etc. </p><p><a href="/w/index.php?title=Self_link&action=edit&redlink=1" class="new" title="Self link (page does not exist)">Self links</a> do not give any complication: they are neatly displayed in <a class="mw-selflink selflink">bold</a> and not as link. However, templates should have the correct page names and not rely on redirecting, since the feature does not work in that case. Also for a link to a section the self-link feature does not work. </p><p>A navigational template may also just allow going forward and backward in a linear sequence, e.g. <a href="/w/index.php?title=Template:Pope&action=edit&redlink=1" class="new" title="Template:Pope (page does not exist)">en:Template:Pope</a>. For the predecessor of the first and the successor of the last a message like "none" can be used. This is not applicable in the case of a cycle, such as the days of the week. </p> <div class="mw-heading mw-heading3"><h3 id="Composite_pages" data-mw-thread-id="h-Composite_pages-Usage"><span data-mw-comment-start="" id="h-Composite_pages-Usage"></span>Composite pages<span data-mw-comment-end="h-Composite_pages-Usage"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=17" title="Edit section: Composite pages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The wikitext of a page may (partly or fully) consist of tags for the inclusion of component pages. The "templates" are not necessarily in the template namespace, and may be more or less self-contained pages by themselves. An advantage of putting the components in the template namespace is that they are then included in the list of templates used on the composite page, all with links, on its edit page. On the other hand, the component page may, by itself, be of a nature that it belongs in e.g. the main namespace, while the prefix would suggest otherwise; also the prefix would clutter the pagename. </p><p>Examples are: </p> <ul><li><a href="https://en.wikipedia.org/wiki/en:Wikipedia:Village_pump" class="extiw" title="w:en:Wikipedia:Village pump">w:en:Wikipedia:Village pump</a> with six component pages, e.g. <a href="https://en.wikipedia.org/wiki/en:Wikipedia:Village_pump_(technical)" class="extiw" title="w:en:Wikipedia:Village pump (technical)">w:en:Wikipedia:Village pump (technical)</a></li> <li>daily a page like <a href="https://en.wikipedia.org/wiki/en:Wikipedia:Votes_for_deletion/Log/2005_May_31" class="extiw" title="w:en:Wikipedia:Votes for deletion/Log/2005 May 31">w:en:Wikipedia:Votes for deletion/Log/2005 May 31</a> where each component page consists of the discussion on the deletion of one Wikipedia page, e.g. <a href="https://en.wikipedia.org/wiki/en:Wikipedia:Votes_for_deletion/Sp3tt" class="extiw" title="w:en:Wikipedia:Votes for deletion/Sp3tt">w:en:Wikipedia:Votes for deletion/Sp3tt</a> (for this day there are 75 of such component pages)</li> <li><a href="https://meta.wikimedia.org/wiki/Meta:Translation/Coordination" class="extiw" title="m:Meta:Translation/Coordination">m:Meta:Translation/Coordination</a>, mainly containing <ul><li><a href="https://meta.wikimedia.org/wiki/Meta:Translation/Coordination/List/Meta" class="extiw" title="m:Meta:Translation/Coordination/List/Meta">m:Meta:Translation/Coordination/List/Meta</a></li> <li><a href="https://meta.wikimedia.org/wiki/Meta:Translation/Coordination/List/Main" class="extiw" title="m:Meta:Translation/Coordination/List/Main">m:Meta:Translation/Coordination/List/Main</a></li></ul></li> <li><a href="/w/index.php?title=Template:Pi&action=edit&redlink=1" class="new" title="Template:Pi (page does not exist)">Template:Pi</a> <ul><li><a href="/w/index.php?title=Template:Pi_w&action=edit&redlink=1" class="new" title="Template:Pi w (page does not exist)">Template:Pi w</a></li></ul></li></ul> <p>This allows the user the choice between viewing the component pages separately or combinedly. One may want to view a page separately if one has a slow connection; also sometimes people have sentimental reasons for having a separate page about a topic, e.g. a village. Viewing the combined page is much more convenient if there are many small component pages; even if a subbtopic page does not provide additional info, if it exists anyway, and is linked to, it is useful to display the content (making clear that the whole content is shown), it saves the trouble of checking the contents by following the link. </p><p>In the latter case the search function of the browser can be used for searching in the combined page. Similar to the section editing feature, it allows editing a component page; however, there is no possibility to have the combined wikitext in the edit box. </p><p>Edit history, recent changes, watching pages, and "what links here" work separately for the component pages and the <i>composition</i> page, not for the <i>composite</i> page. Related changes works for the component pages and for the composite page. Page protection can be set for selected component pages and for the composition page, not directly for the composite page. </p><p>The talk page of a composition page is used to talk about the composition and the page in general, and could in addition be a composite page of the talk pages of the component pages. </p><p>A composite page has an integrated TOC and section numbering; the numbering is not reset for each component page. </p><p>Editing a section of a component page can be done directly from the composite page, see <a href="/wiki/Help:Section#Editing_sections_of_included_templates" title="Help:Section">editing sections of included templates</a>. After saving, one ends up at the page for the component page to which the section belongs. </p><p>On projects with the <a href="/wiki/Help:Interwiki_linking#Interlanguage_link_.28software_feature.29" title="Help:Interwiki linking">interlanguage link feature</a> the composite page shows the combined interlanguage links of all component pages, hence possibly multiple links for one language or even for one page. </p><p>For easy access to the component pages, links to them on the composite page (for example by self-links on the component pages) are convenient. Alternatively, access is through section editing, or, if the component pages are in the template namespace, through the list of templates called from the composite page, at its edit page. </p><p>Conversely, for easy access from a component page to the composite page(s) that call(s) it (if there are not too many of them) it is convenient to link the component page to them (on a composite page one becomes a self-link). </p><p>See also <a href="https://en.wikipedia.org/wiki/en:Wikipedia_talk:Template_namespace#transcluding_prose" class="extiw" title="w:en:Wikipedia talk:Template namespace">w:en:Wikipedia talk:Template namespace#transcluding prose</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Pages_with_a_common_section" data-mw-thread-id="h-Pages_with_a_common_section-Usage"><span data-mw-comment-start="" id="h-Pages_with_a_common_section-Usage"></span>Pages with a common section<span data-mw-comment-end="h-Pages_with_a_common_section-Usage"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=18" title="Edit section: Pages with a common section"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A section on the relationship of the subjects A and B, or a subtopic equally relevant for A as for B, can be put both in page A and in page B, by making it a separate page C, called as a template from A and B. </p><p>Remarks: </p> <ul><li>For readers reading both A and B, it is useful that the duplication is indicated by a message or a special lay-out; otherwise it is confusing and inconvenient.</li> <li>After saving one ends up viewing the template page. For easy access to the calling pages it is convenient to link the called page to them (on a calling page one becomes a self-link). This may well be integrated in the message about the duplication. It is even more convenient than the two-step link as shown above.</li> <li>The section level of the embedded section(s) has to be the same in each embedding page. The same applies to lay-out and style.</li> <li>Pages like C can be put in <ul><li>the same namespace as A and B; advantage: <ul><li>the kind of content of C is the same as that of A and B</li></ul></li> <li>the template namespace; advantages: <ul><li>C appears in the list of templates called from A and B, at their edit pages</li> <li>C by itself may not satisfy the standards for pages in the namespace of A and B, such as providing context (however, the message about the duplication explains it)</li></ul></li></ul></li></ul> <p>For various remarks which also apply here, see also the previous section. </p> <div class="mw-heading mw-heading3"><h3 id="Repetition_within_a_page" data-mw-thread-id="h-Repetition_within_a_page-Usage"><span data-mw-comment-start="" id="h-Repetition_within_a_page-Usage"></span>Repetition within a page<span data-mw-comment-end="h-Repetition_within_a_page-Usage"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=19" title="Edit section: Repetition within a page"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>For a succession of similar pieces of content, as in a list, a computer program would use a <a href="https://en.wikipedia.org/wiki/en:Conditional_branching#Loops" class="extiw" title="w:en:Conditional branching">loop</a>. What comes closest in MediaWiki is putting the loop body in a template, and calling the template repeatedly, usually with a varying parameter value. This is somewhat primitive for a loop: </p> <ul><li>instead of "for i=1 to 5" we need to enumerate the values 1, 2, 3, 4, 5; on the other hand, this gives the versatility to use just as easily less regular values such as de, en, fr (<a href="https://en.wikipedia.org/wiki/en:Conditional_branching#Collection-controlled_loops" class="extiw" title="w:en:Conditional branching">collection-controlled loop</a>).</li> <li>repetition of code is minimized by the template, but the template call itself has to be repeated each time (but see also the next section)</li></ul> <p>Example: </p> <ul><li><a href="/w/index.php?title=Template:List_of_Languages&action=edit&redlink=1" class="new" title="Template:List of Languages (page does not exist)">Template:List of Languages</a> - the "loop body" is in <a href="/w/index.php?title=Template:Lang_def&action=edit&redlink=1" class="new" title="Template:Lang def (page does not exist)">Template:Lang def</a>; compared with putting the content of the latter directly in the list the advantage is that the variable part (the value of "code") occurs once each time in the code, although it is used twice. This is important because the fixed part of the list item code can be copied while the variable part is typically inserted manually.</li></ul> <p>For repetition of the same text the loop body can be a parameter, e.g. <a href="/w/index.php?title=Template:X5&action=edit&redlink=1" class="new" title="Template:X5 (page does not exist)">Template:X5</a> (see <a class="external text" href="https://meta.wikimedia.org/w/index.php?title=Special%3AAllpages&from=X&namespace=10">list</a>). </p><p>A double loop is achieved by a second template that repeatedly calls the first. Similarly for a triple loop, etc. See e.g. <a href="https://en.wikipedia.org/wiki/en:Template:Ld" class="extiw" title="w:en:Template:Ld">w:en:Template:Ld</a>, <a href="https://en.wikipedia.org/wiki/en:Template:L2d" class="extiw" title="w:en:Template:L2d">w:en:Template:L2d</a>, and <a href="https://en.wikipedia.org/wiki/en:Template:L3d" class="extiw" title="w:en:Template:L3d">w:en:Template:L3d</a>. </p><p>An example where the same template is used for different loop levels is <a href="/w/index.php?title=Template:Loop_2&action=edit&redlink=1" class="new" title="Template:Loop 2 (page does not exist)">Template:Loop 2</a>. Because the software has a built-in protection against infinite nesting (if there is, there will be an error e.g. <code>Fatal error: Maximum execution time of 30 seconds exceeded in /w/includes/Parser.php on line 775</code>), a redirect is used for each level. The number of levels that the template can handle is determined by the number of parameters specified in the two template calls it comprises (because going up a level requires an extra parameter) and the number of existing redirects. </p><p>Similarly <a href="/w/index.php?title=Template:Lanlp_1&action=edit&redlink=1" class="new" title="Template:Lanlp 1 (page does not exist)">Template:Lanlp 1</a> is used for both the inner and the outer of a double loop. Adding an item (here a language) adds to each row and also adds an extra row. </p> <div class="mw-heading mw-heading4"><h4 id="Providing_effective_repetition_without_repetition_of_similar_template_calls_in_the_wikitext" data-mw-thread-id="h-Providing_effective_repetition_without_repetition_of_similar_template_calls_in_t-Repetition_within_a_page"><span data-mw-comment-start="" id="h-Providing_effective_repetition_without_repetition_of_similar_template_calls_in_t-Repetition_within_a_page"></span>Providing effective repetition without repetition of similar template calls in the wikitext<span data-mw-comment-end="h-Providing_effective_repetition_without_repetition_of_similar_template_calls_in_t-Repetition_within_a_page"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=20" title="Edit section: Providing effective repetition without repetition of similar template calls in the wikitext"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A technique for repetition of similar template calls without actually putting this list in the wikitext is demonstrated in <a href="https://meta.wikimedia.org/wiki/Template:List_of_template_calls" class="extiw" title="m:Template:List of template calls">m:Template:List of template calls</a>. For an arbitrary template with up to three nameless parameters, it is equivalent to calling the template repeatedly, with the first parameter varying, and the possible other parameters fixed: one specifies the name, the values of the fixed parameters, and the list of values the first parameter should have in consecutive template calls, with a sequential number each, and ending with "end". The technique requires redirects like <a href="/w/index.php?title=Template:List_of_template_calls_3&action=edit&redlink=1" class="new" title="Template:List of template calls 3 (page does not exist)">Template:List of template calls 3</a>, as many as the maximum number of repetitions. </p><p>If e.g. the second parameter varies, or two parameters, then a similar template can be made, but each version requires its own set of redirects. </p><p>Example <a href="/w/index.php?title=Template:Ut1&action=edit&redlink=1" class="new" title="Template:Ut1 (page does not exist)">Template:Ut1</a>: </p><p>{{List of template calls|t2|constant||abc|1|def|2|ghi|end|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||}} </p><p>gives: </p><p><a href="/w/index.php?title=Template:List_of_template_calls&action=edit&redlink=1" class="new" title="Template:List of template calls (page does not exist)">Template:List of template calls</a> </p><p>The empty parameters are needed in accordance with the maximum number of parameters the repeated template can have (currently three) and the maximum number of repetitions. Putting more empty parameters than needed at the end does not matter, but the number of empty parameters in the beginning of the list should be correct. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Images_in_templates" data-mw-thread-id="h-Images_in_templates"><span data-mw-comment-start="" id="h-Images_in_templates"></span>Images in templates<span data-mw-comment-end="h-Images_in_templates"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=21" title="Edit section: Images in templates"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Images_in_templates","replies":[]}}--></div> <p><b>New:</b> In a template, image code parameters can contain template parameters, e.g. </p><p>{{timgi|wiki|50|small}} <nowiki>{{timg1|st|50|pqr}} For cases for which an image is not applicable or available, use a dummy image such as [[w:en:Image:No image.png]]. For an image in a template that should be different for each page in which the template occurs, there are also the following possibilities: *a parameter value can contain the whole image code: <nowiki>{{t|[[Image:Tst.png|50px|bullet]]}} gives {{[[Template:<span typeof="mw:File"><a href="/wiki/File:Tst.png" class="mw-file-description" title="bullet"><img alt="bullet" src="//upload.wikimedia.org/wikipedia/commons/2/27/Tst.png" decoding="async" width="50" height="50" class="mw-file-element" data-file-width="10" data-file-height="10"/></a></span>|<span typeof="mw:File"><a href="/wiki/File:Tst.png" class="mw-file-description" title="bullet"><img alt="bullet" src="//upload.wikimedia.org/wikipedia/commons/2/27/Tst.png" decoding="async" width="50" height="50" class="mw-file-element" data-file-width="10" data-file-height="10"/></a></span>]]}} </p> <ul><li>in projects where external images can be embedded, the url of the image can be a parameter: {{t|http://meta.wikimedia.org/upload/2/27/Tst.png}} gives {{<a href="/w/index.php?title=Template:Http://meta.wikimedia.org/upload/2/27/Tst.png&action=edit&redlink=1" class="new" title="Template:Http://meta.wikimedia.org/upload/2/27/Tst.png (page does not exist)">http://meta.wikimedia.org/upload/2/27/Tst.png</a>}}<br/></li></ul> <dl><dd><dl><dd>Note that this does not work on projects hosted by Wikipedia, due to local restrictions about external references to embedded images (or objects or scripts or stylesheets): these images can only come from the local projet (and will be served by the "<a class="external free" href="https://upload.wikipedia.org/">http://upload.wikipedia.org/</a>" base URL, the complete effective URL being computed and forced by the special [[Image:]] template), or alternatively the images can be imported automatically from the Wikipedia Commons project where they will be found if they are not present in the local project.</dd> <dd>Without this restriction, meant for security, it would be possible for any visitor to include the external reference of an image hosted somewhere else, that would either violate a copyright notice, or would contain in fact another object than an image, such as a malicious script that would be downloaded automatically by the browsers used by all visitors of the Wikipedia article that embeds such fake image.</dd></dl></dd></dl> <ul><li>the image is given a name of the form <i>prefix</i>{{PAGENAME}}<i>suffix</i> (with a suffix, consisting of the file name extension and possibly more, and possibly also a prefix). See examples below. Note that there is little flexibility: changing the name of a page in which the template occurs requires uploading the image again, with the corresponding name.</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Internal_links" data-mw-thread-id="h-Internal_links"><span data-mw-comment-start="" id="h-Internal_links"></span>Internal links<span data-mw-comment-end="h-Internal_links"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=22" title="Edit section: Internal links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Internal_links","replies":["h-Interwiki_links-Internal_links"]}}--></div> <p>In the case of an internal link in a template with the target depending on a parameter, and in the case of a link with the target depending on a template, existence detection works as usual. </p> <div class="mw-heading mw-heading3"><h3 id="Interwiki_links" data-mw-thread-id="h-Interwiki_links-Internal_links"><span data-mw-comment-start="" id="h-Interwiki_links-Internal_links"></span>Interwiki links<span data-mw-comment-end="h-Interwiki_links-Internal_links"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=23" title="Edit section: Interwiki links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Templates can contain interwiki links; this normally means all pages using the template will have the interwiki, which is usually a bad thing unless some fancy footwork is done. To link <i>just the templates</i> across wikis, use the <tt><noinclude></tt> tag. For example: </p> <pre><noinclude> [[de:Vorlage:Korrekter Titel]] [[en:Template:Wrongtitle]] [[es:Plantilla:Título erróneo]] [[fr:Modèle:titre incorrect]] </noinclude> </pre> <p>Be careful when adding categories or interwikis within templates which are meant to be used inline, including within tables or lists: <b>don't add newlines</b> before <noinclude> or after </noinclude> because they will be kept in the resulting wiki code used to generate the page that references that template. </p><p>It is recommanded to insert <noinclude>...</noinclude> at end of articles and templates, by first dropping the newline present at end of all existing articles and templates. The single newline that Wikipedia requires or adds automatically after </noinclude> is discarded when the template is instanciated for rendering the articles that include it. </p><p>See also below. </p> <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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=24" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_links","replies":[]}}--></div> <p>With external link style much is possible. A blank space in a parameter value or template content that is substituted in a URL is not taken as ending the URL, but converted to %20. </p><p>However, a URL can not be composed of: </p> <ul><li>a first part in a parameter and a second part added by the template (although we have seen above that reversed it works: a second part in a parameter and a first part prefixed by the template)</li> <li>a first part in a template and a second part after the template (although we have seen above that reversed it works: the second part in a template and the first part before the template)</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Navigational_images" data-mw-thread-id="h-Navigational_images"><span data-mw-comment-start="" id="h-Navigational_images"></span>Navigational images<span data-mw-comment-end="h-Navigational_images"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=25" title="Edit section: Navigational images"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Navigational_images","replies":[]}}--></div> <p>The following applies in projects where external images can be embedded. </p><p>Examples where <a href="/wiki/Help:Navigational_image" class="mw-redirect" title="Help:Navigational image">the label contains an image</a> and depends on the parameter or template: </p> <ul><li>{{tlil|http://meta.wikimedia.org/upload/2/27/Tst.png}}</li> <li>[[help:link|c{{timgurl}}d]]</li></ul> <p>Notes: </p> <ul><li>the c and d are used to show the more general case, without them the label <i>is</i> instead of <i>contains</i> an image, with perhaps [[help:link|{{timgurl}}]] giving [[help:link|<a href="/w/index.php?title=Template:Timgurl&action=edit&redlink=1" class="new" title="Template:Timgurl (page does not exist)">Template:Timgurl</a>]] the more useful kind.</li> <li>the target can be made variable like above.</li></ul> <p><br/> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Noinclude_and_includeonly" data-mw-thread-id="h-Noinclude_and_includeonly"><span data-mw-comment-start="" id="h-Noinclude_and_includeonly"></span>Noinclude and includeonly<span data-mw-comment-end="h-Noinclude_and_includeonly"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=26" title="Edit section: Noinclude and includeonly"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Noinclude_and_includeonly","replies":[]}}--></div> <p>This feature is not available before version 1.6. </p><p>Anything between <noinclude> and </noinclude> will be processed and displayed only when the page is being viewed directly, not included. Possible applications are: </p> <ul><li>categorising templates; including a page in another page without putting the including page in the categories the included page is in; in particular this is useful when including an article in a user page or test page</li> <li><a href="/wiki/Help:Interwiki_linking#Interlanguage_link_.28software_feature.29" title="Help:Interwiki linking">interlanguage links</a> to similar templates in other languages (Otherwise such a link appears in the edge of the page that includes the template, giving the impression that the link is to a version in the other language of the referring page instead of the template. The link label depends only on the sister project that is linked to, not on the page; it is set in the configuration of the project, typically it is the name of the language in that language. The target is only shown in the hover box and the status bar, depending on the browser.) - see also above.</li> <li>pages in the <a href="/w/index.php?title=MediaWiki_namespace&action=edit&redlink=1" class="new" title="MediaWiki namespace (page does not exist)">MediaWiki namespace</a></li> <li>explanatory text about how to use the template</li></ul> <p>The converse is <includeonly>. Text between <includeonly> and </includeonly> will be processed and displayed only when the page is being included. The obvious application is: </p> <ul><li>Adding all pages containing a given template to a category</li></ul> <p>Note that the usual update problems apply -- if you change the categories inside a template, the categories of the referring pages won't be updated until those pages are edited. </p><p>With these tags a page can also call one of two specified templates with the same parameters, depending on whether the page is included in another page, by putting the tags in the template name part of the template call, as in <a href="/w/index.php?title=Template:Timc&action=edit&redlink=1" class="new" title="Template:Timc (page does not exist)">Template:Timc</a>. See also <a href="/w/index.php?title=Template:Pi&action=edit&redlink=1" class="new" title="Template:Pi (page does not exist)">Template:Pi</a>, where page content is arranged such that a selection of it can be displayed in a different format in a table row. </p><p>"subst" (see below) includes everything, also these tags. </p><p>Note that spaces and newlines between the general content and e.g. the noinclude part are part of the content, so if they are not desired the include tag should directly follow the content without space and not on a new line. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="A_category_tag_in_a_template;_caching_problem" data-mw-thread-id="h-A_category_tag_in_a_template;_caching_problem"><span id="A_category_tag_in_a_template.3B_caching_problem"></span><span data-mw-comment-start="" id="h-A_category_tag_in_a_template;_caching_problem"></span>A category tag in a template; caching problem<span data-mw-comment-end="h-A_category_tag_in_a_template;_caching_problem"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=27" title="Edit section: A category tag in a template; caching problem"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-A_category_tag_in_a_template;_caching_problem","replies":[]}}--></div> <p>If a template contains the code indicating that it is in a <a href="/wiki/Help:Category" title="Help:Category">category</a>, this does not only put that template in the category, but also the pages that include the template. Thus this is typically not applied to categorize templates, but to conveniently put pages in a category, based on the template they use. For example, this page includes <a href="/wiki/Template:H:h" title="Template:H:h">Template:H:h</a> and as a result is in <a href="/w/index.php?title=Category:English_documentation&action=edit&redlink=1" class="new" title="Category:English documentation (page does not exist)">Category:English documentation</a>. </p><p>The page that contains the template correctly lists the categories to which it belongs. However, adding or deleting a category tag in the template does not add or delete the listings on the category page of pages that use the template, until some edit is made in the page that uses the template. </p><p>In other words: </p> <ul><li>lists of categories a page is in, are up-to-date</li> <li>lists of pages in a category are based on the situation just after the last edit of the pages</li></ul> <p>Since adding or removing a category or template tag is obviously an edit there is only a complication when a page is indirectly added to or deleted from a category, through a change in a template the page uses. </p><p>To refresh category pages with respect to the listing of a particular page (adding or deleting the entry), a <a href="/wiki/Help:Editing#Null_edits,_Minor_Edits,_and_Dummy_Edits" title="Help:Editing">null edit</a> can be applied to that page: just applying section edit and saving without changes. </p><p>Thus, a basic principle of templates, that changing the contents of a template automatically changes the pages that contain the template, does not extend to these pages being correctly listed on category pages. It still works, with a delay, for sets of pages which are all frequently edited anyway, for other purposes. </p><p>In other cases the principle is violated. What remains is that just making null edits is somewhat less cumbersome than changing category tags in each page. </p><p>In conclusion, adding or deleting a category tag in a template that is already in use should be avoided unless one is willing to make the null edits, or is willing to accept the (possibly very long) delay during which there is no consistency between the category pages and the category listing on the pages in the categories. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Newline_in_a_template" data-mw-thread-id="h-Newline_in_a_template"><span data-mw-comment-start="" id="h-Newline_in_a_template"></span>Newline in a template<span data-mw-comment-end="h-Newline_in_a_template"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=28" title="Edit section: Newline in a template"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Newline_in_a_template","replies":[]}}--></div> <p>A single newline works like a space, except in a list, there it breaks the list. Since templates containing a single paragraph or less could be called from a list, such templates should avoid single newlines. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Indentation_or_list_code_at_the_beginning_of_template_content" data-mw-thread-id="h-Indentation_or_list_code_at_the_beginning_of_template_content"><span data-mw-comment-start="" id="h-Indentation_or_list_code_at_the_beginning_of_template_content"></span>Indentation or list code at the beginning of template content<span data-mw-comment-end="h-Indentation_or_list_code_at_the_beginning_of_template_content"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=29" title="Edit section: Indentation or list code at the beginning of template content"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Indentation_or_list_code_at_the_beginning_of_template_content","replies":[]}}--></div> <p>Each of the markup characters ':;*#', at the beginning of template content, is interpreted as being at the beginning of a line (even when the template call is not). This also applies to parameter values that appear at the begining of the template content. The effect can be disabled with nowiki tags. </p><p>Examples (nowiki examples use capital '<b>D</b>ef'): </p> <pre>abc{{p1|def}}ghi abc{{p1|<nowiki>:</nowiki>D1ef}}ghi abc{{p1|:d1ef}}ghi abc{{p1|<nowiki>;</nowiki>D2ef}}ghi abc{{p1|;d2ef}}ghi abc{{p1|<nowiki>*</nowiki>D3ef}}ghi abc{{p1|*d3ef}}ghi abc{{p1|<nowiki>#</nowiki>D4ef}}ghi abc{{p1|#d4ef}}ghi </pre> <p>gives: </p> <div style="border:1px solid #AAAAAA;padding:2px;"> <p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p><p>abc<a href="/w/index.php?title=Template:P1&action=edit&redlink=1" class="new" title="Template:P1 (page does not exist)">Template:P1ghi</a> </p> </div> <p><br/> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Server_cache_impacts" data-mw-thread-id="h-Server_cache_impacts"><span data-mw-comment-start="" id="h-Server_cache_impacts"></span>Server cache impacts<span data-mw-comment-end="h-Server_cache_impacts"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=30" title="Edit section: Server cache impacts"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Server_cache_impacts","replies":[]}}--></div> <p>When a template (in the Template namespace) is edited, the cache is cleared of all pages that include the template (at any nested level). When a page is viewed, and not in cache, the output HTML has to be reconstructed. Consequently, editing a template has a server impact (roughly) proportional to the number of pages dependent upon it. </p><p>For load constrained projects, template designers should consider long term edit impacts for templates that will be used in a large number of pages, particularly from template nesting. Projects may establish performance related policies, e.g. <a href="https://en.wikipedia.org/wiki/en:Wikipedia:Avoid_using_meta-templates" class="extiw" title="w:en:Wikipedia:Avoid using meta-templates">w:en:Wikipedia:Avoid using meta-templates</a>, a guideline to avoid high-usage, nested templates. </p><p>The following can be used as a simple model. If a template is called from p pages and edited with a frequency e, while the pages are viewed with a frequency v, then the relative amount of work for rebuilding the page (as opposed to taking it from the cache) is, per unit time: </p> <ul><li>if e<v: pe (each time the template is edited, all pages have to be rebuilt)</li> <li>if e>v: pv (each time a page is viewed, it has to be rebuilt)</li></ul> <p>If the edit frequency varies, then the amount of work for each time segment has to be considered separately, and added. For example, if a template is called from 1000 pages, each viewed once a day, and if each month four edits in a row are made to the template, then the first induces a lot of work (1000 page refreshings) and the other three very little. Compare this with having four edits spread over the month, i.e. every week a single edit is made to the template, which causes 1000 page refreshings every week, or 4000 for the month. </p><p>Note: some impacts (not distinguished here) occur immediately when the template is saved, others are distributed over the time when the template is used. Many additional factors need to be considered for an accurate cache model, too numerous and intertwined to be included here. The simple fanout and frequency model still applies as a first order estimate. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Stale_cache_purge" data-mw-thread-id="h-Stale_cache_purge"><span data-mw-comment-start="" id="h-Stale_cache_purge"></span>Stale cache purge<span data-mw-comment-end="h-Stale_cache_purge"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=31" title="Edit section: Stale cache purge"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Stale_cache_purge","replies":[]}}--></div> <p>When a page in the Template namespace is edited, this automatically clears the cache of any pages which use that template. However, there are cases of indirect dependence where a page may still not be up-to-date, even after pressing Ctrl-F5 or similar. This is e.g. the case for pages (typically template talk pages) referring to <a href="/w/index.php?title=Template:Tc&action=edit&redlink=1" class="new" title="Template:Tc (page does not exist)">en:Template:Tc</a>, containing {{msgnw:{{PAGENAME}}}}, probably because the template page name referred to depends on a variable. </p><p>Pressing Ctrl-F5 or similar generally only refreshes the browser cache, not the server cache. To purge the page server cache and a force full update, use "action=purge", in a URL like //en.wikiquote.org/w/index.php?title=Help:Template&action=purge . </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Subst" data-mw-thread-id="h-Subst"><span data-mw-comment-start="" id="h-Subst"></span>Subst<span data-mw-comment-end="h-Subst"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=32" title="Edit section: Subst"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Subst","replies":["h-Input_box-Subst"]}}--></div> <p>Putting "subst:" after the double opening braces causes an <a href="/wiki/Help:Automatic_conversion_of_wikitext" class="mw-redirect" title="Help:Automatic conversion of wikitext">automatic conversion of wikitext</a> when the referring page is saved: the subst tag is replaced by the wikitext of the template, with the parameter values substituted for the parameters. However, "noinclude" and "includeonly" are not applied: everything, including these tags, is included. Subst can also be applied to a variable. </p><p>Example: {{subst:t2|[[a]]|[[image:tst.png]]}} <a href="/w/index.php?title=Template:Ut1&action=edit&redlink=1" class="new" title="Template:Ut1 (page does not exist)">Template:Ut1</a> will give the wikitext start-[[a]]-middle-[[image:tst.png]]-end, which is rendered just like {{t2|[[a]]|[[image:tst.png]]}}: <a href="/w/index.php?title=Template:T2&action=edit&redlink=1" class="new" title="Template:T2 (page does not exist)">Template:T2</a>. </p><p>The replacement of a template tag by wikitext does not automatically work recursively: if the template calls another template, that tag is not replaced. One can subsequently add "subst:" again, thus doing manual recursion. This stepwise replacement can be useful for analyzing and explaining the working of templates calling other templates. See e.g. <a href="/w/index.php?title=Template_talk:Lop&action=edit&redlink=1" class="new" title="Template talk:Lop (page does not exist)">Template talk:Lop</a>. However, it requires applying "noinclude" and "includeonly" manually, or, if the "includeonly" content is plain text (not used in a template name or parameter, etc.), at least disabling the "includeonly" tag by changing one character of it, in order to see the text. </p><p>It can also be used to create a page independent of templates, as a way to archive the rendered page and allow a permalink to it. See also <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=2777" class="extiw" title="bugzilla:2777">bugzilla:2777</a>, a request for a version of subst that automatically works recursively. </p><p>If you want to use a modified version of the resulting wikitext, you have to save the page with the unmodified wikitext first, then edit it, because when applying preview the subst code is not yet replaced in the edit box. In the edit summary of the temporary edit you can put "tmp" to indicate that you have not made an error but are still working on the page. </p><p>In the absence of parameters, an alternative that clutters the edit history less is, of course, copying the text from the edit box of the template page: then it can be edited before saving. Another method is using msgnw without saving, and copying the preview result into the edit box. </p><p>When subst is applied to a template: </p> <ul><li>a <a href="/wiki/Help:Variable" title="Help:Variable">variable</a> in the template is copied as such in the wikitext.</li> <li>if the template call contains a variable, subst has to be applied to that variable as well, otherwise the first two closing braces of the parameter are interpreted as closing braces of the template.</li></ul> <p>Applying subst to a variable works like applying it to a template. E.g. a timestamp: </p><p>{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}, {{subst:CURRENTTIME}} (UTC) </p><p>giving: </p> <pre>10 March 2005, 08:23 (UTC) </pre> <p>One might be tempted to put this in a template, but then it would display the time of creation of the template; on the other hand, without the "subst:", it would give the time of loading the page with the timestamp. Neither is suitable for a timestamp, which should give the time of saving the new referral to the template (like ~~~~~ does). </p><p>Usage of a template through "subst:" does not show up in page histories, backlinks, etc. </p> <div class="mw-heading mw-heading3"><h3 id="Input_box" data-mw-thread-id="h-Input_box-Subst"><span data-mw-comment-start="" id="h-Input_box-Subst"></span>Input box<span data-mw-comment-end="h-Input_box-Subst"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=33" title="Edit section: Input box"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Similar to applying "subst:" to include page A in page B, in the case that B does not exist yet and that A does not have parameters, is using an <a href="/wiki/Help:Inputbox" title="Help:Inputbox">inputbox</a> to create B, preloading A. A difference is that the wikitext can be edited before saving. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form" data-mw-thread-id="h-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"><span data-mw-comment-start="" id="h-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"></span>Rewriting a template that calls other templates in a self-contained form<span data-mw-comment-end="h-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=34" title="Edit section: Rewriting a template that calls other templates in a self-contained form"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form","replies":["h-Case_where_a_template_name_depends_on_a_variable_or_parameter-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"]}}--></div> <p>If a template calls other templates one may want to rewrite it in a self-contained form (i.e., which does not need other templates) in order to use a copy of it in another project, without copying more templates. </p><p>To do this semi-automatically, one cannot use subst without specifying a parameter, or with {{{1}}} as parameter: the result of that is like the template page "t2a1" shows: "<a href="/w/index.php?title=Template:T2a1&action=edit&redlink=1" class="new" title="Template:T2a1 (page does not exist)">Template:T2a1</a>". In fact this is how the confusing rendering of a template page can be analysed. </p><p>Instead, one can apply subst with parameter "{{{1}.}.}." and obtain "{{t2|a|{{{1}.}.}.}}". If we now remove the three dots again, we have the content of "t2a1" in a self-contained form: "start-a-middle-{{{1}}}-end". </p> <div class="mw-heading mw-heading3"><h3 id="Case_where_a_template_name_depends_on_a_variable_or_parameter" data-mw-thread-id="h-Case_where_a_template_name_depends_on_a_variable_or_parameter-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"><span data-mw-comment-start="" id="h-Case_where_a_template_name_depends_on_a_variable_or_parameter-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"></span>Case where a template name depends on a variable or parameter<span data-mw-comment-end="h-Case_where_a_template_name_depends_on_a_variable_or_parameter-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form"></span></h3></div> <p>If template A calls a template whose name depends on a variable or parameter, subst can only be applied for specific values of that variable or parameter, each resulting in a separate new version of template A, not for the general case. Saving e.g. "{{subst:H:f {{NAMESPACE}}|langs=|enname=Template}}" does not change the wikitext (but the rendered text still replaces the effective variable or parameter value), which is rendered as just "{{subst:H:f Help|langs=|enname=Template}}", because the assumed template name contains braces, therefore the system concludes that the template does not exist. </p> <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":[],"uneditableSection":true}}--></div> <p>When a page called for inclusion is a redirect page, the redirect target is included instead. As usual, a double redirect does not work. </p><p>A page that consists of nothing else than the inclusion of another page as a template, shows similarities to a redirect to that other page, but also many differences, including: </p> <ul><li>the result has as header the name of the referring page</li> <li>there is no redirect message</li> <li>the buttons such as edit (for editing the whole page), watch, talk, history, "what links here", and "last modified", etc., refer to the referring page (to go to the target page, a section edit link can be used, from there the whole page can be accessed)</li> <li>the referring page is in the same categories as the target page</li> <li>"double redirects", with one or both being this kind of "pseudo-redirect", work.</li></ul> <p>Compare <a href="/w/index.php?title=Help:Template_namespace&action=edit&redlink=1" class="new" title="Help:Template namespace (page does not exist)">Help:Template namespace</a> with <a href="/w/index.php?title=Help:Template_namespace_-_demo_of_alternative_for_redirect&action=edit&redlink=1" class="new" title="Help:Template namespace - demo of alternative for redirect (page does not exist)">Help:Template namespace - demo of alternative for redirect</a>. </p><p>In a page that in turn includes such a referring page there is no difference. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Math_tags" data-mw-thread-id="h-Math_tags"><span data-mw-comment-start="" id="h-Math_tags"></span>Math tags<span data-mw-comment-end="h-Math_tags"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Math_tags","replies":[],"uneditableSection":true}}--></div> <p>MediaWiki templates, variables and parameters cannot be used within math tags, see <a href="/w/index.php?title=Template_talk:Demo_of_attempt_to_use_parameters_within_TeX&action=edit&redlink=1" class="new" title="Template talk:Demo of attempt to use parameters within TeX (page does not exist)">Template talk:Demo of attempt to use parameters within TeX</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="A_template_looked_upon_as_a_subroutine" data-mw-thread-id="h-A_template_looked_upon_as_a_subroutine"><span data-mw-comment-start="" id="h-A_template_looked_upon_as_a_subroutine"></span>A template looked upon as a subroutine<span data-mw-comment-end="h-A_template_looked_upon_as_a_subroutine"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-A_template_looked_upon_as_a_subroutine","replies":[],"uneditableSection":true}}--></div> <p>The wikitext of a page can be looked upon as a list of <a href="https://en.wikipedia.org/wiki/en:Statement_(programming)" class="extiw" title="w:en:Statement (programming)">statements</a>, in which case a template is a statement-type <a href="https://en.wikipedia.org/wiki/en:subroutine" class="extiw" title="w:en:subroutine">subroutine</a>. Alternatively the wikitext is a <a href="https://en.wikipedia.org/wiki/en:String_(computer_science)" class="extiw" title="w:en:String (computer science)">string</a> <a href="https://en.wikipedia.org/wiki/en:Expression_(programming)" class="extiw" title="w:en:Expression (programming)">expression</a>, in which case a template is a string function. </p><p>In the first view, a{{b}}c is a sequence of three statements, in the second a <a href="https://en.wikipedia.org/wiki/en:concatenation" class="extiw" title="w:en:concatenation">concatenation</a> of three strings. </p><p>In both views, the b in {{a|b}} is a string expression: the value of an input parameter of type string; however, the expression involves only concatenation, not (as one might think in the second view) any string function. </p><p>A subroutine is selected based on evaluating the string expression for its name (so this is done at "run-time"), so the process seems like that of an <a href="https://en.wikipedia.org/wiki/en:Interpreter_(computing)" class="extiw" title="w:en:Interpreter (computing)">interpreter</a>. </p><p>The subroutine is the only <a href="https://en.wikipedia.org/wiki/en:Category:Programming_constructs" class="extiw" title="w:en:Category:Programming constructs">programming construct</a> / <a href="https://en.wikipedia.org/wiki/en:control_flow" class="extiw" title="w:en:control flow">flow control</a> construct. </p><p>There are no <a href="https://en.wikipedia.org/wiki/en:variable" class="extiw" title="w:en:variable">variables</a>/constants or <a href="https://en.wikipedia.org/wiki/en:Assignment_(computer_science)" class="extiw" title="w:en:Assignment (computer science)">assignment statements</a>, except in the framework of subroutine parameters. The only operator (see <a href="https://en.wikipedia.org/wiki/en:operator" class="extiw" title="w:en:operator">operator</a> and <a href="https://en.wikipedia.org/wiki/en:Operator_(programming)" class="extiw" title="w:en:Operator (programming)">operator (programming)</a>) is concatenation. </p><p>A template itself can also be considered an operator, with the number of parameters being the <a href="https://en.wikipedia.org/wiki/en:arity" class="extiw" title="w:en:arity">arity</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Simple_computations" data-mw-thread-id="h-Simple_computations"><span data-mw-comment-start="" id="h-Simple_computations"></span>Simple computations<span data-mw-comment-end="h-Simple_computations"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=39" title="Edit section: Simple computations"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Simple_computations","replies":[]}}--></div> <p>Simple additions and multiplications can be performed based on concatenation, using the <a href="https://en.wikipedia.org/wiki/en:unary_numeral_system" class="extiw" title="w:en:unary numeral system">unary numeral system</a>: when 2 is represented by 11 and 3 by 111, then concatenation gives 11111, which can be converted to 5. An additional parameter allows not only to display the result 5, but also to call a template of choice with parameter 5. </p><p>Required auxiliary templates: </p> <ul><li>for every value <i>m</i> used as first operand a template calc<i>m</i> containing {{calc{{{2}}}{{{1}}}|<i>m digits "1"</i> |{{{3}}}}}</li> <li>for every value <i>n</i> used as second operand for addition a template calcA<i>n</i> containing {{count<i>n digits "1"</i>{{{1}}}|{{{2}}}}}</li> <li>for every value <i>n</i> used as second operand for multiplication a template calcB<i>n</i> containing {{count<i>n times {{{1}}}</i>|{{{2}}}}}</li> <li>for every result r a template count<i>r digits "1"</i> containing {{{{{1}}}|<i>r</i> }}</li> <li>the template that one wants to call with the result as parameter; if one just wants to display the result, or use it in a link target, or in an image tag</li></ul> <p>In view of the maximum length of 255 for page names, the maximum result can be 250. </p><p>Note that for any computation one can prepare an array with all results, but the amount of work to do that is proportional to the number of pairs (m,n) that one wants to use, while above the amount of work is only proportional to the sum of the number of values of m, n, and r. </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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=40" title="Edit section: Linking to a template"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Linking_to_a_template","replies":[]}}--></div> <p>Unfortunately, when <i>linking</i> to a template instead of embedding it, transfer of parameters is not possible. This would be useful e.g. for the following: </p> <ul><li>for a given image, allow links to pages each showing the image in a particular size, without having prepared a separate page for each size</li> <li>for given geo-coordinates, link to a page such as <a href="https://en.wikipedia.org/wiki/Template:Mapeu" class="extiw" title="w:Template:Mapeu">w:Template:Mapeu</a> with links to maps of that location; this would be like the <a href="https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates#Special_page" class="extiw" title="w:Wikipedia:WikiProject Geographical coordinates">Special:Mapsources feature</a>, e.g. <a rel="nofollow" class="external free" href="http://kvaleberg.com/wiki/index.php/Special:Mapsources/59_55_N_10_44_E">http://kvaleberg.com/wiki/index.php/Special:Mapsources/59_55_N_10_44_E</a>, proposed as an extension of MediaWiki, except that no computations are possible, but, on the other hand, it would enable multiple editable "Map sources pages" in the form of templates.</li> <li><a href="/w/index.php?title=Template:Table_of_Wikimedia_projects&action=edit&redlink=1" class="new" title="Template:Table of Wikimedia projects (page does not exist)">Template:Table of Wikimedia projects</a> provides a table of links to similar pages on all Wikimedia projects, depending on a parameter, e.g. all main pages, or all lists of templates. A page would be convenient with links to various of such tables, made on the fly.</li></ul> <p>Coming close to this is a page with links like <a class="external text" href="https://meta.wikimedia.org/w/index.php?title=Templates_of_Wikimedia_projects&action=edit&section=1">Template pages</a> and <a class="external text" href="https://meta.wikimedia.org/w/index.php?title=Templates_of_Wikimedia_projects&action=edit&section=2">Template talk pages</a>. These section edit links would each give access to one table through the preview. The whole page could be very large in rendered form, because the whole page would never have to be rendered (although on saving the system would attempt to do so even if it not desired). As far as the variation of the parameter for the last part of the URLs is easy, such as just changing the namespace number, not all tables need to be present, one can change the parameter in the edit box and get the desired table on the fly by the preview. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Comparison_of_linking_and_embedding" data-mw-thread-id="h-Comparison_of_linking_and_embedding"><span data-mw-comment-start="" id="h-Comparison_of_linking_and_embedding"></span>Comparison of linking and embedding<span data-mw-comment-end="h-Comparison_of_linking_and_embedding"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=41" title="Edit section: Comparison of linking and embedding"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Comparison_of_linking_and_embedding","replies":[]}}--></div> <p>Linking and embedding have in common: </p> <ul><li>if the page does not exist, a link to the edit page is shown; the links are identical if it is not a piped link; the link does not show parameters and does not show whether, after creation, the new page will be linked or embedded.</li> <li>the name can depend on variables and parameters</li></ul> <p>Extra possibilities of linking: </p> <ul><li>the name can depend on the content of templates; this is not possible for the name of an embedded page, not even indirectly: the name can depend on a parameter, but a parameter value or name can also not depend on the content of a template</li> <li>the page referred to can be outside the project (interwiki and external linking)</li></ul> <p>Extra possibility of embedding: </p> <ul><li>there can be parameters, i.e. a single page can have different rendered content; this is not possible with a link; note that embedding a page with a link still does not allow the linked page to depend on parameters (see also the previous section)</li></ul> <p>Other differences: </p> <ul><li>the syntax {{..}} or {{..|..|..}}, etc., versus [[..]] or [[..|..]], with the pipe character having a different meaning</li> <li>obviously the difference between having the pages rendered combinedly or separately</li> <li>for embedding the default namespace is the template namespace (for the main namespace prefix a colon), for linking the default is the main namespace; prefixing a colon is also allowed, so one can use {{NAMESPACE}}:...</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Developing_templates_and_template_tags" data-mw-thread-id="h-Developing_templates_and_template_tags"><span data-mw-comment-start="" id="h-Developing_templates_and_template_tags"></span>Developing templates and template tags<span data-mw-comment-end="h-Developing_templates_and_template_tags"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=42" title="Edit section: Developing templates and template tags"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Developing_templates_and_template_tags","replies":[]}}--></div> <p>When adding a parameter to a template that is in use, one can first adjust the tags, and then the template. During the work in progress, the template keeps working properly, but the new parameter becomes effective only at the end. </p><p>Alternatively, a new template name is used for the new version, and while adjusting template tags, the template name is also changed (for convenience, this is typically a small change, e.g. one letter or digit is added or changed). The advantage is that during the work in progress, the new parameter becomes effective on a page as soon as the tag has been adjusted. Also, the backlinks of both templates show the pages that are done and that still have to be done. </p><p>To accommodate future expansion of a template, involving more parameters, one can in advance add parameters with the empty string as their value to the template tags. If unnamed parameters are used, one does not have to plan in advance the meaning of the new parameters. </p><p><br/> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Templates_in_different_versions_of_MediaWiki" data-mw-thread-id="h-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Templates_in_different_versions_of_MediaWiki"></span>Templates in different versions of MediaWiki<span data-mw-comment-end="h-Templates_in_different_versions_of_MediaWiki"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=43" title="Edit section: Templates in different versions of MediaWiki"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Templates_in_different_versions_of_MediaWiki","replies":["h-Version_1.4-Templates_in_different_versions_of_MediaWiki","h-Version_1.3-Templates_in_different_versions_of_MediaWiki","h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="Version_1.4" data-mw-thread-id="h-Version_1.4-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.4-Templates_in_different_versions_of_MediaWiki"></span>Version 1.4<span data-mw-comment-end="h-Version_1.4-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=44" title="Edit section: Version 1.4"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Including the same template more than five times in the same page works from version 1.4, now on all Wikimedia sites. Also new was that subst can be used with parameters.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1.3" data-mw-thread-id="h-Version_1.3-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.3-Templates_in_different_versions_of_MediaWiki"></span>Version 1.3<span data-mw-comment-end="h-Version_1.3-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=45" title="Edit section: Version 1.3"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>See, among other things, <a class="external autonumber" href="https://meta.wikimedia.org/w/index.php?title=Help:Template&oldid=86075#Default_values_of_parameters">[1]</a>.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Version_1.2.6" data-mw-thread-id="h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki"><span data-mw-comment-start="" id="h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki"></span>Version 1.2.6<span data-mw-comment-end="h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=46" title="Edit section: Version 1.2.6"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>In MediaWiki version 1.2.6, make a page MediaWiki:mytemplate and refer to it with {{msg:mytemplate}}. In this version parameters are not possible.</li></ul> <ul><li>Compatibility with 1.3, in the sense of having the content in Template:mytemplate, is possible with a redirect from MediaWiki:mytemplate to Template:mytemplate on the 1.2.6 project.</li></ul> <p>In versions 1.3 and 1.4 the prefix "msg:" is optional and ignored. </p><p><b>From version 1.5 the tag {{msg:abc}} refers to Template:Msg:abc !</b> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Revision_history_of_pages_containing_templates" data-mw-thread-id="h-Revision_history_of_pages_containing_templates"><span data-mw-comment-start="" id="h-Revision_history_of_pages_containing_templates"></span>Revision history of pages containing templates<span data-mw-comment-end="h-Revision_history_of_pages_containing_templates"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=47" title="Edit section: Revision history of pages containing templates"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Revision_history_of_pages_containing_templates","replies":[]}}--></div> <p>Pages in the stored <a href="/wiki/Help:Page_history" title="Help:Page history">page history</a> consist of wikitext with possible <i>references</i> to templates and images. When viewing an old version of a page, these refer to the current versions of the templates and images, if these still exist. Thus the former composite page is not reconstructed. </p><p><br/> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Reserved_template_names" data-mw-thread-id="h-Reserved_template_names"><span data-mw-comment-start="" id="h-Reserved_template_names"></span>Reserved template names<span data-mw-comment-end="h-Reserved_template_names"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=48" title="Edit section: Reserved template names"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Reserved_template_names","replies":[]}}--></div> <p>According to the <a href="https://meta.wikimedia.org/wiki/Help:MediaWiki_help_policy" class="extiw" title="m:Help:MediaWiki help policy">MediaWiki help policy</a> some template names are reserved for use in the Help namespace. This allows copying without modification of the wikitext of help pages across projects. This wikitext contains template tags of the form "{{h:<i>rest of name </i>}}" which allow project-specific content within help pages, using project-specific templates. </p><p>Template names referred to by such tags are reserved, follow the link <a href="/wiki/Template:H:f" title="Template:H:f">Template:h:f</a> to see the full template name in this project in the case that <i>rest of name </i> is "f ": </p> <ul><li>for English projects with <a href="https://meta.wikimedia.org/wiki/Help:Page_name#Case-sensitivity_of_the_first_character" class="extiw" title="m:Help:Page name">case-insensitivity of the first character</a>: template names starting with "Template:H:".</li> <li>for other projects with case-insensitivity of the first character: template names starting with "Vorlage:H:" and "Modèle:H:", etc.</li> <li>for projects with case-sensitivity of the first character: template names starting with "Template:h:", "Vorlage:h:", "Modèle:h:", etc.</li> <li>for Hebrew "H:<i>rest of name </i>:" comes to the left of the Hebrew word for template תבנית , see <a href="https://he.wikiquote.org/wiki/Template:h:f" class="extiw" title="he:Template:h:f">he:Template:h:f</a>, except that if <i>rest of name </i> is the empty string than ":H:" instead of "H::" comes to the left of תבנית , see <a href="https://he.wikiquote.org/wiki/Template:h:" class="extiw" title="he:Template:h:">he:Template:h:</a>. The reserved names are those of which the canonical form of the URL starts with "http://he.wikipedia.org/wiki/%D7%AA%D7%91%D7%A0%D7%99%D7%AA:H:" and similar for the other Hebrew projects.</li></ul> <p>Note that "case-insensitivity of the first character" refers to the first character after the first colon, not after the second. </p><p><br/> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="See_also" data-mw-thread-id="h-See_also"><span data-mw-comment-start="" id="h-See_also"></span>See also<span data-mw-comment-end="h-See_also"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:Template&action=edit&section=49" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[]}}--></div> <ul><li><a href="/wiki/Help:Hacking_templates" title="Help:Hacking templates">Help:Hacking templates</a></li> <li><a href="/wiki/Help:Inputbox" title="Help:Inputbox">Help:Inputbox</a> - preload a "template" when creating a new page.</li> <li><a class="external text" href="https://en.wikiquote.org/w/index.php?title=Special:Allpages&namespace=10">Templates in this project</a></li> <li><a href="https://en.wikipedia.org/wiki/Wikipedia:Template_namespace" class="extiw" title="w:Wikipedia:Template namespace">w:Wikipedia:Template namespace</a></li> <li><a href="/wiki/Help:What_links_here" title="Help:What links here">Help:What links here</a></li> <li><a class="external text" href="https://bugzilla.wikimedia.org/show_bug.cgi?id=531">Bug 531</a> - use of templates to link to a talk page, even in languages where one can not just concatenate the equivalent of "talk" to the namespace name; create a new variable NAMESPACE_TALK.</li> <li><a href="https://en.wikipedia.org/wiki/en:Wikipedia:Transclusion_costs_and_benefits" class="extiw" title="w:en:Wikipedia:Transclusion costs and benefits">Transclusion costs and benefits</a> - explanation and opinion</li> <li><a href="https://en.wikipedia.org/wiki/en:Wikipedia:Avoid_using_meta-templates" class="extiw" title="w:en:Wikipedia:Avoid using meta-templates">The cost of editing a template called by many pages</a> - explanation and opinion</li></ul> <p><br/> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Wikiquote-specific_content" data-mw-thread-id="h-Wikiquote-specific_content"><span data-mw-comment-start="" id="h-Wikiquote-specific_content"></span>Wikiquote-specific content<span data-mw-comment-end="h-Wikiquote-specific_content"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Template:H:f_Help&action=edit&section=T-1" title="Edit section: Wikiquote-specific content"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Wikiquote-specific_content","replies":[]}}--></div> <div align="right"><small class="editlink"><a class="external text" href="https://en.wikiquote.org/w/index.php?title=Template:Ph:Template&action=edit">Edit this Wikiquote- and subject-specific template</a></small></div> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Links_to_other_help_pages" data-mw-thread-id="h-Links_to_other_help_pages"><span data-mw-comment-start="" id="h-Links_to_other_help_pages"></span>Links to other help pages<span data-mw-comment-end="h-Links_to_other_help_pages"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Template:H:f_Help&action=edit&section=T-2" title="Edit section: Links to other help pages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Links_to_other_help_pages","replies":[]}}--></div> <table border="2" style="background:#efefef;"> <tbody><tr> <td><b><a href="/wiki/Help:Contents" title="Help:Contents">Help contents</a></b> - all pages in the Help namespace: <a class="external text" href="https://meta.wikimedia.org/w/index.php?title=Special%3AAllpages&from=&namespace=12">Meta</a> <a class="external text" href="https://en.wikibooks.org/w/index.php?title=Special%3AAllpages&from=&namespace=12">b:</a> <a class="external text" href="https://commons.wikimedia.org/w/index.php?title=Special%3AAllpages&from=&namespace=12">c:</a> <a class="external text" href="https://en.wikinews.org/w/index.php?title=Special%3AAllpages&from=&namespace=12">n:</a> <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special%3AAllpages&from=&namespace=12">w:</a> <a class="external text" href="https://en.wikiquote.org/w/index.php?title=Special%3AAllpages&from=&namespace=12">q:</a> <a class="external text" href="https://en.wikisource.org/w/index.php?title=Special:Allpages&from=&namespace=12">wikisource</a> <a class="external text" href="https://en.wiktionary.org/w/index.php?title=Special%3AAllpages&from=&namespace=12">wiktionary</a><br/> <p><br/> <b>Reading:</b> <a href="/wiki/Help:Reader" title="Help:Reader">Overview</a> | <a href="/wiki/Help:Go_button" title="Help:Go button">Go</a> | <a href="/wiki/Help:Searching" title="Help:Searching">Search</a> | <a href="/wiki/Help:URL" title="Help:URL">URL</a> | <a href="/wiki/Help:Namespace" title="Help:Namespace">Namespace</a> | <a href="/wiki/Help:Page_name" title="Help:Page name">Page name</a> | <a href="/wiki/Help:Section" title="Help:Section">Section</a> | <a href="/wiki/Help:Link" title="Help:Link">Link</a> | <a href="/wiki/Help:What_links_here" title="Help:What links here">Backlinks</a> | <a href="/wiki/Help:Piped_link" title="Help:Piped link">Piped link</a> | <a href="/wiki/Help:Interwiki_linking" title="Help:Interwiki linking">Interwiki link</a> | <a href="/wiki/Help:Redirect" title="Help:Redirect">Redirect</a> | <a href="/wiki/Help:Variable" title="Help:Variable">Variable</a> | <a href="/wiki/Help:Category" title="Help:Category">Category</a> <br/> <b>Tracking changes:</b> <a href="/wiki/Help:Recent_changes" title="Help:Recent changes">Recent</a> | <a href="/wiki/Help:Enhanced_recent_changes" title="Help:Enhanced recent changes">(enhanced)</a> | <a href="/wiki/Help:Related_changes" title="Help:Related changes">Related</a> | <a href="/wiki/Help:Watching_pages" title="Help:Watching pages">Watching pages</a> | <a href="/wiki/Help:Page_history" title="Help:Page history">Page history</a> | <a href="/wiki/Help:Diff" title="Help:Diff">Diff</a> | <a href="/wiki/Help:User_contributions" title="Help:User contributions">User contributions</a> | <a href="/wiki/Help:Edit_summary" title="Help:Edit summary">Edit summary</a> | <a href="/wiki/Help:Minor_edit" title="Help:Minor edit">Minor edit</a> <br/> <b>Logging in and preferences:</b> <a href="/wiki/Help:Logging_in" title="Help:Logging in">Logging in</a> | <a href="/wiki/Help:Preferences" title="Help:Preferences">Preferences</a> | <a href="/wiki/Help:User_style" title="Help:User style">User style</a><br/> <b>Editing:</b> <a href="/wiki/Help:Editing" title="Help:Editing">Overview</a>| <a href="/wiki/Help:Starting_a_new_page" title="Help:Starting a new page">New page</a> | <a href="/wiki/Help:Images_and_other_uploaded_files" class="mw-redirect" title="Help:Images and other uploaded files">Images/files</a> | <a href="/wiki/Help:Image_description_page" class="mw-redirect" title="Help:Image description page">Image description page</a> | <a href="/wiki/Help:Special_characters" title="Help:Special characters">Special characters</a> | <a href="/wiki/Help:Formula" title="Help:Formula">Formula</a> | <a href="/wiki/Help:Table" title="Help:Table">Table</a> | <a href="/wiki/Help:EasyTimeline_syntax" title="Help:EasyTimeline syntax">EasyTimeline</a> | <a href="/wiki/Help:A_quick_guide_to_templates" title="Help:A quick guide to templates">Template intro</a> | <a href="/wiki/Help:Renaming_(moving)_a_page" class="mw-redirect" title="Help:Renaming (moving) a page">Renaming (moving) a page</a> | <a href="/wiki/Help:Automatic_conversion_of_wikitext" class="mw-redirect" title="Help:Automatic conversion of wikitext">Automatic conversion of wikitext</a> | <a href="/wiki/Help:Talk_page" title="Help:Talk page">Talk page</a> | <a href="/wiki/Help:Testing" title="Help:Testing">Testing</a> | <a class="external text" href="https://en.wikiquote.org/w/index.php?title=Special:Recentchangeslinked&target=Template:H:f">rlc</a><br/> <b>Projects:</b> <b><a href="https://meta.wikimedia.org/wiki/Help:Template" class="extiw" title="m:Help:Template">Meta (master page)</a></b> | <a href="https://en.wikibooks.org/wiki/Help:Template" class="extiw" title="b:Help:Template">Wikibooks</a> | <a href="https://commons.wikimedia.org/wiki/Help:Template" class="extiw" title="commons:Help:Template">Wikicommons</a> | <a href="https://en.wikinews.org/wiki/Help:Template" class="extiw" title="n:Help:Template">Wikinews</a> | <a href="https://en.wikipedia.org/wiki/Help:Template" class="extiw" title="w:Help:Template">Wikipedia</a> | <a class="mw-selflink selflink">Wikiquote</a> | <a href="https://en.wikisource.org/wiki/Help:Template" class="extiw" title="s:Help:Template">Wikisource</a> | <a href="https://en.wiktionary.org/wiki/Help:Template" class="extiw" title="wikt:Help:Template">Wiktionary</a><br/> For other languages see Meta. </p> </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="External_Links_2" data-mw-thread-id="h-External_Links_2"><span data-mw-comment-start="" id="h-External_Links_2"></span>External Links<span data-mw-comment-end="h-External_Links_2"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Template:H:f_Help&action=edit&section=T-3" title="Edit section: External Links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_Links_2","replies":[]}}--></div> <div class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; spacing: 0px; text-align: left; float: right;"> <div style="float: left;"><figure class="mw-halign-none" typeof="mw:File"><a href="/wiki/File:Commons-logo.svg" class="mw-file-description" title="commons"><img alt="commons" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/50px-Commons-logo.svg.png" decoding="async" width="50" height="67" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/75px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/100px-Commons-logo.svg.png 2x" data-file-width="1024" data-file-height="1376"/></a><figcaption>commons</figcaption></figure></div> <div style="margin-left: 60px;"><a href="https://commons.wikimedia.org/wiki/Wikimedia_Commons" class="extiw" title="commons:Wikimedia Commons">Wikimedia Commons</a> has media related to: <div style="margin-left: 10px;"><i><b><a href="https://commons.wikimedia.org/wiki/Special:SpecialPages" class="extiw" title="commons:Special:SpecialPages">Special pages</a></b></i></div> </div> </div> <ul><li><a href="/wiki/Help:Special_page" title="Help:Special page">Special page</a> on the <a href="/wiki/Wikipedia" title="Wikipedia">Wikipedia</a></li></ul> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐66695f89d8‐bzzcw Cached time: 20241119181046 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.045 seconds CPU time usage: 0.170 seconds Real time usage: 0.225 seconds Preprocessor visited node count: 997/1000000 Post‐expand include size: 19016/2097152 bytes Template argument size: 439/2097152 bytes Highest expansion depth: 7/100 Expensive parser function count: 0/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 2666/5000000 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 72.213 1 -total 18.86% 13.620 1 Template:H:f 15.63% 11.288 1 Template:H:h 15.61% 11.274 1 Template:H:f_Help 14.19% 10.250 8 Template:T 11.31% 8.166 1 Template:H:h_Help 10.40% 7.509 1 Template:H: 9.78% 7.066 1 Template:Commonsspec 7.46% 5.384 1 Template:Editor_toc 4.88% 3.522 1 Help:Editing_sections_of_included_templates --> <!-- Saved in parser cache with key enwikiquote:pcache:5535:|#|:idhash:canonical and timestamp 20241119181046 and revision id 2133083. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikiquote.org/w/index.php?title=Help:Template&oldid=2133083">https://en.wikiquote.org/w/index.php?title=Help:Template&oldid=2133083</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">Category</a>: <ul><li><a href="/wiki/Category:Wikiquote_help" title="Category:Wikiquote help">Wikiquote help</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 29 May 2016, at 22:40.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. 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/Wikiquote:About">About Wikiquote</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikiquote:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_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/#/en.wikiquote.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="//en.m.wikiquote.org/w/index.php?title=Help:Template&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.canary-84779d6bf6-hj2hv","wgBackendResponseTime":135,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-General","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Use_of_templates_across_projects","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Parameters","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Restrictions_on_parameter_values","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Named_vs._numbered_parameters","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Mix_of_named_and_unnamed_parameters","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template_page","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Template_page_if_no_defaults_have_been_specified-Template_page","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Template_talk_page","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-A_parameter_value_depending_on_parameters","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Remarks","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Equals_sign_in_parameter_value","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-msgnw","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Link_for_editing_a_template","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Editing_sections_of_included_templates","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Usage","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Navigational_templates-Usage","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Composite_pages-Usage","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Pages_with_a_common_section-Usage","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Repetition_within_a_page-Usage","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Providing_effective_repetition_without_repetition_of_similar_template_calls_in_t-Repetition_within_a_page","replies":[]}]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Images_in_templates","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Internal_links","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Interwiki_links-Internal_links","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_links","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Navigational_images","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Noinclude_and_includeonly","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-A_category_tag_in_a_template;_caching_problem","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Newline_in_a_template","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Indentation_or_list_code_at_the_beginning_of_template_content","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Server_cache_impacts","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Stale_cache_purge","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Subst","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Input_box-Subst","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Case_where_a_template_name_depends_on_a_variable_or_parameter-Rewriting_a_template_that_calls_other_templates_in_a_self-contained_form","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Redirection","replies":[],"uneditableSection":true},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Math_tags","replies":[],"uneditableSection":true},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-A_template_looked_upon_as_a_subroutine","replies":[],"uneditableSection":true},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Simple_computations","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-Comparison_of_linking_and_embedding","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Developing_templates_and_template_tags","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Templates_in_different_versions_of_MediaWiki","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.4-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.3-Templates_in_different_versions_of_MediaWiki","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Version_1.2.6-Templates_in_different_versions_of_MediaWiki","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Revision_history_of_pages_containing_templates","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Reserved_template_names","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Wikiquote-specific_content","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Links_to_other_help_pages","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_Links_2","replies":[]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.045"},"limitreport":{"cputime":"0.170","walltime":"0.225","ppvisitednodes":{"value":997,"limit":1000000},"postexpandincludesize":{"value":19016,"limit":2097152},"templateargumentsize":{"value":439,"limit":2097152},"expansiondepth":{"value":7,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":2666,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 72.213 1 -total"," 18.86% 13.620 1 Template:H:f"," 15.63% 11.288 1 Template:H:h"," 15.61% 11.274 1 Template:H:f_Help"," 14.19% 10.250 8 Template:T"," 11.31% 8.166 1 Template:H:h_Help"," 10.40% 7.509 1 Template:H:"," 9.78% 7.066 1 Template:Commonsspec"," 7.46% 5.384 1 Template:Editor_toc"," 4.88% 3.522 1 Help:Editing_sections_of_included_templates"]},"cachereport":{"origin":"mw-web.codfw.main-66695f89d8-bzzcw","timestamp":"20241119181046","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>