CINXE.COM
Vorlage:Code: Unterschied zwischen den Versionen – 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-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-not-available" lang="de" dir="ltr"> <head> <meta charset="UTF-8"> <title>Vorlage:Code: Unterschied zwischen den Versionen – 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-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-not-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":"df5a9288-0693-4a40-a73f-1b0bd8a74618","wgCanonicalNamespace":"Template","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":10,"wgPageName":"Vorlage:Code","wgTitle":"Code","wgCurRevisionId":1645247,"wgRevisionId":631788,"wgArticleId":48779,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Übersetzungswunsch en","Vorlagen:HTML-Tags"],"wgPageViewLanguage":"de","wgPageContentLanguage":"de","wgPageContentModel":"wikitext","wgRelevantPageName":"Vorlage:Code","wgRelevantArticleId":48779,"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":200,"extRevisionSliderTimeOffset":60,"wgDiffOldId":631787,"wgDiffNewId":631788,"wgRelatedArticlesCompat":[],"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q5407771","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.visualEditor.diffPage.init.styles":"ready","oojs-ui.styles.icons-accessibility":"ready", "oojs-ui.styles.icons-editing-advanced":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","ext.RevisionSlider.lazyCss":"ready","mediawiki.interface.helpers.styles":"ready","mediawiki.diff.styles":"ready","mediawiki.helplink":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.visualEditor.diffPage.init","ext.RevisionSlider.lazyJs","mediawiki.diff","site","mediawiki.page.ready","jquery.makeCollapsible","skins.vector.js","ext.centralNotice.geoIP","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.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=de&modules=ext.RevisionSlider.lazyCss%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.visualEditor.diffPage.init.styles%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cmediawiki.diff.styles%7Cmediawiki.helplink%7Cmediawiki.interface.helpers.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.icons-accessibility%2Cicons-editing-advanced%2Cindicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=de&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="noindex,nofollow,max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Vorlage:Code: Unterschied zwischen den Versionen – 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"> <link rel="alternate" type="application/x-wiki" title="Bearbeiten" href="/w/index.php?title=Vorlage:Code&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"> <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&feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="mw-article-diff 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 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&wmf_medium=sidebar&wmf_campaign=de.wikivoyage.org&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&returnto=Vorlage%3ACode&returntoquery=diff%3Dprev%26oldid%3D631788" 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&returnto=Vorlage%3ACode&returntoquery=diff%3Dprev%26oldid%3D631788" 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&wmf_medium=sidebar&wmf_campaign=de.wikivoyage.org&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&returnto=Vorlage%3ACode&returntoquery=diff%3Dprev%26oldid%3D631788" 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&returnto=Vorlage%3ACode&returntoquery=diff%3Dprev%26oldid%3D631788" 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> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <h1 id="firstHeading" class="firstHeading mw-first-heading">Vorlage:Code: Unterschied zwischen den Versionen</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="Zu einem Artikel in einer anderen Sprache gehen. Verfügbar in 1 Sprache" > <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-1" 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">1 Sprache</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikivoyage.org/wiki/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Code" title="テンプレート:Code – Japanisch" lang="ja" hreflang="ja" data-title="テンプレート:Code" data-language-autonym="日本語" data-language-local-name="Japanisch" class="interlanguage-link-target"><span>日本語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q5407771#sitelinks-wikivoyage" title="Links auf Artikel in anderen Sprachen bearbeiten" class="wbc-editpage">Links bearbeiten</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" 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&action=edit&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"><span>Lesen</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Vorlage:Code&action=edit&oldid=631788" 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&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"><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&action=edit&oldid=631788" 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&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" 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" 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&oldid=631788" 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&action=info" title="Weitere Informationen über diese Seite"><span>Seiteninformationen</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Spezial:URL-K%C3%BCrzung&url=https%3A%2F%2Fde.wikivoyage.org%2Fw%2Findex.php%3Ftitle%3DVorlage%3ACode%26diff%3Dprev%26oldid%3D631788"><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&url=https%3A%2F%2Fde.wikivoyage.org%2Fw%2Findex.php%3Ftitle%3DVorlage%3ACode%26diff%3Dprev%26oldid%3D631788"><span>QR-Code runterladen</span></a></li><li class="mw-list-item"><a href="/w/index.php?title=Vorlage:Code&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="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" > <div class="vector-menu-heading"> In anderen Projekten </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/Template:Codenowiki" hreflang="en"><span>Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-mediawiki mw-list-item"><a href="https://www.mediawiki.org/wiki/Template:Inline-code" 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/Template:Code" hreflang="en"><span>Meta-Wiki</span></a></li><li class="wb-otherproject-link wb-otherproject-species mw-list-item"><a href="https://species.wikimedia.org/wiki/Template:Code" hreflang="en"><span>Wikispecies</span></a></li><li class="wb-otherproject-link wb-otherproject-wikidata mw-list-item"><a href="https://www.wikidata.org/wiki/Template:Code" hreflang="en"><span>Wikidata</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/Q5407771" title="Link zum verbundenen Objekt im Datenrepositorium [g]" accesskey="g"><span>Wikidata-Datenobjekt</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="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-mw-helplink" class="mw-indicator"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Diff" target="_blank" class="mw-helplink"><span class="mw-helplink-icon"></span>Hilfe</a></div> </div> <div id="siteSub" class="noprint">Aus Wikivoyage</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-revslider-container"><span style='width: 100%; text-align: center;' id='ooui-php-1' class='mw-revslider-toggle-button oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-indicatorElement oo-ui-labelElement oo-ui-buttonWidget' data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"indicator":"down","label":"Versionsgeschichte interaktiv durchsuchen","title":"Versionsbl\u00e4tterer \u00f6ffnen","classes":["mw-revslider-toggle-button"]}'><a role='button' title='Versionsblätterer öffnen' tabindex='0' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-iconElement-noIcon'></span><span class='oo-ui-labelElement-label'>Versionsgeschichte interaktiv durchsuchen</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicator-down'></span></a></span><div class="mw-revslider-slider-wrapper" style="display: none;"><div class="mw-revslider-placeholder"><div class="mw-revslider-spinner"><div class="mw-revslider-bounce"></div></div></div></div></div><div class="mw-diff-revision-history-links"><a href="/w/index.php?title=Vorlage:Code&diff=prev&oldid=631787" class="mw-diff-revision-history-link-previous" title="Vorlage:Code">← Zum vorherigen Versionsunterschied</a><a href="/w/index.php?title=Vorlage:Code&diff=next&oldid=631788" class="mw-diff-revision-history-link-next" title="Vorlage:Code">Zum nächsten Versionsunterschied →</a></div><div class="mw-diff-table-prefix" dir="ltr" lang="de"><div class="mw-diff-inline-legend oo-ui-element-hidden"><span class="mw-diff-inline-legend-del">Inhalt gelöscht</span> <span class="mw-diff-inline-legend-ins">Inhalt hinzugefügt</span></div><div class="ve-init-mw-diffPage-diffMode"><span class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonGroupWidget'><span aria-disabled='true' class='oo-ui-widget oo-ui-widget-disabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-iconElement oo-ui-labelElement oo-ui-buttonWidget'><a role='button' tabindex='-1' aria-disabled='true' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-icon-eye oo-ui-image-invert'></span><span class='oo-ui-labelElement-label'>Visuell</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-invert'></span></a></span><span class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-iconElement oo-ui-labelElement oo-ui-buttonWidget oo-ui-buttonElement-active'><a role='button' tabindex='0' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-icon-wikiText oo-ui-image-invert'></span><span class='oo-ui-labelElement-label'>Wikitext</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-invert'></span></a></span></span></div><div class="mw-diffPage-inlineToggle-container"><div id='mw-diffPage-inline-toggle-switch-layout' class='oo-ui-layout oo-ui-labelElement oo-ui-fieldLayout oo-ui-fieldLayout-align-left' data-ooui='{"_":"OO.ui.FieldLayout","fieldWidget":{"tag":"mw-diffPage-inline-toggle-switch"},"$overlay":true,"label":"Inline","title":"Wechselt zwischen Inline-Format und Zwei-Spalten-Format"}'><div class='oo-ui-fieldLayout-body'><span class='oo-ui-fieldLayout-header'><label title='Wechselt zwischen Inline-Format und Zwei-Spalten-Format' id='ooui-php-2' class='oo-ui-labelElement-label'>Inline</label></span><div class='oo-ui-fieldLayout-field'><div id='mw-diffPage-inline-toggle-switch' title='Wechselt zwischen Inline-Format und Zwei-Spalten-Format' aria-checked='false' tabindex='0' role='switch' aria-labelledby='ooui-php-2' class='oo-ui-widget oo-ui-widget-enabled oo-ui-toggleWidget oo-ui-toggleWidget-off oo-ui-toggleSwitchWidget' data-ooui='{"_":"OO.ui.ToggleSwitchWidget","href":"\/w\/index.php?title=Vorlage:Code&diff=prev&oldid=631788&diff-type=inline","value":false,"title":"Wechselt zwischen Inline-Format und Zwei-Spalten-Format"}'><span class='oo-ui-toggleSwitchWidget-glow'></span><a href='/w/index.php?title=Vorlage:Code&diff=prev&oldid=631788&diff-type=inline'><span class='oo-ui-toggleSwitchWidget-grip'></span></a></div></div></div></div></div></div><table class="diff diff-type-table diff-contentalign-left diff-editfont-monospace" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" class="diff-otitle diff-side-deleted"><div id="mw-diff-otitle1"><strong><a href="/w/index.php?title=Vorlage:Code&oldid=631787" title="Vorlage:Code">Version vom 26. Januar 2008, 18:29 Uhr</a> <span class="mw-diff-edit"><a href="/w/index.php?title=Vorlage:Code&action=edit&oldid=631787" title="Vorlage:Code">Bearbeiten</a></span><span class="mw-diff-timestamp" data-timestamp="2008-01-26T17:29:34Z"></span></strong></div><div id="mw-diff-otitle2"><span data-mw-revid="631787" class="mw-userlink mw-extuserlink mw-anonuserlink"><bdi>imported>16@r</bdi></span><div class="mw-diff-usermetadata"></div></div><div id="mw-diff-otitle3"> <span class="comment comment--without-parentheses">{{documentation}}</span></div><div id="mw-diff-otitle5"></div><div id="mw-diff-otitle4"><a href="/w/index.php?title=Vorlage:Code&diff=prev&oldid=631787" title="Vorlage:Code" id="differences-prevlink">← Zum vorherigen Versionsunterschied</a></div></td> <td colspan="2" class="diff-ntitle diff-side-added"><div id="mw-diff-ntitle1"><strong><a href="/w/index.php?title=Vorlage:Code&oldid=631788" title="Vorlage:Code">Version vom 23. Februar 2008, 12:41 Uhr</a> <span class="mw-diff-edit"><a href="/w/index.php?title=Vorlage:Code&action=edit&oldid=631788" title="Vorlage:Code">Bearbeiten</a></span><span class="mw-diff-timestamp" data-timestamp="2008-02-23T11:41:46Z"></span> <span class="mw-diff-undo"><a href="/w/index.php?title=Vorlage:Code&action=edit&undoafter=631787&undo=631788" title="Macht lediglich diese eine Änderung rückgängig und zeigt das Resultat in der Vorschau an, damit in der Zusammenfassungszeile eine Begründung angegeben werden kann.">rückgängig machen</a></span></strong></div><div id="mw-diff-ntitle2"><span data-mw-revid="631788" class="mw-userlink mw-extuserlink mw-anonuserlink"><bdi>imported>Emil76</bdi></span><div class="mw-diff-usermetadata"></div></div><div id="mw-diff-ntitle3"> <span class="comment comment--without-parentheses">removed nowiki, that does not work at all. added extra styling and changed inline to block display.</span></div><div id="mw-diff-ntitle5"></div><div id="mw-diff-ntitle4"><a href="/w/index.php?title=Vorlage:Code&diff=next&oldid=631788" title="Vorlage:Code" id="differences-nextlink">Zum nächsten Versionsunterschied →</a></div></td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 1:</td> <td colspan="2" class="diff-lineno">Zeile 1:</td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td class="diff-addedline diff-side-added"><div><div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;"><includeonly>{{{1}}}</includeonly><noinclude>{{Lorem Ipsum}}</noinclude></div><noinclude></div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td class="diff-deletedline diff-side-deleted"><div><code><nowiki>{{{1}}}</nowiki></code><noinclude></div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"></td> <td class="diff-context diff-side-deleted"><div>{{documentation}}</div></td> <td class="diff-marker"></td> <td class="diff-context diff-side-added"><div>{{documentation}}</div></td> </tr> <tr> <td class="diff-marker"></td> <td class="diff-context diff-side-deleted"><div></noinclude></div></td> <td class="diff-marker"></td> <td class="diff-context diff-side-added"><div></noinclude></div></td> </tr> </table><hr class='diff-hr' id='mw-oldid' /> <h2 class='diff-currentversion-title'>Version vom 23. Februar 2008, 12:41 Uhr</h2> <div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr"><div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;"><a href="/w/index.php?title=Vorlage:Lorem_Ipsum&action=edit&redlink=1" class="new" title="Vorlage:Lorem Ipsum (Seite nicht vorhanden)">Vorlage:Lorem Ipsum</a></div> <style data-mw-deduplicate="TemplateStyles:r1644638">.mw-parser-output .voy-box-wrapper{display:flow-root;box-sizing:border-box;border:1px solid #6cc8f3;border-radius:5px;position:relative;padding:0 0.5em 3px;margin:0.75em 0 0}.mw-parser-output .voy-box-first,.mw-parser-output .voy-tabsWrapper+style+.voy-box-wrapper,.mw-parser-output .voy-tabsWrapper+link+.voy-box-wrapper,.mw-parser-output .voy-tabsWrapper+.voy-box-wrapper{margin:0;clear:both}body.skin-minerva .mw-parser-output .voy-box-wrapper{width:auto!important}.mw-parser-output .qbDiv .voy-box-wrapper,.mw-parser-output .qbRightDiv .voy-box-wrapper{border:none;margin:0}body.skin-minerva .mw-parser-output .voy-box-wrapper+ul,body.skin-minerva .mw-parser-output .voy-box-wrapper+ol{margin-top:0.75em}.mw-parser-output .voy-box-wrapper .emph{font-size:110%;font-weight:bold}.mw-parser-output .voy-box-var-1{border-color:#6cc8f3}.mw-parser-output .voy-box-var-2{border-color:#80f000}.mw-parser-output .voy-box-var-3{border-color:#f3706c}.mw-parser-output .voy-box-centered{clear:both;float:none;margin:1em auto}.mw-parser-output .voy-box-left{clear:left;float:left;margin:0 1em 1em 0;background-color:#fff;color:inherit}.mw-parser-output .voy-box-right{clear:right;float:right;margin:0 0 1em 1em;background-color:#fff;color:inherit}@media(max-width:720px){.mw-parser-output .voy-box-left,.mw-parser-output .voy-box-right{clear:both;float:none;margin:0 0 1em;width:100%!important}}.mw-parser-output .voy-box-wrapper .voy-box-edit-link,.mw-parser-output .voy-box-wrapper>.mw-collapsible-toggle:first-child{display:block;float:right;font-size:90%;background:transparent;color:inherit;margin:0.5em 0 0.5em 0.5em;padding-top:0.4em}.mw-parser-output .voy-box-wrapper.mw-collapsed{padding-bottom:0}.mw-parser-output .voy-box-header{background-color:#f0f0f0;color:#004f80;margin:0 -0.4em 0.4em;padding:0.3em 0.4em;border-top-left-radius:5px;border-top-right-radius:5px;font-size:1.25em}.mw-parser-output .voy-box-wrapper .voy-text-center{text-align:center}body.skin-minerva .mw-parser-output .voy-box-header .lazy-image-placeholder{display:inline}.mw-parser-output .mw-collapsed .voy-box-header{border-radius:5px;margin-bottom:0}.mw-parser-output .voy-box-var-1>.voy-box-header,.mw-parser-output .voy-box-var-1>.voy-box-header a{color:#004f80}.mw-parser-output .voy-box-var-2>.voy-box-header,.mw-parser-output .voy-box-var-2>.voy-box-header a{color:#00804f}.mw-parser-output .voy-box-var-3>.voy-box-header,.mw-parser-output .voy-box-var-3>.voy-box-header a{color:#800200}@media print{.mw-parser-output .voy-box-wrapper{border:0.25mm solid #6cc8f3}.mw-parser-output .voy-box-header{font-size:1em;border-top:0.25mm solid #c0c0c0;border-bottom:0.25mm solid #c0c0c0}.mw-parser-output .voy-box-edit-link,.mw-parser-output .voy-box-wrapper .mw-collapsible-toggle{display:none}}.mw-parser-output .voy-box-image{position:relative;background-color:transparent;color:inherit;margin:0 0 0 -0.5em;padding:2px 2px 1px;float:left;border-top-left-radius:5px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .voy-box-left,html.skin-theme-clientpref-night .mw-parser-output .voy-box-right{background-color:#000;color:inherit}html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-1,html.skin-theme-clientpref-night body.ns-100 .mw-parser-output .voy-box-var-1{border-color:#6cc8f3!important}html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-2,html.skin-theme-clientpref-night body.ns-100 .mw-parser-output .voy-box-var-{border-color:#80f000!important}html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-3,html.skin-theme-clientpref-night body.ns-100 .mw-parser-output .voy-box-var-3{border-color:#f3706c!important}html.skin-theme-clientpref-night .mw-parser-output .voy-box-header,html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-header,html.skin-theme-clientpref-night body.ns-100 .mw-parser-output .voy-box-header{background-color:#333!important}html.skin-theme-clientpref-night .mw-parser-output .voy-box-var-1 .voy-box-header,html.skin-theme-clientpref-night .mw-parser-output .voy-box-var-1 .voy-box-header a,html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-1 .voy-box-header,html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-1 .voy-box-header a{color:#6cc8f3!important}html.skin-theme-clientpref-night .mw-parser-output .voy-box-var-2 .voy-box-header,html.skin-theme-clientpref-night .mw-parser-output .voy-box-var-2 .voy-box-header a,html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-2 .voy-box-header,html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-2 .voy-box-header a{color:#80f000!important}html.skin-theme-clientpref-night .mw-parser-output .voy-box-var-3 .voy-box-header,html.skin-theme-clientpref-night .mw-parser-output .voy-box-var-3 .voy-box-header a,html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-3 .voy-box-header,html.skin-theme-clientpref-night body.page-Main_Page .mw-parser-output .voy-box-var-3 .voy-box-header a{color:#f3706c!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .voy-box-left,html.skin-theme-clientpref-os .mw-parser-output .voy-box-right{background-color:#000;color:inherit}html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-1,html.skin-theme-clientpref-os body.ns-100 .mw-parser-output .voy-box-var-1{border-color:#6cc8f3!important}html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-2,html.skin-theme-clientpref-os body.ns-100 .mw-parser-output .voy-box-var-2{border-color:#80f000!important}html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-3,html.skin-theme-clientpref-os body.ns-100 .mw-parser-output .voy-box-var-3{border-color:#f3706c!important}html.skin-theme-clientpref-os .mw-parser-output .voy-box-header,html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-header,html.skin-theme-clientpref-os body.ns-100 .mw-parser-output .voy-box-header{background-color:#333!important}html.skin-theme-clientpref-os .mw-parser-output .voy-box-var-1 .voy-box-header,html.skin-theme-clientpref-os .mw-parser-output .voy-box-var-1 .voy-box-header a,html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-1 .voy-box-header,html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-1 .voy-box-header a{color:#6cc8f3!important}html.skin-theme-clientpref-os .mw-parser-output .voy-box-var-2 .voy-box-header,html.skin-theme-clientpref-os .mw-parser-output .voy-box-var-2 .voy-box-header a,html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-2 .voy-box-header,html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-2 .voy-box-header a{color:#80f000!important}html.skin-theme-clientpref-os .mw-parser-output .voy-box-var-3 .voy-box-header,html.skin-theme-clientpref-os .mw-parser-output .voy-box-var-3 .voy-box-header a,html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-3 .voy-box-header,html.skin-theme-clientpref-os body.page-Main_Page .mw-parser-output .voy-box-var-3 .voy-box-header a{color:#f3706c!important}}.mw-parser-output .voy-box-wrapper>.voy-box-content:first-child{margin-top:0.3em}.mw-parser-output .voy-box-content>*:first-child{margin-top:0;padding-top:0}.mw-parser-output .voy-box-content>p:last-child,.mw-parser-output .voy-box-content>ul:last-child,.mw-parser-output .voy-box-content>ol:last-child,.mw-parser-output .voy-box-content>div:last-child{margin-bottom:0.3em}.mw-parser-output .voy-navigation-bar{text-align:center;padding-bottom:0}.mw-parser-output .voy-navigation-bar .voy-box-header{margin-bottom:0}.mw-parser-output .voy-navigation-bar .voy-box-content{margin-top:0.3em;padding:0 0 0.3em}.mw-parser-output .voy-navigation-bar .voy-box-image img{background:#fff!important}</style><div class="voy-box-wrapper voy-box-var-1"><div class="voy-box-header"><span typeof="mw:File"><a href="/wiki/Wikivoyage:Vorlagen" title="Wikivoyage:Vorlagen"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Template-info.png/50px-Template-info.png" decoding="async" width="50" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Template-info.png/75px-Template-info.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Template-info.png/100px-Template-info.png 2x" data-file-width="706" data-file-height="316" /></a></span> Dokumentation für die Vorlage {{Code}}<span class="plainlinks voy-doc-editlinks" style="font-size: small; padding-left: 1em;">[<a href="/wiki/Vorlage:Code/Doku" title="Vorlage:Code/Doku"><span title="Ansicht der Dokumentationsseite">Ansicht</span></a>] [<a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Vorlage:Code/Doku&action=edit"><span title="Bearbeiten der Dokumentationsseite">Bearbeiten</span></a>] [<a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Vorlage:Code/Doku&action=history"><span title="Frühere Versionen der Dokumentationsseite">Versionsgeschichte</span></a>] [<span class="noprint plainlinks purgelink"><a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Vorlage:Code&action=purge"><span title="Server-Cache für diese Seite leeren.">Aktualisieren</span></a></span>]</span></div><div class="voy-box-content mw-collapsible-content"> <style data-mw-deduplicate="TemplateStyles:r1647858">.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"><tbody><tr><td class="mbox-image"><div style="position: relative;"><span typeof="mw:File"><a href="/wiki/Datei:Leer100x60tr.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikivoyage/de/thumb/5/56/Leer100x60tr.svg/90px-Leer100x60tr.svg.png" decoding="async" width="90" height="55" class="mw-file-element" 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" data-file-width="102" data-file-height="62" /></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-valign-baseline mw-image-border noviewer" typeof="mw:File"><a href="/wiki/Datei:Flag_of_Germany.svg" class="mw-file-description" title="Flagge Germany"><img alt="Flagge Germany" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Flag_of_Germany.svg/32px-Flag_of_Germany.svg.png" decoding="async" width="32" height="19" class="mw-file-element" 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" data-file-width="1000" data-file-height="600" /></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-valign-baseline mw-image-border noviewer" typeof="mw:File"><a href="/wiki/Datei:Flag_of_the_United_Kingdom_(1-2).svg" class="mw-file-description" title="Flagge United Kingdom"><img alt="Flagge United Kingdom" 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" width="32" height="16" class="mw-file-element" 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" data-file-width="1200" data-file-height="600" /></a></span></span></div> </div></td><td class="mbox-text">Dieser Artikel wurde aus einer englischen Sprachversion importiert und wurde noch nicht vollständig übersetzt. Bitte hilf mit, den Text auf deutsch verfügbar zu machen.</td></tr></tbody></table> <p><br /> </p> <div class="mw-heading mw-heading2"><h2 id="Usage">Usage</h2></div> <p>Wraps a short span of text in <code><syntaxhighlight></code> tags (see <a href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi" class="extiw" title="mw:Extension:SyntaxHighlight GeSHi">mw:Extension:SyntaxHighlight GeSHi</a>). This template should be used for short samples; longer content should use <code style="white-space:nowrap;"><pre>...</pre></code> or <code style="white-space:nowrap;"><syntaxhighlight>...</syntaxhighlight></code>. See <a href="/wiki/Hilfe:Wiki_Markup" class="mw-redirect" title="Hilfe:Wiki Markup">Hilfe:Wiki Markup</a> for an explanation of what the various tags do. </p><p>If the content includes an equals sign (=), you must specify the parameter explicitly: <code>{{code|1=date=30 Feb 2010}}</code>. </p><p>However, <code>{{code|a {{template}} call}}</code> will still invoke the template: </p> <dl><dd><div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">a {{[[Template:{{{1}}}|{{{1}}}]]}} call</div></dd></dl> <p>Use <code style="white-space:nowrap;"><nowiki>...</nowiki></code> around the template name to avoid this problem: </p> <dl><dd><div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">a {{template}} call</div></dd></dl> <p>When used inline with regular text, <code>{{code}}</code> generally looks best and is easiest to read when it is explicitly spaced apart from the regular text: </p> <dl><dd><div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">foo  {{code|bar baz}}  quux.</div></dd></dl> <p>is well spaced: </p> <dl><dd>foo  <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">bar baz</div>  quux.</dd></dl> <p>versus: </p> <dl><dd><div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">foo {{code|bar baz}} quux.</div></dd></dl> <p>which is going to be visually confusing for many: </p> <dl><dd>foo <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">bar baz</div> quux.</dd></dl> because "foo" and "<div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">bar</div>" will seem more closely associated than "<div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">bar</div>" and "<div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">baz</div>"; the width of the space character in a monospaced font is almost always larger than in a proportional font. Use parameter {{{2}}} (unnamed, as <code class="templatelink" style="white-space:nowrap;">|2=</code>, or more explicitly as <code class="templatelink" style="white-space:nowrap;">|lang=</code>) to specify a language for <a href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi" class="extiw" title="mw:Extension:SyntaxHighlight GeSHi">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 <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">html4strict</div> and <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">html5</div> are valid values, as are <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">php</div>, <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">perl</div>, <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">css</div>, <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">javascript</div>, <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">mysql</div> 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>This template does not need to be <a href="https://de.wikipedia.org/wiki/en:Wikipedia:Template_substitution" class="extiw" title="w:en:Wikipedia:Template substitution">substituted</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Examples">Examples</h3></div> <table class="prettytable" style="table-layout: fixed; width: 100%; border-width: medium; margin-left: 0em;"> <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">Lorem {{code|ipsum '''dolor'''}} sit amet</pre> </td> <td style="width:50%; vertical-align:text-top;"> Lorem <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">ipsum <b>dolor</b></div> 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">The declaration {{code |lang=cpp |int foo(const std::string& bar, const std::vector<long double*>& baz);}} is the prototype for a function defined later.</pre> </td> <td style="width:50%; vertical-align:text-top;"> The declaration <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">int foo(const std::string& bar, const std::vector<long double*>& baz);</div> 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">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 href="https://de.wikipedia.org/wiki/en:equals_sign" class="extiw" title="w:en:equals sign">w:en:equals sign</a>, such as <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">{{{1}}}</div>, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=5138" class="extiw" title="bugzilla:5138">bugzilla:5138</a>. </td> </tr> </tbody></table> <div class="mw-heading mw-heading3"><h3 id="Included_templates">Included templates</h3></div> <p>Embedded templates do not function as expected inside {{<a class="mw-selflink selflink">code</a>}}; for longer, free-form blocks of code, which can contain templates such as {{<a href="/wiki/Vorlage:Var" title="Vorlage:Var">var</a>}} and {{<a href="/wiki/Vorlage:Samp" title="Vorlage:Samp">samp</a>}}, use <code style="white-space:nowrap;"><code>...</code></code> as a wrapper instead of this template. </p><p>Templates used inside {{<a class="mw-selflink selflink">code</a>}} 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;"> <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">{{code| {{Th|กรุงเทพมหานคร}} }}</pre> </td> <td style="width:50%; vertical-align:text-top;"> <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;"> <p><style data-mw-deduplicate="TemplateStyles:r1580790">.mw-parser-output .verticalFont{vertical-align:top;writing-mode:vertical-lr}</style><span class="voy-foreign-lang voy-foreign-lang-th voy-foreign-dir-ltr"><span class="voy-lang voy-lang-th" lang="th" dir="ltr" title="Text auf thailändisch">กรุงเทพมหานคร</span></span> </p> </div> </td> </tr> </tbody></table> <p>The above example shows the HTML rendered by the citation template, including the hidden metadata. </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div> <div style="float: right; padding: 0 1em;"><style data-mw-deduplicate="TemplateStyles:r1446851">.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 href="/wiki/Vorlage:Semantic_templates_see_also" class="mw-redirect" title="Vorlage:Semantic templates see also"><span title="Ansehen">ansehen</span></a></li><li class="nv-talk"><a href="/w/index.php?title=Vorlage_Diskussion:Semantic_templates_see_also&action=edit&redlink=1" class="new" title="Vorlage Diskussion:Semantic templates see also (Seite nicht vorhanden)"><span title="Diskutieren">diskutieren</span></a></li><li class="nv-edit"><a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Vorlage:Semantic_templates_see_also&action=edit"><span title="Bearbeiten">bearbeiten</span></a></li></ul></div></div> <p>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> <ul><li>{{<a href="/wiki/Vorlage:Em" title="Vorlage:Em">em</a>}} – Die Vorlage kennzeichnet Text, der besonders <em>betont</em> werden soll. Browser stellen ihn im Regelfall kursiv dar.</li> <li>{{<a href="/wiki/Vorlage:Strong" title="Vorlage:Strong">strong</a>}} – Dient der <strong>starken Hervorhebung</strong> von Wörtern und Passagen. Die Darstellung erfolgt standardmäßig in Fettschrift.</li></ul> <p>In Artikeln außerhalb des Haupt- und Nachrichtennamensraums (Diskusssionen, Projekt- und Hilfeseiten) können weitere Vorlagen Anwendung finden: </p> <ul><li>{{<a href="/wiki/Vorlage:Strongbad" title="Vorlage:Strongbad">strongbad</a>}} – Wie <code>{{strong}}</code> aber rot wie in dem Beispiel: „Benutze <code>{{strongbad}}</code> <strong class="voy-color-red">niemals</strong> in Artikeln.“</li> <li>{{<a href="/wiki/Vorlage:Stronggood" title="Vorlage:Stronggood">stronggood</a>}} – Wie <code>{{strongbad}}</code> aber grün wie in dem Beispiel: „Benutze <code>{{stronggood}}</code> <strong class="voy-color-green">nur</strong> außerhalb des Artikelnamensraums.“</li> <li>{{<a href="/wiki/Vorlage:Var" title="Vorlage:Var">var</a>}} – Zusammen mit {{<a href="/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> <p>Die folgenden Vorlagen stellen lediglich eine Formatierungshilfe dar, erzeugen aber keine speziellen [X]HTML-Tags, um Inhalte maschinenlesbar eine Bedeutung zu geben. </p> <ul><li>{{<a href="/wiki/Vorlage:Wikivar" title="Vorlage:Wikivar">wikivar</a>}} – Stellt Text als <a href="/wiki/Hilfe:Magische_W%C3%B6rter" 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 href="/wiki/Vorlage:Para" title="Vorlage:Para">para</a>}} – 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 href="/wiki/Vorlage:Tlx" title="Vorlage:Tlx">tlx</a>}} and related – For displaying entire templates (with or without parameters and values) as code.</li> <li>{{<a href="/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;"><img>...</img></code> tags, always include …").</li> <li>{{<a class="mw-selflink selflink">code</a>}} – For computer source code (e.g. "always include the <div style="display:block;border:1px dashed darkblue;padding:.8em;margin-top:.5em;margin-bottom:.5em;">alt=</div> parameter"). (Note: to nest other templates like <code>{{var}}</code> inside, use <code style="white-space:nowrap;"><code>...</code></code> instead of <code>{{code}}</code>.)</li> <li>{{<a href="/wiki/Vorlage:Syntaxhighlight" title="Vorlage:Syntaxhighlight">syntaxhighlight</a>}} or {{<a href="/wiki/Vorlage:Sxhl" class="mw-redirect" title="Vorlage:Sxhl">sxhl</a>}} – Wrapper for <code style="white-space:nowrap;"><syntaxhighlight>...</syntaxhighlight></code>, but will wrap overflowing text.</li> <li>{{<a href="/wiki/Vorlage:Pre" title="Vorlage:Pre">pre</a>}} – For larger blocks of source code and other pre-formatted text.</li> <li>{{<a href="/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 href="/wiki/Vorlage:Bq" class="mw-redirect" title="Vorlage:Bq">bq</a>}} – For indented blocks of content, such as block quotations, examples, poems, etc.</li> <li>{{<a href="/wiki/Vorlage:Kbd" title="Vorlage:Kbd">kbd</a>}} – For indicating <kbd style="background:#EEEEEE; letter-spacing:0.1em; padding-left:0.5em; padding-right:0.4em;">user input</kbd>.</li> <li>{{<a href="/wiki/Vorlage:Key_press" title="Vorlage:Key press">key press</a>}} – For indicating the input of specific keystrokes, e.g. <style data-mw-deduplicate="TemplateStyles:r1649422">.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"><kbd class="keyboard-key nowrap voy-keyboard-key">X</kbd>.</li> <li>{{<a href="/wiki/Vorlage:Samp" title="Vorlage:Samp">samp</a>}} – For <samp style="padding-left:0.4em; padding-right:0.4em; color: #666666;">example output</samp>.</li> <li><code style="white-space:nowrap;"><<a href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight" class="extiw" title="mw:Extension:SyntaxHighlight">syntaxhighlight</a>></code></li> <li><a href="/wiki/Hilfe:Wiki_Markup" class="mw-redirect" title="Hilfe:Wiki Markup">Hilfe:Wiki Markup</a></li></ul></div> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1644638"><div class="voy-box-wrapper voy-box-var-1"><div class="voy-box-header">Hinweise</div><div class="voy-box-content mw-collapsible-content"> <ul> <li>Die obige Dokumentation wurde aus der Seite <a href="/wiki/Vorlage:Code/Doku" title="Vorlage:Code/Doku">Vorlage:Code/Doku</a> eingefügt. <small>(<span class="plainlinks"><a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Vorlage:Code/Doku&action=edit">bearbeiten</a></span> | <span class="plainlinks"><a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Vorlage:Code/Doku&action=history">Versionsgeschichte</a></span>)</small> Die Kategorien für diese Vorlage sollten in der Dokumentation eingetragen werden. Die Interwiki-Links sollten auf Wikidata eingepflegt werden.</li><li><a href="/wiki/Spezial:Pr%C3%A4fixindex/Vorlage:Code" title="Spezial:Präfixindex/Vorlage:Code">Liste der Unterseiten</a></li> </ul></div> </div><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1644638"><div class="voy-box-wrapper voy-box-var-1 voy-navigation-bar mw-collapsible noprint"><div class="voy-box-header"><b><a href="/wiki/Wikivoyage:Vorlagen" title="Wikivoyage:Vorlagen">Vorlagen auf Wikivoyage</a></b></div><div class="voy-box-content mw-collapsible-content"> <p><b><a href="/wiki/Wikivoyage:Vorlagen/%C3%9Cbersicht" title="Wikivoyage:Vorlagen/Übersicht">Übersicht</a> / <a href="/wiki/Wikivoyage:Vorlagen_nach_Stichw%C3%B6rtern" title="Wikivoyage:Vorlagen nach Stichwörtern">Stichwörter</a> / <a href="/wiki/Wikivoyage:Vorlagen/Werkstatt" title="Wikivoyage:Vorlagen/Werkstatt">Werkstatt</a></b>: <span class="nowrap"><a href="/wiki/Wikivoyage:Vorlagen/Artikeldesign" title="Wikivoyage:Vorlagen/Artikeldesign">Artikeldesign</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Feiertage" title="Wikivoyage:Vorlagen/Feiertage">Feiertage</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Fremdsprachen" title="Wikivoyage:Vorlagen/Fremdsprachen">Fremdsprachen</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Inhaltsverzeichnisse" title="Wikivoyage:Vorlagen/Inhaltsverzeichnisse">Inhaltsverzeichnisse</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Infoboxen" title="Wikivoyage:Vorlagen/Infoboxen">Infoboxen</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Interne_Links" title="Wikivoyage:Vorlagen/Interne Links">Interne Links</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Kartenwerkzeuge" title="Wikivoyage:Vorlagen/Kartenwerkzeuge">Kartenwerkzeuge</a> <b>·</b></span> <span class="nowrap"><a href="/wiki/Wikivoyage:Vorlagen/Listen" title="Wikivoyage:Vorlagen/Listen">Listen</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Literaturangaben" title="Wikivoyage:Vorlagen/Literaturangaben">Literaturangaben und Zitate</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Multimedia" title="Wikivoyage:Vorlagen/Multimedia">Multimedia</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Navigationsboxen" title="Wikivoyage:Vorlagen/Navigationsboxen">Navigationsboxen</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Projekt,_Community_und_Kommunikation" title="Wikivoyage:Vorlagen/Projekt, Community und Kommunikation">Projekt, Community und Kommunikation</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Quickbars" title="Wikivoyage:Vorlagen/Quickbars">Quickbars</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Syntaxhilfe_und_Substitution" title="Wikivoyage:Vorlagen/Syntaxhilfe und Substitution">Syntaxhilfe und Substitution</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Tabellen" title="Wikivoyage:Vorlagen/Tabellen">Tabellen</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Textformatierung" title="Wikivoyage:Vorlagen/Textformatierung">Textformatierung</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Textboxen" title="Wikivoyage:Vorlagen/Textboxen">Textboxen</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Unicode" title="Wikivoyage:Vorlagen/Unicode">Unicode</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Vorlagenprogrammierung" title="Wikivoyage:Vorlagen/Vorlagenprogrammierung">Vorlagenprogrammierung</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Zeichenkettenmanipulation" title="Wikivoyage:Vorlagen/Zeichenkettenmanipulation">Zeichenkettenmanipulation</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Wikidata" title="Wikivoyage:Vorlagen/Wikidata">Wikidata</a> <b>·</b></span> <span class="nowrap"> <a href="/wiki/Wikivoyage:Vorlagen/Zeitsteuerung" title="Wikivoyage:Vorlagen/Zeitsteuerung">Zeitsteuerung</a></span> </p> <hr /> Eine Übersicht über alle Artikel zur Arbeit an Wikivoyage findest du im <a href="/wiki/Wikivoyage:Index" title="Wikivoyage:Index">Index für den Projektnamensraum Wikivoyage</a>.</div> </div> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&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&oldid=631788">https://de.wikivoyage.org/w/index.php?title=Vorlage:Code&oldid=631788</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:HTML-Tags" title="Kategorie:Vorlagen:HTML-Tags">Vorlagen:HTML-Tags</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-lastmod"> Diese Seite wurde zuletzt am 23. Februar 2008 um 12:41 Uhr bearbeitet.</li> <li id="footer-info-copyright"><div id="footer-info-copyright-stats" class="noprint"><a class="external text" href="//pageviews.toolforge.org/?pages=Vorlage:Code&project=de.wikivoyage.org">Abrufstatistik</a><br /> </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&diff=prev&oldid=631788&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-v89px","wgBackendResponseTime":492,"wgPageParseReport":{"limitreport":{"cputime":"0.210","walltime":"0.278","ppvisitednodes":{"value":2741,"limit":1000000},"postexpandincludesize":{"value":130214,"limit":2097152},"templateargumentsize":{"value":25261,"limit":2097152},"expansiondepth":{"value":20,"limit":100},"expensivefunctioncount":{"value":5,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":29965,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 242.316 1 -total"," 99.56% 241.256 1 Vorlage:Documentation"," 96.29% 233.327 3 Vorlage:Box"," 58.54% 141.846 1 Vorlage:Code/Doku"," 25.89% 62.740 1 Vorlage:Semantic_templates_see_also"," 18.70% 45.308 1 Vorlage:Bitte_um_Übersetzung"," 16.44% 39.847 1 Vorlage:Ombox"," 7.71% 18.671 2 Vorlage:Key_press"," 6.44% 15.616 2 Vorlage:Key_press/core"," 6.20% 15.030 2 Vorlage:Markup"]},"scribunto":{"limitreport-timeusage":{"value":"0.019","limit":"10.000"},"limitreport-memusage":{"value":727332,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-5c59558b9d-v89px","timestamp":"20241201204738","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>