CINXE.COM
Модул:Arguments/док — Википедија
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="sr" dir="ltr"> <head> <meta charset="UTF-8"> <title>Модул:Arguments/док — Википедија</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )srwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t.",".\t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"hh:mm d. month y.","wgMonthNames":["","јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],"wgRequestId":"05af8cdd-aafc-4320-b1d3-aa60993d49eb","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Модул:Arguments/док","wgTitle":"Arguments/док","wgCurRevisionId":28871316,"wgRevisionId":28871316,"wgArticleId":2323928,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Pages using deprecated source tags","Документација модула","Потребан превод","Шаблони који се користе на веома великом броју страница и чије су измене ризичне"],"wgPageViewLanguage":"sr","wgPageContentLanguage":"sr","wgPageContentModel":"wikitext", "wgRelevantPageName":"Модул:Arguments/док","wgRelevantArticleId":2323928,"wgTempUserName":null,"wgUserVariant":"sr","wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"sr","pageLanguageDir":"ltr","pageVariantFallbacks":"sr-ec"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model", "platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false,"wgSiteNoticeId":"2.24"};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready","ext.dismissableSiteNotice.styles":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips", "ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.checkUser.clientHints","ext.dismissableSiteNotice"];</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=sr&modules=ext.dismissableSiteNotice.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=sr&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=sr&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Модул:Arguments/док — Википедија"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//sr.m.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"> <link rel="alternate" type="application/x-wiki" title="Уреди" href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Википедија (sr)"> <link rel="EditURI" type="application/rsd+xml" href="//sr.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://sr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"> <link rel="alternate" hreflang="sr" href="https://sr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"> <link rel="alternate" hreflang="sr-Cyrl" href="https://sr.wikipedia.org/sr-ec/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"> <link rel="alternate" hreflang="sr-Latn" href="https://sr.wikipedia.org/sr-el/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"> <link rel="alternate" hreflang="x-default" href="https://sr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.sr"> <link rel="alternate" type="application/atom+xml" title="Википедија – Atom фид" href="/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%A1%D0%BA%D0%BE%D1%80%D0%B0%D1%88%D1%9A%D0%B5_%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-828 ns-subject mw-editable page-Модул_Arguments_док rootpage-Модул_Arguments skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Пређи на садржај</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="Сајт"> <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="Главни мени" > <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">Главни мени</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">Главни мени</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">помери на страну</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">сакриј</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Навигација </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage" class="mw-list-item"><a href="/wiki/%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B0" title="Посетите главну страну [z]" accesskey="z"><span>Главна страна</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A1%D0%B0%D0%B4%D1%80%D0%B6%D0%B0%D1%98" title="Водичи за прегледање Википедије"><span>Садржај</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%A1%D0%BA%D0%BE%D1%80%D0%B0%D1%88%D1%9A%D0%B5_%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5" title="Списак скорашњих измена на пројекту [r]" accesskey="r"><span>Скорашње измене</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9D%D0%B0%D1%81%D1%83%D0%BC%D0%B8%D1%87%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0" title="Посетите насумичну страницу [x]" accesskey="x"><span>Случајна страница</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%90%D0%BA%D1%82%D1%83%D0%B5%D0%BB%D0%BD%D0%BE%D1%81%D1%82%D0%B8" title="Пронађите информације о актуелностима"><span>Актуелности</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//sr.wikipedia.org/wiki/Википедија:Контакт" title="Сазнајте како да ступите у контакт с уредницима"><span>Контакт</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Интеракција </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/%D0%9F%D0%BE%D0%BC%D0%BE%D1%9B:%D0%A1%D0%B0%D0%B4%D1%80%D0%B6%D0%B0%D1%98" title="Место где можете да се информишете"><span>Помоћ</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%94%D0%BE%D0%B1%D1%80%D0%BE_%D0%B4%D0%BE%D1%88%D0%BB%D0%B8"><span>Научите да уређујете</span></a></li><li id="n-sidebar-village-pump" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A2%D1%80%D0%B3"><span>Трг</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A0%D0%B0%D0%B4%D0%B8%D0%BE%D0%BD%D0%B8%D1%86%D0%B0" title="О пројекту, шта можете да радите и где да пронађете ствари"><span>Радионица</span></a></li><li id="n-noticeboard" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%9E%D0%B3%D0%BB%D0%B0%D1%81%D0%BD%D0%B0_%D1%82%D0%B0%D0%B1%D0%BB%D0%B0"><span>Огласна табла</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%92%D0%BE%D0%B4%D0%B8%D1%87_%D0%B7%D0%B0_%D0%BE%D1%82%D0%BF%D1%80%D0%B5%D0%BC%D0%B0%D1%9A%D0%B5"><span>Отпреми датотеку</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B0" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Википедија" src="/static/images/mobile/copyright/wikipedia-wordmark-sr.svg" style="width: 7.8125em; height: 1.4375em;"> <img class="mw-logo-tagline" alt="" src="/static/images/mobile/copyright/wikipedia-tagline-sr.svg" width="120" height="11" style="width: 7.5em; height: 0.6875em;"> </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/%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9F%D1%80%D0%B5%D1%82%D1%80%D0%B0%D0%B6%D0%B8" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Претражите пројекат Википедија [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Претрага</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="Претражите Википедију" aria-label="Претражите Википедију" autocapitalize="sentences" title="Претражите пројекат Википедија [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Посебно:Претражи"> </div> <button class="cdx-button cdx-search-input__end-button">Претражи</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Личне алатке"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Изглед"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Мења се приказ странице; величина фонта, ширина и боја" > <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="Изглед" > <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">Изглед</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=sr" class=""><span>Донације</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=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9E%D1%82%D0%B2%D0%BE%D1%80%D0%B8_%D0%BD%D0%B0%D0%BB%D0%BE%D0%B3&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%3AArguments%2F%D0%B4%D0%BE%D0%BA" title="Иако није обавезно, препоручујемо да отворите налог и пријавите се" class=""><span>Отвори налог</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=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D1%87%D0%BA%D0%B0_%D0%BF%D1%80%D0%B8%D1%98%D0%B0%D0%B2%D0%B0&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%3AArguments%2F%D0%B4%D0%BE%D0%BA" title="Иако није обавезно, препоручујемо да се пријавите [o]" accesskey="o" class=""><span>Пријави ме</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 user-links-collapsible-item" title="Више опција" > <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="Личне алатке" > <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">Личне алатке</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Кориснички мени" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=sr"><span>Донације</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9E%D1%82%D0%B2%D0%BE%D1%80%D0%B8_%D0%BD%D0%B0%D0%BB%D0%BE%D0%B3&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%3AArguments%2F%D0%B4%D0%BE%D0%BA" title="Иако није обавезно, препоручујемо да отворите налог и пријавите се"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Отвори налог</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D1%87%D0%BA%D0%B0_%D0%BF%D1%80%D0%B8%D1%98%D0%B0%D0%B2%D0%B0&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%3AArguments%2F%D0%B4%D0%BE%D0%BA" title="Иако није обавезно, препоручујемо да се пријавите [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Пријави ме</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"><div id="mw-dismissablenotice-anonplace"></div><script>(function(){var node=document.getElementById("mw-dismissablenotice-anonplace");if(node){node.outerHTML="\u003Cdiv class=\"mw-dismissable-notice\"\u003E\u003Cdiv class=\"mw-dismissable-notice-close\"\u003E[\u003Ca tabindex=\"0\" role=\"button\"\u003Eодбаци\u003C/a\u003E]\u003C/div\u003E\u003Cdiv class=\"mw-dismissable-notice-body\"\u003E\u003C!-- CentralNotice --\u003E\u003Cdiv id=\"localNotice\" data-nosnippet=\"\"\u003E\u003Cdiv class=\"sitenotice\" lang=\"sr\" dir=\"ltr\"\u003E\u003Cdiv class=\"noticebanner\"\u003E\u003Cdiv class=\"plainlinks\" style=\"background-color: #f0f0f0; border-radius:5px; margin-top:10px; position:relative; border: 1px solid #aaa; font-family: \u0026#39;Helvetica\u0026#39;, \u0026#39;Arial\u0026#39;, sans-serif; line-height: 18px; box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 ); overflow:hidden;\"\u003E\u003Cdiv style=\"display:block; top:4px; width:100%; text-align:center;;\"\u003E\u003Cdiv style=\"color:#000085; font-size:25px; line-height:25px\"\u003E\u003Cdiv style=\"padding-left:50px;\"\u003E\u003C/div\u003E\u003C/div\u003E\u003Cdiv style=\"padding-top:2px; color:#444; font-size:1.15em; line-height:1.5;\"\u003E\u003Cdiv style=\"padding-left:8px; padding-right:8px;\"\u003EПрикључите се расправи на тему \u003Cb\u003E\u003Ca href=\"/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%93%D0%BB%D0%B0%D1%81%D0%B0%D1%9A%D0%B5/%D0%9F%D1%80%D0%B5%D0%B4%D0%BB%D0%BE%D0%B3/%D0%A0%D0%B5%D0%B4%D0%B8%D0%B7%D0%B0%D1%98%D0%BD_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0_%D0%B7%D0%B0_%D0%B4%D0%BE%D0%B1%D1%80%D0%B5,_%D1%81%D1%98%D0%B0%D1%98%D0%BD%D0%B5_%D0%B8_%D0%B8%D0%B7%D0%B0%D0%B1%D1%80%D0%B0%D0%BD%D0%B5_%D1%81%D0%BF%D0%B8%D1%81%D0%BA%D0%BE%D0%B2%D0%B5\" title=\"Википедија:Гласање/Предлог/Редизајн страница за добре, сјајне и изабране спискове\"\u003Eредизајна страница за добре, сјајне и ИС\u003C/a\u003E\u003C/b\u003E.\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cdiv class=\"noticebanner\"\u003E\u003Cdiv class=\"plainlinks\" style=\"background-color: #FBEBEA; border-radius:5px; margin-top:10px; position:relative; border: 1px solid #aaa; font-family: \u0026#39;Helvetica\u0026#39;, \u0026#39;Arial\u0026#39;, sans-serif; line-height: 18px; box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 ); overflow:hidden;\"\u003E\u003Cdiv style=\"display:block; top:4px; width:100%; text-align:center;;\"\u003E\u003Cdiv style=\"color:#000085; font-size:25px; line-height:25px\"\u003E\u003Cdiv style=\"padding-left:50px;\"\u003E\u003C/div\u003E\u003C/div\u003E\u003Cdiv style=\"padding-top:2px; color:#444; font-size:1.15em; line-height:1.5;\"\u003E\u003Cdiv style=\"padding-left:8px; padding-right:8px;\"\u003EПокренут је \u003Cb\u003E\u003Ca href=\"/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A3%D1%80%D0%B5%D1%92%D0%B8%D0%B2%D0%B0%D1%87%D0%BA%D0%B8_%D0%BC%D0%B0%D1%80%D0%B0%D1%82%D0%BE%D0%BD_%D0%92%D0%B8%D0%BA%D0%B8_%D0%B2%D0%BE%D0%BB%D0%B8_%D1%81%D0%BF%D0%BE%D0%BC%D0%B5%D0%BD%D0%B8%D0%BA%D0%B5_2024.\" title=\"Википедија:Уређивачки маратон Вики воли споменике 2024.\"\u003EУређивачки маратон Вики воли споменике 2024\u003C/a\u003E\u003C/b\u003E.\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cdiv class=\"noticebanner\"\u003E\u003Cdiv class=\"plainlinks\" style=\"background-color: #FBEBEA; border-radius:5px; margin-top:10px; position:relative; border: 1px solid #aaa; font-family: \u0026#39;Helvetica\u0026#39;, \u0026#39;Arial\u0026#39;, sans-serif; line-height: 18px; box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 ); overflow:hidden;\"\u003E\u003Cdiv style=\"display:block; top:4px; width:100%; text-align:center;;\"\u003E\u003Cdiv style=\"color:#000085; font-size:25px; line-height:25px\"\u003E\u003Cdiv style=\"padding-left:50px;\"\u003E\u003C/div\u003E\u003C/div\u003E\u003Cdiv style=\"padding-top:2px; color:#444; font-size:1.15em; line-height:1.5;\"\u003E\u003Cdiv style=\"padding-left:8px; padding-right:8px;\"\u003EУ току је такмичење у писању чланака на тему \u003Cb\u003E\u003Ca href=\"/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A2%D0%B0%D0%BA%D0%BC%D0%B8%D1%87%D0%B5%D1%9A%D0%B5_%D1%83_%D0%BF%D0%B8%D1%81%D0%B0%D1%9A%D1%83_%D1%87%D0%BB%D0%B0%D0%BD%D0%B0%D0%BA%D0%B0/%D0%A3_%D1%81%D0%B2%D0%B5%D1%82%D1%83_%D0%A4%D0%BB%D0%BE%D1%80%D0%B5_%D0%B8_%D0%A4%D0%B0%D1%83%D0%BD%D0%B5\" title=\"Википедија:Такмичење у писању чланака/У свету Флоре и Фауне\"\u003EФлоре и фауне\u003C/a\u003E\u003C/b\u003E.\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cdiv class=\"noticebanner\"\u003E\u003Cdiv class=\"plainlinks\" style=\"background-color: #FBEBEA; border-radius:5px; margin-top:10px; position:relative; border: 1px solid #aaa; font-family: \u0026#39;Helvetica\u0026#39;, \u0026#39;Arial\u0026#39;, sans-serif; line-height: 18px; box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 ); overflow:hidden;\"\u003E\u003Cdiv style=\"display:block; top:4px; width:100%; text-align:center;;\"\u003E\u003Cdiv style=\"color:#000085; font-size:25px; line-height:25px\"\u003E\u003Cdiv style=\"padding-left:50px;\"\u003E\u003C/div\u003E\u003C/div\u003E\u003Cdiv style=\"padding-top:2px; color:#444; font-size:1.15em; line-height:1.5;\"\u003E\u003Cdiv style=\"padding-left:8px; padding-right:8px;\"\u003EПридружите се \u003Cb\u003E\u003Ca href=\"/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A3%D1%80%D0%B5%D1%92%D0%B8%D0%B2%D0%B0%D1%87%D0%BA%D0%B8_%D0%BC%D0%B0%D1%80%D0%B0%D1%82%D0%BE%D0%BD_%D0%92%D0%B8%D0%BA%D0%B8_%D0%B2%D0%BE%D0%BB%D0%B8_%D1%98%D0%B0%D0%B2%D0%BD%D1%83_%D1%83%D0%BC%D0%B5%D1%82%D0%BD%D0%BE%D1%81%D1%82_%D0%B8_%D0%B3%D1%80%D0%BE%D0%B1%D0%BD%D0%B0_%D0%BE%D0%B1%D0%B5%D0%BB%D0%B5%D0%B6%D1%98%D0%B0_2024.\" title=\"Википедија:Уређивачки маратон Вики воли јавну уметност и гробна обележја 2024.\"\u003EУређивачком маратону Вики воли јавну уметност и гробна обележја 2024\u003C/a\u003E\u003C/b\u003E.\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cdiv class=\"noticebanner\"\u003E\u003Cdiv class=\"plainlinks\" style=\"background-color: #FBEBEA; border-radius:5px; margin-top:10px; position:relative; border: 1px solid #aaa; font-family: \u0026#39;Helvetica\u0026#39;, \u0026#39;Arial\u0026#39;, sans-serif; line-height: 18px; box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 ); overflow:hidden;\"\u003E\u003Cdiv style=\"display:block; top:4px; width:100%; text-align:center;;\"\u003E\u003Cdiv style=\"color:#000085; font-size:25px; line-height:25px\"\u003E\u003Cdiv style=\"padding-left:50px;\"\u003E\u003C/div\u003E\u003C/div\u003E\u003Cdiv style=\"padding-top:2px; color:#444; font-size:1.15em; line-height:1.5;\"\u003E\u003Cdiv style=\"padding-left:8px; padding-right:8px;\"\u003EУчествујте у \u003Cb\u003E\u003Ca href=\"https://sr.wikiquote.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D1%86%D0%B8%D1%82%D0%B0%D1%82:%D0%9A%D0%B0%D0%BC%D0%BF%D0%B0%D1%9A%D0%B0_SheSaid_2024\" class=\"extiw\" title=\"q:Викицитат:Кампања SheSaid 2024\"\u003Eкампањи писања цитата значајних жена\u003C/a\u003E\u003C/b\u003E на Викицитату.\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cdiv class=\"noticebanner\"\u003E\u003Cdiv class=\"plainlinks\" style=\"background-color: #FBEBEA; border-radius:5px; margin-top:10px; position:relative; border: 1px solid #aaa; font-family: \u0026#39;Helvetica\u0026#39;, \u0026#39;Arial\u0026#39;, sans-serif; line-height: 18px; box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 ); overflow:hidden;\"\u003E\u003Cdiv style=\"display:block; top:4px; width:100%; text-align:center;;\"\u003E\u003Cdiv style=\"color:#000085; font-size:25px; line-height:25px\"\u003E\u003Cdiv style=\"padding-left:50px;\"\u003E\u003C/div\u003E\u003C/div\u003E\u003Cdiv style=\"padding-top:2px; color:#444; font-size:1.15em; line-height:1.5;\"\u003E\u003Cdiv style=\"padding-left:8px; padding-right:8px;\"\u003EПридружите се \u003Cb\u003E\u003Ca href=\"/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%90%D0%BA%D1%86%D0%B8%D1%98%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D1%80%D0%B8%D0%B2%D0%B0%D1%9A%D0%B0_%D0%BA%D0%BB%D0%B8%D1%86%D0%B0\" title=\"Википедија:Акција проширивања клица\"\u003Eакцији проширивања клица\u003C/a\u003E\u003C/b\u003E.\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E";}}());</script></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="Сајт"> <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="Садржај" 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">Садржај</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">помери на страну</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">сакриј</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">Почетак</div> </a> </li> <li id="toc-Basic_use" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Basic_use"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Basic use</span> </div> </a> <button aria-controls="toc-Basic_use-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>Садржај одељка Basic use</span> </button> <ul id="toc-Basic_use-sublist" class="vector-toc-list"> <li id="toc-Options" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Options"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Options</span> </div> </a> <ul id="toc-Options-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Trimming_and_removing_blanks" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Trimming_and_removing_blanks"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Trimming and removing blanks</span> </div> </a> <ul id="toc-Trimming_and_removing_blanks-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Custom_formatting_of_arguments" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Custom_formatting_of_arguments"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Custom formatting of arguments</span> </div> </a> <ul id="toc-Custom_formatting_of_arguments-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Frames_and_parent_frames" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Frames_and_parent_frames"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4</span> <span>Frames and parent frames</span> </div> </a> <ul id="toc-Frames_and_parent_frames-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Wrappers" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Wrappers"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.5</span> <span>Wrappers</span> </div> </a> <ul id="toc-Wrappers-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Writing_to_the_args_table" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Writing_to_the_args_table"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.6</span> <span>Writing to the args table</span> </div> </a> <ul id="toc-Writing_to_the_args_table-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Ref_tags" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Ref_tags"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.7</span> <span>Ref tags</span> </div> </a> <ul id="toc-Ref_tags-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Known_limitations" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Known_limitations"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.8</span> <span>Known limitations</span> </div> </a> <ul id="toc-Known_limitations-sublist" class="vector-toc-list"> </ul> </li> </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="Садржај" 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="Прикажи/сакриј садржај" > <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">Прикажи/сакриј садржај</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Модул</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Arguments/док</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Овај чланак постоји само на овом језику. Додајте друге језике." > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-0" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">Додај језике</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="uls-after-portlet-link"></span><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=srwiki&page=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%3AArguments%2F%D0%B4%D0%BE%D0%BA" title="Додај међујезичке везе" class="wbc-editpage">Додај везе</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Именски простори"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-module" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA" title="Погледајте страницу модула [c]" accesskey="c"><span>Модул</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D0%BE_%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%83:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&redlink=1" rel="discussion" class="new" title="Разговарајте о страници (страница не постоји) [t]" accesskey="t"><span>Разговор</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown " > <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="Промени варијанту језика" > <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">Ћир./lat.</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-varlang-0" class="selected ca-variants-sr mw-list-item"><a href="/sr/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA" lang="sr" hreflang="sr"><span>Ћир./lat.</span></a></li><li id="ca-varlang-1" class="ca-variants-sr-Cyrl mw-list-item"><a href="/sr-ec/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA" lang="sr-Cyrl" hreflang="sr-Cyrl"><span>Ћирилица</span></a></li><li id="ca-varlang-2" class="ca-variants-sr-Latn mw-list-item"><a href="/sr-el/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA" lang="sr-Latn" hreflang="sr-Latn"><span>Latinica</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Погледи"> <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/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"><span>Читај</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit" title="Уредите изворни код ове странице [e]" accesskey="e"><span>Уреди извор</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=history" title="Историја [h]" accesskey="h"><span>Историја</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Алатке странице"> <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="Алатке" > <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">Алатке</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">Алатке</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">помери на страну</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">сакриј</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Више опција" > <div class="vector-menu-heading"> Радње </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/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA"><span>Читај</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit" title="Уредите изворни код ове странице [e]" accesskey="e"><span>Уреди извор</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=history"><span>Историја</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Опште </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%A8%D1%82%D0%B0_%D0%B2%D0%BE%D0%B4%D0%B8_%D0%BE%D0%B2%D0%B0%D0%BC%D0%BE/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA" title="Списак свих вики страница које воде овамо [j]" accesskey="j"><span>Шта води овамо</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9F%D0%BE%D0%B2%D0%B5%D0%B7%D0%B0%D0%BD%D0%B5_%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA" rel="nofollow" title="Скорашње измене страница које су повезане с овом [k]" accesskey="k"><span>Повезане измене</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Википедија:Водич_за_отпремање" title="Поставите слике и снимке [u]" accesskey="u"><span>Отпреми датотеку</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%B5_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B5" title="Списак свих посебних страница [q]" accesskey="q"><span>Посебне странице</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&oldid=28871316" title="Трајна веза до ове измене на овој страници"><span>Трајна веза</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=info" title="Више информација о овој страници"><span>Подаци о страници</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%A1%D0%BA%D1%80%D0%B0%D1%9B%D0%B8%D0%B2%D0%B0%D1%87_%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0&url=https%3A%2F%2Fsr.wikipedia.org%2Fwiki%2F%25D0%259C%25D0%25BE%25D0%25B4%25D1%2583%25D0%25BB%3AArguments%2F%25D0%25B4%25D0%25BE%25D0%25BA"><span>Кратки URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:QrCode&url=https%3A%2F%2Fsr.wikipedia.org%2Fwiki%2F%25D0%259C%25D0%25BE%25D0%25B4%25D1%2583%25D0%25BB%3AArguments%2F%25D0%25B4%25D0%25BE%25D0%25BA"><span>Преузми QR код</span></a></li> </ul> </div> </div> <div id="p-electronpdfservice-sidebar-portlet-heading" class="vector-menu mw-portlet mw-portlet-electronpdfservice-sidebar-portlet-heading" > <div class="vector-menu-heading"> Штампање/извоз </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="electron-print_pdf" class="mw-list-item"><a href="/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:DownloadAsPdf&page=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%3AArguments%2F%D0%B4%D0%BE%D0%BA&action=show-download-screen"><span>Преузми у PDF-у</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Одштампајте ову страницу [p]" accesskey="p"><span>Одштампај</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"> На другим пројектима </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="Алатке странице"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Изглед"> <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">Изглед</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">помери на страну</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">сакриј</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">С Википедије, слободне енциклопедије</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">< <bdi dir="ltr"><a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments" title="Модул:Arguments">Модул:Arguments</a></bdi></div></div></div> <div id="mw-content-text" class="mw-body-content"><p><b>Ово је документациона подстраница за <a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments" title="Модул:Arguments">Модул:Arguments</a></b> </p><div class="mw-content-ltr mw-parser-output" lang="sr" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r28855860">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class="plainlinks ombox ombox-notice" role="presentation" style="margin-bottom:1.0em;"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Edit-copy_green.svg/40px-Edit-copy_green.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Edit-copy_green.svg/60px-Edit-copy_green.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/15/Edit-copy_green.svg/80px-Edit-copy_green.svg.png 2x" data-file-width="48" data-file-height="48" /></span></span></td><td class="mbox-text"><b>Ово је <a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%86%D0%B8%D1%98%D0%B0_%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%B0" title="Википедија:Документација шаблона">документациона</a> <a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%9F%D0%BE%D0%B4%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B5" title="Википедија:Подстранице">подстраница</a> за <a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments" title="Модул:Arguments">Модул:Arguments</a></b>.<br />Садржи информације о коришћењу, <a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%98%D0%B0" title="Википедија:Категоризација">категоријама</a> и другом садржају који није део оригиналне странице.</td></tr></tbody></table> <style data-mw-deduplicate="TemplateStyles:r28855838">.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}</style><table class="box-Непреведено plainlinks metadata ambox ambox-notice ambox-not_English" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><span><img src="//upload.wikimedia.org/wikipedia/commons/thumb/9/91/WP-TranslationProject_TwoFlags.svg/50px-WP-TranslationProject_TwoFlags.svg.png" decoding="async" width="50" height="50" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/91/WP-TranslationProject_TwoFlags.svg/75px-WP-TranslationProject_TwoFlags.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/91/WP-TranslationProject_TwoFlags.svg/100px-WP-TranslationProject_TwoFlags.svg.png 2x" data-file-width="250" data-file-height="250" /></span></span></div></td><td class="mbox-text"><div class="mbox-text-span">Овај чланак или један његов део <b>није <a href="/wiki/%D0%9F%D1%80%D0%B5%D0%B2%D0%BE%D1%92%D0%B5%D1%9A%D0%B5" title="Превођење">преведен</a> на српски језик</b>.<span class="hide-when-compact"> Помозите у <a href="/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:%D0%A3%D1%80%D0%B5%D0%B4%D0%B8_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%83/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA" title="Посебно:Уреди страницу/Модул:Arguments/док">његовом побољшавању</a> превођењем садржаја, водећи рачуна о <a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A1%D1%82%D0%B8%D0%BB%D1%81%D0%BA%D0%B8_%D0%BF%D1%80%D0%B8%D1%80%D1%83%D1%87%D0%BD%D0%B8%D0%BA" title="Википедија:Стилски приручник">стилу</a> и <a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A1%D1%82%D0%B8%D0%BB%D1%81%D0%BA%D0%B8_%D0%BF%D1%80%D0%B8%D1%80%D1%83%D1%87%D0%BD%D0%B8%D0%BA/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D0%B5_%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D0%BF%D0%B8%D1%81%D0%B0_%D1%81%D1%80%D0%BF%D1%81%D0%BA%D0%BE%D0%B3_%D1%98%D0%B5%D0%B7%D0%B8%D0%BA%D0%B0" title="Википедија:Стилски приручник/Основе правописа српског језика">правопису</a> који се користе на Википедији на српском језику.</span></div></td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r28855860"><table class="plainlinks ombox ombox-content" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Ambox_warning_pn.svg/40px-Ambox_warning_pn.svg.png" decoding="async" width="40" height="35" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Ambox_warning_pn.svg/60px-Ambox_warning_pn.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/15/Ambox_warning_pn.svg/80px-Ambox_warning_pn.svg.png 2x" data-file-width="512" data-file-height="445" /></span></span></td><td class="mbox-text"><b>Овај Луа модул се користи на <span class="plainlinks"><a class="external text" href="https://linkcount.toolforge.org/index.php?project=sr.wikipedia.org&page=Модул:Arguments">1.008.137 страница</a></span></b>, тако да ће промене на њему бити широко примећене. Молимо да било какве измене тестирате на подстраницама модула <a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%BF%D0%B5%D1%81%D0%B0%D0%BA&action=edit&redlink=1" class="new" title="Модул:Arguments/песак (страница не постоји)">/песак</a> или <a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D0%B8&action=edit&redlink=1" class="new" title="Модул:Arguments/тестови (страница не постоји)">/тестови</a>. Размислите и о покретању расправе о изменама које намеравате да унесете на <a href="/w/index.php?title=%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D0%BE_%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%83:Arguments&action=edit&redlink=1" class="new" title="Разговор о модулу:Arguments (страница не постоји)">страници за разговор</a> пре њиховог примењивања.</td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r28855860"><table class="plainlinks ombox ombox-content" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Ambox_important.svg/40px-Ambox_important.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Ambox_important.svg/60px-Ambox_important.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Ambox_important.svg/80px-Ambox_important.svg.png 2x" data-file-width="40" data-file-height="40" /></span></span></td><td class="mbox-text"><b>Овај Луа модул се користи у системским порукама.</b><br />Било какве измене могу да изазову тренутне промене корисничког интерфејса Википедије. Да би се избегле грешке великих размера и беспотребно оптерећивање сервера, молимо да било какве измене тестирате на подстраницама <a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%BF%D0%B5%D1%81%D0%B0%D0%BA&action=edit&redlink=1" class="new" title="Модул:Arguments/песак (страница не постоји)">/песак</a> или <a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D1%82%D0%B5%D1%81%D1%82&action=edit&redlink=1" class="new" title="Модул:Arguments/тест (страница не постоји)">/тест</a>, или на сопственој <a href="https://en.wikipedia.org/wiki/Wikipedia:Subpages#How_to_create_user_subpages" class="extiw" title="en:Wikipedia:Subpages">корисничкој подстраници</a>. Тестиране измене потом треба да се додају у једној измени у овај шаблон. Размислите и о покретању расправе о изменама које намеравате да унесете на <a href="/w/index.php?title=%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D0%BE_%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%83:Arguments&action=edit&redlink=1" class="new" title="Разговор о модулу:Arguments (страница не постоји)">страници за разговор</a> пре њиховог примењивања.</td></tr></tbody></table> <p>This module provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include: </p> <ul><li>Easy trimming of arguments and removal of blank arguments.</li> <li>Arguments can be passed by both the current frame and by the parent frame at the same time. (More details below.)</li> <li>Arguments can be passed in directly from another Lua module or from the debug console.</li> <li>Arguments are fetched as needed, which can help avoid (some) problems with <code class="nowrap" style=""><ref>...</ref></code> tags.</li> <li>Most features can be customized.</li></ul> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Basic_use">Basic use</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=1" title="Уреди извор одељка: Basic use"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>First, you need to load the module. It contains one function, named <code>getArgs</code>. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">getArgs</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Arguments'</span><span class="p">).</span><span class="n">getArgs</span> </pre></div> <p>In the most basic scenario, you can use getArgs inside your main function. The variable <code>args</code> is a table containing the arguments from #invoke. (See below for details.) </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">getArgs</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Arguments'</span><span class="p">).</span><span class="n">getArgs</span> <span class="kd">local</span> <span class="n">p</span> <span class="o">=</span> <span class="p">{}</span> <span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">main</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="c1">-- Main module code goes here.</span> <span class="kr">end</span> <span class="kr">return</span> <span class="n">p</span> </pre></div> <p>However, the recommended practice is to use a function just for processing arguments from #invoke. This means that if someone calls your module from another Lua module you don't have to have a frame object available, which improves performance. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">getArgs</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Arguments'</span><span class="p">).</span><span class="n">getArgs</span> <span class="kd">local</span> <span class="n">p</span> <span class="o">=</span> <span class="p">{}</span> <span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">main</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="kr">return</span> <span class="n">p</span><span class="p">.</span><span class="n">_main</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">_main</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="c1">-- Main module code goes here.</span> <span class="kr">end</span> <span class="kr">return</span> <span class="n">p</span> </pre></div> <p>If you want multiple functions to use the arguments, and you also want them to be accessible from #invoke, you can use a wrapper function. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">getArgs</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Arguments'</span><span class="p">).</span><span class="n">getArgs</span> <span class="kd">local</span> <span class="kr">function</span> <span class="nf">makeInvokeFunc</span><span class="p">(</span><span class="n">funcName</span><span class="p">)</span> <span class="kr">return</span> <span class="kr">function</span> <span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="kr">return</span> <span class="n">p</span><span class="p">[</span><span class="n">funcName</span><span class="p">](</span><span class="n">args</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">end</span> <span class="kd">local</span> <span class="n">p</span> <span class="o">=</span> <span class="p">{}</span> <span class="n">p</span><span class="p">.</span><span class="n">func1</span> <span class="o">=</span> <span class="n">makeInvokeFunc</span><span class="p">(</span><span class="s1">'_func1'</span><span class="p">)</span> <span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">_func1</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="c1">-- Code for the first function goes here.</span> <span class="kr">end</span> <span class="n">p</span><span class="p">.</span><span class="n">func2</span> <span class="o">=</span> <span class="n">makeInvokeFunc</span><span class="p">(</span><span class="s1">'_func2'</span><span class="p">)</span> <span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">_func2</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="c1">-- Code for the second function goes here.</span> <span class="kr">end</span> <span class="kr">return</span> <span class="n">p</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Options">Options</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=2" title="Уреди извор одељка: Options"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The following options are available. They are explained in the sections below. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">trim</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span> <span class="n">removeBlanks</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span> <span class="n">valueFunc</span> <span class="o">=</span> <span class="kr">function</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="c1">-- Code for processing one argument</span> <span class="kr">end</span><span class="p">,</span> <span class="n">frameOnly</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">parentOnly</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">parentFirst</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">wrappers</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">'Template:A wrapper template'</span><span class="p">,</span> <span class="s1">'Template:Another wrapper template'</span> <span class="p">},</span> <span class="n">readOnly</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">noOverwrite</span> <span class="o">=</span> <span class="kc">true</span> <span class="p">})</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Trimming_and_removing_blanks">Trimming and removing blanks</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=3" title="Уреди извор одељка: Trimming and removing blanks"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Blank arguments often trip up coders new to converting MediaWiki templates to Lua. In template syntax, blank strings and strings consisting only of whitespace are considered false. However, in Lua, blank strings and strings consisting of whitespace are considered true. This means that if you don't pay attention to such arguments when you write your Lua modules, you might treat something as true that should actually be treated as false. To avoid this, by default this module removes all blank arguments. </p><p>Similarly, whitespace can cause problems when dealing with positional arguments. Although whitespace is trimmed for named arguments coming from #invoke, it is preserved for positional arguments. Most of the time this additional whitespace is not desired, so this module trims it off by default. </p><p>However, sometimes you want to use blank arguments as input, and sometimes you want to keep additional whitespace. This can be necessary to convert some templates exactly as they were written. If you want to do this, you can set the <code>trim</code> and <code>removeBlanks</code> arguments to <code>false</code>. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">trim</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span> <span class="n">removeBlanks</span> <span class="o">=</span> <span class="kc">false</span> <span class="p">})</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Custom_formatting_of_arguments">Custom formatting of arguments</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=4" title="Уреди извор одељка: Custom formatting of arguments"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Sometimes you want to remove some blank arguments but not others, or perhaps you might want to put all of the positional arguments in lower case. To do things like this you can use the <code>valueFunc</code> option. The input to this option must be a function that takes two parameters, <code>key</code> and <code>value</code>, and returns a single value. This value is what you will get when you access the field <code>key</code> in the <code>args</code> table. </p><p>Example 1: this function preserves whitespace for the first positional argument, but trims all other arguments and removes all other blank arguments. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">valueFunc</span> <span class="o">=</span> <span class="kr">function</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="n">key</span> <span class="o">==</span> <span class="mi">1</span> <span class="kr">then</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">elseif</span> <span class="n">value</span> <span class="kr">then</span> <span class="n">value</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">trim</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="n">value</span> <span class="o">~=</span> <span class="s1">''</span> <span class="kr">then</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">end</span> <span class="kr">end</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="p">})</span> </pre></div> <p>Example 2: this function removes blank arguments and converts all arguments to lower case, but doesn't trim whitespace from positional parameters. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">valueFunc</span> <span class="o">=</span> <span class="kr">function</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="ow">not</span> <span class="n">value</span> <span class="kr">then</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="n">value</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">lower</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">find</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="s1">'%S'</span><span class="p">)</span> <span class="kr">then</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">end</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="p">})</span> </pre></div> <p>Note: the above functions will fail if passed input that is not of type <code>string</code> or <code>nil</code>. This might be the case if you use the <code>getArgs</code> function in the main function of your module, and that function is called by another Lua module. In this case, you will need to check the type of your input. This is not a problem if you are using a function specially for arguments from #invoke (i.e. you have <code>p.main</code> and <code>p._main</code> functions, or something similar). </p> <div style="margin-left:0px"> <table class="mw-collapsible mw-collapsed" style="background: transparent; text-align: left; border: 1px solid silver; margin: 0.2em auto auto; width:100%; clear: both; padding: 1px;"> <tbody><tr> <th style="background: #CCFFCC; font-size:87%; padding:0.2em 0.3em; text-align:center;"><span style="font-size:115%">Examples 1 and 2 with type checking</span> </th></tr> <tr> <td style="border: solid 1px silver; padding: 8px; background: white;"> <p>Example 1: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">valueFunc</span> <span class="o">=</span> <span class="kr">function</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="n">key</span> <span class="o">==</span> <span class="mi">1</span> <span class="kr">then</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">elseif</span> <span class="nb">type</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="o">==</span> <span class="s1">'string'</span> <span class="kr">then</span> <span class="n">value</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">trim</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="n">value</span> <span class="o">~=</span> <span class="s1">''</span> <span class="kr">then</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">else</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="kr">else</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">end</span> <span class="kr">end</span> <span class="p">})</span> </pre></div> <p>Example 2: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">valueFunc</span> <span class="o">=</span> <span class="kr">function</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="o">==</span> <span class="s1">'string'</span> <span class="kr">then</span> <span class="n">value</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">lower</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="kr">if</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">find</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="s1">'%S'</span><span class="p">)</span> <span class="kr">then</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">else</span> <span class="kr">return</span> <span class="kc">nil</span> <span class="kr">end</span> <span class="kr">else</span> <span class="kr">return</span> <span class="n">value</span> <span class="kr">end</span> <span class="kr">end</span> <span class="p">})</span> </pre></div> </td></tr></tbody></table></div> <p>Also, please note that the <code>valueFunc</code> function is called more or less every time an argument is requested from the <code>args</code> table, so if you care about performance you should make sure you aren't doing anything inefficient with your code. </p> <div class="mw-heading mw-heading3"><h3 id="Frames_and_parent_frames">Frames and parent frames</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=5" title="Уреди извор одељка: Frames and parent frames"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Arguments in the <code>args</code> table can be passed from the current frame or from its parent frame at the same time. To understand what this means, it is easiest to give an example. Let's say that we have a module called <code>Module:ExampleArgs</code>. This module prints the first two positional arguments that it is passed. </p> <div style="margin-left:0px"> <table class="mw-collapsible mw-collapsed" style="background: transparent; text-align: left; border: 1px solid silver; margin: 0.2em auto auto; width:100%; clear: both; padding: 1px;"> <tbody><tr> <th style="background: #CCFFCC; font-size:87%; padding:0.2em 0.3em; text-align:center;"><span style="font-size:115%">Module:ExampleArgs code</span> </th></tr> <tr> <td style="border: solid 1px silver; padding: 8px; background: white;"> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">getArgs</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">'Module:Arguments'</span><span class="p">).</span><span class="n">getArgs</span> <span class="kd">local</span> <span class="n">p</span> <span class="o">=</span> <span class="p">{}</span> <span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">main</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> <span class="kr">return</span> <span class="n">p</span><span class="p">.</span><span class="n">_main</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">_main</span><span class="p">(</span><span class="n">args</span><span class="p">)</span> <span class="kd">local</span> <span class="n">first</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="ow">or</span> <span class="s1">''</span> <span class="kd">local</span> <span class="n">second</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="ow">or</span> <span class="s1">''</span> <span class="kr">return</span> <span class="n">first</span> <span class="o">..</span> <span class="s1">' '</span> <span class="o">..</span> <span class="n">second</span> <span class="kr">end</span> <span class="kr">return</span> <span class="n">p</span> </pre></div> </td></tr></tbody></table></div> <p><code>Module:ExampleArgs</code> is then called by <code>Template:ExampleArgs</code>, which contains the code <code>{{#invoke:ExampleArgs|main|firstInvokeArg}}</code>. This produces the result "firstInvokeArg". </p><p>Now if we were to call <code>Template:ExampleArgs</code>, the following would happen: </p> <table class="wikitable" style="width: 50em; max-width: 100%;"> <tbody><tr> <th style="width: 60%;">Code </th> <th style="width: 40%;">Result </th></tr> <tr> <td><code>{{ExampleArgs}}</code> </td> <td>firstInvokeArg </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg}}</code> </td> <td>firstInvokeArg </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg|secondTemplateArg}}</code> </td> <td>firstInvokeArg secondTemplateArg </td></tr></tbody></table> <p>There are three options you can set to change this behaviour: <code>frameOnly</code>, <code>parentOnly</code> and <code>parentFirst</code>. If you set <code>frameOnly</code> then only arguments passed from the current frame will be accepted; if you set <code>parentOnly</code> then only arguments passed from the parent frame will be accepted; and if you set <code>parentFirst</code> then arguments will be passed from both the current and parent frames, but the parent frame will have priority over the current frame. Here are the results in terms of <code>Template:ExampleArgs</code>: </p> <dl><dt>frameOnly</dt></dl> <table class="wikitable" style="width: 50em; max-width: 100%;"> <tbody><tr> <th style="width: 60%;">Code </th> <th style="width: 40%;">Result </th></tr> <tr> <td><code>{{ExampleArgs}}</code> </td> <td>firstInvokeArg </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg}}</code> </td> <td>firstInvokeArg </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg|secondTemplateArg}}</code> </td> <td>firstInvokeArg </td></tr></tbody></table> <dl><dt>parentOnly</dt></dl> <table class="wikitable" style="width: 50em; max-width: 100%;"> <tbody><tr> <th style="width: 60%;">Code </th> <th style="width: 40%;">Result </th></tr> <tr> <td><code>{{ExampleArgs}}</code> </td> <td> </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg}}</code> </td> <td>firstTemplateArg </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg|secondTemplateArg}}</code> </td> <td>firstTemplateArg secondTemplateArg </td></tr></tbody></table> <dl><dt>parentFirst</dt></dl> <table class="wikitable" style="width: 50em; max-width: 100%;"> <tbody><tr> <th style="width: 60%;">Code </th> <th style="width: 40%;">Result </th></tr> <tr> <td><code>{{ExampleArgs}}</code> </td> <td>firstInvokeArg </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg}}</code> </td> <td>firstTemplateArg </td></tr> <tr> <td><code>{{ExampleArgs|firstTemplateArg|secondTemplateArg}}</code> </td> <td>firstTemplateArg secondTemplateArg </td></tr></tbody></table> <p>Notes: </p> <ol><li>If you set both the <code>frameOnly</code> and <code>parentOnly</code> options, the module won't fetch any arguments at all from #invoke. This is probably not what you want.</li> <li>In some situations a parent frame may not be available, e.g. if getArgs is passed the parent frame rather than the current frame. In this case, only the frame arguments will be used (unless parentOnly is set, in which case no arguments will be used) and the <code>parentFirst</code> and <code>frameOnly</code> options will have no effect.</li></ol> <div class="mw-heading mw-heading3"><h3 id="Wrappers">Wrappers</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=6" title="Уреди извор одељка: Wrappers"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <i>wrappers</i> option is used to specify a limited number of templates as <i>wrapper templates</i>, that is, templates whose only purpose is to call a module. If the module detects that it is being called from a wrapper template, it will only check for arguments in the parent frame; otherwise it will only check for arguments in the frame passed to getArgs. This allows modules to be called by either #invoke or through a wrapper template without the loss of performance associated with having to check both the frame and the parent frame for each argument lookup. </p><p>For example, the only content of <a href="/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Side_box" title="Шаблон:Side box">Template:Side box</a> (excluding content in <code class="nowrap" style=""><noinclude>...</noinclude></code> tags) is <code>{{#invoke:Side box|main}}</code>. There is no point in checking the arguments passed directly to the #invoke statement for this template, as no arguments will ever be specified there. We can avoid checking arguments passed to #invoke by using the <i>parentOnly</i> option, but if we do this then #invoke will not work from other pages either. If this were the case, the <code class="tpl-para" style="word-break:break-word;">|text=Some text</code> in the code <code>{{#invoke:Side box|main|text=Some text}}</code> would be ignored completely, no matter what page it was used from. By using the <code>wrappers</code> option to specify 'Template:Side box' as a wrapper, we can make <code>{{#invoke:Side box|main|text=Some text}}</code> work from most pages, while still not requiring that the module check for arguments on the <a href="/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Side_box" title="Шаблон:Side box">Template:Side box</a> page itself. </p><p>Wrappers can be specified either as a string, or as an array of strings. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">wrappers</span> <span class="o">=</span> <span class="s1">'Template:Wrapper template'</span> <span class="p">})</span> </pre></div> <p><br /> </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> <span class="n">wrappers</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">'Template:Wrapper 1'</span><span class="p">,</span> <span class="s1">'Template:Wrapper 2'</span><span class="p">,</span> <span class="c1">-- Any number of wrapper templates can be added here.</span> <span class="p">}</span> <span class="p">})</span> </pre></div> <p>Notes: </p> <ol><li>The module will automatically detect if it is being called from a wrapper template's /sandbox subpage, so there is no need to specify sandbox pages explicitly.</li> <li>The <i>wrappers</i> option effectively changes the default of the <i>frameOnly</i> and <i>parentOnly</i> options. If, for example, <i>parentOnly</i> were explicitly set to false with <i>wrappers</i> set, calls via wrapper templates would result in both frame and parent arguments being loaded, though calls not via wrapper templates would result in only frame arguments being loaded.</li> <li>If the <i>wrappers</i> option is set and no parent frame is available, the module will always get the arguments from the frame passed to <code>getArgs</code>.</li></ol> <div class="mw-heading mw-heading3"><h3 id="Writing_to_the_args_table">Writing to the args table</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=7" title="Уреди извор одељка: Writing to the args table"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Sometimes it can be useful to write new values to the args table. This is possible with the default settings of this module. (However, bear in mind that it is usually better coding style to create a new table with your new values and copy arguments from the args table as needed.) </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">args</span><span class="p">.</span><span class="n">foo</span> <span class="o">=</span> <span class="s1">'some value'</span> </pre></div> <p>It is possible to alter this behaviour with the <code>readOnly</code> and <code>noOverwrite</code> options. If <code>readOnly</code> is set then it is not possible to write any values to the args table at all. If <code>noOverwrite</code> is set, then it is possible to add new values to the table, but it is not possible to add a value if it would overwrite any arguments that are passed from #invoke. </p> <div class="mw-heading mw-heading3"><h3 id="Ref_tags">Ref tags</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=8" title="Уреди извор одељка: Ref tags"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This module uses <a href="https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Metatables" class="extiw" title="mw:Extension:Scribunto/Lua reference manual">metatables</a> to fetch arguments from #invoke. This allows access to both the frame arguments and the parent frame arguments without using the <code>pairs()</code> function. This can help if your module might be passed <code class="nowrap" style=""><ref>...</ref></code> tags as input. </p><p>As soon as <code class="nowrap" style=""><ref>...</ref></code> tags are accessed from Lua, they are processed by the MediaWiki software and the reference will appear in the reference list at the bottom of the article. If your module proceeds to omit the reference tag from the output, you will end up with a phantom reference - a reference that appears in the reference list, but no number that links to it. This has been a problem with modules that use <code>pairs()</code> to detect whether to use the arguments from the frame or the parent frame, as those modules automatically process every available argument. </p><p>This module solves this problem by allowing access to both frame and parent frame arguments, while still only fetching those arguments when it is necessary. The problem will still occur if you use <code>pairs(args)</code> elsewhere in your module, however. </p> <div class="mw-heading mw-heading3"><h3 id="Known_limitations">Known limitations</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&action=edit&section=9" title="Уреди извор одељка: Known limitations"><span>уреди извор</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The use of metatables also has its downsides. Most of the normal Lua table tools won't work properly on the args table, including the <code>#</code> operator, the <code>next()</code> function, and the functions in the table library. If using these is important for your module, you should use your own argument processing function instead of this module. </p> <!-- NewPP limit report Parsed by mw‐api‐int.codfw.main‐849f99967d‐9rsml Cached time: 20241123221852 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.123 seconds Real time usage: 0.162 seconds Preprocessor visited node count: 902/1000000 Post‐expand include size: 17260/2097152 bytes Template argument size: 229/2097152 bytes Highest expansion depth: 15/100 Expensive parser function count: 14/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 24879/5000000 bytes Lua time usage: 0.039/10.000 seconds Lua memory usage: 959715/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 117.123 1 -total 32.14% 37.647 1 Шаблон:Превод 29.84% 34.948 1 Шаблон:Документациона_подстраница 26.97% 31.593 1 Шаблон:Mbox 16.26% 19.044 1 Шаблон:Ambox 11.36% 13.311 1 Шаблон:High-risk 10.09% 11.820 2 Шаблон:Ombox 8.93% 10.459 3 Шаблон:Replace 7.25% 8.492 2 Шаблон:Cot 3.89% 4.554 4 Шаблон:Tag --> <!-- Saved in parser cache with key srwiki:pcache:idhash:2323928-0!canonical!sr and timestamp 20241123221852 and revision id 28871316. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Преузето из „<a dir="ltr" href="https://sr.wikipedia.org/w/index.php?title=Модул:Arguments/док&oldid=28871316">https://sr.wikipedia.org/w/index.php?title=Модул:Arguments/док&oldid=28871316</a>”</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Сакривене категорије: <ul><li><a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:Pages_using_deprecated_source_tags" title="Категорија:Pages using deprecated source tags">Pages using deprecated source tags</a></li><li><a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%86%D0%B8%D1%98%D0%B0_%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D0%B0" title="Категорија:Документација модула">Документација модула</a></li><li><a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:%D0%9F%D0%BE%D1%82%D1%80%D0%B5%D0%B1%D0%B0%D0%BD_%D0%BF%D1%80%D0%B5%D0%B2%D0%BE%D0%B4" title="Категорија:Потребан превод">Потребан превод</a></li><li><a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D0%B8_%D0%BA%D0%BE%D1%98%D0%B8_%D1%81%D0%B5_%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D1%82%D0%B5_%D0%BD%D0%B0_%D0%B2%D0%B5%D0%BE%D0%BC%D0%B0_%D0%B2%D0%B5%D0%BB%D0%B8%D0%BA%D0%BE%D0%BC_%D0%B1%D1%80%D0%BE%D1%98%D1%83_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0_%D0%B8_%D1%87%D0%B8%D1%98%D0%B5_%D1%81%D1%83_%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5_%D1%80%D0%B8%D0%B7%D0%B8%D1%87%D0%BD%D0%B5" title="Категорија:Шаблони који се користе на веома великом броју страница и чије су измене ризичне">Шаблони који се користе на веома великом броју страница и чије су измене ризичне</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"> Датум и време последње измене странице: 23. новембар 2024. у 23:18.</li> <li id="footer-info-copyright">Текст је доступан под лиценцом <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Ауторство—Делити под истим условима</a>; могући су и додатни услови. Погледајте <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">услове коришћења</a> за детаље.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Политика приватности</a></li> <li id="footer-places-about"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%9E_%D0%BD%D0%B0%D0%BC%D0%B0">О Википедији</a></li> <li id="footer-places-disclaimers"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%9E%D0%B4%D1%80%D0%B8%D1%86%D0%B0%D1%9A%D0%B5_%D0%BE%D0%B4%D0%B3%D0%BE%D0%B2%D0%BE%D1%80%D0%BD%D0%BE%D1%81%D1%82%D0%B8">Одрицање одговорности</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Кодекс понашања</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">За програмере</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/sr.wikipedia.org">Статистика</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Изјава о колачићима</a></li> <li id="footer-places-mobileview"><a href="//sr.m.wikipedia.org/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Arguments/%D0%B4%D0%BE%D0%BA&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Мобилни приказ</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-f69cdc8f6-qnvsb","wgBackendResponseTime":136,"wgPageParseReport":{"limitreport":{"cputime":"0.123","walltime":"0.162","ppvisitednodes":{"value":902,"limit":1000000},"postexpandincludesize":{"value":17260,"limit":2097152},"templateargumentsize":{"value":229,"limit":2097152},"expansiondepth":{"value":15,"limit":100},"expensivefunctioncount":{"value":14,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":24879,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 117.123 1 -total"," 32.14% 37.647 1 Шаблон:Превод"," 29.84% 34.948 1 Шаблон:Документациона_подстраница"," 26.97% 31.593 1 Шаблон:Mbox"," 16.26% 19.044 1 Шаблон:Ambox"," 11.36% 13.311 1 Шаблон:High-risk"," 10.09% 11.820 2 Шаблон:Ombox"," 8.93% 10.459 3 Шаблон:Replace"," 7.25% 8.492 2 Шаблон:Cot"," 3.89% 4.554 4 Шаблон:Tag"]},"scribunto":{"limitreport-timeusage":{"value":"0.039","limit":"10.000"},"limitreport-memusage":{"value":959715,"limit":52428800}},"cachereport":{"origin":"mw-api-int.codfw.main-849f99967d-9rsml","timestamp":"20241123221852","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>