CINXE.COM
Ver o código fonte de "Módulo:Argumentos" - Wikipedia, a enciclopedia libre
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="gl" dir="ltr"> <head> <meta charset="UTF-8"> <title>Ver o código fonte de "Módulo:Argumentos" - Wikipedia, a enciclopedia libre</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )glwikimwclientpreferences=([^;]+)/);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":true,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy" ,"wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"afc72bf2-8fde-473c-b9d6-dcaeca024c40","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Módulo:Argumentos","wgTitle":"Argumentos","wgCurRevisionId":3811783,"wgRevisionId":0,"wgArticleId":313197,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Módulo:Argumentos","wgRelevantArticleId":313197,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":["sysop"],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode": "en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":10000,"wgCodeEditorCurrentLanguage":"lua","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};RLSTATE={"ext.gadget.charinsert-styles":"ready","ext.gadget.PortalClass":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user": "ready","user":"ready","user.options":"loading","ext.codeEditor.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.charinsert.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.codeEditor","ext.scribunto.edit","mediawiki.action.edit.collapsibleFooter","site","mediawiki.page.ready","skins.vector.js","ext.centralNotice.geoIP","ext.charinsert","ext.gadget.ReferenceTooltips","ext.gadget.refToolbar","ext.gadget.charinsert","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","wikibase.sidebar.tracking" ];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=gl&modules=ext.charinsert.styles%7Cext.codeEditor.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=gl&modules=ext.gadget.PortalClass%2Ccharinsert-styles&only=styles&skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=gl&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="noindex,nofollow,max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Ver o código fonte de "Módulo:Argumentos" - Wikipedia, a enciclopedia libre"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//gl.m.wikipedia.org/wiki/M%C3%B3dulo:Argumentos"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (gl)"> <link rel="EditURI" type="application/rsd+xml" href="//gl.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://gl.wikipedia.org/wiki/M%C3%B3dulo:Argumentos"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.gl"> <link rel="alternate" type="application/atom+xml" title="Fonte Atom de novas de Wikipedia" href="/w/index.php?title=Especial:Cambios_recentes&feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="codeeditor-loading skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-828 ns-subject page-Módulo_Argumentos rootpage-Módulo_Argumentos skin-vector-2022 action-edit"><a class="mw-jump-link" href="#bodyContent">Saltar ao contido</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="Sitio"> <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="Menú principal" > <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">Menú principal</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">Menú principal</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">agochar</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navegación </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Portada" title="Visitar a páxina principal [z]" accesskey="z"><span>Portada</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Portal_da_comunidade" title="Información acerca do proxecto, do que pode facer e dos lugares onde atopar as cousas"><span>Portal da comunidade</span></a></li><li id="n-A-Taberna" class="mw-list-item"><a href="/wiki/Wikipedia:A_Taberna"><span>A Taberna</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Wikipedia:Actualidade" title="Información acerca de acontecementos de actualidade"><span>Actualidade</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Especial:Cambios_recentes" title="A lista de modificacións recentes no wiki [r]" accesskey="r"><span>Cambios recentes</span></a></li><li id="n-Artigos-de-calidade" class="mw-list-item"><a href="/wiki/Wikipedia:Artigos_de_calidade"><span>Artigos de calidade</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Especial:Ao_chou" title="Cargar unha páxina ao chou [x]" accesskey="x"><span>Páxina ao chou</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Wikipedia:Axuda" title="O lugar para informarse"><span>Axuda</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Portada" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="a Wikipedia en galego" src="/static/images/mobile/copyright/wikipedia-tagline-gl.svg" width="118" height="13" style="width: 7.375em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Especial:Procurar" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Procurar neste wiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Procura</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="Procurar en Wikipedia" aria-label="Procurar en Wikipedia" autocapitalize="sentences" title="Procurar neste wiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Especial:Procurar"> </div> <button class="cdx-button cdx-search-input__end-button">Procurar</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Ferramentas persoais"> <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="Aparencia"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Cambia a aparencia do tamaño da fonte, o ancho e a cor da páxina" > <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="Aparencia" > <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">Aparencia</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="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_gl.wikipedia.org&uselang=gl" class=""><span>Doazóns</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=Especial:Crear_unha_conta&returnto=M%C3%B3dulo%3AArgumentos&returntoquery=action%3Dedit" title="É recomendable que cree unha conta e acceda ao sistema, se ben non é obrigatorio" class=""><span>Crear unha conta</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=Especial:Iniciar_sesi%C3%B3n&returnto=M%C3%B3dulo%3AArgumentos&returntoquery=action%3Dedit" title="É recomendable que se rexistre, se ben non é obrigatorio [o]" accesskey="o" class=""><span>Acceder ao sistema</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Máis opcións" > <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="Ferramentas persoais" > <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">Ferramentas persoais</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Menú de usuario" > <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="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_gl.wikipedia.org&uselang=gl"><span>Doazóns</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Especial:Crear_unha_conta&returnto=M%C3%B3dulo%3AArgumentos&returntoquery=action%3Dedit" title="É recomendable que cree unha conta e acceda ao sistema, se ben non é obrigatorio"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Crear unha conta</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Especial:Iniciar_sesi%C3%B3n&returnto=M%C3%B3dulo%3AArgumentos&returntoquery=action%3Dedit" title="É recomendable que se rexistre, se ben non é obrigatorio [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Acceder ao sistema</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Páxinas para os editores sen a sesión iniciada <a href="/wiki/Axuda:Introduci%C3%B3n" aria-label="Máis información sobre a edición"><span>máis información</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Especial:As_mi%C3%B1as_contribuci%C3%B3ns" title="Unha lista das modificacións feitas desde este enderezo IP [y]" accesskey="y"><span>Contribucións</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Especial:A_mi%C3%B1a_conversa" title="Conversa acerca de edicións feitas desde este enderezo IP [n]" accesskey="n"><span>Conversa</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Sitio"> <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="Contidos" 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">Contidos</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">agochar</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">Inicio</div> </a> </li> <li id="toc-Por_que_está_protexida_a_páxina?" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Por_que_está_protexida_a_páxina?"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Por que está protexida a páxina?</span> </div> </a> <ul id="toc-Por_que_está_protexida_a_páxina?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Que_podo_facer?" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Que_podo_facer?"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Que podo facer?</span> </div> </a> <ul id="toc-Que_podo_facer?-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contidos" 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="Mostrar ou agochar a táboa de contidos" > <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">Mostrar ou agochar a táboa de contidos</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">Ver o código fonte de "Módulo:Argumentos"</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="Este artigo só existe nesta lingua. Engade o artigo para outra linguas." > <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">Engadir linguas</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></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Espazos de nomes"> <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/M%C3%B3dulo:Argumentos" title="Ver a páxina do módulo [c]" accesskey="c"><span>Módulo</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Conversa_m%C3%B3dulo:Argumentos" rel="discussion" title="Conversa acerca do contido desta páxina [t]" accesskey="t"><span>Conversa</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Cambiar a variante de lingua" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Vistas"> <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="vector-tab-noicon mw-list-item"><a href="/wiki/M%C3%B3dulo:Argumentos"><span>Ler</span></a></li><li id="ca-viewsource" class="selected vector-tab-noicon mw-list-item"><a href="/w/index.php?title=M%C3%B3dulo:Argumentos&action=edit" title="Esta páxina está protexida. Pode ver o código fonte. [e]" accesskey="e"><span>Ver o código fonte</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=M%C3%B3dulo:Argumentos&action=history" title="Versións anteriores desta páxina [h]" accesskey="h"><span>Ver o historial</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Ferramentas das páxinas"> <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="Ferramentas" > <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">Ferramentas</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">Ferramentas</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">agochar</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Máis opcións" > <div class="vector-menu-heading"> Accións </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="vector-more-collapsible-item mw-list-item"><a href="/wiki/M%C3%B3dulo:Argumentos"><span>Ler</span></a></li><li id="ca-more-viewsource" class="selected vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=M%C3%B3dulo:Argumentos&action=edit"><span>Ver o código fonte</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=M%C3%B3dulo:Argumentos&action=history"><span>Ver o historial</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Xeral </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Especial:P%C3%A1xinas_que_ligan_con_esta/M%C3%B3dulo:Argumentos" title="Lista de todas as páxinas do wiki que ligan cara a aquí [j]" accesskey="j"><span>Páxinas que ligan con esta</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Especial:Cambios_relacionados/M%C3%B3dulo:Argumentos" rel="nofollow" title="Cambios recentes nas páxinas ligadas desde esta [k]" accesskey="k"><span>Cambios relacionados</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Especial:P%C3%A1xinas_especiais" title="Lista de todas as páxinas especiais [q]" accesskey="q"><span>Páxinas especiais</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=M%C3%B3dulo:Argumentos&action=info" title="Máis información sobre esta páxina"><span>Información da páxina</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Especial:UrlShortener&url=https%3A%2F%2Fgl.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DM%25C3%25B3dulo%3AArgumentos%26action%3Dedit"><span>Xerar URL acurtado</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Especial:QrCode&url=https%3A%2F%2Fgl.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DM%25C3%25B3dulo%3AArgumentos%26action%3Dedit"><span>Descargar o código QR</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> Noutros proxectos </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q15379728" title="Ligazón ao elemento conectado no repositorio de datos [g]" accesskey="g"><span>Elemento de Wikidata</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Ferramentas das páxinas"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Aparencia"> <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">Aparencia</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">agochar</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> <div id="contentSub"><div id="mw-content-subtitle">← <a href="/wiki/M%C3%B3dulo:Argumentos" title="Módulo:Argumentos">Módulo:Argumentos</a></div></div> <div id="mw-content-text" class="mw-body-content"><p>Non tes os permisos necesarios para editar esta páxina, polas seguintes razóns: </p> <ul class="permissions-errors"><li class="mw-permissionerror-protectedpagetext"><div id="mw-protectedpagetext" style="background: white; border: solid 0px #AAAAAA; margin-bottom: 0.5em; padding: 4px"> <table class="plainlinks fmbox fmbox-system" role="presentation" style="border: 2px solid #bba;"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Information_icon4.svg/40px-Information_icon4.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Information_icon4.svg/60px-Information_icon4.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Information_icon4.svg/80px-Information_icon4.svg.png 2x" data-file-width="620" data-file-height="620" /></span></span></td><td class="mbox-text" style="font-weight:bold; font-size:130%;">Esta páxina foi <a href="/wiki/Wikipedia:Pol%C3%ADtica_de_protecci%C3%B3n#Semiprotección" title="Wikipedia:Política de protección">semiprotexida</a> e só pode ser editada por <a href="/wiki/Wikipedia:Usuarios_autoconfirmados" title="Wikipedia:Usuarios autoconfirmados">usuarios autoconfirmados</a>.</td></tr></tbody></table> <table style="margin-top:1em; background:none;"> <tbody><tr><td style="width:50%; vertical-align:top;"> <div style="width:80%; vertical-align:top; background:transparent;"> <div style="position:relative; height:25px; left:1.3em; top:4px;"><h2 id="Por_que_está_protexida_a_páxina?" style="border-bottom:0; font-size:130%; font-weight:bold; padding:.15em;"><span id="Por_que_est.C3.A1_protexida_a_p.C3.A1xina.3F"></span>Por que está protexida a páxina?</h2></div> <ul> <li> Mentres que calquera pode editar a meirande parte dos artigos, a <a href="/wiki/Wikipedia:Pol%C3%ADtica_de_protecci%C3%B3n#Semiprotección" title="Wikipedia:Política de protección">semiprotección</a> é ás veces necesaria para evitar <a href="/wiki/Wikipedia:Vandalismo" title="Wikipedia:Vandalismo">vandalismos</a> en páxinas moi visitadas.</li> <li> O motivo para a protección pódese atopar no <span class="plainlinks"><a class="external text" href="https://gl.wikipedia.org/w/index.php?title=Especial:Log&type=protect&page=M%C3%B3dulo:Argumentos">rexistro de proteccións</a></span>. Se non hai entradas relevantes no rexistro, pódese deber a <span class="plainlinks"><a class="external text" href="https://gl.wikipedia.org/w/index.php?title=Especial:Log&type=move&page=M%C3%B3dulo:Argumentos">un traslado</a></span> realizado despois da protección.</li> </ul> </div> </td><td style="width:50%; vertical-align:top;"> <div style="position:relative; height:25px; left:1.3em; top:4px;"><h2 id="Que_podo_facer?" style="border-bottom:0; font-size:130%; font-weight:bold; padding:.15em;"><span id="Que_podo_facer.3F"></span>Que podo facer?</h2></div><ul><li> Se ten unha conta de usuario, <a href="/wiki/Especial:Iniciar_sesi%C3%B3n" title="Especial:Iniciar sesión">acceda ao sistema</a> primeiro. Se aínda non ten unha conta, quizais queira <span class="plainlinks"><a class="external text" href="https://gl.wikipedia.org/w/index.php?title=Especial:UserLogin&type=signup">crear unha</a></span>; despois de <a href="/wiki/Wikipedia:Usuarios_autoconfirmados" title="Wikipedia:Usuarios autoconfirmados">4 días e 10 edicións</a>, será capaz de modificar páxinas semiprotexidas.</li> <li><a href="/wiki/Conversa_m%C3%B3dulo:Argumentos" title="Conversa módulo:Argumentos">Converse sobre o contido da páxina</a> cos outros.</li> <li><a href="/wiki/Wikipedia:Taboleiro_dos_administradores/Bloqueos_e_protecci%C3%B3ns" title="Wikipedia:Taboleiro dos administradores/Bloqueos e proteccións">Solicite a desprotección</a> da páxina.</li> <li>Se deu cun erro ou ten unha suxestión para facer un cambio menor, pode enviar unha proposta de edición premendo na ligazón de embaixo. Un <a href="/wiki/Wikipedia:Usuarios_autoconfirmados" title="Wikipedia:Usuarios autoconfirmados">usuario autoconfirmado</a> fará entón o cambio no seu nome. Bótelle primeiro un ollo á <a href="/wiki/Conversa_m%C3%B3dulo:Argumentos" title="Conversa módulo:Argumentos">páxina de conversa do artigo</a>, para ver se o caso xa se está a debater.</li> <li style="list-style:none; display:inline;"> <div style="text-align:center; margin:auto;"> <p><span class="plainlinks"><a class="external text" href="https://gl.wikipedia.org/w/index.php?title=Conversa_m%C3%B3dulo:Argumentos&action=edit&preloadtitle=Solicitude%20de%20edición&section=new">Enviar unha solicitude de edición</a></span></p> </div> </li> </ul> </td></tr> </tbody></table> </div></li><li class="mw-permissionerror-globalblocking-blockedtext-range"><b>O teu enderezo IP está nun rango que foi <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Global_blocks" class="extiw" title="m:Special:MyLanguage/Global blocks">bloqueado en todos os wikis da Fundación Wikimedia</a>.</b> <p><a href="/wiki/Usuario:Jon_Kolbert" title="Usuario:Jon Kolbert">Jon Kolbert</a> realizou o bloqueo. O motivo achegado é <i><a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/NOP" class="extiw" title="m:Special:MyLanguage/NOP">Open proxy/Webhost</a>: See the <a href="https://meta.wikimedia.org/wiki/WM:OP/H" class="extiw" title="m:WM:OP/H">help page</a> if you are affected </i>. </p> <ul><li>Inicio do bloqueo: 27 de agosto de 2023 ás 15:12</li> <li>Caducidade do bloqueo: 27 de agosto de 2028 ás 15:12</li></ul> <p>O teu enderezo IP actual é 8.222.208.146. O rango bloqueado é 8.222.128.0/17. </p><p>Por favor, inclúe todos estes detalles nas consultas que fagas. Se cres que o teu bloqueo foi un erro, podes atopar información adicional e instrucións na política global sobre a <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/No_open_proxies" class="extiw" title="m:Special:MyLanguage/No open proxies">prohibición de proxies abertos</a>. </p> Pola contra, para debater sobre o bloqueo <a href="https://meta.wikimedia.org/wiki/Steward_requests/Global" class="extiw" title="m:Steward requests/Global">publica unha solicitude de revisión en Meta-Wiki</a>. Tamén podes enviar un correo electrónico á cola do <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/VRT" class="extiw" title="m:Special:MyLanguage/VRT">equipo voluntario de resposta</a> dos <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Stewards" class="extiw" title="m:Special:MyLanguage/Stewards">stewards</a> no enderezo <kbd>stewards@wikimedia.org</kbd>, incluíndo todos os detalles anteriores.</li></ul><hr /> <p>Podes ver e copiar o código fonte desta páxina. </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="en" dir="ltr" name="wpTextbox1">-- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil else return val end else return val end end local function tidyValTrimOnly(key, val) if type(val) == 'string' then return val:match('^%s*(.-)%s*$') else return val end end local function tidyValRemoveBlanksOnly(key, val) if type(val) == 'string' then if val:find('%S') then return val else return nil end else return val end end local function tidyValNoChange(key, val) return val end local function matchesTitle(given, title) local tp = type( given ) return (tp == 'string' or tp == 'number') and mw.title.new( given ).prefixedText == title end local translate_mt = { __index = function(t, k) return k end } function arguments.getArgs(frame, options) checkType('getArgs', 1, frame, 'table', true) checkType('getArgs', 2, options, 'table', true) frame = frame or {} options = options or {} --[[ -- Set up argument translation. --]] options.translate = options.translate or {} if getmetatable(options.translate) == nil then setmetatable(options.translate, translate_mt) end if options.backtranslate == nil then options.backtranslate = {} for k,v in pairs(options.translate) do options.backtranslate[v] = k end end if options.backtranslate and getmetatable(options.backtranslate) == nil then setmetatable(options.backtranslate, { __index = function(t, k) if options.translate[k] ~= k then return nil else return k end end }) end --[[ -- Get the argument tables. If we were passed a valid frame object, get the -- frame arguments (fargs) and the parent frame arguments (pargs), depending -- on the options set and on the parent frame's availability. If we weren't -- passed a valid frame object, we are being called from another Lua module -- or from the debug console, so assume that we were passed a table of args -- directly, and assign it to a new variable (luaArgs). --]] local fargs, pargs, luaArgs if type(frame.args) == 'table' and type(frame.getParent) == 'function' then if options.wrappers then --[[ -- The wrappers option makes Module:Arguments look up arguments in -- either the frame argument table or the parent argument table, but -- not both. This means that users can use either the #invoke syntax -- or a wrapper template without the loss of performance associated -- with looking arguments up in both the frame and the parent frame. -- Module:Arguments will look up arguments in the parent frame -- if it finds the parent frame's title in options.wrapper; -- otherwise it will look up arguments in the frame object passed -- to getArgs. --]] local parent = frame:getParent() if not parent then fargs = frame.args else local title = parent:getTitle():gsub('/sandbox$', '') local found = false if matchesTitle(options.wrappers, title) then found = true elseif type(options.wrappers) == 'table' then for _,v in pairs(options.wrappers) do if matchesTitle(v, title) then found = true break end end end -- We test for false specifically here so that nil (the default) acts like true. if found or options.frameOnly == false then pargs = parent.args end if not found or options.parentOnly == false then fargs = frame.args end end else -- options.wrapper isn't set, so check the other options. if not options.parentOnly then fargs = frame.args end if not options.frameOnly then local parent = frame:getParent() pargs = parent and parent.args or nil end end if options.parentFirst then fargs, pargs = pargs, fargs end else luaArgs = frame end -- Set the order of precedence of the argument tables. If the variables are -- nil, nothing will be added to the table, which is how we avoid clashes -- between the frame/parent args and the Lua args. local argTables = {fargs} argTables[#argTables + 1] = pargs argTables[#argTables + 1] = luaArgs --[[ -- Generate the tidyVal function. If it has been specified by the user, we -- use that; if not, we choose one of four functions depending on the -- options chosen. This is so that we don't have to call the options table -- every time the function is called. --]] local tidyVal = options.valueFunc if tidyVal then if type(tidyVal) ~= 'function' then error( "bad value assigned to option 'valueFunc'" .. '(function expected, got ' .. type(tidyVal) .. ')', 2 ) end elseif options.trim ~= false then if options.removeBlanks ~= false then tidyVal = tidyValDefault else tidyVal = tidyValTrimOnly end else if options.removeBlanks ~= false then tidyVal = tidyValRemoveBlanksOnly else tidyVal = tidyValNoChange end end --[[ -- Set up the args, metaArgs and nilArgs tables. args will be the one -- accessed from functions, and metaArgs will hold the actual arguments. Nil -- arguments are memoized in nilArgs, and the metatable connects all of them -- together. --]] local args, metaArgs, nilArgs, metatable = {}, {}, {}, {} setmetatable(args, metatable) local function mergeArgs(tables) --[[ -- Accepts multiple tables as input and merges their keys and values -- into one table. If a value is already present it is not overwritten; -- tables listed earlier have precedence. We are also memoizing nil -- values, which can be overwritten if they are 's' (soft). --]] for _, t in ipairs(tables) do for key, val in pairs(t) do if metaArgs[key] == nil and nilArgs[key] ~= 'h' then local tidiedVal = tidyVal(key, val) if tidiedVal == nil then nilArgs[key] = 's' else metaArgs[key] = tidiedVal end end end end end --[[ -- Define metatable behaviour. Arguments are memoized in the metaArgs table, -- and are only fetched from the argument tables once. Fetching arguments -- from the argument tables is the most resource-intensive step in this -- module, so we try and avoid it where possible. For this reason, nil -- arguments are also memoized, in the nilArgs table. Also, we keep a record -- in the metatable of when pairs and ipairs have been called, so we do not -- run pairs and ipairs on the argument tables more than once. We also do -- not run ipairs on fargs and pargs if pairs has already been run, as all -- the arguments will already have been copied over. --]] metatable.__index = function (t, key) --[[ -- Fetches an argument when the args table is indexed. First we check -- to see if the value is memoized, and if not we try and fetch it from -- the argument tables. When we check memoization, we need to check -- metaArgs before nilArgs, as both can be non-nil at the same time. -- If the argument is not present in metaArgs, we also check whether -- pairs has been run yet. If pairs has already been run, we return nil. -- This is because all the arguments will have already been copied into -- metaArgs by the mergeArgs function, meaning that any other arguments -- must be nil. --]] if type(key) == 'string' then key = options.translate[key] end local val = metaArgs[key] if val ~= nil then return val elseif metatable.donePairs or nilArgs[key] then return nil end for _, argTable in ipairs(argTables) do local argTableVal = tidyVal(key, argTable[key]) if argTableVal ~= nil then metaArgs[key] = argTableVal return argTableVal end end nilArgs[key] = 'h' return nil end metatable.__newindex = function (t, key, val) -- This function is called when a module tries to add a new value to the -- args table, or tries to change an existing value. if type(key) == 'string' then key = options.translate[key] end if options.readOnly then error( 'could not write to argument table key "' .. tostring(key) .. '"; the table is read-only', 2 ) elseif options.noOverwrite and args[key] ~= nil then error( 'could not write to argument table key "' .. tostring(key) .. '"; overwriting existing arguments is not permitted', 2 ) elseif val == nil then --[[ -- If the argument is to be overwritten with nil, we need to erase -- the value in metaArgs, so that __index, __pairs and __ipairs do -- not use a previous existing value, if present; and we also need -- to memoize the nil in nilArgs, so that the value isn't looked -- up in the argument tables if it is accessed again. --]] metaArgs[key] = nil nilArgs[key] = 'h' else metaArgs[key] = val end end local function translatenext(invariant) local k, v = next(invariant.t, invariant.k) invariant.k = k if k == nil then return nil elseif type(k) ~= 'string' or not options.backtranslate then return k, v else local backtranslate = options.backtranslate[k] if backtranslate == nil then -- Skip this one. This is a tail call, so this won't cause stack overflow return translatenext(invariant) else return backtranslate, v end end end metatable.__pairs = function () -- Called when pairs is run on the args table. if not metatable.donePairs then mergeArgs(argTables) metatable.donePairs = true end return translatenext, { t = metaArgs } end local function inext(t, i) -- This uses our __index metamethod local v = t[i + 1] if v ~= nil then return i + 1, v end end metatable.__ipairs = function (t) -- Called when ipairs is run on the args table. return inext, t, 0 end return args end return arguments </textarea><div id="mw-scribunto-console"></div><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Modelos usados nesta páxina: </p></div><ul> <li><a href="/wiki/Modelo:Alto_risco" title="Modelo:Alto risco">Modelo:Alto risco</a> (<a href="/w/index.php?title=Modelo:Alto_risco&action=edit" title="Modelo:Alto risco">editar</a>) </li><li><a href="/wiki/Modelo:Editar" title="Modelo:Editar">Modelo:Editar</a> (<a href="/w/index.php?title=Modelo:Editar&action=edit" title="Modelo:Editar">editar</a>) </li><li><a href="/wiki/Modelo:Etiqueta" title="Modelo:Etiqueta">Modelo:Etiqueta</a> (<a href="/w/index.php?title=Modelo:Etiqueta&action=edit" title="Modelo:Etiqueta">editar</a>) </li><li><a href="/wiki/Modelo:Icona_en_t%C3%ADtulo" title="Modelo:Icona en título">Modelo:Icona en título</a> (<a href="/w/index.php?title=Modelo:Icona_en_t%C3%ADtulo&action=edit" title="Modelo:Icona en título">editar</a>) </li><li><a href="/wiki/Modelo:Ombox" title="Modelo:Ombox">Modelo:Ombox</a> (<a href="/w/index.php?title=Modelo:Ombox&action=edit" title="Modelo:Ombox">ver o código fonte</a>) (semiprotexido)</li><li><a href="/wiki/Modelo:Protexido" title="Modelo:Protexido">Modelo:Protexido</a> (<a href="/w/index.php?title=Modelo:Protexido&action=edit" title="Modelo:Protexido">editar</a>) </li><li><a href="/wiki/Modelo:Purgar" title="Modelo:Purgar">Modelo:Purgar</a> (<a href="/w/index.php?title=Modelo:Purgar&action=edit" title="Modelo:Purgar">editar</a>) </li><li><a href="/wiki/Modelo:Subp%C3%A1xina_de_documentaci%C3%B3n" title="Modelo:Subpáxina de documentación">Modelo:Subpáxina de documentación</a> (<a href="/w/index.php?title=Modelo:Subp%C3%A1xina_de_documentaci%C3%B3n&action=edit" title="Modelo:Subpáxina de documentación">editar</a>) </li><li><a href="/wiki/Modelo:Tag" class="mw-redirect" title="Modelo:Tag">Modelo:Tag</a> (<a href="/w/index.php?title=Modelo:Tag&action=edit" class="mw-redirect" title="Modelo:Tag">editar</a>) </li><li><a href="/wiki/Modelo:Uso_de_marcador" title="Modelo:Uso de marcador">Modelo:Uso de marcador</a> (<a href="/w/index.php?title=Modelo:Uso_de_marcador&action=edit" title="Modelo:Uso de marcador">ver o código fonte</a>) (semiprotexido)</li><li><a href="/wiki/M%C3%B3dulo:Argumentos" title="Módulo:Argumentos">Módulo:Argumentos</a> (<a href="/w/index.php?title=M%C3%B3dulo:Argumentos&action=edit" title="Módulo:Argumentos">ver o código fonte</a>) (semiprotexido)</li><li><a href="/wiki/M%C3%B3dulo:Argumentos/uso" title="Módulo:Argumentos/uso">Módulo:Argumentos/uso</a> (<a href="/w/index.php?title=M%C3%B3dulo:Argumentos/uso&action=edit" title="Módulo:Argumentos/uso">editar</a>) </li><li><a href="/wiki/M%C3%B3dulo:Message_box" title="Módulo:Message box">Módulo:Message box</a> (<a href="/w/index.php?title=M%C3%B3dulo:Message_box&action=edit" title="Módulo:Message box">editar</a>) </li><li><a href="/wiki/M%C3%B3dulo:Message_box/configuraci%C3%B3n" title="Módulo:Message box/configuración">Módulo:Message box/configuración</a> (<a href="/w/index.php?title=M%C3%B3dulo:Message_box/configuraci%C3%B3n&action=edit" title="Módulo:Message box/configuración">editar</a>) </li><li><a href="/wiki/M%C3%B3dulo:No_globals" title="Módulo:No globals">Módulo:No globals</a> (<a href="/w/index.php?title=M%C3%B3dulo:No_globals&action=edit" title="Módulo:No globals">ver o código fonte</a>) (semiprotexido)</li><li><a href="/wiki/M%C3%B3dulo:Purgar" title="Módulo:Purgar">Módulo:Purgar</a> (<a href="/w/index.php?title=M%C3%B3dulo:Purgar&action=edit" title="Módulo:Purgar">editar</a>) </li><li><a href="/wiki/M%C3%B3dulo:Yesno" title="Módulo:Yesno">Módulo:Yesno</a> (<a href="/w/index.php?title=M%C3%B3dulo:Yesno&action=edit" title="Módulo:Yesno">editar</a>) </li></ul></div><p id="mw-returnto">Volver a «<a href="/wiki/M%C3%B3dulo:Argumentos" title="Módulo:Argumentos">Módulo:Argumentos</a>».</p> <!--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="">Traído desde «<a dir="ltr" href="https://gl.wikipedia.org/wiki/Módulo:Argumentos">https://gl.wikipedia.org/wiki/Módulo:Argumentos</a>»</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Normas de protección de datos</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Acerca_de">Acerca de Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Advertencia_xeral">Advertencias</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Código de conduta</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Desenvolvedores</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/gl.wikipedia.org">Estatísticas</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Declaración de cookies</a></li> <li id="footer-places-mobileview"><a href="//gl.m.wikipedia.org/w/index.php?title=M%C3%B3dulo:Argumentos&action=edit&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Vista móbil</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-v5bt4","wgBackendResponseTime":249,"wgPageParseReport":{"limitreport":{"cputime":"0.038","walltime":"0.052","ppvisitednodes":{"value":72,"limit":1000000},"postexpandincludesize":{"value":6577,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":5,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 27.435 1 Modelo:Fmbox","100.00% 27.435 1 -total"]},"scribunto":{"limitreport-timeusage":{"value":"0.008","limit":"10.000"},"limitreport-memusage":{"value":633302,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-v5bt4","timestamp":"20241124115453","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>