CINXE.COM
Wikipedia:Lua/Requests/Archive 4 - Wikipedia
<!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-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Wikipedia:Lua/Requests/Archive 4 - Wikipedia</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-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"2b757a55-ca74-440a-928c-9926a91a3d45","wgCanonicalNamespace":"Project","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":4,"wgPageName":"Wikipedia:Lua/Requests/Archive_4","wgTitle":"Lua/Requests/Archive 4","wgCurRevisionId":1140156605,"wgRevisionId":1140156605,"wgArticleId":42089406,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Archive pages whose parent page is a redirect"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Wikipedia:Lua/Requests/Archive_4","wgRelevantArticleId":42089406,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{ "levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":200000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":false,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"source","wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model", "platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.discussionTools.init.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin", "mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","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=en&modules=ext.discussionTools.init.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.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=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Wikipedia:Lua/Requests/Archive 4 - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-4 ns-subject mw-editable page-Wikipedia_Lua_Requests_Archive_4 rootpage-Wikipedia_Lua skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Wikipedia%3ALua%2FRequests%2FArchive+4" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Wikipedia%3ALua%2FRequests%2FArchive+4" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Wikipedia%3ALua%2FRequests%2FArchive+4" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Wikipedia%3ALua%2FRequests%2FArchive+4" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Module:Documentation" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module:Documentation"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Module:Documentation</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">4 comments</span> <ul id="toc-Module:Documentation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Automatic_module_translation_is_getting_there_..._advice?" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Automatic_module_translation_is_getting_there_..._advice?"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Automatic module translation is getting there ... advice?</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">4 comments</span> <ul id="toc-Automatic_module_translation_is_getting_there_..._advice?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-mw.html_question" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#mw.html_question"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>mw.html question</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">14 comments</span> <ul id="toc-mw.html_question-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Module:AutoPortals" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module:AutoPortals"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Module:AutoPortals</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">18 comments</span> <ul id="toc-Module:AutoPortals-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-How_about_a_mw.file_api" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#How_about_a_mw.file_api"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>How about a mw.file api</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">9 comments</span> <button aria-controls="toc-How_about_a_mw.file_api-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle How about a mw.file api subsection</span> </button> <ul id="toc-How_about_a_mw.file_api-sublist" class="vector-toc-list"> <li id="toc-File_objects" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#File_objects"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>File objects</span> </div> </a> <ul id="toc-File_objects-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Later" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Later"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2</span> <span>Later</span> </div> </a> <ul id="toc-Later-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Might_not_be_needed_?" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Might_not_be_needed_?"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.3</span> <span>Might not be needed ?</span> </div> </a> <ul id="toc-Might_not_be_needed_?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Thumbs" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Thumbs"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.4</span> <span>Thumbs</span> </div> </a> <ul id="toc-Thumbs-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Comments" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Comments"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.5</span> <span>Comments</span> </div> </a> <ul id="toc-Comments-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Module:Flags" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module:Flags"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Module:Flags</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">2 comments</span> <ul id="toc-Module:Flags-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Need_help" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Need_help"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Need help</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">5 comments</span> <ul id="toc-Need_help-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>External links</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">7 comments</span> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Function_needed" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Function_needed"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>Function needed</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">17 comments</span> <button aria-controls="toc-Function_needed-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Function needed subsection</span> </button> <ul id="toc-Function_needed-sublist" class="vector-toc-list"> <li id="toc-Parser_keeps_lead_spaces_in_unnamed_parameters" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Parser_keeps_lead_spaces_in_unnamed_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1</span> <span>Parser keeps lead spaces in unnamed parameters</span> </div> </a> <ul id="toc-Parser_keeps_lead_spaces_in_unnamed_parameters-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Pattern_documentation" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Pattern_documentation"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>Pattern documentation</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">12 comments</span> <ul id="toc-Pattern_documentation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Template:Chart" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Template:Chart"> <div class="vector-toc-text"> <span class="vector-toc-numb">11</span> <span>Template:Chart</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">3 comments</span> <ul id="toc-Template:Chart-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Module_request" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module_request"> <div class="vector-toc-text"> <span class="vector-toc-numb">12</span> <span>Module request</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">4 comments</span> <ul id="toc-Module_request-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Is_there_any_way_to_save_some_value_between_two_separate_module_calls?"> <div class="vector-toc-text"> <span class="vector-toc-numb">13</span> <span>Is there any way to save some value between two separate module calls?</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">5 comments</span> <ul id="toc-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-table_with_automatic_summation" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#table_with_automatic_summation"> <div class="vector-toc-text"> <span class="vector-toc-numb">14</span> <span>table with automatic summation</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">1 comment</span> <ul id="toc-table_with_automatic_summation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Weatherbox_module_&_template" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Weatherbox_module_&_template"> <div class="vector-toc-text"> <span class="vector-toc-numb">15</span> <span>Weatherbox module & template</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">4 comments</span> <ul id="toc-Weatherbox_module_&_template-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Automate_WP:GA_subpages'_article_counts" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Automate_WP:GA_subpages'_article_counts"> <div class="vector-toc-text"> <span class="vector-toc-numb">16</span> <span>Automate WP:GA subpages' article counts</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">21 comments</span> <ul id="toc-Automate_WP:GA_subpages'_article_counts-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Shogi_board" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Shogi_board"> <div class="vector-toc-text"> <span class="vector-toc-numb">17</span> <span>Shogi board</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">2 comments</span> <ul id="toc-Shogi_board-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-mw.html_library_nil_behaviour" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#mw.html_library_nil_behaviour"> <div class="vector-toc-text"> <span class="vector-toc-numb">18</span> <span>mw.html library nil behaviour</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">1 comment</span> <ul id="toc-mw.html_library_nil_behaviour-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-For_next_loop" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#For_next_loop"> <div class="vector-toc-text"> <span class="vector-toc-numb">19</span> <span>For next loop</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">8 comments</span> <ul id="toc-For_next_loop-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Help_debugging_script" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Help_debugging_script"> <div class="vector-toc-text"> <span class="vector-toc-numb">20</span> <span>Help debugging script</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">5 comments</span> <ul id="toc-Help_debugging_script-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Working_across_multiple_languages" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Working_across_multiple_languages"> <div class="vector-toc-text"> <span class="vector-toc-numb">21</span> <span>Working across multiple languages</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">7 comments</span> <ul id="toc-Working_across_multiple_languages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Module:it-conj" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module:it-conj"> <div class="vector-toc-text"> <span class="vector-toc-numb">22</span> <span>Module:it-conj</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">6 comments</span> <ul id="toc-Module:it-conj-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Module:Infobox_NCAA_team_season" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module:Infobox_NCAA_team_season"> <div class="vector-toc-text"> <span class="vector-toc-numb">23</span> <span>Module:Infobox NCAA team season</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">2 comments</span> <ul id="toc-Module:Infobox_NCAA_team_season-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map._(Aside_from_raw_html/css_that_is)" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map._(Aside_from_raw_html/css_that_is)"> <div class="vector-toc-text"> <span class="vector-toc-numb">24</span> <span>We need a simple, straightforward, Wiki-wide syntax to put a mark on a damn map. (Aside from raw html/css that is)</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">1 comment</span> <ul id="toc-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map._(Aside_from_raw_html/css_that_is)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-National_football_team_rankings" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#National_football_team_rankings"> <div class="vector-toc-text"> <span class="vector-toc-numb">25</span> <span>National football team rankings</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">8 comments</span> <ul id="toc-National_football_team_rankings-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Lua_library_to_implement_Javascript_regexes?" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Lua_library_to_implement_Javascript_regexes?"> <div class="vector-toc-text"> <span class="vector-toc-numb">26</span> <span>Lua library to implement Javascript regexes?</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">8 comments</span> <ul id="toc-Lua_library_to_implement_Javascript_regexes?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Module:Coordinates" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module:Coordinates"> <div class="vector-toc-text"> <span class="vector-toc-numb">27</span> <span>Module:Coordinates</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">6 comments</span> <ul id="toc-Module:Coordinates-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Wikidata_qualifier" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Wikidata_qualifier"> <div class="vector-toc-text"> <span class="vector-toc-numb">28</span> <span>Wikidata qualifier</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">9 comments</span> <ul id="toc-Wikidata_qualifier-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-overhaul_Module:Chart" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#overhaul_Module:Chart"> <div class="vector-toc-text"> <span class="vector-toc-numb">29</span> <span>overhaul Module:Chart</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">7 comments</span> <button aria-controls="toc-overhaul_Module:Chart-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle overhaul Module:Chart subsection</span> </button> <ul id="toc-overhaul_Module:Chart-sublist" class="vector-toc-list"> <li id="toc-TLDR" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#TLDR"> <div class="vector-toc-text"> <span class="vector-toc-numb">29.1</span> <span>TLDR</span> </div> </a> <ul id="toc-TLDR-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Fork_Infobox_drugs" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Fork_Infobox_drugs"> <div class="vector-toc-text"> <span class="vector-toc-numb">30</span> <span>Fork Infobox drugs</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">6 comments</span> <ul id="toc-Fork_Infobox_drugs-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Creating_new_template_parameters_with_Lua" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Creating_new_template_parameters_with_Lua"> <div class="vector-toc-text"> <span class="vector-toc-numb">31</span> <span>Creating new template parameters with Lua</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">4 comments</span> <ul id="toc-Creating_new_template_parameters_with_Lua-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-New_entry_for_module:infobox" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#New_entry_for_module:infobox"> <div class="vector-toc-text"> <span class="vector-toc-numb">32</span> <span>New entry for module:infobox</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">1 comment</span> <ul id="toc-New_entry_for_module:infobox-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-My_getArgs_disappears_the_first_unnamed_1=_argument" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#My_getArgs_disappears_the_first_unnamed_1=_argument"> <div class="vector-toc-text"> <span class="vector-toc-numb">33</span> <span>My getArgs disappears the first unnamed 1= argument</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">4 comments</span> <ul id="toc-My_getArgs_disappears_the_first_unnamed_1=_argument-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP"> <div class="vector-toc-text"> <span class="vector-toc-numb">34</span> <span>Help fix Script error on Telugu WP Templates which are imported from English WP</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">3 comments</span> <ul id="toc-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Module:Episode_list" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Module:Episode_list"> <div class="vector-toc-text"> <span class="vector-toc-numb">35</span> <span>Module:Episode list</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">8 comments</span> <ul id="toc-Module:Episode_list-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Localizing_Citation_Module_-_Tewiki" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Localizing_Citation_Module_-_Tewiki"> <div class="vector-toc-text"> <span class="vector-toc-numb">36</span> <span>Localizing Citation Module - Tewiki</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">4 comments</span> <ul id="toc-Localizing_Citation_Module_-_Tewiki-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-User:Launchballer/London_Buses_route_layout" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#User:Launchballer/London_Buses_route_layout"> <div class="vector-toc-text"> <span class="vector-toc-numb">37</span> <span>User:Launchballer/London Buses route layout</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">9 comments</span> <ul id="toc-User:Launchballer/London_Buses_route_layout-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Wikipedia</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Lua/Requests/Archive 4</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 2 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-2" 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">2 languages</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.wikipedia.org/wiki/Template:Shogi_diagram" title="Template:Shogi diagram – Japanese" lang="ja" hreflang="ja" data-title="Template:Shogi diagram" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/Module:Citation/CS1/Date_validation" title="Module:Citation/CS1/Date validation – Telugu" lang="te" hreflang="te" data-title="Module:Citation/CS1/Date validation" data-language-autonym="తెలుగు" data-language-local-name="Telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=enwiki&page=Wikipedia%3ALua%2FRequests%2FArchive+4" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-project" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia:Lua/Requests/Archive_4" title="View the project page [c]" accesskey="c"><span>Project page</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia_talk:Lua/Requests/Archive_4&action=edit&redlink=1" rel="discussion" class="new" title="Discuss improvements to the content page (page does not exist) [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia:Lua/Requests/Archive_4"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Wikipedia:Lua/Requests/Archive_4"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Wikipedia:Lua/Requests/Archive_4" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Wikipedia:Lua/Requests/Archive_4" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&oldid=1140156605" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWikipedia%3ALua%2FRequests%2FArchive_4"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWikipedia%3ALua%2FRequests%2FArchive_4"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Wikipedia%3ALua%2FRequests%2FArchive_4&action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </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="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">< <bdi dir="ltr"><a href="/wiki/Wikipedia:Lua" title="Wikipedia:Lua">Wikipedia:Lua</a></bdi> | <bdi dir="ltr"><a href="/wiki/Wikipedia:Lua/Requests" class="mw-redirect" title="Wikipedia:Lua/Requests">Requests</a></bdi></div></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1238436933">.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 alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/2/2a/Replacement_filing_cabinet.svg/40px-Replacement_filing_cabinet.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/2/2a/Replacement_filing_cabinet.svg/60px-Replacement_filing_cabinet.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/2/2a/Replacement_filing_cabinet.svg/80px-Replacement_filing_cabinet.svg.png 2x" data-file-width="200" data-file-height="200"/></span></span></td><td class="mbox-text" style="text-align:center">This is an <b><a href="/wiki/Help:Archiving_a_talk_page" title="Help:Archiving a talk page">archive</a></b> of past discussions on <a href="/wiki/Wikipedia:Lua" title="Wikipedia:Lua">Wikipedia:Lua</a>. <b>Do not edit the contents of this page.</b> If you wish to start a new discussion or revive an old one, please do so on the <a href="/wiki/Wikipedia:Lua" title="Wikipedia:Lua">current main page</a>.</td></tr></tbody></table> <table style="text-align:center;margin:0 auto 0.5em;max-width:40em;width:100%;width:-moz-available;width:-webkit-fill-available;width:stretch"><tbody><tr><td><a href="/wiki/Wikipedia:Lua/Requests/Archive_1" title="Wikipedia:Lua/Requests/Archive 1">Archive 1</a></td><td><a href="/wiki/Wikipedia:Lua/Requests/Archive_2" title="Wikipedia:Lua/Requests/Archive 2">Archive 2</a></td><td><a href="/wiki/Wikipedia:Lua/Requests/Archive_3" title="Wikipedia:Lua/Requests/Archive 3">Archive 3</a></td><td><span style="font-size:115%;"><a class="mw-selflink selflink">Archive 4</a></span></td><td><a href="/wiki/Wikipedia:Lua/Requests/Archive_5" title="Wikipedia:Lua/Requests/Archive 5">Archive 5</a></td></tr></tbody></table> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-01-29T07:59:00.000Z","type":"heading","level":0,"id":"h-Module:Documentation-2014-01-29T07:59:00.000Z","replies":["c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation"],"uneditableSection":true,"text":"Module:Documentation","linkableTitle":"Module:Documentation"}--><h2 id="Module:Documentation" data-mw-thread-id="h-Module:Documentation-2014-01-29T07:59:00.000Z"><span data-mw-comment-start="" id="h-Module:Documentation-2014-01-29T07:59:00.000Z"></span>Module:Documentation<span data-mw-comment-end="h-Module:Documentation-2014-01-29T07:59:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-01-29T07:59:00.000Z","type":"heading","level":0,"id":"h-Module:Documentation-2014-01-29T07:59:00.000Z","replies":["c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z","timestamp":"2014-01-30T01:46:00.000Z"}__--><!--__DTCOMMENTCOUNT__4__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-01-29T07:59:00.000Z","type":"heading","level":0,"id":"h-Module:Documentation-2014-01-29T07:59:00.000Z","replies":["c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation"],"uneditableSection":true,"text":"Module:Documentation","linkableTitle":"Module:Documentation"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation"></span>Just a note that I have finished working on <a href="/wiki/Module:Documentation" title="Module:Documentation">Module:Documentation</a> and it's ready to replace <span class="nowrap">{{</span><a href="/wiki/Template:Documentation" title="Template:Documentation">documentation</a><span class="nowrap">}}</span> on all of our template and module pages. I'd like people to comment on it before I put it up live, so if you're interested, please join the discussion at the <a href="/wiki/Template_talk:Documentation#Module:Documentation_ready_to_deploy" title="Template talk:Documentation">template talk page</a>. Bug reports, feature requests and general questions are all welcome. :) — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation" class="ext-discussiontools-init-timestamplink">07:59, 29 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-29T07:59:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation","replies":["c-Johnuniq-2014-01-29T09:29:00.000Z-Mr._Stradivarius-2014-01-29T07:59:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-01-29T09:29:00.000Z-Mr._Stradivarius-2014-01-29T07:59:00.000Z"></span>I had a quick skim and have a suggestion regarding the function using "...". As a matter of interest, I believe the following does the job.</dd></dl> <div style="margin-left:3.2em" class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="kr">function</span> <span class="nf">makeToolbar</span><span class="p">(...)</span> <span class="kd">local</span> <span class="n">s</span> <span class="o">=</span> <span class="nb">table.concat</span><span class="p">({...},</span> <span class="s1">' &#124; '</span><span class="p">)</span> <span class="kr">if</span> <span class="n">s</span> <span class="o">==</span> <span class="s1">''</span> <span class="kr">then</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="kr">return</span> <span class="s1">'<small style="font-style: normal;">('</span> <span class="o">..</span> <span class="n">s</span> <span class="o">..</span> <span class="s1">')</small>'</span> <span class="kr">end</span> </pre></div> <dl><dd>The <code>{...}</code> makes a table containing the arguments passed to the function. If any of the arguments to the function could be nil something more would be needed.</dd> <dd>There's no need to change the code, but I was looking at "..." recently, and offer the above from that. The module looks great, although I only did a quick skim. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-01-29T09:29:00.000Z-Mr._Stradivarius-2014-01-29T07:59:00.000Z" class="ext-discussiontools-init-timestamplink">09:29, 29 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-01-29T09:29:00.000Z-Mr._Stradivarius-2014-01-29T07:59:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-29T09:29:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-01-29T09:29:00.000Z-Mr._Stradivarius-2014-01-29T07:59:00.000Z","replies":["c-Mr._Stradivarius-2014-01-29T10:30:00.000Z-Johnuniq-2014-01-29T09:29:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-01-29T09:29:00.000Z-Mr._Stradivarius-2014-01-29T07:59:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-01-29T10:30:00.000Z-Johnuniq-2014-01-29T09:29:00.000Z"></span>You're right, I don't think there are any uses of makeToolbar that have nil values in them, so that would be a simpler way of doing things. But you never know what crazy things coders might add to it in the future, so I figure we may as well keep the version that can handle nil values. Thanks for taking a look at it, by the way. :) And while I'm thinking about it, we should probably decide what we want to do with the automatically generated module documentation. With the current state of <a href="/wiki/Module:Documentation" title="Module:Documentation">Module:Documentation</a>, modules with non-existent /doc pages would look like <a class="external text" href="https://en.wikipedia.org/w/index.php?title=User:Mr._Stradivarius/Sandbox&oldid=592941223">this</a>, whereas at the moment they look like <a href="/wiki/Module:User:Mr._Stradivarius/icon" title="Module:User:Mr. Stradivarius/icon">this</a>. Which one would people prefer? — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-01-29T10:30:00.000Z-Johnuniq-2014-01-29T09:29:00.000Z" class="ext-discussiontools-init-timestamplink">10:30, 29 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-01-29T10:30:00.000Z-Johnuniq-2014-01-29T09:29:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-29T10:30:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-01-29T10:30:00.000Z-Johnuniq-2014-01-29T09:29:00.000Z","replies":["c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-01-29T10:30:00.000Z-Johnuniq-2014-01-29T09:29:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z"></span>The issue is that when there is no doc subpage, the new module would display a "Module documentation" heading before the "You might want to create a documentation page..." blurb. Currently, there is no heading. The heading looks good to me as it presents a consistent format on all module pages—the heading is present but the documentation is blank because there is no doc subpage. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z" class="ext-discussiontools-init-timestamplink">01:46, 30 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-30T01:46:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Wnt-2014-01-29T17:24:00.000Z","type":"heading","level":0,"id":"h-Automatic_module_translation_is_getting_there_..._advice?-2014-01-29T17:24:00.000Z","replies":["c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?","c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"],"uneditableSection":true,"text":"Automatic module translation is getting there ... advice?","linkableTitle":"Automatic module translation is getting there ... advice?"}--><h2 id="Automatic_module_translation_is_getting_there_..._advice?" data-mw-thread-id="h-Automatic_module_translation_is_getting_there_..._advice?-2014-01-29T17:24:00.000Z"><span id="Automatic_module_translation_is_getting_there_..._advice.3F"></span><span data-mw-comment-start="" id="h-Automatic_module_translation_is_getting_there_..._advice?-2014-01-29T17:24:00.000Z"></span>Automatic module translation is getting there ... advice?<span data-mw-comment-end="h-Automatic_module_translation_is_getting_there_..._advice?-2014-01-29T17:24:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Wnt-2014-01-29T17:24:00.000Z","type":"heading","level":0,"id":"h-Automatic_module_translation_is_getting_there_..._advice?-2014-01-29T17:24:00.000Z","replies":["c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?","c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z","timestamp":"2014-02-03T00:34:00.000Z"}__--><!--__DTCOMMENTCOUNT__4__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Wnt-2014-01-29T17:24:00.000Z","type":"heading","level":0,"id":"h-Automatic_module_translation_is_getting_there_..._advice?-2014-01-29T17:24:00.000Z","replies":["c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?","c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"],"uneditableSection":true,"text":"Automatic module translation is getting there ... advice?","linkableTitle":"Automatic module translation is getting there ... advice?"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"></span>I've been bashing at some code in <a href="/w/index.php?title=Module:FormatTemplate/sandbox&action=edit&redlink=1" class="new" title="Module:FormatTemplate/sandbox (page does not exist)">Module:FormatTemplate/sandbox</a> to translate Wikipedia template code into Lua. Now, with me having been a biology major and the code having evolved organically from a simple module to colorize stuff like "}}}" in a template, and with some bugs still remaining, you can imagine it's not the best code, but I have just managed to translate the first small module with it at <a href="/w/index.php?title=Module:FormatTemplate/sandbox/trialruns&action=edit&redlink=1" class="new" title="Module:FormatTemplate/sandbox/trialruns (page does not exist)">Module:FormatTemplate/sandbox/trialruns</a>. (I still need to post-process the output to remove useless concatenations, lines to delete, maybe duplicate statements, etc., and also need a Lua code auto-indentation module) Anyway, I thought I should put a mention here in case someone wants to offer some feedback or suggest design concepts that I should explore. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?" class="ext-discussiontools-init-timestamplink">17:24, 29 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-29T17:24:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"></span> </p><p><span data-mw-comment-start="" id="c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"></span>I have now actually managed to auto translate <a href="/wiki/Template:Albumchart" class="mw-redirect" title="Template:Albumchart">Template:Albumchart</a>, an immense beast of a template, into something that looks almost, but not quite, exactly unlike Lua code. :) Which works! But ... it is such <i>exceptionally</i> bad code as of the moment it actually takes 3-4 times longer than the template. I think that a better variable table and post-processing the module will greatly improve that. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?" class="ext-discussiontools-init-timestamplink">15:37, 2 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-02T15:37:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?","replies":["c-Johnuniq-2014-02-02T23:47:00.000Z-Wnt-2014-02-02T15:37:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-02-02T23:47:00.000Z-Wnt-2014-02-02T15:37:00.000Z"></span>How about working on something simple first, like solving the <a href="/wiki/Halting_problem" title="Halting problem">halting problem</a>! <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-02-02T23:47:00.000Z-Wnt-2014-02-02T15:37:00.000Z" class="ext-discussiontools-init-timestamplink">23:47, 2 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-02-02T23:47:00.000Z-Wnt-2014-02-02T15:37:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-02T23:47:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-02-02T23:47:00.000Z-Wnt-2014-02-02T15:37:00.000Z","replies":["c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-02-02T23:47:00.000Z-Wnt-2014-02-02T15:37:00.000Z"></span></dd></dl> <dl><dd><dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z"></span>I actually managed to chop the generated code in half, and get the time down pretty close to that of the template, just by taking every statement, stripping out the variable name, putting them in a dictionary, and not creating a new one if a lookup finds it. I'm still working on the concatenation... it's not the halting problem, just a lot of string starts and string ends and substrings amid regrets Lua pattens don't have alternation. What makes this project much easier than other sorts of code translation is that the Wikipedia parser functions have a very limited range of possibilities: no assignments to variables within the template, no loops, etc. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z" class="ext-discussiontools-init-timestamplink">00:34, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T00:34:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z"></span></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-02-03T15:04:00.000Z","type":"heading","level":0,"id":"h-mw.html_question-2014-02-03T15:04:00.000Z","replies":["c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question","c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question","c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question"],"uneditableSection":true,"text":"mw.html question","linkableTitle":"mw.html question"}--><h2 id="mw.html_question" data-mw-thread-id="h-mw.html_question-2014-02-03T15:04:00.000Z"><span data-mw-comment-start="" id="h-mw.html_question-2014-02-03T15:04:00.000Z"></span>mw.html question<span data-mw-comment-end="h-mw.html_question-2014-02-03T15:04:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-02-03T15:04:00.000Z","type":"heading","level":0,"id":"h-mw.html_question-2014-02-03T15:04:00.000Z","replies":["c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question","c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question","c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z","timestamp":"2014-02-04T17:37:00.000Z"}__--><!--__DTCOMMENTCOUNT__14__--><!--__DTAUTHORCOUNT__4__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-02-03T15:04:00.000Z","type":"heading","level":0,"id":"h-mw.html_question-2014-02-03T15:04:00.000Z","replies":["c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question","c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question","c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question"],"uneditableSection":true,"text":"mw.html question","linkableTitle":"mw.html question"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question"></span>Can anyone see what I'm doing wrong in the p.export function in <a href="/wiki/Module:Current_events_calendar" title="Module:Current events calendar">Module:Current events calendar</a>? My mw.html code is generating html like this: </p> <pre><tr></tr><td>9</td><td>10</td><td>11</td><td>12</td><td>13</td><td>14</td><td>15</td><tr></tr><td>16</td>... </pre> <p>I think this is probably a basic misunderstanding on my part on how mw.html objects interact with block logic, but I can't see how to fix it. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question" class="ext-discussiontools-init-timestamplink">15:04, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T15:04:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question","replies":["c-Wnt-2014-02-03T16:16:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z","c-Technical_13-2014-02-03T16:32:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-02-03T16:16:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z"></span>Well, the <code class="nowrap" style=""><td>...</td></code> pairs seem standard enough; it's these futile <code class="nowrap" style=""><tr>...</tr></code>s that worry me. Still, to be clear: is the only problem that you're looking to get rid of these for cleanliness, or is there something else you were trying to accomplish that would affect how the output <i>looks</i>? Because it looks nice right now. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-03T16:16:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z" class="ext-discussiontools-init-timestamplink">16:16, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-03T16:16:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T16:16:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-02-03T16:16:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-03T16:16:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z"></span></dd></dl> <ul><li><span data-mw-comment-start="" id="c-Technical_13-2014-02-03T16:32:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z"></span>I'm guessing that <a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius">Mr. S</a> is kind of like me in that I like to have nice readable indented code for the next person that "view source" to see how the page is made. Is it needed? No, not really, but it sure is a LOT easier to read on the other end. — <span class="nowrap">{{<a href="/wiki/Template:U" class="mw-redirect" title="Template:U">U</a>|<a href="/wiki/User:Technical_13" title="User:Technical 13">Technical 13</a>}}</span> <sup>(<a href="/wiki/User_talk:Technical_13" title="User talk:Technical 13">t</a> • <a href="/wiki/Special:EmailUser/Technical_13" title="Special:EmailUser/Technical 13">e</a> • <a href="/wiki/Special:Contributions/Technical_13" title="Special:Contributions/Technical 13">c</a>)</sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Technical_13-2014-02-03T16:32:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z" class="ext-discussiontools-init-timestamplink">16:32, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Technical_13-2014-02-03T16:32:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T16:32:00.000Z","author":"Technical 13","type":"comment","level":2,"id":"c-Technical_13-2014-02-03T16:32:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z","replies":["c-Wnt-2014-02-03T16:40:00.000Z-Technical_13-2014-02-03T16:32:00.000Z","c-Wnt-2014-02-03T16:42:00.000Z-Technical_13-2014-02-03T16:32:00.000Z"]}}--></span><span data-mw-comment-end="c-Technical_13-2014-02-03T16:32:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z"></span></li></ul> <dl><dd><dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-02-03T16:40:00.000Z-Technical_13-2014-02-03T16:32:00.000Z"></span>The view source option on Wikipedia will get you the invoke, and on the browser will get you text the browser has formatted with linefeeds even in the current version. It's not up to a website to have a bunch of blank space between elements like that just for the source to look nicer, because it would be a waste of bandwidth. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-03T16:40:00.000Z-Technical_13-2014-02-03T16:32:00.000Z" class="ext-discussiontools-init-timestamplink">16:40, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-03T16:40:00.000Z-Technical_13-2014-02-03T16:32:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T16:40:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-03T16:40:00.000Z-Technical_13-2014-02-03T16:32:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-03T16:40:00.000Z-Technical_13-2014-02-03T16:32:00.000Z"></span></dd> <dd><small><span data-mw-comment-start="" id="c-Wnt-2014-02-03T16:42:00.000Z-Technical_13-2014-02-03T16:32:00.000Z"></span>(Actually, the correct answer to that is "All I see now is blonde, brunette, redhead...") <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-03T16:42:00.000Z-Technical_13-2014-02-03T16:32:00.000Z" class="ext-discussiontools-init-timestamplink">16:42, 3 February 2014 (UTC)</a> <span data-mw-comment-end="c-Wnt-2014-02-03T16:42:00.000Z-Technical_13-2014-02-03T16:32:00.000Z"></span></small><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-03T16:42:00.000Z-Technical_13-2014-02-03T16:32:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T16:42:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-03T16:42:00.000Z-Technical_13-2014-02-03T16:32:00.000Z","replies":[]}}--></span></dd></dl></dd></dl> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question"></span>OK, here's the problem -- if you do</dd></dl> <pre>local root = mw.html.create('table') root:tag('tr'):tag('td'):wikitext('cell contents') local root2 = mw.html.create('table') root2:tag('tr') root2:tag('td'):wikitext('cell contents') </pre> <p>root returns </p><p><table><tr><td>cell contents</td></tr></table> </p><p>but root2 returns </p><p><table><tr></tr><td>cell contents</td></table> </p><p>To me, this seems like a basic <strike>bug</strike> <i>[nay, I suppose it really is a feature; see below]</i> in the HTML function itself. I suppose you can rewrite it where you keep track of the first instance of adding 'td' and add 'tr' just prior to that, but ... this should be fixed. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question" class="ext-discussiontools-init-timestamplink">21:40, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T21:40:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question"></span> </p><p><span data-mw-comment-start="" id="c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question"></span>Actually, I'm not sure how to rewrite it. Putting root2 = root2:tag('tr') fixes my simple sandbox example, but doing root = root: in the current events module totally screws it up. Using logic to "keep track of the first instance" isn't going to work because it's a break in the flow of :'s. If it were my module it would be <i>so</i> back to table.insert and table.concat of raw inline CSS by now. I don't have very good patience where complicated objects are concerned. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question" class="ext-discussiontools-init-timestamplink">22:03, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T22:03:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question","replies":["c-Mr._Stradivarius-2014-02-03T23:54:00.000Z-Wnt-2014-02-03T22:03:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-02-03T23:54:00.000Z-Wnt-2014-02-03T22:03:00.000Z"></span>I worked out how to do it. You just need to use another variable for each row. In your example this would be:</dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">root2</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">html</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="s1">'table'</span><span class="p">)</span> <span class="kd">local</span> <span class="n">row2</span> <span class="o">=</span> <span class="n">root2</span><span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'tr'</span><span class="p">)</span> <span class="n">row2</span><span class="p">:</span><span class="n">tag</span><span class="p">(</span><span class="s1">'td'</span><span class="p">):</span><span class="n">wikitext</span><span class="p">(</span><span class="s1">'cell contents'</span><span class="p">)</span> </pre></div> <dl><dd>This is the same as what you need to do for <a href="/w/index.php?title=Module:HtmlBuilder&action=edit&redlink=1" class="new" title="Module:HtmlBuilder (page does not exist)">Module:HtmlBuilder</a>, so I should probably have tried that before. Maybe there's a more elegant way of doing this, though? — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-02-03T23:54:00.000Z-Wnt-2014-02-03T22:03:00.000Z" class="ext-discussiontools-init-timestamplink">23:54, 3 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-02-03T23:54:00.000Z-Wnt-2014-02-03T22:03:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-03T23:54:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-02-03T23:54:00.000Z-Wnt-2014-02-03T22:03:00.000Z","replies":["c-Wnt-2014-02-04T00:14:00.000Z-Mr._Stradivarius-2014-02-03T23:54:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-02-03T23:54:00.000Z-Wnt-2014-02-03T22:03:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-02-04T00:14:00.000Z-Mr._Stradivarius-2014-02-03T23:54:00.000Z"></span>Hmmm... you call a function, row2:tag, to affect the value of <i>root2</i>... it seems like object oriented programming has met up with 'spooky action at a distance'! I have to say, I never understood what was so bad about just putting together these strings yourself. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-04T00:14:00.000Z-Mr._Stradivarius-2014-02-03T23:54:00.000Z" class="ext-discussiontools-init-timestamplink">00:14, 4 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-04T00:14:00.000Z-Mr._Stradivarius-2014-02-03T23:54:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-04T00:14:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-04T00:14:00.000Z-Mr._Stradivarius-2014-02-03T23:54:00.000Z","replies":["c-Mr._Stradivarius-2014-02-04T00:19:00.000Z-Wnt-2014-02-04T00:14:00.000Z","c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T00:36:00.000Z-Wnt-2014-02-04T00:14:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-04T00:14:00.000Z-Mr._Stradivarius-2014-02-03T23:54:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-02-04T00:19:00.000Z-Wnt-2014-02-04T00:14:00.000Z"></span>I've tried that, and it is a world of pain. You have to worry about unclosed tags, whether you need to have a space before style="xxx", etc. It's just a lot easier to use a library to abstract all of that stuff away. <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Module:List&diff=581593854&oldid=581592451">This edit</a> to <a href="/wiki/Module:List" title="Module:List">Module:List</a> should give you an idea of how much unnecessary work you have to do otherwise - and the HTML in that module is fairly simple. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-02-04T00:19:00.000Z-Wnt-2014-02-04T00:14:00.000Z" class="ext-discussiontools-init-timestamplink">00:19, 4 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-02-04T00:19:00.000Z-Wnt-2014-02-04T00:14:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-04T00:19:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-02-04T00:19:00.000Z-Wnt-2014-02-04T00:14:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-02-04T00:19:00.000Z-Wnt-2014-02-04T00:14:00.000Z"></span></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><small><span data-mw-comment-start="" id="c-קיפודנחש-2014-02-04T00:36:00.000Z-Wnt-2014-02-04T00:14:00.000Z"></span>(<a href="/wiki/Help:Edit_conflict" title="Help:Edit conflict">edit conflict</a>)</small>i don't know. first and foremost, there is no "prohibition" on building the whole thing as text yourself (after all, this is what we did before the "mw.html" library was added), but it's much less readable to other editors. still, if you feel more comfortable going raw, maybe this is what you should do.</dd> <dd>second, to me, it makes perfect sense: calling mw.html.create() generates a new html element. calling element:tag() adds a new tag to this element, and while doing so, also returns a reference to this new tag, that can be manipulated further. the original element still contains the newly created tag - think of it as having 2 references to the same thing. take this example:</dd></dl></dd></dl></dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">a</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1">-- new, empty table</span> <span class="kd">local</span> <span class="n">b</span> <span class="o">=</span> <span class="p">{</span><span class="mi">12</span><span class="p">,</span> <span class="n">a</span><span class="p">}</span> <span class="c1">-- another table, whose 2nd element is a</span> <span class="n">a</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="mi">44</span> <span class="c1">-- now a is not empty anymore - it has one element</span> </pre></div> <dl><dd><dl><dd><dl><dd>now, if you "flatten" b, you'll find somewhere in it the value 44 (IOW, b[2][1] is 44), even though this value was never added explicitly to b.</dd> <dd>maybe i just did not understand what you said, and just made a perfect ass of myself, but if i did understand you, then i think my simpler example actually demonstrates the same behavior that baffled you when "a" and "b" are html elements (aka "tags") instead of simple tables.</dd> <dd>peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-02-04T00:36:00.000Z-Wnt-2014-02-04T00:14:00.000Z" class="ext-discussiontools-init-timestamplink">00:36, 4 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-02-04T00:36:00.000Z-Wnt-2014-02-04T00:14:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-04T00:36:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":4,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T00:36:00.000Z-Wnt-2014-02-04T00:14:00.000Z","replies":["c-Wnt-2014-02-04T08:31:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T00:36:00.000Z","c-Wnt-2014-02-04T16:44:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T00:36:00.000Z"],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-02-04T00:36:00.000Z-Wnt-2014-02-04T00:14:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-02-04T08:31:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z"></span>OK, after thinking about it and actually reading the reference manual entry, this actually makes sense. I'd been thinking of it as simply adding annotations rather than creating nodes. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-04T08:31:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z" class="ext-discussiontools-init-timestamplink">08:31, 4 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-04T08:31:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-04T08:31:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-02-04T08:31:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T00:36:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-04T08:31:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Wnt-2014-02-04T16:44:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z"></span>(In a sense, it still <i>is</i> a bug in that one would expect a mw.html functions to return only valid HTML from a tostring() operation on one of their objects. Trying to add a td outside of a tr ought to be some kind of error, at least usually. But admittedly, we wouldn't be happy to have slower execution speed so that it can double check <i>everything</i> put through it, especially when users are adding CSS attributes for Internet Explorer and other such non-standard browsers, so how much should it check?) <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-04T16:44:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z" class="ext-discussiontools-init-timestamplink">16:44, 4 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-04T16:44:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-04T16:44:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-02-04T16:44:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T00:36:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-04T16:44:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z"></span>i do not think we should expect too much of the mw.html functionality, and i am not sure it would even be good: you can manufacture part of the html as pure text - you can even manufacture some of it outside the module (e.g., in the template, or even outside of that). so we can't require that it will be "valid html", i think. however, we *can* require that it will be "consistent html", i.e., it will close any tag it opens itself, the attributes will be consistent etc. it may not be perfect, in which case we need to file a bug report (e.g.: what happens when the value of an attribute contains a quote? do we generate broken html? i did non test this case - it's just an example of something that *might* go wrong), but none of the problems you describe above are of this ilk. peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z" class="ext-discussiontools-init-timestamplink">17:37, 4 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-04T17:37:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":6,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Rezonansowy-2013-12-12T15:00:00.000Z","type":"heading","level":0,"id":"h-Module:AutoPortals-2013-12-12T15:00:00.000Z","replies":["c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals","c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals"],"uneditableSection":true,"text":"Module:AutoPortals","linkableTitle":"Module:AutoPortals"}--><h2 id="Module:AutoPortals" data-mw-thread-id="h-Module:AutoPortals-2013-12-12T15:00:00.000Z"><span data-mw-comment-start="" id="h-Module:AutoPortals-2013-12-12T15:00:00.000Z"></span>Module:AutoPortals<span data-mw-comment-end="h-Module:AutoPortals-2013-12-12T15:00:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Rezonansowy-2013-12-12T15:00:00.000Z","type":"heading","level":0,"id":"h-Module:AutoPortals-2013-12-12T15:00:00.000Z","replies":["c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals","c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z","timestamp":"2014-02-12T16:03:00.000Z"}__--><!--__DTCOMMENTCOUNT__18__--><!--__DTAUTHORCOUNT__5__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Rezonansowy-2013-12-12T15:00:00.000Z","type":"heading","level":0,"id":"h-Module:AutoPortals-2013-12-12T15:00:00.000Z","replies":["c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals","c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals"],"uneditableSection":true,"text":"Module:AutoPortals","linkableTitle":"Module:AutoPortals"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals"></span>I'd like to propose a Module:AutoPortals. It will: </p> <ol><li>invoke <a href="/wiki/Module:Portal_bar" title="Module:Portal bar">Module:Portal bar</a></li> <li>find portals associated with article's talk page</li> <li>add them to itself</li></ol> <p>Example: </p> <ol><li>We have the <a href="/wiki/World_Bank" title="World Bank">World Bank</a> article</li> <li>Module goto talk header on its talk page (<a href="/wiki/Talk:World_Bank" title="Talk:World Bank">Talk:World Bank</a>)</li> <li>extracts portal boxes from associated WikiProject boxes (Globalization portal, Business and economics portal, International relations portal, etc.)</li> <li>Adds <span class="nowrap">{{</span><a href="/wiki/Template:Portal_bar" title="Template:Portal bar">Portal bar</a><span class="nowrap">}}</span> template to the article and them to it</li></ol> <p>It will make portals process much more easier and automates synchronization with adding portals from talk page. </p><p>Please comment, --<a href="/wiki/User:Rezonansowy" title="User:Rezonansowy">Rezonansowy</a> <small>(<a href="/wiki/User_talk:Rezonansowy" title="User talk:Rezonansowy">talk</a> • <a href="/wiki/Special:Contributions/Rezonansowy" title="Special:Contributions/Rezonansowy">contribs</a>)</small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals" class="ext-discussiontools-init-timestamplink">15:00, 12 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-12T15:00:00.000Z","author":"Rezonansowy","type":"comment","level":1,"id":"c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals","replies":["c-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z","c-Wnt-2014-01-04T05:04:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z"]}}--></span><span data-mw-comment-end="c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z"></span>This sounds hard to do. The hard part would be getting the portal names from the WikiProject banners. First, we don't have a reliable way to tell what templates are WikiProject banners and what aren't. And second, we don't have any way that I can think of to get a list of portal names from a WikiProject banner invocation. I suppose this could be possible if we altered <a href="/wiki/Template:WPBannerMeta" title="Template:WPBannerMeta">Template:WPBannerMeta</a> to output portal metadata, but then you would have to preprocess all the banner templates to find the data, and those templates are heavy, so it might affect article loading times. So, all in all, I think it's probably best to stick with doing it manually. — <i><b><a href="/wiki/User:Mr._Stradivarius_on_tour" title="User:Mr. Stradivarius on tour"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius on tour</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius_on_tour" class="mw-redirect" title="User talk:Mr. Stradivarius on tour">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z" class="ext-discussiontools-init-timestamplink">23:03, 12 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-12T23:03:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":2,"id":"c-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z","replies":["c-Rezonansowy-2013-12-13T23:27:00.000Z-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Rezonansowy-2013-12-13T23:27:00.000Z-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z"></span>Here's my solution: <ol><li>Lua finds in a talk page every template which starting with <i>WikiProject</i> (e.g. <span class="nowrap">{{</span><a href="/wiki/Template:WikiProject_Globalization" title="Template:WikiProject Globalization">WikiProject Globalization</a><span class="nowrap">}}</span>, <span class="nowrap">{{</span><a href="/wiki/Template:WikiProject_Economics" title="Template:WikiProject Economics">WikiProject Economics</a><span class="nowrap">}}</span>)</li> <li>Get content from its <span class="nowrap">{{</span><a href="/wiki/Template:WPBannerMeta" title="Template:WPBannerMeta">WPBannerMeta</a><span class="nowrap">}}</span> <code>{{{PORTAL}}}</code> param</li> <li>Put it in <span class="nowrap">{{</span><a href="/wiki/Template:Portal_bar" title="Template:Portal bar">Portal bar</a><span class="nowrap">}}</span></li></ol></dd></dl></dd></dl> <dl><dd><dl><dd>That's all! What do you think about it? --<a href="/wiki/User:Rezonansowy" title="User:Rezonansowy">Rezonansowy</a> <small>(<a href="/wiki/User_talk:Rezonansowy" title="User talk:Rezonansowy">talk</a> • <a href="/wiki/Special:Contributions/Rezonansowy" title="Special:Contributions/Rezonansowy">contribs</a>)</small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Rezonansowy-2013-12-13T23:27:00.000Z-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z" class="ext-discussiontools-init-timestamplink">23:27, 13 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Rezonansowy-2013-12-13T23:27:00.000Z-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-13T23:27:00.000Z","author":"Rezonansowy","type":"comment","level":3,"id":"c-Rezonansowy-2013-12-13T23:27:00.000Z-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z","replies":["c-Mr._Stradivarius-2013-12-14T01:24:00.000Z-Rezonansowy-2013-12-13T23:27:00.000Z"]}}--></span><span data-mw-comment-end="c-Rezonansowy-2013-12-13T23:27:00.000Z-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z"></span></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2013-12-14T01:24:00.000Z-Rezonansowy-2013-12-13T23:27:00.000Z"></span>The difficult part is step two - Lua can't see inside the WikiProject template to see what text was passed to the <code>{{{PORTAL}}}</code> parameter. Also, many projects use redirects to point to their talk page banners, so step one is not reliable. (See <span class="plainlinks"><a class="external text" href="https://en.wikipedia.org/w/index.php?title=Template:MILHIST&redirect=no">Template:MILHIST</a></span> for example.) Sorry, but I just don't think that this idea is going to work. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2013-12-14T01:24:00.000Z-Rezonansowy-2013-12-13T23:27:00.000Z" class="ext-discussiontools-init-timestamplink">01:24, 14 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2013-12-14T01:24:00.000Z-Rezonansowy-2013-12-13T23:27:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-14T01:24:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2013-12-14T01:24:00.000Z-Rezonansowy-2013-12-13T23:27:00.000Z","replies":["c-Rezonansowy-2013-12-14T01:31:00.000Z-Mr._Stradivarius-2013-12-14T01:24:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2013-12-14T01:24:00.000Z-Rezonansowy-2013-12-13T23:27:00.000Z"></span></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Rezonansowy-2013-12-14T01:31:00.000Z-Mr._Stradivarius-2013-12-14T01:24:00.000Z"></span>I give up....let's create a task for bot to avoid doing it manually, bot will be much better solution. --<a href="/wiki/User:Rezonansowy" title="User:Rezonansowy">Rezonansowy</a> <small>(<a href="/wiki/User_talk:Rezonansowy" title="User talk:Rezonansowy">talk</a> • <a href="/wiki/Special:Contributions/Rezonansowy" title="Special:Contributions/Rezonansowy">contribs</a>)</small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Rezonansowy-2013-12-14T01:31:00.000Z-Mr._Stradivarius-2013-12-14T01:24:00.000Z" class="ext-discussiontools-init-timestamplink">01:31, 14 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Rezonansowy-2013-12-14T01:31:00.000Z-Mr._Stradivarius-2013-12-14T01:24:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-14T01:31:00.000Z","author":"Rezonansowy","type":"comment","level":5,"id":"c-Rezonansowy-2013-12-14T01:31:00.000Z-Mr._Stradivarius-2013-12-14T01:24:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Rezonansowy-2013-12-14T01:31:00.000Z-Mr._Stradivarius-2013-12-14T01:24:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-01-04T05:04:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z"></span>OK, I dunno if this is a <i>sane</i> way to do it, but it does do it: <a class="external autonumber" href="https://en.wikipedia.org/w/index.php?title=Module:User:Wnt/Sandbox&oldid=589090891">[1]</a> (I use frame:preprocess() to get the final talk page, hunt through for <a href="/w/index.php?title=Portal_X:X_portal&action=edit&redlink=1" class="new" title="Portal X:X portal (page does not exist)">Portal X:X portal</a> links [though I don't check X = X, is there any <i>simple</i> syntax to do that?], and then call the module [rather inefficiently I suppose, with another frame:preprocess, which can be avoided]. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-04T05:04:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z" class="ext-discussiontools-init-timestamplink">05:04, 4 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-04T05:04:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-04T05:04:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-01-04T05:04:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z","replies":["c-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z-Wnt-2014-01-04T05:04:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-04T05:04:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z"></span></dd></dl> <dl><dd><dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z-Wnt-2014-01-04T05:04:00.000Z"></span>While this will work, I wouldn't call it a sane way of doing things. This way you have to parse everything on the talk page, notably the WikiProject templates, which will probably take you over the 10 second Lua time limit and give you script errors on quite a few pages. I've just thought of a much better way of doing this, though - in Wikidata. If we can work out a way to automatically add portal data to a page's Wikidata entry, we can just grab that data from Wikidata and add those portals to the article. Or maybe Wikidata entries already include portal info? I shall have to investigate. — <i><b><a href="/wiki/User:Mr._Stradivarius_on_tour" title="User:Mr. Stradivarius on tour"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius on tour</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius_on_tour" class="mw-redirect" title="User talk:Mr. Stradivarius on tour">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z-Wnt-2014-01-04T05:04:00.000Z" class="ext-discussiontools-init-timestamplink">06:33, 4 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z-Wnt-2014-01-04T05:04:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-04T06:33:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":3,"id":"c-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z-Wnt-2014-01-04T05:04:00.000Z","replies":["c-Wnt-2014-01-04T11:05:00.000Z-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z-Wnt-2014-01-04T05:04:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-01-04T11:05:00.000Z-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z"></span>Hmmm... I hadn't expected it to take 10 seconds to display the talk page, but it certainly isn't <i>necessary</i> to frame:preprocess the entire page content; in fact it will remove potential false positives from talk page discussions to take only the content up to the first header, or even just the first N characters. It's a pity getContent() can't be set to deliver just the first section, but at least the reference manual doesn't mention such an option. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-04T11:05:00.000Z-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z" class="ext-discussiontools-init-timestamplink">11:05, 4 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-04T11:05:00.000Z-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-04T11:05:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-01-04T11:05:00.000Z-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-04T11:05:00.000Z-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z"></span></dd></dl></dd></dl></dd></dl> <p><span class="template-ping"><span data-mw-comment-start="" id="c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals"></span>@<a href="/wiki/User:Mr._Stradivarius_on_tour" title="User:Mr. Stradivarius on tour">Mr. Stradivarius on tour</a>:</span>, <span class="template-ping">@<a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a>:</span> So, what now? --<a href="/wiki/User:Rezonansowy" title="User:Rezonansowy">Rezonansowy</a> <small>(<a href="/wiki/User_talk:Rezonansowy" title="User talk:Rezonansowy">talk</a> • <a href="/wiki/Special:Contributions/Rezonansowy" title="Special:Contributions/Rezonansowy">contribs</a>)</small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals" class="ext-discussiontools-init-timestamplink">16:49, 9 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-09T16:49:00.000Z","author":"Rezonansowy","type":"comment","level":1,"id":"c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals","replies":["c-Wnt-2014-01-09T16:57:00.000Z-Rezonansowy-2014-01-09T16:49:00.000Z"]}}--></span><span data-mw-comment-end="c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-01-09T16:57:00.000Z-Rezonansowy-2014-01-09T16:49:00.000Z"></span>Maybe I misunderstood - when you used the word "propose" at the top, I thought you meant to write the module yourself and just wanted feedback about the idea, so I thought the sandbox code I posted would be enough to get you started and you could optimize from there. Are you requesting for us to write <a href="/w/index.php?title=Module:AutoPortals&action=edit&redlink=1" class="new" title="Module:AutoPortals (page does not exist)">Module:AutoPortals</a>? <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-09T16:57:00.000Z-Rezonansowy-2014-01-09T16:49:00.000Z" class="ext-discussiontools-init-timestamplink">16:57, 9 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-09T16:57:00.000Z-Rezonansowy-2014-01-09T16:49:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-09T16:57:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-01-09T16:57:00.000Z-Rezonansowy-2014-01-09T16:49:00.000Z","replies":["c-Rezonansowy-2014-01-11T08:04:00.000Z-Wnt-2014-01-09T16:57:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-09T16:57:00.000Z-Rezonansowy-2014-01-09T16:49:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Rezonansowy-2014-01-11T08:04:00.000Z-Wnt-2014-01-09T16:57:00.000Z"></span>I wish to write it myself but I've no experience with Lua. I really don't know how to do it. Will it be as slow as Mr. Stradivarius said? --<a href="/wiki/User:Rezonansowy" title="User:Rezonansowy">Rezonansowy</a> <small>(<a href="/wiki/User_talk:Rezonansowy" title="User talk:Rezonansowy">talk</a> • <a href="/wiki/Special:Contributions/Rezonansowy" title="Special:Contributions/Rezonansowy">contribs</a>)</small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Rezonansowy-2014-01-11T08:04:00.000Z-Wnt-2014-01-09T16:57:00.000Z" class="ext-discussiontools-init-timestamplink">08:04, 11 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Rezonansowy-2014-01-11T08:04:00.000Z-Wnt-2014-01-09T16:57:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-11T08:04:00.000Z","author":"Rezonansowy","type":"comment","level":3,"id":"c-Rezonansowy-2014-01-11T08:04:00.000Z-Wnt-2014-01-09T16:57:00.000Z","replies":["c-Wnt-2014-01-12T17:23:00.000Z-Rezonansowy-2014-01-11T08:04:00.000Z"]}}--></span><span data-mw-comment-end="c-Rezonansowy-2014-01-11T08:04:00.000Z-Wnt-2014-01-09T16:57:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-01-12T17:23:00.000Z-Rezonansowy-2014-01-11T08:04:00.000Z"></span>Well, this wasn't really a beginner project, so before I lost track of it I tried coding up AutoPortals, trying to minimize the running time. However, it still takes 1.8 seconds, which is questionable when we consider that there may be more important processor-pigging modules in an article, and that is only after putting all of the templates in the example I was using (<a href="/wiki/Talk:World_Bank" title="Talk:World Bank">Talk:World Bank</a>) in the list of templates to strip. (You'll see it in the code) There is another approach possible, namely, checking ONLY for WikiProject portals and expanding only those, but it requires the user to hand-check and rename any calls like {{WPIR}} in the article talk page to something starting "WikiProject" or they lose those portals. Still, I think that may be the way to go; I'll have to fool with ExpandTemplate and see how it works. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-12T17:23:00.000Z-Rezonansowy-2014-01-11T08:04:00.000Z" class="ext-discussiontools-init-timestamplink">17:23, 12 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-12T17:23:00.000Z-Rezonansowy-2014-01-11T08:04:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-12T17:23:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-01-12T17:23:00.000Z-Rezonansowy-2014-01-11T08:04:00.000Z","replies":["c-Mr._Stradivarius-2014-01-12T17:35:00.000Z-Wnt-2014-01-12T17:23:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-12T17:23:00.000Z-Rezonansowy-2014-01-11T08:04:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-01-12T17:35:00.000Z-Wnt-2014-01-12T17:23:00.000Z"></span>How about doing it with Wikidata? That would be faster and less error-prone, and would also benefit smaller wikis who could reuse your work. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-01-12T17:35:00.000Z-Wnt-2014-01-12T17:23:00.000Z" class="ext-discussiontools-init-timestamplink">17:35, 12 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-01-12T17:35:00.000Z-Wnt-2014-01-12T17:23:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-12T17:35:00.000Z","author":"Mr. Stradivarius","type":"comment","level":5,"id":"c-Mr._Stradivarius-2014-01-12T17:35:00.000Z-Wnt-2014-01-12T17:23:00.000Z","replies":["c-Wnt-2014-01-12T17:55:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","c-Wnt-2014-01-12T19:19:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","c-Wnt-2014-02-11T19:29:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-01-12T17:35:00.000Z-Wnt-2014-01-12T17:23:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-01-12T17:55:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"></span>My impression from the time I looked at Wikidata is that they're not set up to do anything that they didn't plan to do. I couldn't edit a full page at once, I couldn't access properties except from the page they wanted me to access them from, and the list of "properties" they maintain was very specific and they didn't want to expand them for, say, holding protein amino acid sequences. I have the impression if there's anything they come up with that is useful for me, they'll design and implement it themselves ... until then, my attitude is "I'll believe it when I see it." If you want to come up with a Wikidata solution go right ahead, but I'm just not even thinking about them. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-12T17:55:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z" class="ext-discussiontools-init-timestamplink">17:55, 12 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-12T17:55:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-12T17:55:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-01-12T17:55:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-12T17:55:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Wnt-2014-01-12T19:19:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"></span>Alright, you prodded me to retest one of my peeves, and I found a way to access the other articles' properties! - see <a class="external autonumber" href="https://en.wikipedia.org/wiki/Wikipedia_talk:Lua#.22Hacking.22_into_Wikidata_to_get_properties_of_miscellaneous_articles">[2]</a> <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-12T19:19:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z" class="ext-discussiontools-init-timestamplink">19:19, 12 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-12T19:19:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-12T19:19:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-01-12T19:19:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-12T19:19:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Wnt-2014-02-11T19:29:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"></span>And now the feature is gone, because it has "no useful purpose". That seals it. I have <i>nothing</i> to do with Wikidata, period - anything that will <i>ever</i> be done with Wikidata will be done by its proprietors. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-02-11T19:29:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z" class="ext-discussiontools-init-timestamplink">19:29, 11 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-02-11T19:29:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-11T19:29:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-02-11T19:29:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","replies":["c-Mr._Stradivarius-2014-02-12T03:18:00.000Z-Wnt-2014-02-11T19:29:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-02-11T19:29:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-02-12T03:18:00.000Z-Wnt-2014-02-11T19:29:00.000Z"></span>Well, the reason was more like "it's subverting the links table" rather than just "it has no useful purpose", and that was never really an intended feature. But you may be right that we shouldn't expect Wikidata to allow this functionality. In which case, the method remaining is to get a bot to do it. It could work like this: an editor places the text <code>{{auto-portals}}</code> in an article, which adds the page to a hidden category. A bot is programmed to patrol this category, and add the portals based on the WikiProject Banners on the talk page. Having a bot do this would be better than having a Lua module do it, because a bot would only have to parse the talk page once (or once every day, more likely), whereas a Lua module would have to parse it every time the article was rendered. This would still leave the problem of working out what templates are WikiProject templates, and would still require mapping WikiProject templates to portals, neither of which are particularly easy things to do because of all the edge cases. But someone might be willing to do the programming work if you ask at <a href="/wiki/Wikipedia:Bot_requests" title="Wikipedia:Bot requests">WP:Bot requests</a>. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-02-12T03:18:00.000Z-Wnt-2014-02-11T19:29:00.000Z" class="ext-discussiontools-init-timestamplink">03:18, 12 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-02-12T03:18:00.000Z-Wnt-2014-02-11T19:29:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-12T03:18:00.000Z","author":"Mr. Stradivarius","type":"comment","level":7,"id":"c-Mr._Stradivarius-2014-02-12T03:18:00.000Z-Wnt-2014-02-11T19:29:00.000Z","replies":["c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-02-12T03:18:00.000Z-Wnt-2014-02-11T19:29:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z"></span>See <a href="https://phabricator.wikimedia.org/T49930" class="extiw" title="phabricator:T49930">T49930</a>. <a href="/wiki/User:Anomie" title="User:Anomie">Anomie</a><a href="/wiki/User_talk:Anomie" title="User talk:Anomie">⚔</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z" class="ext-discussiontools-init-timestamplink">16:03, 12 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-12T16:03:00.000Z","author":"Anomie","type":"comment","level":8,"id":"c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-TheDJ-2013-12-13T13:47:00.000Z","type":"heading","level":0,"id":"h-How_about_a_mw.file_api-2013-12-13T13:47:00.000Z","replies":["c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api","c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api","h-File_objects-How_about_a_mw.file_api","h-Later-How_about_a_mw.file_api","h-Might_not_be_needed_?-How_about_a_mw.file_api","h-Thumbs-How_about_a_mw.file_api","h-Comments-How_about_a_mw.file_api-2013-12-13T14:06:00.000Z"],"uneditableSection":true,"text":"How about a mw.file api","linkableTitle":"How about a mw.file api"}--><h2 id="How_about_a_mw.file_api" data-mw-thread-id="h-How_about_a_mw.file_api-2013-12-13T13:47:00.000Z"><span data-mw-comment-start="" id="h-How_about_a_mw.file_api-2013-12-13T13:47:00.000Z"></span>How about a mw.file api<span data-mw-comment-end="h-How_about_a_mw.file_api-2013-12-13T13:47:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-TheDJ-2013-12-13T13:47:00.000Z","type":"heading","level":0,"id":"h-How_about_a_mw.file_api-2013-12-13T13:47:00.000Z","replies":["c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api","c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api","h-File_objects-How_about_a_mw.file_api","h-Later-How_about_a_mw.file_api","h-Might_not_be_needed_?-How_about_a_mw.file_api","h-Thumbs-How_about_a_mw.file_api","h-Comments-How_about_a_mw.file_api-2013-12-13T14:06:00.000Z"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z","timestamp":"2014-02-12T20:00:00.000Z"}__--><!--__DTCOMMENTCOUNT__9__--><!--__DTAUTHORCOUNT__5__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-TheDJ-2013-12-13T13:47:00.000Z","type":"heading","level":0,"id":"h-How_about_a_mw.file_api-2013-12-13T13:47:00.000Z","replies":["c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api","c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api","h-File_objects-How_about_a_mw.file_api","h-Later-How_about_a_mw.file_api","h-Might_not_be_needed_?-How_about_a_mw.file_api","h-Thumbs-How_about_a_mw.file_api","h-Comments-How_about_a_mw.file_api-2013-12-13T14:06:00.000Z"],"uneditableSection":true,"text":"How about a mw.file api","linkableTitle":"How about a mw.file api"}--></div></div></div> <p><span data-mw-comment-start="" id="c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api"></span>I propose we start a core mw.file api. The primary reason of why I think we should add a mw.file module is because I think it's important to get the source width and height. There are multiple templates like <a href="/wiki/Template:Multiple_image" title="Template:Multiple image">Template:Multiple image</a> and <a href="/wiki/Template:Wide_image" title="Template:Wide image">Template:Wide image</a> that depend on the user inputting values manually into the template invocation in order to deal with things calculating widths and heights of containing elements <a href="/wiki/Template_talk:Multiple_image#Height" title="Template talk:Multiple image">Multiple image details one such case</a>, but we could also merge <a href="/wiki/Template:Wide_image" title="Template:Wide image">Template:Wide image</a> <a href="/wiki/Template:Panorama" title="Template:Panorama">Template:Panorama</a> and <a href="/wiki/Template:Tall_image" title="Template:Tall image">Template:Tall image</a> into a single template, able to take into account both widths and heights, simply because we would get access to the exact aspect ratio of the original image. —<a href="/wiki/User:TheDJ" title="User:TheDJ">Th<span style="color: green">e</span>DJ</a> (<a href="/wiki/User_talk:TheDJ" title="User talk:TheDJ">talk</a> • <a href="/wiki/Special:Contributions/TheDJ" title="Special:Contributions/TheDJ">contribs</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api" class="ext-discussiontools-init-timestamplink">14:12, 13 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-13T14:12:00.000Z","author":"TheDJ","type":"comment","level":1,"id":"c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api","replies":[]}}--></span><span data-mw-comment-end="c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api"></span> </p><p><span data-mw-comment-start="" id="c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api"></span>It should probably look something like this ? —<a href="/wiki/User:TheDJ" title="User:TheDJ">Th<span style="color: green">e</span>DJ</a> (<a href="/wiki/User_talk:TheDJ" title="User talk:TheDJ">talk</a> • <a href="/wiki/Special:Contributions/TheDJ" title="Special:Contributions/TheDJ">contribs</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api" class="ext-discussiontools-init-timestamplink">13:47, 13 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-13T13:47:00.000Z","author":"TheDJ","type":"comment","level":1,"id":"c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api","replies":[]}}--></span><span data-mw-comment-end="c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api"></span> </p> <dl><dt>mw.file.new(mw.title)</dt> <dd>(expensive)</dd></dl> <p>Creates a new file object for the current revision of this file title. </p> <div class="mw-heading mw-heading3"><h3 id="File_objects" data-mw-thread-id="h-File_objects-How_about_a_mw.file_api"><span data-mw-comment-start="" id="h-File_objects-How_about_a_mw.file_api"></span>File objects<span data-mw-comment-end="h-File_objects-How_about_a_mw.file_api"></span></h3></div> <p>A file object has a number of properties and methods. Most of the properties are read-only. </p> <dl><dt>title</dt> <dd>mw.title corresponding to this file</dd> <dt>archiveName</dt> <dd>shared or local</dd> <dt>url</dt> <dd>link to the original file</dd> <dt>getImageInfo()</dt> <dd>Returns table with <dl><dt>mime</dt> <dd>the mime type this file is registered with</dd> <dt>mediaType</dt> <dd>The mediawiki mediatype: BITMAP/AUDIO/VIDEO etc</dd> <dt>height</dt> <dd>The original height of the file</dd> <dt>width</dt> <dd>The original width of the file</dd> <dt>size</dt> <dd>Bytesize of the file</dd> <dt>pages</dt> <dd>The amount of pages that this file consists of</dd> <dt>duration</dt> <dd>duration of the media clip if this is a media clip ?</dd> <dt>animated</dt> <dd>Animated gif/png/video</dd></dl></dd></dl> <div class="mw-heading mw-heading3"><h3 id="Later" data-mw-thread-id="h-Later-How_about_a_mw.file_api"><span data-mw-comment-start="" id="h-Later-How_about_a_mw.file_api"></span>Later<span data-mw-comment-end="h-Later-How_about_a_mw.file_api"></span></h3></div> <dl><dt>metadata</dt> <dd>The metadata table for a file also see <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=41498" class="extiw" title="bugzilla:41498">bugzilla:41498</a></dd> <dt>languages</dt> <dd>array of languages supported for this file (how to get metadata for a language ? mw.file.new(mw.title, language) ?</dd></dl> <div class="mw-heading mw-heading3"><h3 id="Might_not_be_needed_?" data-mw-thread-id="h-Might_not_be_needed_?-How_about_a_mw.file_api"><span id="Might_not_be_needed_.3F"></span><span data-mw-comment-start="" id="h-Might_not_be_needed_?-How_about_a_mw.file_api"></span>Might not be needed ?<span data-mw-comment-end="h-Might_not_be_needed_?-How_about_a_mw.file_api"></span></h3></div> <dl><dt>sha1</dt> <dd>the SHA1 of this image file (what would we use this for ?)</dd> <dt>user</dt> <dd>The username who uploaded</dd> <dt>timestamp</dt> <dd>The time of the upload</dd> <dt>comment</dt> <dd>The upload comment</dd></dl> <div class="mw-heading mw-heading3"><h3 id="Thumbs" data-mw-thread-id="h-Thumbs-How_about_a_mw.file_api"><span data-mw-comment-start="" id="h-Thumbs-How_about_a_mw.file_api"></span>Thumbs<span data-mw-comment-end="h-Thumbs-How_about_a_mw.file_api"></span></h3></div> <dl><dt>mw.file.newThumb( mw.title [, size [, page [,language]]] )</dt> <dd>(expensive)</dd> <dt>isThumb</dt> <dd></dd> <dt>page</dt> <dd>The page that this is a thumb of</dd> <dt>thumbMime</dt> <dd></dd> <dt>thumbHeight</dt> <dd></dd> <dt>thumbWidth</dt> <dd></dd> <dt>thumbUrl</dt> <dd></dd></dl> <div class="mw-heading mw-heading3"><h3 id="Comments" data-mw-thread-id="h-Comments-How_about_a_mw.file_api-2013-12-13T14:06:00.000Z"><span data-mw-comment-start="" id="h-Comments-How_about_a_mw.file_api-2013-12-13T14:06:00.000Z"></span>Comments<span data-mw-comment-end="h-Comments-How_about_a_mw.file_api-2013-12-13T14:06:00.000Z"></span></h3></div> <p><span data-mw-comment-start="" id="c-Mr._Stradivarius-2013-12-13T14:06:00.000Z-Comments"></span>This has been requested by a few other people as well - see <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=52522" class="extiw" title="bugzilla:52522">bugzilla:52522</a>. This would make sense as the next big feature for Scribunto, but I suppose that depends on whether we have any developer time to spare. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2013-12-13T14:06:00.000Z-Comments" class="ext-discussiontools-init-timestamplink">14:06, 13 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2013-12-13T14:06:00.000Z-Comments"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-13T14:06:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2013-12-13T14:06:00.000Z-Comments","replies":["c-WOSlinker-2013-12-13T14:15:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","c-Mr._Stradivarius-2013-12-13T14:18:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","c-Wnt-2014-01-13T17:41:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2013-12-13T14:06:00.000Z-Comments"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-WOSlinker-2013-12-13T14:15:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"></span>imageinfo could also have <b>duration</b> (in seconds) for AUDIO/VIDEO. -- <a href="/wiki/User:WOSlinker" title="User:WOSlinker">WOSlinker</a> (<a href="/wiki/User_talk:WOSlinker" title="User talk:WOSlinker">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-WOSlinker-2013-12-13T14:15:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z" class="ext-discussiontools-init-timestamplink">14:15, 13 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-WOSlinker-2013-12-13T14:15:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-13T14:15:00.000Z","author":"WOSlinker","type":"comment","level":2,"id":"c-WOSlinker-2013-12-13T14:15:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-WOSlinker-2013-12-13T14:15:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"></span></dd></dl> <dl><dd><small><span data-mw-comment-start="" id="c-Mr._Stradivarius-2013-12-13T14:18:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"></span>(<a href="/wiki/Help:Edit_conflict" title="Help:Edit conflict">edit conflict</a>)</small> Actually, judging from <a href="https://gerrit.wikimedia.org/r/67588" class="extiw" title="gerrit:67588">gerrit:67588</a>, this is just about done, but is waiting on another patch. I'm not sure what the schedule is there, though. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2013-12-13T14:18:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z" class="ext-discussiontools-init-timestamplink">14:18, 13 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2013-12-13T14:18:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-13T14:18:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2013-12-13T14:18:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","replies":["c-TheDJ-2013-12-13T14:25:00.000Z-Mr._Stradivarius-2013-12-13T14:18:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2013-12-13T14:18:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-TheDJ-2013-12-13T14:25:00.000Z-Mr._Stradivarius-2013-12-13T14:18:00.000Z"></span>That is just the exif metadata. Ergo what in the above table would count as 'metadata' property of a mw.file. —<a href="/wiki/User:TheDJ" title="User:TheDJ">Th<span style="color: green">e</span>DJ</a> (<a href="/wiki/User_talk:TheDJ" title="User talk:TheDJ">talk</a> • <a href="/wiki/Special:Contributions/TheDJ" title="Special:Contributions/TheDJ">contribs</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-TheDJ-2013-12-13T14:25:00.000Z-Mr._Stradivarius-2013-12-13T14:18:00.000Z" class="ext-discussiontools-init-timestamplink">14:25, 13 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-TheDJ-2013-12-13T14:25:00.000Z-Mr._Stradivarius-2013-12-13T14:18:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-13T14:25:00.000Z","author":"TheDJ","type":"comment","level":3,"id":"c-TheDJ-2013-12-13T14:25:00.000Z-Mr._Stradivarius-2013-12-13T14:18:00.000Z","replies":["c-Wnt-2013-12-20T22:48:00.000Z-TheDJ-2013-12-13T14:25:00.000Z"]}}--></span><span data-mw-comment-end="c-TheDJ-2013-12-13T14:25:00.000Z-Mr._Stradivarius-2013-12-13T14:18:00.000Z"></span></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Wnt-2013-12-20T22:48:00.000Z-TheDJ-2013-12-13T14:25:00.000Z"></span>I really like this idea, but I sure wish we could have a getContent() in there also. Especially for SVG images! <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2013-12-20T22:48:00.000Z-TheDJ-2013-12-13T14:25:00.000Z" class="ext-discussiontools-init-timestamplink">22:48, 20 December 2013 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2013-12-20T22:48:00.000Z-TheDJ-2013-12-13T14:25:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2013-12-20T22:48:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2013-12-20T22:48:00.000Z-TheDJ-2013-12-13T14:25:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2013-12-20T22:48:00.000Z-TheDJ-2013-12-13T14:25:00.000Z"></span></dd></dl></dd></dl></dd></dl> <ul><li><span data-mw-comment-start="" id="c-Wnt-2014-01-13T17:41:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"></span>mw.message is useful here also. out = mw.message.newRawMessage("[[File:Example.png]]"):parse() will yield HTML source including 'width="275" height="297"'. By contrast, out = out .. mw.text.unstrip(frame:preprocess("[[File:Example.png]]")) is not expanded and so displays as an image. (That doesn't mean we don't want the library though!) <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-01-13T17:41:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z" class="ext-discussiontools-init-timestamplink">17:41, 13 January 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-01-13T17:41:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-01-13T17:41:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-01-13T17:41:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","replies":["c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-01-13T17:41:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z"></span> <ul><li><span data-mw-comment-start="" id="c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z"></span>Now that that technique doesn't work anymore, I'll work on getting a nice interface built. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z" class="ext-discussiontools-init-timestamplink">20:00, 12 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-12T20:00:00.000Z","author":"Jackmcbarn","type":"comment","level":3,"id":"c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z"></span></li></ul></li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Tucoxn-2014-02-13T05:47:00.000Z","type":"heading","level":0,"id":"h-Module:Flags-2014-02-13T05:47:00.000Z","replies":["c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags"],"uneditableSection":true,"text":"Module:Flags","linkableTitle":"Module:Flags"}--><h2 id="Module:Flags" data-mw-thread-id="h-Module:Flags-2014-02-13T05:47:00.000Z"><span data-mw-comment-start="" id="h-Module:Flags-2014-02-13T05:47:00.000Z"></span><a href="/wiki/Module:Flags" title="Module:Flags">Module:Flags</a><span data-mw-comment-end="h-Module:Flags-2014-02-13T05:47:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Tucoxn-2014-02-13T05:47:00.000Z","type":"heading","level":0,"id":"h-Module:Flags-2014-02-13T05:47:00.000Z","replies":["c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z","timestamp":"2014-02-13T09:44:00.000Z"}__--><!--__DTCOMMENTCOUNT__2__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Tucoxn-2014-02-13T05:47:00.000Z","type":"heading","level":0,"id":"h-Module:Flags-2014-02-13T05:47:00.000Z","replies":["c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags"],"uneditableSection":true,"text":"Module:Flags","linkableTitle":"Module:Flags"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags"></span>There's a new request at <a href="/wiki/Module_talk:Flags" title="Module talk:Flags">Module talk:Flags</a>. Something seems to be wrong with the Soviet Union flags. I thought it might be useful to include the request here, in case not many editors watch that page. Thanks! - <b><a href="/wiki/User:Tucoxn" title="User:Tucoxn"><span style="font-family:Verdana; color:#522C1B;"><span style="font-size:large;"><span class="Unicode">t</span></span>u</span><span style="color:#417DC1;">coxn</span></a></b>\<span style="font-family:serif;"><sup><a href="/wiki/User_talk:Tucoxn" title="User talk:Tucoxn">talk</a></sup></span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags" class="ext-discussiontools-init-timestamplink">05:47, 13 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-13T05:47:00.000Z","author":"Tucoxn","type":"comment","level":1,"id":"c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags","replies":["c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z"]}}--></span><span data-mw-comment-end="c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z"></span>The problem got fixed. It was probably related to redirect creations and file renaming on Commons. See my response at <a href="/wiki/Module_talk:Flags" title="Module talk:Flags">Module talk:Flags</a> for more. Thanks! - <b><a href="/wiki/User:Tucoxn" title="User:Tucoxn"><span style="font-family:Verdana; color:#522C1B;"><span style="font-size:large;"><span class="Unicode">t</span></span>u</span><span style="color:#417DC1;">coxn</span></a></b>\<span style="font-family:serif;"><sup><a href="/wiki/User_talk:Tucoxn" title="User talk:Tucoxn">talk</a></sup></span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z" class="ext-discussiontools-init-timestamplink">09:44, 13 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-13T09:44:00.000Z","author":"Tucoxn","type":"comment","level":2,"id":"c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Aftab1995-2014-02-15T17:42:00.000Z","type":"heading","level":0,"id":"h-Need_help-2014-02-15T17:42:00.000Z","replies":["c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help"],"uneditableSection":true,"text":"Need help","linkableTitle":"Need help"}--><h2 id="Need_help" data-mw-thread-id="h-Need_help-2014-02-15T17:42:00.000Z"><span data-mw-comment-start="" id="h-Need_help-2014-02-15T17:42:00.000Z"></span>Need help<span data-mw-comment-end="h-Need_help-2014-02-15T17:42:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Aftab1995-2014-02-15T17:42:00.000Z","type":"heading","level":0,"id":"h-Need_help-2014-02-15T17:42:00.000Z","replies":["c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z","timestamp":"2014-02-18T01:18:00.000Z"}__--><!--__DTCOMMENTCOUNT__5__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Aftab1995-2014-02-15T17:42:00.000Z","type":"heading","level":0,"id":"h-Need_help-2014-02-15T17:42:00.000Z","replies":["c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help"],"uneditableSection":true,"text":"Need help","linkableTitle":"Need help"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help"></span>I'm from <a href="https://bn.wikipedia.org/wiki/" class="extiw" title="bn:">Bengali wikipedia</a>. I need help to fix a problem. Problem is: when we use template parameter like this <b>Rivers of {{{countryname}}}</b> sometime template gives wrong result. Parameter Exemple: <b>{{{countryname}}}ের নদী</b> (Rivers of {{{countryname}}}); If <i>countryname</i>=বাংলাদেশ it gives <b>বাংলাদেশের নদী</b> (correct) but If <i>countryname</i>=অস্ট্রেলিয়া it gives <b>অস্ট্রেলিয়াের নদী</b> which is wrong. </p><p>This problem can be fix easily using module: 1) Module needs to find the <a href="/wiki/Bengali_(Unicode_block)" title="Bengali (Unicode block)">last letter</a> of word (বাংলাদেশ - here last letter is শ, অস্ট্রেলিয়া - here last letter is া ) 2) If last letter is া , ি , ী , ু , ূ , ৃ , ে , ৈ , ো , ৌ then add only <b>র</b> (অস্ট্রেলিয়া - here last letter is া so module should be add only র means অস্ট্রেলিয়ার) 3) If last letter is ই then add only <b>য়ের</b> <s>4) If last letter is none of those (point no. <b>2</b>,<b>3</b>) then add <b> ের</b></s> 4) If last letter is অ, আ, ঈ, উ, ঊ, ঋ, এ, ঐ, ও, ঔ, ক, খ, গ, ঘ, ঙ, চ, ছ, জ, ঝ, ঞ, ট, ঠ, ড, ঢ, ণ, ত, থ, দ, ধ, ন, প, ফ, ব, ভ, ম, য, র, ল, শ, ষ, স, হ, য়, ড়, ঢ় then add <b> ের</b> </p><p>Someone please help bn wiki by creating a module. --<a href="/wiki/User:Aftab1995" class="mw-redirect" title="User:Aftab1995">Aftab1995</a> (<a href="/wiki/User_talk:Aftab1995" class="mw-redirect" title="User talk:Aftab1995">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help" class="ext-discussiontools-init-timestamplink">17:42, 15 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-15T17:42:00.000Z","author":"Aftab1995","type":"comment","level":1,"id":"c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help","replies":["c-Johnuniq-2014-02-16T01:55:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z","c-Aftab1995-2014-02-16T15:46:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z"]}}--></span><span data-mw-comment-end="c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-02-16T01:55:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z"></span>Can the algorithm required be explained using English examples? I guess you need a template: let's call it <b>fix</b> for now. The "Rivers of" is just an example? So you need something like this: <dl><dd><code>{{fix|{{{countryname}}}}}</code></dd></dl></dd> <dd>Assume countryname is "abcd". Fix gets the last character ("d"). It's not the last <i>letter</i>? If countryname is "abc123", the last letter is "c" and the last character is "3". I know that's not a likely scenario, but programs are pretty dumb and they have to told exactly what to do. I imagine it's the last <i>character</i> that is wanted.</dd> <dd>The result of fix is the input (countryname) with some text appended. That text depends on the last character.</dd> <dd><b>1)</b> Is the above correct? If so, it's pretty easy and I'll have a go. You can put the following into the "Debug console" when editing any module, and press Enter to see the result. <dl><dd><code>=mw.ustring.sub('(বাংলাদেশ', -1)</code></dd></dl></dd> <dd>The result is "শ" (the last character). Hmmm. That result looks different from what you show above, but my editor claims your character is hex 09b6, and so is my character. That's way above my head. I'll try the other examples later, but perhaps there is a combining characters problem? I have noticed that mw.ustring regards each codepoint as a character (which to my simple mind seems reasonable), yet I understand that a language like Bengali can combine codepoints to form different characters. That might be tricky.</dd> <dd>Is a "fix" template needed? Or do you want to directly call the module? Suppose the module is Module:Fix, then you could use: <dl><dd><code>{{#invoke:fix|{{{countryname}}}}}</code></dd></dl></dd> <dd>Please correct any misunderstandings above, and tell me what name to use for the template (if it is wanted), and what name to use for the module. I'm a bit uneasy about the combining character issue, and testing may show that mw.ustring.sub is not enough. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-02-16T01:55:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z" class="ext-discussiontools-init-timestamplink">01:55, 16 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-02-16T01:55:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-16T01:55:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-02-16T01:55:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-02-16T01:55:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Aftab1995-2014-02-16T15:46:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z"></span>"Rivers of" is just an example & you're right, i wanted the last <i>character</i> (i assure you that last character will be a letter). <b>1)</b> Yes, above is correct.</dd></dl></dd> <dd>I want a template where i call the module. Module name isn't a problem, you may use "fix" or "এর" (If needed, i can change the name later). Please create a module as a test. <a href="/wiki/User:Aftab1995" class="mw-redirect" title="User:Aftab1995">Aftab1995</a> (<a href="/wiki/User_talk:Aftab1995" class="mw-redirect" title="User talk:Aftab1995">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Aftab1995-2014-02-16T15:46:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z" class="ext-discussiontools-init-timestamplink">15:46, 16 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Aftab1995-2014-02-16T15:46:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-16T15:46:00.000Z","author":"Aftab1995","type":"comment","level":2,"id":"c-Aftab1995-2014-02-16T15:46:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z","replies":["c-Johnuniq-2014-02-17T03:23:00.000Z-Aftab1995-2014-02-16T15:46:00.000Z"]}}--></span><span data-mw-comment-end="c-Aftab1995-2014-02-16T15:46:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-02-17T03:23:00.000Z-Aftab1995-2014-02-16T15:46:00.000Z"></span>I don't think it's working properly yet, but I have created a module and template (I had to call it "adjust" because "fix" is in use). See <a href="https://bn.wikipedia.org/wiki/User:Johnuniq/adjust" class="extiw" title="bn:User:Johnuniq/adjust">bn:User:Johnuniq/adjust</a>. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-02-17T03:23:00.000Z-Aftab1995-2014-02-16T15:46:00.000Z" class="ext-discussiontools-init-timestamplink">03:23, 17 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-02-17T03:23:00.000Z-Aftab1995-2014-02-16T15:46:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-17T03:23:00.000Z","author":"Johnuniq","type":"comment","level":3,"id":"c-Johnuniq-2014-02-17T03:23:00.000Z-Aftab1995-2014-02-16T15:46:00.000Z","replies":["c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-02-17T03:23:00.000Z-Aftab1995-2014-02-16T15:46:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z"></span><span class="nowrap"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600"/></span></span><b> Done</b></span></dd> <dd>This appears resolved for now as the module is apparently working. It had a very interesting copy/paste bug that I will probably never understand: when I copied the wikitext for the Bangla characters above into my local file, I somehow ended up with a space character combined with some of the Bangla codepoints. For example, where my module had " া", the thing in quotes is actually a space combined with a codepoint: in hex, it is four bytes: 20+e0+a6+be, whereas only the last three bytes were wanted. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z" class="ext-discussiontools-init-timestamplink">01:18, 18 February 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-02-18T01:18:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Marc_Alioria-2014-03-07T01:56:00.000Z","type":"heading","level":0,"id":"h-External_links-2014-03-07T01:56:00.000Z","replies":["c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links"],"uneditableSection":true,"text":"External links","linkableTitle":"External links"}--><h2 id="External_links" data-mw-thread-id="h-External_links-2014-03-07T01:56:00.000Z"><span data-mw-comment-start="" id="h-External_links-2014-03-07T01:56:00.000Z"></span>External links<span data-mw-comment-end="h-External_links-2014-03-07T01:56:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Marc_Alioria-2014-03-07T01:56:00.000Z","type":"heading","level":0,"id":"h-External_links-2014-03-07T01:56:00.000Z","replies":["c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z","timestamp":"2014-03-07T03:50:00.000Z"}__--><!--__DTCOMMENTCOUNT__7__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Marc_Alioria-2014-03-07T01:56:00.000Z","type":"heading","level":0,"id":"h-External_links-2014-03-07T01:56:00.000Z","replies":["c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links"],"uneditableSection":true,"text":"External links","linkableTitle":"External links"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links"></span>At the small Wikipedias it's hard to find Lua experts so I hope you don't mind if I ask here. I would like to correct the external links (Identificants) in this article: </p> <dl><dd><a href="https://oc.wikipedia.org/wiki/Gy%C3%B6rgy_Gordon_Bajnai" class="extiw" title="oc:György Gordon Bajnai">oc:György Gordon Bajnai</a></dd></dl> <p>The article is based on: </p> <ol><li><a href="https://oc.wikipedia.org/wiki/Mod%C3%A8l:Infobox_identificacions_autoritats" class="extiw" title="oc:Modèl:Infobox identificacions autoritats">oc:Modèl:Infobox identificacions autoritats</a></li> <li><a href="https://oc.wikipedia.org/wiki/Mod%C3%A8l:Linha_Wikidata_ext%C3%A8rne" class="extiw" title="oc:Modèl:Linha Wikidata extèrne">oc:Modèl:Linha Wikidata extèrne</a></li></ol> <p>At Lua template no. 2 there must be an error but I can't find it. --<a href="/w/index.php?title=User:Marc_Alioria&action=edit&redlink=1" class="new" title="User:Marc Alioria (page does not exist)">Marc Alioria</a> (<a href="/w/index.php?title=User_talk:Marc_Alioria&action=edit&redlink=1" class="new" title="User talk:Marc Alioria (page does not exist)">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links" class="ext-discussiontools-init-timestamplink">01:56, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T01:56:00.000Z","author":"Marc Alioria","type":"comment","level":1,"id":"c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links","replies":["c-Johnuniq-2014-03-07T02:46:00.000Z-Marc_Alioria-2014-03-07T01:56:00.000Z"]}}--></span><span data-mw-comment-end="c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-03-07T02:46:00.000Z-Marc_Alioria-2014-03-07T01:56:00.000Z"></span>At en.wiki, "external link" means something like <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> in an "External links" section at the end of some articles. I think you are referring to the "Q851164" that appears in the article, which should be some text extracted from Wikidata. As far as I can tell, <a href="https://oc.wikipedia.org/wiki/Mod%C3%A8l:Wikidata" class="extiw" title="oc:Modèl:Wikidata">oc:Modèl:Wikidata</a> is a template which invokes <a href="https://oc.wikipedia.org/wiki/Module:Wikidata" class="extiw" title="oc:Module:Wikidata">oc:Module:Wikidata</a>, and the only other module involved on the article linked above is <a href="https://oc.wikipedia.org/wiki/Module:Wikidata/formatatge" class="extiw" title="oc:Module:Wikidata/formatatge">oc:Module:Wikidata/formatatge</a>. Is "Escolaritat Q851164" the problem you mean? Are there any pages with the Wikidata template which work? The #2 item above is a template which does not directly use Lua, although it might be calling the Wikidata module via its template. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-03-07T02:46:00.000Z-Marc_Alioria-2014-03-07T01:56:00.000Z" class="ext-discussiontools-init-timestamplink">02:46, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-03-07T02:46:00.000Z-Marc_Alioria-2014-03-07T01:56:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T02:46:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-03-07T02:46:00.000Z-Marc_Alioria-2014-03-07T01:56:00.000Z","replies":["c-Marc_Alioria-2014-03-07T03:00:00.000Z-Johnuniq-2014-03-07T02:46:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-03-07T02:46:00.000Z-Marc_Alioria-2014-03-07T01:56:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Marc_Alioria-2014-03-07T03:00:00.000Z-Johnuniq-2014-03-07T02:46:00.000Z"></span>With external links I've meant the section "Identificants": VIAF <a rel="nofollow" class="external text" href="http://13.219.148.195/">http://13.219.148.195/</a>. The correct link would be: <a rel="nofollow" class="external text" href="https://viaf.org/viaf/232494275/">https://viaf.org/viaf/232494275/</a>. --<a href="/w/index.php?title=User:Marc_Alioria&action=edit&redlink=1" class="new" title="User:Marc Alioria (page does not exist)">Marc Alioria</a> (<a href="/w/index.php?title=User_talk:Marc_Alioria&action=edit&redlink=1" class="new" title="User talk:Marc Alioria (page does not exist)">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Marc_Alioria-2014-03-07T03:00:00.000Z-Johnuniq-2014-03-07T02:46:00.000Z" class="ext-discussiontools-init-timestamplink">03:00, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Marc_Alioria-2014-03-07T03:00:00.000Z-Johnuniq-2014-03-07T02:46:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T03:00:00.000Z","author":"Marc Alioria","type":"comment","level":3,"id":"c-Marc_Alioria-2014-03-07T03:00:00.000Z-Johnuniq-2014-03-07T02:46:00.000Z","replies":["c-Mr._Stradivarius-2014-03-07T03:25:00.000Z-Marc_Alioria-2014-03-07T03:00:00.000Z"]}}--></span><span data-mw-comment-end="c-Marc_Alioria-2014-03-07T03:00:00.000Z-Johnuniq-2014-03-07T02:46:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-07T03:25:00.000Z-Marc_Alioria-2014-03-07T03:00:00.000Z"></span>I've found what I think is the problem: <a class="external text" href="https://oc.wikipedia.org/w/index.php?title=Mod%C3%A8l:Linha_Wikidata_ext%C3%A8rne&diff=1885547&oldid=1885505">this edit</a> removed the <code>{{{3}}}</code> parameter from <a href="https://oc.wikipedia.org/wiki/Mod%C3%A8l:Linha_Wikidata_ext%C3%A8rne" class="extiw" title="oc:Modèl:Linha Wikidata extèrne">oc:Modèl:Linha Wikidata extèrne</a>, which is being used by <a href="https://oc.wikipedia.org/wiki/Mod%C3%A8l:Infobox_identificacions_autoritats" class="extiw" title="oc:Modèl:Infobox identificacions autoritats">oc:Modèl:Infobox identificacions autoritats</a>. I'll double-check that that's the only thing broken, and fix it if everything looks ok. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-07T03:25:00.000Z-Marc_Alioria-2014-03-07T03:00:00.000Z" class="ext-discussiontools-init-timestamplink">03:25, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-07T03:25:00.000Z-Marc_Alioria-2014-03-07T03:00:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T03:25:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-07T03:25:00.000Z-Marc_Alioria-2014-03-07T03:00:00.000Z","replies":["c-Mr._Stradivarius-2014-03-07T03:38:00.000Z-Mr._Stradivarius-2014-03-07T03:25:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-07T03:25:00.000Z-Marc_Alioria-2014-03-07T03:00:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-07T03:38:00.000Z-Mr._Stradivarius-2014-03-07T03:25:00.000Z"></span>Yep, that looks like the problem - after expanding the templates, those external links show up as wikitext like <code>[http://1020032421 1020032421]</code>, which is being interpreted as an IP address by Chrome and probably other browsers too. If you add the missing URL portion, it turns into a valid link about the article's subject: <a rel="nofollow" class="external text" href="http://d-nb.info/gnd/1020032421">1020032421</a>. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-07T03:38:00.000Z-Mr._Stradivarius-2014-03-07T03:25:00.000Z" class="ext-discussiontools-init-timestamplink">03:38, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-07T03:38:00.000Z-Mr._Stradivarius-2014-03-07T03:25:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T03:38:00.000Z","author":"Mr. Stradivarius","type":"comment","level":5,"id":"c-Mr._Stradivarius-2014-03-07T03:38:00.000Z-Mr._Stradivarius-2014-03-07T03:25:00.000Z","replies":["c-Johnuniq-2014-03-07T03:45:00.000Z-Mr._Stradivarius-2014-03-07T03:38:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-07T03:38:00.000Z-Mr._Stradivarius-2014-03-07T03:25:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-03-07T03:45:00.000Z-Mr._Stradivarius-2014-03-07T03:38:00.000Z"></span>Good! I was getting lost. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-03-07T03:45:00.000Z-Mr._Stradivarius-2014-03-07T03:38:00.000Z" class="ext-discussiontools-init-timestamplink">03:45, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-03-07T03:45:00.000Z-Mr._Stradivarius-2014-03-07T03:38:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T03:45:00.000Z","author":"Johnuniq","type":"comment","level":6,"id":"c-Johnuniq-2014-03-07T03:45:00.000Z-Mr._Stradivarius-2014-03-07T03:38:00.000Z","replies":["c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-03-07T03:45:00.000Z-Mr._Stradivarius-2014-03-07T03:38:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z"></span>And now fixed <a class="external text" href="https://oc.wikipedia.org/w/index.php?title=Mod%C3%A8l%3ALinha_Wikidata_ext%C3%A8rne&diff=1927324&oldid=1926405">here</a>. In the end, it didn't have anything to do with Lua. :) — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z" class="ext-discussiontools-init-timestamplink">03:50, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T03:50:00.000Z","author":"Mr. Stradivarius","type":"comment","level":7,"id":"c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Edokter-2014-03-07T13:16:00.000Z","type":"heading","level":0,"id":"h-Function_needed-2014-03-07T13:16:00.000Z","replies":["c-Edokter-2014-03-07T13:16:00.000Z-Function_needed","c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed","h-Parser_keeps_lead_spaces_in_unnamed_parameters-Function_needed-2014-03-11T17:51:00.000Z"],"uneditableSection":true,"text":"Function needed","linkableTitle":"Function needed"}--><h2 id="Function_needed" data-mw-thread-id="h-Function_needed-2014-03-07T13:16:00.000Z"><span data-mw-comment-start="" id="h-Function_needed-2014-03-07T13:16:00.000Z"></span>Function needed<span data-mw-comment-end="h-Function_needed-2014-03-07T13:16:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Edokter-2014-03-07T13:16:00.000Z","type":"heading","level":0,"id":"h-Function_needed-2014-03-07T13:16:00.000Z","replies":["c-Edokter-2014-03-07T13:16:00.000Z-Function_needed","c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed","h-Parser_keeps_lead_spaces_in_unnamed_parameters-Function_needed-2014-03-11T17:51:00.000Z"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z","timestamp":"2014-03-11T23:23:00.000Z"}__--><!--__DTCOMMENTCOUNT__17__--><!--__DTAUTHORCOUNT__5__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Edokter-2014-03-07T13:16:00.000Z","type":"heading","level":0,"id":"h-Function_needed-2014-03-07T13:16:00.000Z","replies":["c-Edokter-2014-03-07T13:16:00.000Z-Function_needed","c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed","h-Parser_keeps_lead_spaces_in_unnamed_parameters-Function_needed-2014-03-11T17:51:00.000Z"],"uneditableSection":true,"text":"Function needed","linkableTitle":"Function needed"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Edokter-2014-03-07T13:16:00.000Z-Function_needed"></span>I need a small function isList() that returns true if a string is a wikilist, simply by checking if the first character is "*", "#", ";" or ":". <span style="font-family:'Trebuchet MS'"> — <a href="/wiki/User:Edokter" title="User:Edokter"><span style="color:#008"><i>E</i>dokter</span></a> (<a href="/wiki/User_talk:Edokter" title="User talk:Edokter"><span style="color:#080">talk</span></a>) — </span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Edokter-2014-03-07T13:16:00.000Z-Function_needed" class="ext-discussiontools-init-timestamplink">13:16, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Edokter-2014-03-07T13:16:00.000Z-Function_needed"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T13:16:00.000Z","author":"Edokter","type":"comment","level":1,"id":"c-Edokter-2014-03-07T13:16:00.000Z-Function_needed","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-07T17:01:00.000Z-Edokter-2014-03-07T13:16:00.000Z","c-Wikid77-2014-03-10T04:16:00.000Z-Edokter-2014-03-07T13:16:00.000Z"]}}--></span><span data-mw-comment-end="c-Edokter-2014-03-07T13:16:00.000Z-Function_needed"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2014-03-07T17:01:00.000Z-Edokter-2014-03-07T13:16:00.000Z"></span>i believe something like</dd> <dd><code>{{#invoke:String|find|source = <YOUR STRING>|target = ^[*#;:]|plain=false}}</code></dd> <dd>should work, no? note that using "source=" means your string will be trimmed - if you want to allow for spaces (i.e., "<Space>#bla" will fail while "#bla" succeeds), drop the "source =" part: "your string" should be the first param after "find". this will return 0 if your string is not a list, and 1 if it is.</dd> <dd>if you meant for longer string that might contain newlines, then the request should be defined more precisely - what is expected to happen when some of the lines begin with one of [*#:;] but not all? (examples below)</dd> <dd>{{#invoke:String | find | source = b#la | target = ^[*#;:] | plain = false}} => 0</dd> <dd>{{#invoke:String | find |source = #bla | target = ^[*#;:] | plain = false }} => 1</dd> <dd>peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-03-07T17:01:00.000Z-Edokter-2014-03-07T13:16:00.000Z" class="ext-discussiontools-init-timestamplink">17:01, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-03-07T17:01:00.000Z-Edokter-2014-03-07T13:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T17:01:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":2,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-07T17:01:00.000Z-Edokter-2014-03-07T13:16:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-03-07T17:01:00.000Z-Edokter-2014-03-07T13:16:00.000Z"></span></dd></dl> <ul><li><b><span data-mw-comment-start="" id="c-Wikid77-2014-03-10T04:16:00.000Z-Edokter-2014-03-07T13:16:00.000Z"></span>Using string.match() inside Lua module:</b> Hence, inside a Lua module, the functionality would be as follows:</li></ul> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span> <span class="kr">if</span> <span class="nb">string.match</span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="s1">'^[*#;:]'</span><span class="p">)</span> <span class="o">~=</span> <span class="kc">nil</span> <span class="kr">then</span> <span class="n">hey</span> <span class="o">=</span> <span class="s2">"There is a list item in str."</span> <span class="kr">end</span> </pre></div> <dl><dd>Note the <a href="/wiki/Regex" class="mw-redirect" title="Regex">regex</a> has been set to match the start-of-line by caret "^" and would not yet match text with a leading space (such as <span class="nowrap">" :"</span>); however, to also match with leading spaces, then include regex <span class="nowrap">" *"</span> to match zero-or-more spaces, as: <span class="nowrap">string.match(str,'^ *[*#;:]')</span> to match list items even with lead spaces. -<a href="/wiki/User:Wikid77" title="User:Wikid77">Wikid77</a> (<a href="/wiki/User_talk:Wikid77" title="User talk:Wikid77">talk</a>) 04:21, 9 March 2014, <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wikid77-2014-03-10T04:16:00.000Z-Edokter-2014-03-07T13:16:00.000Z" class="ext-discussiontools-init-timestamplink">04:16, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wikid77-2014-03-10T04:16:00.000Z-Edokter-2014-03-07T13:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T04:16:00.000Z","author":"Wikid77","type":"comment","level":2,"id":"c-Wikid77-2014-03-10T04:16:00.000Z-Edokter-2014-03-07T13:16:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-10T00:49:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"]}}--></span><span data-mw-comment-end="c-Wikid77-2014-03-10T04:16:00.000Z-Edokter-2014-03-07T13:16:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2014-03-10T00:49:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"></span>for the benefit of future generations who might look in the archive, i want to note that the last example, namely <b><span class="nowrap"><code>string.match(str,'^&nbsp;*[*#;:]')</code></span></b>, is not only useless, it's positively wrong: the "zero or more" quantifier, "*", applies only to the single character preceding it (semicolon), and not to the whole "no-break" marker, "&nbsp;", as <a href="/wiki/User:Wikid77" title="User:Wikid77">Wikid77</a> seems to imply. (note: i injected a hidden directional character so the non-breaking-space will be visible when reading the page). "real" regex supports grouping (using parenthesis), which would make this possible, but lua pattern matching does not support it. peace. <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-03-10T00:49:00.000Z-Wikid77-2014-03-10T04:16:00.000Z" class="ext-discussiontools-init-timestamplink">00:49, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-03-10T00:49:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T00:49:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":3,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-10T00:49:00.000Z-Wikid77-2014-03-10T04:16:00.000Z","replies":["c-Wikid77-2014-03-10T04:16:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-10T00:49:00.000Z"],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-03-10T00:49:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wikid77-2014-03-10T04:16:00.000Z-קיפודנחש-2014-03-10T00:49:00.000Z"></span>Well, I had used '&nbsp;' for typesetting the text, not as a literal ampersand-n-b-s-p as part of a regex pattern, but I have re-typeset those by using nowrap text; sorry for the confusion. So, the example I gave is not only quite useful, it's positively correct (I have 2 extensive university degrees in computer science, so that is why I was instantly familiar with the <a href="/wiki/Regex" class="mw-redirect" title="Regex">regex</a> issues). -<a href="/wiki/User_talk:Wikid77" title="User talk:Wikid77">Wikid77</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wikid77-2014-03-10T04:16:00.000Z-קיפודנחש-2014-03-10T00:49:00.000Z" class="ext-discussiontools-init-timestamplink">04:16, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wikid77-2014-03-10T04:16:00.000Z-קיפודנחש-2014-03-10T00:49:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T04:16:00.000Z","author":"Wikid77","type":"comment","level":4,"id":"c-Wikid77-2014-03-10T04:16:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-10T00:49:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-10T13:26:00.000Z-Wikid77-2014-03-10T04:16:00.000Z","c-Wikid77-2014-03-10T22:01:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"]}}--></span><span data-mw-comment-end="c-Wikid77-2014-03-10T04:16:00.000Z-קיפודנחש-2014-03-10T00:49:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-קיפודנחש-2014-03-10T13:26:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"></span>@<a href="/wiki/User:Wikid77" title="User:Wikid77">Wikid77</a>:</span> if it was meant for *real* whitespace rather than for non-breaking space, then your snippet may be technically correct, but it's lacking, and, of course, completely useless: lines beginning with spaces are parsed as "pre" elements and not as lists, even if the first character after the space is "*":</dd></dl></dd></dl></dd></dl></dd></dl> <pre>* this is not a list element </pre> <dl><dd><dl><dd><dl><dd><dl><dd>beyond its uselessness, it's "lacking", because when one wants to match whitespaces, one should use %s rather than <Space>. this will match tabs and other whitespaces also. peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-03-10T13:26:00.000Z-Wikid77-2014-03-10T04:16:00.000Z" class="ext-discussiontools-init-timestamplink">13:26, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-03-10T13:26:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T13:26:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":5,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-10T13:26:00.000Z-Wikid77-2014-03-10T04:16:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-03-10T13:26:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><ul><li><b><span data-mw-comment-start="" id="c-Wikid77-2014-03-10T22:01:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"></span>List items preceded by spaces:</b> At first I thought you were joking, but you actually seem to believe what you are saying. Instead, list items in Wikipedia can have leading spaces, such as in <a href="/wiki/Wikipedia:Parser_functions" class="mw-redirect" title="Wikipedia:Parser functions">wp:parser functions</a> (#ifexpr, lc, etc.). For example:</li></ul> <dl><dd><dl><dd>1. {{uc: ::::::* Bullet line}} = <dl><dd><ul><li>BULLET LINE</li></ul></dd></dl></dd> <dd>2. {{#ifexpr: 1 = 2-1 | {{{x| :::::::* bullet}}} }} = <dl><dd><dl><dd><ul><li>bullet</li></ul></dd></dl></dd></dl></dd></dl></dd> <dd>Hence, for the way Wikipedia actually works, the <a href="/wiki/Regex" class="mw-redirect" title="Regex">regex</a> pattern I gave is actually quite useful to match a list item with leading spaces. However, some whitespace characters literalize the list-items, such as "&#32;" which cannot precede an asterisk bullet. It is important to test notions in real markup, rather than imagine something as being "useless" in some imaginary world. -<a href="/wiki/User_talk:Wikid77" title="User talk:Wikid77">Wikid77</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wikid77-2014-03-10T22:01:00.000Z-Wikid77-2014-03-10T04:16:00.000Z" class="ext-discussiontools-init-timestamplink">22:01, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wikid77-2014-03-10T22:01:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T22:01:00.000Z","author":"Wikid77","type":"comment","level":5,"id":"c-Wikid77-2014-03-10T22:01:00.000Z-Wikid77-2014-03-10T04:16:00.000Z","replies":["c-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z-Wikid77-2014-03-10T22:01:00.000Z","c-Edokter-2014-03-10T22:54:00.000Z-Wikid77-2014-03-10T22:01:00.000Z"]}}--></span><span data-mw-comment-end="c-Wikid77-2014-03-10T22:01:00.000Z-Wikid77-2014-03-10T04:16:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z-Wikid77-2014-03-10T22:01:00.000Z"></span>But then again, parser functions and templates passed to Lua will have already been expanded, so for Lua scripts it does make sense to assume that wikitext lists must start at the start of a line. — <i><b><a href="/wiki/User:Mr._Stradivarius_on_tour" title="User:Mr. Stradivarius on tour"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius on tour</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius_on_tour" class="mw-redirect" title="User talk:Mr. Stradivarius on tour">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z-Wikid77-2014-03-10T22:01:00.000Z" class="ext-discussiontools-init-timestamplink">22:52, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z-Wikid77-2014-03-10T22:01:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T22:52:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":6,"id":"c-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z-Wikid77-2014-03-10T22:01:00.000Z","replies":["c-Wikid77-2014-03-11T17:51:00.000Z-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z-Wikid77-2014-03-10T22:01:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wikid77-2014-03-11T17:51:00.000Z-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z"></span>Well, you could assume parameters have no leading spaces, but it would be wrong; see below: "<a href="#Parser_keeps_lead_spaces_in_unnamed_parameters">#Parser keeps lead spaces in unnamed parameters</a>". -<a href="/wiki/User_talk:Wikid77" title="User talk:Wikid77">Wikid77</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wikid77-2014-03-11T17:51:00.000Z-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z" class="ext-discussiontools-init-timestamplink">17:51, 11 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wikid77-2014-03-11T17:51:00.000Z-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-11T17:51:00.000Z","author":"Wikid77","type":"comment","level":7,"id":"c-Wikid77-2014-03-11T17:51:00.000Z-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wikid77-2014-03-11T17:51:00.000Z-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Edokter-2014-03-10T22:54:00.000Z-Wikid77-2014-03-10T22:01:00.000Z"></span>(ec) Parser functions strips whitespace (so do template parameters for that fact). The only thing I am interested in is the <i>first</i> character being <code>[*#;:]</code>. <span style="font-family:'Trebuchet MS'"> — <a href="/wiki/User:Edokter" title="User:Edokter"><span style="color:#008"><i>E</i>dokter</span></a> (<a href="/wiki/User_talk:Edokter" title="User talk:Edokter"><span style="color:#080">talk</span></a>) — </span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Edokter-2014-03-10T22:54:00.000Z-Wikid77-2014-03-10T22:01:00.000Z" class="ext-discussiontools-init-timestamplink">22:54, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Edokter-2014-03-10T22:54:00.000Z-Wikid77-2014-03-10T22:01:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T22:54:00.000Z","author":"Edokter","type":"comment","level":6,"id":"c-Edokter-2014-03-10T22:54:00.000Z-Wikid77-2014-03-10T22:01:00.000Z","replies":["c-Wikid77-2014-03-11T17:51:00.000Z-Edokter-2014-03-10T22:54:00.000Z"]}}--></span><span data-mw-comment-end="c-Edokter-2014-03-10T22:54:00.000Z-Wikid77-2014-03-10T22:01:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wikid77-2014-03-11T17:51:00.000Z-Edokter-2014-03-10T22:54:00.000Z"></span>Only named parameters strip outer spaces (and the whitespace tabs): "<a href="#Parser_keeps_lead_spaces_in_unnamed_parameters">#Parser keeps lead spaces in unnamed parameters</a>". -<a href="/wiki/User_talk:Wikid77" title="User talk:Wikid77">Wikid77</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wikid77-2014-03-11T17:51:00.000Z-Edokter-2014-03-10T22:54:00.000Z" class="ext-discussiontools-init-timestamplink">17:51, 11 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wikid77-2014-03-11T17:51:00.000Z-Edokter-2014-03-10T22:54:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-11T17:51:00.000Z","author":"Wikid77","type":"comment","level":7,"id":"c-Wikid77-2014-03-11T17:51:00.000Z-Edokter-2014-03-10T22:54:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wikid77-2014-03-11T17:51:00.000Z-Edokter-2014-03-10T22:54:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <p><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed"></span>Here's my effort: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="kr">function</span> <span class="nf">isList</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="c1">-- Returns true if s starts with the characters "*", "#", ";" or ":".</span> <span class="c1">-- Otherwise returns false. Will produce an error if s is not a string.</span> <span class="kr">if</span> <span class="n">s</span><span class="p">:</span><span class="n">find</span><span class="p">(</span><span class="s1">'^[*#:;]'</span><span class="p">)</span> <span class="kr">then</span> <span class="kr">return</span> <span class="kc">true</span> <span class="kr">else</span> <span class="kr">return</span> <span class="kc">false</span> <span class="kr">end</span> <span class="kr">end</span> </pre></div> <p>That's all you need to detect strings starting with <code>[*#;:]</code>. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed" class="ext-discussiontools-init-timestamplink">23:28, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T23:28:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed","replies":["c-Mr._Stradivarius-2014-03-10T23:34:00.000Z-Mr._Stradivarius-2014-03-10T23:28:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-10T23:34:00.000Z-Mr._Stradivarius-2014-03-10T23:28:00.000Z"></span>And thinking about it, you could do that in even less code:</dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="kr">function</span> <span class="nf">isList</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="c1">-- Returns true if s starts with the characters "*", "#", ";" or ":".</span> <span class="c1">-- Otherwise returns false. Will produce an error if s is not a string.</span> <span class="kr">return</span> <span class="n">s</span><span class="p">:</span><span class="n">find</span><span class="p">(</span><span class="s1">'^[*#:;]'</span><span class="p">)</span> <span class="o">~=</span> <span class="kc">nil</span> <span class="kr">end</span> </pre></div> <dl><dd>Not sure if there's any merit in doing that over the one above, though. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-10T23:34:00.000Z-Mr._Stradivarius-2014-03-10T23:28:00.000Z" class="ext-discussiontools-init-timestamplink">23:34, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-10T23:34:00.000Z-Mr._Stradivarius-2014-03-10T23:28:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T23:34:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-10T23:34:00.000Z-Mr._Stradivarius-2014-03-10T23:28:00.000Z","replies":["c-Edokter-2014-03-10T23:38:00.000Z-Mr._Stradivarius-2014-03-10T23:34:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-10T23:34:00.000Z-Mr._Stradivarius-2014-03-10T23:28:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Edokter-2014-03-10T23:38:00.000Z-Mr._Stradivarius-2014-03-10T23:34:00.000Z"></span>Nice and short. What happens if an error is raised? <span style="font-family:'Trebuchet MS'"> — <a href="/wiki/User:Edokter" title="User:Edokter"><span style="color:#008"><i>E</i>dokter</span></a> (<a href="/wiki/User_talk:Edokter" title="User talk:Edokter"><span style="color:#080">talk</span></a>) — </span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Edokter-2014-03-10T23:38:00.000Z-Mr._Stradivarius-2014-03-10T23:34:00.000Z" class="ext-discussiontools-init-timestamplink">23:38, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Edokter-2014-03-10T23:38:00.000Z-Mr._Stradivarius-2014-03-10T23:34:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T23:38:00.000Z","author":"Edokter","type":"comment","level":3,"id":"c-Edokter-2014-03-10T23:38:00.000Z-Mr._Stradivarius-2014-03-10T23:34:00.000Z","replies":["c-Mr._Stradivarius-2014-03-10T23:59:00.000Z-Edokter-2014-03-10T23:38:00.000Z"]}}--></span><span data-mw-comment-end="c-Edokter-2014-03-10T23:38:00.000Z-Mr._Stradivarius-2014-03-10T23:34:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-10T23:59:00.000Z-Edokter-2014-03-10T23:38:00.000Z"></span>If an error is raised when running from #invoke, you get the lovely big red "script error" message. :) To avoid that, you have three basic options. The first is to make sure that you will only pass strings to the function. This is actually not so hard, as argument values passed from #invoke are always strings. (Argument keys can be numbers, however.) The second is to check the type of s before doing the matching. You can make it return nil if s is not a string, and true or false otherwise. That works like this:</dd></dl></dd></dl></dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="kr">function</span> <span class="nf">isList</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="c1">-- Returns true if s starts with the characters "*", "#", ";" or ":".</span> <span class="c1">-- Otherwise returns false. Will return nil if s is not a string.</span> <span class="kr">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="o">~=</span> <span class="s1">'string'</span> <span class="kr">then</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="kr">return</span> <span class="n">s</span><span class="p">:</span><span class="n">find</span><span class="p">(</span><span class="s1">'^[*#:;]'</span><span class="p">)</span> <span class="o">~=</span> <span class="kc">nil</span> <span class="kr">end</span> </pre></div> <dl><dd><dl><dd><dl><dd>Or this:</dd></dl></dd></dl></dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="kr">function</span> <span class="nf">isList</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="c1">-- Returns true if s starts with the characters "*", "#", ";" or ":".</span> <span class="c1">-- Otherwise returns false. Will return nil if s is not a string.</span> <span class="kr">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="o">==</span> <span class="s1">'string'</span> <span class="kr">then</span> <span class="kr">return</span> <span class="n">s</span><span class="p">:</span><span class="n">find</span><span class="p">(</span><span class="s1">'^[*#:;]'</span><span class="p">)</span> <span class="o">~=</span> <span class="kc">nil</span> <span class="kr">else</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="kr">end</span> </pre></div> <dl><dd><dl><dd><dl><dd>In a similar vein, you can also convert s to a string before matching it, by using <code>s = tostring(s)</code>. But type checking is more elegant. The third is to try and catch the error by using <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#pcall" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">pcall</a> - although I think just checking the type of <var>s</var> is neater. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-10T23:59:00.000Z-Edokter-2014-03-10T23:38:00.000Z" class="ext-discussiontools-init-timestamplink">23:59, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-10T23:59:00.000Z-Edokter-2014-03-10T23:38:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T23:59:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-10T23:59:00.000Z-Edokter-2014-03-10T23:38:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-10T23:59:00.000Z-Edokter-2014-03-10T23:38:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z"></span>about "neatness": it is very common (and neat, if you ask me) in lua to use boolean shortcut for this purpose exactly: so instead of if..then..else..end, one can simply write <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">return</span> <span class="nb">type</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="o">==</span> <span class="s1">'string'</span> <span class="ow">and</span> <span class="n">s</span><span class="p">:</span><span class="n">find</span><span class="p">(</span><span class="s1">'^[*#:;]'</span><span class="p">)</span> </pre></div>this will return either false (not a string), 'nil' (not a list) or the first character. usually this is good enough, but if you prefer "true" rather than the found character, use<div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">return</span> <span class="nb">type</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="o">==</span> <span class="s1">'string'</span> <span class="ow">and</span> <span class="n">s</span><span class="p">:</span><span class="n">find</span><span class="p">(</span><span class="s1">'^[*#:;]'</span><span class="p">)</span> <span class="ow">and</span> <span class="kc">true</span> </pre></div>this pattern is very common in lua, it makes the code shorter and more concise, and getting familiar with it is helpful. i use it all the time - maybe sometimes to a fault... peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z" class="ext-discussiontools-init-timestamplink">23:23, 11 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-11T23:23:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":5,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading3"><h3 id="Parser_keeps_lead_spaces_in_unnamed_parameters" data-mw-thread-id="h-Parser_keeps_lead_spaces_in_unnamed_parameters-Function_needed-2014-03-11T17:51:00.000Z"><span data-mw-comment-start="" id="h-Parser_keeps_lead_spaces_in_unnamed_parameters-Function_needed-2014-03-11T17:51:00.000Z"></span>Parser keeps lead spaces in unnamed parameters<span data-mw-comment-end="h-Parser_keeps_lead_spaces_in_unnamed_parameters-Function_needed-2014-03-11T17:51:00.000Z"></span></h3></div> <p><span data-mw-comment-start="" id="c-Wikid77-2014-03-11T17:51:00.000Z-Parser_keeps_lead_spaces_in_unnamed_parameters"></span>Note how the unnamed parameters retain any leading spaces/tabs, when invoking a Lua function: </p> <dl><dd>f1. {#invoke:String|find|*bullet|target=^[*#:;]|plain=false}} = 1</dd> <dd>f2. {#invoke:String|find| *bullet|target=^[*#:;]|plain=false}} = 0</dd> <dd>f3. {#invoke:String|find|source= *bullet|target=^[*#:;]|plain=false}} = 1</dd> <dd>f4. {#invoke:String|find| *bullet|target=^%s*[*#:;]|plain=false}} = 1</dd></dl> <p>In case f2, the find() is unable to match with the lead-spaces and gives result "0" as a no-match, but in case f3, with the named parameter ("source="), the parser has omitted the outer spaces/tabs. To handle extra spaces/tabs, before a list-item, the <a href="/wiki/Regex" class="mw-redirect" title="Regex">regex</a> pattern in case f4 uses <span class="nowrap">"^%s*"</span> to allow multiple spaces/tabs to precede a list-item, such as in " *bullet" with 3 extra spaces. -<a href="/wiki/User:Wikid77" title="User:Wikid77">Wikid77</a> (<a href="/wiki/User_talk:Wikid77" title="User talk:Wikid77">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wikid77-2014-03-11T17:51:00.000Z-Parser_keeps_lead_spaces_in_unnamed_parameters" class="ext-discussiontools-init-timestamplink">17:51, 11 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wikid77-2014-03-11T17:51:00.000Z-Parser_keeps_lead_spaces_in_unnamed_parameters"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-11T17:51:00.000Z","author":"Wikid77","type":"comment","level":1,"id":"c-Wikid77-2014-03-11T17:51:00.000Z-Parser_keeps_lead_spaces_in_unnamed_parameters","replies":[]}}--></span><span data-mw-comment-end="c-Wikid77-2014-03-11T17:51:00.000Z-Parser_keeps_lead_spaces_in_unnamed_parameters"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-DePiep-2014-03-07T14:50:00.000Z","type":"heading","level":0,"id":"h-Pattern_documentation-2014-03-07T14:50:00.000Z","replies":["c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation"],"uneditableSection":true,"text":"Pattern documentation","linkableTitle":"Pattern documentation"}--><h2 id="Pattern_documentation" data-mw-thread-id="h-Pattern_documentation-2014-03-07T14:50:00.000Z"><span data-mw-comment-start="" id="h-Pattern_documentation-2014-03-07T14:50:00.000Z"></span>Pattern documentation<span data-mw-comment-end="h-Pattern_documentation-2014-03-07T14:50:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-DePiep-2014-03-07T14:50:00.000Z","type":"heading","level":0,"id":"h-Pattern_documentation-2014-03-07T14:50:00.000Z","replies":["c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z","timestamp":"2014-03-14T19:56:00.000Z"}__--><!--__DTCOMMENTCOUNT__12__--><!--__DTAUTHORCOUNT__5__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-DePiep-2014-03-07T14:50:00.000Z","type":"heading","level":0,"id":"h-Pattern_documentation-2014-03-07T14:50:00.000Z","replies":["c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation"],"uneditableSection":true,"text":"Pattern documentation","linkableTitle":"Pattern documentation"}--></div></div></div> <p><span data-mw-comment-start="" id="c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation"></span>This is the Lua pattern documentation: <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Introduction" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">mw:Extension:Scribunto/Lua_reference_manual#Introduction</a>, and <a rel="nofollow" class="external autonumber" href="http://www.lua.org/pil/20.1.html">[3]</a>. Is there a pattern documentation that does not say "like the regex we all know, except ..."? I need a 101 documentation, so in chapters 1 to 4 the word "greedy" does not appear. If such a documentation exists for regex, that would be great too. -<a href="/wiki/User:DePiep" title="User:DePiep">DePiep</a> (<a href="/wiki/User_talk:DePiep" title="User talk:DePiep">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation" class="ext-discussiontools-init-timestamplink">14:50, 7 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-07T14:50:00.000Z","author":"DePiep","type":"comment","level":1,"id":"c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation","replies":["c-Wikid77-2014-03-09T05:36:00.000Z-DePiep-2014-03-07T14:50:00.000Z","c-Mr._Stradivarius-2014-03-09T08:06:00.000Z-DePiep-2014-03-07T14:50:00.000Z","c-Wnt-2014-03-13T03:21:00.000Z-DePiep-2014-03-07T14:50:00.000Z","c-Wnt-2014-03-14T03:04:00.000Z-DePiep-2014-03-07T14:50:00.000Z"]}}--></span><span data-mw-comment-end="c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation"></span> </p> <dl><dd><b><span data-mw-comment-start="" id="c-Wikid77-2014-03-09T05:36:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span>Start with article "Regex" and remember percent '%' for literals:</b> Because there are so many features, it would be best to tell people to read page "<a href="/wiki/Regex" class="mw-redirect" title="Regex">Regex</a>" but beware how Lua uses percent sign '%' as the literalizing character (not standard "\"). Hence to match <a href="/wiki/Square_brackets" class="mw-redirect" title="Square brackets">square brackets</a> in a string, each bracket must be escaped as '%[' and '%]' because regex brackets specify a single-character set. Compare examples: <ul><li>1. {#invoke:String |find|source= aabbcc |target= [.*] |plain=false}} = 0</li> <li>2. {#invoke:String |find|source= a[ab]bcc |target= \[.*\] |plain=false}} = 0</li> <li>3. {#invoke:String |find|source= a[ab]bcc |target= %[.*%] |plain=false}} = 2</li> <li>4. {#invoke:String |find|source= aab[bc]c |target= %[.*%] |plain=false}} = 4</li></ul></dd> <dd>Note how the brackets only matched (in lines 3 & 4) once they were escaped as Lua '%[' and '%]' and that is bizarre, compared to the typical POSIX backslash format, as '\[' and '\]'. Page "<a href="/wiki/Regex" class="mw-redirect" title="Regex">Regex</a>" contains an extensive explanation of the major regex features, with several complex examples to demonstrate the potential power of using regex patterns. Unfortunately, a "Regex 101" guide will require learning the numerous regex patterns, just as "Greek 101" requires learning the 24-letter <a href="/wiki/Greek_Alphabet" class="mw-redirect" title="Greek Alphabet">Greek Alphabet</a>, in alphabetical order; otherwise a student cannot lookup words in a Greek/English dictionary unless knowing the sequence of Greek letters: α-β-γ-δ-ε, etc. Regex is similar to fair-use restrictions for copyrighted images; a student should plan at least 3-5 days of study to understand the major concepts and restrictions in usage.<br/>FYI: It is crucial for students to understand how regex matches are "greedy" and match the longest possible string, as compared to typical human left-to-right, find-the-first-match. In fact, regex's greedy pattern-matching is likely one of the worst design flaws in the history of computer science, and has been a royal pain for over 35 years, requiring new symbols to allow "non-greedy" matches. I would rank greedy matches the same as "<a href="/wiki/Implicit_declaration" class="mw-redirect" title="Implicit declaration">implicit declaration</a>" of misspelled variable names, as likely to cause horrific bizarre results. -<a href="/wiki/User:Wikid77" title="User:Wikid77">Wikid77</a> (<a href="/wiki/User_talk:Wikid77" title="User talk:Wikid77">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wikid77-2014-03-09T05:36:00.000Z-DePiep-2014-03-07T14:50:00.000Z" class="ext-discussiontools-init-timestamplink">05:36, 9 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wikid77-2014-03-09T05:36:00.000Z-DePiep-2014-03-07T14:50:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-09T05:36:00.000Z","author":"Wikid77","type":"comment","level":2,"id":"c-Wikid77-2014-03-09T05:36:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wikid77-2014-03-09T05:36:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span></dd></dl> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-09T08:06:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span>@DePiep: Try the <a rel="nofollow" class="external text" href="http://lua-users.org/wiki/PatternsTutorial">lua-users wiki</a>. If that's hard to understand, post back here with whatever you're having trouble with, and someone should be able to help you out. Good luck. :) — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-09T08:06:00.000Z-DePiep-2014-03-07T14:50:00.000Z" class="ext-discussiontools-init-timestamplink">08:06, 9 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-09T08:06:00.000Z-DePiep-2014-03-07T14:50:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-09T08:06:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-09T08:06:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":["c-Mr._Stradivarius-2014-03-09T21:44:00.000Z-Mr._Stradivarius-2014-03-09T08:06:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-09T08:06:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-09T21:44:00.000Z-Mr._Stradivarius-2014-03-09T08:06:00.000Z"></span>Also, for regex, I found <a rel="nofollow" class="external text" href="http://www.regular-expressions.info/">regular-expressions.info</a> useful. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-09T21:44:00.000Z-Mr._Stradivarius-2014-03-09T08:06:00.000Z" class="ext-discussiontools-init-timestamplink">21:44, 9 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-09T21:44:00.000Z-Mr._Stradivarius-2014-03-09T08:06:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-09T21:44:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-03-09T21:44:00.000Z-Mr._Stradivarius-2014-03-09T08:06:00.000Z","replies":["c-DePiep-2014-03-10T16:50:00.000Z-Mr._Stradivarius-2014-03-09T21:44:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-09T21:44:00.000Z-Mr._Stradivarius-2014-03-09T08:06:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-DePiep-2014-03-10T16:50:00.000Z-Mr._Stradivarius-2014-03-09T21:44:00.000Z"></span>Thanks. I've added the links to the Lua resources page. -<a href="/wiki/User:DePiep" title="User:DePiep">DePiep</a> (<a href="/wiki/User_talk:DePiep" title="User talk:DePiep">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DePiep-2014-03-10T16:50:00.000Z-Mr._Stradivarius-2014-03-09T21:44:00.000Z" class="ext-discussiontools-init-timestamplink">16:50, 10 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DePiep-2014-03-10T16:50:00.000Z-Mr._Stradivarius-2014-03-09T21:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-10T16:50:00.000Z","author":"DePiep","type":"comment","level":4,"id":"c-DePiep-2014-03-10T16:50:00.000Z-Mr._Stradivarius-2014-03-09T21:44:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-DePiep-2014-03-10T16:50:00.000Z-Mr._Stradivarius-2014-03-09T21:44:00.000Z"></span></dd></dl></dd></dl></dd></dl> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-03-13T03:21:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span>I don't understand the complaint about greedy pattern matching. If I do {{#invoke:LuaCall|main|x=abaabaaab|y=b(.*)b|string.match(x,y)}} -> aabaaa, sure, that's greedy. But I can do {{#invoke:LuaCall|main|x=abaabaaab|y=b(.-)b|string.match(x,y)}} -> aa just as easily. And the greediness still uses a left to right search; it just doesn't stop until it has to. But it is annoying that the Lua format doesn't accept a number of the Javascript options, so that it's not easily possible to reuse Javascript patterns here. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-03-13T03:21:00.000Z-DePiep-2014-03-07T14:50:00.000Z" class="ext-discussiontools-init-timestamplink">03:21, 13 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-03-13T03:21:00.000Z-DePiep-2014-03-07T14:50:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-13T03:21:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-03-13T03:21:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-03-13T03:21:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span></dd></dl> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-03-14T03:04:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span>I tried redigesting the Scribunto manual at <a class="external autonumber" href="https://en.wikipedia.org/w/index.php?title=Help:Lua_for_beginners&diff=599530241&oldid=599526228">[4]</a> - I'm not sure I made anything clearer or in any way better though. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-03-14T03:04:00.000Z-DePiep-2014-03-07T14:50:00.000Z" class="ext-discussiontools-init-timestamplink">03:04, 14 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-03-14T03:04:00.000Z-DePiep-2014-03-07T14:50:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-14T03:04:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-03-14T03:04:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":["c-Anomie-2014-03-14T10:31:00.000Z-Wnt-2014-03-14T03:04:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-03-14T03:04:00.000Z-DePiep-2014-03-07T14:50:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Anomie-2014-03-14T10:31:00.000Z-Wnt-2014-03-14T03:04:00.000Z"></span>I'm going to reiterate <a href="/wiki/Module_talk:LuaCall#I_sincerely_hope_that_no_one_ever_actually_uses_this" title="Module talk:LuaCall">Module talk:LuaCall#I sincerely hope that no one ever actually uses this</a>: I really don't think using that is something we should encourage use of. <a href="/wiki/User:Anomie" title="User:Anomie">Anomie</a><a href="/wiki/User_talk:Anomie" title="User talk:Anomie">⚔</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Anomie-2014-03-14T10:31:00.000Z-Wnt-2014-03-14T03:04:00.000Z" class="ext-discussiontools-init-timestamplink">10:31, 14 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Anomie-2014-03-14T10:31:00.000Z-Wnt-2014-03-14T03:04:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-14T10:31:00.000Z","author":"Anomie","type":"comment","level":3,"id":"c-Anomie-2014-03-14T10:31:00.000Z-Wnt-2014-03-14T03:04:00.000Z","replies":["c-Wnt-2014-03-14T14:24:00.000Z-Anomie-2014-03-14T10:31:00.000Z"]}}--></span><span data-mw-comment-end="c-Anomie-2014-03-14T10:31:00.000Z-Wnt-2014-03-14T03:04:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-03-14T14:24:00.000Z-Anomie-2014-03-14T10:31:00.000Z"></span>I don't understand the criticism. First, to be honest, I don't understand what load(func, chunk) is actually used for. And certainly I don't see any comparison to obfuscated C. What I know is that I find myself making use of this fairly often - most commonly for a string.len measurement of a DYK-related item. I assume it would be legitimate to write a dedicated module for purposes like this, but why bother having a separate module for each one? To be clear, I do understand that going back to LuaCall <i>repeatedly</i> within a single template would quickly become inefficient. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-03-14T14:24:00.000Z-Anomie-2014-03-14T10:31:00.000Z" class="ext-discussiontools-init-timestamplink">14:24, 14 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-03-14T14:24:00.000Z-Anomie-2014-03-14T10:31:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-14T14:24:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-03-14T14:24:00.000Z-Anomie-2014-03-14T10:31:00.000Z","replies":["c-DePiep-2014-03-14T14:41:00.000Z-Wnt-2014-03-14T14:24:00.000Z","c-Mr._Stradivarius-2014-03-14T15:24:00.000Z-Wnt-2014-03-14T14:24:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-03-14T14:24:00.000Z-Anomie-2014-03-14T10:31:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-DePiep-2014-03-14T14:41:00.000Z-Wnt-2014-03-14T14:24:00.000Z"></span>Wnt, I guess you refer to my complaint about greedy. I meant to say that, when starting Lua patterns (or Regex for that matter), explaining "greedy" should <i>not</i> be the first topic. And so, a little hyperbolic, it should be "not in chapter 1 to 4". That is because when I want to learn Patterns from scratch, that is not the essence. To illustrate this with the demo you gave yourself: I first need to know what the <i>meaningful symbols</i> are you use (that is <code>*().</code>). Now please don't <i>explain</i> them to me here, it's just to show that I need to learn that first. -<a href="/wiki/User:DePiep" title="User:DePiep">DePiep</a> (<a href="/wiki/User_talk:DePiep" title="User talk:DePiep">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DePiep-2014-03-14T14:41:00.000Z-Wnt-2014-03-14T14:24:00.000Z" class="ext-discussiontools-init-timestamplink">14:41, 14 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DePiep-2014-03-14T14:41:00.000Z-Wnt-2014-03-14T14:24:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-14T14:41:00.000Z","author":"DePiep","type":"comment","level":5,"id":"c-DePiep-2014-03-14T14:41:00.000Z-Wnt-2014-03-14T14:24:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-DePiep-2014-03-14T14:41:00.000Z-Wnt-2014-03-14T14:24:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-14T15:24:00.000Z-Wnt-2014-03-14T14:24:00.000Z"></span>Wnt, sounds like you're looking for <a href="/wiki/Module:String#len" title="Module:String">Module:String#len</a>? — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-14T15:24:00.000Z-Wnt-2014-03-14T14:24:00.000Z" class="ext-discussiontools-init-timestamplink">15:24, 14 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-14T15:24:00.000Z-Wnt-2014-03-14T14:24:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-14T15:24:00.000Z","author":"Mr. Stradivarius","type":"comment","level":5,"id":"c-Mr._Stradivarius-2014-03-14T15:24:00.000Z-Wnt-2014-03-14T14:24:00.000Z","replies":["c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-14T15:24:00.000Z-Wnt-2014-03-14T14:24:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z"></span>You're right, that <i>is</i> useful in this case. But I still don't see any reason why that is good but LuaCall is bad. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z" class="ext-discussiontools-init-timestamplink">19:56, 14 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-14T19:56:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z","type":"heading","level":0,"id":"h-Template:Chart-2014-03-23T20:11:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z-Template:Chart"],"uneditableSection":true,"text":"Template:Chart","linkableTitle":"Template:Chart"}--><h2 id="Template:Chart" data-mw-thread-id="h-Template:Chart-2014-03-23T20:11:00.000Z"><span data-mw-comment-start="" id="h-Template:Chart-2014-03-23T20:11:00.000Z"></span><a href="/wiki/Template:Chart" class="mw-redirect" title="Template:Chart">Template:Chart</a><span data-mw-comment-end="h-Template:Chart-2014-03-23T20:11:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z","type":"heading","level":0,"id":"h-Template:Chart-2014-03-23T20:11:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z-Template:Chart"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z","timestamp":"2014-03-24T02:22:00.000Z"}__--><!--__DTCOMMENTCOUNT__3__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z","type":"heading","level":0,"id":"h-Template:Chart-2014-03-23T20:11:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z-Template:Chart"],"uneditableSection":true,"text":"Template:Chart","linkableTitle":"Template:Chart"}--></div></div></div> <p><span data-mw-comment-start="" id="c-קיפודנחש-2014-03-23T20:11:00.000Z-Template:Chart"></span>this template is apparently very expensive, mainly due to excessive use of parser functions, i think. (some of the pages and templates using it clock at 15 and 20 seconds for parsing( </p><p>it's also super complicated. i do not suggest, necessarily, to replace it with something that would use the exact same syntax, though this may not be so bad also. </p><p>my suggestion/request is more about thinking, finding and defining better syntax to this functionality, that would make it easier for the editors to create those charts. ideally, the editor would use some "language" to define the relationship between the nodes, without having to worry about the precise layout of the boxes and lines. </p><p>unfortunately, i can't think of such syntax myself. </p><p>looking at the template's source code, it's clear that this is an unmanageable nightmare - prime candidate for scribunto, IMO. </p><p>peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-03-23T20:11:00.000Z-Template:Chart" class="ext-discussiontools-init-timestamplink">20:11, 23 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-03-23T20:11:00.000Z-Template:Chart"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-23T20:11:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":1,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z-Template:Chart","replies":["c-Mr._Stradivarius-2014-03-24T00:46:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z"],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-03-23T20:11:00.000Z-Template:Chart"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-24T00:46:00.000Z-קיפודנחש-2014-03-23T20:11:00.000Z"></span>How about this:</dd></dl> <pre>{{autochart |node1 = fred |node2 = jane |node3 = joe |fred-text = [[Fred Bloggs]] |jane-text = [[Jane Bloggs]] |joe-text = [[Joe Bloggs]] |fred-sister = jane |fred-child = joe |jane-child = joe |fred-jane-line = dashed }} </pre> <dl><dd>That would produce something like:</dd></dl> <table style="border-spacing: 0px; border-collapse: separate;"> <tbody><tr style="height:1px;text-align:center"><td colspan="6" rowspan="2" style="border:2px solid;padding:0.2em"><a href="/wiki/Fred_Bloggs" class="mw-redirect" title="Fred Bloggs">Fred Bloggs</a></td><td colspan="2" style="height:1em;border-bottom:1px dashed;width:2em"></td><td colspan="2" style="height:1em;border-bottom:1px dashed;width:2em"></td><td colspan="2" style="height:1em;border-bottom:1px dashed;width:2em"></td><td colspan="6" rowspan="2" style="border:2px solid;padding:0.2em"><a href="/w/index.php?title=Jane_Bloggs&action=edit&redlink=1" class="new" title="Jane Bloggs (page does not exist)">Jane Bloggs</a></td></tr><tr style="height:1px;text-align:center"><td colspan="2" style="height:1em;width:2em"></td><td style="border-right:1px solid;height:1em;width:1em"></td><td style="height:1em;width:1em"></td><td colspan="2" style="height:1em;width:2em"></td></tr> <tr style="height:1px;text-align:center"><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td rowspan="2" style="border-right:1px solid;height:2em;width:1em"></td><td rowspan="2" style="height:2em;width:1em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td></tr><tr style="height:1px;text-align:center"></tr> <tr style="height:1px;text-align:center"><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="6" rowspan="2" style="border:2px solid;padding:0.2em"><a href="/wiki/Joe_Bloggs" title="Joe Bloggs">Joe Bloggs</a></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td><td colspan="2" rowspan="2" style="height:2em;width:2em"></td></tr><tr style="height:1px;text-align:center"></tr> </tbody></table> <dl><dd>That would require a lot more processing in the module than the current system. It would also have to deal with multiple ways of specifying the same information, e.g. <code>fred-jane-line</code> and <code>jane-fred-line</code> would refer to the same thing. It would also have to detect conflicting data, and probably throw errors for it, e.g. <code>fred-jane-line = solid</code> and <code>jane-fred-line = dashed</code>. Or another example: <code>fred-child = joe</code>, <code>fred-sister = jane</code> and <code>joe-child = jane</code>. And probably the hardest part would be working out where to draw the lines, as there are a lot of different possibilities. Thoughts? — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-24T00:46:00.000Z-קיפודנחש-2014-03-23T20:11:00.000Z" class="ext-discussiontools-init-timestamplink">00:46, 24 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-24T00:46:00.000Z-קיפודנחש-2014-03-23T20:11:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-24T00:46:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-24T00:46:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-23T20:11:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-24T00:46:00.000Z-קיפודנחש-2014-03-23T20:11:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z"></span>not sure. it makes sense, but i think there are a few things supported by current template that may not be possible (it's hard to say, b/c currently the editors have to create the line-art: much more tedious, but also much more freedom).</dd> <dd>also, i think we can get away from limiting ourselves to template syntax (name=value, separated by | ): sometimes you want more elaborated tupples, and the fact that the module can examine the values programatically, allows us do this.</dd> <dd>not to claim that what i did is perfect or even good, but look at the syntax i created in <a href="/wiki/Module:Chart" title="Module:Chart">module:chart</a> for the slices in a pie chart: you can use a single parameter, namely "slices", enclose each slice in parenthesis, and define some mandatory and some optional fields. i am not sure this is necessarily better, but it might be: for instance, in your example, there are multiple parameters pertaining to fred:</dd></dl></dd></dl> <pre>|node1 = fred |fred-text = [[Fred Bloggs]] |fred-sister = jane |fred-child = joe |fred-jane-line = dashed </pre> <dl><dd><dl><dd>maybe we can have a syntax where all the information about a specific node is in a single argument:</dd> <dd>( name=Fred : val=<a href="/w/index.php?title=Fred_blogs&action=edit&redlink=1" class="new" title="Fred blogs (page does not exist)">Fred blogs</a> : siblings=Jane{solid}; Zoe{dashed} : descendants-Jane=Joe; Jill : descendants-Zoe = Heironimus; Nefertiti )</dd> <dd>this is not a full example, nor a correct one, it's just an illustration to the idea that each node can be fully defined in one place instead of many. i think this would be good, but others may disagree.</dd> <dd>BTW - it may be better not to list the "child" nodes as part of the parent info, and instead list the parents nodes as part of the child info, b/c, as far as i saw, a "child" has at most 2 parents with "Chart" or "Family tree", but a parent can have many children. so a node will look like so:</dd> <dd>(name=Node name : content=Node content : parents=parent1; parent2; line type : siblings=sibling1 (line type); sibling2.... : maybe some more stuff)</dd> <dd>this way, the actual tree may look like so:</dd></dl></dd></dl> <pre>{{autochart | some generic option = some value ... | nodes = ( Node 1 info as above ) ( Node 2 ) ( Node 3 ) ... }} </pre> <dl><dd><dl><dd>"generic" here means "option that affects the whole chart".</dd> <dd>my point is that if all the information about a specific node is in one place, it makes life easier to the editors, i believe. peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z" class="ext-discussiontools-init-timestamplink">02:22, 24 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-24T02:22:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":3,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z"></span></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Romaine-2014-03-24T18:16:00.000Z","type":"heading","level":0,"id":"h-Module_request-2014-03-24T18:16:00.000Z","replies":["c-Romaine-2014-03-24T18:16:00.000Z-Module_request"],"uneditableSection":true,"text":"Module request","linkableTitle":"Module request"}--><h2 id="Module_request" data-mw-thread-id="h-Module_request-2014-03-24T18:16:00.000Z"><span data-mw-comment-start="" id="h-Module_request-2014-03-24T18:16:00.000Z"></span>Module request<span data-mw-comment-end="h-Module_request-2014-03-24T18:16:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Romaine-2014-03-24T18:16:00.000Z","type":"heading","level":0,"id":"h-Module_request-2014-03-24T18:16:00.000Z","replies":["c-Romaine-2014-03-24T18:16:00.000Z-Module_request"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z","timestamp":"2014-03-25T01:45:00.000Z"}__--><!--__DTCOMMENTCOUNT__4__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Romaine-2014-03-24T18:16:00.000Z","type":"heading","level":0,"id":"h-Module_request-2014-03-24T18:16:00.000Z","replies":["c-Romaine-2014-03-24T18:16:00.000Z-Module_request"],"uneditableSection":true,"text":"Module request","linkableTitle":"Module request"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Romaine-2014-03-24T18:16:00.000Z-Module_request"></span>At nl-wiki we do not have much Lua users active, so I hope you can help me with a request. </p><p>We need a module in Lua that splits a certain string and returns the value of specific pieces of that string. The input is for example <code>type:forest_scale:25000_region:NL</code>. </p> <ul><li>If the template asks for type, then it returns 'forest' (and if none a '0' or empty), if it asks for scale, it returns '25000' (and if none a '0' or empty), and if it asks region it returns 'NL' (and if none a '0' or empty).</li> <li>The order in which the pieces of the string are can be different and should not matter, for example <code>type:forest_scale:25000_region:NL</code> should give the same results as <code>scale:25000_type:forest_region:NL</code>.</li> <li>It is possible that some string will not contain all of them, if for example type: is missing, a '0' or an empty answer should then be the result.</li> <li>It is possible users made a mistake and did add something unrecognisable to the string. If we ask for 'error' it then should give back the unknown part(s) or give '1' as output if there are problems/unrecognisable parts in the string.</li> <li>It is possible that the type: is city(...) with on the ... a number, for example <code>type:city(20000)_region:NL</code>. Then if the template asks for type, then it returns 'city' and somehow we should be able to extract that number separately. Like with a second parameter or with city/20000 so we can split it with a parserfunction.</li></ul> <p>Who can help me with this request? Thanks! <a href="/wiki/User:Romaine" title="User:Romaine">Romaine</a> (<a href="/wiki/User_talk:Romaine" title="User talk:Romaine">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Romaine-2014-03-24T18:16:00.000Z-Module_request" class="ext-discussiontools-init-timestamplink">18:16, 24 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Romaine-2014-03-24T18:16:00.000Z-Module_request"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-24T18:16:00.000Z","author":"Romaine","type":"comment","level":1,"id":"c-Romaine-2014-03-24T18:16:00.000Z-Module_request","replies":["c-Mr._Stradivarius-2014-03-25T00:18:00.000Z-Romaine-2014-03-24T18:16:00.000Z"]}}--></span><span data-mw-comment-end="c-Romaine-2014-03-24T18:16:00.000Z-Module_request"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-25T00:18:00.000Z-Romaine-2014-03-24T18:16:00.000Z"></span>I've had a go at creating this at <a href="/wiki/Module:User:Mr._Stradivarius/sandbox5" title="Module:User:Mr. Stradivarius/sandbox5">Module:User:Mr. Stradivarius/sandbox5</a>. I'll post usage instructions here in a little while. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-25T00:18:00.000Z-Romaine-2014-03-24T18:16:00.000Z" class="ext-discussiontools-init-timestamplink">00:18, 25 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-25T00:18:00.000Z-Romaine-2014-03-24T18:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-25T00:18:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-25T00:18:00.000Z-Romaine-2014-03-24T18:16:00.000Z","replies":["c-Romaine-2014-03-25T01:21:00.000Z-Mr._Stradivarius-2014-03-25T00:18:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-25T00:18:00.000Z-Romaine-2014-03-24T18:16:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Romaine-2014-03-25T01:21:00.000Z-Mr._Stradivarius-2014-03-25T00:18:00.000Z"></span>In the mean while Martijn Hoekstra was so kind to write a <a href="/w/index.php?title=Module:User:Martijn_Hoekstra/ForRomaine&action=edit&redlink=1" class="new" title="Module:User:Martijn Hoekstra/ForRomaine (page does not exist)">module</a> for me. Thanks for all the efforts. <a href="/wiki/User:Romaine" title="User:Romaine">Romaine</a> (<a href="/wiki/User_talk:Romaine" title="User talk:Romaine">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Romaine-2014-03-25T01:21:00.000Z-Mr._Stradivarius-2014-03-25T00:18:00.000Z" class="ext-discussiontools-init-timestamplink">01:21, 25 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Romaine-2014-03-25T01:21:00.000Z-Mr._Stradivarius-2014-03-25T00:18:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-25T01:21:00.000Z","author":"Romaine","type":"comment","level":3,"id":"c-Romaine-2014-03-25T01:21:00.000Z-Mr._Stradivarius-2014-03-25T00:18:00.000Z","replies":["c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z"]}}--></span><span data-mw-comment-end="c-Romaine-2014-03-25T01:21:00.000Z-Mr._Stradivarius-2014-03-25T00:18:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z"></span>So, it works like this: <ul><li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main||scale}}</code> → <strong class="error">Error: no input code specified</strong></li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:forest_region:NL}}</code> → <strong class="error">Error: no field specified</strong></li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:forest_region:NL|scale}}</code> → 25000</li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:forest_region:NL|field=scale}}</code> → 25000</li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:forest_region:NL|type}}</code> → forest</li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:forest_region:NL|region}}</code> → NL</li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|foobar|region}}</code> →</li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|foobar|error}}</code> → <strong class="error">Error: the scale, type and region fields are missing</strong></li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:forest_region:NL|error}}</code> →</li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:city(30000)_region:NL|type}}</code> → city</li> <li><code>{{#invoke:User:Mr. Stradivarius/sandbox5|main|scale:25000_type:city(30000)_region:NL|type|citydata=yes}}</code> → 30000</li></ul></dd> <dd>Feel free to use my version or Martijn's version, whichever suits you better. If there's anything about my version that you want me to change, just ask. And if you're happy with it, I can make it configurable to work in different languages too. Best — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z" class="ext-discussiontools-init-timestamplink">01:45, 25 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-25T01:45:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Vitalik-2014-03-23T17:53:00.000Z","type":"heading","level":0,"id":"h-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-2014-03-23T17:53:00.000Z","replies":["c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?"],"uneditableSection":true,"text":"Is there any way to save some value between two separate module calls?","linkableTitle":"Is there any way to save some value between two separate module calls?"}--><h2 id="Is_there_any_way_to_save_some_value_between_two_separate_module_calls?" data-mw-thread-id="h-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-2014-03-23T17:53:00.000Z"><span id="Is_there_any_way_to_save_some_value_between_two_separate_module_calls.3F"></span><span data-mw-comment-start="" id="h-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-2014-03-23T17:53:00.000Z"></span>Is there any way to save some value between two separate module calls?<span data-mw-comment-end="h-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-2014-03-23T17:53:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Vitalik-2014-03-23T17:53:00.000Z","type":"heading","level":0,"id":"h-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-2014-03-23T17:53:00.000Z","replies":["c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z","timestamp":"2014-03-27T20:59:00.000Z"}__--><!--__DTCOMMENTCOUNT__5__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Vitalik-2014-03-23T17:53:00.000Z","type":"heading","level":0,"id":"h-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-2014-03-23T17:53:00.000Z","replies":["c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?"],"uneditableSection":true,"text":"Is there any way to save some value between two separate module calls?","linkableTitle":"Is there any way to save some value between two separate module calls?"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?"></span>I have one function that add some values to the list. And other function should return that values. </p><p>Is there any way to do it? </p><p>As for now I can't find any mechanism to save some data between different module calls on the one page (using #invoke). </p><p>Can you help me please?.. <a href="/wiki/User:Vitalik" title="User:Vitalik">Vitalik</a> (<a href="/w/index.php?title=User_talk:Vitalik&action=edit&redlink=1" class="new" title="User talk:Vitalik (page does not exist)">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?" class="ext-discussiontools-init-timestamplink">17:53, 23 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-23T17:53:00.000Z","author":"Vitalik","type":"comment","level":1,"id":"c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?","replies":["c-Mr._Stradivarius-2014-03-24T00:17:00.000Z-Vitalik-2014-03-23T17:53:00.000Z"]}}--></span><span data-mw-comment-end="c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-24T00:17:00.000Z-Vitalik-2014-03-23T17:53:00.000Z"></span>No, there is no way to save a value between separate #invoke calls. This is by design, so that individual parts of a page can be parsed separately from other parts. This means that there is no possibility of this ability being added to Scribunto in the future, either. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-24T00:17:00.000Z-Vitalik-2014-03-23T17:53:00.000Z" class="ext-discussiontools-init-timestamplink">00:17, 24 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-24T00:17:00.000Z-Vitalik-2014-03-23T17:53:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-24T00:17:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-24T00:17:00.000Z-Vitalik-2014-03-23T17:53:00.000Z","replies":["c-Vitalik-2014-03-24T21:11:00.000Z-Mr._Stradivarius-2014-03-24T00:17:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-24T00:17:00.000Z-Vitalik-2014-03-23T17:53:00.000Z"></span></dd></dl> <dl><dd><dl><dd><span data-mw-comment-start="" id="c-Vitalik-2014-03-24T21:11:00.000Z-Mr._Stradivarius-2014-03-24T00:17:00.000Z"></span>Oh, it's a really pity.. But great thanks for the answer!<br/>I'm sory, can I ask one more question (it is about this subject but not about Lua).<br/>There is an extension: <a class="external text" href="https://www.mediawiki.org/wiki/Extension:Variables">Extension:Variables</a>, that allows to use variables through template lagnuage (so it will be possible to save some information between template calls). Is it possible to activate this extension and what should we do for this? (I'm from <a class="external text" href="https://ru.wiktionary.org/">russian wiktionary</a> and this possibility can be very useful for us). <a href="/wiki/User:Vitalik" title="User:Vitalik">Vitalik</a> (<a href="/w/index.php?title=User_talk:Vitalik&action=edit&redlink=1" class="new" title="User talk:Vitalik (page does not exist)">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Vitalik-2014-03-24T21:11:00.000Z-Mr._Stradivarius-2014-03-24T00:17:00.000Z" class="ext-discussiontools-init-timestamplink">21:11, 24 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Vitalik-2014-03-24T21:11:00.000Z-Mr._Stradivarius-2014-03-24T00:17:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-24T21:11:00.000Z","author":"Vitalik","type":"comment","level":3,"id":"c-Vitalik-2014-03-24T21:11:00.000Z-Mr._Stradivarius-2014-03-24T00:17:00.000Z","replies":["c-Mr._Stradivarius-2014-03-24T23:44:00.000Z-Vitalik-2014-03-24T21:11:00.000Z"]}}--></span><span data-mw-comment-end="c-Vitalik-2014-03-24T21:11:00.000Z-Mr._Stradivarius-2014-03-24T00:17:00.000Z"></span></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-03-24T23:44:00.000Z-Vitalik-2014-03-24T21:11:00.000Z"></span>I'm pretty sure the answer is no, for the same reason - the WMF technical people want to be able to parse individual parts of articles without those parts being dependent on parsing the other parts. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-03-24T23:44:00.000Z-Vitalik-2014-03-24T21:11:00.000Z" class="ext-discussiontools-init-timestamplink">23:44, 24 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-03-24T23:44:00.000Z-Vitalik-2014-03-24T21:11:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-24T23:44:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-24T23:44:00.000Z-Vitalik-2014-03-24T21:11:00.000Z","replies":["c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-03-24T23:44:00.000Z-Vitalik-2014-03-24T21:11:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z"></span>There is deliberately no way to do this. If such a way is found, it will be considered a bug, and will be "fixed" (removed). <a href="https://www.mediawiki.org/wiki/Extension:Variables" class="extiw" title="mw:Extension:Variables">mw:Extension:Variables</a> will not be deployed here either. See <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=7865" class="extiw" title="bugzilla:7865">bugzilla:7865</a> for the reasons why not. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z" class="ext-discussiontools-init-timestamplink">20:59, 27 March 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-03-27T20:59:00.000Z","author":"Jackmcbarn","type":"comment","level":5,"id":"c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z","type":"heading","level":0,"id":"h-table_with_automatic_summation-2014-04-01T05:30:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z-table_with_automatic_summation"],"uneditableSection":true,"text":"table with automatic summation","linkableTitle":"table with automatic summation"}--><h2 id="table_with_automatic_summation" data-mw-thread-id="h-table_with_automatic_summation-2014-04-01T05:30:00.000Z"><span data-mw-comment-start="" id="h-table_with_automatic_summation-2014-04-01T05:30:00.000Z"></span>table with automatic summation<span data-mw-comment-end="h-table_with_automatic_summation-2014-04-01T05:30:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z","type":"heading","level":0,"id":"h-table_with_automatic_summation-2014-04-01T05:30:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z-table_with_automatic_summation"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z-table_with_automatic_summation","timestamp":"2014-04-01T05:30:00.000Z"}__--><!--__DTCOMMENTCOUNT__1__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z","type":"heading","level":0,"id":"h-table_with_automatic_summation-2014-04-01T05:30:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z-table_with_automatic_summation"],"uneditableSection":true,"text":"table with automatic summation","linkableTitle":"table with automatic summation"}--></div></div></div> <p><span data-mw-comment-start="" id="c-קיפודנחש-2014-04-01T05:30:00.000Z-table_with_automatic_summation"></span>i was asked on hewiki, and as of now, could not think of something useful rnough, simple enough for editors, and doable. </p><p>here is the deal: the user wants to create a template to be used in articles about athletes, more specifically footballers (as in the game played with a ball kicked by feet, not the game played with a "football" thrown by hand). this user would like to be able to create "stats" tables, with special rows for "subtotals" and "totals". for instance, imagine one row of the table for each year in the footballer's carre, and columns for "goals", "assists", "saves", "red cards" etc. if the footballer played in several clubs, for each club the columns should be totalled (these are the "subtotal" rows), and then the last row is the total for the whole thing (either total the "subtotal" rows, or else total everything *but* the subtotal rows). the template should work reasonably well for players that switched club many times (let's say 10), but also for players who played in few or even just one club. </p><p>for some historical athlete, be it <a href="/wiki/Ferenc_Pusk%C3%A1s" title="Ferenc Puskás">Puskás</a> or <a href="/wiki/Babe_Ruth" title="Babe Ruth">The Babe</a>, i guess it doesn't make too much of a difference - use lotus 123 (or visicalc, or quattro or something) to calculate the totals and enter it as static data. however, for an active player, updating the stats after each season and re-calculating the subtotals and totals is both a drag, and a reliable source of bugs, errors and mistakes, so the automatic summing looks very attractive. </p><p>now, i would hate to create a module custom made just for this, because it makes sense that a "summing table" can be used in other contexts, maybe for other athletes, and maybe for other things also (who knows what - say, the amount of different kinds of wood chucked by some notable woodchuck over different decades or something). does such a template/tool exist? is it worthwhile to create it? can you suggest a syntax that makes sense and will be convenient enough to the editors? peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-04-01T05:30:00.000Z-table_with_automatic_summation" class="ext-discussiontools-init-timestamplink">05:30, 1 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-04-01T05:30:00.000Z-table_with_automatic_summation"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-01T05:30:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":1,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-04-01T05:30:00.000Z-table_with_automatic_summation","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-04-01T05:30:00.000Z-table_with_automatic_summation"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Aftab1995-2014-04-07T16:46:00.000Z","type":"heading","level":0,"id":"h-Weatherbox_module_&_template-2014-04-07T16:46:00.000Z","replies":["c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template"],"uneditableSection":true,"text":"Weatherbox module & template","linkableTitle":"Weatherbox module & template"}--><h2 id="Weatherbox_module_&_template" data-mw-thread-id="h-Weatherbox_module_&_template-2014-04-07T16:46:00.000Z"><span id="Weatherbox_module_.26_template"></span><span data-mw-comment-start="" id="h-Weatherbox_module_&_template-2014-04-07T16:46:00.000Z"></span>Weatherbox module & template<span data-mw-comment-end="h-Weatherbox_module_&_template-2014-04-07T16:46:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Aftab1995-2014-04-07T16:46:00.000Z","type":"heading","level":0,"id":"h-Weatherbox_module_&_template-2014-04-07T16:46:00.000Z","replies":["c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z","timestamp":"2014-04-08T16:44:00.000Z"}__--><!--__DTCOMMENTCOUNT__4__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Aftab1995-2014-04-07T16:46:00.000Z","type":"heading","level":0,"id":"h-Weatherbox_module_&_template-2014-04-07T16:46:00.000Z","replies":["c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template"],"uneditableSection":true,"text":"Weatherbox module & template","linkableTitle":"Weatherbox module & template"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template"></span>Is it possible to localized (number localization) Weatherbox <a href="/w/index.php?title=Module:WeatherBox&action=edit&redlink=1" class="new" title="Module:WeatherBox (page does not exist)">module</a> & <a href="/wiki/Template:Weatherbox" class="mw-redirect" title="Template:Weatherbox">template</a> for other wikipedia. (On the Bengali wikipedia, currently we use old weatherbox code. I try to use new code but it gives result in english.) If it is possible, please do it. I hope someone will help me to fix it, thank you. --<a href="/wiki/User:Aftab1995" class="mw-redirect" title="User:Aftab1995">Aftab1995</a> (<a href="/wiki/User_talk:Aftab1995" class="mw-redirect" title="User talk:Aftab1995">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template" class="ext-discussiontools-init-timestamplink">16:46, 7 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-07T16:46:00.000Z","author":"Aftab1995","type":"comment","level":1,"id":"c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template","replies":["c-Johnuniq-2014-04-07T22:40:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z","c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z"]}}--></span><span data-mw-comment-end="c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_&_template"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-04-07T22:40:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z"></span>I don't have time to take on a new project at the moment, but I did something for hiwiki a few months ago that may be of interest. They wanted a module to translate between Hindi and English digits. Frankly I never understood <i>why</i> they wanted some of the requested features, but I gather they wanted something they could drop in a template/infobox that would accept numbers in either format, and produce results in a specified format (by format, I just mean using Hindi or English digits, and with correct group separators). The weather template/module appears to need something much more complex, but bear in mind that some simple tweaks to the hiwiki module may be useful for other purposes. See <a href="https://hi.wikipedia.org/wiki/User:Johnuniq/number" class="extiw" title="hi:User:Johnuniq/number">hi:User:Johnuniq/number</a> which has relevant links. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-04-07T22:40:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z" class="ext-discussiontools-init-timestamplink">22:40, 7 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-04-07T22:40:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-07T22:40:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-04-07T22:40:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z","replies":["c-Mr._Stradivarius-2014-04-08T05:19:00.000Z-Johnuniq-2014-04-07T22:40:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-04-07T22:40:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-04-08T05:19:00.000Z-Johnuniq-2014-04-07T22:40:00.000Z"></span>I can hazard a guess as to the "why": they probably wanted to be able to use Hindi numerals in the #expr and #time parser functions. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-04-08T05:19:00.000Z-Johnuniq-2014-04-07T22:40:00.000Z" class="ext-discussiontools-init-timestamplink">05:19, 8 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-04-08T05:19:00.000Z-Johnuniq-2014-04-07T22:40:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-08T05:19:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-04-08T05:19:00.000Z-Johnuniq-2014-04-07T22:40:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-04-08T05:19:00.000Z-Johnuniq-2014-04-07T22:40:00.000Z"></span></dd></dl></dd> <dd><span data-mw-comment-start="" id="c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z"></span>I'm not a expert. so it is very difficult for me to understand :( . it would be great, if someone take this. :) Anyway, Thanks for answer. --<a href="/wiki/User:Aftab1995" class="mw-redirect" title="User:Aftab1995">Aftab1995</a> (<a href="/wiki/User_talk:Aftab1995" class="mw-redirect" title="User talk:Aftab1995">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z" class="ext-discussiontools-init-timestamplink">16:44, 8 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-08T16:44:00.000Z","author":"Aftab1995","type":"comment","level":2,"id":"c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Legoktm-2014-04-12T07:51:00.000Z","type":"heading","level":0,"id":"h-Automate_WP:GA_subpages'_article_counts-2014-04-12T07:51:00.000Z","replies":["c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Pawe\u0142_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts"],"uneditableSection":true,"text":"Automate WP:GA subpages' article counts","linkableTitle":"Automate WP:GA subpages' article counts"}--><h2 id="Automate_WP:GA_subpages'_article_counts" data-mw-thread-id="h-Automate_WP:GA_subpages'_article_counts-2014-04-12T07:51:00.000Z"><span id="Automate_WP:GA_subpages.27_article_counts"></span><span data-mw-comment-start="" id="h-Automate_WP:GA_subpages'_article_counts-2014-04-12T07:51:00.000Z"></span>Automate WP:GA subpages' article counts<span data-mw-comment-end="h-Automate_WP:GA_subpages'_article_counts-2014-04-12T07:51:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Legoktm-2014-04-12T07:51:00.000Z","type":"heading","level":0,"id":"h-Automate_WP:GA_subpages'_article_counts-2014-04-12T07:51:00.000Z","replies":["c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Pawe\u0142_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Pawe\u0142_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z","timestamp":"2014-04-20T12:42:00.000Z"}__--><!--__DTCOMMENTCOUNT__21__--><!--__DTAUTHORCOUNT__8__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Legoktm-2014-04-12T07:51:00.000Z","type":"heading","level":0,"id":"h-Automate_WP:GA_subpages'_article_counts-2014-04-12T07:51:00.000Z","replies":["c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Pawe\u0142_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts","c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts"],"uneditableSection":true,"text":"Automate WP:GA subpages' article counts","linkableTitle":"Automate WP:GA subpages' article counts"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts"></span>Hello! </p><p>So if you look at the various subpages of <a href="/wiki/Wikipedia:GA" class="mw-redirect" title="Wikipedia:GA">WP:GA</a>, like for example <a href="/wiki/Wikipedia:Good_articles/Natural_sciences" title="Wikipedia:Good articles/Natural sciences">Wikipedia:Good articles/Natural sciences</a>, you'll see that each section has "(XX articles)" after it. This is currently maintained by hand. I believe this should be possible to do with some regexes and Lua, you'd just need to count the number of wikilinks in each section. </p><p>So, does this sound like a good idea for a Lua module? And if so, would someone be willing to write the necessary code? If not, I'm just going to write a bot to do it; but I would prefer not to. ;) Thanks, <a href="/wiki/User:Legoktm" title="User:Legoktm">Legoktm</a> (<a href="/wiki/User_talk:Legoktm" title="User talk:Legoktm">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts" class="ext-discussiontools-init-timestamplink">07:51, 12 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-12T07:51:00.000Z","author":"Legoktm","type":"comment","level":1,"id":"c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":["c-Johnuniq-2014-04-12T09:37:00.000Z-Legoktm-2014-04-12T07:51:00.000Z"]}}--></span><span data-mw-comment-end="c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-04-12T09:37:00.000Z-Legoktm-2014-04-12T07:51:00.000Z"></span>That's not a job for a module. While certain ugly tricks are possible, essentially a module produces output from the input that it is given—it cannot (without hacks) read text from elsewhere on the page. What would be possible would be to devise some new syntax, and get people to use that syntax rather than doing what they are doing now. There would be one template per section, and the items would be passed as arguments to the template. The template would pass the arguments to a module which would generate the wikitext, including the trailing count. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-04-12T09:37:00.000Z-Legoktm-2014-04-12T07:51:00.000Z" class="ext-discussiontools-init-timestamplink">09:37, 12 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-04-12T09:37:00.000Z-Legoktm-2014-04-12T07:51:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-12T09:37:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-04-12T09:37:00.000Z-Legoktm-2014-04-12T07:51:00.000Z","replies":["c-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z-Johnuniq-2014-04-12T09:37:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-04-12T09:37:00.000Z-Legoktm-2014-04-12T07:51:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z-Johnuniq-2014-04-12T09:37:00.000Z"></span>Agreed. Doing text parsing like that with Lua is quite resource-intensive, so it makes sense to just have a bot to do the work once rather than to do it on every page parse. I actually tried to do this with <a href="/wiki/Module:Rfx" title="Module:Rfx">Module:Rfx</a>, but I found that even after I optimised the code as much as I could it still took about 0.7 seconds to process an average RfA. That's just a bit too much to add to processing time, I think. If we're doing it with Lua the fastest thing would be to move the whole list to module space, but I'm not sure other editors would go for that. — <i><b><a href="/wiki/User:Mr._Stradivarius_on_tour" title="User:Mr. Stradivarius on tour"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius on tour</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius_on_tour" class="mw-redirect" title="User talk:Mr. Stradivarius on tour">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z-Johnuniq-2014-04-12T09:37:00.000Z" class="ext-discussiontools-init-timestamplink">11:42, 12 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z-Johnuniq-2014-04-12T09:37:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-12T11:42:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":3,"id":"c-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z-Johnuniq-2014-04-12T09:37:00.000Z","replies":["c-Wnt-2014-04-16T21:09:00.000Z-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z-Johnuniq-2014-04-12T09:37:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-16T21:09:00.000Z-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z"></span>Is 0.7 seconds really worth worrying about? Especially when it's imposed only on the rare occasions when someone edits a page? Especially when it's a page edited as seldom as these? I mean, when you try to debug a loop you can be imposing 10 seconds every time you do a preview, and I didn't think you really had to sweat that. I still remember Wikid77 going on about pages that took more than a minute to preview overall, due to templates. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-16T21:09:00.000Z-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z" class="ext-discussiontools-init-timestamplink">21:09, 16 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-16T21:09:00.000Z-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-16T21:09:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-04-16T21:09:00.000Z-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-16T21:09:00.000Z-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z"></span></dd></dl></dd></dl></dd></dl> <p><span data-mw-comment-start="" id="c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts"></span>@<a href="/wiki/User:Legoktm" title="User:Legoktm">Legoktm</a>: The simple way to do what is wanted would be to change the way those pages are constructed. For example, <a href="/wiki/Wikipedia:Good_articles/Natural_sciences#Mineralogy" title="Wikipedia:Good articles/Natural sciences">WP:Good articles/Natural sciences#Mineralogy</a> currently has this wikitext: </p> <pre>=====Mineralogy===== [[Kauri gum]]&nbsp;– [[Nassak Diamond]]&nbsp;– [[Vanadinite]]&nbsp;– <small> (3&nbsp;articles)</small> </pre> <p>That could be changed to something like: </p> <pre>=====Mineralogy===== {{#invoke:join|ga |[[Kauri gum]] |[[Nassak Diamond]] |[[Vanadinite]] }} </pre> <p>And someone would write the <code>ga</code> function in <a href="/w/index.php?title=Module:Join&action=edit&redlink=1" class="new" title="Module:Join (page does not exist)">Module:Join</a> (I'll do it). It would output the required wikitext. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts" class="ext-discussiontools-init-timestamplink">02:03, 13 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-13T02:03:00.000Z","author":"Johnuniq","type":"comment","level":1,"id":"c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":["c-Mr._Stradivarius-2014-04-13T16:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","c-Isaacl-2014-04-13T17:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","c-Wnt-2014-04-15T23:18:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-04-13T16:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"></span>Also agreed - if we're going to do it in Lua then this is probably the most painless way. We should get a consensus from the editors involved with GAs before we refactor all of the lists, though. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-04-13T16:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z" class="ext-discussiontools-init-timestamplink">16:08, 13 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-04-13T16:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-13T16:08:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-04-13T16:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-04-13T16:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Isaacl-2014-04-13T17:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"></span>On an implementation note, I think from an abstraction point of view, it would be better to create a new module to implement this feature (perhaps one that can be generalized to different classes of articles). It could of course internally call the join module if necessary. <a href="/w/index.php?title=User:Isaacl&action=edit&redlink=1" class="new" title="User:Isaacl (page does not exist)">isaacl</a> (<a href="/wiki/User_talk:Isaacl" title="User talk:Isaacl">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Isaacl-2014-04-13T17:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z" class="ext-discussiontools-init-timestamplink">17:08, 13 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Isaacl-2014-04-13T17:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-13T17:08:00.000Z","author":"Isaacl","type":"comment","level":2,"id":"c-Isaacl-2014-04-13T17:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Isaacl-2014-04-13T17:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"></span></dd></dl> <ul><li><span data-mw-comment-start="" id="c-Wnt-2014-04-15T23:18:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"></span>I think that the entire header and footer can be transferred to a module, which provides a good opportunity for the text in between to be run through it en masse. But I don't really understand all the places this is used from - in particular, why the subpage needs to be checked. Since there are a bazillion links to it, it's hard for me to see where it's transcluded. (I've just fiddled about with this at <a href="/wiki/Module:Good_Articles" title="Module:Good Articles">Module:Good Articles</a> - that isn't really right yet; I still haven't really understood the data I'm messing with. But it should be proof of principle.) <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-15T23:18:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z" class="ext-discussiontools-init-timestamplink">23:18, 15 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-15T23:18:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-15T23:18:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-04-15T23:18:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-15T23:18:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z"></span></li> <li><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts"></span>What about algorithm that wraps whole page, where paragraphs and simple wikilinks to good articles are passed as separate positional arguments i.e.:</li></ul> <pre>{{#invoke:join|count| ...bla bla bla... =====Mineralogy===== |[[Kauri gum]] |[[Nassak Diamond]] |[[Vanadinite]] | ... bla bla bla ... }} </pre> <p>Each argument that match simple wikilink pattern (<tt>[[good article]]</tt>) is counted and printed in decorated form between next such item. Before every other item the counter is flushed to output and reset to zero, and the other item is simply copied to output. If the wikitext include some pseudo magic words they can be replaced in post processing (i.e. __TOTALGOODARTSINTHEPAGE__) with some statistics collected during generating the page. There is also a way to pass some named arguments to define i.e. <tt>separator</tt> to define the decorative separator between links, <tt>format</tt> with presentation of the counter, <tt>total</tt> with the pseudo magic word to replace in post processing etc. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts" class="ext-discussiontools-init-timestamplink">18:49, 16 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-16T18:49:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":1,"id":"c-Pawe\u0142_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":["c-Jackmcbarn-2014-04-16T18:58:00.000Z-Pawe\u0142_Ziemian-2014-04-16T18:49:00.000Z"]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Jackmcbarn-2014-04-16T18:58:00.000Z-Paweł_Ziemian-2014-04-16T18:49:00.000Z"></span>Wrapping an entire page in a #invoke isn't really a good idea. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-04-16T18:58:00.000Z-Paweł_Ziemian-2014-04-16T18:49:00.000Z" class="ext-discussiontools-init-timestamplink">18:58, 16 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-04-16T18:58:00.000Z-Paweł_Ziemian-2014-04-16T18:49:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-16T18:58:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-04-16T18:58:00.000Z-Pawe\u0142_Ziemian-2014-04-16T18:49:00.000Z","replies":["c-Wnt-2014-04-16T20:16:00.000Z-Jackmcbarn-2014-04-16T18:58:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-04-16T18:58:00.000Z-Paweł_Ziemian-2014-04-16T18:49:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-16T20:16:00.000Z-Jackmcbarn-2014-04-16T18:58:00.000Z"></span>This is the approach I started to take in <a href="/wiki/Module:Good_Articles" title="Module:Good Articles">Module:Good Articles</a>, but indeed it involves some decision making that may come to be too constrictive, or else not really add much convenience. Johnuniq's first approach above is the same thing on a smaller scale that might turn out to be more manageable. The trade-off to consider is that if we have to stud the article full of "pseudo magic words", maybe those should just be calls to separate modules rather than parameters in some all-encompassing module with delusions of grandeur. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-16T20:16:00.000Z-Jackmcbarn-2014-04-16T18:58:00.000Z" class="ext-discussiontools-init-timestamplink">20:16, 16 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-16T20:16:00.000Z-Jackmcbarn-2014-04-16T18:58:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-16T20:16:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-04-16T20:16:00.000Z-Jackmcbarn-2014-04-16T18:58:00.000Z","replies":["c-Pawe\u0142_Ziemian-2014-04-16T21:25:00.000Z-Wnt-2014-04-16T20:16:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-16T20:16:00.000Z-Jackmcbarn-2014-04-16T18:58:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-04-16T21:25:00.000Z-Wnt-2014-04-16T20:16:00.000Z"></span>I did some tests on plwiki with wrapping whole page and I must admit that this is not good idea. There is an error <i>Out of time error for LUA</i> (the limit is set to 10 seconds). However, if I wrapped a few top level sections everything went fine within 3 seconds. I did this with passing whole contents as argument #1, and splitting the parameter to separate lines with analyzing them directly in Lua script. So the wikicode in the page looks like this:</dd></dl></dd></dl></dd></dl> <pre>{{#invoke:test|counter| ...bla bla bla... =====Mineralogy===== [[Kauri gum]] • [[Nassak Diamond]] • [[Vanadinite]] ... bla bla bla ... }} </pre> <dl><dd><dl><dd><dl><dd>There was 13 main sections (= 13 invokes) and about 2200 lines of text. I used very simple test to determine number of links, looking for <tt>[[</tt> at the beginning of line except <tt>[[File:</tt>, which points to picture that is sporadically used to decorate the page. If such wrapping method would be used on every set of links separately, then the script code might be simplified even more to determine number of lines in the argument, assuming that there is one link per line. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-04-16T21:25:00.000Z-Wnt-2014-04-16T20:16:00.000Z" class="ext-discussiontools-init-timestamplink">21:25, 16 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-04-16T21:25:00.000Z-Wnt-2014-04-16T20:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-16T21:25:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":4,"id":"c-Pawe\u0142_Ziemian-2014-04-16T21:25:00.000Z-Wnt-2014-04-16T20:16:00.000Z","replies":["c-Pawe\u0142_Ziemian-2014-04-16T21:56:00.000Z-Pawe\u0142_Ziemian-2014-04-16T21:25:00.000Z"]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-04-16T21:25:00.000Z-Wnt-2014-04-16T20:16:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-04-16T21:56:00.000Z-Paweł_Ziemian-2014-04-16T21:25:00.000Z"></span>I implemented the algorithm for this wiki. You may try to wrap a section from list of good articles within <tt>{{#invoke:Sandbox/Paweł Ziemian/test|goodCounter|...}}</tt> and see preview of the article. The <i>Biology</i> section took more than 7 seconds in Lua, so analysing the wikicode is not good idea, but works for small set of data. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-04-16T21:56:00.000Z-Paweł_Ziemian-2014-04-16T21:25:00.000Z" class="ext-discussiontools-init-timestamplink">21:56, 16 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-04-16T21:56:00.000Z-Paweł_Ziemian-2014-04-16T21:25:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-16T21:56:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":5,"id":"c-Pawe\u0142_Ziemian-2014-04-16T21:56:00.000Z-Pawe\u0142_Ziemian-2014-04-16T21:25:00.000Z","replies":["c-Wnt-2014-04-17T03:05:00.000Z-Pawe\u0142_Ziemian-2014-04-16T21:56:00.000Z"]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-04-16T21:56:00.000Z-Paweł_Ziemian-2014-04-16T21:25:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-17T03:05:00.000Z-Paweł_Ziemian-2014-04-16T21:56:00.000Z"></span>Well, my example wrapping the page at <a href="/wiki/Module_talk:Good_Articles" title="Module talk:Good Articles">Module talk:Good Articles</a> takes about 1.6 seconds -- it would be faster, except for some reason I can't get gsub to accept false or nil as the third parameter to avoid doing any substitutions when all I want to do is count with it (which is what the documentation says it can do). <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-17T03:05:00.000Z-Paweł_Ziemian-2014-04-16T21:56:00.000Z" class="ext-discussiontools-init-timestamplink">03:05, 17 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-17T03:05:00.000Z-Paweł_Ziemian-2014-04-16T21:56:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-17T03:05:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-04-17T03:05:00.000Z-Pawe\u0142_Ziemian-2014-04-16T21:56:00.000Z","replies":["c-Johnuniq-2014-04-17T07:35:00.000Z-Wnt-2014-04-17T03:05:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-17T03:05:00.000Z-Paweł_Ziemian-2014-04-16T21:56:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-04-17T07:35:00.000Z-Wnt-2014-04-17T03:05:00.000Z"></span>Please just implement what I wrote above, which would be close to instantaneous, not to mention robust and comprehensible. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-04-17T07:35:00.000Z-Wnt-2014-04-17T03:05:00.000Z" class="ext-discussiontools-init-timestamplink">07:35, 17 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-04-17T07:35:00.000Z-Wnt-2014-04-17T03:05:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-17T07:35:00.000Z","author":"Johnuniq","type":"comment","level":7,"id":"c-Johnuniq-2014-04-17T07:35:00.000Z-Wnt-2014-04-17T03:05:00.000Z","replies":["c-Wnt-2014-04-17T14:17:00.000Z-Johnuniq-2014-04-17T07:35:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-04-17T07:35:00.000Z-Wnt-2014-04-17T03:05:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-17T14:17:00.000Z-Johnuniq-2014-04-17T07:35:00.000Z"></span>I just finished up my version of <a href="/wiki/Wikipedia:GA/NS" class="mw-redirect" title="Wikipedia:GA/NS">WP:GA/NS</a> at <a href="/wiki/Module_talk:Good_Articles" title="Module talk:Good Articles">Module talk:Good Articles</a>. Mine took 2.1 seconds compared to the original's 1.8 seconds on preview. There is now not a single div in the page source. Admittedly there are a lot of parameters to keep track of though. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-17T14:17:00.000Z-Johnuniq-2014-04-17T07:35:00.000Z" class="ext-discussiontools-init-timestamplink">14:17, 17 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-17T14:17:00.000Z-Johnuniq-2014-04-17T07:35:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-17T14:17:00.000Z","author":"Wnt","type":"comment","level":8,"id":"c-Wnt-2014-04-17T14:17:00.000Z-Johnuniq-2014-04-17T07:35:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-17T14:17:00.000Z-Johnuniq-2014-04-17T07:35:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <p><span data-mw-comment-start="" id="c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts"></span>I asked for opinions at <a href="/wiki/Wikipedia_talk:Good_articles#Proposal_to_change_syntax_of_WP:GA_subpages" class="mw-redirect" title="Wikipedia talk:Good articles">WT:Good articles#Proposal to change syntax of WP:GA subpages</a>. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts" class="ext-discussiontools-init-timestamplink">10:21, 17 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-17T10:21:00.000Z","author":"Johnuniq","type":"comment","level":1,"id":"c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":["c-Pawe\u0142_Ziemian-2014-04-17T19:31:00.000Z-Johnuniq-2014-04-17T10:21:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-04-17T19:31:00.000Z-Johnuniq-2014-04-17T10:21:00.000Z"></span>I think the best solution is using the essential <i>replace</i> function from <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> code in the way the <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> proposed initially:</dd></dl> <pre>=====Mineralogy===== {{#invoke:tools|countLinks| [[Kauri gum]]&nbsp;– [[Nassak Diamond]]&nbsp;– [[Vanadinite]]&nbsp;– }} </pre> <dl><dd>which can be visible in action as</dd></dl> <div style="background:#fed; padding-left:5em"> <p><b>Mineralogy</b><br/> <a href="/wiki/Kauri_gum" title="Kauri gum">Kauri gum</a> – <a href="/wiki/Nassak_Diamond" title="Nassak Diamond">Nassak Diamond</a> – <a href="/wiki/Vanadinite" title="Vanadinite">Vanadinite</a> –<small> (3 articles)</small> </p> </div> <dl><dd>I did some tests on plwiki using the same page as above with 132 invokes and the <i>Lua time usage</i> is 0.203/10.000 seconds. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-04-17T19:31:00.000Z-Johnuniq-2014-04-17T10:21:00.000Z" class="ext-discussiontools-init-timestamplink">19:31, 17 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-04-17T19:31:00.000Z-Johnuniq-2014-04-17T10:21:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-17T19:31:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":2,"id":"c-Pawe\u0142_Ziemian-2014-04-17T19:31:00.000Z-Johnuniq-2014-04-17T10:21:00.000Z","replies":["c-Wnt-2014-04-19T15:08:00.000Z-Pawe\u0142_Ziemian-2014-04-17T19:31:00.000Z"]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-04-17T19:31:00.000Z-Johnuniq-2014-04-17T10:21:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-19T15:08:00.000Z-Paweł_Ziemian-2014-04-17T19:31:00.000Z"></span>The Lua time usage from previewing <a href="/wiki/Module_talk:Good_Articles" title="Module talk:Good Articles">Module talk:Good Articles</a> just now was 0.179/10.000 seconds, but admittedly this isn't a direct comparison since I'm not sure exactly what you previewed. In any case it should be clear that the time is not really a factor here - at this point, the question is what syntax the people who actually edit these articles would prefer to upkeep. If they want to make the conversion to one of these formats we also can write a module to do that automatically too. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-19T15:08:00.000Z-Paweł_Ziemian-2014-04-17T19:31:00.000Z" class="ext-discussiontools-init-timestamplink">15:08, 19 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-19T15:08:00.000Z-Paweł_Ziemian-2014-04-17T19:31:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-19T15:08:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-04-19T15:08:00.000Z-Pawe\u0142_Ziemian-2014-04-17T19:31:00.000Z","replies":["c-Pawe\u0142_Ziemian-2014-04-19T19:27:00.000Z-Wnt-2014-04-19T15:08:00.000Z","c-Pawe\u0142_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-19T15:08:00.000Z-Paweł_Ziemian-2014-04-17T19:31:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-04-19T19:27:00.000Z-Wnt-2014-04-19T15:08:00.000Z"></span>There are always pro and cons. The clue is what are the weights. Your solution looks good for me, however it designed only for one very specific usage. The solution presented as first is simpler and more generic, and can be used anywhere where the counter seems to be interesting, but suffer from the fixed presentation format. Next argument is usability. If the module is wrapped in some template it can be easy usable by most people, which are familiar with wikikode or use visual editor. The last factor is maintainability. Whenever any change in presentation form is required it is always easier to make it in wikicode, which is more robust for many mistakes. Formating wikicode from Lua script is difficult, due to remember both the wikicode syntax wrapped in Lua syntax. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-04-19T19:27:00.000Z-Wnt-2014-04-19T15:08:00.000Z" class="ext-discussiontools-init-timestamplink">19:27, 19 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-04-19T19:27:00.000Z-Wnt-2014-04-19T15:08:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-19T19:27:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":4,"id":"c-Pawe\u0142_Ziemian-2014-04-19T19:27:00.000Z-Wnt-2014-04-19T15:08:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-04-19T19:27:00.000Z-Wnt-2014-04-19T15:08:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z"></span>Someone pointed me that generating whole sections in templates or <tt>#invoke</tt> causes that you have to always edit whole page. There is no [edit] link near to section title at any level. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z" class="ext-discussiontools-init-timestamplink">12:42, 20 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-20T12:42:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":4,"id":"c-Pawe\u0142_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Marchjuly-2014-04-22T07:34:00.000Z","type":"heading","level":0,"id":"h-Shogi_board-2014-04-22T07:34:00.000Z","replies":["c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board"],"uneditableSection":true,"text":"Shogi board","linkableTitle":"Shogi board"}--><h2 id="Shogi_board" data-mw-thread-id="h-Shogi_board-2014-04-22T07:34:00.000Z"><span data-mw-comment-start="" id="h-Shogi_board-2014-04-22T07:34:00.000Z"></span>Shogi board<span data-mw-comment-end="h-Shogi_board-2014-04-22T07:34:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Marchjuly-2014-04-22T07:34:00.000Z","type":"heading","level":0,"id":"h-Shogi_board-2014-04-22T07:34:00.000Z","replies":["c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z","timestamp":"2014-04-23T04:07:00.000Z"}__--><!--__DTCOMMENTCOUNT__2__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Marchjuly-2014-04-22T07:34:00.000Z","type":"heading","level":0,"id":"h-Shogi_board-2014-04-22T07:34:00.000Z","replies":["c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board"],"uneditableSection":true,"text":"Shogi board","linkableTitle":"Shogi board"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board"></span>Hi, </p><p>I am wondering if it would be possible to make something like <a href="/wiki/Module:Chessboard" title="Module:Chessboard">Module:Chessboard</a> that can be used to make <a href="/wiki/Shogi" title="Shogi">shogi</a> diagrams. There is a <a href="https://ja.wikipedia.org/wiki/Template:Shogi_diagram" class="extiw" title="ja:Template:Shogi diagram">shogi diagram template</a> being used to create such diagrams on Japanese Wikipedia, but I am unable to get it to work on English Wikipedia. A shogi board looks sort of like a chess board, but there are some important differences: </p> <ol><li>A shogi board is 81 'squares' (9 files by 9 ranks)</li> <li>Each 'square' is not really a perfect square; it is more rectangular with the height (or length) about 1.2 or 1.3 times the width.</li> <li>Each 'square' is the same color. In a typical shogi diagram, this is usually the color white (or the color of the paper), and the borders/lines are typically black. Actual shogi boards can come in a variety of colors, but they are usually in a natural wood (beige/tan) color. Very similar to <a href="/wiki/Go_(board_game)" class="mw-redirect" title="Go (board game)">go</a> boards in both style and color, just with less 'squares'.</li> <li>Files are typically labeled usually the arabic numerals "1" through "9". Although ranks are typically labeled using Japanese kanji numerals, some English-language publications use the lower case letters "a" through "i" instead. Files are labeled from right to left, and ranks are labeled from top to bottom. Each square is indicated by a number-letter combination so the uppermost-right square is "1a", the bottommost-left square is "9i" and the long diagonal from right to left, top to bottom would be "1a, 2b, 3c, 4d, 5e, 6f, 7g, 8h, 9i". Unlike chess diagrams, labels for files and ranks in shogi diagrams only typically appear at the top and right sides of the board respectively.</li> <li>On a tradition shogi board that are 4 dots at the intersections of certain 'squares' to indicate piece-promotion zones. These are are located at the intersection of the following squares: 3g-3f-4g-4f, 6g-6f-7g-7f, 3d-3c-4d-4c, and 6d-6c-7d-7c. See <a rel="nofollow" class="external text" href="http://www.sozaidas.com/sozai/010306life/010306life111-trans.png">here</a> for an example of what I am referring to.</li> <li>Shogi pieces are usually indicated in a single kanji character. I believe the files used for the pieces in shogi diagrams in Japanese Wikipedia articles are available in Wikicommons. I am only interested in a diagram for traditional shogi and not any shogi-variants so the following pieces would have to be displayed: p="pawn", l="lance", n="knight", s="silver", g="gold", b="bishop", r="rook", and k="king". Since some shogi pieces can promote, the following are also needed: d="promoted rook", h="promoted bishop", t="promoted pawn", ps="promoted silver", pn="promoted knight" and pl="promoted lance".</li> <li>Unlike chess, shogi pieces are all the same color so there is no "black" or "white". The player who moves first is called "sente" and the player who moves second is called "gote". Typically, sente's pieces are located at the bottom of the board (like the white pieces in chess) and gote's pieces are located at the top of the board (like the black pieces in chess). In , sente is indicated by the letter "s" and gote by the letter "g" so the sente's king would be "ks" and the gote's king would be "kg".</li> <li>Captured shogi pieces are called "pieces-in-hand" and can be used on subsequent moves. In show diagrams, pieces-in-hand are usually shown on the sides of the board: the right side for sente and the left side for gote; however, they can be shown at the top (for gote) and bottom (for sente) if it is easier to do.</li></ol> <p>Well, I hope that's enough information for anybody interested in doing something like this. Please feel free to leave a message on my talk page, if you have any questions or need any further info. Thanks in advance - <a href="/wiki/User:Marchjuly" title="User:Marchjuly">Marchjuly</a> (<a href="/wiki/User_talk:Marchjuly" title="User talk:Marchjuly">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board" class="ext-discussiontools-init-timestamplink">07:34, 22 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-22T07:34:00.000Z","author":"Marchjuly","type":"comment","level":1,"id":"c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board","replies":["c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z"]}}--></span><span data-mw-comment-end="c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z"></span>I figured out a way to get the <a href="https://ja.wikipedia.org/wiki/Template:Shogi_diagram" class="extiw" title="ja:Template:Shogi diagram">template</a> I mentioned above to work on English Wikipedia so I guess there's no need for a <a href="/w/index.php?title=Module:Shogiboard&action=edit&redlink=1" class="new" title="Module:Shogiboard (page does not exist)">Module:Shogiboard</a> to be created. However, if somebody wants to take a crack at making one and has any shogi related questions, then please let me know and I'll answer what I can. Thanks again. - <a href="/wiki/User:Marchjuly" title="User:Marchjuly">Marchjuly</a> (<a href="/wiki/User_talk:Marchjuly" title="User talk:Marchjuly">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z" class="ext-discussiontools-init-timestamplink">04:07, 23 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-23T04:07:00.000Z","author":"Marchjuly","type":"comment","level":2,"id":"c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-04-22T13:16:00.000Z","type":"heading","level":0,"id":"h-mw.html_library_nil_behaviour-2014-04-22T13:16:00.000Z","replies":["c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour"],"uneditableSection":true,"text":"mw.html library nil behaviour","linkableTitle":"mw.html library nil behaviour"}--><h2 id="mw.html_library_nil_behaviour" data-mw-thread-id="h-mw.html_library_nil_behaviour-2014-04-22T13:16:00.000Z"><span data-mw-comment-start="" id="h-mw.html_library_nil_behaviour-2014-04-22T13:16:00.000Z"></span>mw.html library nil behaviour<span data-mw-comment-end="h-mw.html_library_nil_behaviour-2014-04-22T13:16:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-04-22T13:16:00.000Z","type":"heading","level":0,"id":"h-mw.html_library_nil_behaviour-2014-04-22T13:16:00.000Z","replies":["c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour","timestamp":"2014-04-22T13:16:00.000Z"}__--><!--__DTCOMMENTCOUNT__1__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-04-22T13:16:00.000Z","type":"heading","level":0,"id":"h-mw.html_library_nil_behaviour-2014-04-22T13:16:00.000Z","replies":["c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour"],"uneditableSection":true,"text":"mw.html library nil behaviour","linkableTitle":"mw.html library nil behaviour"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour"></span>For those interested, there is a discussion open about a possible change in behaviour of the mw.html library at the <a href="/wiki/Wikipedia_talk:Lua/Archive_2#mw.html_library_nil_behaviour" title="Wikipedia talk:Lua/Archive 2">main project talk page</a>. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour" class="ext-discussiontools-init-timestamplink">13:16, 22 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-22T13:16:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour","replies":[]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-NED33-2014-04-09T11:21:00.000Z","type":"heading","level":0,"id":"h-For_next_loop-2014-04-09T11:21:00.000Z","replies":["c-NED33-2014-04-09T11:21:00.000Z-For_next_loop"],"uneditableSection":true,"text":"For next loop","linkableTitle":"For next loop"}--><h2 id="For_next_loop" data-mw-thread-id="h-For_next_loop-2014-04-09T11:21:00.000Z"><span data-mw-comment-start="" id="h-For_next_loop-2014-04-09T11:21:00.000Z"></span>For next loop<span data-mw-comment-end="h-For_next_loop-2014-04-09T11:21:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-NED33-2014-04-09T11:21:00.000Z","type":"heading","level":0,"id":"h-For_next_loop-2014-04-09T11:21:00.000Z","replies":["c-NED33-2014-04-09T11:21:00.000Z-For_next_loop"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z","timestamp":"2014-04-25T06:06:00.000Z"}__--><!--__DTCOMMENTCOUNT__8__--><!--__DTAUTHORCOUNT__4__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-NED33-2014-04-09T11:21:00.000Z","type":"heading","level":0,"id":"h-For_next_loop-2014-04-09T11:21:00.000Z","replies":["c-NED33-2014-04-09T11:21:00.000Z-For_next_loop"],"uneditableSection":true,"text":"For next loop","linkableTitle":"For next loop"}--></div></div></div> <p><span data-mw-comment-start="" id="c-NED33-2014-04-09T11:21:00.000Z-For_next_loop"></span>Hi, Maybe it already exists but could not fid it. But I'm looking for a for next loop possibility for something like this: </p> <dl><dd><dl><dd><dl><dd>{{Result|races=5}} that translate to:</dd> <dd>For x := 1 to races <dl><dd>||Race {{{x}}}</dd></dl></dd> <dd>Next x</dd></dl></dd></dl></dd></dl> <p>And produces: Race 1 Race 2 Race 3 Race 4 Race 5 </p><p>How do i request this? Thanks in advance.<a href="/wiki/User:NED33" title="User:NED33">NED33</a> (<a href="/wiki/User_talk:NED33" title="User talk:NED33">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-NED33-2014-04-09T11:21:00.000Z-For_next_loop" class="ext-discussiontools-init-timestamplink">11:21, 9 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-NED33-2014-04-09T11:21:00.000Z-For_next_loop"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-09T11:21:00.000Z","author":"NED33","type":"comment","level":1,"id":"c-NED33-2014-04-09T11:21:00.000Z-For_next_loop","replies":["c-Jackmcbarn-2014-04-09T12:07:00.000Z-NED33-2014-04-09T11:21:00.000Z","c-Wnt-2014-04-18T22:39:00.000Z-NED33-2014-04-09T11:21:00.000Z"]}}--></span><span data-mw-comment-end="c-NED33-2014-04-09T11:21:00.000Z-For_next_loop"></span> </p> <dl><dd><span class="nowrap"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-04-09T12:07:00.000Z-NED33-2014-04-09T11:21:00.000Z"></span>{{</span><a href="/wiki/Template:For_loop" title="Template:For loop">for loop</a><span class="nowrap">}}</span>? <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-04-09T12:07:00.000Z-NED33-2014-04-09T11:21:00.000Z" class="ext-discussiontools-init-timestamplink">12:07, 9 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-04-09T12:07:00.000Z-NED33-2014-04-09T11:21:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-09T12:07:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-04-09T12:07:00.000Z-NED33-2014-04-09T11:21:00.000Z","replies":["c-PrimeHunter-2014-04-09T13:35:00.000Z-Jackmcbarn-2014-04-09T12:07:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-04-09T12:07:00.000Z-NED33-2014-04-09T11:21:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-PrimeHunter-2014-04-09T13:35:00.000Z-Jackmcbarn-2014-04-09T12:07:00.000Z"></span>Not quite i think. This is the result I need for a variaty of no of races with and without a medalrace variant. like these examples.</dd></dl></dd></dl> <div style="overflow:auto"> <table class="wikitable"> <tbody><tr style="background-color:LightSteelBlue;text-align:center;"> <td rowspan="2"><b>Rank</b></td> <td rowspan="2"><b>Country</b></td> <td rowspan="2"><b><a href="/wiki/Helmsman" title="Helmsman">Helmsman</a></b></td> <td rowspan="2"><b>Crew</b> </td> <td colspan="2"><b>Race 1</b></td> <td colspan="2"><b>Race 2</b></td> <td colspan="2"><b>Race 3</b></td> <td colspan="2"><b>Race 4</b></td> <td colspan="2"><b>Race 5</b></td> <td colspan="2"><b>Race 6</b></td> <td colspan="2"><b>Race 7</b></td> <td colspan="2"><b>Race 8</b></td> <td colspan="2"><b>Race 9</b></td> <td colspan="2"><b>Race 10</b></td> <td rowspan="2"><b>Total</b></td> <td rowspan="2"><b>Total<br/>–<br/>discard</b> </td></tr> <tr style="background-color:LightSteelBlue;text-align:center;"> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small> </td></tr> </tbody></table></div> <table class="wikitable"> <tbody><tr style="background-color:LightSteelBlue;text-align:center;"> <td> </td></tr></tbody></table> <div style="overflow:auto"> <table class="wikitable"> <tbody><tr style="background-color:LightSteelBlue;text-align:center;"> <td rowspan="2"><b>Rank</b></td> <td rowspan="2"><b>Country</b></td> <td rowspan="2"><b><a href="/wiki/Helmsman" title="Helmsman">Helmsman</a></b></td> <td rowspan="2"><b>Crew</b> </td> <td colspan="2"><b>Race 1</b></td> <td colspan="2"><b>Race 2</b></td> <td colspan="2"><b>Race 3</b></td> <td colspan="2"><b>Race 4</b></td> <td colspan="2"><b>Race 5</b></td> <td colspan="2"><b>Race 6</b></td> <td colspan="2"><b>Race 7</b></td> <td colspan="2"><b>Race 8</b></td> <td colspan="2"><b>Race 9</b></td> <td colspan="2"><b>Race 10</b></td> <td colspan="2"><b>Race 11</b></td> <td colspan="2"><b>Race 12</b></td> <td colspan="2"><b>Race 13</b></td> <td colspan="2"><b>Race 14</b></td> <td colspan="2"><b>Race 15</b></td> <td colspan="2"><b>Medalrace</b></td> <td rowspan="2"><b>Total</b></td> <td rowspan="2"><b>Total<br/>–<br/>discard</b> </td></tr> <tr style="background-color:LightSteelBlue;text-align:center;"> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small> </td></tr> </tbody></table></div> <table class="wikitable"> <tbody><tr style="background-color:LightSteelBlue;text-align:center;"> <td> </td></tr></tbody></table> <div style="overflow:auto"> <table class="wikitable"> <tbody><tr style="background-color:LightSteelBlue;text-align:center;"> <td rowspan="2"><b>Rank</b></td> <td rowspan="2"><b>Country</b></td> <td rowspan="2"><b><a href="/wiki/Helmsman" title="Helmsman">Helmsman</a></b></td> <td rowspan="2"><b>Crew</b> </td> <td colspan="2"><b>Race 1</b></td> <td colspan="2"><b>Race 2</b></td> <td colspan="2"><b>Race 3</b></td> <td colspan="2"><b>Medalrace</b></td> <td rowspan="2"><b>Total</b></td> <td rowspan="2"><b>Total<br/>–<br/>discard</b> </td></tr> <tr style="background-color:LightSteelBlue;text-align:center;"> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small></td> <td><small>Pos.</small></td> <td><small>Pts.</small> </td></tr> </tbody></table></div> <table class="wikitable"> <tbody><tr style="background-color:LightSteelBlue;text-align:center;"> <td> </td></tr></tbody></table> <dl><dd><dl><dd>NED33 _/) 12:50, 9 April 2014 (UTC)</dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd>I wrote at <a href="/wiki/Wikipedia:Help_desk#Counters_in_a_template" title="Wikipedia:Help desk">Wikipedia:Help desk#Counters in a template</a> that the goal could be achieved with something like 16 repetitions of <code>{{#ifexpr:{{{races}}}>N|colspan=2 {{!}} '''Race N''' {{!!}}}}</code> where N runs from 1 to 16. Such repetition is common in templates and I still doubt it's worth a module if there isn't a general for loop which can be used. <a href="/wiki/User:PrimeHunter" title="User:PrimeHunter">PrimeHunter</a> (<a href="/wiki/User_talk:PrimeHunter" title="User talk:PrimeHunter">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-PrimeHunter-2014-04-09T13:35:00.000Z-Jackmcbarn-2014-04-09T12:07:00.000Z" class="ext-discussiontools-init-timestamplink">13:35, 9 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-PrimeHunter-2014-04-09T13:35:00.000Z-Jackmcbarn-2014-04-09T12:07:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-09T13:35:00.000Z","author":"PrimeHunter","type":"comment","level":3,"id":"c-PrimeHunter-2014-04-09T13:35:00.000Z-Jackmcbarn-2014-04-09T12:07:00.000Z","replies":["c-NED33-2014-04-09T14:18:00.000Z-PrimeHunter-2014-04-09T13:35:00.000Z"]}}--></span><span data-mw-comment-end="c-PrimeHunter-2014-04-09T13:35:00.000Z-Jackmcbarn-2014-04-09T12:07:00.000Z"></span></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-NED33-2014-04-09T14:18:00.000Z-PrimeHunter-2014-04-09T13:35:00.000Z"></span>The current situation is different but simular. The major problems that I have with it are: riged in case there are 17 races and that the code is hardly human readable/maintainable. But if there is no other solution I leave it like it is. However I am hoping on a more elegant solution than the current.<a href="/wiki/User:NED33" title="User:NED33">NED33 _/) </a><small><a href="/wiki/User_talk:NED33" title="User talk:NED33">talk</a></small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-NED33-2014-04-09T14:18:00.000Z-PrimeHunter-2014-04-09T13:35:00.000Z" class="ext-discussiontools-init-timestamplink">14:18, 9 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-NED33-2014-04-09T14:18:00.000Z-PrimeHunter-2014-04-09T13:35:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-09T14:18:00.000Z","author":"NED33","type":"comment","level":5,"id":"c-NED33-2014-04-09T14:18:00.000Z-PrimeHunter-2014-04-09T13:35:00.000Z","replies":["c-NED33-2014-04-11T18:27:00.000Z-NED33-2014-04-09T14:18:00.000Z"],"displayName":"NED33 _\/)"}}--></span><span data-mw-comment-end="c-NED33-2014-04-09T14:18:00.000Z-PrimeHunter-2014-04-09T13:35:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-NED33-2014-04-11T18:27:00.000Z-NED33-2014-04-09T14:18:00.000Z"></span>It's quit silent on this one:-) Is there anyone coming for the rescue or do I leave it as it is.<a href="/wiki/User:NED33" title="User:NED33">NED33 _/) </a><small><a href="/wiki/User_talk:NED33" title="User talk:NED33">talk</a></small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-NED33-2014-04-11T18:27:00.000Z-NED33-2014-04-09T14:18:00.000Z" class="ext-discussiontools-init-timestamplink">18:27, 11 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-NED33-2014-04-11T18:27:00.000Z-NED33-2014-04-09T14:18:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-11T18:27:00.000Z","author":"NED33","type":"comment","level":6,"id":"c-NED33-2014-04-11T18:27:00.000Z-NED33-2014-04-09T14:18:00.000Z","replies":[],"displayName":"NED33 _\/)"}}--></span><span data-mw-comment-end="c-NED33-2014-04-11T18:27:00.000Z-NED33-2014-04-09T14:18:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-18T22:39:00.000Z-NED33-2014-04-09T11:21:00.000Z"></span>This is sort of frustratingly trivial, yet invites a really involved response. We certainly <i>can</i> hack together a simple for loop to output columns like this - it would make a good first Scribunto module if you want to try yourself. On the other hand, it just about begs us to write up a "Django" module that implements some substantial subset of the features in <a href="/wiki/Django_(web_framework)" title="Django (web framework)">Django (web framework)</a>/<a href="/wiki/Jinja" class="mw-disambig" title="Jinja">Jinja</a> style templates, so that editors could wrap part of their text in an invoke and be free to do increments, for and while loops, substitute parameters, etc. Possibly a middle approach, with fewer features, is most viable, but then we have to make decisions about the syntax. It's just kind of tickling away, asking for a good general approach. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-18T22:39:00.000Z-NED33-2014-04-09T11:21:00.000Z" class="ext-discussiontools-init-timestamplink">22:39, 18 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-18T22:39:00.000Z-NED33-2014-04-09T11:21:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-18T22:39:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-04-18T22:39:00.000Z-NED33-2014-04-09T11:21:00.000Z","replies":["c-NED33-2014-04-20T08:58:00.000Z-Wnt-2014-04-18T22:39:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-18T22:39:00.000Z-NED33-2014-04-09T11:21:00.000Z"></span></dd></dl> <dl><dd><dl><dd><span data-mw-comment-start="" id="c-NED33-2014-04-20T08:58:00.000Z-Wnt-2014-04-18T22:39:00.000Z"></span>Would this be a starting point for the syntax? <dl><dd><i>{{ForNext|from = expr1|to = expr2|increment = expr3|statments = statm}}</i></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd>So that the coding of above example could look like something like this: <dl><dd><i>{{ForNext|from = 1|to = races|increment = 1|statments = '</i> <dl><dd><i>{{#ifeq|{{{counter}}}|{{{races}}}</i> <dl><dd><i>|Medalrace</i></dd> <dd><i>|Race {{{counter}}}'</i></dd></dl></dd> <dd><i>}}</i></dd></dl></dd> <dd><i>}}</i></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd>I'm available to do tests or help but I have no experience with Scribunto not Django what so ever. Regards <small><a href="/wiki/User:NED33" title="User:NED33">_/)_/)_/) ˷˷˷˷˷˷˷˷ _/) NED33</a><sup><a href="/wiki/User_talk:NED33" title="User talk:NED33">talk</a></sup></small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-NED33-2014-04-20T08:58:00.000Z-Wnt-2014-04-18T22:39:00.000Z" class="ext-discussiontools-init-timestamplink">08:58, 20 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-NED33-2014-04-20T08:58:00.000Z-Wnt-2014-04-18T22:39:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-20T08:58:00.000Z","author":"NED33","type":"comment","level":3,"id":"c-NED33-2014-04-20T08:58:00.000Z-Wnt-2014-04-18T22:39:00.000Z","replies":["c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z"],"displayName":"_\/)_\/)_\/) \u02f7\u02f7\u02f7\u02f7\u02f7\u02f7\u02f7\u02f7 _\/) NED33"}}--></span><span data-mw-comment-end="c-NED33-2014-04-20T08:58:00.000Z-Wnt-2014-04-18T22:39:00.000Z"></span></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z"></span>Well, to begin with, Django templates use a {% whatever %} syntax which fortunately is ignored by the Wikitext processing. The article gives a few examples. But covering a large subset of it would be quite a lot of work, and I'm reluctant to dive into it right now - I have too many old projects I've left hanging already that I ought to finish... <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z" class="ext-discussiontools-init-timestamplink">06:06, 25 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-25T06:06:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-DD4235-2014-04-21T04:19:00.000Z","type":"heading","level":0,"id":"h-Help_debugging_script-2014-04-21T04:19:00.000Z","replies":["c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script"],"uneditableSection":true,"text":"Help debugging script","linkableTitle":"Help debugging script"}--><h2 id="Help_debugging_script" data-mw-thread-id="h-Help_debugging_script-2014-04-21T04:19:00.000Z"><span data-mw-comment-start="" id="h-Help_debugging_script-2014-04-21T04:19:00.000Z"></span>Help debugging script<span data-mw-comment-end="h-Help_debugging_script-2014-04-21T04:19:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-DD4235-2014-04-21T04:19:00.000Z","type":"heading","level":0,"id":"h-Help_debugging_script-2014-04-21T04:19:00.000Z","replies":["c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z","timestamp":"2014-04-25T01:31:00.000Z"}__--><!--__DTCOMMENTCOUNT__5__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-DD4235-2014-04-21T04:19:00.000Z","type":"heading","level":0,"id":"h-Help_debugging_script-2014-04-21T04:19:00.000Z","replies":["c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script"],"uneditableSection":true,"text":"Help debugging script","linkableTitle":"Help debugging script"}--></div></div></div> <p><span data-mw-comment-start="" id="c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script"></span>I'm trying to write a lua script that will generate an "Awards and decorations" table for military officers (something like <a href="/wiki/Alexander_Patch#Awards_and_decorations" title="Alexander Patch">this</a>. I wrote a draft script (still needs tweaking) at <a href="/wiki/Module:Sandbox/DD4235/Military_Decorations" title="Module:Sandbox/DD4235/Military Decorations">Module:Sandbox/DD4235/Military Decorations</a>, but weird stuff happens when I try to #invoke it. <a href="/wiki/User:DD4235/Military_Decorations" title="User:DD4235/Military Decorations">User:DD4235/Military Decorations</a> shows what's happening: first is the wikitext generated; seems fine. Then is what the wikitext renders as; something is wrong with the templates. Finally is what happens if the wikitext is copy-pasted back into a page; it works perfectly fine. Can anyone show me what I'm doing wrong? Thanks. <a href="/wiki/User:DD4235" title="User:DD4235">DD4235</a> (<a href="/wiki/User_talk:DD4235" title="User talk:DD4235">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script" class="ext-discussiontools-init-timestamplink">04:19, 21 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-21T04:19:00.000Z","author":"DD4235","type":"comment","level":1,"id":"c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script","replies":["c-Mr._Stradivarius-2014-04-21T06:55:00.000Z-DD4235-2014-04-21T04:19:00.000Z"]}}--></span><span data-mw-comment-end="c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-04-21T06:55:00.000Z-DD4235-2014-04-21T04:19:00.000Z"></span>This is because wikitext passed from Lua is not expanded. So if you return the text <code>{{done}}</code> from a Lua module, it will display as {{done}}, not as <span class="nowrap"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600"/></span></span><b> Done</b></span>. This is for performance reasons - the major reason for enabling Lua on Wikimedia wikis is to avoid the need to expand a lot of templates, which have a heavy performance penalty. To work around this, you can use <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:expandTemplate" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">frame:expandTemplate</a> or <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:preprocess" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">frame:preprocess</a> to expand the wikitext while in Lua. However, a better solution performance-wise would be to convert <a href="/wiki/Template:Ribbon_devices" title="Template:Ribbon devices">Template:Ribbon devices</a> to Lua and use the <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#require" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">require</a> function to call that Lua module from your sandbox module. Hope this helps. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-04-21T06:55:00.000Z-DD4235-2014-04-21T04:19:00.000Z" class="ext-discussiontools-init-timestamplink">06:55, 21 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-04-21T06:55:00.000Z-DD4235-2014-04-21T04:19:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-21T06:55:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-04-21T06:55:00.000Z-DD4235-2014-04-21T04:19:00.000Z","replies":["c-Mr._Stradivarius-2014-04-21T07:01:00.000Z-Mr._Stradivarius-2014-04-21T06:55:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-04-21T06:55:00.000Z-DD4235-2014-04-21T04:19:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-04-21T07:01:00.000Z-Mr._Stradivarius-2014-04-21T06:55:00.000Z"></span>Having said that, <a href="/wiki/Wikipedia:SUBST" class="mw-redirect" title="Wikipedia:SUBST">substituting</a> the module should work without using frame:expandTemplate, as substitution happens at an earlier stage of processing. Try using <code>{{subst:#invoke:Sandbox/DD4235/Military Decorations|makeTemplate|...}}</code> to see what I mean. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-04-21T07:01:00.000Z-Mr._Stradivarius-2014-04-21T06:55:00.000Z" class="ext-discussiontools-init-timestamplink">07:01, 21 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-04-21T07:01:00.000Z-Mr._Stradivarius-2014-04-21T06:55:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-21T07:01:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-04-21T07:01:00.000Z-Mr._Stradivarius-2014-04-21T06:55:00.000Z","replies":["c-DD4235-2014-04-23T02:38:00.000Z-Mr._Stradivarius-2014-04-21T07:01:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-04-21T07:01:00.000Z-Mr._Stradivarius-2014-04-21T06:55:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-DD4235-2014-04-23T02:38:00.000Z-Mr._Stradivarius-2014-04-21T07:01:00.000Z"></span>Thanks. I'll try both of those solutions. I didn't realize that modules could be substituted.<a href="/wiki/User:DD4235" title="User:DD4235">DD4235</a> (<a href="/wiki/User_talk:DD4235" title="User talk:DD4235">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DD4235-2014-04-23T02:38:00.000Z-Mr._Stradivarius-2014-04-21T07:01:00.000Z" class="ext-discussiontools-init-timestamplink">02:38, 23 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DD4235-2014-04-23T02:38:00.000Z-Mr._Stradivarius-2014-04-21T07:01:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-23T02:38:00.000Z","author":"DD4235","type":"comment","level":4,"id":"c-DD4235-2014-04-23T02:38:00.000Z-Mr._Stradivarius-2014-04-21T07:01:00.000Z","replies":["c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z"]}}--></span><span data-mw-comment-end="c-DD4235-2014-04-23T02:38:00.000Z-Mr._Stradivarius-2014-04-21T07:01:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z"></span>Frame:preprocess() which is generally deprecated as a slow solution, but has the advantage that it works on pretty much <i>any</i> wikitext without having to think about the specific syntax. You can refine processing of the individual items later on as you see fit. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z" class="ext-discussiontools-init-timestamplink">01:31, 25 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-25T01:31:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Scarabocchio-2014-04-26T09:06:00.000Z","type":"heading","level":0,"id":"h-Working_across_multiple_languages-2014-04-26T09:06:00.000Z","replies":["c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages","c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages"],"uneditableSection":true,"text":"Working across multiple languages","linkableTitle":"Working across multiple languages"}--><h2 id="Working_across_multiple_languages" data-mw-thread-id="h-Working_across_multiple_languages-2014-04-26T09:06:00.000Z"><span data-mw-comment-start="" id="h-Working_across_multiple_languages-2014-04-26T09:06:00.000Z"></span>Working across multiple languages<span data-mw-comment-end="h-Working_across_multiple_languages-2014-04-26T09:06:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Scarabocchio-2014-04-26T09:06:00.000Z","type":"heading","level":0,"id":"h-Working_across_multiple_languages-2014-04-26T09:06:00.000Z","replies":["c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages","c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z","timestamp":"2014-04-27T10:47:00.000Z"}__--><!--__DTCOMMENTCOUNT__7__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Scarabocchio-2014-04-26T09:06:00.000Z","type":"heading","level":0,"id":"h-Working_across_multiple_languages-2014-04-26T09:06:00.000Z","replies":["c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages","c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages"],"uneditableSection":true,"text":"Working across multiple languages","linkableTitle":"Working across multiple languages"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages"></span>I am working on a template that I'd like to be able to move into other language wikipedias with the minimum of recoding. A fragment of the English template looks like this: </p> <pre>{{{2|{{Title without disambig|{{PAGENAME}}}}}}} </pre> <p>In French this becomes: </p> <pre>{{{2|{{Titre sans précision|{{PAGENAME}}}}}}} </pre> <p>What I would really like to do is invoke the relevent code of <span class="nowrap">{{</span><a href="/wiki/Template:Title_without_disambig" class="mw-redirect" title="Template:Title without disambig">Title without disambig</a><span class="nowrap">}}</span> directly in-line, ie without having to name it. Partly this is because that template does not even exist in some languages, eg German (Maltese etc), but also because it is implemented in different ways. </p> <pre>it:Template:Pipetrick {{safesubst:#if:{{{2|}}}|{{{2}}}|{{safesubst:Str prima|{{safesubst:#if:{{{1|}}}|{{{1}}}|{{safesubst:PAGENAME}}}}| (}}}} </pre> <pre>fr:Modèle:Titre sans précision {{#Invoke:String|simpletitle|{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}}} </pre> <pre>es:Plantilla:Título sin coletilla {{#Invoke:String|replace|{{{1|}}}|%s%(.*%)||plain=false}} </pre> <p>Lua certainly looks like a promising direction. So, to cut out the 'external' template invocation for consistency and for transportability reasons, what should my first code fragment look like if I use Lua? and will Lua work on every single language Wikipedia? Thanks! <a href="/wiki/User:Scarabocchio" title="User:Scarabocchio">Scarabocchio</a> (<a href="/wiki/User_talk:Scarabocchio" title="User talk:Scarabocchio">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages" class="ext-discussiontools-init-timestamplink">09:06, 26 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-26T09:06:00.000Z","author":"Scarabocchio","type":"comment","level":1,"id":"c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages","replies":["c-Scarabocchio-2014-04-26T09:13:00.000Z-Scarabocchio-2014-04-26T09:06:00.000Z"]}}--></span><span data-mw-comment-end="c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Scarabocchio-2014-04-26T09:13:00.000Z-Scarabocchio-2014-04-26T09:06:00.000Z"></span>Sometimes you re-read a posted question and the answer just jumps out at you <ul><li>{{#Invoke:String|replace|{{{2|{{FULLPAGENAME}}}}}|%s%(.*%)||plain=false}}</li></ul></dd> <dd>Will this work on all language Wikipedias? <a href="/wiki/User:Scarabocchio" title="User:Scarabocchio">Scarabocchio</a> (<a href="/wiki/User_talk:Scarabocchio" title="User talk:Scarabocchio">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Scarabocchio-2014-04-26T09:13:00.000Z-Scarabocchio-2014-04-26T09:06:00.000Z" class="ext-discussiontools-init-timestamplink">09:13, 26 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Scarabocchio-2014-04-26T09:13:00.000Z-Scarabocchio-2014-04-26T09:06:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-26T09:13:00.000Z","author":"Scarabocchio","type":"comment","level":2,"id":"c-Scarabocchio-2014-04-26T09:13:00.000Z-Scarabocchio-2014-04-26T09:06:00.000Z","replies":["c-Mr._Stradivarius-2014-04-26T09:21:00.000Z-Scarabocchio-2014-04-26T09:13:00.000Z"]}}--></span><span data-mw-comment-end="c-Scarabocchio-2014-04-26T09:13:00.000Z-Scarabocchio-2014-04-26T09:06:00.000Z"></span></dd></dl> <dl><dd><dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-04-26T09:21:00.000Z-Scarabocchio-2014-04-26T09:13:00.000Z"></span>I would put all of your code in a Lua module to start with. Then I would implement <span class="nowrap">{{</span><a href="/wiki/Template:Title_without_disambig" class="mw-redirect" title="Template:Title without disambig">Title without disambig</a><span class="nowrap">}}</span> as a function in the Lua module, so that it is guaranteed to be the same in each wiki. Then you can just call that function instead of trying to find the proper template name, as the template may or may not exist, and if it exists it may or may not do what you want. What your first code fragment should look like depends on what you want your code to do. So we would need to know more about the specifics of your situation before we can give you a good answer. And yes, Lua will work on every language Wikipedia - and even Wikimedia wikis that aren't Wikipedias. :) — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-04-26T09:21:00.000Z-Scarabocchio-2014-04-26T09:13:00.000Z" class="ext-discussiontools-init-timestamplink">09:21, 26 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-04-26T09:21:00.000Z-Scarabocchio-2014-04-26T09:13:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-26T09:21:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-04-26T09:21:00.000Z-Scarabocchio-2014-04-26T09:13:00.000Z","replies":["c-Mr._Stradivarius-2014-04-26T09:29:00.000Z-Mr._Stradivarius-2014-04-26T09:21:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-04-26T09:21:00.000Z-Scarabocchio-2014-04-26T09:13:00.000Z"></span></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-04-26T09:29:00.000Z-Mr._Stradivarius-2014-04-26T09:21:00.000Z"></span>Also, the code in your second post will work if every wiki uses the same version of <a href="/wiki/Module:String" title="Module:String">Module:String</a>. They <i>probably</i> do, but it's not guaranteed. And a better Lua pattern to use would be {{#invoke:string|replace|{{{2|{{FULLPAGENAME}}}}}|%s*%(.-%)$||plain=false}}. That is anchored to the end of the title, whereas yours might match something in the middle. And yours would match more than one set of brackets, if there are more than one for some reason. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-04-26T09:29:00.000Z-Mr._Stradivarius-2014-04-26T09:21:00.000Z" class="ext-discussiontools-init-timestamplink">09:29, 26 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-04-26T09:29:00.000Z-Mr._Stradivarius-2014-04-26T09:21:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-26T09:29:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-04-26T09:29:00.000Z-Mr._Stradivarius-2014-04-26T09:21:00.000Z","replies":["c-Scarabocchio-2014-04-26T10:04:00.000Z-Mr._Stradivarius-2014-04-26T09:29:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-04-26T09:29:00.000Z-Mr._Stradivarius-2014-04-26T09:21:00.000Z"></span></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-Scarabocchio-2014-04-26T10:04:00.000Z-Mr._Stradivarius-2014-04-26T09:29:00.000Z"></span>Many thanks! <a href="/wiki/User:Scarabocchio" title="User:Scarabocchio">Scarabocchio</a> (<a href="/wiki/User_talk:Scarabocchio" title="User talk:Scarabocchio">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Scarabocchio-2014-04-26T10:04:00.000Z-Mr._Stradivarius-2014-04-26T09:29:00.000Z" class="ext-discussiontools-init-timestamplink">10:04, 26 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Scarabocchio-2014-04-26T10:04:00.000Z-Mr._Stradivarius-2014-04-26T09:29:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-26T10:04:00.000Z","author":"Scarabocchio","type":"comment","level":5,"id":"c-Scarabocchio-2014-04-26T10:04:00.000Z-Mr._Stradivarius-2014-04-26T09:29:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Scarabocchio-2014-04-26T10:04:00.000Z-Mr._Stradivarius-2014-04-26T09:29:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <div class="outdent-template" style="position:relative;left:1px;"><span style="display:block;width:16em;height:0.5em;border-bottom:1px solid #a2a9b1;border-right:1px solid #a2a9b1;"></span><span style="display:block;width:16em;height:0.5em;border-left:1px solid #a2a9b1;"></span></div> <p><span data-mw-comment-start="" id="c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages"></span>FYI. Your {{#invoke:string|replace|{{{2|{{FULLPAGENAME}}}}}|%s*%(.-%)$||plain=false}} doesn't work in French WP (though it <b>does</b> work in enWP). The variant that I gave in my second message (lifted from <span class="nowrap">{{</span><a href="/wiki/Template:Title_without_disambig" class="mw-redirect" title="Template:Title without disambig">Title without disambig</a><span class="nowrap">}}</span>) happens to work in both, but presumably this is also fragile with respect to further languages. (See <a class="external free" href="https://fr.wikipedia.org/wiki/Utilisateur:Scarabocchio/Tester">https://fr.wikipedia.org/wiki/Utilisateur:Scarabocchio/Tester</a> if you want to check the above statement). I'll use 'my' variant for the time being, and in any case will check all parameter combinations in each language I add the template to. <a href="/wiki/User:Scarabocchio" title="User:Scarabocchio">Scarabocchio</a> (<a href="/wiki/User_talk:Scarabocchio" title="User talk:Scarabocchio">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages" class="ext-discussiontools-init-timestamplink">11:51, 26 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-26T11:51:00.000Z","author":"Scarabocchio","type":"comment","level":1,"id":"c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages","replies":["c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z"]}}--></span><span data-mw-comment-end="c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z"></span>Ignore that! I hadn't stripped the trailing spaces off the positional parameter, so the anchored regexp comparison failed, while the unanchored one "worked". Apologies. <a href="/wiki/User:Scarabocchio" title="User:Scarabocchio">Scarabocchio</a> (<a href="/wiki/User_talk:Scarabocchio" title="User talk:Scarabocchio">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z" class="ext-discussiontools-init-timestamplink">10:47, 27 April 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-04-27T10:47:00.000Z","author":"Scarabocchio","type":"comment","level":2,"id":"c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Bigbossfarin-2014-07-03T19:54:00.000Z","type":"heading","level":0,"id":"h-Module:it-conj-2014-07-03T19:54:00.000Z","replies":["c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj"],"uneditableSection":true,"text":"Module:it-conj","linkableTitle":"Module:it-conj"}--><h2 id="Module:it-conj" data-mw-thread-id="h-Module:it-conj-2014-07-03T19:54:00.000Z"><span data-mw-comment-start="" id="h-Module:it-conj-2014-07-03T19:54:00.000Z"></span>Module:it-conj<span data-mw-comment-end="h-Module:it-conj-2014-07-03T19:54:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Bigbossfarin-2014-07-03T19:54:00.000Z","type":"heading","level":0,"id":"h-Module:it-conj-2014-07-03T19:54:00.000Z","replies":["c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z","timestamp":"2014-07-05T12:38:00.000Z"}__--><!--__DTCOMMENTCOUNT__6__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Bigbossfarin-2014-07-03T19:54:00.000Z","type":"heading","level":0,"id":"h-Module:it-conj-2014-07-03T19:54:00.000Z","replies":["c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj"],"uneditableSection":true,"text":"Module:it-conj","linkableTitle":"Module:it-conj"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj"></span>Could someone make that <a href="https://en.wiktionary.org/wiki/Module:it-conj" class="extiw" title="wikt:Module:it-conj">Module:it-conj</a> in Wiktionary gives every page which uses any third parameter (e.g. <a href="https://en.wiktionary.org/wiki/leggere" class="extiw" title="wikt:leggere">leggere</a>) the Category <a href="https://en.wiktionary.org/wiki/Category:Italian_irregular_verbs" class="extiw" title="wikt:Category:Italian irregular verbs">Italian irregular verbs</a>? Compare <a href="https://en.wiktionary.org/wiki/Thread:User_talk:CodeCat/Italian_irregular_verbs" class="extiw" title="wikt:Thread:User talk:CodeCat/Italian irregular verbs">this discussion</a>. Thank you --<a href="/wiki/User:Bigbossfarin" title="User:Bigbossfarin">Bigbossfarin</a> (<a href="/wiki/User_talk:Bigbossfarin" title="User talk:Bigbossfarin">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj" class="ext-discussiontools-init-timestamplink">19:54, 3 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-03T19:54:00.000Z","author":"Bigbossfarin","type":"comment","level":1,"id":"c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj","replies":["c-Jackmcbarn-2014-07-03T20:23:00.000Z-Bigbossfarin-2014-07-03T19:54:00.000Z"]}}--></span><span data-mw-comment-end="c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj"></span> </p> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-07-03T20:23:00.000Z-Bigbossfarin-2014-07-03T19:54:00.000Z"></span>@<a href="/wiki/User:Bigbossfarin" title="User:Bigbossfarin">Bigbossfarin</a>:</span> I'm not totally sure what you're asking for, but would</dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">if</span> <span class="n">args</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span> <span class="ow">and</span> <span class="n">mw</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">trim</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="mi">3</span><span class="p">])</span> <span class="o">~=</span> <span class="s1">''</span> <span class="kr">then</span> <span class="nb">table.insert</span><span class="p">(</span><span class="n">data</span><span class="p">.</span><span class="n">categories</span><span class="p">,</span> <span class="s1">'Italian irregular verbs'</span><span class="p">)</span> <span class="kr">end</span> </pre></div> <dl><dd>work? <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-07-03T20:23:00.000Z-Bigbossfarin-2014-07-03T19:54:00.000Z" class="ext-discussiontools-init-timestamplink">20:23, 3 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-07-03T20:23:00.000Z-Bigbossfarin-2014-07-03T19:54:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-03T20:23:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-07-03T20:23:00.000Z-Bigbossfarin-2014-07-03T19:54:00.000Z","replies":["c-Bigbossfarin-2014-07-04T23:23:00.000Z-Jackmcbarn-2014-07-03T20:23:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-07-03T20:23:00.000Z-Bigbossfarin-2014-07-03T19:54:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Bigbossfarin-2014-07-04T23:23:00.000Z-Jackmcbarn-2014-07-03T20:23:00.000Z"></span>Thank you for you help <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a>, but I think that doesn't work if any special parameter like "pastp=letto" appears. Is there any way to make that any additional parameter is filtered by this category?--<a href="/wiki/User:Bigbossfarin" title="User:Bigbossfarin">Bigbossfarin</a> (<a href="/wiki/User_talk:Bigbossfarin" title="User talk:Bigbossfarin">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Bigbossfarin-2014-07-04T23:23:00.000Z-Jackmcbarn-2014-07-03T20:23:00.000Z" class="ext-discussiontools-init-timestamplink">23:23, 4 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Bigbossfarin-2014-07-04T23:23:00.000Z-Jackmcbarn-2014-07-03T20:23:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-04T23:23:00.000Z","author":"Bigbossfarin","type":"comment","level":3,"id":"c-Bigbossfarin-2014-07-04T23:23:00.000Z-Jackmcbarn-2014-07-03T20:23:00.000Z","replies":["c-Jackmcbarn-2014-07-04T23:48:00.000Z-Bigbossfarin-2014-07-04T23:23:00.000Z"]}}--></span><span data-mw-comment-end="c-Bigbossfarin-2014-07-04T23:23:00.000Z-Jackmcbarn-2014-07-03T20:23:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-07-04T23:48:00.000Z-Bigbossfarin-2014-07-04T23:23:00.000Z"></span>@<a href="/wiki/User:Bigbossfarin" title="User:Bigbossfarin">Bigbossfarin</a>:</span> What about this?</dd></dl></dd></dl></dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">for</span> <span class="n">k</span><span class="p">,</span><span class="n">v</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="kr">do</span> <span class="kr">if</span> <span class="n">k</span> <span class="o">~=</span> <span class="mi">1</span> <span class="ow">and</span> <span class="n">k</span> <span class="o">~=</span> <span class="mi">2</span> <span class="ow">and</span> <span class="n">mw</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">trim</span><span class="p">(</span><span class="n">v</span><span class="p">)</span> <span class="o">~=</span> <span class="s1">''</span> <span class="kr">then</span> <span class="nb">table.insert</span><span class="p">(</span><span class="n">data</span><span class="p">.</span><span class="n">categories</span><span class="p">,</span> <span class="s1">'Italian irregular verbs'</span><span class="p">)</span> <span class="kr">break</span> <span class="kr">end</span> <span class="kr">end</span> </pre></div> <dl><dd><dl><dd><dl><dd><a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-07-04T23:48:00.000Z-Bigbossfarin-2014-07-04T23:23:00.000Z" class="ext-discussiontools-init-timestamplink">23:48, 4 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-07-04T23:48:00.000Z-Bigbossfarin-2014-07-04T23:23:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-04T23:48:00.000Z","author":"Jackmcbarn","type":"comment","level":4,"id":"c-Jackmcbarn-2014-07-04T23:48:00.000Z-Bigbossfarin-2014-07-04T23:23:00.000Z","replies":["c-Bigbossfarin-2014-07-05T12:25:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z","c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-07-04T23:48:00.000Z-Bigbossfarin-2014-07-04T23:23:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Bigbossfarin-2014-07-05T12:25:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z"></span>Thank you I will try it! --<a href="/wiki/User:Bigbossfarin" title="User:Bigbossfarin">Bigbossfarin</a> (<a href="/wiki/User_talk:Bigbossfarin" title="User talk:Bigbossfarin">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Bigbossfarin-2014-07-05T12:25:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z" class="ext-discussiontools-init-timestamplink">12:25, 5 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Bigbossfarin-2014-07-05T12:25:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-05T12:25:00.000Z","author":"Bigbossfarin","type":"comment","level":5,"id":"c-Bigbossfarin-2014-07-05T12:25:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Bigbossfarin-2014-07-05T12:25:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z"></span></dd> <dd><a href="https://en.wiktionary.org/wiki/Category:Italian_irregular_verbs" class="extiw" title="wikt:Category:Italian irregular verbs"><span data-mw-comment-start="" id="c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z"></span>It works!</a> Thank you you very much for your help --<a href="/wiki/User:Bigbossfarin" title="User:Bigbossfarin">Bigbossfarin</a> (<a href="/wiki/User_talk:Bigbossfarin" title="User talk:Bigbossfarin">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z" class="ext-discussiontools-init-timestamplink">12:38, 5 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-05T12:38:00.000Z","author":"Bigbossfarin","type":"comment","level":5,"id":"c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Sphilbrick-2014-07-14T21:55:00.000Z","type":"heading","level":0,"id":"h-Module:Infobox_NCAA_team_season-2014-07-14T21:55:00.000Z","replies":["c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season"],"uneditableSection":true,"text":"Module:Infobox NCAA team season","linkableTitle":"Module:Infobox NCAA team season"}--><h2 id="Module:Infobox_NCAA_team_season" data-mw-thread-id="h-Module:Infobox_NCAA_team_season-2014-07-14T21:55:00.000Z"><span data-mw-comment-start="" id="h-Module:Infobox_NCAA_team_season-2014-07-14T21:55:00.000Z"></span>Module:Infobox NCAA team season<span data-mw-comment-end="h-Module:Infobox_NCAA_team_season-2014-07-14T21:55:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Sphilbrick-2014-07-14T21:55:00.000Z","type":"heading","level":0,"id":"h-Module:Infobox_NCAA_team_season-2014-07-14T21:55:00.000Z","replies":["c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z","timestamp":"2014-07-23T08:04:00.000Z"}__--><!--__DTCOMMENTCOUNT__2__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Sphilbrick-2014-07-14T21:55:00.000Z","type":"heading","level":0,"id":"h-Module:Infobox_NCAA_team_season-2014-07-14T21:55:00.000Z","replies":["c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season"],"uneditableSection":true,"text":"Module:Infobox NCAA team season","linkableTitle":"Module:Infobox NCAA team season"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season"></span>I'd like to talk about replacing <span class="nowrap">{{</span><a href="/wiki/Template:Infobox_NCAA_team_season" class="mw-redirect" title="Template:Infobox NCAA team season">Infobox NCAA team season</a><span class="nowrap">}}</span> with a proper LUA module. I feel a little like a tail wagging a dog, because my main concern is how kludgy the process is to identify whether the season name should include "Men's", Women's" or neither (which is not as simple as it might sound. For example, the recent Arkansas men's basketball team title should be "2013–14 Arkansas Razorbacks men's basketball team" but the Central Arkansas title should be "2013–14 Central Arkansas Bears basketball team".) </p><p>I note that the existing templates use a lot of switching to deal with the fact that they are covering six sports. Would it make sense to have a different version of each module for each sport? I'm thinking yes, but I'll defer to those with more expertise. If the answer is yes, the obvious question is whether to further subdivide between sex? I'm thinking no, but again, will defer to experts. Even if it makes sense to have nine separate modules, several still need to identify whether "Men's", Women's" or neither should be included, but I think that can be done simply, by having a sex parameter allowing "none" as a variable. (Unless that parameter drives anything else, in which case we need a second parameter, such as sextitle.) </p><p><br/> What can I do to help write specs? </p><p>FYI, this template has 8296 transclusions.--<a href="/wiki/User:Sphilbrick" title="User:Sphilbrick"><span style="color:#002868;padding:0 4px;font-family: Copperplate Gothic Light">S Philbrick</span></a><a href="/wiki/User_talk:Sphilbrick" title="User talk:Sphilbrick"><span style=";padding:0 4px;color:# 000;font-family: Copperplate Gothic Light">(Talk)</span></a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season" class="ext-discussiontools-init-timestamplink">21:55, 14 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-14T21:55:00.000Z","author":"Sphilbrick","type":"comment","level":1,"id":"c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season","replies":["c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z"],"displayName":"S Philbrick"}}--></span><span data-mw-comment-end="c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z"></span>This looks like a good candidate for Lua conversion. However, I'm a little reluctant to convert infoboxes to Lua right now, as once <a href="https://www.mediawiki.org/wiki/Extension:Capiunto" class="extiw" title="mw:Extension:Capiunto">mw:Extension:Capiunto</a> is released we will have to redo them. I suppose I should try and contribute to the Capiunto code myself to speed things along - it's been being written for quite a while now. — <i><b><a href="/wiki/User:Mr._Stradivarius_on_tour" title="User:Mr. Stradivarius on tour"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius on tour</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius_on_tour" class="mw-redirect" title="User talk:Mr. Stradivarius on tour">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z" class="ext-discussiontools-init-timestamplink">08:04, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T08:04:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":2,"id":"c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Wnt-2014-07-22T15:43:00.000Z","type":"heading","level":0,"id":"h-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.-2014-07-22T15:43:00.000Z","replies":["c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map."],"uneditableSection":true,"text":"We need a simple, straightforward, Wiki-wide syntax to put a mark on a damn map. (Aside from raw html\/css that is)","linkableTitle":"We need a simple, straightforward, Wiki-wide syntax to put a mark on a damn map. (Aside from raw html\/css that is)"}--><h2 id="We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map._(Aside_from_raw_html/css_that_is)" data-mw-thread-id="h-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.-2014-07-22T15:43:00.000Z"><span id="We_need_a_simple.2C_straightforward.2C_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map._.28Aside_from_raw_html.2Fcss_that_is.29"></span><span data-mw-comment-start="" id="h-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.-2014-07-22T15:43:00.000Z"></span>We need a simple, straightforward, Wiki-wide syntax to put a mark on a damn map. (Aside from raw html/css that is)<span data-mw-comment-end="h-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.-2014-07-22T15:43:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Wnt-2014-07-22T15:43:00.000Z","type":"heading","level":0,"id":"h-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.-2014-07-22T15:43:00.000Z","replies":["c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map."],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.","timestamp":"2014-07-22T15:43:00.000Z"}__--><!--__DTCOMMENTCOUNT__1__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Wnt-2014-07-22T15:43:00.000Z","type":"heading","level":0,"id":"h-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.-2014-07-22T15:43:00.000Z","replies":["c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map."],"uneditableSection":true,"text":"We need a simple, straightforward, Wiki-wide syntax to put a mark on a damn map. (Aside from raw html\/css that is)","linkableTitle":"We need a simple, straightforward, Wiki-wide syntax to put a mark on a damn map. (Aside from raw html\/css that is)"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map."></span>I was just appalled by a situation with <a href="/wiki/July_2014_Al-Wadi_Al-Gedid_attack" class="mw-redirect" title="July 2014 Al-Wadi Al-Gedid attack">July 2014 Al-Wadi Al-Gedid attack</a>, where the editors had put in an image coloring the entire province after some militants massacred people at a border checkpoint with Libya. The item was profiled site-wide from "In the news", and I feel like by coloring this in, we distracted from the actual coordinates it occurred at rather than highlighting them, and gave the militants an unwanted little boost by making it look like they control a huge chunk of Egypt. </p><p>The root of it is that <a href="/wiki/Template:Infobox_military_conflict" title="Template:Infobox military conflict">Template:Infobox military conflict</a> has some byzantine syntax required to use a location map, referring to the documentation of other templates to explain its own documentation, and at least in any short period of time I can't figure out how to put a mark on it. Judging by a dozen battles I picked out, nobody else seems to know either, because none use the feature. It's impossible to simply import a map from, say, <a href="/wiki/Farafra,_Egypt" title="Farafra, Egypt">Farafra, Egypt</a> and move the mark, because <a href="/wiki/Template:Infobox_settlement" title="Template:Infobox settlement">Template:Infobox settlement</a> uses a whole different set of parameters. Now I realize that in the end we can just go with <a href="/wiki/Template:Location_map" title="Template:Location map">Template:Location map</a> and try to ignore the rest, or better yet, just set up a div and set the mark about where it looks right ... but what we want really is a standard interface. I see that <a href="/wiki/Module:Location_map" title="Module:Location map">Module:Location map</a> has made some heroic strides in this direction e.g. <a href="/wiki/Module:Location_map/data/Abkhazia" title="Module:Location map/data/Abkhazia">Module:Location map/data/Abkhazia</a> (unfortunately we don't have one for Egypt, which may be part of the problem). But I'm thinking maybe what we really need is some way to make things more modular overall, i.e. a standard parameter that allows you to pass in the entire innards of the image frame preformatted, whether by transclusion or by calling another template etc., that bypasses more specialized (and variable) syntax. Maybe not - my thinking on this is admittedly confused, and I'm sure some here have tackled these situations often. But I want someone to come up with some kind of general philosophy to organize the approach rather than just diving in and making yet another divergent template or module. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map." class="ext-discussiontools-init-timestamplink">15:43, 22 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map."><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-22T15:43:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map."></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-DavyK17-2014-07-23T04:28:00.000Z","type":"heading","level":0,"id":"h-National_football_team_rankings-2014-07-23T04:28:00.000Z","replies":["c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings"],"uneditableSection":true,"text":"National football team rankings","linkableTitle":"National football team rankings"}--><h2 id="National_football_team_rankings" data-mw-thread-id="h-National_football_team_rankings-2014-07-23T04:28:00.000Z"><span data-mw-comment-start="" id="h-National_football_team_rankings-2014-07-23T04:28:00.000Z"></span>National football team rankings<span data-mw-comment-end="h-National_football_team_rankings-2014-07-23T04:28:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-DavyK17-2014-07-23T04:28:00.000Z","type":"heading","level":0,"id":"h-National_football_team_rankings-2014-07-23T04:28:00.000Z","replies":["c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z","timestamp":"2014-07-23T18:29:00.000Z"}__--><!--__DTCOMMENTCOUNT__8__--><!--__DTAUTHORCOUNT__6__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-DavyK17-2014-07-23T04:28:00.000Z","type":"heading","level":0,"id":"h-National_football_team_rankings-2014-07-23T04:28:00.000Z","replies":["c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings"],"uneditableSection":true,"text":"National football team rankings","linkableTitle":"National football team rankings"}--></div></div></div> <p><span data-mw-comment-start="" id="c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings"></span>Updating rankings on individual national <a href="/wiki/Association_football" title="Association football">football</a> team articles has become an overly tedious task and I think it would be easier if <span class="nowrap">{{</span><a href="/wiki/Template:Infobox_national_football_team" title="Template:Infobox national football team">Infobox national football team</a><span class="nowrap">}}</span> drew rankings from a single module and returned them on individual articles depending on the infobox's <code class="tpl-para" style="word-break:break-word;">|Name=</code> parameter (the value given in the parameter is always the same as "[name] national football team" in the article's title). Users, preferably members of the <a href="/wiki/Wikipedia:WikiProject_Football/National_teams_task_force" title="Wikipedia:WikiProject Football/National teams task force">national teams task force</a>, can then update these rankings every time new revisions are released. There should be a separate list for women's national teams, which would return rankings if <code class="tpl-para" style="word-break:break-word;">|type=women</code> in the infobox is active. </p><p>So basically, one central module should pull data from separate lists containing men's and women's rankings. For men, there should be two lists for <a href="/wiki/FIFA_World_Rankings" class="mw-redirect" title="FIFA World Rankings">FIFA World Rankings</a> and <a href="/wiki/World_Football_Elo_Ratings" title="World Football Elo Ratings">World Football Elo Ratings</a>, and for women one list containing <a href="/wiki/FIFA_Women%27s_World_Rankings" class="mw-redirect" title="FIFA Women's World Rankings">FIFA Women's World Rankings</a>. <a href="/wiki/User:Davykamanzi" title="User:Davykamanzi">Davykamanzi</a> → <small><a href="/wiki/User_talk:Davykamanzi" title="User talk:Davykamanzi"><b style="color:#0AE;">talk</b></a> • <a href="/wiki/Special:Contributions/Davykamanzi" title="Special:Contributions/Davykamanzi"><b style="color:#ED2;">contribs</b></a> • <a href="/wiki/User:DavyK17" title="User:DavyK17"><b style="color:#264;">alter ego</b></a></small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings" class="ext-discussiontools-init-timestamplink">04:28, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T04:28:00.000Z","author":"DavyK17","type":"comment","level":1,"id":"c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings","replies":["c-Jackmcbarn-2014-07-23T04:33:00.000Z-DavyK17-2014-07-23T04:28:00.000Z","c-Wnt-2014-07-23T13:34:00.000Z-DavyK17-2014-07-23T04:28:00.000Z"],"displayName":"alter ego"}}--></span><span data-mw-comment-end="c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Jackmcbarn-2014-07-23T04:33:00.000Z-DavyK17-2014-07-23T04:28:00.000Z"></span>It would be bad for the job queue to have all soccer pages pull rankings from the same page. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-07-23T04:33:00.000Z-DavyK17-2014-07-23T04:28:00.000Z" class="ext-discussiontools-init-timestamplink">04:33, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-07-23T04:33:00.000Z-DavyK17-2014-07-23T04:28:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T04:33:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-07-23T04:33:00.000Z-DavyK17-2014-07-23T04:28:00.000Z","replies":["c-WOSlinker-2014-07-23T07:08:00.000Z-Jackmcbarn-2014-07-23T04:33:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-07-23T04:33:00.000Z-DavyK17-2014-07-23T04:28:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-WOSlinker-2014-07-23T07:08:00.000Z-Jackmcbarn-2014-07-23T04:33:00.000Z"></span>With only 1237 articles using <span class="nowrap">{{</span><a href="/wiki/Template:Infobox_national_football_team" title="Template:Infobox national football team">Infobox national football team</a><span class="nowrap">}}</span>, it wouldn't be that bad on the job queue. Another option though might be a wikidata item. Would still mean having to update a number of pages, but the rankings could then be used over all languages. Another thought is that the rankings could be done with a normal template #switch statement rather than needing to use lua and just placed as subpages of the template. -- <a href="/wiki/User:WOSlinker" title="User:WOSlinker">WOSlinker</a> (<a href="/wiki/User_talk:WOSlinker" title="User talk:WOSlinker">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-WOSlinker-2014-07-23T07:08:00.000Z-Jackmcbarn-2014-07-23T04:33:00.000Z" class="ext-discussiontools-init-timestamplink">07:08, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-WOSlinker-2014-07-23T07:08:00.000Z-Jackmcbarn-2014-07-23T04:33:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T07:08:00.000Z","author":"WOSlinker","type":"comment","level":3,"id":"c-WOSlinker-2014-07-23T07:08:00.000Z-Jackmcbarn-2014-07-23T04:33:00.000Z","replies":["c-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z-WOSlinker-2014-07-23T07:08:00.000Z"]}}--></span><span data-mw-comment-end="c-WOSlinker-2014-07-23T07:08:00.000Z-Jackmcbarn-2014-07-23T04:33:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z-WOSlinker-2014-07-23T07:08:00.000Z"></span>It can quite easily be done on different subpages in Lua as well. Storing the data in Wikidata sounds like the best idea to me, though. — <i><b><a href="/wiki/User:Mr._Stradivarius_on_tour" title="User:Mr. Stradivarius on tour"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius on tour</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius_on_tour" class="mw-redirect" title="User talk:Mr. Stradivarius on tour">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z-WOSlinker-2014-07-23T07:08:00.000Z" class="ext-discussiontools-init-timestamplink">07:57, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z-WOSlinker-2014-07-23T07:08:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T07:57:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":4,"id":"c-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z-WOSlinker-2014-07-23T07:08:00.000Z","replies":["c-Wnt-2014-07-23T13:28:00.000Z-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z-WOSlinker-2014-07-23T07:08:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-07-23T13:28:00.000Z-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z"></span>Well, I'm absolutely stunned to see that a few days ago action was taken that might permit this to be possible (<a class="external text" href="https://bugzilla.wikimedia.org/show_bug.cgi?id=47930">Bugzilla</a>, <a class="external text" href="https://gerrit.wikimedia.org/r/#/c/144965/">merge</a>) - still, my understanding is that Wikidata doesn't just let you add any old thing you want, everything takes approval. Also, I don't think it's live yet, because the examples from <a class="external autonumber" href="https://meta.wikimedia.org/wiki/Wikidata/Notes/Inclusion_syntax">[5]</a> (,) still don't produce any text. It would be a lot easier to do it with a WP based data file first, and then if someone cares he can look into coordinating the data files later. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-07-23T13:28:00.000Z-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z" class="ext-discussiontools-init-timestamplink">13:28, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-07-23T13:28:00.000Z-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T13:28:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-07-23T13:28:00.000Z-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-07-23T13:28:00.000Z-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd> <dd><span data-mw-comment-start="" id="c-Wnt-2014-07-23T13:34:00.000Z-DavyK17-2014-07-23T04:28:00.000Z"></span>Some broader issues concern this. First, <a href="/wiki/Wikipedia:NOTNEWS" class="mw-redirect" title="Wikipedia:NOTNEWS">WP:NOTNEWS</a> is usually misapplied in support of deleting anything that might compete with commercial news outlets, such as articles about recent events; but it actually does say that we shouldn't value the rankings for, say, July 17 more than we value those for some time in June. This is an encyclopedia and our goal isn't actually to produce continually-updated rankings. Also, there could be copyright issues over taking every single judgment call FIFA has ever made and putting it into a database. I ended up losing <a href="/w/index.php?title=List_of_Forbes_Global_2000_companies&action=edit&redlink=1" class="new" title="List of Forbes Global 2000 companies (page does not exist)">List of Forbes Global 2000 companies</a> to such concerns and this seems pretty similar. So while we can write the module I don't know if you should really use it. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-07-23T13:34:00.000Z-DavyK17-2014-07-23T04:28:00.000Z" class="ext-discussiontools-init-timestamplink">13:34, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-07-23T13:34:00.000Z-DavyK17-2014-07-23T04:28:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T13:34:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-07-23T13:34:00.000Z-DavyK17-2014-07-23T04:28:00.000Z","replies":["c-DavyK17-2014-07-23T17:13:00.000Z-Wnt-2014-07-23T13:34:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-07-23T13:34:00.000Z-DavyK17-2014-07-23T04:28:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-DavyK17-2014-07-23T17:13:00.000Z-Wnt-2014-07-23T13:34:00.000Z"></span>@<a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a>:</span> The point isn't to produce continually-updated rankings. FIFA rankings are updated once every month or so anyway. Elo ratings however are updated almost everyday, but we could just update them the same time new FIFA rankings are released. Besides that I don't see how copyright issues would affect this. <a href="/wiki/User:Davykamanzi" title="User:Davykamanzi">Davykamanzi</a> → <small><a href="/wiki/User_talk:Davykamanzi" title="User talk:Davykamanzi"><b style="color:#0AE;">talk</b></a> • <a href="/wiki/Special:Contributions/Davykamanzi" title="Special:Contributions/Davykamanzi"><b style="color:#ED2;">contribs</b></a> • <a href="/wiki/User:DavyK17" title="User:DavyK17"><b style="color:#264;">alter ego</b></a></small> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DavyK17-2014-07-23T17:13:00.000Z-Wnt-2014-07-23T13:34:00.000Z" class="ext-discussiontools-init-timestamplink">17:13, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DavyK17-2014-07-23T17:13:00.000Z-Wnt-2014-07-23T13:34:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T17:13:00.000Z","author":"DavyK17","type":"comment","level":3,"id":"c-DavyK17-2014-07-23T17:13:00.000Z-Wnt-2014-07-23T13:34:00.000Z","replies":["c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z"],"displayName":"alter ego"}}--></span><span data-mw-comment-end="c-DavyK17-2014-07-23T17:13:00.000Z-Wnt-2014-07-23T13:34:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z"></span>Have you considered using the FIFA API (See <a rel="nofollow" class="external text" href="https://developer.ap.org/sites/default/files/AP_Content_API_FIFAWorldCup_RefGuide.pdf">PDF</a> )? I am thinking someone could design a Wikidata standard for the necessary information, populate on regular intervals using the API, then populate Wikipedia articles with links to the Wikidata elements.--<a href="/wiki/User:Sphilbrick" title="User:Sphilbrick"><span style="color:#002868;padding:0 4px;font-family: Copperplate Gothic Light">S Philbrick</span></a><a href="/wiki/User_talk:Sphilbrick" title="User talk:Sphilbrick"><span style=";padding:0 4px;color:# 000;font-family: Copperplate Gothic Light">(Talk)</span></a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z" class="ext-discussiontools-init-timestamplink">18:29, 23 July 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-07-23T18:29:00.000Z","author":"Sphilbrick","type":"comment","level":4,"id":"c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z","replies":[],"displayName":"S Philbrick"}}--></span><span data-mw-comment-end="c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Wnt-2014-08-05T01:57:00.000Z","type":"heading","level":0,"id":"h-Lua_library_to_implement_Javascript_regexes?-2014-08-05T01:57:00.000Z","replies":["c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?","c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?"],"uneditableSection":true,"text":"Lua library to implement Javascript regexes?","linkableTitle":"Lua library to implement Javascript regexes?"}--><h2 id="Lua_library_to_implement_Javascript_regexes?" data-mw-thread-id="h-Lua_library_to_implement_Javascript_regexes?-2014-08-05T01:57:00.000Z"><span id="Lua_library_to_implement_Javascript_regexes.3F"></span><span data-mw-comment-start="" id="h-Lua_library_to_implement_Javascript_regexes?-2014-08-05T01:57:00.000Z"></span>Lua library to implement Javascript regexes?<span data-mw-comment-end="h-Lua_library_to_implement_Javascript_regexes?-2014-08-05T01:57:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Wnt-2014-08-05T01:57:00.000Z","type":"heading","level":0,"id":"h-Lua_library_to_implement_Javascript_regexes?-2014-08-05T01:57:00.000Z","replies":["c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?","c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z","timestamp":"2014-08-09T09:22:00.000Z"}__--><!--__DTCOMMENTCOUNT__8__--><!--__DTAUTHORCOUNT__4__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Wnt-2014-08-05T01:57:00.000Z","type":"heading","level":0,"id":"h-Lua_library_to_implement_Javascript_regexes?-2014-08-05T01:57:00.000Z","replies":["c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?","c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?"],"uneditableSection":true,"text":"Lua library to implement Javascript regexes?","linkableTitle":"Lua library to implement Javascript regexes?"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?"></span>I just got a question about using the alternation operator from Javascript in a <a href="/w/index.php?title=Module:Highlight&action=edit&redlink=1" class="new" title="Module:Highlight (page does not exist)">Module:Highlight</a> I slapped together in a hurry in response to <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=594714582#Highlighting_within_an_article_from_a_list_of_regex_expressions">a VPT thread</a>. It would be wonderful if someone could code up Lua functions that work like the present Lua regex functions, but using <a rel="nofollow" class="external text" href="http://www.w3schools.com/js/js_regexp.asp">standard Javascript regexes</a>. It seems possible (though probably a bit slow), and obvious enough that I shouldn't have to reinvent the wheel... I bet someone can point me right at a free-licensed library routine we can just out and out steal and be done with this. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?" class="ext-discussiontools-init-timestamplink">01:57, 5 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-05T01:57:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?","replies":["c-Jackmcbarn-2014-08-05T02:44:00.000Z-Wnt-2014-08-05T01:57:00.000Z"]}}--></span><span data-mw-comment-end="c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?"></span> </p> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-08-05T02:44:00.000Z-Wnt-2014-08-05T01:57:00.000Z"></span>@<a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a>:</span> I can't find any such library, and the people in freenode #lua don't know of any either. I doubt one exists. (Note that there's plenty of libraries that call out to C functions to do it, but for MediaWiki we'd need one written in pure Lua.) <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-08-05T02:44:00.000Z-Wnt-2014-08-05T01:57:00.000Z" class="ext-discussiontools-init-timestamplink">02:44, 5 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-08-05T02:44:00.000Z-Wnt-2014-08-05T01:57:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-05T02:44:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-08-05T02:44:00.000Z-Wnt-2014-08-05T01:57:00.000Z","replies":["c-Wnt-2014-08-05T08:25:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","c-Wnt-2014-08-07T23:40:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","c-Jackmcbarn-2014-08-07T23:45:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-08-05T02:44:00.000Z-Wnt-2014-08-05T01:57:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Wnt-2014-08-05T08:25:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"></span>Thanks for trying! I suppose the next question to ask is whether anyone has proposed some extended syntax for Lua to handle the Javascript-like features that it lacks. I'm thinking we'd want to first convert from Javascript syntax to Lua syntax - sometimes quite simply, /d to %d and such, but other times requiring new "Lua-like" syntax to deal with the extra features; then have a module that can deal with the extended syntax in a way that is hopefully fairly efficient. That way the same module could handle either the Javascript syntax or a Lua syntax with non-standard features almost exactly the same way. But without defining any new special characters for such regexes coming up with that syntax might be rather tricky. Certainly if anyone has proposed a standard for it already it would be best to stick by it. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-08-05T08:25:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z" class="ext-discussiontools-init-timestamplink">08:25, 5 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-08-05T08:25:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-05T08:25:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-08-05T08:25:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-08-05T08:25:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Wnt-2014-08-07T23:40:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"></span>Well, since no one suggested a better idea, I'm thinking of something like the following adaptation scheme:</dd></dl></dd></dl> <dl><dd><dl><dd><dl><dd><table class="wikitable"> <tbody><tr> <th>Javascript </th> <th>Lua extension </th></tr> <tr> <td>(x|y) </td> <td>%e[x^y] </td></tr> <tr> <td>n{X} </td> <td>%r[n^X] </td></tr> <tr> <td>n{X,Y} </td> <td>%r[n^X^Y] </td></tr> <tr> <td>n{X,} </td> <td>%r[n^X^] </td></tr> <tr> <td>?=n </td> <td>%g[n] </td></tr> <tr> <td>?!n </td> <td>%G[n] </td></tr> <tr> <td>\ddd </td> <td>%j[ddd] </td></tr> <tr> <td>\xdd </td> <td>%j[xdd] </td></tr> <tr> <td>\udddd </td> <td>%j[udddd] </td></tr> <tr> <td>. </td> <td>%j[.] </td></tr></tbody></table></dd></dl></dd></dl></dd></dl> <dl><dd><dl><dd>Seems like %e, %r, %g, %n are apparently unused in patterns... I think. ^ already has meaning at the beginning of the string. %^ would still only be required in the abnormal %e text itself. This isn't complete (and I doubt the module would be any time soon either!), but the notion of unused %alphabeticals in patterns seems like the obvious expansion method. <a href="/wiki/User:Wnt" title="User:Wnt">Wnt</a> (<a href="/wiki/User_talk:Wnt" title="User talk:Wnt">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Wnt-2014-08-07T23:40:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z" class="ext-discussiontools-init-timestamplink">23:40, 7 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Wnt-2014-08-07T23:40:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-07T23:40:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-08-07T23:40:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Wnt-2014-08-07T23:40:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Jackmcbarn-2014-08-07T23:45:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"></span>If you do want to go the route of implementing this yourself, there's already a pure-Lua implementation of Lua's own pattern matching at <a class="external autonumber" href="https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FScribunto.git/HEAD/engines%2FLuaCommon%2Flualib%2Fustring%2Fustring.lua">[6]</a> that would probably be the best place to start. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-08-07T23:45:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z" class="ext-discussiontools-init-timestamplink">23:45, 7 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-08-07T23:45:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-07T23:45:00.000Z","author":"Jackmcbarn","type":"comment","level":3,"id":"c-Jackmcbarn-2014-08-07T23:45:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-08-07T23:45:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z"></span></dd></dl></dd></dl> <p><span data-mw-comment-start="" id="c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?"></span>Hi Jack ... this was my request, and it's been frustrating because it's necessary for my copyediting project (I can explain why if you like), and what I want is a tiny change, but I haven't been able to find help ... my bugzilla request has been assigned a "low" priority and has no takers. I know a little more now thx to Wnt: "I see ... some version (I don't know if it's the most recent for sure) of the highlightText at <a class="external autonumber" href="https://git.wikimedia.org/blob/mediawiki%2Fcore/596a2584b0ea7ca5de24e871e015a9ac03122c3e/resources%2Fjquery%2Fjquery.highlightText.js">[7]</a> with the infamous split-on-space at line 12." That's exactly it ... what I need is a function (in or outside of Mediawiki) identical to highlightText, with (I'm guessing) the space in pat.split(" ") in line 12 replaced ... a tab character would work. (Or, getting rid of the parsing entirely so I can pass an array of strings would be fine.) - Dank (<a href="/wiki/User_talk:Dank" title="User talk:Dank">push to talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?" class="ext-discussiontools-init-timestamplink">17:22, 5 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-05T17:22:00.000Z","author":"Dank","type":"comment","level":1,"id":"c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?","replies":["c-Technical_13-2014-08-09T08:57:00.000Z-Dank-2014-08-05T17:22:00.000Z"]}}--></span><span data-mw-comment-end="c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?"></span> </p> <ul><li><a href="/wiki/User:Dank" title="User:Dank"><span data-mw-comment-start="" id="c-Technical_13-2014-08-09T08:57:00.000Z-Dank-2014-08-05T17:22:00.000Z"></span>Dank</a>, what bugzilla request? It's always helpful to link to such things using <span class="nowrap">{{<a href="/w/index.php?title=Template:Bug&action=edit&redlink=1" class="new" title="Template:Bug (page does not exist)">Bug</a>|######}}</span>, <span class="nowrap">{{<a href="/w/index.php?title=Template:Bugzilla&action=edit&redlink=1" class="new" title="Template:Bugzilla (page does not exist)">Bugzilla</a>|######}}</span>, <span class="nowrap">{{<a href="/wiki/Template:Tracked" title="Template:Tracked">Tracked</a>|######}}</span>, or [[:<a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=" class="extiw" title="bugzilla:">bugzilla:</a>######]]. — <span class="nowrap">{{U|<a href="/wiki/User:Technical_13" title="User:Technical 13">Technical 13</a>}} <sup>(<a href="/wiki/Special:EmailUser/Technical_13" title="Special:EmailUser/Technical 13">e</a> • <a href="/wiki/User_talk:Technical_13" title="User talk:Technical 13">t</a> • <a href="/wiki/Special:Contributions/Technical_13" title="Special:Contributions/Technical 13">c</a>)</sup></span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Technical_13-2014-08-09T08:57:00.000Z-Dank-2014-08-05T17:22:00.000Z" class="ext-discussiontools-init-timestamplink">08:57, 9 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Technical_13-2014-08-09T08:57:00.000Z-Dank-2014-08-05T17:22:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-09T08:57:00.000Z","author":"Technical 13","type":"comment","level":2,"id":"c-Technical_13-2014-08-09T08:57:00.000Z-Dank-2014-08-05T17:22:00.000Z","replies":["c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z"]}}--></span><span data-mw-comment-end="c-Technical_13-2014-08-09T08:57:00.000Z-Dank-2014-08-05T17:22:00.000Z"></span> <ul><li><a href="https://phabricator.wikimedia.org/T69784" class="extiw" title="phabricator:T69784"><span data-mw-comment-start="" id="c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z"></span>T69784</a>. - Dank (<a href="/wiki/User_talk:Dank" title="User talk:Dank">push to talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z" class="ext-discussiontools-init-timestamplink">09:22, 9 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-09T09:22:00.000Z","author":"Dank","type":"comment","level":3,"id":"c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z"></span></li></ul></li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-P199-2014-08-11T16:57:00.000Z","type":"heading","level":0,"id":"h-Module:Coordinates-2014-08-11T16:57:00.000Z","replies":["c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates"],"uneditableSection":true,"text":"Module:Coordinates","linkableTitle":"Module:Coordinates"}--><h2 id="Module:Coordinates" data-mw-thread-id="h-Module:Coordinates-2014-08-11T16:57:00.000Z"><span data-mw-comment-start="" id="h-Module:Coordinates-2014-08-11T16:57:00.000Z"></span>Module:Coordinates<span data-mw-comment-end="h-Module:Coordinates-2014-08-11T16:57:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-P199-2014-08-11T16:57:00.000Z","type":"heading","level":0,"id":"h-Module:Coordinates-2014-08-11T16:57:00.000Z","replies":["c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z","timestamp":"2014-09-17T12:41:00.000Z"}__--><!--__DTCOMMENTCOUNT__6__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-P199-2014-08-11T16:57:00.000Z","type":"heading","level":0,"id":"h-Module:Coordinates-2014-08-11T16:57:00.000Z","replies":["c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates"],"uneditableSection":true,"text":"Module:Coordinates","linkableTitle":"Module:Coordinates"}--></div></div></div> <p><span data-mw-comment-start="" id="c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates"></span>Is someone willing/able to modify <a href="/wiki/Module:Coordinates/sandbox" title="Module:Coordinates/sandbox">Module:Coordinates/sandbox</a> so that it can import coordinates from Wikidata? Importing coordinates from Wikidata can be done with this syntax (<code>{{#property:P625}}</code>) but its output is not formatted right to be accepted by this module. The functionality needs to be added so that we can import coordinates directly from Wikidata, using the <span class="nowrap">{{</span><a href="/wiki/Template:Coord" title="Template:Coord">Coord</a><span class="nowrap">}}</span> template maybe in this format: <code>{{Coord|{{#property:P625}}|display=...}}</code>. Thanks. -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates" class="ext-discussiontools-init-timestamplink">16:57, 11 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-11T16:57:00.000Z","author":"P199","type":"comment","level":1,"id":"c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates","replies":["c-Pawe\u0142_Ziemian-2014-08-11T21:44:00.000Z-P199-2014-08-11T16:57:00.000Z","c-Snaevar-2014-09-15T16:35:00.000Z-P199-2014-08-11T16:57:00.000Z"],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-08-11T21:44:00.000Z-P199-2014-08-11T16:57:00.000Z"></span>Using <tt>#property</tt> is waste of CPU cycles for useless formatting-parsing the coordinates. It is better to read the property value directly in lua module if the coordinates are not provided as argument of the template. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-08-11T21:44:00.000Z-P199-2014-08-11T16:57:00.000Z" class="ext-discussiontools-init-timestamplink">21:44, 11 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-08-11T21:44:00.000Z-P199-2014-08-11T16:57:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-11T21:44:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":2,"id":"c-Pawe\u0142_Ziemian-2014-08-11T21:44:00.000Z-P199-2014-08-11T16:57:00.000Z","replies":["c-P199-2014-08-12T13:34:00.000Z-Pawe\u0142_Ziemian-2014-08-11T21:44:00.000Z"]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-08-11T21:44:00.000Z-P199-2014-08-11T16:57:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-P199-2014-08-12T13:34:00.000Z-Paweł_Ziemian-2014-08-11T21:44:00.000Z"></span>It was just a suggestion. If there is a better way, by all means! Use it instead. The key issue is to import coordinates directly from Wikidata to the <span class="nowrap">{{</span><a href="/wiki/Template:Coord" title="Template:Coord">coord</a><span class="nowrap">}}</span> template. -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-08-12T13:34:00.000Z-Paweł_Ziemian-2014-08-11T21:44:00.000Z" class="ext-discussiontools-init-timestamplink">13:34, 12 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-08-12T13:34:00.000Z-Paweł_Ziemian-2014-08-11T21:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-12T13:34:00.000Z","author":"P199","type":"comment","level":3,"id":"c-P199-2014-08-12T13:34:00.000Z-Pawe\u0142_Ziemian-2014-08-11T21:44:00.000Z","replies":[],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-08-12T13:34:00.000Z-Paweł_Ziemian-2014-08-11T21:44:00.000Z"></span></dd></dl></dd> <dd><span data-mw-comment-start="" id="c-Snaevar-2014-09-15T16:35:00.000Z-P199-2014-08-11T16:57:00.000Z"></span>@<a href="/wiki/User:P199" title="User:P199">P 1 9 9</a>: Allready done. If you have an coord template transclusion with no numbered arguments and there is an coordinate on the linked wikidata item the coordinate from wikidata will show up. See <a href="/wiki/Module_talk:Coordinates#This_template_doesn't_support_wikidata!" title="Module talk:Coordinates">Module talk:Coordinates#This template doesn't support wikidata!</a> for details. If you have any other problems with it, then please say so.--<a href="/wiki/User:Snaevar" class="mw-redirect" title="User:Snaevar">Snaevar</a> (<a href="/wiki/User_talk:Snaevar" class="mw-redirect" title="User talk:Snaevar">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Snaevar-2014-09-15T16:35:00.000Z-P199-2014-08-11T16:57:00.000Z" class="ext-discussiontools-init-timestamplink">16:35, 15 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Snaevar-2014-09-15T16:35:00.000Z-P199-2014-08-11T16:57:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-15T16:35:00.000Z","author":"Snaevar","type":"comment","level":2,"id":"c-Snaevar-2014-09-15T16:35:00.000Z-P199-2014-08-11T16:57:00.000Z","replies":["c-P199-2014-09-15T20:00:00.000Z-Snaevar-2014-09-15T16:35:00.000Z"]}}--></span><span data-mw-comment-end="c-Snaevar-2014-09-15T16:35:00.000Z-P199-2014-08-11T16:57:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-P199-2014-09-15T20:00:00.000Z-Snaevar-2014-09-15T16:35:00.000Z"></span>Thank you very much. Can you update <a href="/wiki/Template:Coord/doc" title="Template:Coord/doc">Template:Coord/doc</a> to describe its features and use? -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-09-15T20:00:00.000Z-Snaevar-2014-09-15T16:35:00.000Z" class="ext-discussiontools-init-timestamplink">20:00, 15 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-09-15T20:00:00.000Z-Snaevar-2014-09-15T16:35:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-15T20:00:00.000Z","author":"P199","type":"comment","level":3,"id":"c-P199-2014-09-15T20:00:00.000Z-Snaevar-2014-09-15T16:35:00.000Z","replies":["c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z"],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-09-15T20:00:00.000Z-Snaevar-2014-09-15T16:35:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z"></span>Sure. Done.--<a href="/wiki/User:Snaevar" class="mw-redirect" title="User:Snaevar">Snaevar</a> (<a href="/wiki/User_talk:Snaevar" class="mw-redirect" title="User talk:Snaevar">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z" class="ext-discussiontools-init-timestamplink">12:41, 17 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-17T12:41:00.000Z","author":"Snaevar","type":"comment","level":4,"id":"c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-P199-2014-08-11T17:08:00.000Z","type":"heading","level":0,"id":"h-Wikidata_qualifier-2014-08-11T17:08:00.000Z","replies":["c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier","c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier"],"uneditableSection":true,"text":"Wikidata qualifier","linkableTitle":"Wikidata qualifier"}--><h2 id="Wikidata_qualifier" data-mw-thread-id="h-Wikidata_qualifier-2014-08-11T17:08:00.000Z"><span data-mw-comment-start="" id="h-Wikidata_qualifier-2014-08-11T17:08:00.000Z"></span>Wikidata qualifier<span data-mw-comment-end="h-Wikidata_qualifier-2014-08-11T17:08:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-P199-2014-08-11T17:08:00.000Z","type":"heading","level":0,"id":"h-Wikidata_qualifier-2014-08-11T17:08:00.000Z","replies":["c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier","c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z","timestamp":"2014-10-09T16:52:00.000Z"}__--><!--__DTCOMMENTCOUNT__9__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-P199-2014-08-11T17:08:00.000Z","type":"heading","level":0,"id":"h-Wikidata_qualifier-2014-08-11T17:08:00.000Z","replies":["c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier","c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier"],"uneditableSection":true,"text":"Wikidata qualifier","linkableTitle":"Wikidata qualifier"}--></div></div></div> <p><span data-mw-comment-start="" id="c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier"></span>Is someone willing/able to write a new module that can import qualifier statements from Wikidata? For example to use the "point in time" qualifier for population numbers. See also <a class="external free" href="https://meta.wikimedia.org/w/index.php?title=Talk:Wikidata/Notes/Inclusion_syntax_v0.4#Accessing_qualifiers_for_statements">https://meta.wikimedia.org/w/index.php?title=Talk:Wikidata/Notes/Inclusion_syntax_v0.4#Accessing_qualifiers_for_statements</a>. Thanks. -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier" class="ext-discussiontools-init-timestamplink">17:08, 11 August 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-08-11T17:08:00.000Z","author":"P199","type":"comment","level":1,"id":"c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier","replies":["c-Jackmcbarn-2014-09-11T00:57:00.000Z-P199-2014-08-11T17:08:00.000Z"],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier"></span> </p> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-09-11T00:57:00.000Z-P199-2014-08-11T17:08:00.000Z"></span>@<a href="/wiki/User:P199" title="User:P199">P199</a>:</span> Can you link to a page that has a data item with a qualifier? <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-09-11T00:57:00.000Z-P199-2014-08-11T17:08:00.000Z" class="ext-discussiontools-init-timestamplink">00:57, 11 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-09-11T00:57:00.000Z-P199-2014-08-11T17:08:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-11T00:57:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-09-11T00:57:00.000Z-P199-2014-08-11T17:08:00.000Z","replies":["c-P199-2014-09-11T01:34:00.000Z-Jackmcbarn-2014-09-11T00:57:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-09-11T00:57:00.000Z-P199-2014-08-11T17:08:00.000Z"></span> <ul><li><span data-mw-comment-start="" id="c-P199-2014-09-11T01:34:00.000Z-Jackmcbarn-2014-09-11T00:57:00.000Z"></span>Sure. For instance, <a href="/wiki/Zamboanga_City" title="Zamboanga City">Zamboanga City</a>. The <a class="external text" href="https://www.wikidata.org/wiki/Q1629">Wikidata item</a> has a "population" statement with the "point in time" and "determination method" qualifiers. I want to use the date in the "point in time" qualifier when importing the "population" number. This would be a huge help in keeping the data accurate. Thanks for looking into this. -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-09-11T01:34:00.000Z-Jackmcbarn-2014-09-11T00:57:00.000Z" class="ext-discussiontools-init-timestamplink">01:34, 11 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-09-11T01:34:00.000Z-Jackmcbarn-2014-09-11T00:57:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-11T01:34:00.000Z","author":"P199","type":"comment","level":3,"id":"c-P199-2014-09-11T01:34:00.000Z-Jackmcbarn-2014-09-11T00:57:00.000Z","replies":["c-Jackmcbarn-2014-09-11T01:50:00.000Z-P199-2014-09-11T01:34:00.000Z","c-P199-2014-09-11T13:36:00.000Z-P199-2014-09-11T01:34:00.000Z"],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-09-11T01:34:00.000Z-Jackmcbarn-2014-09-11T00:57:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-09-11T01:50:00.000Z-P199-2014-09-11T01:34:00.000Z"></span>@<a href="/wiki/User:P199" title="User:P199">P199</a>:</span> I updated <a href="/wiki/Module:Wikidata" title="Module:Wikidata">Module:Wikidata</a> to include qualifier variants of its 3 functions. They take the qualifier ID right after the property ID and otherwise work identically. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-09-11T01:50:00.000Z-P199-2014-09-11T01:34:00.000Z" class="ext-discussiontools-init-timestamplink">01:50, 11 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-09-11T01:50:00.000Z-P199-2014-09-11T01:34:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-11T01:50:00.000Z","author":"Jackmcbarn","type":"comment","level":4,"id":"c-Jackmcbarn-2014-09-11T01:50:00.000Z-P199-2014-09-11T01:34:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-09-11T01:50:00.000Z-P199-2014-09-11T01:34:00.000Z"></span></dd></dl></li></ul> <dl><dd><ul><li><span data-mw-comment-start="" id="c-P199-2014-09-11T13:36:00.000Z-P199-2014-09-11T01:34:00.000Z"></span>Thanks for working on this. I tried it with the following syntax (<code>{{#invoke:Wikidata|getDateValue|p585|FETCH_WIKIDATA|dmy}}</code>) but didn't work. I don't think I have the right code, and it is not described on the documentation page. What is the right syntax for it? -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-09-11T13:36:00.000Z-P199-2014-09-11T01:34:00.000Z" class="ext-discussiontools-init-timestamplink">13:36, 11 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-09-11T13:36:00.000Z-P199-2014-09-11T01:34:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-11T13:36:00.000Z","author":"P199","type":"comment","level":4,"id":"c-P199-2014-09-11T13:36:00.000Z-P199-2014-09-11T01:34:00.000Z","replies":["c-Jackmcbarn-2014-09-11T13:59:00.000Z-P199-2014-09-11T13:36:00.000Z","c-P199-2014-09-11T15:19:00.000Z-P199-2014-09-11T13:36:00.000Z"],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-09-11T13:36:00.000Z-P199-2014-09-11T01:34:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-09-11T13:59:00.000Z-P199-2014-09-11T13:36:00.000Z"></span>@<a href="/wiki/User:P199" title="User:P199">P199</a>:</span> The syntax in this case is <code>{{<a href="/wiki/Module:Wikidata" title="Module:Wikidata">#invoke:Wikidata</a>|getQualifierDateValue|P1082|P585|FETCH_WIKIDATA|dmy}}</code>. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-09-11T13:59:00.000Z-P199-2014-09-11T13:36:00.000Z" class="ext-discussiontools-init-timestamplink">13:59, 11 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-09-11T13:59:00.000Z-P199-2014-09-11T13:36:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-11T13:59:00.000Z","author":"Jackmcbarn","type":"comment","level":5,"id":"c-Jackmcbarn-2014-09-11T13:59:00.000Z-P199-2014-09-11T13:36:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-09-11T13:59:00.000Z-P199-2014-09-11T13:36:00.000Z"></span></dd></dl></li></ul> <dl><dd><ul><li><span data-mw-comment-start="" id="c-P199-2014-09-11T15:19:00.000Z-P199-2014-09-11T13:36:00.000Z"></span>Great! Thank you very much. One more idea: can you provide more date output formats, like year only? -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-09-11T15:19:00.000Z-P199-2014-09-11T13:36:00.000Z" class="ext-discussiontools-init-timestamplink">15:19, 11 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-09-11T15:19:00.000Z-P199-2014-09-11T13:36:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-11T15:19:00.000Z","author":"P199","type":"comment","level":5,"id":"c-P199-2014-09-11T15:19:00.000Z-P199-2014-09-11T13:36:00.000Z","replies":[],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-09-11T15:19:00.000Z-P199-2014-09-11T13:36:00.000Z"></span></li></ul></dd></dl></dd></dl></dd></dl> <p><span class="template-ping"><span data-mw-comment-start="" id="c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier"></span>@<a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a>:</span> Can you provide more date output formats, like year only? Notice at <a href="/wiki/Oth%C3%B3n_P._Blanco,_Quintana_Roo" title="Othón P. Blanco, Quintana Roo">Othón P. Blanco, Quintana Roo</a>, that "1 January" is added while Wikidata only has the year as qualifier. Thanks. -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier" class="ext-discussiontools-init-timestamplink">18:00, 7 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-07T18:00:00.000Z","author":"P199","type":"comment","level":1,"id":"c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier","replies":["c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z"],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z"></span>Nevermind. I already did it. -- <a href="/wiki/User:P199" title="User:P199"><b style="color:#199199;">P 1 9 9</b></a> <big><a href="/wiki/User_talk:P199" title="User talk:P199">✉</a></big> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z" class="ext-discussiontools-init-timestamplink">16:52, 9 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-09T16:52:00.000Z","author":"P199","type":"comment","level":2,"id":"c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z","replies":[],"displayName":"P\u00a01\u00a09\u00a09"}}--></span><span data-mw-comment-end="c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-22T22:54:00.000Z","type":"heading","level":0,"id":"h-overhaul_Module:Chart-2014-09-22T22:54:00.000Z","replies":["h-TLDR-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"],"uneditableSection":true,"text":"overhaul Module:Chart","linkableTitle":"overhaul Module:Chart"}--><h2 id="overhaul_Module:Chart" data-mw-thread-id="h-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"><span data-mw-comment-start="" id="h-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"></span>overhaul <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a><span data-mw-comment-end="h-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-22T22:54:00.000Z","type":"heading","level":0,"id":"h-overhaul_Module:Chart-2014-09-22T22:54:00.000Z","replies":["h-TLDR-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z","timestamp":"2014-09-24T13:19:00.000Z"}__--><!--__DTCOMMENTCOUNT__7__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-22T22:54:00.000Z","type":"heading","level":0,"id":"h-overhaul_Module:Chart-2014-09-22T22:54:00.000Z","replies":["h-TLDR-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"],"uneditableSection":true,"text":"overhaul Module:Chart","linkableTitle":"overhaul Module:Chart"}--></div></div></div> <p>(reference, <a href="/wiki/Module_talk:Chart#Line_chart_option" title="Module talk:Chart">Module talk:Chart#Line chart option</a>) </p><p>so, <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a> has two main functions, bar chart and pie chart. </p><p>i do not know of a better way to do pie charts, so forget about it for a moment. bar chart works by creaing raw html/css entities (mainly divs, but also textual legends)) and do all kinds of gymnastics to do it right, by setting style options for location, color and size of the elements. this is not good, we should really use <a href="https://www.mediawiki.org/wiki/Extension:Timeline" class="extiw" title="mw:Extension:Timeline">mw:Extension:Timeline</a> to render the chart. timeline syntax may not be trivial, and this is where lua should be used. </p><p>so here is the challenge, </p> <ol><li>look at <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a> - not so much the actual code - look at the "syntax", in the documentation and examples.</li> <li>if yo like the syntax, think of ways to make it better: easier to use, more powerful, cleaner, etc.</li> <li>if you do not like the syntax, try to come up with a better one</li> <li>learn the timeline extension syntax</li> <li>create a module that generates line chart, vertical bar chart (both "stacked" and "traditional"), and horizontal bar charts (probably "stacked" only for h-bar), using unified syntax. ideally, one will be able to switch between line, v-bar, stacked v-bar and h-bar, simply by changing a single parameter: all the data, legends, links, colors, etc. should still work for all types. utilize as much or as little from <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a> code as makes sense: the rendering code is junk, but (depending on the syntax chosen), some of the logic used to process the parameters may be useful</li> <li>ideally, it should be simple to use data sources, e.g., one could feed information to <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a> by copy-pasting CSV data, and choosing comma as the "delimiter"</li> <li>create some nice, easy to use, specific templates (using this module) for each individual chart type</li> <li>advertise it better than i did with <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a> and better than the authors of <a href="/w/index.php?title=Template:Line_chart&action=edit&redlink=1" class="new" title="Template:Line chart (page does not exist)">Template:Line chart</a> did with that template.</li></ol> <p>we have a very impressive template called <a href="/w/index.php?title=Template:Line_chart&action=edit&redlink=1" class="new" title="Template:Line chart (page does not exist)">Template:Line chart</a> (copied from french wikipedia <a href="https://fr.wikipedia.org/wiki/Template:Graphique_polygonal" class="extiw" title="fr:Template:Graphique polygonal">fr:Template:Graphique polygonal</a>) which utilizes the easytimeline extension, but because of templating limitations (which Lua solves), it is cumbersome to use, and the template source code itself is practically unreadable and unmaintainable. </p><p>for instance, look at the nice graph in <a href="/wiki/The_Legend_of_Korra" title="The Legend of Korra">The Legend of Korra</a>, the graph code is copied here: </p> <pre>{{Line chart | color_background = white | width = 600 | height = 350 | padding_left = 40 | padding_right = 15 | padding_top = 10 | padding_bottom = 20 | number_of_series = 2 | number_of_x-values = 11 | label_x1 = Ep. 1/2 | label_x2 = Ep. 3 | label_x3 = Ep. 4 | label_x4 = Ep. 5 | label_x5 = Ep. 6 | label_x6 = Ep. 7 | label_x7 = Ep. 8 | label_x8 = Ep. 9 | label_x9 = Ep. 10 | label_x10 = Ep. 11/12 | label_x11 = Ep. 13/14 | y_max = 5000 | scale = yes | points = yes | color_series_1 = blue | color_series_2 = black | thickness_series1 = 1 | thickness_series2 = 1 | S01V01 = 4550 | S01V02 = 3550 | S01V03 = 4080 | S01V04 = 3780 | S01V05 = 3880 | S01V06 = 3450 | S01V07 = 2980 | S01V08 = 3580 | S01V09 = 3540 | S01V10 = 3680 | S02V01 = 2600 | S02V02 = 2190 | S02V03 = 2380 | S02V04 = 1100 | S02V05 = 1950 | S02V06 = 1730 | S02V07 = 1730 | S02V08 = 2470 | S02V09 = 2220 | S02V10 = 1870 | S02V11 = 2090 | }} </pre> <p>(i added some line breaks to make it easier to read as "pre" because pre does not do line wrap) </p><p>compare with something like: </p> <pre>{{Line chart | color_background = white | width = 600 | height = 350 | padding_left = 40 | padding_right = 15 | padding_top = 10 | padding_bottom = 20 | delimiter = , | x-labels = Ep. 1/2 , Ep. 3 , Ep. 4 , Ep. 5 , Ep. 6 , Ep. 7 , Ep. 8 , Ep. 9 , Ep. 10 , Ep. 11/12 , Ep. 13/14 | scale = yes | points = yes | colors = blue , black | group names = Book One: "Air" (2012) , Book Two: "Spirits" (2013) | thickness = 1 , 1 | group 1 = 4550 , 3550 , 4080 , 3780 , 3880 , 3450 , 2980 , 3580 , 3540 , 3680 | group 2 = 2600 , 2190 , 2380 , 1100 , 1950 , 1730 , 1730 , 2470 , 2220 , 1870 , 2090 }} </pre> <p>now, the difference may not seem dramatic, but imaging adding 4 more data-series: with the "S03V11" notation this is tedious and error prone, and with the 2nd format this can be copied as-is from same data source that uses CSV (export directly from excel). </p> <div class="mw-heading mw-heading4"><h4 id="TLDR" data-mw-thread-id="h-TLDR-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"><span data-mw-comment-start="" id="h-TLDR-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"></span>TLDR<span data-mw-comment-end="h-TLDR-overhaul_Module:Chart-2014-09-22T22:54:00.000Z"></span></h4></div> <p><b><span data-mw-comment-start="" id="c-קיפודנחש-2014-09-22T22:54:00.000Z-TLDR"></span>Challenge</b>: </p> <ul><li>convert the bar graphs in <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a> to use the timeline extension, possibly while improving the module syntax, add line-chart and horizontal bar-chart options, all with unified syntax.</li> <li>as much as possible, continue supporting the useful stuff in current module, such as hot-links and useful tooltip for individual bars, allow multiple axes, etc.</li> <li>create individual easy to use templates for each chart type (vertical bar chart, stacked v-bar, h-bar, line chart)</li></ul> <p>peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-09-22T22:54:00.000Z-TLDR" class="ext-discussiontools-init-timestamplink">22:54, 22 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-09-22T22:54:00.000Z-TLDR"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-22T22:54:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":1,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-22T22:54:00.000Z-TLDR","replies":["c-Anomie-2014-09-23T10:25:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-22T22:54:00.000Z"],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-09-22T22:54:00.000Z-TLDR"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Anomie-2014-09-23T10:25:00.000Z-קיפודנחש-2014-09-22T22:54:00.000Z"></span>I wonder what the chances are of getting <a href="https://www.mediawiki.org/wiki/Extension:Graph" class="extiw" title="mw:Extension:Graph">mw:Extension:Graph</a> enabled. <a href="/wiki/User:Anomie" title="User:Anomie">Anomie</a><a href="/wiki/User_talk:Anomie" title="User talk:Anomie">⚔</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Anomie-2014-09-23T10:25:00.000Z-קיפודנחש-2014-09-22T22:54:00.000Z" class="ext-discussiontools-init-timestamplink">10:25, 23 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Anomie-2014-09-23T10:25:00.000Z-קיפודנחש-2014-09-22T22:54:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-23T10:25:00.000Z","author":"Anomie","type":"comment","level":2,"id":"c-Anomie-2014-09-23T10:25:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-22T22:54:00.000Z","replies":["c-Jackmcbarn-2014-09-23T20:06:00.000Z-Anomie-2014-09-23T10:25:00.000Z"]}}--></span><span data-mw-comment-end="c-Anomie-2014-09-23T10:25:00.000Z-קיפודנחש-2014-09-22T22:54:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Jackmcbarn-2014-09-23T20:06:00.000Z-Anomie-2014-09-23T10:25:00.000Z"></span>I note that extension doesn't work at all without JavaScript. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-09-23T20:06:00.000Z-Anomie-2014-09-23T10:25:00.000Z" class="ext-discussiontools-init-timestamplink">20:06, 23 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-09-23T20:06:00.000Z-Anomie-2014-09-23T10:25:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-23T20:06:00.000Z","author":"Jackmcbarn","type":"comment","level":3,"id":"c-Jackmcbarn-2014-09-23T20:06:00.000Z-Anomie-2014-09-23T10:25:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-23T23:31:00.000Z-Jackmcbarn-2014-09-23T20:06:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-09-23T20:06:00.000Z-Anomie-2014-09-23T10:25:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-קיפודנחש-2014-09-23T23:31:00.000Z-Jackmcbarn-2014-09-23T20:06:00.000Z"></span>@<a href="/wiki/User:Anomie" title="User:Anomie">Anomie</a>:</span> instead of going with old abandonware, i'd much rather have some way to utilize inline-svg: i do not see any advantage to JS-dependant canvas which this extension uses. if we go the JS route, i'd rather use something nice and "standard" (and maintained) like <a href="/wiki/Rapha%C3%ABl_(JavaScript_library)" title="Raphaël (JavaScript library)">Raphaël</a>.</dd> <dd>however, since you mentioned the "Graph" extension: seeing that this extension expects input using JSON serialization, what do you think about adding json support to scribunto? would be nice to be able to serialize and deserialize lua object to json and vice versa, and i'm sure it will be useful elsewhere. peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-09-23T23:31:00.000Z-Jackmcbarn-2014-09-23T20:06:00.000Z" class="ext-discussiontools-init-timestamplink">23:31, 23 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-09-23T23:31:00.000Z-Jackmcbarn-2014-09-23T20:06:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-23T23:31:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":4,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-23T23:31:00.000Z-Jackmcbarn-2014-09-23T20:06:00.000Z","replies":["c-Jackmcbarn-2014-09-23T23:40:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-23T23:31:00.000Z","c-Anomie-2014-09-24T10:20:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-23T23:31:00.000Z"],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-09-23T23:31:00.000Z-Jackmcbarn-2014-09-23T20:06:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2014-09-23T23:40:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z"></span>@<a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש</a>:</span> See <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=45470" class="extiw" title="bugzilla:45470">bugzilla:45470</a> for JSON support. I don't see JSON as being very useful in this particular case, though. Much more useful would be the ability to just emit SVG text from Scribunto, which <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=64460" class="extiw" title="bugzilla:64460">bugzilla:64460</a> is about. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-09-23T23:40:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z" class="ext-discussiontools-init-timestamplink">23:40, 23 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-09-23T23:40:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-23T23:40:00.000Z","author":"Jackmcbarn","type":"comment","level":5,"id":"c-Jackmcbarn-2014-09-23T23:40:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-23T23:31:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-09-23T23:40:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z"></span></dd> <dd><span class="template-ping"><span data-mw-comment-start="" id="c-Anomie-2014-09-24T10:20:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z"></span>@<a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש</a>:</span> There's a new "Extension:Graph" replacing the abandonware one. Or is "abandonware" referring to something used in the extension?</dd> <dd>But that it doesn't work without JS is problematic (thanks <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> for pointing that out). I filed <a href="https://phabricator.wikimedia.org/T73227" class="extiw" title="phabricator:T73227">T73227</a>, and I agree that without a reasonable fix there Graph isn't ready for use at all.</dd> <dd>As for <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=45470" class="extiw" title="bugzilla:45470">bugzilla:45470</a>, I'm thinking we're going to have to do that with the rise in stuff like <a href="https://www.mediawiki.org/wiki/Extension:JsonConfig" class="extiw" title="mw:Extension:JsonConfig">mw:Extension:JsonConfig</a>. <a href="/wiki/User:Anomie" title="User:Anomie">Anomie</a><a href="/wiki/User_talk:Anomie" title="User talk:Anomie">⚔</a> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Anomie-2014-09-24T10:20:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z" class="ext-discussiontools-init-timestamplink">10:20, 24 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Anomie-2014-09-24T10:20:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-24T10:20:00.000Z","author":"Anomie","type":"comment","level":5,"id":"c-Anomie-2014-09-24T10:20:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-23T23:31:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z"]}}--></span><span data-mw-comment-end="c-Anomie-2014-09-24T10:20:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z"></span>bottom line: some way to use scribunto to generate and display inline-svg seems to be the best way to do things long-term.</dd> <dd>however, for the medium and short term, i'd still like to see either <a href="/wiki/Module:Chart" title="Module:Chart">Module:Chart</a> converted to use easytimeline for the bar chart, or a new module making easytimeline use easy and convenient written. i outlined above how i see it, but it will be even better if other people suggest improvements to the syntax, or better syntax altogether. i will not have time in the near future to do the actual coding myself, and i sure hope someone else will. peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z" class="ext-discussiontools-init-timestamplink">13:19, 24 September 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-09-24T13:19:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":6,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Tobias1984-2014-10-20T22:24:00.000Z","type":"heading","level":0,"id":"h-Fork_Infobox_drugs-2014-10-20T22:24:00.000Z","replies":["c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs"],"uneditableSection":true,"text":"Fork Infobox drugs","linkableTitle":"Fork Infobox drugs"}--><h2 id="Fork_Infobox_drugs" data-mw-thread-id="h-Fork_Infobox_drugs-2014-10-20T22:24:00.000Z"><span data-mw-comment-start="" id="h-Fork_Infobox_drugs-2014-10-20T22:24:00.000Z"></span>Fork Infobox drugs<span data-mw-comment-end="h-Fork_Infobox_drugs-2014-10-20T22:24:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Tobias1984-2014-10-20T22:24:00.000Z","type":"heading","level":0,"id":"h-Fork_Infobox_drugs-2014-10-20T22:24:00.000Z","replies":["c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z","timestamp":"2014-10-22T09:42:00.000Z"}__--><!--__DTCOMMENTCOUNT__6__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Tobias1984-2014-10-20T22:24:00.000Z","type":"heading","level":0,"id":"h-Fork_Infobox_drugs-2014-10-20T22:24:00.000Z","replies":["c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs"],"uneditableSection":true,"text":"Fork Infobox drugs","linkableTitle":"Fork Infobox drugs"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs"></span>Can somebody set up a Lua-fork of <a href="/wiki/Template:Infobox_drug" title="Template:Infobox drug">Template:Infobox_drug</a> for me at e.g. <a href="/w/index.php?title=Template:Infobox_drug/Lua-fork&action=edit&redlink=1" class="new" title="Template:Infobox drug/Lua-fork (page does not exist)">Template:Infobox_drug/Lua-fork</a>? I don't need the whole box, just the basic set up for a Wikidata-infobox and maybe one property as an example so I can work from there. I couldn't find a how-to guide for converting an infobox into Lua, but will volunteer to write a step-by-step guide as I go along for other people that are interested in this. --<a href="/wiki/User:Tobias1984" title="User:Tobias1984">Tobias1984</a> (<a href="/wiki/User_talk:Tobias1984" title="User talk:Tobias1984">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs" class="ext-discussiontools-init-timestamplink">22:24, 20 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-20T22:24:00.000Z","author":"Tobias1984","type":"comment","level":1,"id":"c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs","replies":["c-Jackmcbarn-2014-10-20T22:52:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z","c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z"]}}--></span><span data-mw-comment-end="c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Jackmcbarn-2014-10-20T22:52:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z"></span>Forks are a terrible idea. Why not just rewrite the real template to use Lua? <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-10-20T22:52:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z" class="ext-discussiontools-init-timestamplink">22:52, 20 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-10-20T22:52:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-20T22:52:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-10-20T22:52:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z","replies":["c-Tobias1984-2014-10-20T23:22:00.000Z-Jackmcbarn-2014-10-20T22:52:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-10-20T22:52:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Tobias1984-2014-10-20T23:22:00.000Z-Jackmcbarn-2014-10-20T22:52:00.000Z"></span>@<a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a>:</span> I would like to experiment with a new layout and put it up for discussion if it should be implemented. Do you think that I should just modify the current Infobox code in a separate place? -<a href="/wiki/User:Tobias1984" title="User:Tobias1984">Tobias1984</a> (<a href="/wiki/User_talk:Tobias1984" title="User talk:Tobias1984">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Tobias1984-2014-10-20T23:22:00.000Z-Jackmcbarn-2014-10-20T22:52:00.000Z" class="ext-discussiontools-init-timestamplink">23:22, 20 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Tobias1984-2014-10-20T23:22:00.000Z-Jackmcbarn-2014-10-20T22:52:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-20T23:22:00.000Z","author":"Tobias1984","type":"comment","level":3,"id":"c-Tobias1984-2014-10-20T23:22:00.000Z-Jackmcbarn-2014-10-20T22:52:00.000Z","replies":["c-Jackmcbarn-2014-10-20T23:35:00.000Z-Tobias1984-2014-10-20T23:22:00.000Z"]}}--></span><span data-mw-comment-end="c-Tobias1984-2014-10-20T23:22:00.000Z-Jackmcbarn-2014-10-20T22:52:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Jackmcbarn-2014-10-20T23:35:00.000Z-Tobias1984-2014-10-20T23:22:00.000Z"></span>The proper place to do that is in <a href="/wiki/Template:Infobox_drug/sandbox" title="Template:Infobox drug/sandbox">Template:Infobox drug/sandbox</a>. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2014-10-20T23:35:00.000Z-Tobias1984-2014-10-20T23:22:00.000Z" class="ext-discussiontools-init-timestamplink">23:35, 20 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2014-10-20T23:35:00.000Z-Tobias1984-2014-10-20T23:22:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-20T23:35:00.000Z","author":"Jackmcbarn","type":"comment","level":4,"id":"c-Jackmcbarn-2014-10-20T23:35:00.000Z-Tobias1984-2014-10-20T23:22:00.000Z","replies":["c-Tobias1984-2014-10-21T12:02:00.000Z-Jackmcbarn-2014-10-20T23:35:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2014-10-20T23:35:00.000Z-Tobias1984-2014-10-20T23:22:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Tobias1984-2014-10-21T12:02:00.000Z-Jackmcbarn-2014-10-20T23:35:00.000Z"></span>I made my a sandbox page now at <a href="/wiki/Template:Infobox_drug/sandbox3" class="mw-redirect" title="Template:Infobox drug/sandbox3">Template:Infobox_drug/sandbox3</a> and informed WikiProject Pharmacology. I am testing the infobox here: <a href="/wiki/User:Tobias1984/Infobox_drug_test" title="User:Tobias1984/Infobox drug test">User:Tobias1984/Infobox drug test</a> Is there any way to pretend-connect the page with the <a href="https://www.wikidata.org/wiki/Q407431" class="extiw" title="d:Q407431">WD-item for Warfarin</a>, so I don't see the template error? -<a href="/wiki/User:Tobias1984" title="User:Tobias1984">Tobias1984</a> (<a href="/wiki/User_talk:Tobias1984" title="User talk:Tobias1984">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Tobias1984-2014-10-21T12:02:00.000Z-Jackmcbarn-2014-10-20T23:35:00.000Z" class="ext-discussiontools-init-timestamplink">12:02, 21 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Tobias1984-2014-10-21T12:02:00.000Z-Jackmcbarn-2014-10-20T23:35:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-21T12:02:00.000Z","author":"Tobias1984","type":"comment","level":5,"id":"c-Tobias1984-2014-10-21T12:02:00.000Z-Jackmcbarn-2014-10-20T23:35:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Tobias1984-2014-10-21T12:02:00.000Z-Jackmcbarn-2014-10-20T23:35:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd> <dd><span data-mw-comment-start="" id="c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z"></span>I'm going to move this question to <a href="/wiki/Module_talk:Wikidata" title="Module talk:Wikidata">Module talk:Wikidata</a> where it might be more appropriate. -<a href="/wiki/User:Tobias1984" title="User:Tobias1984">Tobias1984</a> (<a href="/wiki/User_talk:Tobias1984" title="User talk:Tobias1984">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z" class="ext-discussiontools-init-timestamplink">09:42, 22 October 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-10-22T09:42:00.000Z","author":"Tobias1984","type":"comment","level":2,"id":"c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Boghog-2014-11-02T14:53:00.000Z","type":"heading","level":0,"id":"h-Creating_new_template_parameters_with_Lua-2014-11-02T14:53:00.000Z","replies":["c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua"],"uneditableSection":true,"text":"Creating new template parameters with Lua","linkableTitle":"Creating new template parameters with Lua"}--><h2 id="Creating_new_template_parameters_with_Lua" data-mw-thread-id="h-Creating_new_template_parameters_with_Lua-2014-11-02T14:53:00.000Z"><span data-mw-comment-start="" id="h-Creating_new_template_parameters_with_Lua-2014-11-02T14:53:00.000Z"></span>Creating new template parameters with Lua<span data-mw-comment-end="h-Creating_new_template_parameters_with_Lua-2014-11-02T14:53:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Boghog-2014-11-02T14:53:00.000Z","type":"heading","level":0,"id":"h-Creating_new_template_parameters_with_Lua-2014-11-02T14:53:00.000Z","replies":["c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z","timestamp":"2014-11-02T18:13:00.000Z"}__--><!--__DTCOMMENTCOUNT__4__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Boghog-2014-11-02T14:53:00.000Z","type":"heading","level":0,"id":"h-Creating_new_template_parameters_with_Lua-2014-11-02T14:53:00.000Z","replies":["c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua"],"uneditableSection":true,"text":"Creating new template parameters with Lua","linkableTitle":"Creating new template parameters with Lua"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua"></span>I am trying to use a Lua module to create template parameters. What I would like to do is to parse the value of a single parameter to produce several new parameter/value pairs. The template in question is <span class="nowrap">{{</span><a href="/wiki/Template:Vcite2_journal" class="mw-redirect" title="Template:Vcite2 journal">Vcite2 journal</a><span class="nowrap">}}</span> in which I invoke <a href="/w/index.php?title=Module:ParseVauthors&action=edit&redlink=1" class="new" title="Module:ParseVauthors (page does not exist)">Module:ParseVauthors</a>. I would like the module to parse a comma delimited list stored in <code class="tpl-para" style="word-break:break-word;">|vauthors=</code> and return one or more <code class="tpl-para" style="word-break:break-word;">|authorn=</code>. </p><p>The following is a test case: </p> <dl><dd><ul><li>{{vcite2 journal | vauthors = Bannen RM, Suresh V, Phillips GN, Wright SJ, Mitchell J | year = 2008 | title = Optimal design of thermally stable proteins | url = http://bioinformatics.oxfordjournals.org/cgi/content/full/24/20/2339 | journal = Bioinformatics | volume = 24 | issue = 20 | pages = 2339–43 | doi = 10.1093/bioinformatics/btn450 | pmc = 2562006 | pmid = 18723523 }} →</li> <li><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite id="CITEREFBannenSureshPhillipsWright2008" class="citation journal cs1">Bannen RM, Suresh V, Phillips GJ, Wright SJ, Mitchell J (2008). <a rel="nofollow" class="external text" href="http://bioinformatics.oxfordjournals.org/cgi/content/full/24/20/2339">"Optimal design of thermally stable proteins"</a>. <i>Bioinformatics</i>. <b>24</b> (20): 2339–43. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1093%2Fbioinformatics%2Fbtn450">10.1093/bioinformatics/btn450</a>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2562006">2562006</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a> <a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/18723523">18723523</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Bioinformatics&rft.atitle=Optimal+design+of+thermally+stable+proteins&rft.volume=24&rft.issue=20&rft.pages=2339-43&rft.date=2008&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC2562006%23id-name%3DPMC&rft_id=info%3Apmid%2F18723523&rft_id=info%3Adoi%2F10.1093%2Fbioinformatics%2Fbtn450&rft.aulast=Bannen&rft.aufirst=RM&rft.au=Suresh%2C+V&rft.au=Phillips%2C+GJ&rft.au=Wright%2C+SJ&rft.au=Mitchell%2C+J&rft_id=http%3A%2F%2Fbioinformatics.oxfordjournals.org%2Fcgi%2Fcontent%2Ffull%2F24%2F20%2F2339&rfr_id=info%3Asid%2Fen.wikipedia.org%3AWikipedia%3ALua%2FRequests%2FArchive+4" class="Z3988"></span></li></ul></dd></dl> <p>Obviously <a href="/w/index.php?title=Module:ParseVauthors&action=edit&redlink=1" class="new" title="Module:ParseVauthors (page does not exist)">Module:ParseVauthors</a> is not working because the author list is blank in the rendered citation (apparently author1 = Bannen RM, author2 = Suresh V, author3 = Phillips GN, author4 = Wright SJ, author5 = Mitchell J are not being generated). Note: the "Unknown parameter" is a separate problem (somehow I need to "destroy" <code class="tpl-para" style="word-break:break-word;">|vauthors=</code> after it is parsed). </p><p>Suggestions on how to get this to work would be most appreciated. <a href="/wiki/User:Boghog" title="User:Boghog">Boghog</a> (<a href="/wiki/User_talk:Boghog" title="User talk:Boghog">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua" class="ext-discussiontools-init-timestamplink">14:53, 2 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-02T14:53:00.000Z","author":"Boghog","type":"comment","level":1,"id":"c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua","replies":["c-Mr._Stradivarius-2014-11-02T15:29:00.000Z-Boghog-2014-11-02T14:53:00.000Z"]}}--></span><span data-mw-comment-end="c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua"></span> </p> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-11-02T15:29:00.000Z-Boghog-2014-11-02T14:53:00.000Z"></span>@<a href="/wiki/User:Boghog" title="User:Boghog">Boghog</a>:</span> I see that you're trying to pass things to the template by using <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="nb">_G</span><span class="p">[</span><span class="s2">"author"</span><span class="o">..</span><span class="n">i</span><span class="p">]</span><span class="o">=</span><span class="n">myTable</span><span class="p">[</span><span class="n">i</span><span class="p">]</span></code>, but that won't work, as _G doesn't have anything to do with the template. _G is a table containing all the global variables available to the module, but the template arguments are contained in <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Frame_object" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">frame objects</a>. And you can only read template arguments in a frame object, you can't write to them. (Well, you can overwrite them, but that only affects the table in the Lua module, it doesn't affect the actual template.) To access a template from Lua you need to use <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:expandTemplate" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">frame:expandTemplate</a>, or perhaps <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:preprocess" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">frame:preprocess</a> depending on the situation. Also, there are <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Differences_from_standard_Lua" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">a few differences</a> between standard Lua 5.1 and the Lua 5.1 that is used in Scribunto; for your module, this means that the print function won't work. You need to use return values instead. Also, it means that your string:split function won't work as intended, as the string table available to modules is a copy of the string table available to strings. E.g.:</dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nc">string</span><span class="p">.</span><span class="nf">foo</span> <span class="p">()</span> <span class="kr">return</span> <span class="s1">'Hello!'</span> <span class="kr">end</span> <span class="kd">local</span> <span class="n">s</span> <span class="o">=</span> <span class="s1">'I am a string.'</span> <span class="c1">-- This will log 'Hello!' to the console:</span> <span class="n">mw</span><span class="p">.</span><span class="n">log</span><span class="p">(</span><span class="n">string</span><span class="p">.</span><span class="n">foo</span><span class="p">(</span><span class="n">s</span><span class="p">))</span> <span class="c1">-- This will produce an error "attempt to call method 'foo' (a nil value)."</span> <span class="n">mw</span><span class="p">.</span><span class="n">log</span><span class="p">(</span><span class="n">s</span><span class="p">:</span><span class="n">foo</span><span class="p">())</span> </pre></div> <dl><dd>However, in this case there is already a function in the text library for splitting strings - see <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#mw.text.split" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">mw.text.split</a>. Hope this helps, and if you have any more questions, don't hesitate to ask. Best — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-11-02T15:29:00.000Z-Boghog-2014-11-02T14:53:00.000Z" class="ext-discussiontools-init-timestamplink">15:29, 2 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-11-02T15:29:00.000Z-Boghog-2014-11-02T14:53:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-02T15:29:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-11-02T15:29:00.000Z-Boghog-2014-11-02T14:53:00.000Z","replies":["c-Mr._Stradivarius-2014-11-02T16:28:00.000Z-Mr._Stradivarius-2014-11-02T15:29:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-11-02T15:29:00.000Z-Boghog-2014-11-02T14:53:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Mr._Stradivarius-2014-11-02T16:28:00.000Z-Mr._Stradivarius-2014-11-02T15:29:00.000Z"></span>@<a href="/wiki/User:Boghog" title="User:Boghog">Boghog</a>:</span> I thought showing you the sort of thing that needed to be done might be quickest, so I've made some updates to <a href="/w/index.php?title=Module:ParseVauthors&action=edit&redlink=1" class="new" title="Module:ParseVauthors (page does not exist)">Module:ParseVauthors</a> and <a href="/wiki/Template:Vcite2_journal" class="mw-redirect" title="Template:Vcite2 journal">Template:Vcite2 journal</a> for you. — <i><b><a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius"><span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span></a></b></i> <sup><a href="/wiki/User_talk:Mr._Stradivarius" title="User talk:Mr. Stradivarius">♪ talk ♪</a></sup> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Mr._Stradivarius-2014-11-02T16:28:00.000Z-Mr._Stradivarius-2014-11-02T15:29:00.000Z" class="ext-discussiontools-init-timestamplink">16:28, 2 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Mr._Stradivarius-2014-11-02T16:28:00.000Z-Mr._Stradivarius-2014-11-02T15:29:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-02T16:28:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-11-02T16:28:00.000Z-Mr._Stradivarius-2014-11-02T15:29:00.000Z","replies":["c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z"]}}--></span><span data-mw-comment-end="c-Mr._Stradivarius-2014-11-02T16:28:00.000Z-Mr._Stradivarius-2014-11-02T15:29:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z"></span>@<a href="/wiki/User:Mr._Stradivarius" title="User:Mr. Stradivarius">Mr. Stradivarius</a>:</span> Fantastic! Your clear explanation and extremely helpful edits to the module and template so that they work as I had intended are greatly appreciated. Cheers. <a href="/wiki/User:Boghog" title="User:Boghog">Boghog</a> (<a href="/wiki/User_talk:Boghog" title="User talk:Boghog">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z" class="ext-discussiontools-init-timestamplink">18:13, 2 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-02T18:13:00.000Z","author":"Boghog","type":"comment","level":4,"id":"c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-DePiep-2014-11-03T10:11:00.000Z","type":"heading","level":0,"id":"h-New_entry_for_module:infobox-2014-11-03T10:11:00.000Z","replies":["c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox"],"uneditableSection":true,"text":"New entry for module:infobox","linkableTitle":"New entry for module:infobox"}--><h2 id="New_entry_for_module:infobox" data-mw-thread-id="h-New_entry_for_module:infobox-2014-11-03T10:11:00.000Z"><span data-mw-comment-start="" id="h-New_entry_for_module:infobox-2014-11-03T10:11:00.000Z"></span>New entry for module:infobox<span data-mw-comment-end="h-New_entry_for_module:infobox-2014-11-03T10:11:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-DePiep-2014-11-03T10:11:00.000Z","type":"heading","level":0,"id":"h-New_entry_for_module:infobox-2014-11-03T10:11:00.000Z","replies":["c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox","timestamp":"2014-11-03T10:11:00.000Z"}__--><!--__DTCOMMENTCOUNT__1__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-DePiep-2014-11-03T10:11:00.000Z","type":"heading","level":0,"id":"h-New_entry_for_module:infobox-2014-11-03T10:11:00.000Z","replies":["c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox"],"uneditableSection":true,"text":"New entry for module:infobox","linkableTitle":"New entry for module:infobox"}--></div></div></div> <p><span data-mw-comment-start="" id="c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox"></span>About module <span class="plainlinks nourlexpansion lx" style=""> <a href="/wiki/Module:Infobox" title="Module:Infobox">Infobox</a> <span style="font-size:85%;">(<a class="external text" href="https://en.wikipedia.org/w/index.php?title=Module:Infobox&action=edit">edit</a> <b>·</b> <a href="/wiki/Module_talk:Infobox" class="mw-redirect" title="Module talk:Infobox">talk</a> <b>·</b> <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Module:Infobox&action=history">history</a> <b>·</b> <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere/Module:Infobox&limit=999">links</a> <b>·</b> <a class="external text" href="https://en.wikipedia.org/wiki/Special:PrefixIndex/Module:Infobox/">/subpages</a> <b>·</b> <a href="/wiki/Module:Infobox/doc" title="Module:Infobox/doc">/doc</a> <b>·</b> <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Module:Infobox/doc&action=edit">/doc edit</a> <b>·</b> <a href="/wiki/Module:Infobox/sandbox" title="Module:Infobox/sandbox">/sbox</a> <b>·</b> <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3AInfobox&page2=Module%3AInfobox%2Fsandbox">/sbox diff</a> <b>·</b> <a href="/wiki/Module:Infobox/testcases" class="mw-redirect" title="Module:Infobox/testcases">/test</a></span><span style="font-size:85%;"> <b>·</b> <a href="/wiki/Template:Infobox" title="Template:Infobox">Template:infobox</a>)</span></span> . At the template talkpage, there was was a <a href="/wiki/Template_talk:Infobox#subtitle" title="Template talk:Infobox">request</a> to add parameter <code class="tpl-para" style="word-break:break-word;">|subtitle=</code>. After a sidetracking, I <a href="/wiki/Template_talk:Infobox#Topic_.27subtitle.27_restart" title="Template talk:Infobox">refocused</a> the discussion. Can someone write the Lua code for this entry, say in the sandbox? It should take semantics into consideration. I made a few simple suggestions there. -<a href="/wiki/User:DePiep" title="User:DePiep">DePiep</a> (<a href="/wiki/User_talk:DePiep" title="User talk:DePiep">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox" class="ext-discussiontools-init-timestamplink">10:11, 3 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-03T10:11:00.000Z","author":"DePiep","type":"comment","level":1,"id":"c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox","replies":[]}}--></span><span data-mw-comment-end="c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox"></span> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-DePiep-2014-11-10T22:56:00.000Z","type":"heading","level":0,"id":"h-My_getArgs_disappears_the_first_unnamed_1=_argument-2014-11-10T22:56:00.000Z","replies":["c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument"],"uneditableSection":true,"text":"My getArgs disappears the first unnamed 1= argument","linkableTitle":"My getArgs disappears the first unnamed 1= argument"}--><h2 id="My_getArgs_disappears_the_first_unnamed_1=_argument" data-mw-thread-id="h-My_getArgs_disappears_the_first_unnamed_1=_argument-2014-11-10T22:56:00.000Z"><span id="My_getArgs_disappears_the_first_unnamed_1.3D_argument"></span><span data-mw-comment-start="" id="h-My_getArgs_disappears_the_first_unnamed_1=_argument-2014-11-10T22:56:00.000Z"></span>My getArgs disappears the first unnamed 1= argument<span data-mw-comment-end="h-My_getArgs_disappears_the_first_unnamed_1=_argument-2014-11-10T22:56:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-DePiep-2014-11-10T22:56:00.000Z","type":"heading","level":0,"id":"h-My_getArgs_disappears_the_first_unnamed_1=_argument-2014-11-10T22:56:00.000Z","replies":["c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Pawe\u0142_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z","timestamp":"2014-11-11T21:41:00.000Z"}__--><!--__DTCOMMENTCOUNT__4__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-DePiep-2014-11-10T22:56:00.000Z","type":"heading","level":0,"id":"h-My_getArgs_disappears_the_first_unnamed_1=_argument-2014-11-10T22:56:00.000Z","replies":["c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument"],"uneditableSection":true,"text":"My getArgs disappears the first unnamed 1= argument","linkableTitle":"My getArgs disappears the first unnamed 1= argument"}--></div></div></div> <p><span data-mw-comment-start="" id="c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument"></span>I am researching <a href="/wiki/Module:Arguments" title="Module:Arguments">module:Arguments</a> to get learn it. Now, when I echo my input arguments (getArgs), there is this: </p> <ol><li>{{#invoke:User:DePiep/cc|echo|foo|bar}} → #1: foo, #2: bar <span typeof="mw:File"><span><img alt="Green tick" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/13px-Green_check.svg.png" decoding="async" width="13" height="13" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/20px-Green_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/26px-Green_check.svg.png 2x" data-file-width="600" data-file-height="600"/></span></span><span style="display:none">Y</span></li> <li>{{#invoke:User:DePiep/cc|echo|1=foo|bar}} → #1: bar <span typeof="mw:File"><span><img alt="Red X" src="//upload.wikimedia.org/wikipedia/en/thumb/b/ba/Red_x.svg/13px-Red_x.svg.png" decoding="async" width="13" height="13" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/b/ba/Red_x.svg/20px-Red_x.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/b/ba/Red_x.svg/26px-Red_x.svg.png 2x" data-file-width="600" data-file-height="600"/></span></span><span style="display: none;">N</span></li></ol> <p><a href="/w/index.php?title=Module:User:DePiep/cc&action=edit&redlink=1" class="new" title="Module:User:DePiep/cc (page does not exist)">module:User:DePiep/cc</a> </p><p>(More code or proof needed?) In test 2 the first parameter has is not seen. Any hints?. -<a href="/wiki/User:DePiep" title="User:DePiep">DePiep</a> (<a href="/wiki/User_talk:DePiep" title="User talk:DePiep">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument" class="ext-discussiontools-init-timestamplink">22:56, 10 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-10T22:56:00.000Z","author":"DePiep","type":"comment","level":1,"id":"c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument","replies":["c-Johnuniq-2014-11-10T23:09:00.000Z-DePiep-2014-11-10T22:56:00.000Z"]}}--></span><span data-mw-comment-end="c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2014-11-10T23:09:00.000Z-DePiep-2014-11-10T22:56:00.000Z"></span>That's nothing to do with Lua, it's just the way {{...}} works. I believe the text is parsed left-to-right although I don't recall seeing that in any docs. When "1=foo" is encountered, it sets the first unnamed argument to "foo". When "bar" is encountered, it sets the first unnamed argument to "bar" (which replaces "foo"). After that, the result is passed to #invoke, which calls the module. All templates and module invokes do that. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2014-11-10T23:09:00.000Z-DePiep-2014-11-10T22:56:00.000Z" class="ext-discussiontools-init-timestamplink">23:09, 10 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2014-11-10T23:09:00.000Z-DePiep-2014-11-10T22:56:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-10T23:09:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-11-10T23:09:00.000Z-DePiep-2014-11-10T22:56:00.000Z","replies":["c-DePiep-2014-11-10T23:25:00.000Z-Johnuniq-2014-11-10T23:09:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2014-11-10T23:09:00.000Z-DePiep-2014-11-10T22:56:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-DePiep-2014-11-10T23:25:00.000Z-Johnuniq-2014-11-10T23:09:00.000Z"></span>Wow, you're right. It goes wrong in full wikicode too. I have never met this in old wikicode age (knowingly ...). -<a href="/wiki/User:DePiep" title="User:DePiep">DePiep</a> (<a href="/wiki/User_talk:DePiep" title="User talk:DePiep">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-DePiep-2014-11-10T23:25:00.000Z-Johnuniq-2014-11-10T23:09:00.000Z" class="ext-discussiontools-init-timestamplink">23:25, 10 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DePiep-2014-11-10T23:25:00.000Z-Johnuniq-2014-11-10T23:09:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-10T23:25:00.000Z","author":"DePiep","type":"comment","level":3,"id":"c-DePiep-2014-11-10T23:25:00.000Z-Johnuniq-2014-11-10T23:09:00.000Z","replies":["c-Pawe\u0142_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z"]}}--></span><span data-mw-comment-end="c-DePiep-2014-11-10T23:25:00.000Z-Johnuniq-2014-11-10T23:09:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Paweł_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z"></span>And there is a plenty of such incorrect usages, which are tracked by the <a href="/wiki/Category:Pages_using_duplicate_arguments_in_template_calls" title="Category:Pages using duplicate arguments in template calls">Category:Pages using duplicate arguments in template calls</a>. <a href="/wiki/User:Pawe%C5%82_Ziemian" title="User:Paweł Ziemian">Paweł Ziemian</a> (<a href="/wiki/User_talk:Pawe%C5%82_Ziemian" title="User talk:Paweł Ziemian">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Paweł_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z" class="ext-discussiontools-init-timestamplink">21:41, 11 November 2014 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Paweł_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2014-11-11T21:41:00.000Z","author":"Pawe\u0142 Ziemian","type":"comment","level":4,"id":"c-Pawe\u0142_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Paweł_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z"></span></dd></dl></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Arjunaraoc-2015-02-10T01:42:00.000Z","type":"heading","level":0,"id":"h-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-2015-02-10T01:42:00.000Z","replies":["c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP"],"uneditableSection":true,"text":"Help fix Script error on Telugu WP Templates which are imported from English WP","linkableTitle":"Help fix Script error on Telugu WP Templates which are imported from English WP"}--><h2 id="Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP" data-mw-thread-id="h-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-2015-02-10T01:42:00.000Z"><span data-mw-comment-start="" id="h-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-2015-02-10T01:42:00.000Z"></span>Help fix Script error on Telugu WP Templates which are imported from English WP<span data-mw-comment-end="h-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-2015-02-10T01:42:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Arjunaraoc-2015-02-10T01:42:00.000Z","type":"heading","level":0,"id":"h-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-2015-02-10T01:42:00.000Z","replies":["c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z","timestamp":"2015-02-10T08:09:00.000Z"}__--><!--__DTCOMMENTCOUNT__3__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Arjunaraoc-2015-02-10T01:42:00.000Z","type":"heading","level":0,"id":"h-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-2015-02-10T01:42:00.000Z","replies":["c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP"],"uneditableSection":true,"text":"Help fix Script error on Telugu WP Templates which are imported from English WP","linkableTitle":"Help fix Script error on Telugu WP Templates which are imported from English WP"}--></div></div></div> <p><a class="external free" href="https://te.wikipedia.org/w/index.php?title=Template:Yesno&oldid=1405292"><span data-mw-comment-start="" id="c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP"></span>https://te.wikipedia.org/w/index.php?title=Template:Yesno&oldid=1405292</a> Template page shows error "Script error: Lua error at line 1: unexpected symbol near '{'" and displays the template script, which is usually not shown. Similarly <a class="external free" href="https://te.wikipedia.org/w/index.php?title=Template:Category_handler">https://te.wikipedia.org/w/index.php?title=Template:Category_handler</a> also shows same error, probably related to Documentation. --<a href="/wiki/User:Arjunaraoc" title="User:Arjunaraoc">Arjunaraoc</a> (<a href="/wiki/User_talk:Arjunaraoc" title="User talk:Arjunaraoc">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP" class="ext-discussiontools-init-timestamplink">01:42, 10 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-10T01:42:00.000Z","author":"Arjunaraoc","type":"comment","level":1,"id":"c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP","replies":["c-Jackmcbarn-2015-02-10T03:10:00.000Z-Arjunaraoc-2015-02-10T01:42:00.000Z"]}}--></span><span data-mw-comment-end="c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP"></span> </p> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-Jackmcbarn-2015-02-10T03:10:00.000Z-Arjunaraoc-2015-02-10T01:42:00.000Z"></span>@<a href="/wiki/User:Arjunaraoc" title="User:Arjunaraoc">Arjunaraoc</a>:</span> You somehow imported our template as a module. Re-import the template as the template and the module as the module, deleting what's already there if necessary. <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> (<a href="/wiki/User_talk:Jackmcbarn" title="User talk:Jackmcbarn">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Jackmcbarn-2015-02-10T03:10:00.000Z-Arjunaraoc-2015-02-10T01:42:00.000Z" class="ext-discussiontools-init-timestamplink">03:10, 10 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Jackmcbarn-2015-02-10T03:10:00.000Z-Arjunaraoc-2015-02-10T01:42:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-10T03:10:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2015-02-10T03:10:00.000Z-Arjunaraoc-2015-02-10T01:42:00.000Z","replies":["c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z"]}}--></span><span data-mw-comment-end="c-Jackmcbarn-2015-02-10T03:10:00.000Z-Arjunaraoc-2015-02-10T01:42:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z"></span>Thanks <a href="/wiki/User:Jackmcbarn" title="User:Jackmcbarn">Jackmcbarn</a> for your response. Your suggestion worked. --<a href="/wiki/User:Arjunaraoc" title="User:Arjunaraoc">Arjunaraoc</a> (<a href="/wiki/User_talk:Arjunaraoc" title="User talk:Arjunaraoc">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z" class="ext-discussiontools-init-timestamplink">08:09, 10 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-10T08:09:00.000Z","author":"Arjunaraoc","type":"comment","level":3,"id":"c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z"></span></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Namoroka-2015-02-15T05:09:00.000Z","type":"heading","level":0,"id":"h-Module:Episode_list-2015-02-15T05:09:00.000Z","replies":["c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list","c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list"],"uneditableSection":true,"text":"Module:Episode list","linkableTitle":"Module:Episode list"}--><h2 id="Module:Episode_list" data-mw-thread-id="h-Module:Episode_list-2015-02-15T05:09:00.000Z"><span data-mw-comment-start="" id="h-Module:Episode_list-2015-02-15T05:09:00.000Z"></span><a href="/wiki/Module:Episode_list" title="Module:Episode list">Module:Episode list</a><span data-mw-comment-end="h-Module:Episode_list-2015-02-15T05:09:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Namoroka-2015-02-15T05:09:00.000Z","type":"heading","level":0,"id":"h-Module:Episode_list-2015-02-15T05:09:00.000Z","replies":["c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list","c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z","timestamp":"2015-02-17T09:45:00.000Z"}__--><!--__DTCOMMENTCOUNT__8__--><!--__DTAUTHORCOUNT__2__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Namoroka-2015-02-15T05:09:00.000Z","type":"heading","level":0,"id":"h-Module:Episode_list-2015-02-15T05:09:00.000Z","replies":["c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list","c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list"],"uneditableSection":true,"text":"Module:Episode list","linkableTitle":"Module:Episode list"}--></div></div></div> <table class="wikitable collapsible collapsed" style="float: right"> <tbody><tr> <th><span data-mw-comment-start="" id="c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list"></span>orginal</th> <th>alias </th></tr> <tr> <td>EpisodeNumber</td> <td>에피소드 번호 </td></tr> <tr> <td>EpisodeNumber2</td> <td>에피소드 번호 2 </td></tr> <tr> <td>Title</td> <td>제목 </td></tr> <tr> <td>RTitle</td> <td>제목 주석 </td></tr> <tr> <td>AltTitle</td> <td>부제 </td></tr> <tr> <td>RAltTitle</td> <td>부제 주석 </td></tr> <tr> <td>Aux1</td> <td>예비1 </td></tr> <tr> <td>DirectedBy</td> <td>감독 </td></tr> <tr> <td>WrittenBy</td> <td>각본 </td></tr> <tr> <td>Aux2</td> <td>예비2 </td></tr> <tr> <td>Aux3</td> <td>예비3 </td></tr> <tr> <td>OriginalAirDate</td> <td>본방송일자 </td></tr> <tr> <td>AltDate</td> <td>방송일자 2 </td></tr> <tr> <td>ProdCode</td> <td>작품번호 </td></tr> <tr> <td>Viewers</td> <td>시청률 </td></tr> <tr> <td>Aux4</td> <td>예비4 </td></tr> <tr> <td>ShortSummary</td> <td>요약 </td></tr> <tr> <td>LineColor</td> <td>선색 </td></tr> <tr> <td>TopColor</td> <td>윗색 </td></tr> <tr> <td>RowColor</td> <td>열색 </td></tr> </tbody></table> <p>Hello, I'm from <a href="/wiki/Ko" class="mw-disambig" title="Ko">Korean Wikipedia</a>. I'd like to make a alias parameter(i.e. Korean parameter name) on my <a href="https://ko.wikipedia.org/wiki/Module:Episode_list" class="extiw" title="ko:Module:Episode list">kowiki</a> but I don't know how to do it. I need some help.--<a href="/wiki/User:Namoroka" title="User:Namoroka">Namoroka</a> (<a href="/wiki/User_talk:Namoroka" title="User talk:Namoroka">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list" class="ext-discussiontools-init-timestamplink">05:09, 15 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-15T05:09:00.000Z","author":"Namoroka","type":"comment","level":1,"id":"c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list","replies":["c-Johnuniq-2015-02-15T06:16:00.000Z-Namoroka-2015-02-15T05:09:00.000Z"]}}--></span><span data-mw-comment-end="c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2015-02-15T06:16:00.000Z-Namoroka-2015-02-15T05:09:00.000Z"></span>I might be able to help if you can give a clear example of what currently works, and something which does not work now, but which you want. On a talk or sandbox page at kowiki would be fine. By example, I mean a template or whatever that calls the module, preferably with a brief description of what it does.</dd> <dd>Oh. Editing the wikitext to post my comment revealed the table at the side, tucked under the archive box. This looks simple, I think, but I still want examples because looking at code without knowing how it is called is a waste of time. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2015-02-15T06:16:00.000Z-Namoroka-2015-02-15T05:09:00.000Z" class="ext-discussiontools-init-timestamplink">06:16, 15 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2015-02-15T06:16:00.000Z-Namoroka-2015-02-15T05:09:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-15T06:16:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2015-02-15T06:16:00.000Z-Namoroka-2015-02-15T05:09:00.000Z","replies":["c-Namoroka-2015-02-15T07:20:00.000Z-Johnuniq-2015-02-15T06:16:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2015-02-15T06:16:00.000Z-Namoroka-2015-02-15T05:09:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Namoroka-2015-02-15T07:20:00.000Z-Johnuniq-2015-02-15T06:16:00.000Z"></span>I copied <a href="/wiki/Module:Episode_list" title="Module:Episode list">Module:Episode list</a> to <a href="https://ko.wikipedia.org/wiki/%EB%AA%A8%EB%93%88:Episode_list" class="extiw" title="ko:모듈:Episode list">here</a> and it works well in English(original) parameters. So I'd like to translate English parameter names into Korean names.--<a href="/wiki/User:Namoroka" title="User:Namoroka">Namoroka</a> (<a href="/wiki/User_talk:Namoroka" title="User talk:Namoroka">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Namoroka-2015-02-15T07:20:00.000Z-Johnuniq-2015-02-15T06:16:00.000Z" class="ext-discussiontools-init-timestamplink">07:20, 15 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Namoroka-2015-02-15T07:20:00.000Z-Johnuniq-2015-02-15T06:16:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-15T07:20:00.000Z","author":"Namoroka","type":"comment","level":3,"id":"c-Namoroka-2015-02-15T07:20:00.000Z-Johnuniq-2015-02-15T06:16:00.000Z","replies":["c-Johnuniq-2015-02-15T09:21:00.000Z-Namoroka-2015-02-15T07:20:00.000Z","c-Johnuniq-2015-02-15T09:26:00.000Z-Namoroka-2015-02-15T07:20:00.000Z"]}}--></span><span data-mw-comment-end="c-Namoroka-2015-02-15T07:20:00.000Z-Johnuniq-2015-02-15T06:16:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2015-02-15T09:21:00.000Z-Namoroka-2015-02-15T07:20:00.000Z"></span>I edited <a href="https://ko.wikipedia.org/wiki/Module:Episode_list" class="extiw" title="ko:Module:Episode list">ko:Module:Episode list</a> to include the aliases you gave. Please check them carefully because I just did a quick copy/paste from the displayed html, and that sometimes corrupts characters. You should now be able to use either enwiki or kowiki argument names; if both are given, the kowiki value will be used. See my comment about _mod. It probably does not matter, but I used Lua's mod function because <a href="https://ko.wikipedia.org/wiki/Module:Math" class="extiw" title="ko:Module:Math">ko:Module:Math</a> is out of date and does not include _mod. I can't resist fiddling a little when editing code, but I only did that on stuff I had to change anyway. I kept all the enwiki names in the module and I suggest you do not try to change that because in the future people will probably want to compare the enwiki and kowiki versions to see if updates are needed, and that will be a lot easier if changes are kept to a minimum. You don't have to translate "Module" and you could restore them. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2015-02-15T09:21:00.000Z-Namoroka-2015-02-15T07:20:00.000Z" class="ext-discussiontools-init-timestamplink">09:21, 15 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2015-02-15T09:21:00.000Z-Namoroka-2015-02-15T07:20:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-15T09:21:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2015-02-15T09:21:00.000Z-Namoroka-2015-02-15T07:20:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Johnuniq-2015-02-15T09:21:00.000Z-Namoroka-2015-02-15T07:20:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-Johnuniq-2015-02-15T09:26:00.000Z-Namoroka-2015-02-15T07:20:00.000Z"></span>By the way, in case it's not obvious, I have not tested the code and have no idea if it works! Let me know what a thorough test shows. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2015-02-15T09:26:00.000Z-Namoroka-2015-02-15T07:20:00.000Z" class="ext-discussiontools-init-timestamplink">09:26, 15 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2015-02-15T09:26:00.000Z-Namoroka-2015-02-15T07:20:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-15T09:26:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2015-02-15T09:26:00.000Z-Namoroka-2015-02-15T07:20:00.000Z","replies":["c-Namoroka-2015-02-15T09:39:00.000Z-Johnuniq-2015-02-15T09:26:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2015-02-15T09:26:00.000Z-Namoroka-2015-02-15T07:20:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Namoroka-2015-02-15T09:39:00.000Z-Johnuniq-2015-02-15T09:26:00.000Z"></span>It works gretly in both English and Korean. Thank you very much indeed! I will update <a href="https://ko.wikipedia.org/wiki/Module:Math" class="extiw" title="ko:Module:Math">ko:Module:Math</a> soon. Thank you once again.--<a href="/wiki/User:Namoroka" title="User:Namoroka">Namoroka</a> (<a href="/wiki/User_talk:Namoroka" title="User talk:Namoroka">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Namoroka-2015-02-15T09:39:00.000Z-Johnuniq-2015-02-15T09:26:00.000Z" class="ext-discussiontools-init-timestamplink">09:39, 15 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Namoroka-2015-02-15T09:39:00.000Z-Johnuniq-2015-02-15T09:26:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-15T09:39:00.000Z","author":"Namoroka","type":"comment","level":5,"id":"c-Namoroka-2015-02-15T09:39:00.000Z-Johnuniq-2015-02-15T09:26:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Namoroka-2015-02-15T09:39:00.000Z-Johnuniq-2015-02-15T09:26:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl> <p><span data-mw-comment-start="" id="c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list"></span>On reflection, what I put in the module is theoretically broken because it only captures expected arguments, namely those listed in the aliases table. If any other arguments, such as an unnamed argument, were used, they would be omitted. I don't think that would be a problem with this module, but following is what I think would fix it (again, very untested). </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">aliases</span> <span class="o">=</span> <span class="p">{</span> <span class="p">[</span><span class="s1">'에피소드 번호'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'EpisodeNumber'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'에피소드 번호 2'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'EpisodeNumber2'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'제목'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Title'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'제목 주석'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'RTitle'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'부제'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'AltTitle'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'부제 주석'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'RAltTitle'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'예비1'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Aux1'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'감독'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'DirectedBy'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'각본'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'WrittenBy'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'예비2'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Aux2'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'예비3'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Aux3'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'본방송일자'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'OriginalAirDate'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'방송일자 2'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'AltDate'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'작품번호'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'ProdCode'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'시청률'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Viewers'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'예비4'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'Aux4'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'요약'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'ShortSummary'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'선색'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'LineColor'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'윗색'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'TopColor'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'열색'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'RowColor'</span><span class="p">,</span> <span class="p">}</span> <span class="kd">local</span> <span class="kr">function</span> <span class="nf">local_args</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="c1">-- Return a new table of arguments using any given local options.</span> <span class="kd">local</span> <span class="n">result</span> <span class="o">=</span> <span class="p">{}</span> <span class="kr">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">v</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="kr">do</span> <span class="n">result</span><span class="p">[</span><span class="n">aliases</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="ow">or</span> <span class="n">k</span><span class="p">]</span> <span class="o">=</span> <span class="n">v</span> <span class="kr">end</span> <span class="kr">return</span> <span class="n">result</span> <span class="kr">end</span> </pre></div> <p>The above operates differently from my previous effort: if both enwiki and kowiki names are given for a particular argument, the result is undefined (either the enwiki or the kowiki value will be used, but it might be either). That situation should never arise so is not a concern. </p><p><a href="/wiki/Module:Episode_list" title="Module:Episode list">Module:Episode list</a> has a slight misunderstanding: it refers to <code>args['1']</code> but that should never occur—the module should be using <code>args[1]</code> for the first unnamed argument. Therefore, I don't think the above fix would achieve anything, but I'm mentioning it in case anyone else wants to look at the code for other places. <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list" class="ext-discussiontools-init-timestamplink">22:28, 15 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-15T22:28:00.000Z","author":"Johnuniq","type":"comment","level":1,"id":"c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list","replies":["c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z"]}}--></span><span data-mw-comment-end="c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z"></span>There was something wrong with previous code. When <span class="nowrap">{{</span><a href="/wiki/Template:Episode_list/sublist" title="Template:Episode list/sublist">Episode list/sublist</a><span class="nowrap">}}</span> is transcluded onto the main list, all <code class="tpl-para" style="word-break:break-word;">|ShortSummary=</code>s should be hided, but it doesn't work on kowiki. Now I replaced <code>args['1']</code> with <code>args[1]</code>, and it works well. Thank you.--<a href="/wiki/User:Namoroka" title="User:Namoroka">Namoroka</a> (<a href="/wiki/User_talk:Namoroka" title="User talk:Namoroka">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z" class="ext-discussiontools-init-timestamplink">09:45, 17 February 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-02-17T09:45:00.000Z","author":"Namoroka","type":"comment","level":2,"id":"c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z"></span></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z","type":"heading","level":0,"id":"h-Localizing_Citation_Module_-_Tewiki-2015-03-08T04:51:00.000Z","replies":["c-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki"],"uneditableSection":true,"text":"Localizing Citation Module - Tewiki","linkableTitle":"Localizing Citation Module - Tewiki"}--><h2 id="Localizing_Citation_Module_-_Tewiki" data-mw-thread-id="h-Localizing_Citation_Module_-_Tewiki-2015-03-08T04:51:00.000Z"><span data-mw-comment-start="" id="h-Localizing_Citation_Module_-_Tewiki-2015-03-08T04:51:00.000Z"></span>Localizing Citation Module - Tewiki<span data-mw-comment-end="h-Localizing_Citation_Module_-_Tewiki-2015-03-08T04:51:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z","type":"heading","level":0,"id":"h-Localizing_Citation_Module_-_Tewiki-2015-03-08T04:51:00.000Z","replies":["c-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z","timestamp":"2015-03-08T20:24:00.000Z"}__--><!--__DTCOMMENTCOUNT__4__--><!--__DTAUTHORCOUNT__3__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z","type":"heading","level":0,"id":"h-Localizing_Citation_Module_-_Tewiki-2015-03-08T04:51:00.000Z","replies":["c-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki"],"uneditableSection":true,"text":"Localizing Citation Module - Tewiki","linkableTitle":"Localizing Citation Module - Tewiki"}--></div></div></div> <p><span data-mw-comment-start="" id="c-వైజాసత్య-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki"></span>I am trying to localize Citation Module to accept months written in Telugu Wikipedia. I have added Telugu month names to list in , but it is still giving date error, when Telugu month names are used. Any help is appreciated --<a href="/wiki/User:%E0%B0%B5%E0%B1%88%E0%B0%9C%E0%B0%BE%E0%B0%B8%E0%B0%A4%E0%B1%8D%E0%B0%AF" title="User:వైజాసత్య">వైజాసత్య</a> (<a href="/wiki/User_talk:%E0%B0%B5%E0%B1%88%E0%B0%9C%E0%B0%BE%E0%B0%B8%E0%B0%A4%E0%B1%8D%E0%B0%AF" title="User talk:వైజాసత్య">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-వైజాసత్య-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki" class="ext-discussiontools-init-timestamplink">04:51, 8 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-వైజాసత్య-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-08T04:51:00.000Z","author":"\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f","type":"comment","level":1,"id":"c-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki","replies":["c-Johnuniq-2015-03-08T06:41:00.000Z-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z","c-Trappist_the_monk-2015-03-08T14:02:00.000Z-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z"]}}--></span><span data-mw-comment-end="c-వైజాసత్య-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki"></span> </p> <dl><dd><span data-mw-comment-start="" id="c-Johnuniq-2015-03-08T06:41:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z"></span>That's a job for <a href="/w/index.php?title=User:Trappist_the_monk&action=edit&redlink=1" class="new" title="User:Trappist the monk (page does not exist)">Trappist the monk</a>. Meanwhile, please spell out what page you have edited that has a problem. Is it <a href="https://te.wikipedia.org/wiki/Module:Citation/CS1" class="extiw" title="te:Module:Citation/CS1">te:Module:Citation/CS1</a> or one of the others? Do you have a sandbox page for testing that has an example of a citation with a Telugu date, and which currently does not work? <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> (<a href="/wiki/User_talk:Johnuniq" title="User talk:Johnuniq">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Johnuniq-2015-03-08T06:41:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z" class="ext-discussiontools-init-timestamplink">06:41, 8 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Johnuniq-2015-03-08T06:41:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-08T06:41:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2015-03-08T06:41:00.000Z-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Johnuniq-2015-03-08T06:41:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z"></span></dd></dl> <dl><dd><span data-mw-comment-start="" id="c-Trappist_the_monk-2015-03-08T14:02:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z"></span>The most likely reason for an error message is because in function <code>check_date()</code>, the date format is validated by a series of pattern matches that expect ascii characters. Because Telugu is unicode, the <code>string.match()</code> tests fail when they encounter unicode characters.</dd></dl> <dl><dd>At <a href="https://ml.wikipedia.org/wiki/Module:Citation/CS1/Date_validation" class="extiw" title="ml:Module:Citation/CS1/Date validation">ml:Module:Citation/CS1/Date validation</a>, they added tests to <code>check_date()</code> for the date formats that use Malayalam months: <dl><dd><code>mw.ustring.match(date_string, "^%d%d? [%C%D%P%W]+ %d%d%d%d?$")</code></dd></dl></dd></dl> <dl><dd>You might see if something like their solution will work for you.</dd></dl> <dl><dd>—<a href="/w/index.php?title=User:Trappist_the_monk&action=edit&redlink=1" class="new" title="User:Trappist the monk (page does not exist)">Trappist the monk</a> (<a href="/wiki/User_talk:Trappist_the_monk" title="User talk:Trappist the monk">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Trappist_the_monk-2015-03-08T14:02:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z" class="ext-discussiontools-init-timestamplink">14:02, 8 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Trappist_the_monk-2015-03-08T14:02:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-08T14:02:00.000Z","author":"Trappist the monk","type":"comment","level":2,"id":"c-Trappist_the_monk-2015-03-08T14:02:00.000Z-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T04:51:00.000Z","replies":["c-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z"]}}--></span><span data-mw-comment-end="c-Trappist_the_monk-2015-03-08T14:02:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-వైజాసత్య-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z"></span>Thank you <a href="/w/index.php?title=User:Trappist_the_monk&action=edit&redlink=1" class="new" title="User:Trappist the monk (page does not exist)">Trappist the monk</a>, that solved the problem. Thanks <a href="/wiki/User:Johnuniq" title="User:Johnuniq">Johnuniq</a> for responding --<a href="/wiki/User:%E0%B0%B5%E0%B1%88%E0%B0%9C%E0%B0%BE%E0%B0%B8%E0%B0%A4%E0%B1%8D%E0%B0%AF" title="User:వైజాసత్య">వైజాసత్య</a> (<a href="/wiki/User_talk:%E0%B0%B5%E0%B1%88%E0%B0%9C%E0%B0%BE%E0%B0%B8%E0%B0%A4%E0%B1%8D%E0%B0%AF" title="User talk:వైజాసత్య">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-వైజాసత్య-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z" class="ext-discussiontools-init-timestamplink">20:24, 8 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-వైజాసత్య-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-08T20:24:00.000Z","author":"\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f","type":"comment","level":3,"id":"c-\u0c35\u0c48\u0c1c\u0c3e\u0c38\u0c24\u0c4d\u0c2f-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-వైజాసత్య-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z"></span></dd></dl></dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{"headingLevel":2,"name":"h-Launchballer-2015-03-18T11:37:00.000Z","type":"heading","level":0,"id":"h-User:Launchballer\/London_Buses_route_layout-2015-03-18T11:37:00.000Z","replies":["c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer\/London_Buses_route_layout","c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer\/London_Buses_route_layout"],"uneditableSection":true,"text":"User:Launchballer\/London Buses route layout","linkableTitle":"User:Launchballer\/London Buses route layout"}--><h2 id="User:Launchballer/London_Buses_route_layout" data-mw-thread-id="h-User:Launchballer/London_Buses_route_layout-2015-03-18T11:37:00.000Z"><span id="User:Launchballer.2FLondon_Buses_route_layout"></span><span data-mw-comment-start="" id="h-User:Launchballer/London_Buses_route_layout-2015-03-18T11:37:00.000Z"></span><a href="/w/index.php?title=User:Launchballer/London_Buses_route_layout&action=edit&redlink=1" class="new" title="User:Launchballer/London Buses route layout (page does not exist)">User:Launchballer/London Buses route layout</a><span data-mw-comment-end="h-User:Launchballer/London_Buses_route_layout-2015-03-18T11:37:00.000Z"></span></h2><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-Launchballer-2015-03-18T11:37:00.000Z","type":"heading","level":0,"id":"h-User:Launchballer\/London_Buses_route_layout-2015-03-18T11:37:00.000Z","replies":["c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer\/London_Buses_route_layout","c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer\/London_Buses_route_layout"],"uneditableSection":true}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z","timestamp":"2015-03-24T16:02:00.000Z"}__--><!--__DTCOMMENTCOUNT__9__--><!--__DTAUTHORCOUNT__4__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{"headingLevel":2,"name":"h-Launchballer-2015-03-18T11:37:00.000Z","type":"heading","level":0,"id":"h-User:Launchballer\/London_Buses_route_layout-2015-03-18T11:37:00.000Z","replies":["c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer\/London_Buses_route_layout","c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer\/London_Buses_route_layout"],"uneditableSection":true,"text":"User:Launchballer\/London Buses route layout","linkableTitle":"User:Launchballer\/London Buses route layout"}--></div></div></div> <p><span data-mw-comment-start="" id="c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer/London_Buses_route_layout"></span>What I am after is Lua coding to recognize when a particular parameter is two characters or less and to top it up with 0s. The latter 'topping-up' part I can do, but it is a length-check I'm after. </p> <ul><li>If 1 is inputted, it should be topped up to 001.</li> <li>If 93 is inputted, it should be topped up to 093.</li> <li>If C1 is inputted, it should be topped up to C01.</li></ul> <p>Basically I'm after a way of checking the number of characters in a string and then how to display a particular character so I can, if necessary, drop the 0 in the middle.--<span style="background:#FF0;font-family:Rockwell Extra Bold"><a href="/wiki/User:Launchballer" title="User:Launchballer"><span style="color:#00F;">Laun</span></a><a href="/wiki/User_talk:Launchballer" title="User talk:Launchballer"><span style="color:#00F;">chba</span></a><a href="/wiki/Special:Contributions/Launchballer" title="Special:Contributions/Launchballer"><span style="color:#00F;">ller</span></a></span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer/London_Buses_route_layout" class="ext-discussiontools-init-timestamplink">11:37, 18 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer/London_Buses_route_layout"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-18T11:37:00.000Z","author":"Launchballer","type":"comment","level":1,"id":"c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer\/London_Buses_route_layout","replies":["c-Trappist_the_monk-2015-03-18T11:54:00.000Z-Launchballer-2015-03-18T11:37:00.000Z","c-SiBr4-2015-03-18T12:06:00.000Z-Launchballer-2015-03-18T11:37:00.000Z"],"displayName":"Laun"}}--></span><span data-mw-comment-end="c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer/London_Buses_route_layout"></span> </p> <dl><dd><a href="/wiki/Module:String#len" title="Module:String"><span data-mw-comment-start="" id="c-Trappist_the_monk-2015-03-18T11:54:00.000Z-Launchballer-2015-03-18T11:37:00.000Z"></span>Module:String#len</a>? <dl><dd><code>{{#invoke:String|len|1}}</code> → 1</dd> <dd><code>{{#invoke:String|len|93}}</code> → 2</dd> <dd><code>{{#invoke:String|len|C1}}</code> → 2</dd></dl></dd> <dd>—<a href="/w/index.php?title=User:Trappist_the_monk&action=edit&redlink=1" class="new" title="User:Trappist the monk (page does not exist)">Trappist the monk</a> (<a href="/wiki/User_talk:Trappist_the_monk" title="User talk:Trappist the monk">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Trappist_the_monk-2015-03-18T11:54:00.000Z-Launchballer-2015-03-18T11:37:00.000Z" class="ext-discussiontools-init-timestamplink">11:54, 18 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Trappist_the_monk-2015-03-18T11:54:00.000Z-Launchballer-2015-03-18T11:37:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-18T11:54:00.000Z","author":"Trappist the monk","type":"comment","level":2,"id":"c-Trappist_the_monk-2015-03-18T11:54:00.000Z-Launchballer-2015-03-18T11:37:00.000Z","replies":[]}}--></span><span data-mw-comment-end="c-Trappist_the_monk-2015-03-18T11:54:00.000Z-Launchballer-2015-03-18T11:37:00.000Z"></span></dd> <dd><span data-mw-comment-start="" id="c-SiBr4-2015-03-18T12:06:00.000Z-Launchballer-2015-03-18T11:37:00.000Z"></span>To add zeros to the left of a string, you can use the <a href="https://www.mediawiki.org/wiki/Help:Magic_words#Formatting" class="extiw" title="mw:Help:Magic words">{{padleft:}} magic word</a>. This doesn't add them to the right of any letters, though. <ul><li><code>{{padleft:1|3|0}}</code> → 001</li> <li><code>{{padleft:93|3|0}}</code> → 093</li> <li><code>{{padleft:C1|3|0}}</code> → 0C1</li></ul></dd> <dd><span style="font-family:serif;"><a href="/wiki/User:SiBr4" title="User:SiBr4">SiBr<sub>4</sub></a> (<a href="/wiki/User_talk:SiBr4" title="User talk:SiBr4">talk</a>)</span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-SiBr4-2015-03-18T12:06:00.000Z-Launchballer-2015-03-18T11:37:00.000Z" class="ext-discussiontools-init-timestamplink">12:06, 18 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-SiBr4-2015-03-18T12:06:00.000Z-Launchballer-2015-03-18T11:37:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-18T12:06:00.000Z","author":"SiBr4","type":"comment","level":2,"id":"c-SiBr4-2015-03-18T12:06:00.000Z-Launchballer-2015-03-18T11:37:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-19T01:07:00.000Z-SiBr4-2015-03-18T12:06:00.000Z"]}}--></span><span data-mw-comment-end="c-SiBr4-2015-03-18T12:06:00.000Z-Launchballer-2015-03-18T11:37:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2015-03-19T01:07:00.000Z-SiBr4-2015-03-18T12:06:00.000Z"></span>let's say you parameters are called P (input string) and L for length (i.e., {{{P}}}), and {{{L}}} ).</dd> <dd>wrinting it straight in lua is relatively easy. it looks, more or less, like so:</dd></dl></dd></dl> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nf">padmiddle</span><span class="p">(</span> <span class="n">source</span><span class="p">,</span> <span class="n">len</span> <span class="p">)</span> <span class="kd">local</span> <span class="n">nodigits</span> <span class="o">=</span> <span class="n">ustring</span><span class="p">.</span><span class="n">match</span><span class="p">(</span> <span class="n">source</span><span class="p">,</span> <span class="s2">"^%D*"</span> <span class="p">)</span> <span class="p">,</span> <span class="n">digits</span> <span class="o">=</span> <span class="n">ustring</span><span class="p">.</span><span class="n">match</span><span class="p">(</span> <span class="n">source</span><span class="p">,</span> <span class="s2">"%d*$"</span> <span class="p">)</span> <span class="p">,</span> <span class="n">padlen</span> <span class="o">=</span> <span class="n">len</span> <span class="o">-</span> <span class="n">ustring</span><span class="p">.</span><span class="n">len</span><span class="p">(</span> <span class="n">source</span> <span class="p">)</span> <span class="p">,</span> <span class="n">zero</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">language</span><span class="p">:</span><span class="n">formatNum</span><span class="p">(</span> <span class="mi">0</span> <span class="p">)</span> <span class="kr">return</span> <span class="n">nodigits</span> <span class="o">..</span> <span class="nb">string.rep</span><span class="p">(</span> <span class="n">zero</span><span class="p">,</span> <span class="n">len</span> <span class="p">)</span> <span class="o">..</span> <span class="n">digits</span> <span class="kr">end</span> </pre></div> <dl><dd><dl><dd>this simplistic function does not verify correct input, so calling it with, say, ("11cc", 5), will return "0" (no non-digit at the beginning and no digits at the end: theoretically it should return "00000", but it assumes, naively, that the input is correct, so seeing 4 characters, it only uses a single 0 for padding)</dd></dl></dd></dl> <dl><dd><dl><dd>you can use existing functions to do it with no new lua code, like so:</dd></dl></dd></dl> <pre>{{#invoke:String|match|{{{P}}}|^%D*}}{{#invoke|string|rep|0|{{#expr:{{{L}}}-{{strlen|{{{P}}}}}}}}}{{#invoke:string|match|{{{P}}}|%d*$}} </pre> <dl><dd><dl><dd>admittedly it's ugly, but i believe it should work (again - no sanity check for the correct form of input string). peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2015-03-19T01:07:00.000Z-SiBr4-2015-03-18T12:06:00.000Z" class="ext-discussiontools-init-timestamplink">01:07, 19 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2015-03-19T01:07:00.000Z-SiBr4-2015-03-18T12:06:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-19T01:07:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":3,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-19T01:07:00.000Z-SiBr4-2015-03-18T12:06:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2015-03-19T01:07:00.000Z-SiBr4-2015-03-18T12:06:00.000Z"></span> <dl><dd><span data-mw-comment-start="" id="c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer/London_Buses_route_layout"></span>Okay, and how do I get it to pick out a particular character from within the parameter, and recognize whether it is a letter or a number?</dd></dl></dd></dl></dd></dl> <p>--<span style="background:#FF0;font-family:Rockwell Extra Bold"><a href="/wiki/User:Launchballer" title="User:Launchballer"><span style="color:#00F;">Laun</span></a><a href="/wiki/User_talk:Launchballer" title="User talk:Launchballer"><span style="color:#00F;">chba</span></a><a href="/wiki/Special:Contributions/Launchballer" title="Special:Contributions/Launchballer"><span style="color:#00F;">ller</span></a></span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer/London_Buses_route_layout" class="ext-discussiontools-init-timestamplink">02:00, 19 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer/London_Buses_route_layout"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-19T02:00:00.000Z","author":"Launchballer","type":"comment","level":1,"id":"c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer\/London_Buses_route_layout","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-19T12:41:00.000Z-Launchballer-2015-03-19T02:00:00.000Z"],"displayName":"Laun"}}--></span><span data-mw-comment-end="c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer/London_Buses_route_layout"></span> </p> <dl><dd><dl><dd><dl><dd><dl><dd><span data-mw-comment-start="" id="c-קיפודנחש-2015-03-19T12:41:00.000Z-Launchballer-2015-03-19T02:00:00.000Z"></span>you do not have to worry about "letter or number" - the "match" function with the correct patterns ("^%D*" for initial non-digits and "%d*$" for terminating digits) takes care of that. in the example above, {{{P}}} represents the input string, and {{{L}}} represents the desired length. if, in your case, if it's always 3, you can replace {{{L}}} in the example with 3. in the general case, i thought it's better to leave it as a parameter. note that {{{P}}} appears several times - you should replace them all with the correct parameter name. alternatively, you can create a new template containing the code above, and pass to it these two params. i want to make one point again: this code does not check for the validity of the input: it assumes that you supply it with a string that contains zero or more non-digit characters, and then zero or more consecutive digits. it should handle your examples above the way you required, but if you pass something like "1C" and length 3, you will get "0" (no non-digits at the beginning and no digits at the end, so all is left is the padding, which only take into account the total length, i.e., 3-2). peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2015-03-19T12:41:00.000Z-Launchballer-2015-03-19T02:00:00.000Z" class="ext-discussiontools-init-timestamplink">12:41, 19 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2015-03-19T12:41:00.000Z-Launchballer-2015-03-19T02:00:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-19T12:41:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":5,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-19T12:41:00.000Z-Launchballer-2015-03-19T02:00:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-21T15:44:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-19T12:41:00.000Z"],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2015-03-19T12:41:00.000Z-Launchballer-2015-03-19T02:00:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-קיפודנחש-2015-03-21T15:44:00.000Z-קיפודנחש-2015-03-19T12:41:00.000Z"></span>@<a href="/wiki/User:Launchballer" title="User:Launchballer">Launchballer</a>:</span> - just curious: did you find the above useful ?</dd> <dd>peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2015-03-21T15:44:00.000Z-קיפודנחש-2015-03-19T12:41:00.000Z" class="ext-discussiontools-init-timestamplink">15:44, 21 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2015-03-21T15:44:00.000Z-קיפודנחש-2015-03-19T12:41:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-21T15:44:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":6,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-21T15:44:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-19T12:41:00.000Z","replies":["c-Launchballer-2015-03-23T11:50:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-21T15:44:00.000Z"],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2015-03-21T15:44:00.000Z-קיפודנחש-2015-03-19T12:41:00.000Z"></span> <dl><dd><a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש"><span data-mw-comment-start="" id="c-Launchballer-2015-03-23T11:50:00.000Z-קיפודנחש-2015-03-21T15:44:00.000Z"></span>קיפודנחש</a>: Just tested it at <a href="/wiki/User_talk:Launchballer/sandbox" title="User talk:Launchballer/sandbox">User talk:Launchballer/sandbox</a>. The Lua is used in the URL "Full timetable (PDF)" and a category, both of which seem to be broken.--<span style="background:#FF0;font-family:Rockwell Extra Bold"><a href="/wiki/User:Launchballer" title="User:Launchballer"><span style="color:#00F;">Laun</span></a><a href="/wiki/User_talk:Launchballer" title="User talk:Launchballer"><span style="color:#00F;">chba</span></a><a href="/wiki/Special:Contributions/Launchballer" title="Special:Contributions/Launchballer"><span style="color:#00F;">ller</span></a></span> <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-Launchballer-2015-03-23T11:50:00.000Z-קיפודנחש-2015-03-21T15:44:00.000Z" class="ext-discussiontools-init-timestamplink">11:50, 23 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-Launchballer-2015-03-23T11:50:00.000Z-קיפודנחש-2015-03-21T15:44:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-23T11:50:00.000Z","author":"Launchballer","type":"comment","level":7,"id":"c-Launchballer-2015-03-23T11:50:00.000Z-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-21T15:44:00.000Z","replies":["c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z"],"displayName":"Laun"}}--></span><span data-mw-comment-end="c-Launchballer-2015-03-23T11:50:00.000Z-קיפודנחש-2015-03-21T15:44:00.000Z"></span> <dl><dd><span class="template-ping"><span data-mw-comment-start="" id="c-קיפודנחש-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z"></span>@<a href="/wiki/User:Launchballer" title="User:Launchballer">Launchballer</a>:</span> yes, the code above contained a bug: it had "<b>#invoke|string</b>" instead of "<b>#invoke:String</b>". i fixed it when testing, but forgot to fix it in my message... sorry about that. to make life tiny bit easier, i created <a href="/w/index.php?title=Template:Zpadmiddle&action=edit&redlink=1" class="new" title="Template:Zpadmiddle (page does not exist)">Template:Zpadmiddle</a> ("pad middle of string with zeroes"). if you do not find it useful, please mark it for deletion. peace - <a href="/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User:קיפודנחש">קיפודנחש (aka kipod)</a> (<a href="/wiki/User_talk:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9" title="User talk:קיפודנחש">talk</a>) <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua/Requests/Archive_4#c-קיפודנחש-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z" class="ext-discussiontools-init-timestamplink">16:02, 24 March 2015 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-קיפודנחש-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z"><!--__DTREPLYBUTTONSCONTENT__--><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2015-03-24T16:02:00.000Z","author":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9","type":"comment","level":8,"id":"c-\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z","replies":[],"displayName":"\u05e7\u05d9\u05e4\u05d5\u05d3\u05e0\u05d7\u05e9 (aka kipod)"}}--></span><span data-mw-comment-end="c-קיפודנחש-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z"></span></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> <!-- NewPP limit report Parsed by mw‐api‐int.codfw.main‐849f99967d‐dzvc4 Cached time: 20241124022147 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] DiscussionTools time usage: 0.188 seconds CPU time usage: 0.795 seconds Real time usage: 0.973 seconds Preprocessor visited node count: 3769/1000000 Post‐expand include size: 32392/2097152 bytes Template argument size: 2726/2097152 bytes Highest expansion depth: 14/100 Expensive parser function count: 25/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 30427/5000000 bytes Lua time usage: 0.191/10.000 seconds Lua memory usage: 4291250/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 447.315 1 -total 29.28% 130.957 1 Template:Vcite2_journal 20.87% 93.375 1 Template:Aan 5.62% 25.126 2 Template:Is_redirect 5.00% 22.383 3 Template:Chart 4.99% 22.310 17 Template:Ping 2.83% 12.657 3 Template:Sailing_result_block 2.18% 9.738 1 Template:Tlinv 2.03% 9.068 9 Template:Yesno 2.01% 8.992 17 Template:Tl --> <!-- Saved in parser cache with key enwiki:pcache:idhash:42089406-0!canonical and timestamp 20241124022147 and revision id 1140156605. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&oldid=1140156605">https://en.wikipedia.org/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&oldid=1140156605</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">Hidden category: <ul><li><a href="/wiki/Category:Archive_pages_whose_parent_page_is_a_redirect" title="Category:Archive pages whose parent page is a redirect">Archive pages whose parent page is a redirect</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 18 February 2023, at 18:57<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Wikipedia:Lua/Requests/Archive_4&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5cd4cd96d5-l26ms","wgBackendResponseTime":183,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-01-29T07:59:00.000Z","type":"heading","level":0,"id":"h-Module:Documentation-2014-01-29T07:59:00.000Z","replies":[{"timestamp":"2014-01-29T07:59:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-01-29T07:59:00.000Z-Module:Documentation","replies":[{"timestamp":"2014-01-29T09:29:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-01-29T09:29:00.000Z-Mr._Stradivarius-2014-01-29T07:59:00.000Z","replies":[{"timestamp":"2014-01-29T10:30:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-01-29T10:30:00.000Z-Johnuniq-2014-01-29T09:29:00.000Z","replies":[{"timestamp":"2014-01-30T01:46:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2014-01-30T01:46:00.000Z-Mr._Stradivarius-2014-01-29T10:30:00.000Z","replies":[]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Wnt-2014-01-29T17:24:00.000Z","type":"heading","level":0,"id":"h-Automatic_module_translation_is_getting_there_..._advice?-2014-01-29T17:24:00.000Z","replies":[{"timestamp":"2014-01-29T17:24:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-01-29T17:24:00.000Z-Automatic_module_translation_is_getting_there_..._advice?","replies":[]},{"timestamp":"2014-02-02T15:37:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-02-02T15:37:00.000Z-Automatic_module_translation_is_getting_there_..._advice?","replies":[{"timestamp":"2014-02-02T23:47:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-02-02T23:47:00.000Z-Wnt-2014-02-02T15:37:00.000Z","replies":[{"timestamp":"2014-02-03T00:34:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-03T00:34:00.000Z-Johnuniq-2014-02-02T23:47:00.000Z","replies":[]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-02-03T15:04:00.000Z","type":"heading","level":0,"id":"h-mw.html_question-2014-02-03T15:04:00.000Z","replies":[{"timestamp":"2014-02-03T15:04:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-02-03T15:04:00.000Z-mw.html_question","replies":[{"timestamp":"2014-02-03T16:16:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-02-03T16:16:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z","replies":[]},{"timestamp":"2014-02-03T16:32:00.000Z","author":"Technical 13","type":"comment","level":2,"id":"c-Technical_13-2014-02-03T16:32:00.000Z-Mr._Stradivarius-2014-02-03T15:04:00.000Z","replies":[{"timestamp":"2014-02-03T16:40:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-03T16:40:00.000Z-Technical_13-2014-02-03T16:32:00.000Z","replies":[]},{"timestamp":"2014-02-03T16:42:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-03T16:42:00.000Z-Technical_13-2014-02-03T16:32:00.000Z","replies":[]}]}]},{"timestamp":"2014-02-03T21:40:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-02-03T21:40:00.000Z-mw.html_question","replies":[]},{"timestamp":"2014-02-03T22:03:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-02-03T22:03:00.000Z-mw.html_question","replies":[{"timestamp":"2014-02-03T23:54:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-02-03T23:54:00.000Z-Wnt-2014-02-03T22:03:00.000Z","replies":[{"timestamp":"2014-02-04T00:14:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-02-04T00:14:00.000Z-Mr._Stradivarius-2014-02-03T23:54:00.000Z","replies":[{"timestamp":"2014-02-04T00:19:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-02-04T00:19:00.000Z-Wnt-2014-02-04T00:14:00.000Z","replies":[]},{"timestamp":"2014-02-04T00:36:00.000Z","author":"קיפודנחש","type":"comment","level":4,"id":"c-קיפודנחש-2014-02-04T00:36:00.000Z-Wnt-2014-02-04T00:14:00.000Z","replies":[{"timestamp":"2014-02-04T08:31:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-02-04T08:31:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z","replies":[]},{"timestamp":"2014-02-04T16:44:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-02-04T16:44:00.000Z-קיפודנחש-2014-02-04T00:36:00.000Z","replies":[{"timestamp":"2014-02-04T17:37:00.000Z","author":"קיפודנחש","type":"comment","level":6,"id":"c-קיפודנחש-2014-02-04T17:37:00.000Z-Wnt-2014-02-04T16:44:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"}]}],"displayName":"קיפודנחש (aka kipod)"}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Rezonansowy-2013-12-12T15:00:00.000Z","type":"heading","level":0,"id":"h-Module:AutoPortals-2013-12-12T15:00:00.000Z","replies":[{"timestamp":"2013-12-12T15:00:00.000Z","author":"Rezonansowy","type":"comment","level":1,"id":"c-Rezonansowy-2013-12-12T15:00:00.000Z-Module:AutoPortals","replies":[{"timestamp":"2013-12-12T23:03:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":2,"id":"c-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z","replies":[{"timestamp":"2013-12-13T23:27:00.000Z","author":"Rezonansowy","type":"comment","level":3,"id":"c-Rezonansowy-2013-12-13T23:27:00.000Z-Mr._Stradivarius_on_tour-2013-12-12T23:03:00.000Z","replies":[{"timestamp":"2013-12-14T01:24:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2013-12-14T01:24:00.000Z-Rezonansowy-2013-12-13T23:27:00.000Z","replies":[{"timestamp":"2013-12-14T01:31:00.000Z","author":"Rezonansowy","type":"comment","level":5,"id":"c-Rezonansowy-2013-12-14T01:31:00.000Z-Mr._Stradivarius-2013-12-14T01:24:00.000Z","replies":[]}]}]}]},{"timestamp":"2014-01-04T05:04:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-01-04T05:04:00.000Z-Rezonansowy-2013-12-12T15:00:00.000Z","replies":[{"timestamp":"2014-01-04T06:33:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":3,"id":"c-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z-Wnt-2014-01-04T05:04:00.000Z","replies":[{"timestamp":"2014-01-04T11:05:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-01-04T11:05:00.000Z-Mr._Stradivarius_on_tour-2014-01-04T06:33:00.000Z","replies":[]}]}]}]},{"timestamp":"2014-01-09T16:49:00.000Z","author":"Rezonansowy","type":"comment","level":1,"id":"c-Rezonansowy-2014-01-09T16:49:00.000Z-Module:AutoPortals","replies":[{"timestamp":"2014-01-09T16:57:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-01-09T16:57:00.000Z-Rezonansowy-2014-01-09T16:49:00.000Z","replies":[{"timestamp":"2014-01-11T08:04:00.000Z","author":"Rezonansowy","type":"comment","level":3,"id":"c-Rezonansowy-2014-01-11T08:04:00.000Z-Wnt-2014-01-09T16:57:00.000Z","replies":[{"timestamp":"2014-01-12T17:23:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-01-12T17:23:00.000Z-Rezonansowy-2014-01-11T08:04:00.000Z","replies":[{"timestamp":"2014-01-12T17:35:00.000Z","author":"Mr. Stradivarius","type":"comment","level":5,"id":"c-Mr._Stradivarius-2014-01-12T17:35:00.000Z-Wnt-2014-01-12T17:23:00.000Z","replies":[{"timestamp":"2014-01-12T17:55:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-01-12T17:55:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","replies":[]},{"timestamp":"2014-01-12T19:19:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-01-12T19:19:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","replies":[]},{"timestamp":"2014-02-11T19:29:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-02-11T19:29:00.000Z-Mr._Stradivarius-2014-01-12T17:35:00.000Z","replies":[{"timestamp":"2014-02-12T03:18:00.000Z","author":"Mr. Stradivarius","type":"comment","level":7,"id":"c-Mr._Stradivarius-2014-02-12T03:18:00.000Z-Wnt-2014-02-11T19:29:00.000Z","replies":[{"timestamp":"2014-02-12T16:03:00.000Z","author":"Anomie","type":"comment","level":8,"id":"c-Anomie-2014-02-12T16:03:00.000Z-Mr._Stradivarius-2014-02-12T03:18:00.000Z","replies":[]}]}]}]}]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-TheDJ-2013-12-13T13:47:00.000Z","type":"heading","level":0,"id":"h-How_about_a_mw.file_api-2013-12-13T13:47:00.000Z","replies":[{"timestamp":"2013-12-13T14:12:00.000Z","author":"TheDJ","type":"comment","level":1,"id":"c-TheDJ-2013-12-13T14:12:00.000Z-How_about_a_mw.file_api","replies":[]},{"timestamp":"2013-12-13T13:47:00.000Z","author":"TheDJ","type":"comment","level":1,"id":"c-TheDJ-2013-12-13T13:47:00.000Z-How_about_a_mw.file_api","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-File_objects-How_about_a_mw.file_api","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Later-How_about_a_mw.file_api","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Might_not_be_needed_?-How_about_a_mw.file_api","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Thumbs-How_about_a_mw.file_api","replies":[]},{"headingLevel":3,"name":"h-Mr._Stradivarius-2013-12-13T14:06:00.000Z","type":"heading","level":0,"id":"h-Comments-How_about_a_mw.file_api-2013-12-13T14:06:00.000Z","replies":[{"timestamp":"2013-12-13T14:06:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2013-12-13T14:06:00.000Z-Comments","replies":[{"timestamp":"2013-12-13T14:15:00.000Z","author":"WOSlinker","type":"comment","level":2,"id":"c-WOSlinker-2013-12-13T14:15:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","replies":[]},{"timestamp":"2013-12-13T14:18:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2013-12-13T14:18:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","replies":[{"timestamp":"2013-12-13T14:25:00.000Z","author":"TheDJ","type":"comment","level":3,"id":"c-TheDJ-2013-12-13T14:25:00.000Z-Mr._Stradivarius-2013-12-13T14:18:00.000Z","replies":[{"timestamp":"2013-12-20T22:48:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2013-12-20T22:48:00.000Z-TheDJ-2013-12-13T14:25:00.000Z","replies":[]}]}]},{"timestamp":"2014-01-13T17:41:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-01-13T17:41:00.000Z-Mr._Stradivarius-2013-12-13T14:06:00.000Z","replies":[{"timestamp":"2014-02-12T20:00:00.000Z","author":"Jackmcbarn","type":"comment","level":3,"id":"c-Jackmcbarn-2014-02-12T20:00:00.000Z-Wnt-2014-01-13T17:41:00.000Z","replies":[]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Tucoxn-2014-02-13T05:47:00.000Z","type":"heading","level":0,"id":"h-Module:Flags-2014-02-13T05:47:00.000Z","replies":[{"timestamp":"2014-02-13T05:47:00.000Z","author":"Tucoxn","type":"comment","level":1,"id":"c-Tucoxn-2014-02-13T05:47:00.000Z-Module:Flags","replies":[{"timestamp":"2014-02-13T09:44:00.000Z","author":"Tucoxn","type":"comment","level":2,"id":"c-Tucoxn-2014-02-13T09:44:00.000Z-Tucoxn-2014-02-13T05:47:00.000Z","replies":[]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Aftab1995-2014-02-15T17:42:00.000Z","type":"heading","level":0,"id":"h-Need_help-2014-02-15T17:42:00.000Z","replies":[{"timestamp":"2014-02-15T17:42:00.000Z","author":"Aftab1995","type":"comment","level":1,"id":"c-Aftab1995-2014-02-15T17:42:00.000Z-Need_help","replies":[{"timestamp":"2014-02-16T01:55:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-02-16T01:55:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z","replies":[]},{"timestamp":"2014-02-16T15:46:00.000Z","author":"Aftab1995","type":"comment","level":2,"id":"c-Aftab1995-2014-02-16T15:46:00.000Z-Aftab1995-2014-02-15T17:42:00.000Z","replies":[{"timestamp":"2014-02-17T03:23:00.000Z","author":"Johnuniq","type":"comment","level":3,"id":"c-Johnuniq-2014-02-17T03:23:00.000Z-Aftab1995-2014-02-16T15:46:00.000Z","replies":[{"timestamp":"2014-02-18T01:18:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2014-02-18T01:18:00.000Z-Johnuniq-2014-02-17T03:23:00.000Z","replies":[]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Marc_Alioria-2014-03-07T01:56:00.000Z","type":"heading","level":0,"id":"h-External_links-2014-03-07T01:56:00.000Z","replies":[{"timestamp":"2014-03-07T01:56:00.000Z","author":"Marc Alioria","type":"comment","level":1,"id":"c-Marc_Alioria-2014-03-07T01:56:00.000Z-External_links","replies":[{"timestamp":"2014-03-07T02:46:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-03-07T02:46:00.000Z-Marc_Alioria-2014-03-07T01:56:00.000Z","replies":[{"timestamp":"2014-03-07T03:00:00.000Z","author":"Marc Alioria","type":"comment","level":3,"id":"c-Marc_Alioria-2014-03-07T03:00:00.000Z-Johnuniq-2014-03-07T02:46:00.000Z","replies":[{"timestamp":"2014-03-07T03:25:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-07T03:25:00.000Z-Marc_Alioria-2014-03-07T03:00:00.000Z","replies":[{"timestamp":"2014-03-07T03:38:00.000Z","author":"Mr. Stradivarius","type":"comment","level":5,"id":"c-Mr._Stradivarius-2014-03-07T03:38:00.000Z-Mr._Stradivarius-2014-03-07T03:25:00.000Z","replies":[{"timestamp":"2014-03-07T03:45:00.000Z","author":"Johnuniq","type":"comment","level":6,"id":"c-Johnuniq-2014-03-07T03:45:00.000Z-Mr._Stradivarius-2014-03-07T03:38:00.000Z","replies":[{"timestamp":"2014-03-07T03:50:00.000Z","author":"Mr. Stradivarius","type":"comment","level":7,"id":"c-Mr._Stradivarius-2014-03-07T03:50:00.000Z-Johnuniq-2014-03-07T03:45:00.000Z","replies":[]}]}]}]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Edokter-2014-03-07T13:16:00.000Z","type":"heading","level":0,"id":"h-Function_needed-2014-03-07T13:16:00.000Z","replies":[{"timestamp":"2014-03-07T13:16:00.000Z","author":"Edokter","type":"comment","level":1,"id":"c-Edokter-2014-03-07T13:16:00.000Z-Function_needed","replies":[{"timestamp":"2014-03-07T17:01:00.000Z","author":"קיפודנחש","type":"comment","level":2,"id":"c-קיפודנחש-2014-03-07T17:01:00.000Z-Edokter-2014-03-07T13:16:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"},{"timestamp":"2014-03-10T04:16:00.000Z","author":"Wikid77","type":"comment","level":2,"id":"c-Wikid77-2014-03-10T04:16:00.000Z-Edokter-2014-03-07T13:16:00.000Z","replies":[{"timestamp":"2014-03-10T00:49:00.000Z","author":"קיפודנחש","type":"comment","level":3,"id":"c-קיפודנחש-2014-03-10T00:49:00.000Z-Wikid77-2014-03-10T04:16:00.000Z","replies":[{"timestamp":"2014-03-10T04:16:00.000Z","author":"Wikid77","type":"comment","level":4,"id":"c-Wikid77-2014-03-10T04:16:00.000Z-קיפודנחש-2014-03-10T00:49:00.000Z","replies":[{"timestamp":"2014-03-10T13:26:00.000Z","author":"קיפודנחש","type":"comment","level":5,"id":"c-קיפודנחש-2014-03-10T13:26:00.000Z-Wikid77-2014-03-10T04:16:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"},{"timestamp":"2014-03-10T22:01:00.000Z","author":"Wikid77","type":"comment","level":5,"id":"c-Wikid77-2014-03-10T22:01:00.000Z-Wikid77-2014-03-10T04:16:00.000Z","replies":[{"timestamp":"2014-03-10T22:52:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":6,"id":"c-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z-Wikid77-2014-03-10T22:01:00.000Z","replies":[{"timestamp":"2014-03-11T17:51:00.000Z","author":"Wikid77","type":"comment","level":7,"id":"c-Wikid77-2014-03-11T17:51:00.000Z-Mr._Stradivarius_on_tour-2014-03-10T22:52:00.000Z","replies":[]}]},{"timestamp":"2014-03-10T22:54:00.000Z","author":"Edokter","type":"comment","level":6,"id":"c-Edokter-2014-03-10T22:54:00.000Z-Wikid77-2014-03-10T22:01:00.000Z","replies":[{"timestamp":"2014-03-11T17:51:00.000Z","author":"Wikid77","type":"comment","level":7,"id":"c-Wikid77-2014-03-11T17:51:00.000Z-Edokter-2014-03-10T22:54:00.000Z","replies":[]}]}]}]}],"displayName":"קיפודנחש (aka kipod)"}]}]},{"timestamp":"2014-03-10T23:28:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-03-10T23:28:00.000Z-Function_needed","replies":[{"timestamp":"2014-03-10T23:34:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-10T23:34:00.000Z-Mr._Stradivarius-2014-03-10T23:28:00.000Z","replies":[{"timestamp":"2014-03-10T23:38:00.000Z","author":"Edokter","type":"comment","level":3,"id":"c-Edokter-2014-03-10T23:38:00.000Z-Mr._Stradivarius-2014-03-10T23:34:00.000Z","replies":[{"timestamp":"2014-03-10T23:59:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-10T23:59:00.000Z-Edokter-2014-03-10T23:38:00.000Z","replies":[{"timestamp":"2014-03-11T23:23:00.000Z","author":"קיפודנחש","type":"comment","level":5,"id":"c-קיפודנחש-2014-03-11T23:23:00.000Z-Mr._Stradivarius-2014-03-10T23:59:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"}]}]}]}]},{"headingLevel":3,"name":"h-Wikid77-2014-03-11T17:51:00.000Z","type":"heading","level":0,"id":"h-Parser_keeps_lead_spaces_in_unnamed_parameters-Function_needed-2014-03-11T17:51:00.000Z","replies":[{"timestamp":"2014-03-11T17:51:00.000Z","author":"Wikid77","type":"comment","level":1,"id":"c-Wikid77-2014-03-11T17:51:00.000Z-Parser_keeps_lead_spaces_in_unnamed_parameters","replies":[]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-DePiep-2014-03-07T14:50:00.000Z","type":"heading","level":0,"id":"h-Pattern_documentation-2014-03-07T14:50:00.000Z","replies":[{"timestamp":"2014-03-07T14:50:00.000Z","author":"DePiep","type":"comment","level":1,"id":"c-DePiep-2014-03-07T14:50:00.000Z-Pattern_documentation","replies":[{"timestamp":"2014-03-09T05:36:00.000Z","author":"Wikid77","type":"comment","level":2,"id":"c-Wikid77-2014-03-09T05:36:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":[]},{"timestamp":"2014-03-09T08:06:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-09T08:06:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":[{"timestamp":"2014-03-09T21:44:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-03-09T21:44:00.000Z-Mr._Stradivarius-2014-03-09T08:06:00.000Z","replies":[{"timestamp":"2014-03-10T16:50:00.000Z","author":"DePiep","type":"comment","level":4,"id":"c-DePiep-2014-03-10T16:50:00.000Z-Mr._Stradivarius-2014-03-09T21:44:00.000Z","replies":[]}]}]},{"timestamp":"2014-03-13T03:21:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-03-13T03:21:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":[]},{"timestamp":"2014-03-14T03:04:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-03-14T03:04:00.000Z-DePiep-2014-03-07T14:50:00.000Z","replies":[{"timestamp":"2014-03-14T10:31:00.000Z","author":"Anomie","type":"comment","level":3,"id":"c-Anomie-2014-03-14T10:31:00.000Z-Wnt-2014-03-14T03:04:00.000Z","replies":[{"timestamp":"2014-03-14T14:24:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-03-14T14:24:00.000Z-Anomie-2014-03-14T10:31:00.000Z","replies":[{"timestamp":"2014-03-14T14:41:00.000Z","author":"DePiep","type":"comment","level":5,"id":"c-DePiep-2014-03-14T14:41:00.000Z-Wnt-2014-03-14T14:24:00.000Z","replies":[]},{"timestamp":"2014-03-14T15:24:00.000Z","author":"Mr. Stradivarius","type":"comment","level":5,"id":"c-Mr._Stradivarius-2014-03-14T15:24:00.000Z-Wnt-2014-03-14T14:24:00.000Z","replies":[{"timestamp":"2014-03-14T19:56:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-03-14T19:56:00.000Z-Mr._Stradivarius-2014-03-14T15:24:00.000Z","replies":[]}]}]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-קיפודנחש-2014-03-23T20:11:00.000Z","type":"heading","level":0,"id":"h-Template:Chart-2014-03-23T20:11:00.000Z","replies":[{"timestamp":"2014-03-23T20:11:00.000Z","author":"קיפודנחש","type":"comment","level":1,"id":"c-קיפודנחש-2014-03-23T20:11:00.000Z-Template:Chart","replies":[{"timestamp":"2014-03-24T00:46:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-24T00:46:00.000Z-קיפודנחש-2014-03-23T20:11:00.000Z","replies":[{"timestamp":"2014-03-24T02:22:00.000Z","author":"קיפודנחש","type":"comment","level":3,"id":"c-קיפודנחש-2014-03-24T02:22:00.000Z-Mr._Stradivarius-2014-03-24T00:46:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"}]}],"displayName":"קיפודנחש (aka kipod)"}],"uneditableSection":true},{"headingLevel":2,"name":"h-Romaine-2014-03-24T18:16:00.000Z","type":"heading","level":0,"id":"h-Module_request-2014-03-24T18:16:00.000Z","replies":[{"timestamp":"2014-03-24T18:16:00.000Z","author":"Romaine","type":"comment","level":1,"id":"c-Romaine-2014-03-24T18:16:00.000Z-Module_request","replies":[{"timestamp":"2014-03-25T00:18:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-25T00:18:00.000Z-Romaine-2014-03-24T18:16:00.000Z","replies":[{"timestamp":"2014-03-25T01:21:00.000Z","author":"Romaine","type":"comment","level":3,"id":"c-Romaine-2014-03-25T01:21:00.000Z-Mr._Stradivarius-2014-03-25T00:18:00.000Z","replies":[{"timestamp":"2014-03-25T01:45:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-25T01:45:00.000Z-Romaine-2014-03-25T01:21:00.000Z","replies":[]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Vitalik-2014-03-23T17:53:00.000Z","type":"heading","level":0,"id":"h-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?-2014-03-23T17:53:00.000Z","replies":[{"timestamp":"2014-03-23T17:53:00.000Z","author":"Vitalik","type":"comment","level":1,"id":"c-Vitalik-2014-03-23T17:53:00.000Z-Is_there_any_way_to_save_some_value_between_two_separate_module_calls?","replies":[{"timestamp":"2014-03-24T00:17:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-03-24T00:17:00.000Z-Vitalik-2014-03-23T17:53:00.000Z","replies":[{"timestamp":"2014-03-24T21:11:00.000Z","author":"Vitalik","type":"comment","level":3,"id":"c-Vitalik-2014-03-24T21:11:00.000Z-Mr._Stradivarius-2014-03-24T00:17:00.000Z","replies":[{"timestamp":"2014-03-24T23:44:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-03-24T23:44:00.000Z-Vitalik-2014-03-24T21:11:00.000Z","replies":[{"timestamp":"2014-03-27T20:59:00.000Z","author":"Jackmcbarn","type":"comment","level":5,"id":"c-Jackmcbarn-2014-03-27T20:59:00.000Z-Mr._Stradivarius-2014-03-24T23:44:00.000Z","replies":[]}]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-קיפודנחש-2014-04-01T05:30:00.000Z","type":"heading","level":0,"id":"h-table_with_automatic_summation-2014-04-01T05:30:00.000Z","replies":[{"timestamp":"2014-04-01T05:30:00.000Z","author":"קיפודנחש","type":"comment","level":1,"id":"c-קיפודנחש-2014-04-01T05:30:00.000Z-table_with_automatic_summation","replies":[],"displayName":"קיפודנחש (aka kipod)"}],"uneditableSection":true},{"headingLevel":2,"name":"h-Aftab1995-2014-04-07T16:46:00.000Z","type":"heading","level":0,"id":"h-Weatherbox_module_\u0026_template-2014-04-07T16:46:00.000Z","replies":[{"timestamp":"2014-04-07T16:46:00.000Z","author":"Aftab1995","type":"comment","level":1,"id":"c-Aftab1995-2014-04-07T16:46:00.000Z-Weatherbox_module_\u0026_template","replies":[{"timestamp":"2014-04-07T22:40:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-04-07T22:40:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z","replies":[{"timestamp":"2014-04-08T05:19:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-04-08T05:19:00.000Z-Johnuniq-2014-04-07T22:40:00.000Z","replies":[]}]},{"timestamp":"2014-04-08T16:44:00.000Z","author":"Aftab1995","type":"comment","level":2,"id":"c-Aftab1995-2014-04-08T16:44:00.000Z-Aftab1995-2014-04-07T16:46:00.000Z","replies":[]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Legoktm-2014-04-12T07:51:00.000Z","type":"heading","level":0,"id":"h-Automate_WP:GA_subpages'_article_counts-2014-04-12T07:51:00.000Z","replies":[{"timestamp":"2014-04-12T07:51:00.000Z","author":"Legoktm","type":"comment","level":1,"id":"c-Legoktm-2014-04-12T07:51:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":[{"timestamp":"2014-04-12T09:37:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-04-12T09:37:00.000Z-Legoktm-2014-04-12T07:51:00.000Z","replies":[{"timestamp":"2014-04-12T11:42:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":3,"id":"c-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z-Johnuniq-2014-04-12T09:37:00.000Z","replies":[{"timestamp":"2014-04-16T21:09:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-04-16T21:09:00.000Z-Mr._Stradivarius_on_tour-2014-04-12T11:42:00.000Z","replies":[]}]}]}]},{"timestamp":"2014-04-13T02:03:00.000Z","author":"Johnuniq","type":"comment","level":1,"id":"c-Johnuniq-2014-04-13T02:03:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":[{"timestamp":"2014-04-13T16:08:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-04-13T16:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","replies":[]},{"timestamp":"2014-04-13T17:08:00.000Z","author":"Isaacl","type":"comment","level":2,"id":"c-Isaacl-2014-04-13T17:08:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","replies":[]},{"timestamp":"2014-04-15T23:18:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-04-15T23:18:00.000Z-Johnuniq-2014-04-13T02:03:00.000Z","replies":[]}]},{"timestamp":"2014-04-16T18:49:00.000Z","author":"Paweł Ziemian","type":"comment","level":1,"id":"c-Paweł_Ziemian-2014-04-16T18:49:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":[{"timestamp":"2014-04-16T18:58:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-04-16T18:58:00.000Z-Paweł_Ziemian-2014-04-16T18:49:00.000Z","replies":[{"timestamp":"2014-04-16T20:16:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-04-16T20:16:00.000Z-Jackmcbarn-2014-04-16T18:58:00.000Z","replies":[{"timestamp":"2014-04-16T21:25:00.000Z","author":"Paweł Ziemian","type":"comment","level":4,"id":"c-Paweł_Ziemian-2014-04-16T21:25:00.000Z-Wnt-2014-04-16T20:16:00.000Z","replies":[{"timestamp":"2014-04-16T21:56:00.000Z","author":"Paweł Ziemian","type":"comment","level":5,"id":"c-Paweł_Ziemian-2014-04-16T21:56:00.000Z-Paweł_Ziemian-2014-04-16T21:25:00.000Z","replies":[{"timestamp":"2014-04-17T03:05:00.000Z","author":"Wnt","type":"comment","level":6,"id":"c-Wnt-2014-04-17T03:05:00.000Z-Paweł_Ziemian-2014-04-16T21:56:00.000Z","replies":[{"timestamp":"2014-04-17T07:35:00.000Z","author":"Johnuniq","type":"comment","level":7,"id":"c-Johnuniq-2014-04-17T07:35:00.000Z-Wnt-2014-04-17T03:05:00.000Z","replies":[{"timestamp":"2014-04-17T14:17:00.000Z","author":"Wnt","type":"comment","level":8,"id":"c-Wnt-2014-04-17T14:17:00.000Z-Johnuniq-2014-04-17T07:35:00.000Z","replies":[]}]}]}]}]}]}]}]},{"timestamp":"2014-04-17T10:21:00.000Z","author":"Johnuniq","type":"comment","level":1,"id":"c-Johnuniq-2014-04-17T10:21:00.000Z-Automate_WP:GA_subpages'_article_counts","replies":[{"timestamp":"2014-04-17T19:31:00.000Z","author":"Paweł Ziemian","type":"comment","level":2,"id":"c-Paweł_Ziemian-2014-04-17T19:31:00.000Z-Johnuniq-2014-04-17T10:21:00.000Z","replies":[{"timestamp":"2014-04-19T15:08:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-04-19T15:08:00.000Z-Paweł_Ziemian-2014-04-17T19:31:00.000Z","replies":[{"timestamp":"2014-04-19T19:27:00.000Z","author":"Paweł Ziemian","type":"comment","level":4,"id":"c-Paweł_Ziemian-2014-04-19T19:27:00.000Z-Wnt-2014-04-19T15:08:00.000Z","replies":[]},{"timestamp":"2014-04-20T12:42:00.000Z","author":"Paweł Ziemian","type":"comment","level":4,"id":"c-Paweł_Ziemian-2014-04-20T12:42:00.000Z-Wnt-2014-04-19T15:08:00.000Z","replies":[]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Marchjuly-2014-04-22T07:34:00.000Z","type":"heading","level":0,"id":"h-Shogi_board-2014-04-22T07:34:00.000Z","replies":[{"timestamp":"2014-04-22T07:34:00.000Z","author":"Marchjuly","type":"comment","level":1,"id":"c-Marchjuly-2014-04-22T07:34:00.000Z-Shogi_board","replies":[{"timestamp":"2014-04-23T04:07:00.000Z","author":"Marchjuly","type":"comment","level":2,"id":"c-Marchjuly-2014-04-23T04:07:00.000Z-Marchjuly-2014-04-22T07:34:00.000Z","replies":[]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Mr._Stradivarius-2014-04-22T13:16:00.000Z","type":"heading","level":0,"id":"h-mw.html_library_nil_behaviour-2014-04-22T13:16:00.000Z","replies":[{"timestamp":"2014-04-22T13:16:00.000Z","author":"Mr. Stradivarius","type":"comment","level":1,"id":"c-Mr._Stradivarius-2014-04-22T13:16:00.000Z-mw.html_library_nil_behaviour","replies":[]}],"uneditableSection":true},{"headingLevel":2,"name":"h-NED33-2014-04-09T11:21:00.000Z","type":"heading","level":0,"id":"h-For_next_loop-2014-04-09T11:21:00.000Z","replies":[{"timestamp":"2014-04-09T11:21:00.000Z","author":"NED33","type":"comment","level":1,"id":"c-NED33-2014-04-09T11:21:00.000Z-For_next_loop","replies":[{"timestamp":"2014-04-09T12:07:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-04-09T12:07:00.000Z-NED33-2014-04-09T11:21:00.000Z","replies":[{"timestamp":"2014-04-09T13:35:00.000Z","author":"PrimeHunter","type":"comment","level":3,"id":"c-PrimeHunter-2014-04-09T13:35:00.000Z-Jackmcbarn-2014-04-09T12:07:00.000Z","replies":[{"timestamp":"2014-04-09T14:18:00.000Z","author":"NED33","type":"comment","level":5,"id":"c-NED33-2014-04-09T14:18:00.000Z-PrimeHunter-2014-04-09T13:35:00.000Z","replies":[{"timestamp":"2014-04-11T18:27:00.000Z","author":"NED33","type":"comment","level":6,"id":"c-NED33-2014-04-11T18:27:00.000Z-NED33-2014-04-09T14:18:00.000Z","replies":[],"displayName":"NED33 _/)"}],"displayName":"NED33 _/)"}]}]},{"timestamp":"2014-04-18T22:39:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-04-18T22:39:00.000Z-NED33-2014-04-09T11:21:00.000Z","replies":[{"timestamp":"2014-04-20T08:58:00.000Z","author":"NED33","type":"comment","level":3,"id":"c-NED33-2014-04-20T08:58:00.000Z-Wnt-2014-04-18T22:39:00.000Z","replies":[{"timestamp":"2014-04-25T06:06:00.000Z","author":"Wnt","type":"comment","level":4,"id":"c-Wnt-2014-04-25T06:06:00.000Z-NED33-2014-04-20T08:58:00.000Z","replies":[]}],"displayName":"_/)_/)_/) ˷˷˷˷˷˷˷˷ _/) NED33"}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-DD4235-2014-04-21T04:19:00.000Z","type":"heading","level":0,"id":"h-Help_debugging_script-2014-04-21T04:19:00.000Z","replies":[{"timestamp":"2014-04-21T04:19:00.000Z","author":"DD4235","type":"comment","level":1,"id":"c-DD4235-2014-04-21T04:19:00.000Z-Help_debugging_script","replies":[{"timestamp":"2014-04-21T06:55:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-04-21T06:55:00.000Z-DD4235-2014-04-21T04:19:00.000Z","replies":[{"timestamp":"2014-04-21T07:01:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-04-21T07:01:00.000Z-Mr._Stradivarius-2014-04-21T06:55:00.000Z","replies":[{"timestamp":"2014-04-23T02:38:00.000Z","author":"DD4235","type":"comment","level":4,"id":"c-DD4235-2014-04-23T02:38:00.000Z-Mr._Stradivarius-2014-04-21T07:01:00.000Z","replies":[{"timestamp":"2014-04-25T01:31:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-04-25T01:31:00.000Z-DD4235-2014-04-23T02:38:00.000Z","replies":[]}]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Scarabocchio-2014-04-26T09:06:00.000Z","type":"heading","level":0,"id":"h-Working_across_multiple_languages-2014-04-26T09:06:00.000Z","replies":[{"timestamp":"2014-04-26T09:06:00.000Z","author":"Scarabocchio","type":"comment","level":1,"id":"c-Scarabocchio-2014-04-26T09:06:00.000Z-Working_across_multiple_languages","replies":[{"timestamp":"2014-04-26T09:13:00.000Z","author":"Scarabocchio","type":"comment","level":2,"id":"c-Scarabocchio-2014-04-26T09:13:00.000Z-Scarabocchio-2014-04-26T09:06:00.000Z","replies":[{"timestamp":"2014-04-26T09:21:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-04-26T09:21:00.000Z-Scarabocchio-2014-04-26T09:13:00.000Z","replies":[{"timestamp":"2014-04-26T09:29:00.000Z","author":"Mr. Stradivarius","type":"comment","level":4,"id":"c-Mr._Stradivarius-2014-04-26T09:29:00.000Z-Mr._Stradivarius-2014-04-26T09:21:00.000Z","replies":[{"timestamp":"2014-04-26T10:04:00.000Z","author":"Scarabocchio","type":"comment","level":5,"id":"c-Scarabocchio-2014-04-26T10:04:00.000Z-Mr._Stradivarius-2014-04-26T09:29:00.000Z","replies":[]}]}]}]}]},{"timestamp":"2014-04-26T11:51:00.000Z","author":"Scarabocchio","type":"comment","level":1,"id":"c-Scarabocchio-2014-04-26T11:51:00.000Z-Working_across_multiple_languages","replies":[{"timestamp":"2014-04-27T10:47:00.000Z","author":"Scarabocchio","type":"comment","level":2,"id":"c-Scarabocchio-2014-04-27T10:47:00.000Z-Scarabocchio-2014-04-26T11:51:00.000Z","replies":[]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Bigbossfarin-2014-07-03T19:54:00.000Z","type":"heading","level":0,"id":"h-Module:it-conj-2014-07-03T19:54:00.000Z","replies":[{"timestamp":"2014-07-03T19:54:00.000Z","author":"Bigbossfarin","type":"comment","level":1,"id":"c-Bigbossfarin-2014-07-03T19:54:00.000Z-Module:it-conj","replies":[{"timestamp":"2014-07-03T20:23:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-07-03T20:23:00.000Z-Bigbossfarin-2014-07-03T19:54:00.000Z","replies":[{"timestamp":"2014-07-04T23:23:00.000Z","author":"Bigbossfarin","type":"comment","level":3,"id":"c-Bigbossfarin-2014-07-04T23:23:00.000Z-Jackmcbarn-2014-07-03T20:23:00.000Z","replies":[{"timestamp":"2014-07-04T23:48:00.000Z","author":"Jackmcbarn","type":"comment","level":4,"id":"c-Jackmcbarn-2014-07-04T23:48:00.000Z-Bigbossfarin-2014-07-04T23:23:00.000Z","replies":[{"timestamp":"2014-07-05T12:25:00.000Z","author":"Bigbossfarin","type":"comment","level":5,"id":"c-Bigbossfarin-2014-07-05T12:25:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z","replies":[]},{"timestamp":"2014-07-05T12:38:00.000Z","author":"Bigbossfarin","type":"comment","level":5,"id":"c-Bigbossfarin-2014-07-05T12:38:00.000Z-Jackmcbarn-2014-07-04T23:48:00.000Z","replies":[]}]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Sphilbrick-2014-07-14T21:55:00.000Z","type":"heading","level":0,"id":"h-Module:Infobox_NCAA_team_season-2014-07-14T21:55:00.000Z","replies":[{"timestamp":"2014-07-14T21:55:00.000Z","author":"Sphilbrick","type":"comment","level":1,"id":"c-Sphilbrick-2014-07-14T21:55:00.000Z-Module:Infobox_NCAA_team_season","replies":[{"timestamp":"2014-07-23T08:04:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":2,"id":"c-Mr._Stradivarius_on_tour-2014-07-23T08:04:00.000Z-Sphilbrick-2014-07-14T21:55:00.000Z","replies":[]}],"displayName":"S Philbrick"}],"uneditableSection":true},{"headingLevel":2,"name":"h-Wnt-2014-07-22T15:43:00.000Z","type":"heading","level":0,"id":"h-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.-2014-07-22T15:43:00.000Z","replies":[{"timestamp":"2014-07-22T15:43:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-07-22T15:43:00.000Z-We_need_a_simple,_straightforward,_Wiki-wide_syntax_to_put_a_mark_on_a_damn_map.","replies":[]}],"uneditableSection":true},{"headingLevel":2,"name":"h-DavyK17-2014-07-23T04:28:00.000Z","type":"heading","level":0,"id":"h-National_football_team_rankings-2014-07-23T04:28:00.000Z","replies":[{"timestamp":"2014-07-23T04:28:00.000Z","author":"DavyK17","type":"comment","level":1,"id":"c-DavyK17-2014-07-23T04:28:00.000Z-National_football_team_rankings","replies":[{"timestamp":"2014-07-23T04:33:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-07-23T04:33:00.000Z-DavyK17-2014-07-23T04:28:00.000Z","replies":[{"timestamp":"2014-07-23T07:08:00.000Z","author":"WOSlinker","type":"comment","level":3,"id":"c-WOSlinker-2014-07-23T07:08:00.000Z-Jackmcbarn-2014-07-23T04:33:00.000Z","replies":[{"timestamp":"2014-07-23T07:57:00.000Z","author":"Mr. Stradivarius on tour","type":"comment","level":4,"id":"c-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z-WOSlinker-2014-07-23T07:08:00.000Z","replies":[{"timestamp":"2014-07-23T13:28:00.000Z","author":"Wnt","type":"comment","level":5,"id":"c-Wnt-2014-07-23T13:28:00.000Z-Mr._Stradivarius_on_tour-2014-07-23T07:57:00.000Z","replies":[]}]}]}]},{"timestamp":"2014-07-23T13:34:00.000Z","author":"Wnt","type":"comment","level":2,"id":"c-Wnt-2014-07-23T13:34:00.000Z-DavyK17-2014-07-23T04:28:00.000Z","replies":[{"timestamp":"2014-07-23T17:13:00.000Z","author":"DavyK17","type":"comment","level":3,"id":"c-DavyK17-2014-07-23T17:13:00.000Z-Wnt-2014-07-23T13:34:00.000Z","replies":[{"timestamp":"2014-07-23T18:29:00.000Z","author":"Sphilbrick","type":"comment","level":4,"id":"c-Sphilbrick-2014-07-23T18:29:00.000Z-DavyK17-2014-07-23T17:13:00.000Z","replies":[],"displayName":"S Philbrick"}],"displayName":"alter ego"}]}],"displayName":"alter ego"}],"uneditableSection":true},{"headingLevel":2,"name":"h-Wnt-2014-08-05T01:57:00.000Z","type":"heading","level":0,"id":"h-Lua_library_to_implement_Javascript_regexes?-2014-08-05T01:57:00.000Z","replies":[{"timestamp":"2014-08-05T01:57:00.000Z","author":"Wnt","type":"comment","level":1,"id":"c-Wnt-2014-08-05T01:57:00.000Z-Lua_library_to_implement_Javascript_regexes?","replies":[{"timestamp":"2014-08-05T02:44:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-08-05T02:44:00.000Z-Wnt-2014-08-05T01:57:00.000Z","replies":[{"timestamp":"2014-08-05T08:25:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-08-05T08:25:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","replies":[]},{"timestamp":"2014-08-07T23:40:00.000Z","author":"Wnt","type":"comment","level":3,"id":"c-Wnt-2014-08-07T23:40:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","replies":[]},{"timestamp":"2014-08-07T23:45:00.000Z","author":"Jackmcbarn","type":"comment","level":3,"id":"c-Jackmcbarn-2014-08-07T23:45:00.000Z-Jackmcbarn-2014-08-05T02:44:00.000Z","replies":[]}]}]},{"timestamp":"2014-08-05T17:22:00.000Z","author":"Dank","type":"comment","level":1,"id":"c-Dank-2014-08-05T17:22:00.000Z-Lua_library_to_implement_Javascript_regexes?","replies":[{"timestamp":"2014-08-09T08:57:00.000Z","author":"Technical 13","type":"comment","level":2,"id":"c-Technical_13-2014-08-09T08:57:00.000Z-Dank-2014-08-05T17:22:00.000Z","replies":[{"timestamp":"2014-08-09T09:22:00.000Z","author":"Dank","type":"comment","level":3,"id":"c-Dank-2014-08-09T09:22:00.000Z-Technical_13-2014-08-09T08:57:00.000Z","replies":[]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-P199-2014-08-11T16:57:00.000Z","type":"heading","level":0,"id":"h-Module:Coordinates-2014-08-11T16:57:00.000Z","replies":[{"timestamp":"2014-08-11T16:57:00.000Z","author":"P199","type":"comment","level":1,"id":"c-P199-2014-08-11T16:57:00.000Z-Module:Coordinates","replies":[{"timestamp":"2014-08-11T21:44:00.000Z","author":"Paweł Ziemian","type":"comment","level":2,"id":"c-Paweł_Ziemian-2014-08-11T21:44:00.000Z-P199-2014-08-11T16:57:00.000Z","replies":[{"timestamp":"2014-08-12T13:34:00.000Z","author":"P199","type":"comment","level":3,"id":"c-P199-2014-08-12T13:34:00.000Z-Paweł_Ziemian-2014-08-11T21:44:00.000Z","replies":[],"displayName":"P 1 9 9"}]},{"timestamp":"2014-09-15T16:35:00.000Z","author":"Snaevar","type":"comment","level":2,"id":"c-Snaevar-2014-09-15T16:35:00.000Z-P199-2014-08-11T16:57:00.000Z","replies":[{"timestamp":"2014-09-15T20:00:00.000Z","author":"P199","type":"comment","level":3,"id":"c-P199-2014-09-15T20:00:00.000Z-Snaevar-2014-09-15T16:35:00.000Z","replies":[{"timestamp":"2014-09-17T12:41:00.000Z","author":"Snaevar","type":"comment","level":4,"id":"c-Snaevar-2014-09-17T12:41:00.000Z-P199-2014-09-15T20:00:00.000Z","replies":[]}],"displayName":"P 1 9 9"}]}],"displayName":"P 1 9 9"}],"uneditableSection":true},{"headingLevel":2,"name":"h-P199-2014-08-11T17:08:00.000Z","type":"heading","level":0,"id":"h-Wikidata_qualifier-2014-08-11T17:08:00.000Z","replies":[{"timestamp":"2014-08-11T17:08:00.000Z","author":"P199","type":"comment","level":1,"id":"c-P199-2014-08-11T17:08:00.000Z-Wikidata_qualifier","replies":[{"timestamp":"2014-09-11T00:57:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-09-11T00:57:00.000Z-P199-2014-08-11T17:08:00.000Z","replies":[{"timestamp":"2014-09-11T01:34:00.000Z","author":"P199","type":"comment","level":3,"id":"c-P199-2014-09-11T01:34:00.000Z-Jackmcbarn-2014-09-11T00:57:00.000Z","replies":[{"timestamp":"2014-09-11T01:50:00.000Z","author":"Jackmcbarn","type":"comment","level":4,"id":"c-Jackmcbarn-2014-09-11T01:50:00.000Z-P199-2014-09-11T01:34:00.000Z","replies":[]},{"timestamp":"2014-09-11T13:36:00.000Z","author":"P199","type":"comment","level":4,"id":"c-P199-2014-09-11T13:36:00.000Z-P199-2014-09-11T01:34:00.000Z","replies":[{"timestamp":"2014-09-11T13:59:00.000Z","author":"Jackmcbarn","type":"comment","level":5,"id":"c-Jackmcbarn-2014-09-11T13:59:00.000Z-P199-2014-09-11T13:36:00.000Z","replies":[]},{"timestamp":"2014-09-11T15:19:00.000Z","author":"P199","type":"comment","level":5,"id":"c-P199-2014-09-11T15:19:00.000Z-P199-2014-09-11T13:36:00.000Z","replies":[],"displayName":"P 1 9 9"}],"displayName":"P 1 9 9"}],"displayName":"P 1 9 9"}]}],"displayName":"P 1 9 9"},{"timestamp":"2014-10-07T18:00:00.000Z","author":"P199","type":"comment","level":1,"id":"c-P199-2014-10-07T18:00:00.000Z-Wikidata_qualifier","replies":[{"timestamp":"2014-10-09T16:52:00.000Z","author":"P199","type":"comment","level":2,"id":"c-P199-2014-10-09T16:52:00.000Z-P199-2014-10-07T18:00:00.000Z","replies":[],"displayName":"P 1 9 9"}],"displayName":"P 1 9 9"}],"uneditableSection":true},{"headingLevel":2,"name":"h-קיפודנחש-2014-09-22T22:54:00.000Z","type":"heading","level":0,"id":"h-overhaul_Module:Chart-2014-09-22T22:54:00.000Z","replies":[{"headingLevel":4,"name":"h-קיפודנחש-2014-09-22T22:54:00.000Z","type":"heading","level":0,"id":"h-TLDR-overhaul_Module:Chart-2014-09-22T22:54:00.000Z","replies":[{"timestamp":"2014-09-22T22:54:00.000Z","author":"קיפודנחש","type":"comment","level":1,"id":"c-קיפודנחש-2014-09-22T22:54:00.000Z-TLDR","replies":[{"timestamp":"2014-09-23T10:25:00.000Z","author":"Anomie","type":"comment","level":2,"id":"c-Anomie-2014-09-23T10:25:00.000Z-קיפודנחש-2014-09-22T22:54:00.000Z","replies":[{"timestamp":"2014-09-23T20:06:00.000Z","author":"Jackmcbarn","type":"comment","level":3,"id":"c-Jackmcbarn-2014-09-23T20:06:00.000Z-Anomie-2014-09-23T10:25:00.000Z","replies":[{"timestamp":"2014-09-23T23:31:00.000Z","author":"קיפודנחש","type":"comment","level":4,"id":"c-קיפודנחש-2014-09-23T23:31:00.000Z-Jackmcbarn-2014-09-23T20:06:00.000Z","replies":[{"timestamp":"2014-09-23T23:40:00.000Z","author":"Jackmcbarn","type":"comment","level":5,"id":"c-Jackmcbarn-2014-09-23T23:40:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z","replies":[]},{"timestamp":"2014-09-24T10:20:00.000Z","author":"Anomie","type":"comment","level":5,"id":"c-Anomie-2014-09-24T10:20:00.000Z-קיפודנחש-2014-09-23T23:31:00.000Z","replies":[{"timestamp":"2014-09-24T13:19:00.000Z","author":"קיפודנחש","type":"comment","level":6,"id":"c-קיפודנחש-2014-09-24T13:19:00.000Z-Anomie-2014-09-24T10:20:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"}]}],"displayName":"קיפודנחש (aka kipod)"}]}]}],"displayName":"קיפודנחש (aka kipod)"}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Tobias1984-2014-10-20T22:24:00.000Z","type":"heading","level":0,"id":"h-Fork_Infobox_drugs-2014-10-20T22:24:00.000Z","replies":[{"timestamp":"2014-10-20T22:24:00.000Z","author":"Tobias1984","type":"comment","level":1,"id":"c-Tobias1984-2014-10-20T22:24:00.000Z-Fork_Infobox_drugs","replies":[{"timestamp":"2014-10-20T22:52:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2014-10-20T22:52:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z","replies":[{"timestamp":"2014-10-20T23:22:00.000Z","author":"Tobias1984","type":"comment","level":3,"id":"c-Tobias1984-2014-10-20T23:22:00.000Z-Jackmcbarn-2014-10-20T22:52:00.000Z","replies":[{"timestamp":"2014-10-20T23:35:00.000Z","author":"Jackmcbarn","type":"comment","level":4,"id":"c-Jackmcbarn-2014-10-20T23:35:00.000Z-Tobias1984-2014-10-20T23:22:00.000Z","replies":[{"timestamp":"2014-10-21T12:02:00.000Z","author":"Tobias1984","type":"comment","level":5,"id":"c-Tobias1984-2014-10-21T12:02:00.000Z-Jackmcbarn-2014-10-20T23:35:00.000Z","replies":[]}]}]}]},{"timestamp":"2014-10-22T09:42:00.000Z","author":"Tobias1984","type":"comment","level":2,"id":"c-Tobias1984-2014-10-22T09:42:00.000Z-Tobias1984-2014-10-20T22:24:00.000Z","replies":[]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Boghog-2014-11-02T14:53:00.000Z","type":"heading","level":0,"id":"h-Creating_new_template_parameters_with_Lua-2014-11-02T14:53:00.000Z","replies":[{"timestamp":"2014-11-02T14:53:00.000Z","author":"Boghog","type":"comment","level":1,"id":"c-Boghog-2014-11-02T14:53:00.000Z-Creating_new_template_parameters_with_Lua","replies":[{"timestamp":"2014-11-02T15:29:00.000Z","author":"Mr. Stradivarius","type":"comment","level":2,"id":"c-Mr._Stradivarius-2014-11-02T15:29:00.000Z-Boghog-2014-11-02T14:53:00.000Z","replies":[{"timestamp":"2014-11-02T16:28:00.000Z","author":"Mr. Stradivarius","type":"comment","level":3,"id":"c-Mr._Stradivarius-2014-11-02T16:28:00.000Z-Mr._Stradivarius-2014-11-02T15:29:00.000Z","replies":[{"timestamp":"2014-11-02T18:13:00.000Z","author":"Boghog","type":"comment","level":4,"id":"c-Boghog-2014-11-02T18:13:00.000Z-Mr._Stradivarius-2014-11-02T16:28:00.000Z","replies":[]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-DePiep-2014-11-03T10:11:00.000Z","type":"heading","level":0,"id":"h-New_entry_for_module:infobox-2014-11-03T10:11:00.000Z","replies":[{"timestamp":"2014-11-03T10:11:00.000Z","author":"DePiep","type":"comment","level":1,"id":"c-DePiep-2014-11-03T10:11:00.000Z-New_entry_for_module:infobox","replies":[]}],"uneditableSection":true},{"headingLevel":2,"name":"h-DePiep-2014-11-10T22:56:00.000Z","type":"heading","level":0,"id":"h-My_getArgs_disappears_the_first_unnamed_1=_argument-2014-11-10T22:56:00.000Z","replies":[{"timestamp":"2014-11-10T22:56:00.000Z","author":"DePiep","type":"comment","level":1,"id":"c-DePiep-2014-11-10T22:56:00.000Z-My_getArgs_disappears_the_first_unnamed_1=_argument","replies":[{"timestamp":"2014-11-10T23:09:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2014-11-10T23:09:00.000Z-DePiep-2014-11-10T22:56:00.000Z","replies":[{"timestamp":"2014-11-10T23:25:00.000Z","author":"DePiep","type":"comment","level":3,"id":"c-DePiep-2014-11-10T23:25:00.000Z-Johnuniq-2014-11-10T23:09:00.000Z","replies":[{"timestamp":"2014-11-11T21:41:00.000Z","author":"Paweł Ziemian","type":"comment","level":4,"id":"c-Paweł_Ziemian-2014-11-11T21:41:00.000Z-DePiep-2014-11-10T23:25:00.000Z","replies":[]}]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Arjunaraoc-2015-02-10T01:42:00.000Z","type":"heading","level":0,"id":"h-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP-2015-02-10T01:42:00.000Z","replies":[{"timestamp":"2015-02-10T01:42:00.000Z","author":"Arjunaraoc","type":"comment","level":1,"id":"c-Arjunaraoc-2015-02-10T01:42:00.000Z-Help_fix_Script_error_on_Telugu_WP_Templates_which_are_imported_from_English_WP","replies":[{"timestamp":"2015-02-10T03:10:00.000Z","author":"Jackmcbarn","type":"comment","level":2,"id":"c-Jackmcbarn-2015-02-10T03:10:00.000Z-Arjunaraoc-2015-02-10T01:42:00.000Z","replies":[{"timestamp":"2015-02-10T08:09:00.000Z","author":"Arjunaraoc","type":"comment","level":3,"id":"c-Arjunaraoc-2015-02-10T08:09:00.000Z-Jackmcbarn-2015-02-10T03:10:00.000Z","replies":[]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Namoroka-2015-02-15T05:09:00.000Z","type":"heading","level":0,"id":"h-Module:Episode_list-2015-02-15T05:09:00.000Z","replies":[{"timestamp":"2015-02-15T05:09:00.000Z","author":"Namoroka","type":"comment","level":1,"id":"c-Namoroka-2015-02-15T05:09:00.000Z-Module:Episode_list","replies":[{"timestamp":"2015-02-15T06:16:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2015-02-15T06:16:00.000Z-Namoroka-2015-02-15T05:09:00.000Z","replies":[{"timestamp":"2015-02-15T07:20:00.000Z","author":"Namoroka","type":"comment","level":3,"id":"c-Namoroka-2015-02-15T07:20:00.000Z-Johnuniq-2015-02-15T06:16:00.000Z","replies":[{"timestamp":"2015-02-15T09:21:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2015-02-15T09:21:00.000Z-Namoroka-2015-02-15T07:20:00.000Z","replies":[]},{"timestamp":"2015-02-15T09:26:00.000Z","author":"Johnuniq","type":"comment","level":4,"id":"c-Johnuniq-2015-02-15T09:26:00.000Z-Namoroka-2015-02-15T07:20:00.000Z","replies":[{"timestamp":"2015-02-15T09:39:00.000Z","author":"Namoroka","type":"comment","level":5,"id":"c-Namoroka-2015-02-15T09:39:00.000Z-Johnuniq-2015-02-15T09:26:00.000Z","replies":[]}]}]}]}]},{"timestamp":"2015-02-15T22:28:00.000Z","author":"Johnuniq","type":"comment","level":1,"id":"c-Johnuniq-2015-02-15T22:28:00.000Z-Module:Episode_list","replies":[{"timestamp":"2015-02-17T09:45:00.000Z","author":"Namoroka","type":"comment","level":2,"id":"c-Namoroka-2015-02-17T09:45:00.000Z-Johnuniq-2015-02-15T22:28:00.000Z","replies":[]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-వైజాసత్య-2015-03-08T04:51:00.000Z","type":"heading","level":0,"id":"h-Localizing_Citation_Module_-_Tewiki-2015-03-08T04:51:00.000Z","replies":[{"timestamp":"2015-03-08T04:51:00.000Z","author":"వైజాసత్య","type":"comment","level":1,"id":"c-వైజాసత్య-2015-03-08T04:51:00.000Z-Localizing_Citation_Module_-_Tewiki","replies":[{"timestamp":"2015-03-08T06:41:00.000Z","author":"Johnuniq","type":"comment","level":2,"id":"c-Johnuniq-2015-03-08T06:41:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z","replies":[]},{"timestamp":"2015-03-08T14:02:00.000Z","author":"Trappist the monk","type":"comment","level":2,"id":"c-Trappist_the_monk-2015-03-08T14:02:00.000Z-వైజాసత్య-2015-03-08T04:51:00.000Z","replies":[{"timestamp":"2015-03-08T20:24:00.000Z","author":"వైజాసత్య","type":"comment","level":3,"id":"c-వైజాసత్య-2015-03-08T20:24:00.000Z-Trappist_the_monk-2015-03-08T14:02:00.000Z","replies":[]}]}]}],"uneditableSection":true},{"headingLevel":2,"name":"h-Launchballer-2015-03-18T11:37:00.000Z","type":"heading","level":0,"id":"h-User:Launchballer/London_Buses_route_layout-2015-03-18T11:37:00.000Z","replies":[{"timestamp":"2015-03-18T11:37:00.000Z","author":"Launchballer","type":"comment","level":1,"id":"c-Launchballer-2015-03-18T11:37:00.000Z-User:Launchballer/London_Buses_route_layout","replies":[{"timestamp":"2015-03-18T11:54:00.000Z","author":"Trappist the monk","type":"comment","level":2,"id":"c-Trappist_the_monk-2015-03-18T11:54:00.000Z-Launchballer-2015-03-18T11:37:00.000Z","replies":[]},{"timestamp":"2015-03-18T12:06:00.000Z","author":"SiBr4","type":"comment","level":2,"id":"c-SiBr4-2015-03-18T12:06:00.000Z-Launchballer-2015-03-18T11:37:00.000Z","replies":[{"timestamp":"2015-03-19T01:07:00.000Z","author":"קיפודנחש","type":"comment","level":3,"id":"c-קיפודנחש-2015-03-19T01:07:00.000Z-SiBr4-2015-03-18T12:06:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"}]}],"displayName":"Laun"},{"timestamp":"2015-03-19T02:00:00.000Z","author":"Launchballer","type":"comment","level":1,"id":"c-Launchballer-2015-03-19T02:00:00.000Z-User:Launchballer/London_Buses_route_layout","replies":[{"timestamp":"2015-03-19T12:41:00.000Z","author":"קיפודנחש","type":"comment","level":5,"id":"c-קיפודנחש-2015-03-19T12:41:00.000Z-Launchballer-2015-03-19T02:00:00.000Z","replies":[{"timestamp":"2015-03-21T15:44:00.000Z","author":"קיפודנחש","type":"comment","level":6,"id":"c-קיפודנחש-2015-03-21T15:44:00.000Z-קיפודנחש-2015-03-19T12:41:00.000Z","replies":[{"timestamp":"2015-03-23T11:50:00.000Z","author":"Launchballer","type":"comment","level":7,"id":"c-Launchballer-2015-03-23T11:50:00.000Z-קיפודנחש-2015-03-21T15:44:00.000Z","replies":[{"timestamp":"2015-03-24T16:02:00.000Z","author":"קיפודנחש","type":"comment","level":8,"id":"c-קיפודנחש-2015-03-24T16:02:00.000Z-Launchballer-2015-03-23T11:50:00.000Z","replies":[],"displayName":"קיפודנחש (aka kipod)"}],"displayName":"Laun"}],"displayName":"קיפודנחש (aka kipod)"}],"displayName":"קיפודנחש (aka kipod)"}],"displayName":"Laun"}],"uneditableSection":true}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.188"},"limitreport":{"cputime":"0.795","walltime":"0.973","ppvisitednodes":{"value":3769,"limit":1000000},"postexpandincludesize":{"value":32392,"limit":2097152},"templateargumentsize":{"value":2726,"limit":2097152},"expansiondepth":{"value":14,"limit":100},"expensivefunctioncount":{"value":25,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":30427,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 447.315 1 -total"," 29.28% 130.957 1 Template:Vcite2_journal"," 20.87% 93.375 1 Template:Aan"," 5.62% 25.126 2 Template:Is_redirect"," 5.00% 22.383 3 Template:Chart"," 4.99% 22.310 17 Template:Ping"," 2.83% 12.657 3 Template:Sailing_result_block"," 2.18% 9.738 1 Template:Tlinv"," 2.03% 9.068 9 Template:Yesno"," 2.01% 8.992 17 Template:Tl"]},"scribunto":{"limitreport-timeusage":{"value":"0.191","limit":"10.000"},"limitreport-memusage":{"value":4291250,"limit":52428800}},"cachereport":{"origin":"mw-api-int.codfw.main-849f99967d-dzvc4","timestamp":"20241124022147","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>