CINXE.COM
Modul:Tools – 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-not-available" lang="de" dir="ltr"> <head> <meta charset="UTF-8"> <title>Modul:Tools – 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-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":"e2cd758a-7f94-4ea0-8fb2-268489916f63","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Modul:Tools","wgTitle":"Tools","wgCurRevisionId":1019994,"wgRevisionId":1019994,"wgArticleId":79624,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Verwendbare Module"],"wgPageViewLanguage":"de","wgPageContentLanguage":"de","wgPageContentModel":"Scribunto","wgRelevantPageName":"Modul:Tools","wgRelevantArticleId":79624,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikivoyage","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{ "pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":1000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"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","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.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","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.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&modules=ext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%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.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Modul:Tools – 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/Modul:Tools"> <link rel="alternate" type="application/x-wiki" title="Bearbeiten" href="/w/index.php?title=Modul:Tools&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/Modul:Tools"> <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="//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-828 ns-subject mw-editable page-Modul_Tools rootpage-Modul_Tools 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/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&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=Modul%3ATools" 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=Modul%3ATools" 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/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&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=Modul%3ATools" 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=Modul%3ATools" 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"><span class="mw-page-title-namespace">Modul</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Tools</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&page=Modul%3ATools" 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-module" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Modul:Tools" title="Die Modulseite ansehen [c]" accesskey="c"><span>Modul</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul_Diskussion:Tools&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">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="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/Modul:Tools"><span>Lesen</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:Tools&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=Modul:Tools&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/Modul:Tools"><span>Lesen</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:Tools&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=Modul:Tools&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/Modul:Tools" 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/Modul:Tools" 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=Modul:Tools&oldid=1019994" 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=Modul:Tools&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%2Fwiki%2FModul%3ATools"><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%2Fwiki%2FModul%3ATools"><span>QR-Code runterladen</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&page=Modul%3ATools&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> <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-content-ltr mw-parser-output" lang="de" dir="ltr"> <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"><span><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" /></span></span> Dokumentation für das Modul <em>Tools</em><span class="plainlinks voy-doc-editlinks" style="font-size: small; padding-left: 1em;">[<a href="/wiki/Modul:Tools/Doku" title="Modul:Tools/Doku"><span title="Ansicht der Dokumentationsseite">Ansicht</span></a>] [<a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Modul:Tools/Doku&action=edit"><span title="Bearbeiten der Dokumentationsseite">Bearbeiten</span></a>] [<a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Modul:Tools/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=Modul:Tools&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-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/40px-Green_check.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/60px-Green_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/80px-Green_check.svg.png 2x" data-file-width="600" data-file-height="600" /></span></span></td><td class="mbox-text">Dieses Modul ist getestet und für den <a href="/wiki/Kategorie:Verwendbare_Module" title="Kategorie:Verwendbare Module">projektweiten Gebrauch</a> geeignet. Es kann in Vorlagen benutzt und auf Hilfeseiten erläutert werden. Entwicklungen an dem Modul sollten auf <a href="/w/index.php?title=Modul:Tools/Test&action=edit&redlink=1" class="new" title="Modul:Tools/Test (Seite nicht vorhanden)">Tools/Test</a> und die Anwendung auf der <a href="/wiki/Hilfe:Spielwiese" title="Hilfe:Spielwiese">Spielwiese</a> getestet werden, da wiederholte Trial-and-Error-Edits die Resourcen stark belasten können.</td></tr></tbody></table> <p>Das Modul stellt eine Reihe von Funktionen zur Verfügung, die häufig in anderen Modulen oder Vorlagen gebraucht werden könnten. </p> <div class="mw-heading mw-heading2"><h2 id="Funktionen_zur_Verwendung_intern_und_in_anderen_Modulen">Funktionen zur Verwendung intern und in anderen Modulen</h2></div> <p>Die folgenden Funktionen können innerhalb des Moduls verwendet und sind nicht von Vorlagen aus aufrufbar. </p> <div class="mw-heading mw-heading4"><h4 id="strtok">strtok</h4></div> <p>In Anlehnung an die gleichnamige Funktion im PHP zerlegt diese Funktion eine Zeichenkette an einem anzugebenden Trennzeichen. Es wird eine Tabelle mit allen einzelnen Zeichenketten zurückgegeben. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nf">strtok</span> <span class="p">(</span> <span class="n">stringStr</span><span class="p">,</span> <span class="n">delimiterStr</span> <span class="p">)</span> </pre></div> <p>Beispiel: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">-- Zerlegung der Zeichenkette</span> <span class="n">liste</span> <span class="o">=</span> <span class="n">strtok</span> <span class="p">(</span> <span class="s1">'Januar;Februar;März'</span><span class="p">,</span> <span class="s1">';'</span> <span class="p">)</span> <span class="c1">-- Inhalt der Liste:</span> <span class="n">liste</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">'Januar'</span><span class="p">,</span> <span class="s1">'Februar'</span><span class="p">,</span> <span class="s1">'März'</span> <span class="p">}</span> </pre></div> <div class="mw-heading mw-heading4"><h4 id="rmNamespace">rmNamespace</h4></div> <p>Entfernt aus einem Artikelnamen den Namensraum </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nf">rmNamespace</span> <span class="p">(</span> <span class="n">pageName</span> <span class="p">)</span> </pre></div> <p>Beispiel: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">-- Entfernung des Namensraums</span> <span class="n">seite</span> <span class="o">=</span> <span class="n">rmNamespace</span> <span class="p">(</span> <span class="s1">'Modul:Zeit/Params/Doku'</span> <span class="p">)</span> <span class="c1">-- Inhalt der Variablen:</span> <span class="n">seite</span> <span class="o">=</span> <span class="s1">'Zeit/Params/Doku'</span> </pre></div> <div class="mw-heading mw-heading4"><h4 id="rmBRTag">rmBRTag</h4></div> <p>Entfernt BR-Tags aus einem Text </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nf">rmBRTag</span> <span class="p">(</span> <span class="n">text</span> <span class="p">)</span> </pre></div> <p>Beispiel: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">-- Entfernung des BR-Tags</span> <span class="n">text</span> <span class="o">=</span> <span class="n">rmNamespace</span> <span class="p">(</span> <span class="s1">'Text mit<br />einem Zeilenumbruch'</span> <span class="p">)</span> <span class="c1">-- Inhalt der Variablen:</span> <span class="n">text</span> <span class="o">=</span> <span class="s1">'Text mit einem Zeilenumbruch'</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Funktionen">Funktionen</h2></div> <p>Die folgenden Funktionen können in Vorlagen und Artikeln benutzt werden </p> <ul><li><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr">firstBasepagename</code> – filtert aus Artikelnamen den Namen der obersten Seite heraus und entfernt den Modulnamen. Aus <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr">Modul:Zeit/Params/Doku</code> wird <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr">Zeit</code>. Es wird der erste übergebene Parameter verwendet. Optional kann auch ein Parameter mit der Bezeichnung <code class="templatelink" style="white-space:nowrap;">|page=</code> verwendet werden.</li></ul> <div class="mw-heading mw-heading2"><h2 id="Einbindung_in_anderen_Modulen">Einbindung in anderen Modulen</h2></div> <p>Folgende Module verwenden dieses Modul. Bei Änderung an diesem Modul sollte die Funktionsfähigkeit der anderen Module nicht beeinträchtigt werden. </p> <div class="mw-heading mw-heading2"><h2 id="Verwendung_in_anderen_Vorlagen">Verwendung in anderen Vorlagen</h2></div> <p>Folgende Vorlagen verwenden dieses Modul: </p> <ul><li>{{<a href="/wiki/Vorlage:FIRSTBASEPAGENAME" title="Vorlage:FIRSTBASEPAGENAME">FIRSTBASEPAGENAME</a>}} – benutzt die Funktion <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr">firstBasepagename</code></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/Modul:Tools/Doku" title="Modul:Tools/Doku">Modul:Tools/Doku</a> eingefügt. <small>(<span class="plainlinks"><a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Modul:Tools/Doku&action=edit">bearbeiten</a></span> | <span class="plainlinks"><a class="external text" href="https://de.wikivoyage.org/w/index.php?title=Modul:Tools/Doku&action=history">Versionsgeschichte</a></span>)</small> Die Kategorien für dieses Modul sollten in der Dokumentation eingetragen werden. Die Interwiki-Links sollten auf Wikidata eingepflegt werden.</li><li><a href="/wiki/Spezial:Pr%C3%A4fixindex/Modul:Tools" title="Spezial:Präfixindex/Modul:Tools">Liste der Unterseiten</a></li> </ul></div> </div><div class="mw-highlight mw-highlight-lang-lua mw-content-ltr mw-highlight-lines" dir="ltr"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos" data-line="1"></span></a><span class="c1">-- internal Functions</span> </span><span id="L-2"><a href="#L-2"><span class="linenos" data-line="2"></span></a><span class="kd">local</span> <span class="kr">function</span> <span class="nf">_getParameters</span><span class="p">(</span> <span class="n">frame_args</span><span class="p">,</span> <span class="n">arg_list</span> <span class="p">)</span> </span><span id="L-3"><a href="#L-3"><span class="linenos" data-line="3"></span></a> <span class="kd">local</span> <span class="n">new_args</span> <span class="o">=</span> <span class="p">{};</span> </span><span id="L-4"><a href="#L-4"><span class="linenos" data-line="4"></span></a> <span class="kd">local</span> <span class="n">index</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span> </span><span id="L-5"><a href="#L-5"><span class="linenos" data-line="5"></span></a> <span class="kd">local</span> <span class="n">value</span><span class="p">;</span> </span><span id="L-6"><a href="#L-6"><span class="linenos" data-line="6"></span></a> </span><span id="L-7"><a href="#L-7"><span class="linenos" data-line="7"></span></a> <span class="kr">for</span> <span class="n">i</span><span class="p">,</span><span class="n">arg</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span> <span class="n">arg_list</span> <span class="p">)</span> <span class="kr">do</span> </span><span id="L-8"><a href="#L-8"><span class="linenos" data-line="8"></span></a> <span class="n">value</span> <span class="o">=</span> <span class="n">frame_args</span><span class="p">[</span><span class="n">arg</span><span class="p">]</span> </span><span id="L-9"><a href="#L-9"><span class="linenos" data-line="9"></span></a> <span class="kr">if</span> <span class="n">value</span> <span class="o">==</span> <span class="kc">nil</span> <span class="kr">then</span> </span><span id="L-10"><a href="#L-10"><span class="linenos" data-line="10"></span></a> <span class="n">value</span> <span class="o">=</span> <span class="n">frame_args</span><span class="p">[</span><span class="n">index</span><span class="p">];</span> </span><span id="L-11"><a href="#L-11"><span class="linenos" data-line="11"></span></a> <span class="n">index</span> <span class="o">=</span> <span class="n">index</span> <span class="o">+</span> <span class="mi">1</span><span class="p">;</span> </span><span id="L-12"><a href="#L-12"><span class="linenos" data-line="12"></span></a> <span class="kr">end</span> </span><span id="L-13"><a href="#L-13"><span class="linenos" data-line="13"></span></a> <span class="n">new_args</span><span class="p">[</span><span class="n">arg</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span><span class="p">;</span> </span><span id="L-14"><a href="#L-14"><span class="linenos" data-line="14"></span></a> <span class="kr">end</span> </span><span id="L-15"><a href="#L-15"><span class="linenos" data-line="15"></span></a> </span><span id="L-16"><a href="#L-16"><span class="linenos" data-line="16"></span></a> <span class="kr">return</span> <span class="n">new_args</span><span class="p">;</span> </span><span id="L-17"><a href="#L-17"><span class="linenos" data-line="17"></span></a><span class="kr">end</span> </span><span id="L-18"><a href="#L-18"><span class="linenos" data-line="18"></span></a> </span><span id="L-19"><a href="#L-19"><span class="linenos" data-line="19"></span></a><span class="kd">local</span> <span class="n">tools</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-20"><a href="#L-20"><span class="linenos" data-line="20"></span></a> </span><span id="L-21"><a href="#L-21"><span class="linenos" data-line="21"></span></a><span class="c1">-- Functions to be used in other modules</span> </span><span id="L-22"><a href="#L-22"><span class="linenos" data-line="22"></span></a><span class="kr">function</span> <span class="nc">tools</span><span class="p">.</span><span class="nf">strtok</span> <span class="p">(</span> <span class="n">stringStr</span><span class="p">,</span> <span class="n">delimiterStr</span> <span class="p">)</span> </span><span id="L-23"><a href="#L-23"><span class="linenos" data-line="23"></span></a> <span class="kd">local</span> <span class="n">s</span> <span class="o">=</span> <span class="n">stringStr</span><span class="o">..</span><span class="n">delimiterStr</span> </span><span id="L-24"><a href="#L-24"><span class="linenos" data-line="24"></span></a> <span class="kd">local</span> <span class="n">words</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-25"><a href="#L-25"><span class="linenos" data-line="25"></span></a> <span class="kr">for</span> <span class="n">w</span> <span class="kr">in</span> <span class="p">(</span><span class="n">s</span><span class="p">):</span><span class="n">gmatch</span><span class="p">(</span><span class="s1">'([^'</span><span class="o">..</span><span class="n">delimiterStr</span><span class="o">..</span><span class="s1">']*)'</span><span class="o">..</span><span class="n">delimiterStr</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-26"><a href="#L-26"><span class="linenos" data-line="26"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">words</span><span class="p">,</span> <span class="n">w</span><span class="p">)</span> </span><span id="L-27"><a href="#L-27"><span class="linenos" data-line="27"></span></a> <span class="kr">end</span> </span><span id="L-28"><a href="#L-28"><span class="linenos" data-line="28"></span></a> <span class="kr">return</span> <span class="n">words</span> </span><span id="L-29"><a href="#L-29"><span class="linenos" data-line="29"></span></a><span class="kr">end</span> </span><span id="L-30"><a href="#L-30"><span class="linenos" data-line="30"></span></a> </span><span id="L-31"><a href="#L-31"><span class="linenos" data-line="31"></span></a><span class="kr">function</span> <span class="nc">tools</span><span class="p">.</span><span class="nf">rmNamespace</span> <span class="p">(</span> <span class="n">pageName</span> <span class="p">)</span> </span><span id="L-32"><a href="#L-32"><span class="linenos" data-line="32"></span></a> <span class="kr">return</span> <span class="n">tools</span><span class="p">.</span><span class="n">strtok</span><span class="p">(</span><span class="n">pageName</span><span class="p">,</span><span class="s1">':'</span><span class="p">)[</span><span class="mi">2</span><span class="p">]</span> <span class="ow">or</span> <span class="n">pageName</span> </span><span id="L-33"><a href="#L-33"><span class="linenos" data-line="33"></span></a><span class="kr">end</span> </span><span id="L-34"><a href="#L-34"><span class="linenos" data-line="34"></span></a> </span><span id="L-35"><a href="#L-35"><span class="linenos" data-line="35"></span></a><span class="kr">function</span> <span class="nc">tools</span><span class="p">.</span><span class="nf">rmBRTag</span> <span class="p">(</span> <span class="n">text</span> <span class="p">)</span> </span><span id="L-36"><a href="#L-36"><span class="linenos" data-line="36"></span></a> <span class="kr">return</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">gsub</span><span class="p">(</span> <span class="n">text</span><span class="p">,</span> <span class="s1">'<br */*>'</span><span class="p">,</span> <span class="s1">' '</span> <span class="p">)</span> </span><span id="L-37"><a href="#L-37"><span class="linenos" data-line="37"></span></a><span class="kr">end</span> </span><span id="L-38"><a href="#L-38"><span class="linenos" data-line="38"></span></a> </span><span id="L-39"><a href="#L-39"><span class="linenos" data-line="39"></span></a><span class="c1">-- Functions to be used in templates</span> </span><span id="L-40"><a href="#L-40"><span class="linenos" data-line="40"></span></a><span class="kr">function</span> <span class="nc">tools</span><span class="p">.</span><span class="nf">firstBasepagename</span> <span class="p">(</span><span class="n">frame</span><span class="p">)</span> </span><span id="L-41"><a href="#L-41"><span class="linenos" data-line="41"></span></a> </span><span id="L-42"><a href="#L-42"><span class="linenos" data-line="42"></span></a> <span class="kd">local</span> <span class="n">new_args</span> <span class="o">=</span> <span class="n">_getParameters</span><span class="p">(</span> <span class="n">frame</span><span class="p">.</span><span class="n">args</span><span class="p">,</span> <span class="p">{</span><span class="s1">'page'</span><span class="p">}</span> <span class="p">);</span> </span><span id="L-43"><a href="#L-43"><span class="linenos" data-line="43"></span></a> <span class="kd">local</span> <span class="n">page</span> <span class="o">=</span> <span class="n">new_args</span><span class="p">[</span><span class="s1">'page'</span><span class="p">]</span> <span class="ow">or</span> <span class="s1">''</span><span class="p">;</span> </span><span id="L-44"><a href="#L-44"><span class="linenos" data-line="44"></span></a> <span class="kr">return</span> <span class="n">tools</span><span class="p">.</span><span class="n">strtok</span><span class="p">(</span><span class="n">tools</span><span class="p">.</span><span class="n">rmNamespace</span><span class="p">(</span><span class="n">page</span><span class="p">),</span><span class="s1">'/'</span><span class="p">)[</span><span class="mi">1</span><span class="p">]</span> <span class="ow">or</span> <span class="n">page</span> </span><span id="L-45"><a href="#L-45"><span class="linenos" data-line="45"></span></a><span class="kr">end</span> </span><span id="L-46"><a href="#L-46"><span class="linenos" data-line="46"></span></a> </span><span id="L-47"><a href="#L-47"><span class="linenos" data-line="47"></span></a><span class="kr">return</span> <span class="n">tools</span> </span></pre></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐6b7f745dd4‐xncpt Cached time: 20241125123850 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, no‐toc] CPU time usage: 0.194 seconds Real time usage: 1.252 seconds Preprocessor visited node count: 434/1000000 Post‐expand include size: 27073/2097152 bytes Template argument size: 5566/2097152 bytes Highest expansion depth: 19/100 Expensive parser function count: 14/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 21147/5000000 bytes Lua time usage: 0.024/10.000 seconds Lua memory usage: 686580/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 1226.170 1 -total 100.00% 1226.170 1 Vorlage:Dokumentation 99.62% 1221.519 2 Vorlage:Box 79.11% 970.044 1 Modul:Tools/Doku 18.64% 228.525 4 Vorlage:Code 9.37% 114.844 1 Vorlage:Tl 9.28% 113.775 1 Vorlage:Para 5.20% 63.806 1 Vorlage:Module_rating 4.78% 58.590 1 Vorlage:Module_other 4.39% 53.772 1 Vorlage:Ombox --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Abgerufen von „<a dir="ltr" href="https://de.wikivoyage.org/w/index.php?title=Modul:Tools&oldid=1019994">https://de.wikivoyage.org/w/index.php?title=Modul:Tools&oldid=1019994</a>“</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Versteckte Kategorie: <ul><li><a href="/wiki/Kategorie:Verwendbare_Module" title="Kategorie:Verwendbare Module">Verwendbare Module</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=Modul:Tools&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=Modul:Tools&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-6b7f745dd4-xncpt","wgBackendResponseTime":1484,"wgPageParseReport":{"limitreport":{"cputime":"0.194","walltime":"1.252","ppvisitednodes":{"value":434,"limit":1000000},"postexpandincludesize":{"value":27073,"limit":2097152},"templateargumentsize":{"value":5566,"limit":2097152},"expansiondepth":{"value":19,"limit":100},"expensivefunctioncount":{"value":14,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":21147,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 1226.170 1 -total","100.00% 1226.170 1 Vorlage:Dokumentation"," 99.62% 1221.519 2 Vorlage:Box"," 79.11% 970.044 1 Modul:Tools/Doku"," 18.64% 228.525 4 Vorlage:Code"," 9.37% 114.844 1 Vorlage:Tl"," 9.28% 113.775 1 Vorlage:Para"," 5.20% 63.806 1 Vorlage:Module_rating"," 4.78% 58.590 1 Vorlage:Module_other"," 4.39% 53.772 1 Vorlage:Ombox"]},"scribunto":{"limitreport-timeusage":{"value":"0.024","limit":"10.000"},"limitreport-memusage":{"value":686580,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-6b7f745dd4-xncpt","timestamp":"20241125123850","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>