CINXE.COM
پسوند: اسکریبونتو - MediaWiki
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>پسوند: اسکریبونتو - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[".\t,","٫\t٬"],"wgDigitTransformTable":[ "0\t1\t2\t3\t4\t5\t6\t7\t8\t9\t%","۰\t۱\t۲\t۳\t۴\t۵\t۶\t۷\t۸\t۹\t٪"],"wgDefaultDateFormat":"dmy","wgMonthNames":["","ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],"wgRequestId":"44b85bf1-7340-4afc-89e0-09006a800f50","wgCanonicalNamespace":"Extension","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":102,"wgPageName":"Extension:Scribunto/fa","wgTitle":"Scribunto/fa","wgCurRevisionId":6875489,"wgRevisionId":6875489,"wgArticleId":1871865,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Extensions bundled with MediaWiki 1.34/fa","Stable extensions/fa","Parser extensions/fa","Extensions with unknown license/fa","Extensions in Wikimedia version control/fa","ArticleViewHeader extensions/fa","CodeEditorGetPageLanguage extensions/fa","ContentHandlerDefaultModelFor extensions/fa", "EditFilterMergedContent extensions/fa","EditPage::showReadOnlyForm:initial extensions/fa","EditPage::showStandardInputs:options extensions/fa","EditPageBeforeEditButtons extensions/fa","ParserClearState extensions/fa","ParserCloned extensions/fa","ParserFirstCallInit extensions/fa","ParserLimitReportFormat extensions/fa","ParserLimitReportPrepare extensions/fa","SoftwareInfo extensions/fa","All extensions/fa","Extensions used on Wikimedia/fa","Extensions included in BlueSpice/fa","Extensions included in Canasta/fa","Extensions available as Debian packages/fa","Extensions included in Fandom/fa","Extensions included in Miraheze/fa","Extensions included in MyWikis/fa","Extensions included in ProWiki/fa","Extensions included in ShoutWiki/fa","Extensions included in wiki.gg/fa","Extensions included in WikiForge/fa","Scribunto extensions/fa","ContentHandler extensions/fa","GPL licensed extensions/fa","MIT licensed extensions/fa"],"wgPageViewLanguage":"fa","wgPageContentLanguage":"fa", "wgPageContentModel":"wikitext","wgRelevantPageName":"Extension:Scribunto/fa","wgRelevantArticleId":1871865,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"fa","pageLanguageDir":"rtl","pageVariantFallbacks":"fa"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":40000,"wgTranslatePageTranslation":"translation","wgVisualEditorDisabledByHook":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={ "ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.pygments":"ready","ext.cite.styles":"ready","ext.tmh.player.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","ext.cite.ux-enhancements","mediawiki.page.media","ext.tmh.player","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents", "ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.cite.styles%7Cext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.tmh.player.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=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.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/9/9d/Scribunto_debug_console_usage_example.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="1136"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Scribunto_debug_console_usage_example.png/800px-Scribunto_debug_console_usage_example.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="758"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Scribunto_debug_console_usage_example.png/640px-Scribunto_debug_console_usage_example.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="606"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="پسوند: اسکریبونتو - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Extension:Scribunto/fa"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Extension:Scribunto/fa&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Extension:Scribunto/fa"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki 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="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-102 ns-subject mw-editable page-Extension_Scribunto_fa rootpage-Extension_Scribunto 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/MediaWiki" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-mw-download" class="mw-list-item"><a href="/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/wiki/Special:MyLanguage/How_to_contribute"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support" > <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>User help</span></a></li><li id="n-mw-faq" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Communication"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development" > <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/wiki/Development_statistics"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org" > <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Project:Help" title="About the project, what you can do, where to find things"><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 in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-mw-translate" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-mw-discussion" class="mw-list-item"><a href="/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/wiki/Project:Sandbox"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang" > <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </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=mediawikiwiki&page=Extension%3AScribunto%2Ffa" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </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 MediaWiki [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 MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [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" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </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/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=www.mediawiki.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=Extension%3AScribunto%2Ffa" 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=Extension%3AScribunto%2Ffa" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=www.mediawiki.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=Extension%3AScribunto%2Ffa" 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=Extension%3AScribunto%2Ffa" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- 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">Beginning</div> </a> </li> <li id="toc-Installation" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Installation"> <div class="vector-toc-text"> <span class="vector-toc-numb">۱</span> <span>Installation</span> </div> </a> <ul id="toc-Installation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-الزامات" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#الزامات"> <div class="vector-toc-text"> <span class="vector-toc-numb">۲</span> <span>الزامات</span> </div> </a> <button aria-controls="toc-الزامات-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 الزامات subsection</span> </button> <ul id="toc-الزامات-sublist" class="vector-toc-list"> <li id="toc-سازگاری_نسخه_PCRE" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#سازگاری_نسخه_PCRE"> <div class="vector-toc-text"> <span class="vector-toc-numb">۲.۱</span> <span>سازگاری نسخه PCRE</span> </div> </a> <ul id="toc-سازگاری_نسخه_PCRE-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-PHP_pcntl_(LTS_)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#PHP_pcntl_(LTS_)"> <div class="vector-toc-text"> <span class="vector-toc-numb">۲.۲</span> <span>PHP pcntl (LTS<span> </span>)</span> </div> </a> <ul id="toc-PHP_pcntl_(LTS_)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-PHP_mbstring_extension" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#PHP_mbstring_extension"> <div class="vector-toc-text"> <span class="vector-toc-numb">۲.۳</span> <span>PHP mbstring extension</span> </div> </a> <ul id="toc-PHP_mbstring_extension-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Lua_binary" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Lua_binary"> <div class="vector-toc-text"> <span class="vector-toc-numb">۲.۴</span> <span>Lua binary</span> </div> </a> <ul id="toc-Lua_binary-sublist" class="vector-toc-list"> <li id="toc-Bundled_binaries" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Bundled_binaries"> <div class="vector-toc-text"> <span class="vector-toc-numb">۲.۴.۱</span> <span>Bundled binaries</span> </div> </a> <ul id="toc-Bundled_binaries-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Additional_binaries" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Additional_binaries"> <div class="vector-toc-text"> <span class="vector-toc-numb">۲.۴.۲</span> <span>Additional binaries</span> </div> </a> <ul id="toc-Additional_binaries-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Optional_installation" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Optional_installation"> <div class="vector-toc-text"> <span class="vector-toc-numb">۳</span> <span>Optional installation</span> </div> </a> <button aria-controls="toc-Optional_installation-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 Optional installation subsection</span> </button> <ul id="toc-Optional_installation-sublist" class="vector-toc-list"> <li id="toc-Integrating_extensions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Integrating_extensions"> <div class="vector-toc-text"> <span class="vector-toc-numb">۳.۱</span> <span>Integrating extensions</span> </div> </a> <ul id="toc-Integrating_extensions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-LuaSandbox" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#LuaSandbox"> <div class="vector-toc-text"> <span class="vector-toc-numb">۳.۲</span> <span>LuaSandbox</span> </div> </a> <ul id="toc-LuaSandbox-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-پیکربندی" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#پیکربندی"> <div class="vector-toc-text"> <span class="vector-toc-numb">۴</span> <span>پیکربندی</span> </div> </a> <button aria-controls="toc-پیکربندی-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 پیکربندی subsection</span> </button> <ul id="toc-پیکربندی-sublist" class="vector-toc-list"> <li id="toc-LuaStandalone" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#LuaStandalone"> <div class="vector-toc-text"> <span class="vector-toc-numb">۴.۱</span> <span>LuaStandalone</span> </div> </a> <ul id="toc-LuaStandalone-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-LuaSandbox_2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#LuaSandbox_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">۴.۲</span> <span>LuaSandbox</span> </div> </a> <ul id="toc-LuaSandbox_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-استفاده" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#استفاده"> <div class="vector-toc-text"> <span class="vector-toc-numb">۵</span> <span>استفاده</span> </div> </a> <ul id="toc-استفاده-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-لوا" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#لوا"> <div class="vector-toc-text"> <span class="vector-toc-numb">۶</span> <span>لوا</span> </div> </a> <button aria-controls="toc-لوا-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 لوا subsection</span> </button> <ul id="toc-لوا-sublist" class="vector-toc-list"> <li id="toc-یادگیری_لوا" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#یادگیری_لوا"> <div class="vector-toc-text"> <span class="vector-toc-numb">۶.۱</span> <span>یادگیری لوا</span> </div> </a> <ul id="toc-یادگیری_لوا-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-محیط_لوا" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#محیط_لوا"> <div class="vector-toc-text"> <span class="vector-toc-numb">۶.۲</span> <span>محیط لوا</span> </div> </a> <ul id="toc-محیط_لوا-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-کنسول_اشکال_زدایی" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#کنسول_اشکال_زدایی"> <div class="vector-toc-text"> <span class="vector-toc-numb">۶.۳</span> <span>کنسول اشکال زدایی</span> </div> </a> <ul id="toc-کنسول_اشکال_زدایی-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-عیب_یابی" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#عیب_یابی"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷</span> <span>عیب یابی</span> </div> </a> <button aria-controls="toc-عیب_یابی-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 عیب یابی subsection</span> </button> <ul id="toc-عیب_یابی-sublist" class="vector-toc-list"> <li id="toc-Cannot_execute_extensions/Scribunto/includes/Engines/LuaStandalone/binaries" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Cannot_execute_extensions/Scribunto/includes/Engines/LuaStandalone/binaries"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۱</span> <span>Cannot execute extensions/Scribunto/includes/Engines/LuaStandalone/binaries</span> </div> </a> <ul id="toc-Cannot_execute_extensions/Scribunto/includes/Engines/LuaStandalone/binaries-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_1_خارج_شده_است." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_1_خارج_شده_است."> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۲</span> <span>خطای لوآ: خطای داخلی: مفسر با وضعیت 1 خارج شده است.</span> </div> </a> <ul id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_1_خارج_شده_است.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_2_خارج_شده_است." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_2_خارج_شده_است."> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۳</span> <span>خطای لوآ: خطای داخلی: مفسر با وضعیت 2 خارج شده است.</span> </div> </a> <ul id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_2_خارج_شده_است.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-خطا_لوا:_خطای_داخلی:_۲._در_معماری_ایآراِم" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#خطا_لوا:_خطای_داخلی:_۲._در_معماری_ایآراِم"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۴</span> <span>خطا لوا: خطای داخلی: ۲. در معماری ایآراِم</span> </div> </a> <ul id="toc-خطا_لوا:_خطای_داخلی:_۲._در_معماری_ایآراِم-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_24_خارج_شده_است." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_24_خارج_شده_است."> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۵</span> <span>خطای لوآ: خطای داخلی: مفسر با وضعیت 24 خارج شده است.</span> </div> </a> <ul id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_24_خارج_شده_است.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_126_خارج_شده_است." class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_126_خارج_شده_است."> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۶</span> <span>خطای لوآ: خطای داخلی: مفسر با وضعیت 126 خارج شده است.</span> </div> </a> <ul id="toc-خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_126_خارج_شده_است.-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-شرایط_خطا_مانند:_استثناء_مرگبار_از_نوع_MWException" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#شرایط_خطا_مانند:_استثناء_مرگبار_از_نوع_MWException"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۷</span> <span>شرایط خطا مانند: استثناء مرگبار از نوع MWException</span> </div> </a> <ul id="toc-شرایط_خطا_مانند:_استثناء_مرگبار_از_نوع_MWException-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-نسخه_'GLIBC_2.11'_یافت_نشد" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#نسخه_'GLIBC_2.11'_یافت_نشد"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۸</span> <span>نسخه 'GLIBC_2.11' یافت نشد</span> </div> </a> <ul id="toc-نسخه_'GLIBC_2.11'_یافت_نشد-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-خطاي_لوا_در_پرونده_هاي_اسکریبونتو" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#خطاي_لوا_در_پرونده_هاي_اسکریبونتو"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۹</span> <span>خطاي لوا در پرونده هاي اسکریبونتو</span> </div> </a> <ul id="toc-خطاي_لوا_در_پرونده_هاي_اسکریبونتو-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-preg_replace_callback():_گردآوری_ناموفق_بود:_نام_دارایی_ناشناخته_بعد_از_\P_یا_\p_در_افست_۷" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#preg_replace_callback():_گردآوری_ناموفق_بود:_نام_دارایی_ناشناخته_بعد_از_\P_یا_\p_در_افست_۷"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۱۰</span> <span>preg_replace_callback(): گردآوری ناموفق بود: نام دارایی ناشناخته بعد از \P یا \p در افست ۷</span> </div> </a> <ul id="toc-preg_replace_callback():_گردآوری_ناموفق_بود:_نام_دارایی_ناشناخته_بعد_از_\P_یا_\p_در_افست_۷-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-خطای_لوا" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#خطای_لوا"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۱۱</span> <span>خطای لوا</span> </div> </a> <ul id="toc-خطای_لوا-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-صفحهی_خالی" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#صفحهی_خالی"> <div class="vector-toc-text"> <span class="vector-toc-numb">۷.۱۲</span> <span>صفحهی خالی</span> </div> </a> <ul id="toc-صفحهی_خالی-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-مجوز" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#مجوز"> <div class="vector-toc-text"> <span class="vector-toc-numb">۸</span> <span>مجوز</span> </div> </a> <ul id="toc-مجوز-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-مستندات_طراحی" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#مستندات_طراحی"> <div class="vector-toc-text"> <span class="vector-toc-numb">۹</span> <span>مستندات طراحی</span> </div> </a> <ul id="toc-مستندات_طراحی-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-صفحههای_دیگر" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#صفحههای_دیگر"> <div class="vector-toc-text"> <span class="vector-toc-numb">۱۰</span> <span>صفحههای دیگر</span> </div> </a> <ul id="toc-صفحههای_دیگر-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-همچنین_ببینید" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#همچنین_ببینید"> <div class="vector-toc-text"> <span class="vector-toc-numb">۱۱</span> <span>همچنین ببینید</span> </div> </a> <ul id="toc-همچنین_ببینید-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-پیوند_به_بیرون" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#پیوند_به_بیرون"> <div class="vector-toc-text"> <span class="vector-toc-numb">۱۲</span> <span>پیوند به بیرون</span> </div> </a> <ul id="toc-پیوند_به_بیرون-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-یادداشتها" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#یادداشتها"> <div class="vector-toc-text"> <span class="vector-toc-numb">۱۳</span> <span>یادداشتها</span> </div> </a> <ul id="toc-یادداشتها-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">پسوند: اسکریبونتو</h1> <div class="mw-indicators"> <div id="mw-indicator-phabricator-project" class="mw-indicator"><div class="mw-parser-output"><div class="mw-parser-output"><style data-mw-deduplicate="TemplateStyles:r6605561">.mw-parser-output .tpl-badge{background-color:var(--background-color-progressive-subtle,#eaf3ff);color:var(--color-base,#202122);border-radius:10px;display:inline-block;font-size:90%;padding:5px 8px}</style><div class="tpl-badge"><a href="/wiki/Special:MyLanguage/Phabricator" title="Special:MyLanguage/Phabricator">Issue tracker</a>: <a href="https://phabricator.wikimedia.org/tag/mediawiki-extensions-scribunto/" class="extiw" title="phab:tag/mediawiki-extensions-scribunto/"><b>#MediaWiki-extensions-Scribunto</b></a></div></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-extension" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Extension:Scribunto/fa" title="View the subject page [c]" accesskey="c"><span>Extension</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Extension_talk:Scribunto/fa&action=edit&redlink=1" rel="discussion" class="new" title="Discussion about the content page (page does not exist) [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">فارسی</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/Extension:Scribunto/fa"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Special:Translate&group=page-Extension%3AScribunto&action=page&filter=&language=fa" title="Edit this page [e]" accesskey="e"><span>Translate</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Extension:Scribunto/fa&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/Extension:Scribunto/fa"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:Translate&group=page-Extension%3AScribunto&action=page&filter=&language=fa" title="Edit this page [e]" accesskey="e"><span>Translate</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Extension:Scribunto/fa&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/Extension:Scribunto/fa" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Extension:Scribunto/fa" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Extension:Scribunto/fa&oldid=6875489" 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=Extension:Scribunto/fa&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=Extension%3AScribunto%2Ffa&id=6875489&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FExtension%3AScribunto%2Ffa"><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%2Fwww.mediawiki.org%2Fwiki%2FExtension%3AScribunto%2Ffa"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Extension%3AScribunto%2Ffa"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Extension%3AScribunto%2Ffa&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Extension:Scribunto/fa&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 id="siteSub" class="noprint">From mediawiki.org</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint" dir="ltr" lang="en">This page is a <span class="plainlinks"><a class="external text" href="https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-Extension%3AScribunto&action=page&filter=&language=fa">translated version</a></span> of the page <a href="/wiki/Extension:Scribunto" title="Extension:Scribunto">Extension:Scribunto</a> and the translation is 13% complete.</div><div class="mw-content-rtl mw-parser-output" lang="fa" dir="rtl"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Extension:Scribunto/id" class="mw-pt-progress mw-pt-progress--low" title="Ekstensi:Scribunto (8% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Extension:Scribunto/de" class="mw-pt-progress mw-pt-progress--med" title="Erweiterung:Scribunto (41% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><a href="/wiki/Extension:Scribunto" class="mw-pt-languages-ui mw-pt-progress mw-pt-progress--complete" title="Extension:Scribunto (100% translated)" lang="en" dir="ltr">English</a></li> <li><a href="/wiki/Extension:Scribunto/tl" class="mw-pt-progress mw-pt-progress--low" title="Extension:Scribunto (0% translated)" lang="tl" dir="ltr">Tagalog</a></li> <li><a href="/wiki/Extension:Scribunto/tr" class="mw-pt-progress mw-pt-progress--high" title="Extension:Scribunto (93% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/wiki/Extension:Scribunto/da" class="mw-pt-progress mw-pt-progress--low" title="Udvidelse:Scribunto (2% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Extension:Scribunto/es" class="mw-pt-progress mw-pt-progress--med" title="Extensión:Scribunto (59% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Extension:Scribunto/fr" class="mw-pt-progress mw-pt-progress--high" title="Extension:Scribunto (98% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Extension:Scribunto/hu" class="mw-pt-progress mw-pt-progress--low" title="Extension:Scribunto/hu (3% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Extension:Scribunto/pl" class="mw-pt-progress mw-pt-progress--low" title="Extension:Scribunto/pl (4% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Extension:Scribunto/pt" class="mw-pt-progress mw-pt-progress--low" title="Extensão:Scribunto (0% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/wiki/Extension:Scribunto/pt-br" class="mw-pt-progress mw-pt-progress--med" title="Extensão:Scribunto (18% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Extension:Scribunto/sv" class="mw-pt-progress mw-pt-progress--low" title="Tillägg:Scribunto (12% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="/wiki/Extension:Scribunto/cs" class="mw-pt-progress mw-pt-progress--high" title="Rozšíření:Scribunto (98% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Extension:Scribunto/be-tarask" class="mw-pt-progress mw-pt-progress--low" title="Пашырэньне:Scribunto (6% translated)" lang="be-tarask" dir="ltr">беларуская (тарашкевіца)</a></li> <li><a href="/wiki/Extension:Scribunto/ru" class="mw-pt-progress mw-pt-progress--med" title="Расширение:Scribunto (56% translated)" lang="ru" dir="ltr">русский</a></li> <li><span class="mw-pt-languages-selected mw-pt-progress mw-pt-progress--low" lang="fa" dir="rtl">فارسی</span></li> <li><a href="/wiki/Extension:Scribunto/bn" class="mw-pt-progress mw-pt-progress--low" title="Extension:Scribunto/bn (0% translated)" lang="bn" dir="ltr">বাংলা</a></li> <li><a href="/wiki/Extension:Scribunto/zh" class="mw-pt-progress mw-pt-progress--high" title="Extension: (73% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Extension:Scribunto/ja" class="mw-pt-progress mw-pt-progress--med" title="Extension:Scribunto (38% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Extension:Scribunto/ko" class="mw-pt-progress mw-pt-progress--low" title="확장기능:Scribunto (4% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <style data-mw-deduplicate="TemplateStyles:r6651107">.mw-parser-output .note{background-position:right 7px top 50%;padding:0.5em 40px 0.5em 0.5em;margin:0.5em 0;overflow:hidden;background-color:#f8f9fa;color:#333;background-repeat:no-repeat;border:1px solid #ddd}.mw-parser-output .note-inline{display:inline-block;vertical-align:middle}.mw-parser-output .note-info{background-color:#eaf3ff;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/e/ec/OOjs_UI_icon_information-progressive.svg");background-size:25px;border-color:#a3caff;padding-right:40px;min-height:25px}.mw-parser-output .note-reminder{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-warn{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-error{background-color:#fee7e6;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg");background-size:25px;border-color:#c33;min-height:25px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .note{background-color:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .note{background-color:transparent;color:inherit}}</style><div role="note" class="note note-info"><span lang="en" dir="ltr" class="mw-content-ltr">This extension <a href="/wiki/Special:MyLanguage/MediaWiki_1.34#Bundled_extensions" title="Special:MyLanguage/MediaWiki 1.34">comes with MediaWiki 1.34</a> and above.</span> بنابراین شما مجبور نیستید آن را دوباره بارگیری کنید. با اینحال، شما هنوز هم باید دستورالعملهای دیگر را دنبال کنید.</div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">این پسوند در بالای یک فایل اجرایی اجرا میشود. برای اینکه این افزونه کار کند، باید مجوز اجرای فایلهای اجرایی روی هاست خود را داشته باشید.</div> <style data-mw-deduplicate="TemplateStyles:r6651102">.mw-parser-output .infobox{box-sizing:border-box;border:2px solid var(--border-color-base,#a2a9b1);width:280px;border-collapse:collapse;border-spacing:0;background-color:white;color:#333;clear:right;float:right;margin:0 0 0.5em 0.5em}.mw-parser-output .infobox-rtl{clear:left;float:left;margin:0 0.5em 0.5em 0}.mw-parser-output .infobox th{text-align:left;padding:0.2em 0.5em;vertical-align:top}.mw-parser-output .infobox-rtl th{text-align:right}@media(max-width:719px){body.mediawiki .mw-parser-output .infobox{float:none;clear:both;width:100%;margin:0 0 .5em 0}}.mw-parser-output .infobox td{border:none;padding:0.2em 0.5em;vertical-align:top}.mw-parser-output .infobox-header{background-color:#a2a9b1;color:#FFF;text-align:right}.mw-parser-output .infobox-header a{color:#FFF}.mw-parser-output .infobox-header td,.mw-parser-output .infobox-header th{padding:0.5em 0.5em}.mw-parser-output .infobox-header img{padding:0 0.5em 0 0.2em}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox{background-color:inherit;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox{background-color:inherit;color:inherit}}</style><style data-mw-deduplicate="TemplateStyles:r5577029">.mw-parser-output .ext-infobox>tbody>tr>td:first-child{vertical-align:top}.mw-parser-output .ext-infobox>tbody>tr>td abbr{white-space:nowrap}.mw-parser-output .ext-infobox .mw-collapsible-header,.mw-parser-output .ext-infobox .mw-collapsible-toggle{font-weight:bold}.mw-parser-output .ext-infobox .mw-collapsible-content{margin-top:.2em;padding-top:.2em}.mw-parser-output .ext-infobox-header>th,.mw-parser-output .ext-infobox caption,.mw-parser-output .ext-infobox-image,.mw-parser-output .ext-infobox-translate{text-align:center}.mw-parser-output .ext-infobox-name{font-size:130%;line-height:100%}.mw-parser-output .ext-infobox-type{min-width:7em}</style><style data-mw-deduplicate="TemplateStyles:r6424453">.mw-parser-output .ext-status-unstable,.mw-parser-output .ext-status-unstable td{border-color:#d33}.mw-parser-output .ext-status-unstable .ext-infobox-header{background-color:#d33;color:#fff}.mw-parser-output .ext-status-unstable .ext-infobox-header a{color:#fff}.mw-parser-output .ext-status-experimental,.mw-parser-output .ext-status-experimental td{border-color:#ff4500}.mw-parser-output .ext-status-experimental .ext-infobox-header{background-color:#ff4500;color:#FFF}.mw-parser-output .ext-status-experimental .ext-infobox-header a{color:#FFF}.mw-parser-output .ext-status-beta,.mw-parser-output .ext-status-beta td{border-color:#fc3}.mw-parser-output .ext-status-beta .ext-infobox-header{color:#000;background-color:#fc3}.mw-parser-output .ext-status-beta .ext-infobox-header a{color:#000}.mw-parser-output .ext-status-stable,.mw-parser-output .ext-status-stable td{border-color:#00af89}.mw-parser-output .ext-status-stable .ext-infobox-header{background-color:#068468;color:#FFF}.mw-parser-output .ext-status-stable .ext-infobox-header a{color:#fff}.mw-parser-output .ext-status-unmaintained,.mw-parser-output .ext-status-unmaintained td{border-color:#ac6600}.mw-parser-output .ext-status-unmaintained .ext-infobox-header{background-color:#ac6600;color:#FFF}.mw-parser-output .ext-status-unmaintained .ext-infobox-header a{color:#fff}</style> <table class="infobox infobox-rtl ext-infobox ext-status-stable"> <caption><b><a href="/wiki/Special:MyLanguage/Manual:Extensions" title="Special:MyLanguage/Manual:Extensions">راهنمای افزونهٔ مدیاویکی</a><span style="display:none"><a href="/wiki/Manual:Extensions" title="Manual:Extensions"> </a></span></b></caption> <tbody><tr class="infobox-header ext-infobox-header notheme"> <th colspan="2"><figure class="mw-halign-right" typeof="mw:File"><a href="/wiki/Special:MyLanguage/Template:Extension#Content" title="Special:MyLanguage/Template:Extension"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/1b/OOjs_UI_icon_advanced-invert.svg/40px-OOjs_UI_icon_advanced-invert.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/1b/OOjs_UI_icon_advanced-invert.svg/60px-OOjs_UI_icon_advanced-invert.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/1b/OOjs_UI_icon_advanced-invert.svg/80px-OOjs_UI_icon_advanced-invert.svg.png 2x" data-file-width="20" data-file-height="20" /></a><figcaption></figcaption></figure> <span class="ext-infobox-name">Scribunto</span><br /> <a href="/wiki/Special:MyLanguage/Extension_status" title="Special:MyLanguage/Extension status">وضعیت انتشار:</a><span style="display:none"><a href="/wiki/Extension_status" title="Extension status"> </a></span> پایدار</th> </tr> <tr> <td class="ext-infobox-type"><b><a href="/wiki/Special:MyLanguage/Template:Extension#type" title="Special:MyLanguage/Template:Extension">انجام</a><span style="display:none"><a href="/wiki/Template:Extension#type" title="Template:Extension"> </a></span></b></td> <td><a href="/wiki/Special:MyLanguage/Manual:Extending_wiki_markup" title="Special:MyLanguage/Manual:Extending wiki markup"><span lang="en" dir="ltr" class="mw-content-ltr">Parser extension</span></a><span style="display:none"><a href="/wiki/Manual:Extending_wiki_markup" title="Manual:Extending wiki markup"> </a></span> </td></tr><tr> <td><b><a href="/wiki/Special:MyLanguage/Template:Extension#description" title="Special:MyLanguage/Template:Extension">توضیحات</a><span style="display:none"><a href="/wiki/Template:Extension#description" title="Template:Extension"> </a></span></b></td> <td>چارچوبی برای جاسازی زبانهای برنامهنویسی در صفحات مدیاویکی فراهم میکند</td> </tr> <tr> <td><b><a href="/wiki/Special:MyLanguage/Template:Extension#username" title="Special:MyLanguage/Template:Extension">نویسنده(گان)</a><span style="display:none"><a href="/wiki/Template:Extension#username" title="Template:Extension"> </a></span></b></td> <td> <ul><li>Victor Vasiliev</li> <li>Tim Starling</li></ul> <dl><dd>و دیگران</dd></dl></td> </tr> <tr> <td><b><a href="/wiki/Special:MyLanguage/Template:Extension#version" title="Special:MyLanguage/Template:Extension">آخرین نسخه:</a><span style="display:none"><a href="/wiki/Template:Extension#version" title="Template:Extension"> </a></span></b></td> <td><span lang="en" dir="ltr" class="mw-content-ltr">Continuous updates</span></td> </tr> <tr> <td><b><a href="/wiki/Special:MyLanguage/Compatibility#mediawiki_extensions" title="Special:MyLanguage/Compatibility">سیاست سازگاری</a><span style="display:none"><a href="/wiki/Compatibility#mediawiki_extensions" title="Compatibility"> </a></span></b></td> <td><span lang="en" dir="ltr" class="mw-content-ltr">Snapshots releases along with MediaWiki.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Master is not backward compatible.</span></td> </tr> <tr> <td><a href="/wiki/Special:MyLanguage/Template:Extension#mediawiki" title="Special:MyLanguage/Template:Extension"><b>MediaWiki</b></a><span style="display:none"><a href="/wiki/Template:Extension#mediawiki" title="Template:Extension"> </a></span></td> <td>>= 1.43</td> </tr> <tr> <td><a href="/wiki/Special:MyLanguage/Template:Extension#php" title="Special:MyLanguage/Template:Extension"><b>PHP</b></a><span style="display:none"><a href="/wiki/Template:Extension#php" title="Template:Extension"> </a></span></td> <td>5.5+</td> </tr> <tr> <td><b><a href="/wiki/Special:MyLanguage/Template:Extension#license" title="Special:MyLanguage/Template:Extension">مجوز</a><span style="display:none"><a href="/wiki/Template:Extension#license" title="Template:Extension"> </a></span></b></td> <td>GPL-2.0-or-later AND MIT</td> </tr><tr> <td><b>بارگیری</b></td> <td><div class="plainlinks"><a href="/wiki/Special:ExtensionDistributor/Scribunto" title="Special:ExtensionDistributor/Scribunto"><b>Download extension</b></a> <br />Git <sup>[<a href="/wiki/Special:MyLanguage/Download_from_Git" title="Special:MyLanguage/Download from Git">?</a>]</sup>: <ul><li><span class="plainlinks"><a rel="nofollow" class="external text" href="https://github.com/wikimedia/mediawiki-extensions-Scribunto/archive/master.tar.gz">Download Git master</a></span></li> <li><a href="https://gerrit.wikimedia.org/g/mediawiki/extensions/Scribunto" class="extiw" title="git:mediawiki/extensions/Scribunto">browse repository</a> (<a href="https://phabricator.wikimedia.org/diffusion/ELUA" class="extiw" title="phab:diffusion/ELUA">Phabricator</a> · <a rel="nofollow" class="external text" href="https://github.com/wikimedia/mediawiki-extensions-Scribunto">GitHub</a>)</li> <li><a href="https://gerrit.wikimedia.org/g/mediawiki/extensions/Scribunto/%2Blog/master" class="extiw" title="git:mediawiki/extensions/Scribunto/+log/master">commit history</a></li> <li><a rel="nofollow" class="external text" href="https://github.com/wikimedia/mediawiki-extensions-Scribunto/graphs/contributors">repository contributors (GitHub)</a></li> <li><a href="https://gerrit.wikimedia.org/r/q/project:mediawiki/extensions/Scribunto" class="extiw" title="gerrit:q/project:mediawiki/extensions/Scribunto">code review</a></li></ul></div></td> </tr> <tr> <td class="mw-collapsible mw-collapsed" colspan="2"> <div class="mw-collapsible-header"><b><a href="/wiki/Special:MyLanguage/Template:Extension#namespace" title="Special:MyLanguage/Template:Extension">فضای نام</a><span style="display:none"><a href="/wiki/Template:Extension#namespace" title="Template:Extension"> </a></span></b></div> <div class="mw-collapsible-content"> Module (ns:828), Talk_Module (ns:829)</div></td> </tr> <tr> <td class="mw-collapsible mw-collapsed" colspan="2"> <div class="mw-collapsible-header"><a href="/wiki/Special:MyLanguage/Template:Extension#parameters" title="Special:MyLanguage/Template:Extension">پارامترها</a><span style="display:none"><a href="/wiki/Template:Extension#parameters" title="Template:Extension"> </a></span></div> <div class="mw-collapsible-content"> <ul><li><span class="configvariable" title="The name of the default script engine">$wgScribuntoDefaultEngine</span></li> <li><span class="configvariable" title="If $wgScribuntoGatherFunctionStats is true, this variable specifies the percentile threshold for slow function invocations. Should be a value between 0 and 1 (exclusive).">$wgScribuntoSlowFunctionThreshold</span></li> <li><span class="configvariable" title="Set to true to enable gathering and reporting of performance data for slow function invocations.">$wgScribuntoGatherFunctionStats</span></li> <li><span class="configvariable" title="Set to true to enable the SyntaxHighlight_GeSHi extension integration">$wgScribuntoUseGeSHi</span></li> <li><span class="configvariable" title="Set to true to enable the CodeEditor extension integration">$wgScribuntoUseCodeEditor</span></li> <li><span class="configvariable" title="Configuration for each script engine. Parameters: * profilerPeriod - The profiler sample period, or false to disable the profiler * allowEnvFuncs - Set this to true to allow setfenv() and getfenv() in user code. Note that these functions have been removed in Lua 5.2. Scribunto does not yet support Lua 5.2, but we expect support will be implemented in the future, and there is no guarantee that a simulation of setfenv() and getfenv() will be provided * maxLangCacheSize - The maximum number of languages about which data can be requested. The cost is about 1.5MB of memory usage per language on default installations (during recache), but if recaching is disabled with `$wgLocalisationCacheConf['manualRecache'] = false;` then memory usage is perhaps 10x smaller * errorFile - A filename to act as the destination for stderr from the Lua binary. This may provide useful error information if Lua fails to run. Set this to null to discard stderr output * luaPath - The location of the Lua binary, or null to use the bundled binary">$wgScribuntoEngineConf</span></li></ul></div></td> </tr> <tr> <td class="mw-collapsible mw-collapsed" colspan="2"> <div class="mw-collapsible-header"><a href="/wiki/Special:MyLanguage/Template:Extension#hook" title="Special:MyLanguage/Template:Extension"><span lang="en" dir="ltr" class="mw-content-ltr">Hooks used</span></a><span style="display:none"><a href="/wiki/Template:Extension#hook" title="Template:Extension"> </a></span></div> <style data-mw-deduplicate="TemplateStyles:r6219282">.mw-parser-output .plainlist ul{line-height:inherit;list-style:none none;margin:0}.mw-parser-output .plainlist ul li{margin-bottom:0}</style><div class="plainlist mw-collapsible-content"><ul><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/ArticleViewHeader" title="Special:MyLanguage/Manual:Hooks/ArticleViewHeader">ArticleViewHeader</a><span style="display:none"><a href="/wiki/Manual:Hooks/ArticleViewHeader" title="Manual:Hooks/ArticleViewHeader"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/CodeEditorGetPageLanguage" title="Special:MyLanguage/Manual:Hooks/CodeEditorGetPageLanguage">CodeEditorGetPageLanguage</a><span style="display:none"><a href="/wiki/Manual:Hooks/CodeEditorGetPageLanguage" class="mw-redirect" title="Manual:Hooks/CodeEditorGetPageLanguage"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/ContentHandlerDefaultModelFor" title="Special:MyLanguage/Manual:Hooks/ContentHandlerDefaultModelFor">ContentHandlerDefaultModelFor</a><span style="display:none"><a href="/wiki/Manual:Hooks/ContentHandlerDefaultModelFor" title="Manual:Hooks/ContentHandlerDefaultModelFor"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/EditFilterMergedContent" title="Special:MyLanguage/Manual:Hooks/EditFilterMergedContent">EditFilterMergedContent</a><span style="display:none"><a href="/wiki/Manual:Hooks/EditFilterMergedContent" title="Manual:Hooks/EditFilterMergedContent"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/EditPage::showReadOnlyForm:initial" title="Special:MyLanguage/Manual:Hooks/EditPage::showReadOnlyForm:initial">EditPage::showReadOnlyForm:initial</a><span style="display:none"><a href="/wiki/Manual:Hooks/EditPage::showReadOnlyForm:initial" title="Manual:Hooks/EditPage::showReadOnlyForm:initial"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/EditPage::showStandardInputs:options" title="Special:MyLanguage/Manual:Hooks/EditPage::showStandardInputs:options">EditPage::showStandardInputs:options</a><span style="display:none"><a href="/wiki/Manual:Hooks/EditPage::showStandardInputs:options" title="Manual:Hooks/EditPage::showStandardInputs:options"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/EditPageBeforeEditButtons" title="Special:MyLanguage/Manual:Hooks/EditPageBeforeEditButtons">EditPageBeforeEditButtons</a><span style="display:none"><a href="/wiki/Manual:Hooks/EditPageBeforeEditButtons" title="Manual:Hooks/EditPageBeforeEditButtons"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/ParserClearState" title="Special:MyLanguage/Manual:Hooks/ParserClearState">ParserClearState</a><span style="display:none"><a href="/wiki/Manual:Hooks/ParserClearState" title="Manual:Hooks/ParserClearState"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/ParserCloned" title="Special:MyLanguage/Manual:Hooks/ParserCloned">ParserCloned</a><span style="display:none"><a href="/wiki/Manual:Hooks/ParserCloned" title="Manual:Hooks/ParserCloned"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/ParserFirstCallInit" title="Special:MyLanguage/Manual:Hooks/ParserFirstCallInit">ParserFirstCallInit</a><span style="display:none"><a href="/wiki/Manual:Hooks/ParserFirstCallInit" title="Manual:Hooks/ParserFirstCallInit"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/ParserLimitReportFormat" title="Special:MyLanguage/Manual:Hooks/ParserLimitReportFormat">ParserLimitReportFormat</a><span style="display:none"><a href="/wiki/Manual:Hooks/ParserLimitReportFormat" title="Manual:Hooks/ParserLimitReportFormat"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/ParserLimitReportPrepare" title="Special:MyLanguage/Manual:Hooks/ParserLimitReportPrepare">ParserLimitReportPrepare</a><span style="display:none"><a href="/wiki/Manual:Hooks/ParserLimitReportPrepare" title="Manual:Hooks/ParserLimitReportPrepare"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Manual:Hooks/SoftwareInfo" title="Special:MyLanguage/Manual:Hooks/SoftwareInfo">SoftwareInfo</a><span style="display:none"><a href="/wiki/Manual:Hooks/SoftwareInfo" title="Manual:Hooks/SoftwareInfo"> </a></span></li></ul></div> </td> </tr> <tr> <td class="mw-collapsible mw-collapsed" colspan="2"> <div class="mw-collapsible-header"><a href="/wiki/Special:MyLanguage/Template:Extension#newhook" title="Special:MyLanguage/Template:Extension"><span lang="en" dir="ltr" class="mw-content-ltr">Hooks provided</span></a><span style="display:none"><a href="/wiki/Template:Extension#newhook" title="Template:Extension"> </a></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6219282"><div class="plainlist mw-collapsible-content"><ul><li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Hooks/ScribuntoExternalLibraries" title="Special:MyLanguage/Extension:Scribunto/Hooks/ScribuntoExternalLibraries">ScribuntoExternalLibraries</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Hooks/ScribuntoExternalLibraries" title="Extension:Scribunto/Hooks/ScribuntoExternalLibraries"> </a></span></li><li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Hooks/ScribuntoExternalLibraryPaths" title="Special:MyLanguage/Extension:Scribunto/Hooks/ScribuntoExternalLibraryPaths">ScribuntoExternalLibraryPaths</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Hooks/ScribuntoExternalLibraryPaths" title="Extension:Scribunto/Hooks/ScribuntoExternalLibraryPaths"> </a></span></li></ul></div> </td> </tr> <tr> <td title="This only includes downloads from Special:ExtensionDistributor. Other download methods such as git or bundled extensions are not included."><b><span lang="en" dir="ltr" class="mw-content-ltr">Quarterly downloads</span></b></td> <td>443 (Ranked 7<sup>th</sup>)</td> </tr> <tr> <td title=""><a rel="nofollow" class="external text" href="https://wikiapiary.com/wiki/Extension:Scribunto"><b><span lang="en" dir="ltr" class="mw-content-ltr">Public wikis using</span></b></a></td> <td>8,789 (Ranked 30<sup>th</sup>)</td> </tr> <tr> <td colspan="2" class="ext-infobox-translate"> <span lang="en" dir="ltr" class="mw-content-ltr"><a href="https://translatewiki.net/wiki/Special:Translate/ext-scribunto" class="extiw" title="translatewiki:Special:Translate/ext-scribunto">Translate the Scribunto extension</a> if it is available at translatewiki.net</span></td> </tr><tr class="mw-empty-elt"> </tr> <tr> <td><b><a href="/wiki/Special:MyLanguage/MediaWiki-Vagrant#Using_roles" title="Special:MyLanguage/MediaWiki-Vagrant"><span lang="en" dir="ltr" class="mw-content-ltr">Vagrant role</span></a><span style="display:none"><a href="/wiki/MediaWiki-Vagrant#Using_roles" title="MediaWiki-Vagrant"> </a></span></b></td> <td><a class="external text" href="https://doc.wikimedia.org/mediawiki-vagrant/puppet_classes/role_3A_3Ascribunto.html">scribunto</a></td> </tr> <tr> <td> <b><a href="/wiki/Special:MyLanguage/Phabricator" title="Special:MyLanguage/Phabricator"><span lang="en" dir="ltr" class="mw-content-ltr">Issues</span></a><span style="display:none"><a href="/wiki/Phabricator" title="Phabricator"> </a></span></b></td> <td><a href="https://phabricator.wikimedia.org/tag/mediawiki-extensions-scribunto" class="extiw" title="phab:tag/mediawiki-extensions-scribunto"><span lang="en" dir="ltr" class="mw-content-ltr">Open tasks</span></a> · <a class="external text" href="https://phabricator.wikimedia.org/maniphest/task/create/?projects=MediaWiki-extensions-Scribunto">گزارش یک مشکل</a></td> </tr> </tbody></table> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The <b>Scribunto</b> (<a href="https://en.wikipedia.org/wiki/Latin" class="extiw" title="w:Latin">Latin</a>: "<i><a href="https://en.wiktionary.org/wiki/scribunto" class="extiw" title="wikt:scribunto">they shall write/let them write (in the future)</a></i>") extension allows for embedding scripting languages in MediaWiki. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Currently the only supported scripting language is <a href="https://en.wikipedia.org/wiki/Wikipedia:Lua" class="extiw" title="w:Wikipedia:Lua">Lua</a>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Scribunto Lua scripts go in a namespace called <b>Module</b>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Modules are run on normal wiki pages using the <b>#invoke</b> <a href="/wiki/Special:MyLanguage/parser_function" title="Special:MyLanguage/parser function">parser function</a><span style="display:none"><a href="/wiki/Parser_function" class="mw-redirect mw-disambig" title="Parser function"> </a></span> and each module has a collection of <b>functions</b>, which can be called using wikitext syntax such as:</span> </p> <pre><span class="anchor" id="#invoke"></span><span class="anchor" id=".23invoke"></span>{{#invoke: <i>Module_name</i> | <i>function_name</i> | <i>arg1</i> | <i>arg2</i> | <i>arg3</i> ... }} </pre> <div lang="en" dir="ltr" class="mw-content-ltr"> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Installation">Installation</h2></div> </div> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr"><a href="/wiki/Special:ExtensionDistributor/Scribunto" title="Special:ExtensionDistributor/Scribunto">Download</a> and move the extracted <code>Scribunto</code> folder to your <code>extensions/</code> directory.</span><br /><span lang="en" dir="ltr" class="mw-content-ltr">Developers and code contributors should install the extension <a href="/wiki/Special:MyLanguage/Download_from_Git" title="Special:MyLanguage/Download from Git">from Git</a> instead, using:</span><code class="mw-code mw-highlight" style="display:block">cd extensions/<br />git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto</code></li> <li><span class="mw-translate-fuzzy">کد زیر را در انتهای $LocalSettings خودتان اضافه کنید:</span> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Scribunto'</span> <span class="p">);</span> <span class="nv">$wgScribuntoDefaultEngine</span> <span class="o">=</span> <span class="s1">'luastandalone'</span><span class="p">;</span> </pre></div></li> <li><span typeof="mw:File"><span><img alt="Yes" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/f6/OOjs_UI_icon_check-constructive.svg/15px-OOjs_UI_icon_check-constructive.svg.png" decoding="async" width="15" height="15" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/f6/OOjs_UI_icon_check-constructive.svg/23px-OOjs_UI_icon_check-constructive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/f6/OOjs_UI_icon_check-constructive.svg/30px-OOjs_UI_icon_check-constructive.svg.png 2x" data-file-width="20" data-file-height="20" /></span></span> <b>انجام شد</b> – به <a href="/wiki/Special:Version" title="Special:Version">Special:Version</a> در ویکی خودتان بروید تا مطئمن شوید که افزونه با موفقیت نصب شده است.</li></ul> <p><br /> <b><span lang="en" dir="ltr" class="mw-content-ltr">Vagrant installation:</span></b> </p> <ul><li>اگر از <a href="/wiki/Special:MyLanguage/MediaWiki-Vagrant" title="Special:MyLanguage/MediaWiki-Vagrant">Vagrant</a><span style="display:none"><a href="/wiki/MediaWiki-Vagrant" title="MediaWiki-Vagrant"> </a></span> استفاده میکنید، با <code>vagrant roles enable scribunto --provision</code> نصب کنید</li></ul> <p><span id="Requirements"></span> </p> <div class="mw-heading mw-heading2"><h2 id="الزامات"><span id=".D8.A7.D9.84.D8.B2.D8.A7.D9.85.D8.A7.D8.AA"></span>الزامات</h2></div> <p><span id="PCRE_version_compatibility"></span> </p> <div class="mw-heading mw-heading3"><h3 id="سازگاری_نسخه_PCRE"><span id=".D8.B3.D8.A7.D8.B2.DA.AF.D8.A7.D8.B1.DB.8C_.D9.86.D8.B3.D8.AE.D9.87_PCRE"></span>سازگاری نسخه PCRE</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">PCRE 8.33+ is recommended.</span> <span lang="en" dir="ltr" class="mw-content-ltr">PCRE 8.33 was released in May 2013.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can see the version of <a href="https://en.wikipedia.org/wiki/PCRE" class="extiw" title="w:PCRE">PCRE</a> used by PHP by viewing a phpinfo() web page, or from the command line with the following command:</span> </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>php<span class="w"> </span>-r<span class="w"> </span><span class="s1">'echo "pcre: " . ( extension_loaded( "pcre" ) ? PCRE_VERSION : "no" ) . "\n";'</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>Scribunto will not work with versions of PCRE lower than 8.10.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>PCRE 8.32 has <a rel="nofollow" class="external text" href="https://bugs.exim.org/show_bug.cgi?id=1340">a bug</a> that will cause it to reject certain <a href="https://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Non-characters" class="extiw" title="w:Mapping of Unicode characters">non-character codepoints</a>, which will cause errors in the mw.html module.</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>CentOS 6 and RHEL 6 are stuck on PCRE 7 and need to be upgraded. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Updating to 8.33 on a server with an older version may be relatively complicated.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See <a href="/wiki/Special:MyLanguage/Updating_to_PCRE_8.33_or_Higher" title="Special:MyLanguage/Updating to PCRE 8.33 or Higher">Updating to PCRE 8.33 or Higher</a><span style="display:none"><a href="/wiki/Updating_to_PCRE_8.33_or_Higher" title="Updating to PCRE 8.33 or Higher"> </a></span> for details.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="PHP_pcntl_(LTS_)"><span id="PHP_pcntl_.28LTS_.29"></span>PHP pcntl (<a href="/wiki/Special:MyLanguage/LTS" title="Special:MyLanguage/LTS">LTS</a><span style="display:none"><a href="/wiki/LTS" class="mw-redirect" title="LTS"> </a></span>)</h3></div> </div> <style data-mw-deduplicate="TemplateStyles:r4199130">.mw-parser-output .mw-version{border:1px solid #72777d;font-size:80%;line-height:1.2;border-collapse:collapse}.mw-parser-output .mw-version-ltr{float:right;margin:0 0 .5em .5em;text-align:right}.mw-parser-output .mw-version-rtl{float:left;margin:0 .5em .5em 0;text-align:left}.mw-parser-output .mw-version td{padding:.1em .3em}.mw-parser-output .mw-version-versionbox{border:5px solid #00af89;text-align:center}.mw-parser-output .mw-version-versionnumber{font-weight:bold;font-size:180%}.mw-parser-output .mw-version-version .mw-version-versionbox{border-color:#c8ccd1}.mw-parser-output .mw-version.mw-version-version2 .mw-version-versionbox{border-top-color:#c8ccd1;border-left-color:#c8ccd1;border-right-color:#c8ccd1}.mw-parser-output .mw-version-version-unsupported .mw-version-versionbox{border-color:#d33}.mw-parser-output .mw-version.mw-version-version2-unsupported .mw-version-versionbox{border-top-color:#d33;border-left-color:#d33;border-right-color:#d33}.mw-parser-output .mw-version-version-legacy .mw-version-versionbox{border-color:#f93}.mw-parser-output .mw-version.mw-version-version2-legacy .mw-version-versionbox{border-top-color:#f93;border-left-color:#f93;border-right-color:#f93}.mw-parser-output .mw-version-version-stable .mw-version-versionbox,.mw-parser-output .mw-version.mw-version.mw-version-and-later .mw-version-versionbox{border-color:#00af89}.mw-parser-output .mw-version.mw-version-version2-stable .mw-version-versionbox{border-top-color:#00af89;border-left-color:#00af89;border-right-color:#00af89}.mw-parser-output .mw-version-version-future .mw-version-versionbox{border-color:#8080c0}.mw-parser-output .mw-version.mw-version-version2-future .mw-version-versionbox{border-top-color:#8080c0;border-left-color:#8080c0;border-right-color:#8080c0}.mw-parser-output .mw-version-version-alpha .mw-version-versionbox{border-style:dotted}</style> <table class="mw-version mw-version-rtl mw-version-version mw-version-version-unsupported mw-version-version2 mw-version-version2-unsupported"><tbody><tr> <td><span lang="en" dir="ltr" class="mw-content-ltr">MediaWiki versions:</span></td> <td class="mw-version-versionbox" title="MediaWiki 1.28 is an unsupported version"><div class="mw-version-versionnumber"> 1.25 – 1.28</div></td> </tr></tbody></table> <p><span lang="en" dir="ltr" class="mw-content-ltr">Scribunto versions for MediaWiki 1.25 to 1.28 required PHP's <a rel="nofollow" class="external text" href="https://php.net/pcntl.installation">pcntl extension</a>, which is only available on Unix/Linux platforms, if you want to use "LuaStandalone" (i.e. running in a separate child process).</span> <span lang="en" dir="ltr" class="mw-content-ltr">This requirement was removed in Scribunto for MediaWiki 1.29.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You can check whether pcntl support is enabled by viewing a phpinfo() web page, or from the command line with the following command: </p> </div> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>php<span class="w"> </span>-r<span class="w"> </span><span class="s1">'echo "pcntl: " . ( extension_loaded( "pcntl" ) ? "yes" : "no" ) . "\n";'</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="PHP_mbstring_extension">PHP mbstring extension</h3></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>PHP needs to have the <a rel="nofollow" class="external text" href="https://php.net/mbstring">mbstring</a> extension enabled. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You can check whether mbstring support is enabled by viewing a phpinfo() web page, or from the command line with the following command: </p> </div> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>php<span class="w"> </span>-r<span class="w"> </span><span class="s1">'echo "mbstring: " . ( extension_loaded( "mbstring" ) ? "yes" : "no" ) . "\n";'</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Lua_binary">Lua binary</h3></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading4"><h4 id="Bundled_binaries">Bundled binaries</h4></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Scribunto comes bundled with Lua binary distributions for Linux (x86 and x86-64), Mac OS X Lion, and Windows (32- and 64-bit). </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Scribunto should work for you out of the box if: </p> </div> <ol><li><span lang="en" dir="ltr" class="mw-content-ltr">Your web server is run on one of the above platforms.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">PHP's <code>proc_open</code> function is not restricted.</span><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></li> <li><code>proc_terminate</code> and <code>shell_exec</code> are not disabled in PHP.</li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Your web server is configured to allow the execution of binary files in the MediaWiki tree.</span></li></ol> <dl><dd><span typeof="mw:File"><span><img alt="نکته" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/18px-OOjs_UI_icon_lightbulb-yellow.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/27px-OOjs_UI_icon_lightbulb-yellow.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/36px-OOjs_UI_icon_lightbulb-yellow.svg.png 2x" data-file-width="20" data-file-height="20" /></span></span> <b>نکته:</b> <span lang="en" dir="ltr" class="mw-content-ltr">Execute permissions may need to be set; for example, in Linux use:</span> <dl><dd><div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>chmod<span class="w"> </span><span class="m">755</span><span class="w"> </span>/path/to/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua </pre></div> <span lang="en" dir="ltr" class="mw-content-ltr">If you are using SELinux in "Enforcing" mode on your server, you might need to set a proper context for the binaries.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Example for RHEL/CentOS 7:</span> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>chcon<span class="w"> </span>-t<span class="w"> </span>httpd_sys_script_exec_t<span class="w"> </span>/path/to/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua </pre></div></dd></dl></dd></dl> <p><span lang="en" dir="ltr" class="mw-content-ltr">P.S. Check your version of the extension to see if the name of the engines folder is capitalised or fully lowercase.</span><sup id="cite_ref-engines_2-0" class="reference"><a href="#cite_note-engines-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading4"><h4 id="Additional_binaries">Additional binaries</h4></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Additional Lua binary distributions, which may be needed for your web server if its operating system is not in the list above, can be obtained from <a rel="nofollow" class="external free" href="http://luabinaries.sourceforge.net/">http://luabinaries.sourceforge.net/</a> or from your Linux distribution. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Only binary files for Lua 5.1.x are supported. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Once you've installed the appropriate binary file on your web server, configure the location of the file with: </p> </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="c1"># Where Lua is the name of the binary file</span> <span class="c1"># e.g. SourceForge LuaBinaries 5.1.5 - Release 2 name the binary file lua5.1</span> <span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'luaPath'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'/path/to/binaries/lua5.1'</span><span class="p">;</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Note that you should not add the above line unless you've confirmed that Scribunto's built-in binaries don't work for you. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>LuaJIT, although theoretically compatible, is not supported. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The support was removed due to <a href="https://en.wikipedia.org/wiki/Spectre_(security_vulnerability)" class="extiw" title="w:Spectre (security vulnerability)">Spectre</a> and bitrot concerns (<a href="https://phabricator.wikimedia.org/T184156" class="extiw" title="phab:T184156">phab:T184156</a>). </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2"><h2 id="Optional_installation">Optional installation</h2></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Integrating_extensions">Integrating extensions</h3></div> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>For a more pleasant user interface, with syntax highlighting and a code editor with autoindent, install the following extensions: </p> </div> <ul><li><a href="/wiki/Special:MyLanguage/Extension:WikiEditor" title="Special:MyLanguage/Extension:WikiEditor">WikiEditor</a><span style="display:none"><a href="/wiki/Extension:WikiEditor" title="Extension:WikiEditor"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:SyntaxHighlight" title="Special:MyLanguage/Extension:SyntaxHighlight">SyntaxHighlight</a><span style="display:none"><a href="/wiki/Extension:SyntaxHighlight" title="Extension:SyntaxHighlight"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:CodeEditor" title="Special:MyLanguage/Extension:CodeEditor">CodeEditor</a><span style="display:none"><a href="/wiki/Extension:CodeEditor" title="Extension:CodeEditor"> </a></span></li></ul> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-rtl mw-version-version mw-version-version-unsupported"><tbody><tr> <td>نسخهٔ مدیاویکی:</td> <td class="mw-version-versionbox" title="MediaWiki 1.30 is an unsupported version"><div class="mw-version-versionnumber"><small><span lang="en" dir="ltr" class="mw-content-ltr">≤</span></small> 1.30</div></td> </tr></tbody></table> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Then in your <code>LocalSettings.php</code> after all the extension registrations, add: </p> </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgScribuntoUseGeSHi</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> <span class="nv">$wgScribuntoUseCodeEditor</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> </pre></div> <p>These settings are not necessary in MediaWiki versions after 1.30, where the code editor and syntax hightlighting should be used in the appropriate places automatically once the extensions are loaded. However, other settings may be desired. See the documentation for each extension. </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="LuaSandbox">LuaSandbox</h3></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">We have developed a PHP extension written in C called LuaSandbox.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It can be used as an alternative to the standalone binary, and will provide improved performance.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See <a href="/wiki/Special:MyLanguage/LuaSandbox" title="Special:MyLanguage/LuaSandbox">LuaSandbox</a><span style="display:none"><a href="/wiki/LuaSandbox" title="LuaSandbox"> </a></span> for details and installation instructions.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If you initially installed the extension to use the Lua standalone binary, be sure to update <code>LocalSettings.php</code> with the following configuration setting: </p> </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgScribuntoDefaultEngine</span> <span class="o">=</span> <span class="s1">'luasandbox'</span><span class="p">;</span> </pre></div> <p><span id="Configuration"></span> </p> <div class="mw-heading mw-heading2"><h2 id="پیکربندی"><span id=".D9.BE.DB.8C.DA.A9.D8.B1.D8.A8.D9.86.D8.AF.DB.8C"></span>پیکربندی</h2></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The following configuration variables are available: </p> </div> <dl><dt>$wgScribuntoDefaultEngine</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Select the engine.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Valid values are the keys in <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgScribuntoEngineConf</span></code>, which by default are <code>'luasandbox'</code> or <code>'luastandalone'</code>.</span></dd> <dt>$wgScribuntoUseGeSHi</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">When <a href="/wiki/Special:MyLanguage/Extension:SyntaxHighlight" title="Special:MyLanguage/Extension:SyntaxHighlight">Extension:SyntaxHighlight</a><span style="display:none"><a href="/wiki/Extension:SyntaxHighlight" title="Extension:SyntaxHighlight"> </a></span> is installed, set this true to use it when displaying Module pages. (MediaWiki 1.30 or earlier.)</span></dd> <dt>$wgScribuntoUseCodeEditor</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">When <a href="/wiki/Special:MyLanguage/Extension:CodeEditor" title="Special:MyLanguage/Extension:CodeEditor">Extension:CodeEditor</a><span style="display:none"><a href="/wiki/Extension:CodeEditor" title="Extension:CodeEditor"> </a></span> is installed, set this <code>true</code> to use it when editing Module pages. (MediaWiki 1.30 or earlier.)</span></dd> <dt>$wgScribuntoEngineConf</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">An associative array for engine configuration.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Keys are the valid values for <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgScribuntoDefaultEngine</span></code>, and values are associative arrays of configuration data.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Each configuration array must contain a <code>'class'</code> key naming the <code>ScribuntoEngineBase</code> subclass to use.</span></dd></dl> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="LuaStandalone">LuaStandalone</h3></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">The following keys are used in <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgScribuntoEngineConf</span></code> for <code>Scribunto_LuaStandaloneEngine</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Generally you'd set these as something like</span> </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'key'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'value'</span><span class="p">;</span> </pre></div> <dl><dt>luaPath</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Specify the path to a Lua interpreter.</span></dd> <dt>errorFile</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Specify the path to a file, writable by the web server user, where the error and debugging output from the standalone interpreter will be logged.</span></dd> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Error output produced by the standalone interpreter are not logged by default.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Configure logging with:</span></dd></dl> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'errorFile'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'/path/to/file.log'</span><span class="p">;</span> </pre></div> <dl><dt>memoryLimit</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Specify the memory limit in bytes. Default 52428800 (50MB) (enforced using ulimit).</span></dd> <dt>cpuLimit</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Specify the CPU time limit in seconds (enforced using ulimit).</span></dd> <dt>allowEnvFuncs</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Set true to allow use of setfenv and getfenv in modules.</span></dd></dl> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="LuaSandbox_2">LuaSandbox</h3></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">The following keys are used in <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgScribuntoEngineConf</span></code> for <code>Scribunto_LuaSandboxEngine</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Generally you'd set these as something like</span> </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luasandbox'</span><span class="p">][</span><span class="s1">'key'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'value'</span><span class="p">;</span> </pre></div> <dl><dt>memoryLimit</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Specify the memory limit in bytes.</span> Default 52428800 (50MB)</dd> <dt>cpuLimit</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Specify the CPU time limit in seconds.</span></dd> <dt>profilerPeriod</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Specify the time between polls in sections for the Lua profiler.</span></dd> <dt>allowEnvFuncs</dt> <dd><span lang="en" dir="ltr" class="mw-content-ltr">Set true to allow use of setfenv and getfenv in modules.</span></dd></dl> <p><span id="Usage"></span> </p> <div class="mw-heading mw-heading2"><h2 id="استفاده"><span id=".D8.A7.D8.B3.D8.AA.D9.81.D8.A7.D8.AF.D9.87"></span>استفاده</h2></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Scripts go in a new namespace called <b><a href="/wiki/Special:PrefixIndex/Module:" title="Special:PrefixIndex/Module:">Module</a></b>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Each module has a collection of functions, which can be called using wikitext syntax such as:</span> </p><p><span class="anchor" id="#invoke"></span><span class="anchor" id=".23invoke"></span>{{#invoke: <i>Module_name</i> | <i>function_name</i> | <i>arg1</i> | <i>arg2</i> | <i>arg3</i> ... }} <span id="Lua"></span> </p> <div class="mw-heading mw-heading2"><h2 id="لوا"><span id=".D9.84.D9.88.D8.A7"></span>لوا</h2></div> <p><span id="Learning_Lua"></span> </p> <div class="mw-heading mw-heading3"><h3 id="یادگیری_لوا"><span id=".DB.8C.D8.A7.D8.AF.E2.80.8C.DA.AF.DB.8C.D8.B1.DB.8C_.D9.84.D9.88.D8.A7"></span>یادگیری لوا</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Lua is a simple programming language intended to be accessible to beginners.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For a quick crash-course on Lua, try <a rel="nofollow" class="external text" href="http://tylerneylon.com/a/learn-lua/">Learn Lua in 15 Minutes</a>.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">The best comprehensive introduction to Lua is the book <i>Programming in Lua</i>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The first edition (for Lua 5.0) is available online and is mostly relevant to Lua 5.1, the version used by Scribunto:</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li><a rel="nofollow" class="external text" href="https://www.lua.org/pil/index.html">Programming in Lua</a> (scroll down past the book ads to find the text)</li></ul> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The reference manual is also useful: </p> </div> <ul><li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Lua_reference_manual" title="Special:MyLanguage/Extension:Scribunto/Lua reference manual">Extension:Scribunto/Lua reference manual</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Lua_reference_manual" title="Extension:Scribunto/Lua reference manual"> </a></span></li></ul> <p><span id="Lua_environment"></span> </p> <div class="mw-heading mw-heading3"><h3 id="محیط_لوا"><span id=".D9.85.D8.AD.DB.8C.D8.B7_.D9.84.D9.88.D8.A7"></span>محیط لوا</h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>In Lua, the set of all global variables and functions is called an environment. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Each <code>{{#invoke:}}</code> call runs in a separate environment.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Variables defined in one <code>{{#invoke:}}</code> will not be available from another.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This restriction was necessary to maintain flexibility in the wikitext parser implementation.</span> </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info"><span lang="en" dir="ltr" class="mw-content-ltr">The environment which scripts run in is not quite the same as in standard Lua.</span> <span lang="en" dir="ltr" class="mw-content-ltr">These differences are noted in <a href="/wiki/Special:MyLanguage/Extension:Scribunto/Lua_reference_manual#Differences_from_standard_Lua" title="Special:MyLanguage/Extension:Scribunto/Lua reference manual">Extension:Scribunto/Lua reference manual</a>.</span></div> <p><span id="Debug_console"></span> </p> <div class="mw-heading mw-heading3"><h3 id="کنسول_اشکال_زدایی"><span id=".DA.A9.D9.86.D8.B3.D9.88.D9.84_.D8.A7.D8.B4.DA.A9.D8.A7.D9.84_.D8.B2.D8.AF.D8.A7.DB.8C.DB.8C"></span>کنسول اشکال زدایی</h3></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Scribunto_debug_console_usage_example.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Scribunto_debug_console_usage_example.png/220px-Scribunto_debug_console_usage_example.png" decoding="async" width="220" height="208" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Scribunto_debug_console_usage_example.png/330px-Scribunto_debug_console_usage_example.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Scribunto_debug_console_usage_example.png/440px-Scribunto_debug_console_usage_example.png 2x" data-file-width="1073" data-file-height="1016" /></a><figcaption><span lang="en" dir="ltr" class="mw-content-ltr">Debug console usage example</span></figcaption></figure> <dl><dd><i><span lang="en" dir="ltr" class="mw-content-ltr">See also:</span> <a href="/wiki/Special:MyLanguage/Extension:Scribunto/Debug_console" title="Special:MyLanguage/Extension:Scribunto/Debug console">Extension:Scribunto/Debug console</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Debug_console" title="Extension:Scribunto/Debug console"> </a></span></i></dd></dl> <p><span lang="en" dir="ltr" class="mw-content-ltr">When editing a Lua module a so-called "debug console" can be found underneath the edit form.</span> <span lang="en" dir="ltr" class="mw-content-ltr">In this debug console Lua code can be executed without having to save or even create the Lua module in question.</span> </p><p><span id="Troubleshooting"></span> </p> <div class="mw-heading mw-heading2"><h2 id="عیب_یابی"><span id=".D8.B9.DB.8C.D8.A8_.DB.8C.D8.A7.D8.A8.DB.8C"></span>عیب یابی</h2></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Script_error_clickable_Scribunto.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/mediawiki/thumb/0/04/Script_error_clickable_Scribunto.png/220px-Script_error_clickable_Scribunto.png" decoding="async" width="220" height="229" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/mediawiki/thumb/0/04/Script_error_clickable_Scribunto.png/330px-Script_error_clickable_Scribunto.png 1.5x, //upload.wikimedia.org/wikipedia/mediawiki/0/04/Script_error_clickable_Scribunto.png 2x" data-file-width="336" data-file-height="350" /></a><figcaption><span lang="en" dir="ltr" class="mw-content-ltr">Troubleshooting using the clickable "Script error" link.</span></figcaption></figure> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Note that red <strong class="error">خطای اسکریپتی</strong> messages are clickable and will provide more detailed information. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Cannot_execute_extensions/Scribunto/includes/Engines/LuaStandalone/binaries"><span id="Cannot_execute_extensions.2FScribunto.2Fincludes.2FEngines.2FLuaStandalone.2Fbinaries"></span>Cannot execute extensions/Scribunto/includes/Engines/LuaStandalone/binaries</h3></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Make sure execute permissions are set for the Lua binaries bundled with this extension:</span><sup id="cite_ref-engines_2-1" class="reference"><a href="#cite_note-engines-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>chmod<span class="w"> </span>a+x<span class="w"> </span>/path/to/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/<span class="nv">$YOUR_OS</span>/lua </pre></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Set type to <code>httpd_sys_script_exec_t</code> if SELinux is enforced:</span><sup id="cite_ref-engines_2-2" class="reference"><a href="#cite_note-engines-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>chcon<span class="w"> </span>-t<span class="w"> </span>httpd_sys_script_exec_t<span class="w"> </span>/path/to/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/yourOS/lua </pre></div> <div class="mw-heading mw-heading3"><h3 id="خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_1_خارج_شده_است."><span id=".D8.AE.D8.B7.D8.A7.DB.8C_.D9.84.D9.88.D8.A2:_.D8.AE.D8.B7.D8.A7.DB.8C_.D8.AF.D8.A7.D8.AE.D9.84.DB.8C:_.D9.85.D9.81.D8.B3.D8.B1_.D8.A8.D8.A7_.D9.88.D8.B6.D8.B9.DB.8C.D8.AA_1_.D8.AE.D8.A7.D8.B1.D8.AC_.D8.B4.D8.AF.D9.87_.D8.A7.D8.B3.D8.AA."></span>خطای لوآ: خطای داخلی: مفسر با وضعیت 1 خارج شده است.</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">When using the LuaStandalone engine (this is the default), errors along the lines of <b>"خطای لوآ: خطای داخلی: مفسر با وضعیت 1 خارج شده است."</b> may be generated if the standalone Lua interpreter cannot be executed or runs into various runtime errors.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To obtain more information, assign a file path to <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'errorFile'</span><span class="p">]</span></code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The interpreter's error output will be logged to the specified file, which should prove more helpful in tracking down the issue.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The information in the debug log includes debugging information, which is why there is so much of it.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You should be able to ignore any line beginning with "TX" or "RX".</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">If you're setting up Scribunto and are using IIS/Windows, this appears to be solved by commenting out <a class="external text" href="https://www.mediawiki.org/w/index.php?title=Topic:W6pj4xql1tjpvfyb&topic_showPostId=watax8fwicsi11ps#flow-post-watax8fwicsi11ps">a particular line</a>.</span> </p> <div class="mw-heading mw-heading3"><h3 id="خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_2_خارج_شده_است."><span id=".D8.AE.D8.B7.D8.A7.DB.8C_.D9.84.D9.88.D8.A2:_.D8.AE.D8.B7.D8.A7.DB.8C_.D8.AF.D8.A7.D8.AE.D9.84.DB.8C:_.D9.85.D9.81.D8.B3.D8.B1_.D8.A8.D8.A7_.D9.88.D8.B6.D8.B9.DB.8C.D8.AA_2_.D8.AE.D8.A7.D8.B1.D8.AC_.D8.B4.D8.AF.D9.87_.D8.A7.D8.B3.D8.AA."></span>خطای لوآ: خطای داخلی: مفسر با وضعیت 2 خارج شده است.</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">When using the LuaStandalone engine (this is the default), status 2 suggests memory allocation errors, probably caused by settings that allocate inadequate memory space for PHP or Lua, or both.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Assigning a file path to <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'errorFile'</span><span class="p">]</span></code> and examining that output can be valuable in diagnosing memory allocation errors.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Increase PHP allocation in your PHP configuration; add the line <code>memory_limit = 200M</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This allocation of 200MB is often sufficient (as of MediaWiki 1.24) but can be increased as required.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Set Scribunto's memory allocation in <code>LocalSettings.php</code> as a line:</span> </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'memoryLimit'</span><span class="p">]</span> <span class="o">=</span> <span class="mi">209715200</span><span class="p">;</span> <span class="c1"># bytes</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Finally, depending on the server configuration, some installations may be helped by adding another <code>LocalSettings.php</code> line </p> </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgMaxShellMemory</span> <span class="o">=</span> <span class="mi">204800</span><span class="p">;</span> <span class="c1"># in KB</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Note that all 3 memory limits are given in different units. </p> </div> <p><span id="Lua_error:_Internal_error:_2._on_ARM_architecture"></span> </p> <div class="mw-heading mw-heading3"><h3 id="خطا_لوا:_خطای_داخلی:_۲._در_معماری_ایآراِم"><span id=".D8.AE.D8.B7.D8.A7_.D9.84.D9.88.D8.A7:_.D8.AE.D8.B7.D8.A7.DB.8C_.D8.AF.D8.A7.D8.AE.D9.84.DB.8C:_.DB.B2._.D8.AF.D8.B1_.D9.85.D8.B9.D9.85.D8.A7.D8.B1.DB.8C_.D8.A7.DB.8C.E2.80.8C.D8.A2.D8.B1.E2.80.8C.D8.A7.D9.90.D9.85"></span>خطا لوا: خطای داخلی: ۲. در معماری ایآراِم</h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If you're using an ARM architecture processor like on a RaspberryPi you'll face the error <code>Lua error: Internal error: The interpreter exited with status 2.</code> due to wrong delivered binary format of the Lua interpreter. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Check your Lua interpreter in: </p> </div> <pre>/path/to/webdir/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic </pre> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Check the interpreter by using: </p> </div> <pre>file lua </pre> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The result should look like : </p> </div> <pre>lua: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0 </pre> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The installed default Lua interpreter shows: </p> </div> <pre>lua: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.9, </pre> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>look at the "Intel 80386" part what definitely is not correct. </p> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Check in <code>/usr/bin</code> what version of Lua is installed on your system.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If you have lua5.1 installed, you can either copy the interpreter to your <code>lua5_1_5_linux_32_generic</code> directory or set in your LocalSettings.php:</span> </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'luaPath'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'/usr/bin/lua5.1'</span><span class="p">;</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>At present don't set <code>wgScribuntoEngineConf</code> to /usr/bin/lua5.3, it'll lead to the "Internal error 1". </p> </div> <div class="mw-heading mw-heading3"><h3 id="خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_24_خارج_شده_است."><span id=".D8.AE.D8.B7.D8.A7.DB.8C_.D9.84.D9.88.D8.A2:_.D8.AE.D8.B7.D8.A7.DB.8C_.D8.AF.D8.A7.D8.AE.D9.84.DB.8C:_.D9.85.D9.81.D8.B3.D8.B1_.D8.A8.D8.A7_.D9.88.D8.B6.D8.B9.DB.8C.D8.AA_24_.D8.AE.D8.A7.D8.B1.D8.AC_.D8.B4.D8.AF.D9.87_.D8.A7.D8.B3.D8.AA."></span>خطای لوآ: خطای داخلی: مفسر با وضعیت 24 خارج شده است.</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">When using the LuaStandalone engine (this is the default), status 24 suggests CPU time limit errors, although those should be generating a "The time allocated for running scripts has expired" message instead.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It would be useful to file a task in <a href="/wiki/Special:MyLanguage/Phabricator" title="Special:MyLanguage/Phabricator">فابریکاتور</a><span style="display:none"><a href="/wiki/Phabricator" title="Phabricator"> </a></span> and participate in determining why the XCPU signal isn't being caught.</span> </p> <div class="mw-heading mw-heading3"><h3 id="خطای_لوآ:_خطای_داخلی:_مفسر_با_وضعیت_126_خارج_شده_است."><span id=".D8.AE.D8.B7.D8.A7.DB.8C_.D9.84.D9.88.D8.A2:_.D8.AE.D8.B7.D8.A7.DB.8C_.D8.AF.D8.A7.D8.AE.D9.84.DB.8C:_.D9.85.D9.81.D8.B3.D8.B1_.D8.A8.D8.A7_.D9.88.D8.B6.D8.B9.DB.8C.D8.AA_126_.D8.AE.D8.A7.D8.B1.D8.AC_.D8.B4.D8.AF.D9.87_.D8.A7.D8.B3.D8.AA."></span>خطای لوآ: خطای داخلی: مفسر با وضعیت 126 خارج شده است.</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">When using the LuaStandalone engine (this is the default), errors along the lines of <b>"خطای لوآ: خطای داخلی: مفسر با وضعیت 126 خارج شده است."</b> may be generated if the standalone Lua interpreter cannot be executed.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This generally arises from either of two causes:</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The Lua executable file's permissions do not include Execute.</li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Set permissions as described under <a href="#Installation">#Installation</a>.</span> </p><div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>The server does not allow execution of files from the place where the executable is installed, e.g. the filesystem is mounted with the <code>'noexec'</code> flag.</li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">This often occurs with shared hosted servers.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Remedies include adjusting <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><span class="nv">$wgScribuntoEngineConf</span><span class="p">[</span><span class="s1">'luastandalone'</span><span class="p">][</span><span class="s1">'luaPath'</span><span class="p">]</span></code> to point to a Lua 5.1 binary installed in an executable location, or adjusting or convincing the shared host to adjust the setting preventing execution.</span> </p><p><span id="Error_condition_such_as:_Fatal_exception_of_type_MWException"></span> </p> <div class="mw-heading mw-heading3"><h3 id="شرایط_خطا_مانند:_استثناء_مرگبار_از_نوع_MWException"><span id=".D8.B4.D8.B1.D8.A7.DB.8C.D8.B7_.D8.AE.D8.B7.D8.A7_.D9.85.D8.A7.D9.86.D9.86.D8.AF:_.D8.A7.D8.B3.D8.AA.D8.AB.D9.86.D8.A7.D8.A1_.D9.85.D8.B1.DA.AF.D8.A8.D8.A7.D8.B1_.D8.A7.D8.B2_.D9.86.D9.88.D8.B9_MWException"></span>شرایط خطا مانند: استثناء مرگبار از نوع MWException</h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Check the MediaWiki, PHP, or webserver logs for more details on the exception, or temporarily set <a href="/wiki/Special:MyLanguage/Manual:$wgShowExceptionDetails" title="Special:MyLanguage/Manual:$wgShowExceptionDetails">$wgShowExceptionDetails</a><span style="display:none"><a href="/wiki/Manual:$wgShowExceptionDetails" title="Manual:$wgShowExceptionDetails"> </a></span> to <code>true</code>. </p> </div> <p><span id="version_'GLIBC_2.11'_not_found"></span> </p> <div class="mw-heading mw-heading3"><h3 id="نسخه_'GLIBC_2.11'_یافت_نشد"><span id=".D9.86.D8.B3.D8.AE.D9.87_.27GLIBC_2.11.27_.DB.8C.D8.A7.D9.81.D8.AA_.D9.86.D8.B4.D8.AF"></span>نسخه 'GLIBC_2.11' یافت نشد</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If the above gives you errors such as "version 'GLIBC_2.11' not found", it means the version of the standard C library on your system is too old for the binaries provided with Scribunto.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You should upgrade your C library, or use a version of Lua 5.1 compiled for the C library you do have installed.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To upgrade your C library, your best option is usually to follow your distribution's instructions for upgrading packages (or for upgrading to a new release of the distribution, if applicable).</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">If you copy the lua binaries from Scribunto master (or from <a href="https://gerrit.wikimedia.org/r/77905" class="extiw" title="gerrit:77905">gerrit:77905</a>), that should suffice, if you can't or don't want to upgrade your C library.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The distributed binaries were recently recompiled against an older version of glibc, so the minimum is now 2.3 rather than 2.11.</span> </p><p><span id="Lua_errors_in_Scribunto_files"></span> </p> <div class="mw-heading mw-heading3"><h3 id="خطاي_لوا_در_پرونده_هاي_اسکریبونتو"><span id=".D8.AE.D8.B7.D8.A7.D9.8A_.D9.84.D9.88.D8.A7_.D8.AF.D8.B1_.D9.BE.D8.B1.D9.88.D9.86.D8.AF.D9.87_.D9.87.D8.A7.D9.8A_.D8.A7.D8.B3.DA.A9.D8.B1.DB.8C.D8.A8.D9.88.D9.86.D8.AA.D9.88"></span>خطاي لوا در پرونده هاي اسکریبونتو</h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Errors here include: </p> </div> <ul><li><b><span lang="en" dir="ltr" class="mw-content-ltr">attempt to index field 'text' (a nil value)</span></b></li> <li><b><span lang="en" dir="ltr" class="mw-content-ltr">Lua error in mw.html.lua at line 253: Invalid class given:</span></b></li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>If you are getting errors such these when attempting to use modules imported from WMF wikis, most likely your version of Scribunto is out of date. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Upgrade if possible; for advanced users, you might also try to identify the needed newer commits and cherry-pick them into your local installation. </p> </div> <p><span id="preg_replace_callback():_Compilation_failed:_unknown_property_name_after_\P_or_\p_at_offset_7"></span> </p> <div class="mw-heading mw-heading3"><h3 id="preg_replace_callback():_گردآوری_ناموفق_بود:_نام_دارایی_ناشناخته_بعد_از_\P_یا_\p_در_افست_۷"><span id="preg_replace_callback.28.29:_.DA.AF.D8.B1.D8.AF.D8.A2.D9.88.D8.B1.DB.8C_.D9.86.D8.A7.D9.85.D9.88.D9.81.D9.82_.D8.A8.D9.88.D8.AF:_.D9.86.D8.A7.D9.85_.D8.AF.D8.A7.D8.B1.D8.A7.DB.8C.DB.8C_.D9.86.D8.A7.D8.B4.D9.86.D8.A7.D8.AE.D8.AA.D9.87_.D8.A8.D8.B9.D8.AF_.D8.A7.D8.B2_.5CP_.DB.8C.D8.A7_.5Cp_.D8.AF.D8.B1_.D8.A7.D9.81.D8.B3.D8.AA_.DB.B7"></span>preg_replace_callback(): گردآوری ناموفق بود: نام دارایی ناشناخته بعد از \P یا \p در افست ۷</h3></div> <p><code><span lang="en" dir="ltr" class="mw-content-ltr">preg_replace_callback(): Compilation failed: unknown property name after \P or \p at offset 7</span></code> </p> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr">this usually indicates an incompatible version of PCRE; you'll need to update to >= 8.10</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">@todo: link to instructions on how to upgrade</span></li></ul> <p><span id="Lua_error"></span> </p> <div class="mw-heading mw-heading3"><h3 id="خطای_لوا"><span id=".D8.AE.D8.B7.D8.A7.DB.8C_.D9.84.D9.88.D8.A7"></span>خطای لوا</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">If you copy templates from Wikipedia and then get big red "Lua error: x" messages where the Scribunto invocation (e.g. the template that uses <code>{{#invoke:}}</code>) should be, that probably means that you didn't import everything you needed.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Make sure that you tick the "Include templates" box at <a href="https://en.wikipedia.org/wiki/Special:Export" class="extiw" title="w:Special:Export">w:Special:Export</a> when you export.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>When importing pages from another wiki, it is also possible for templates or modules in the imported data to overwrite existing templates or modules with the same title, which may break existing pages, templates, and modules that depend on the overwritten versions. </p> </div> <p><span id="Blank_screen"></span> </p> <div class="mw-heading mw-heading3"><h3 id="صفحهی_خالی"><span id=".D8.B5.D9.81.D8.AD.D9.87.E2.80.8C.DB.8C_.D8.AE.D8.A7.D9.84.DB.8C"></span>صفحهی خالی</h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Make sure your extension version is applicable to your MediaWiki version. </p> </div> <p><span id="License"></span> </p> <div class="mw-heading mw-heading2"><h2 id="مجوز"><span id=".D9.85.D8.AC.D9.88.D8.B2"></span>مجوز</h2></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>This extension contains code licensed GNU General Public License v2.0 or later (GPL-2.0+) as well as code licensed MIT License (MIT). </p> </div> <p><span id="Design_documents"></span> </p> <div class="mw-heading mw-heading2"><h2 id="مستندات_طراحی"><span id=".D9.85.D8.B3.D8.AA.D9.86.D8.AF.D8.A7.D8.AA_.D8.B7.D8.B1.D8.A7.D8.AD.DB.8C"></span>مستندات طراحی</h2></div> <ul><li><figure class="mw-default-size" typeof="mw:File/Thumb"><span><video id="mwe_player_0" poster="//upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Linux.conf.au_2014_-_Scribunto_presentation.webm/220px--Linux.conf.au_2014_-_Scribunto_presentation.webm.jpg" controls="" preload="none" data-mw-tmh="" class="mw-file-element" width="220" height="165" data-durationhint="4501" data-mwtitle="Linux.conf.au_2014_-_Scribunto_presentation.webm" data-mwprovider="wikimediacommons" resource="/wiki/File:Linux.conf.au_2014_-_Scribunto_presentation.webm"><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/3/3c/Linux.conf.au_2014_-_Scribunto_presentation.webm/Linux.conf.au_2014_-_Scribunto_presentation.webm.480p.vp9.webm" type="video/webm; codecs="vp9, opus"" data-transcodekey="480p.vp9.webm" data-width="640" data-height="480" /><source src="//upload.wikimedia.org/wikipedia/commons/3/3c/Linux.conf.au_2014_-_Scribunto_presentation.webm" type="video/webm; codecs="vp8, vorbis"" data-width="768" data-height="576" /><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/3/3c/Linux.conf.au_2014_-_Scribunto_presentation.webm/Linux.conf.au_2014_-_Scribunto_presentation.webm.144p.mjpeg.mov" type="video/quicktime" data-transcodekey="144p.mjpeg.mov" data-width="192" data-height="144" /><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/3/3c/Linux.conf.au_2014_-_Scribunto_presentation.webm/Linux.conf.au_2014_-_Scribunto_presentation.webm.240p.vp9.webm" type="video/webm; codecs="vp9, opus"" data-transcodekey="240p.vp9.webm" data-width="320" data-height="240" /><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/3/3c/Linux.conf.au_2014_-_Scribunto_presentation.webm/Linux.conf.au_2014_-_Scribunto_presentation.webm.360p.vp9.webm" type="video/webm; codecs="vp9, opus"" data-transcodekey="360p.vp9.webm" data-width="480" data-height="360" /><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/3/3c/Linux.conf.au_2014_-_Scribunto_presentation.webm/Linux.conf.au_2014_-_Scribunto_presentation.webm.360p.webm" type="video/webm; codecs="vp8, vorbis"" data-transcodekey="360p.webm" data-width="480" data-height="360" /></video></span><figcaption><span lang="en" dir="ltr" class="mw-content-ltr"><a href="/wiki/User:Tim_Starling" title="User:Tim Starling">Tim Starling</a>'s presentation at <a href="https://en.wikipedia.org/wiki/Linux.conf.au" class="extiw" title="w:Linux.conf.au">linux.conf.au</a> 2014 discussing the motivations, implementation challenges and results of deploying Scribunto and Lua.</span></figcaption></figure><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Parser_interface_design" title="Special:MyLanguage/Extension:Scribunto/Parser interface design">Extension:Scribunto/Parser interface design</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Parser_interface_design" title="Extension:Scribunto/Parser interface design"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Victor%27s_API_proposal" title="Special:MyLanguage/Extension:Scribunto/Victor's API proposal">Extension:Scribunto/Victor's API proposal</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Victor%27s_API_proposal" title="Extension:Scribunto/Victor's API proposal"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Documentation_specification" title="Special:MyLanguage/Extension:Scribunto/Documentation specification">Extension:Scribunto/Documentation specification</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Documentation_specification" title="Extension:Scribunto/Documentation specification"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Tim%27s_draft_roadmap" title="Special:MyLanguage/Extension:Scribunto/Tim's draft roadmap">Extension:Scribunto/Tim's draft roadmap</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Tim%27s_draft_roadmap" title="Extension:Scribunto/Tim's draft roadmap"> </a></span></li></ul> <p><span id="Other_pages"></span> </p> <div class="mw-heading mw-heading2"><h2 id="صفحههای_دیگر"><span id=".D8.B5.D9.81.D8.AD.D9.87.E2.80.8C.D9.87.D8.A7.DB.8C_.D8.AF.DB.8C.DA.AF.D8.B1"></span>صفحههای دیگر</h2></div> <ul><li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Deployment_priorities" title="Special:MyLanguage/Extension:Scribunto/Deployment priorities">Extension:Scribunto/Deployment priorities</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Deployment_priorities" title="Extension:Scribunto/Deployment priorities"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Brainstorming" title="Special:MyLanguage/Extension:Scribunto/Brainstorming">Extension:Scribunto/Brainstorming</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Brainstorming" title="Extension:Scribunto/Brainstorming"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Lua_scripting" title="Special:MyLanguage/Lua scripting">Lua scripting</a><span style="display:none"><a href="/wiki/Lua_scripting" title="Lua scripting"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">Wikimedia activity page describing deployment plan to Wikimedia sites.</span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Lua_reference_manual" title="Special:MyLanguage/Extension:Scribunto/Lua reference manual">Extension:Scribunto/Lua reference manual</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Lua_reference_manual" title="Extension:Scribunto/Lua reference manual"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">The reference about the Lua language, as well as its standard libraries and common Scribunto modules supported on Wikimedia sites.</span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Lua_5.2_changes" title="Special:MyLanguage/Extension:Scribunto/Lua 5.2 changes">Extension:Scribunto/Lua 5.2 changes</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Lua_5.2_changes" title="Extension:Scribunto/Lua 5.2 changes"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">A list of known changes in Lua 5.2 that may cause code written in 5.1 to function unexpectedly.</span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Example_modules" title="Special:MyLanguage/Extension:Scribunto/Example modules">Extension:Scribunto/Example modules</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Example_modules" title="Extension:Scribunto/Example modules"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/Example_extension" title="Special:MyLanguage/Extension:Scribunto/Example extension">Extension:Scribunto/Example extension</a><span style="display:none"><a href="/wiki/Extension:Scribunto/Example_extension" title="Extension:Scribunto/Example extension"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">Code for example extensions extending the Scribunto library.</span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Scribunto/We_use_Lua" title="Special:MyLanguage/Extension:Scribunto/We use Lua">Extension:Scribunto/We use Lua</a><span style="display:none"><a href="/wiki/Extension:Scribunto/We_use_Lua" title="Extension:Scribunto/We use Lua"> </a></span></li></ul> <p><span id="See_also"></span> </p> <div class="mw-heading mw-heading2"><h2 id="همچنین_ببینید"><span id=".D9.87.D9.85.DA.86.D9.86.DB.8C.D9.86_.D8.A8.D8.A8.DB.8C.D9.86.DB.8C.D8.AF"></span>همچنین ببینید</h2></div> <dl><dt><span lang="en" dir="ltr" class="mw-content-ltr">General</span></dt></dl> <ul><li><a href="/wiki/Special:MyLanguage/Extension:Wikibase_Client/Lua" title="Special:MyLanguage/Extension:Wikibase Client/Lua">Lua Wikibase client</a><span style="display:none"><a href="/wiki/Extension:Wikibase_Client/Lua" title="Extension:Wikibase Client/Lua"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">functionality for the Scribunto extension.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr"><a href="https://commons.wikimedia.org/wiki/Special:MyLanguage/Commons:Lua" class="extiw" title="commons:Special:MyLanguage/Commons:Lua">Commons:Lua</a> - there may be specific notes for using Lua modules on Wikimedia Commons, including additional Lua extensions installed (e.g. for local support of internationalization and for parsing or playing medias).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Some general purpose modules may be reused in other wikis in various languages (except specific tunings for policies, namespaces or project/maintenance pages with dedicated names).</span> <span lang="en" dir="ltr" class="mw-content-ltr">If possible, modules that could be widely reused across wikis should be tested and internationalized on Wikimedia Commons.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr"><a href="https://en.wikipedia.org/wiki/Help:Lua" class="extiw" title="w:Help:Lua">w:Help:Lua</a> - there may be specific notes for using Lua modules on Wikipedia, including additional Lua extensions installed (including for integrating Wikidata and Wikimedia Commons contents, generating complex infoboxes and navigation boxes, or to facilitate the general administration/maintenance of the wiki contents under applicable policies).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Some other localized Wikipedia editions (or other projects such Wiktionnary, Wikisource or Wikinews) may also have their own needs and Lua modules.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr"><a href="https://www.wikidata.org/wiki/Special:MyLanguage/Help:Lua" class="extiw" title="d:Special:MyLanguage/Help:Lua">d:Help:Lua</a> - there may be specific notes for using Lua modules on Wikidata, including additional Lua extensions installed (e.g. for local support of internationalization and for database queries)</span></li></ul> <dl><dt><span lang="en" dir="ltr" class="mw-content-ltr">Extensions</span></dt></dl> <ul><li><a href="/wiki/Special:MyLanguage/Extension:Capiunto" title="Special:MyLanguage/Extension:Capiunto">Capiunto</a><span style="display:none"><a href="/wiki/Extension:Capiunto" title="Extension:Capiunto"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">Provides basic <a href="/wiki/Special:MyLanguage/Extension:Capiunto/Infobox" title="Special:MyLanguage/Extension:Capiunto/Infobox">infobox</a> functionality for the Scribunto extension.</span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Semantic_Scribunto" title="Special:MyLanguage/Extension:Semantic Scribunto">Semantic Scribunto</a><span style="display:none"><a href="/wiki/Extension:Semantic_Scribunto" title="Extension:Semantic Scribunto"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">provides native support for the Scribunto extension for usage with <a href="/wiki/Special:MyLanguage/Extension:Semantic_MediaWiki" title="Special:MyLanguage/Extension:Semantic MediaWiki">Semantic MediaWiki</a><span style="display:none"><a href="/wiki/Extension:Semantic_MediaWiki" title="Extension:Semantic MediaWiki"> </a></span></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:VariablesLua" title="Special:MyLanguage/Extension:VariablesLua">VariablesLua</a><span style="display:none"><a href="/wiki/Extension:VariablesLua" title="Extension:VariablesLua"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">provides a Scribunto Lua interface for the Variables extension</span></li> <li><a href="/wiki/Special:MyLanguage/Extension:Wikibase_Client" title="Special:MyLanguage/Extension:Wikibase Client">Wikibase Client</a><span style="display:none"><a href="/wiki/Extension:Wikibase_Client" title="Extension:Wikibase Client"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">provides <a href="/wiki/Special:MyLanguage/Wikibase" title="Special:MyLanguage/Wikibase">Wikibase</a><span style="display:none"><a href="/wiki/Wikibase" title="Wikibase"> </a></span> (part of <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Wikidata" class="extiw" title="m:Special:MyLanguage/Wikidata">Wikidata</a> project)</span></li></ul> <ul><li><a href="/wiki/Gadgets" class="mw-redirect" title="Gadgets">Gadgets</a></li> <li><a href="/wiki/Widgets" class="mw-redirect" title="Widgets">Widgets</a></li></ul> <p><span id="External_links"></span> </p> <div class="mw-heading mw-heading2"><h2 id="پیوند_به_بیرون"><span id=".D9.BE.DB.8C.D9.88.D9.86.D8.AF_.D8.A8.D9.87_.D8.A8.DB.8C.D8.B1.D9.88.D9.86"></span>پیوند به بیرون</h2></div> <ul><li><a rel="nofollow" class="external text" href="https://workingwithmediawiki.com/book/chapter12.html">Working with MediaWiki - Modules.</a></li></ul> <p><span id="Notes"></span> </p> <div class="mw-heading mw-heading2"><h2 id="یادداشتها"><span id=".DB.8C.D8.A7.D8.AF.D8.AF.D8.A7.D8.B4.D8.AA.E2.80.8C.D9.87.D8.A7"></span>یادداشتها</h2></div> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text"> <span lang="en" dir="ltr" class="mw-content-ltr">i.e. Scribunto will not work if <code>proc_open</code> is listed in the <code>disable_functions</code> array in your server's "php.ini" file.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If it is, you may see an error message like <code>proc_open(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s):</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If you are using Plesk and have been granted sufficient permissions, you may be able to set <code>open_basedir</code> in the PHP settings for your domain or subdomain.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Try changing <code>{WEBSPACEROOT}{/}{:}{TMP}{/}</code> to <code>{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/dev/null{:}/bin/bash</code>.</span></span> </li> <li id="cite_note-engines-2"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-engines_2-0">2.0</a></sup> <sup><a href="#cite_ref-engines_2-1">2.1</a></sup> <sup><a href="#cite_ref-engines_2-2">2.2</a></sup></span> <span class="reference-text"> <span lang="en" dir="ltr" class="mw-content-ltr"><a rel="nofollow" class="external text" href="https://github.com/wikimedia/mediawiki-extensions-Scribunto/commit/1eecdac6def6418fb36829cc2f20b464c30e4b37">The name of the engines folder changed from lowercase to capitalised in 2022</a>.</span></span> </li> </ol></div> <style data-mw-deduplicate="TemplateStyles:r6651108">.mw-parser-output table.ombox{margin:4px 10%;border-collapse:collapse;border:1px solid #a2a9b1;background-color:#f8f9fa;color:#333;box-sizing:border-box}.mw-parser-output .ombox td.mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox th.mbox-text,.mw-parser-output .ombox td.mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox td.mbox-image{border:none;text-align:center;padding:2px 0 2px 0.9em}.mw-parser-output .ombox td.mbox-imageright{border:none;text-align:center;padding:2px 0.9em 2px 0}.mw-parser-output table.ombox-notice{border-color:#a2a9b1}.mw-parser-output table.ombox-speedy{background-color:#fee7e6;color:#333}.mw-parser-output table.ombox-speedy,.mw-parser-output table.ombox-delete{border-color:#b32424;border-width:2px}.mw-parser-output table.ombox-content{border-color:#f28500}.mw-parser-output table.ombox-style{border-color:#fc3}.mw-parser-output table.ombox-move{border-color:#9932cc}.mw-parser-output table.ombox-protection{border-color:#a2a9b1;border-width:2px}html body.mediawiki .mw-parser-output .ombox.mbox-small{clear:left;float:left;margin:4px 1em 4px 0;box-sizing:border-box;width:238px;font-size:88%;line-height:1.25em}@media screen{html.skin-theme-clientpref-night .mw-parser-output table.ombox{background-color:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output table.ombox{background-color:transparent;color:inherit}}</style><table class="ombox ombox-notice plainlinks" role="presentation" style="clear: both; margin-top: 0; margin-bottom: 0;"><tbody><tr><td class="mbox-image"><span class="skin-invert-image" typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Wikimedia-logo_black.svg/40px-Wikimedia-logo_black.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Wikimedia-logo_black.svg/60px-Wikimedia-logo_black.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Wikimedia-logo_black.svg/80px-Wikimedia-logo_black.svg.png 2x" data-file-width="512" data-file-height="512" /></span></span></td><td class="mbox-text">این افزونه در یکی یا بیشتر <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Wikimedia_projects" class="extiw" title="m:Special:MyLanguage/Wikimedia projects">پروژههای ویکیمدیا</a> استفاده شده است. این احتمالاً به این معنی است که افزونه پایدار است و به اندازه کافی برای استفاده توسط وبسایتهای ترافیک-بالا به خوبی کار میکند. برای نام این افزونه در پروندههای پیکربندی <a class="external text" href="https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php">CommonSettings.php</a> و <a class="external text" href="https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php">InitialiseSettings.php</a> ویکیمدیا بگردید تا جایی که آنها نصب شده را ببینید. یک فهرست کامل از افزونهها نصبشده روی یک ویکی مشخص را میتوان در صفحۀ <a href="/wiki/Special:Version" title="Special:Version">Special:Version</a> دید.</td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651108"><table class="ombox ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/40px-OOjs_UI_icon_information-progressive.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/60px-OOjs_UI_icon_information-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/80px-OOjs_UI_icon_information-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></span></span></td><td class="mbox-text">This extension is included in the following wiki farms/hosts and/or packages: <style data-mw-deduplicate="TemplateStyles:r6387430">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li,.mw-parser-output .hlist .mw-empty-elt{display:none}.mw-parser-output .hlist dt:after{content:": "}.mw-parser-output .hlist dd:after,.mw-parser-output .hlist li:after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child:after,.mw-parser-output .hlist dt:last-child:after,.mw-parser-output .hlist li:last-child:after{content:none}.mw-parser-output .hlist dd dd:first-child:before,.mw-parser-output .hlist dd dt:first-child:before,.mw-parser-output .hlist dd li:first-child:before,.mw-parser-output .hlist dt dd:first-child:before,.mw-parser-output .hlist dt dt:first-child:before,.mw-parser-output .hlist dt li:first-child:before,.mw-parser-output .hlist li dd:first-child:before,.mw-parser-output .hlist li dt:first-child:before,.mw-parser-output .hlist li li:first-child:before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child:after,.mw-parser-output .hlist dd dt:last-child:after,.mw-parser-output .hlist dd li:last-child:after,.mw-parser-output .hlist dt dd:last-child:after,.mw-parser-output .hlist dt dt:last-child:after,.mw-parser-output .hlist dt li:last-child:after,.mw-parser-output .hlist li dd:last-child:after,.mw-parser-output .hlist li dt:last-child:after,.mw-parser-output .hlist li li:last-child:after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li:before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child:before,.mw-parser-output .hlist dt ol>li:first-child:before,.mw-parser-output .hlist li ol>li:first-child:before{content:" ("counter(listitem)"\a0 "}</style><div class="hlist"> <ul><li><a href="/wiki/Special:MyLanguage/BlueSpice" title="Special:MyLanguage/BlueSpice">BlueSpice</a><span style="display:none"><a href="/wiki/BlueSpice" title="BlueSpice"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Canasta" title="Special:MyLanguage/Canasta">Canasta</a><span style="display:none"><a href="/wiki/Canasta" title="Canasta"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Debian_packages" title="Special:MyLanguage/Debian packages">Debian</a><span style="display:none"><a href="/wiki/Debian_packages" title="Debian packages"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Fandom" title="Special:MyLanguage/Fandom">فندام</a><span style="display:none"><a href="/wiki/Fandom" title="Fandom"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Miraheze" title="Special:MyLanguage/Miraheze">میراژز</a><span style="display:none"><a href="/wiki/Miraheze" title="Miraheze"> </a></span></li> <li><a rel="nofollow" class="external text" href="https://www.mywikis.com/">MyWikis</a></li> <li><a rel="nofollow" class="external text" href="https://www.pro.wiki/">ProWiki</a></li> <li><a href="/wiki/Special:MyLanguage/ShoutWiki" title="Special:MyLanguage/ShoutWiki">ShoutWiki</a><span style="display:none"><a href="/wiki/ShoutWiki" title="ShoutWiki"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/wiki.gg" title="Special:MyLanguage/wiki.gg">wiki.gg</a><span style="display:none"><a href="/wiki/Wiki.gg" title="Wiki.gg"> </a></span></li> <li><a rel="nofollow" class="external text" href="https://wikiforge.net/">WikiForge</a></li></ul> </div> <small>This is not an authoritative list.</small> <small>Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</small> <small>Always check with your wiki farms/hosts or bundle to confirm.</small></td></tr></tbody></table> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐5c59558b9d‐gvzrv Cached time: 20241201035726 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 1.034 seconds Real time usage: 1.281 seconds Preprocessor visited node count: 11710/1000000 Post‐expand include size: 124223/2097152 bytes Template argument size: 36037/2097152 bytes Highest expansion depth: 21/100 Expensive parser function count: 68/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 32738/5000000 bytes Lua time usage: 0.510/10.000 seconds Lua memory usage: 19321577/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 1010.556 1 -total 52.28% 528.273 1 Template:Extension 51.79% 523.389 91 Template:Ll 40.32% 407.459 194 Template:Translatable 26.29% 265.722 211 Template:Pagelang 10.94% 110.548 2 Template:Mbox 9.21% 93.033 1 Template:Used_by 8.34% 84.232 1 Template:Flatlist 3.37% 34.102 1 Template:Foreach 3.05% 30.868 2 Template:MW_version --> <!-- Saved in parser cache with key mediawikiwiki:pcache:1871865:|#|:idhash:canonical and timestamp 20241201035726 and revision id 6875489. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto/fa&oldid=6875489">https://www.mediawiki.org/w/index.php?title=Extension:Scribunto/fa&oldid=6875489</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:Extensions_bundled_with_MediaWiki_1.34/fa" title="Category:Extensions bundled with MediaWiki 1.34/fa">Extensions bundled with MediaWiki 1.34/fa</a></li><li><a href="/wiki/Category:Stable_extensions/fa" title="Category:Stable extensions/fa">Stable extensions/fa</a></li><li><a href="/wiki/Category:Parser_extensions/fa" title="Category:Parser extensions/fa">Parser extensions/fa</a></li><li><a href="/wiki/Category:Extensions_with_unknown_license/fa" title="Category:Extensions with unknown license/fa">Extensions with unknown license/fa</a></li><li><a href="/wiki/Category:Extensions_in_Wikimedia_version_control/fa" title="Category:Extensions in Wikimedia version control/fa">Extensions in Wikimedia version control/fa</a></li><li><a href="/wiki/Category:ArticleViewHeader_extensions/fa" title="Category:ArticleViewHeader extensions/fa">ArticleViewHeader extensions/fa</a></li><li><a href="/wiki/Category:CodeEditorGetPageLanguage_extensions/fa" title="Category:CodeEditorGetPageLanguage extensions/fa">CodeEditorGetPageLanguage extensions/fa</a></li><li><a href="/wiki/Category:ContentHandlerDefaultModelFor_extensions/fa" title="Category:ContentHandlerDefaultModelFor extensions/fa">ContentHandlerDefaultModelFor extensions/fa</a></li><li><a href="/wiki/Category:EditFilterMergedContent_extensions/fa" title="Category:EditFilterMergedContent extensions/fa">EditFilterMergedContent extensions/fa</a></li><li><a href="/wiki/Category:EditPage::showReadOnlyForm:initial_extensions/fa" title="Category:EditPage::showReadOnlyForm:initial extensions/fa">EditPage::showReadOnlyForm:initial extensions/fa</a></li><li><a href="/wiki/Category:EditPage::showStandardInputs:options_extensions/fa" title="Category:EditPage::showStandardInputs:options extensions/fa">EditPage::showStandardInputs:options extensions/fa</a></li><li><a href="/wiki/Category:EditPageBeforeEditButtons_extensions/fa" title="Category:EditPageBeforeEditButtons extensions/fa">EditPageBeforeEditButtons extensions/fa</a></li><li><a href="/wiki/Category:ParserClearState_extensions/fa" title="Category:ParserClearState extensions/fa">ParserClearState extensions/fa</a></li><li><a href="/wiki/Category:ParserCloned_extensions/fa" title="Category:ParserCloned extensions/fa">ParserCloned extensions/fa</a></li><li><a href="/wiki/Category:ParserFirstCallInit_extensions/fa" title="Category:ParserFirstCallInit extensions/fa">ParserFirstCallInit extensions/fa</a></li><li><a href="/wiki/Category:ParserLimitReportFormat_extensions/fa" title="Category:ParserLimitReportFormat extensions/fa">ParserLimitReportFormat extensions/fa</a></li><li><a href="/wiki/Category:ParserLimitReportPrepare_extensions/fa" title="Category:ParserLimitReportPrepare extensions/fa">ParserLimitReportPrepare extensions/fa</a></li><li><a href="/wiki/Category:SoftwareInfo_extensions/fa" title="Category:SoftwareInfo extensions/fa">SoftwareInfo extensions/fa</a></li><li><a href="/wiki/Category:All_extensions/fa" title="Category:All extensions/fa">All extensions/fa</a></li><li><a href="/wiki/Category:Extensions_used_on_Wikimedia/fa" title="Category:Extensions used on Wikimedia/fa">Extensions used on Wikimedia/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_BlueSpice/fa" title="Category:Extensions included in BlueSpice/fa">Extensions included in BlueSpice/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_Canasta/fa" title="Category:Extensions included in Canasta/fa">Extensions included in Canasta/fa</a></li><li><a href="/wiki/Category:Extensions_available_as_Debian_packages/fa" title="Category:Extensions available as Debian packages/fa">Extensions available as Debian packages/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_Fandom/fa" title="Category:Extensions included in Fandom/fa">Extensions included in Fandom/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_Miraheze/fa" title="Category:Extensions included in Miraheze/fa">Extensions included in Miraheze/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_MyWikis/fa" title="Category:Extensions included in MyWikis/fa">Extensions included in MyWikis/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_ProWiki/fa" title="Category:Extensions included in ProWiki/fa">Extensions included in ProWiki/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_ShoutWiki/fa" title="Category:Extensions included in ShoutWiki/fa">Extensions included in ShoutWiki/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_wiki.gg/fa" title="Category:Extensions included in wiki.gg/fa">Extensions included in wiki.gg/fa</a></li><li><a href="/wiki/Category:Extensions_included_in_WikiForge/fa" title="Category:Extensions included in WikiForge/fa">Extensions included in WikiForge/fa</a></li><li><a href="/wiki/Category:Scribunto_extensions/fa" title="Category:Scribunto extensions/fa">Scribunto extensions/fa</a></li><li><a href="/wiki/Category:ContentHandler_extensions/fa" title="Category:ContentHandler extensions/fa">ContentHandler extensions/fa</a></li><li><a href="/wiki/Category:GPL_licensed_extensions/fa" title="Category:GPL licensed extensions/fa">GPL licensed extensions/fa</a></li><li><a href="/wiki/Category:MIT_licensed_extensions/fa" title="Category:MIT licensed extensions/fa">MIT licensed extensions/fa</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 30 November 2024, at 08:53.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/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/#/www.mediawiki.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="//m.mediawiki.org/w/index.php?title=Extension:Scribunto/fa&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-5c59558b9d-gvzrv","wgBackendResponseTime":1538,"wgPageParseReport":{"limitreport":{"cputime":"1.034","walltime":"1.281","ppvisitednodes":{"value":11710,"limit":1000000},"postexpandincludesize":{"value":124223,"limit":2097152},"templateargumentsize":{"value":36037,"limit":2097152},"expansiondepth":{"value":21,"limit":100},"expensivefunctioncount":{"value":68,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":32738,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 1010.556 1 -total"," 52.28% 528.273 1 Template:Extension"," 51.79% 523.389 91 Template:Ll"," 40.32% 407.459 194 Template:Translatable"," 26.29% 265.722 211 Template:Pagelang"," 10.94% 110.548 2 Template:Mbox"," 9.21% 93.033 1 Template:Used_by"," 8.34% 84.232 1 Template:Flatlist"," 3.37% 34.102 1 Template:Foreach"," 3.05% 30.868 2 Template:MW_version"]},"scribunto":{"limitreport-timeusage":{"value":"0.510","limit":"10.000"},"limitreport-memusage":{"value":19321577,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-5c59558b9d-gvzrv","timestamp":"20241201035726","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>