CINXE.COM

Vorlage:Code/Doku – Reiseführer auf Wikivoyage

<!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="de" dir="ltr"> <head> <meta charset="UTF-8"> <title>Vorlage:Code/Doku – Reiseführer auf Wikivoyage</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(/(?:^|; )dewikivoyagemwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t.",".\t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"wgRequestId":"2ce18871-c1eb-44c1-8a1c-a22f80ccae57","wgCanonicalNamespace":"Template","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":10,"wgPageName":"Vorlage:Code/Doku","wgTitle":"Code/Doku","wgCurRevisionId":1290476,"wgRevisionId":1290476,"wgArticleId":48863,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Übersetzungswunsch en","Vorlagen:Dokumentation"],"wgPageViewLanguage":"de","wgPageContentLanguage":"de","wgPageContentModel":"wikitext","wgRelevantPageName":"Vorlage:Code/Doku","wgRelevantArticleId":48863,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikivoyage","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true, "wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"de","pageLanguageDir":"ltr","pageVariantFallbacks":"de"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":4000,"parsermigration-parsoid":true,"wgRelatedArticlesCompat":[],"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","mediawiki.skinning.content.parsoid":"ready","ext.parsermigration.indicator":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready", "skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.CommonsDirekt","ext.gadget.Wdsearch","ext.gadget.DeleteRequestsTally","ext.gadget.ListingInfo","ext.gadget.MapTools","ext.gadget.MarkerTooltip","ext.gadget.MarkerUtilities","ext.gadget.Poi2gpx","ext.gadget.ScrollGallery","ext.gadget.TabsSelection","ext.gadget.Upload","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.toctree","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=de&amp;modules=ext.parsermigration.indicator%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cmediawiki.skinning.content.parsoid%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=de&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=de&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Vorlage:Code/Doku – Reiseführer auf Wikivoyage"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//de.m.wikivoyage.org/wiki/Vorlage:Code/Doku"> <link rel="alternate" type="application/x-wiki" title="Bearbeiten" href="/w/index.php?title=Vorlage:Code/Doku&amp;action=edit"> <link rel="icon" href="/static/favicon/wikivoyage.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikivoyage (de)"> <link rel="EditURI" type="application/rsd+xml" href="//de.wikivoyage.org/w/api.php?action=rsd"> <link rel="canonical" href="https://de.wikivoyage.org/wiki/Vorlage:Code/Doku"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.de"> <link rel="alternate" type="application/atom+xml" title="Atom-Feed für „Wikivoyage“" href="/w/index.php?title=Spezial:Letzte_%C3%84nderungen&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-10 ns-subject mw-editable page-Vorlage_Code_Doku rootpage-Vorlage_Code skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Zum Inhalt springen</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="Website"> <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="Hauptmenü" > <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">Hauptmenü</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">Hauptmenü</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">In die Seitenleiste verschieben</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">Verbergen</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" class="mw-list-item"><a href="/wiki/Hauptseite" title="Hauptseite anzeigen [z]" accesskey="z"><span>Hauptseite</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikivoyage:%C3%9Cber_uns"><span>Über Wikivoyage</span></a></li><li id="n-Wikivoyage-Lounge" class="mw-list-item"><a href="/wiki/Wikivoyage:Lounge"><span>Wikivoyage-Lounge</span></a></li><li id="n-Was-gibt-es-in-der-Nähe?" class="mw-list-item"><a href="/wiki/Spezial:In_der_N%C3%A4he"><span>Was gibt es in der Nähe?</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Spezial:Zuf%C3%A4llige_Seite" title="Zufällige Seite aufrufen [x]" accesskey="x"><span>Zufällige Seite</span></a></li> </ul> </div> </div> <div id="p-Mitmachen" class="vector-menu mw-portlet mw-portlet-Mitmachen" > <div class="vector-menu-heading"> Mitmachen </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Erste-Schritte" class="mw-list-item"><a href="/wiki/Hilfe:Neu_bei_Wikivoyage"><span>Erste Schritte</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Hilfe:Portal" title="Hilfeseite anzeigen"><span>Hilfe</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikivoyage:Autorenportal" title="Über das Projekt, was du tun kannst, wo was zu finden ist"><span>Autorenportal</span></a></li><li id="n-Projektseiten" class="mw-list-item"><a href="/wiki/Wikivoyage:Index"><span>Projektseiten</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Spezial:Letzte_%C3%84nderungen" title="Liste der letzten Änderungen in diesem Wiki [r]" accesskey="r"><span>Letzte Änderungen</span></a></li><li id="n-Wie-du-Wikivoyage-helfen-kannst" class="mw-list-item"><a href="/wiki/Wikivoyage:Wie_du_Wikivoyage_helfen_kannst"><span>Wie du Wikivoyage helfen kannst</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Hauptseite" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikivoyage.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikivoyage" src="/static/images/mobile/copyright/wikivoyage-wordmark-en.svg" style="width: 7.5em; height: 1.5625em;"> </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/Spezial:Suche" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Wikivoyage durchsuchen [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Suche</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="Wikivoyage durchsuchen" aria-label="Wikivoyage durchsuchen" autocapitalize="sentences" title="Wikivoyage durchsuchen [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Spezial:Suche"> </div> <button class="cdx-button cdx-search-input__end-button">Suchen</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Meine Werkzeuge"> <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="Erscheinungsbild"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Änderung des Aussehens der Schriftgröße, -breite und -farbe der Seite" > <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="Erscheinungsbild" > <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">Erscheinungsbild</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=de.wikivoyage.org&amp;uselang=de" class=""><span>Spenden</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=Spezial:Benutzerkonto_anlegen&amp;returnto=Vorlage%3ACode%2FDoku" title="Wir ermutigen dich dazu, ein Benutzerkonto zu erstellen und dich anzumelden. Es ist jedoch nicht zwingend erforderlich." class=""><span>Benutzerkonto erstellen</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=Spezial:Anmelden&amp;returnto=Vorlage%3ACode%2FDoku" title="Sich anzumelden wird gerne gesehen, ist jedoch nicht zwingend erforderlich. [o]" accesskey="o" class=""><span>Anmelden</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="Weitere Optionen" > <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="Meine Werkzeuge" > <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">Meine Werkzeuge</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Benutzermenü" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=de.wikivoyage.org&amp;uselang=de"><span>Spenden</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Spezial:Benutzerkonto_anlegen&amp;returnto=Vorlage%3ACode%2FDoku" title="Wir ermutigen dich dazu, ein Benutzerkonto zu erstellen und dich anzumelden. Es ist jedoch nicht zwingend erforderlich."><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Benutzerkonto erstellen</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Spezial:Anmelden&amp;returnto=Vorlage%3ACode%2FDoku" title="Sich anzumelden wird gerne gesehen, ist jedoch nicht zwingend erforderlich. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Anmelden</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"> Seiten für abgemeldete Benutzer <a href="/wiki/Hilfe:Einf%C3%BChrung" aria-label="Erfahre mehr über das Bearbeiten"><span>Weitere Informationen</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/Spezial:Meine_Beitr%C3%A4ge" title="Eine Liste der Bearbeitungen, die von dieser IP-Adresse gemacht wurden [y]" accesskey="y"><span>Beiträge</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Spezial:Meine_Diskussionsseite" title="Diskussion über Änderungen von dieser IP-Adresse [n]" accesskey="n"><span>Diskussionsseite</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Website"> <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="Inhaltsverzeichnis" 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">Inhaltsverzeichnis</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">In die Seitenleiste verschieben</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">Verbergen</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">Anfang</div> </a> </li> <li id="toc-Usage" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</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>Unterabschnitt Usage umschalten</span> </button> <ul id="toc-Usage-sublist" class="vector-toc-list"> <li id="toc-Examples" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Examples"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Examples</span> </div> </a> <ul id="toc-Examples-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Included_templates" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Included_templates"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Included templates</span> </div> </a> <ul id="toc-Included_templates-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>See also</span> </div> </a> <ul id="toc-See_also-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="Inhaltsverzeichnis" 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="Inhaltsverzeichnis umschalten" > <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">Inhaltsverzeichnis umschalten</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">Vorlage</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Code/Doku</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="Dieser Artikel existiert nur in dieser Sprache. Füge den Artikel für andere Sprachen hinzu" > <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-0" 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">Sprachen hinzufügen</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="uls-after-portlet-link"></span><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=dewikivoyage&amp;page=Vorlage%3ACode%2FDoku" title="Links auf Seiten in anderen Sprachen hinzufügen" class="wbc-editpage">Links hinzufügen</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="Namensräume"> <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-template" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Vorlage:Code/Doku" title="Vorlage anzeigen [c]" accesskey="c"><span>Vorlage</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Vorlage_Diskussion:Code/Doku&amp;action=edit&amp;redlink=1" rel="discussion" class="new" title="Diskussion zum Seiteninhalt (Seite nicht vorhanden) [t]" accesskey="t"><span>Diskussion</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="Sprachvariante ändern" > <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">Deutsch</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="Ansichten"> <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/Vorlage:Code/Doku"><span>Lesen</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=edit" title="Den Quelltext dieser Seite bearbeiten [e]" accesskey="e"><span>Quelltext bearbeiten</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=history" title="Frühere Versionen dieser Seite [h]" accesskey="h"><span>Versionsgeschichte</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Seitenwerkzeuge"> <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="Werkzeuge" > <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">Werkzeuge</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">Werkzeuge</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">In die Seitenleiste verschieben</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">Verbergen</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Weitere Optionen" > <div class="vector-menu-heading"> Aktionen </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/Vorlage:Code/Doku"><span>Lesen</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=edit" title="Den Quelltext dieser Seite bearbeiten [e]" accesskey="e"><span>Quelltext bearbeiten</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=history"><span>Versionsgeschichte</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Allgemein </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Spezial:Linkliste/Vorlage:Code/Doku" title="Liste aller Seiten, die hierher verlinken [j]" accesskey="j"><span>Links auf diese Seite</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Spezial:%C3%84nderungen_an_verlinkten_Seiten/Vorlage:Code/Doku" rel="nofollow" title="Letzte Änderungen an Seiten, die von hier verlinkt sind [k]" accesskey="k"><span>Änderungen an verlinkten Seiten</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=de" title="Dateien hochladen [u]" accesskey="u"><span>Datei hochladen</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Spezial:Spezialseiten" title="Liste aller Spezialseiten [q]" accesskey="q"><span>Spezialseiten</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Vorlage:Code/Doku&amp;oldid=1290476" title="Dauerhafter Link zu dieser Seitenversion"><span>Permanenter Link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=info" title="Weitere Informationen über diese Seite"><span>Seiten­­informationen</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Spezial:URL-K%C3%BCrzung&amp;url=https%3A%2F%2Fde.wikivoyage.org%2Fwiki%2FVorlage%3ACode%2FDoku"><span>Gekürzte URL abrufen</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Spezial:QrCode&amp;url=https%3A%2F%2Fde.wikivoyage.org%2Fwiki%2FVorlage%3ACode%2FDoku"><span>QR-Code runterladen</span></a></li><li class="mw-list-item"><a href="/w/index.php?title=Vorlage:Code/Doku&amp;useparsoid=0"><span>Zum Legacy-Parser wechseln</span></a></li> </ul> </div> </div> <div id="p-electronpdfservice-sidebar-portlet-heading" class="vector-menu mw-portlet mw-portlet-electronpdfservice-sidebar-portlet-heading" > <div class="vector-menu-heading"> Drucken/Exportieren </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="electron-print_pdf" class="mw-list-item"><a href="/w/index.php?title=Spezial:DownloadAsPdf&amp;page=Vorlage%3ACode%2FDoku&amp;action=show-download-screen"><span>Als PDF herunterladen</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Druckansicht dieser Seite [p]" accesskey="p"><span>Druckversion</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In anderen Projekten </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Seitenwerkzeuge"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Erscheinungsbild"> <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">Erscheinungsbild</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">In die Seitenleiste verschieben</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">Verbergen</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 id="mw-indicator-parsoid" class="mw-indicator"><div class="mw-parser-output"><div class="mw-parsoid-icon notheme mw-no-invert" title="Mit Parsoid gerendert"></div></div></div> </div> <div id="siteSub" class="noprint">Aus Wikivoyage</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">&lt; <bdi dir="ltr"><a href="/wiki/Vorlage:Code" title="Vorlage:Code">Vorlage:Code</a></bdi></div></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr" data-mw-parsoid-version="0.21.0.0-alpha9" data-mw-html-version="2.8.0"><section data-mw-section-id="0" id="mwAQ"><style data-mw-deduplicate="TemplateStyles:r1647858" typeof="mw:Extension/templatestyles mw:Transclusion" about="#mwt1" id="mwAg" data-mw='{"name":"templatestyles","attrs":{"src":"Module:Message box/ombox.css"},"body":{"extsrc":""},"parts":[{"template":{"target":{"wt":"Bitte um Übersetzung","href":"./Vorlage:Bitte_um_Übersetzung"},"params":{"1":{"wt":"en"}},"i":0}}]}'>.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class="plainlinks ombox ombox-content" role="presentation" about="#mwt1"><tbody><tr><td class="mbox-image"><div style="position: relative; "><span typeof="mw:File"><a href="//de.wikivoyage.org/wiki/Datei:Leer100x60tr.svg" class="mw-file-description"><img resource="//de.wikivoyage.org/wiki/Datei:Leer100x60tr.svg" src="//upload.wikimedia.org/wikivoyage/de/thumb/5/56/Leer100x60tr.svg/90px-Leer100x60tr.svg.png" decoding="async" data-file-width="102" data-file-height="62" data-file-type="drawing" height="55" width="90" srcset="//upload.wikimedia.org/wikivoyage/de/thumb/5/56/Leer100x60tr.svg/135px-Leer100x60tr.svg.png 1.5x, //upload.wikimedia.org/wikivoyage/de/thumb/5/56/Leer100x60tr.svg/180px-Leer100x60tr.svg.png 2x" class="mw-file-element"/></a></span> <div style="position: absolute; left: 20px; top: 26px;"><span style="display:none;">Germany</span><span class="voy-symbol-inline voy-flag-icon"><span class="mw-image-border mw-valign-baseline noviewer" typeof="mw:File" data-mw='{"caption":"Flagge Germany "}'><a href="//de.wikivoyage.org/wiki/Datei:Flag_of_Germany.svg" class="mw-file-description" title="Flagge Germany"><img alt="Flagge Germany" resource="//de.wikivoyage.org/wiki/Datei:Flag_of_Germany.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Flag_of_Germany.svg/32px-Flag_of_Germany.svg.png" decoding="async" data-file-width="1000" data-file-height="600" data-file-type="drawing" height="19" width="32" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Flag_of_Germany.svg/48px-Flag_of_Germany.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Flag_of_Germany.svg/64px-Flag_of_Germany.svg.png 2x" class="mw-file-element"/></a></span></span></div> <div style="position: absolute; left:0px; top:10px; "><span style="display:none;">United Kingdom</span><span class="voy-symbol-inline voy-flag-icon"><span class="mw-image-border mw-valign-baseline noviewer" typeof="mw:File" data-mw='{"caption":"Flagge United Kingdom "}'><a href="//de.wikivoyage.org/wiki/Datei:Flag_of_United_Kingdom.svg" class="mw-file-description" title="Flagge United Kingdom"><img alt="Flagge United Kingdom" resource="//de.wikivoyage.org/wiki/Datei:Flag_of_United_Kingdom.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Flag_of_the_United_Kingdom_%281-2%29.svg/32px-Flag_of_the_United_Kingdom_%281-2%29.svg.png" decoding="async" data-file-width="1200" data-file-height="600" data-file-type="drawing" height="16" width="32" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Flag_of_the_United_Kingdom_%281-2%29.svg/48px-Flag_of_the_United_Kingdom_%281-2%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Flag_of_the_United_Kingdom_%281-2%29.svg/64px-Flag_of_the_United_Kingdom_%281-2%29.svg.png 2x" class="mw-file-element"/></a></span></span></div> </div></td><td class="mbox-text">Dieser Artikel wurde aus einer englischen<span typeof="mw:Entity"> </span>Sprachversion importiert und wurde noch nicht vollständig übersetzt. Bitte hilf mit, den Text auf deutsch verfügbar zu machen.</td></tr></tbody></table><link rel="mw:PageProp/Category" href="./Kategorie:Übersetzungswunsch_en" about="#mwt1" id="mwAw"/> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1647858" about="#mwt4" typeof="mw:Extension/templatestyles mw:Transclusion" id="mwBA" data-mw='{"name":"templatestyles","attrs":{"src":"Module:Message box/ombox.css"},"body":{"extsrc":""},"parts":[{"template":{"target":{"wt":"Dokumentation Unterseite","href":"./Vorlage:Dokumentation_Unterseite"},"params":{},"i":0}}]}'/><table class="plainlinks ombox ombox-notice" role="presentation" about="#mwt4"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><a href="//de.wikivoyage.org/wiki/Datei:Edit-copy_green.svg" class="mw-file-description"><img resource="//de.wikivoyage.org/wiki/Datei:Edit-copy_green.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Edit-copy_green.svg/40px-Edit-copy_green.svg.png" decoding="async" data-file-width="48" data-file-height="48" data-file-type="drawing" height="40" width="40" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Edit-copy_green.svg/60px-Edit-copy_green.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/15/Edit-copy_green.svg/80px-Edit-copy_green.svg.png 2x" class="mw-file-element"/></a></span></td><td class="mbox-text"><b>Dies ist eine nachgeordnete Seite der <a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Wikivoyage:Vorlagen#Dokumentation" title="Wikivoyage:Vorlagen">Dokumentation</a> von <a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Code" title="Vorlage:Code">Vorlage:Code</a></b>.<br/>Sie enthält Informationen zur Verwendung, <a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Hilfe:Kategorien" title="Hilfe:Kategorien">Kategorisierung</a> und zu anderem Inhalt, der nicht Bestandteil der originalen Vorlage-Seite ist.</td></tr></tbody></table><link rel="mw:PageProp/Category" href="./Kategorie:Vorlagen:Dokumentation" about="#mwt4" id="mwBQ"/> <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> <meta property="mw:PageProp/toc" id="mwBg" data-mw='{"autoGenerated":true}'/></section><section data-mw-section-id="1" id="mwBw"><div class="mw-heading mw-heading2" id="mwAA"><h2 id="Usage">Usage</h2><span class="mw-editsection" id="mwgg"><span class="mw-editsection-bracket" id="mwgw">[</span><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=edit&amp;section=1" title="Abschnitt bearbeiten: Usage" id="mwhA"><span id="mwhQ">Bearbeiten</span></a><span class="mw-editsection-bracket" id="mwhg">]</span></span></div> <p id="mwCA">Wraps a short span of text in <code id="mwCQ"><span typeof="mw:Nowiki" id="mwCg">&lt;syntaxhighlight></span></code> tags (see <a rel="mw:WikiLink/Interwiki" href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight%20GeSHi" title="mw:Extension:SyntaxHighlight GeSHi" class="extiw" id="mwCw">mw:Extension:SyntaxHighlight GeSHi</a>). This template should be used for short samples; longer content should use <code style="white-space:nowrap;" about="#mwt8" typeof="mw:Transclusion" id="mwDA" data-mw='{"parts":[{"template":{"target":{"wt":"tag","href":"./Vorlage:Tag"},"params":{"1":{"wt":"pre"}},"i":0}}]}'><span typeof="mw:Entity">&lt;</span>pre<span typeof="mw:Entity">></span>...<span typeof="mw:Entity">&lt;</span><span typeof="mw:Entity">/</span>pre<span typeof="mw:Entity">></span></code> or <code style="white-space:nowrap;" about="#mwt9" typeof="mw:Transclusion" id="mwDQ" data-mw='{"parts":[{"template":{"target":{"wt":"tag","href":"./Vorlage:Tag"},"params":{"1":{"wt":"syntaxhighlight"}},"i":0}}]}'><span typeof="mw:Entity">&lt;</span>syntaxhighlight<span typeof="mw:Entity">></span>...<span typeof="mw:Entity">&lt;</span><span typeof="mw:Entity">/</span>syntaxhighlight<span typeof="mw:Entity">></span></code>. See <a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Hilfe:Wiki_Markup" title="Hilfe:Wiki Markup" class="mw-redirect" id="mwDg">Hilfe:Wiki Markup</a> for an explanation of what the various tags do.</p> <p id="mwDw">If the content includes an equals sign (=), you must specify the parameter explicitly: <code id="mwEA"><span typeof="mw:Nowiki" id="mwEQ">{{code|1=date=30 Feb 2010}}</span></code>.</p> <p id="mwEg">However, <code id="mwEw"><span typeof="mw:Nowiki" id="mwFA">{{code|a {{template}} call}}</span></code> will still invoke the template:</p> <dl id="mwFQ"><dd id="mwFg"><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt12" id="mwFw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"a {{[[Template:{{{1}}}|{{{1}}}]]}} call"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"a {{template}} call"}},"i":0}}]}'>a {{[[Template:{{{1}}}|{{{1}}}]]}} call</code></dd></dl> <p id="mwGA">Use <code style="white-space:nowrap;" about="#mwt15" typeof="mw:Transclusion" id="mwGQ" data-mw='{"parts":[{"template":{"target":{"wt":"tag","href":"./Vorlage:Tag"},"params":{"1":{"wt":"nowiki"}},"i":0}}]}'><span typeof="mw:Entity">&lt;</span>nowiki<span typeof="mw:Entity">></span>...<span typeof="mw:Entity">&lt;</span><span typeof="mw:Entity">/</span>nowiki<span typeof="mw:Entity">></span></code> around the template name to avoid this problem:</p> <dl id="mwGg"><dd id="mwGw"><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt17" id="mwHA" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"a &lt;nowiki>{{template}}&lt;/nowiki> call"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"a &lt;nowiki>{{template}}&lt;/nowiki> call"}},"i":0}}]}'>a &lt;nowiki>{{template}}&lt;/nowiki> call</code></dd></dl> <p id="mwHQ">When used inline with regular text, <code about="#mwt20" typeof="mw:Transclusion" id="mwHg" data-mw='{"parts":[{"template":{"target":{"wt":"tnull","href":"./Vorlage:Tnull"},"params":{"1":{"wt":"code"}},"i":0}}]}'><span typeof="mw:Entity">{</span><span typeof="mw:Entity">{</span>code<span typeof="mw:Entity">}</span><span typeof="mw:Entity">}</span></code> generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:</p> <dl id="mwHw"><dd id="mwIA"><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt22" id="mwIQ" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"foo &amp;nbsp;&lt;nowiki>{{code|bar baz}}&lt;/nowiki>&amp;nbsp; quux."},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"foo &amp;nbsp;&lt;nowiki>{{code|bar baz}}&lt;/nowiki>&amp;nbsp; quux."}},"i":0}}]}'>foo &amp;nbsp;&lt;nowiki>{{code|bar baz}}&lt;/nowiki>&amp;nbsp; quux.</code></dd></dl> <p id="mwIg">is well spaced:</p> <dl id="mwIw"><dd id="mwJA">foo <span typeof="mw:Entity" id="mwJQ"> </span><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt25" id="mwJg" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"bar baz"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"bar baz"}},"i":0}}]}'>bar baz</code><span typeof="mw:Entity" id="mwJw"> </span> quux.</dd></dl> <p id="mwKA">versus:</p> <dl id="mwKQ"><dd id="mwKg"><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt29" id="mwKw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"foo &lt;nowiki>{{code|bar baz}}&lt;/nowiki> quux."},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"foo &lt;nowiki>{{code|bar baz}}&lt;/nowiki> quux."}},"i":0}}]}'>foo &lt;nowiki>{{code|bar baz}}&lt;/nowiki> quux.</code></dd></dl> <p id="mwLA">which is going to be visually confusing for many:</p> <dl id="mwLQ"><dd id="mwLg">foo <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt32" id="mwLw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"bar baz"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"bar baz"}},"i":0}}]}'>bar baz</code> quux.</dd></dl> <p id="mwMA">because "foo" and "<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt35" id="mwMQ" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"bar"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"bar"}},"i":0}}]}'>bar</code>" will seem more closely associated than "<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt38" id="mwMg" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"bar"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"bar"}},"i":0}}]}'>bar</code>" and "<code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt41" id="mwMw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"baz"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"baz"}},"i":0}}]}'>baz</code>"; the width of the space character in a monospaced font is almost always larger than in a proportional font.</p> <p id="mwNA">Use parameter <span about="#mwt44" typeof="mw:Param" id="mwNQ" data-mw='{"parts":[{"templatearg":{"target":{"wt":"2"},"params":{},"i":0}}]}'>{{{2}}}</span> (unnamed, as <code class="templatelink" style="white-space:nowrap;" about="#mwt45" typeof="mw:Transclusion" id="mwNg" data-mw='{"parts":[{"template":{"target":{"wt":"para","href":"./Vorlage:Para"},"params":{"1":{"wt":"2"}},"i":0}}]}'>|2=</code>, or more explicitly as <code class="templatelink" style="white-space:nowrap;" about="#mwt48" typeof="mw:Transclusion" id="mwNw" data-mw='{"parts":[{"template":{"target":{"wt":"para","href":"./Vorlage:Para"},"params":{"1":{"wt":"lang"}},"i":0}}]}'>|lang=</code>) to specify a language for <a rel="mw:WikiLink/Interwiki" href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight%20GeSHi" title="mw:Extension:SyntaxHighlight GeSHi" class="extiw" id="mwOA">mw:Extension:SyntaxHighlight GeSHi</a>. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt51" id="mwOQ" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"html4strict"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"html4strict"}},"i":0}}]}'>html4strict</code> and <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt54" id="mwOg" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"html5"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"html5"}},"i":0}}]}'>html5</code> are valid values, as are <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt57" id="mwOw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"php"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"php"}},"i":0}}]}'>php</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt60" id="mwPA" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"perl"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"perl"}},"i":0}}]}'>perl</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt63" id="mwPQ" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"css"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"css"}},"i":0}}]}'>css</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt66" id="mwPg" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"javascript"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"javascript"}},"i":0}}]}'>javascript</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" about="#mwt69" id="mwPw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"mysql"},"parts":[{"template":{"target":{"wt":"code","href":"./Vorlage:Code"},"params":{"1":{"wt":"mysql"}},"i":0}}]}'>mysql</code> and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.</p> <p id="mwQA">This template does not need to be <a rel="mw:WikiLink/Interwiki" href="https://de.wikipedia.org/wiki/en:Wikipedia:Template%20substitution" title="w:en:Wikipedia:Template substitution" class="extiw" id="mwQQ">substituted</a>.</p> <section data-mw-section-id="2" id="mwQg"><div class="mw-heading mw-heading3" id="mwhw"><h3 id="Examples">Examples</h3><span class="mw-editsection" id="mwiA"><span class="mw-editsection-bracket" id="mwiQ">[</span><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=edit&amp;section=2" title="Abschnitt bearbeiten: Examples" id="mwig"><span id="mwiw">Bearbeiten</span></a><span class="mw-editsection-bracket" id="mwjA">]</span></span></div> <table class="prettytable" style="table-layout: fixed; width: 100%; border-width: medium; margin-left: 0em;" about="#mwt75" typeof="mw:Transclusion" id="mwQw" data-mw='{"parts":[{"template":{"target":{"wt":"markup\n","href":"./Vorlage:Markup"},"params":{"1":{"wt":"&lt;nowiki>Lorem {{code|ipsum &apos;&apos;&apos;dolor&apos;&apos;&apos;}} sit amet&lt;/nowiki>\n"},"2":{"wt":"Lorem {{code|ipsum &apos;&apos;&apos;dolor&apos;&apos;&apos;}} sit amet\n\n"},"3":{"wt":"&lt;nowiki>The declaration {{code |lang=cpp |int foo(const std::string&amp; bar, const std::vector&lt;long double*>&amp; baz);}} is the prototype for a function defined later.&lt;/nowiki>\n"},"4":{"wt":"The declaration {{code |lang=cpp |int foo(const std::string&amp; bar, const std::vector&lt;long double*>&amp; baz);}} is the prototype for a function defined later.\n\n"},"5":{"wt":"&lt;nowiki>If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName(\"img\");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].&lt;/nowiki>\n"},"6":{"wt":"If the code contains an [[w:en:equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName(\"img\");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].\n"}},"i":0}}]}'> <tbody><tr><th style="width:50%" scope="col"> Markup </th> <th style="width:50%" scope="col"> Renders as </th></tr><tr> <td style="width:50%; vertical-align:text-top;"> <pre style="border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap" typeof="mw:Extension/pre" about="#mwt82" id="mwRA" data-mw='{"name":"pre","attrs":{"style":"border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap"},"body":{"extsrc":"&lt;nowiki>Lorem {{code|ipsum &apos;&apos;&apos;dolor&apos;&apos;&apos;}} sit amet&lt;/nowiki>"}}'>Lorem {{code|ipsum '''dolor'''}} sit amet</pre> </td> <td style="width:50%; vertical-align:text-top;"> Lorem <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" about="#mwt83" id="mwRQ" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"ipsum &apos;&apos;&apos;dolor&apos;&apos;&apos;"}}'>ipsum '''dolor'''</code> sit amet </td> </tr><tr> <td style="width:50%; vertical-align:text-top;"> <pre style="border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap" typeof="mw:Extension/pre" about="#mwt84" id="mwRg" data-mw='{"name":"pre","attrs":{"style":"border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap"},"body":{"extsrc":"&lt;nowiki>The declaration {{code |lang=cpp |int foo(const std::string&amp; bar, const std::vector&lt;long double*>&amp; baz);}} is the prototype for a function defined later.&lt;/nowiki>"}}'>The declaration {{code |lang=cpp |int foo(const std::string&amp; bar, const std::vector&lt;long double*>&amp; baz);}} is the prototype for a function defined later.</pre> </td> <td style="width:50%; vertical-align:text-top;"> The declaration <code class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" about="#mwt85" id="mwRw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"cpp","class":"","inline":"1"},"body":{"extsrc":"int foo(const std::string&amp; bar, const std::vector&lt;long double*>&amp; baz);"}}'><span class="kt" id="mwSA">int</span><span class="w" id="mwSQ"> </span><span class="nf" id="mwSg">foo</span><span class="p" id="mwSw">(</span><span class="k" id="mwTA">const</span><span class="w" id="mwTQ"> </span><span class="n" id="mwTg">std</span><span class="o" id="mwTw">::</span><span class="n" id="mwUA">string</span><span class="o" id="mwUQ">&amp;</span><span class="w" id="mwUg"> </span><span class="n" id="mwUw">bar</span><span class="p" id="mwVA">,</span><span class="w" id="mwVQ"> </span><span class="k" id="mwVg">const</span><span class="w" id="mwVw"> </span><span class="n" id="mwWA">std</span><span class="o" id="mwWQ">::</span><span class="n" id="mwWg">vector</span><span class="o" id="mwWw">&lt;</span><span class="kt" id="mwXA">long</span><span class="w" id="mwXQ"> </span><span class="kt" id="mwXg">double</span><span class="o" id="mwXw">*>&amp;</span><span class="w" id="mwYA"> </span><span class="n" id="mwYQ">baz</span><span class="p" id="mwYg">);</span></code> is the prototype for a function defined later. </td> </tr><tr> <td style="width:50%; vertical-align:text-top;"> <pre style="border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap" typeof="mw:Extension/pre" about="#mwt86" id="mwYw" data-mw='{"name":"pre","attrs":{"style":"border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap"},"body":{"extsrc":"&lt;nowiki>If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName(\"img\");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].&lt;/nowiki>"}}'>If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName("img");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].</pre> </td> <td style="width:50%; vertical-align:text-top;"> If the code contains an <a rel="mw:WikiLink/Interwiki" href="https://de.wikipedia.org/wiki/en:equals%20sign" title="w:en:equals sign" class="extiw">w:en:equals sign</a>, such as <code class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" about="#mwt87" id="mwZA" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"javascript","class":"","inline":"1"},"body":{"extsrc":"var img = document.getElementsByTagName(\"img\");"}}'><span class="kd" id="mwZQ">var</span><span class="w" id="mwZg"> </span><span class="nx" id="mwZw">img</span><span class="w" id="mwaA"> </span><span class="o" id="mwaQ">=</span><span class="w" id="mwag"> </span><span class="nb" id="mwaw">document</span><span class="p" id="mwbA">.</span><span class="nx" id="mwbQ">getElementsByTagName</span><span class="p" id="mwbg">(</span><span class="s2" id="mwbw">"img"</span><span class="p" id="mwcA">);</span></code>, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also <a rel="mw:WikiLink/Interwiki" href="https://bugzilla.wikimedia.org/show_bug.cgi?id=5138" title="bugzilla:5138" class="extiw">bugzilla:5138</a>. </td> </tr> </tbody></table> </section><section data-mw-section-id="3" id="mwcQ"><div class="mw-heading mw-heading3" id="mwjQ"><h3 id="Included_templates">Included templates</h3><span class="mw-editsection" id="mwjg"><span class="mw-editsection-bracket" id="mwjw">[</span><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=edit&amp;section=3" title="Abschnitt bearbeiten: Included templates" id="mwkA"><span id="mwkQ">Bearbeiten</span></a><span class="mw-editsection-bracket" id="mwkg">]</span></span></div> <p id="mwcg">Embedded templates do not function as expected inside <span about="#mwt88" typeof="mw:Transclusion" id="mwcw" data-mw='{"parts":[{"template":{"target":{"wt":"tl","href":"./Vorlage:Tl"},"params":{"1":{"wt":"code"}},"i":0}}]}'>{{</span><a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Code" title="Vorlage:Code" about="#mwt88">code</a><span about="#mwt88">}}</span>; for longer, free-form blocks of code, which can contain templates such as <span about="#mwt90" typeof="mw:Transclusion" id="mwdA" data-mw='{"parts":[{"template":{"target":{"wt":"tl","href":"./Vorlage:Tl"},"params":{"1":{"wt":"var"}},"i":0}}]}'>{{</span><a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Var" title="Vorlage:Var" about="#mwt90">var</a><span about="#mwt90">}}</span> and <span about="#mwt92" typeof="mw:Transclusion" id="mwdQ" data-mw='{"parts":[{"template":{"target":{"wt":"tl","href":"./Vorlage:Tl"},"params":{"1":{"wt":"samp"}},"i":0}}]}'>{{</span><a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Samp" title="Vorlage:Samp" about="#mwt92">samp</a><span about="#mwt92">}}</span>, use <code style="white-space:nowrap;" about="#mwt94" typeof="mw:Transclusion" id="mwdg" data-mw='{"parts":[{"template":{"target":{"wt":"tag","href":"./Vorlage:Tag"},"params":{"1":{"wt":"code"}},"i":0}}]}'><span typeof="mw:Entity">&lt;</span>code<span typeof="mw:Entity">></span>...<span typeof="mw:Entity">&lt;</span><span typeof="mw:Entity">/</span>code<span typeof="mw:Entity">></span></code> as a wrapper instead of this template.</p> <p id="mwdw">Templates used inside <span about="#mwt95" typeof="mw:Transclusion" id="mweA" data-mw='{"parts":[{"template":{"target":{"wt":"tl","href":"./Vorlage:Tl"},"params":{"1":{"wt":"code"}},"i":0}}]}'>{{</span><a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Code" title="Vorlage:Code" about="#mwt95">code</a><span about="#mwt95">}}</span> expose the rendered HTML— this can be useful. For example:</p> <table class="prettytable" style="table-layout: fixed; width: 100%; border-width: medium; margin-left: 0em;" about="#mwt98" typeof="mw:Transclusion" id="mweQ" data-mw='{"parts":[{"template":{"target":{"wt":"markup\n","href":"./Vorlage:Markup"},"params":{"1":{"wt":"&lt;nowiki>{{code|\n{{Th|กรุงเทพมหานคร}}\n}}&lt;/nowiki>"},"2":{"wt":"{{code|\n{{Th|กรุงเทพมหานคร}}\n}}"}},"i":0}}]}'> <tbody><tr><th style="width:50%" scope="col"> Markup </th> <th style="width:50%" scope="col"> Renders as </th></tr><tr> <td style="width:50%; vertical-align:text-top;"> <pre style="border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap" typeof="mw:Extension/pre" about="#mwt101" id="mweg" data-mw='{"name":"pre","attrs":{"style":"border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap"},"body":{"extsrc":"&lt;nowiki>{{code|\n{{Th|กรุงเทพมหานคร}}\n}}&lt;/nowiki>"}}'>{{code| {{Th|กรุงเทพมหานคร}} }}</pre> </td> <td style="width:50%; vertical-align:text-top;"> <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" about="#mwt102" id="mwew" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"\n&lt;templatestyles src=\"Fremdsprache/styles.css\" />&lt;span class=\"voy-foreign-lang voy-foreign-lang-th voy-foreign-dir-ltr\">&lt;span class=\"voy-lang voy-lang-th \" lang=\"th\" xml:lang=\"th\" dir=\"ltr\" title=\"Text auf thailändisch\">กรุงเทพมหานคร&lt;/span>&lt;/span>\n"}}'>&lt;templatestyles src="Fremdsprache/styles.css" />&lt;span class="voy-foreign-lang voy-foreign-lang-th voy-foreign-dir-ltr">&lt;span class="voy-lang voy-lang-th " lang="th" xml:lang="th" dir="ltr" title="Text auf thailändisch">กรุงเทพมหานคร&lt;/span>&lt;/span></code> </td> </tr> </tbody></table> <p id="mwfA">The above example shows the HTML rendered by the citation template, including the hidden metadata.</p> </section></section><section data-mw-section-id="4" id="mwfQ"><div class="mw-heading mw-heading2" id="mwkw"><h2 id="See_also">See also</h2><span class="mw-editsection" id="mwlA"><span class="mw-editsection-bracket" id="mwlQ">[</span><a href="/w/index.php?title=Vorlage:Code/Doku&amp;action=edit&amp;section=4" title="Abschnitt bearbeiten: See also" id="mwlg"><span id="mwlw">Bearbeiten</span></a><span class="mw-editsection-bracket" id="mwmA">]</span></span></div> <span about="#mwt103" typeof="mw:Transclusion" id="mwfg" data-mw='{"parts":[{"template":{"target":{"wt":"Semantic templates see also","href":"./Vorlage:Semantic_templates_see_also"},"params":{},"i":0}},"\n* [[Hilfe:Wiki Markup]]"]}'> </span><div style="float: right; padding: 0 1em;" about="#mwt103"><style data-mw-deduplicate="TemplateStyles:r1446851" typeof="mw:Extension/templatestyles" about="#mwt136" data-mw='{"name":"templatestyles","attrs":{"src":"Module:Navbar/styles.css"}}'>.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar ul{margin:0;padding:0;display:inline}.mw-parser-output .navbar li{display:inline;white-space:nowrap;word-spacing:-0.125em}.mw-parser-output .navbar li:after{content:" · ";font-weight:bold}.mw-parser-output .navbar li:last-child:after{content:none}.mw-parser-output .navbar.mini li span{font-variant:small-caps}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em;width:6em}</style><div class="plainlinks hlist navbar"><ul><li class="nv-view"><a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Semantic_templates_see_also" title="Vorlage:Semantic templates see also" class="mw-redirect"><span title="Ansehen">ansehen</span></a></li><li class="nv-talk"><a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage_Diskussion:Semantic_templates_see_also?action=edit&amp;redlink=1" title="Vorlage Diskussion:Semantic templates see also (Seite nicht vorhanden)" class="new" typeof="mw:LocalizedAttrs" data-mw-i18n='{"title":{"lang":"x-page","key":"red-link-title","params":["Vorlage Diskussion:Semantic templates see also"]}}'><span title="Diskutieren">diskutieren</span></a></li><li class="nv-edit"><a rel="mw:ExtLink" href="//de.wikivoyage.org/w/index.php?title=Vorlage:Semantic_templates_see_also&amp;action=edit" class="external text"><span title="Bearbeiten">bearbeiten</span></a></li></ul></div></div><span about="#mwt103"> </span><p about="#mwt103">Die semantischen Vorlagen dienen der Kennzeichnung von Text. Der Text wird in spezielle HTML-Tags eingebettet, die die Bedeutung des Inhalts kennzeichnen. Browser, Robots und Werkzeuge für Barrierefreiheit können entsprechend darauf reagieren. Folgende semantische Vorlagen können in Wikivoyage-Artikeln eingesetzt werden:</p><span about="#mwt103"> </span><ul about="#mwt103"><li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Em" title="Vorlage:Em">em</a>}} <span typeof="mw:Entity">–</span> Die Vorlage kennzeichnet Text, der besonders <em>betont</em> werden soll. Browser stellen ihn im Regelfall kursiv dar.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Strong" title="Vorlage:Strong">strong</a>}} <span typeof="mw:Entity">–</span> Dient der <strong>starken Hervorhebung</strong> von Wörtern und Passagen. Die Darstellung erfolgt standardmäßig in Fettschrift.</li></ul><span about="#mwt103"> </span><p about="#mwt103">In Artikeln außerhalb des Haupt- und Nachrichtennamensraums (Diskusssionen, Projekt- und Hilfeseiten) können weitere Vorlagen Anwendung finden:</p><span about="#mwt103"> </span><ul about="#mwt103"><li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Strongbad" title="Vorlage:Strongbad">strongbad</a>}} <span typeof="mw:Entity">–</span> Wie <code><span typeof="mw:Entity">{</span><span typeof="mw:Entity">{</span>strong<span typeof="mw:Entity">}</span><span typeof="mw:Entity">}</span></code> aber rot wie in dem Beispiel: „Benutze <code><span typeof="mw:Entity">{</span><span typeof="mw:Entity">{</span>strongbad<span typeof="mw:Entity">}</span><span typeof="mw:Entity">}</span></code> <strong class="voy-color-red">niemals</strong> in Artikeln.“</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Stronggood" title="Vorlage:Stronggood">stronggood</a>}} <span typeof="mw:Entity">–</span> Wie <code><span typeof="mw:Entity">{</span><span typeof="mw:Entity">{</span>strongbad<span typeof="mw:Entity">}</span><span typeof="mw:Entity">}</span></code> aber grün wie in dem Beispiel: „Benutze <code><span typeof="mw:Entity">{</span><span typeof="mw:Entity">{</span>stronggood<span typeof="mw:Entity">}</span><span typeof="mw:Entity">}</span></code> <strong class="voy-color-green">nur</strong> außerhalb des Artikelnamensraums.“</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Var" title="Vorlage:Var">var</a>}} <span typeof="mw:Entity">–</span> Zusammen mit {{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Varserif" title="Vorlage:Varserif">varserif</a>}} dient die Vorlage der Kennzeichnung und Visualisierung von Variablen bzw. Platzhaltern in Dokumentationen und Hilfetexten.</li></ul><span about="#mwt103"> </span><p about="#mwt103">Die folgenden Vorlagen stellen lediglich eine Formatierungshilfe dar, erzeugen aber keine speziellen [X]HTML-Tags, um Inhalte maschinenlesbar eine Bedeutung zu geben.</p><span about="#mwt103"> </span><ul about="#mwt103"><li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Wikivar" title="Vorlage:Wikivar">wikivar</a>}} <span typeof="mw:Entity">–</span> Stellt Text als <a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Hilfe:Magische_Wörter" title="Hilfe:Magische Wörter">Magisches Wort</a> dar und erleichtert damit die Dokumentation und Erstellung von Hilfeseiten. Beispiele: <code>{{PAGENAME}}</code>, <code>{{DEFAULTSORT:Lastname, Firstname}}</code>.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Para" title="Vorlage:Para">para</a>}} <span typeof="mw:Entity">–</span> Dient der Ausgabe von Vorlagenparametern (<code class="templatelink" style="white-space:nowrap;">|title=</code>) oder Parametern mit Werten (<code class="templatelink" style="white-space:nowrap;">|year=2008</code>).</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Tlx" title="Vorlage:Tlx">tlx</a>}} and related <span typeof="mw:Entity">–</span> For displaying entire templates (with or without parameters and values) as code.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Tag" title="Vorlage:Tag">tag</a>}} – For using HTML elements ("tags") in prose (e.g. "When coding HTML <code style="white-space:nowrap;"><span typeof="mw:Entity">&lt;</span>img<span typeof="mw:Entity">></span>...<span typeof="mw:Entity">&lt;</span><span typeof="mw:Entity">/</span>img<span typeof="mw:Entity">></span></code> tags, always include …").</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Code" title="Vorlage:Code">code</a>}} <span typeof="mw:Entity">–</span> For computer source code (e.g. "always include the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" about="#mwt137" id="mwfw" data-mw='{"name":"syntaxhighlight","attrs":{"lang":"text","class":"","inline":"1"},"body":{"extsrc":"alt="}}'>alt=</code> parameter"). (Note: to nest other templates like <code><span typeof="mw:Entity">{</span><span typeof="mw:Entity">{</span>var<span typeof="mw:Entity">}</span><span typeof="mw:Entity">}</span></code> inside, use <code style="white-space:nowrap;"><span typeof="mw:Entity">&lt;</span>code<span typeof="mw:Entity">></span>...<span typeof="mw:Entity">&lt;</span><span typeof="mw:Entity">/</span>code<span typeof="mw:Entity">></span></code> instead of <code><span typeof="mw:Entity">{</span><span typeof="mw:Entity">{</span>code<span typeof="mw:Entity">}</span><span typeof="mw:Entity">}</span></code>.)</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Syntaxhighlight" title="Vorlage:Syntaxhighlight">syntaxhighlight</a>}} or {{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Sxhl" title="Vorlage:Sxhl" class="mw-redirect">sxhl</a>}} – Wrapper for <code style="white-space:nowrap;"><span typeof="mw:Entity">&lt;</span>syntaxhighlight<span typeof="mw:Entity">></span>...<span typeof="mw:Entity">&lt;</span><span typeof="mw:Entity">/</span>syntaxhighlight<span typeof="mw:Entity">></span></code>, but will wrap overflowing text.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Pre" title="Vorlage:Pre">pre</a>}} – For larger blocks of source code and other pre-formatted text.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Pre2" title="Vorlage:Pre2">pre2</a>}}, a template with similar functionality but induces optional line wrap and optional scroll bars.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Bq" title="Vorlage:Bq" class="mw-redirect">bq</a>}} <span typeof="mw:Entity">–</span> For indented blocks of content, such as block quotations, examples, poems, etc.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Kbd" title="Vorlage:Kbd">kbd</a>}} <span typeof="mw:Entity">–</span> For indicating <kbd style="background:#EEEEEE; letter-spacing:0.1em; padding-left:0.5em; padding-right:0.4em;">user input</kbd>.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Key_press" title="Vorlage:Key press">key press</a>}} <span typeof="mw:Entity">–</span> For indicating the input of specific keystrokes, e.g. <style data-mw-deduplicate="TemplateStyles:r1649422" typeof="mw:Extension/templatestyles" about="#mwt138" data-mw='{"name":"templatestyles","attrs":{"src":"Key press/styles.css"}}'>.mw-parser-output .voy-keyboard-key{border:1px solid #aaa;border-radius:2px;box-shadow:1px 2px 2px #ddd;background-color:#f9f9f9;color:black;background-image:linear-gradient(to top,#eee,#f9f9f9,#eee);padding:1px 3px;font-family:inherit;font-size:0.85em}@media screen{html.skin-theme-clientpref-night .mw-parser-output .voy-keyboard-key{box-shadow:1px 2px 2px #222;background-color:#060606;color:white;background-image:linear-gradient(to top,#111,#060606,#111)}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .voy-keyboard-key{box-shadow:1px 2px 2px #222;background-color:#060606;color:white;background-image:linear-gradient(to top,#111,#060606,#111)}}</style><kbd class="keyboard-key nowrap voy-keyboard-key"><span style="font-family: 'Arial Unicode MS', 'TITUS Cyberbit Basic', Code2000, 'Doulos SIL', 'Chrysanthi Unicode', 'Bitstream Cyberbit', 'Bitstream CyberBase', 'Bitstream Vera', Thryomanes, Gentium, GentiumAlt, 'Visual Geez Unicode', 'Lucida Grande', 'Microsoft Sans Serif', 'Lucida Sans Unicode';">⎈</span> Ctrl</kbd><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1649422" about="#mwt139" typeof="mw:Extension/templatestyles" data-mw='{"name":"templatestyles","attrs":{"src":"Key press/styles.css"}}'/><kbd class="keyboard-key nowrap voy-keyboard-key">X</kbd>.</li> <li>{{<a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Vorlage:Samp" title="Vorlage:Samp">samp</a>}} <span typeof="mw:Entity">–</span> For <samp style="padding-left:0.4em; padding-right:0.4em; color: #666666;">example output</samp>.</li> <li><code style="white-space:nowrap;"><span typeof="mw:Entity">&lt;</span><a rel="mw:WikiLink/Interwiki" href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight" title="mw:Extension:SyntaxHighlight" class="extiw">syntaxhighlight</a><span typeof="mw:Entity">></span></code></li> <li><a rel="mw:WikiLink" href="//de.wikivoyage.org/wiki/Hilfe:Wiki_Markup" title="Hilfe:Wiki Markup" class="mw-redirect">Hilfe:Wiki Markup</a></li></ul> <meta typeof="mw:Includes/IncludeOnly" id="mwgA" data-mw='{"src":"&lt;includeonly>&lt;!-- Kategorien bitte hier, Interwiki-Links bitte nach Wikidata -->\n{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|\n[[Kategorie:Vorlagen:HTML-Tags|Code]]\n}}&lt;/includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" id="mwgQ"/></section> <!-- NewPP limit report Cached time: 20241201065222 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.326 seconds Real time usage: 0.552 seconds --> <!-- Transclusion expansion time report (%,ms,calls,template) not yet supported --> <!-- Saved in parser cache with key dewikivoyage:parsoid-pcache:48863:|#|:idhash:useParsoid=1 and timestamp 20241201065222 and revision id 1290476. Rendering was triggered because: page-view --> <!--Parsoid 0.21.0.0-alpha9--> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&amp;useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Abgerufen von „<a dir="ltr" href="https://de.wikivoyage.org/w/index.php?title=Vorlage:Code/Doku&amp;oldid=1290476">https://de.wikivoyage.org/w/index.php?title=Vorlage:Code/Doku&amp;oldid=1290476</a>“</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Spezial:Kategorien" title="Spezial:Kategorien">Kategorie</a>: <ul><li><a href="/wiki/Kategorie:Vorlagen:Dokumentation" title="Kategorie:Vorlagen:Dokumentation">Vorlagen:Dokumentation</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Versteckte Kategorie: <ul><li><a href="/wiki/Kategorie:%C3%9Cbersetzungswunsch_en" title="Kategorie:Übersetzungswunsch en">Übersetzungswunsch en</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-copyright"><div id="footer-info-copyright-stats" class="noprint"><a class="external text" href="//pageviews.toolforge.org/?pages=Vorlage:Code/Doku&amp;project=de.wikivoyage.org">Abrufstatistik</a><br />&#160;</div> <div id="footer-info-copyright-info">Der Text ist unter der Lizenz <a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/deed.de">„Creative Commons Attribution/Share Alike“</a> verfügbar. Informationen zu den Urhebern und zum Lizenzstatus eingebundener Mediendateien (etwa Bilder oder Videos) können im Regelfall durch Anklicken dieser abgerufen werden. Möglicherweise unterliegen die Inhalte jeweils zusätzlichen Bedingungen. Durch die Nutzung dieser Website erklären Sie sich mit den <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use/de">Nutzungsbedingungen</a> und der <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy/de">Datenschutzrichtlinie</a> einverstanden.<br /> Wikivoyage® ist eine eingetragene Marke der Wikimedia Foundation Inc.</div></li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy/de">Datenschutz</a></li> <li id="footer-places-about"><a href="/wiki/Wikivoyage:%C3%9Cber_uns">Über Wikivoyage</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikivoyage:Impressum">Kontakt und Impressum</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Verhaltenskodex</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Entwickler</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/de.wikivoyage.org">Statistiken</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Stellungnahme zu Cookies</a></li> <li id="footer-places-mobileview"><a href="//de.m.wikivoyage.org/w/index.php?title=Vorlage:Code/Doku&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile Ansicht</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5c59558b9d-sg5gv","wgBackendResponseTime":229,"wgPageParseReport":{"limitreport":{"cputime":"0.326","walltime":"0.552","timingprofile":["not yet supported"]},"cachereport":{"timestamp":"20241201065222","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

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