CINXE.COM

Modiwl:File link - Wicipedia

<!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="cy" dir="ltr"> <head> <meta charset="UTF-8"> <title>Modiwl:File link - Wicipedia</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(/(?:^|; )cywikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy" ,"wgMonthNames":["","Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"],"wgRequestId":"9ca3b043-7b96-4c9f-8779-2236e41bb0fe","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Modiwl:File_link","wgTitle":"File link","wgCurRevisionId":1710464,"wgRevisionId":1710464,"wgArticleId":137539,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"cy","wgPageContentLanguage":"cy","wgPageContentModel":"Scribunto","wgRelevantPageName":"Modiwl:File_link","wgRelevantArticleId":137539,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir": "ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":3000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q17121673","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready", "skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.urlShortener.toolbar","ext.centralauth.centralautologin","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","wikibase.client.vector-2022","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=cy&amp;modules=ext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=cy&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=cy&amp;modules=site.styles&amp;only=styles&amp;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="Modiwl:File link - Wicipedia"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//cy.m.wikipedia.org/wiki/Modiwl:File_link"> <link rel="alternate" type="application/x-wiki" title="Golygu" href="/w/index.php?title=Modiwl:File_link&amp;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="Wicipedia (cy)"> <link rel="EditURI" type="application/rsd+xml" href="//cy.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://cy.wikipedia.org/wiki/Modiwl:File_link"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.cy"> <link rel="alternate" type="application/atom+xml" title="Ffrwd Atom Wicipedia" href="/w/index.php?title=Arbennig:RecentChanges&amp;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-Modiwl_File_link rootpage-Modiwl_File_link skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Neidio i&#039;r cynnwys</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="Safle"> <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="Prif ddewislen" > <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">Prif ddewislen</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">Prif ddewislen</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">symud i&#039;r bar ochr</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">cuddio</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Panel llywio </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage" class="mw-list-item"><a href="/wiki/Hafan" title="Ymweld â&#039;r Hafan [z]" accesskey="z"><span>Hafan</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wicipedia:Porth_y_Gymuned" title="Pethau i&#039;w gwneud, adnoddau a thudalennau&#039;r gymuned"><span>Porth y Gymuned</span></a></li><li id="n-cafe" class="mw-list-item"><a href="/wiki/Wicipedia:Y_Caffi"><span>Y Caffi</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Categori:Materion_cyfoes" title="Gwybodaeth yn gysylltiedig â materion cyfoes"><span>Materion cyfoes</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Arbennig:RecentChanges" title="Rhestr y newidiadau diweddar ar y wici. [r]" accesskey="r"><span>Newidiadau diweddar</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Arbennig:Random" title="Llwytho tudalen ar hap [x]" accesskey="x"><span>Erthygl ar hap</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Wicipedia:Cymorth" title="Tudalennau cymorth"><span>Cymorth</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Hafan" 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="Wicipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-cy.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="" src="/static/images/mobile/copyright/wikipedia-tagline-cy.svg" width="120" height="13" style="width: 7.5em; 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/Arbennig:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Chwilio Wicipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Chwilio</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="Chwilio Wicipedia" aria-label="Chwilio Wicipedia" autocapitalize="sentences" title="Chwilio Wicipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Arbennig:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Chwilio</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Offer personol"> <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="Gwedd"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Newidiwch ymddangosiad maint ffont, lled a lliw y dudalen" > <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="Gwedd" > <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">Gwedd</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&amp;utm_medium=sidebar&amp;utm_campaign=C13_cy.wikipedia.org&amp;uselang=cy" class=""><span>Rhoi</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=Arbennig:CreateAccount&amp;returnto=Modiwl%3AFile+link" title="Rydym yn argymell eich bod yn creu cyfri ac yn menwgofnodi. Fodd bynnag, dydy hyn ddim yn orfodol" class=""><span>Creu cyfrif</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=Arbennig:UserLogin&amp;returnto=Modiwl%3AFile+link" title="Fe&#039;ch anogir i fewngofnodi, er nad oes rhaid gwneud. [o]" accesskey="o" class=""><span>Mewngofnodi</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="Rhagor o opsiynau" > <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="Offer personol" > <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">Offer personol</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Dewislen defnyddiwr" > <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&amp;utm_medium=sidebar&amp;utm_campaign=C13_cy.wikipedia.org&amp;uselang=cy"><span>Rhoi</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Arbennig:CreateAccount&amp;returnto=Modiwl%3AFile+link" title="Rydym yn argymell eich bod yn creu cyfri ac yn menwgofnodi. Fodd bynnag, dydy hyn ddim yn orfodol"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Creu cyfrif</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Arbennig:UserLogin&amp;returnto=Modiwl%3AFile+link" title="Fe&#039;ch anogir i fewngofnodi, er nad oes rhaid gwneud. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Mewngofnodi</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"> Tudalennau ar gyfer golygyddion allgofnodedig <a href="/wiki/Cymorth:Cyflwyniad" aria-label="Dysgu mwy am olygu"><span>dysgu mwy</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/Arbennig:MyContributions" title="Rhestr golygiadau o&#039;r cyfeiriad IP hwn [y]" accesskey="y"><span>Cyfraniadau</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Arbennig:MyTalk" title="Sgwrs ynglŷn â golygiadau o&#039;r cyfeiriad IP hwn [n]" accesskey="n"><span>Sgwrs</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="Safle"> <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="Cynnwys" 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">Cynnwys</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">symud i&#039;r bar ochr</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">cuddio</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">Y dechrau</div> </a> </li> <li id="toc-Usage" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Usage</span> </div> </a> <button aria-controls="toc-Usage-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>Toglo is-adran Usage</span> </button> <ul id="toc-Usage-sublist" class="vector-toc-list"> <li id="toc-Creating_the_object" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Creating_the_object"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Creating the object</span> </div> </a> <ul id="toc-Creating_the_object-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Basic_usage" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Basic_usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Basic usage</span> </div> </a> <ul id="toc-Basic_usage-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Call-chaining" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Call-chaining"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Call-chaining</span> </div> </a> <ul id="toc-Call-chaining-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Use_with_tostring" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Use_with_tostring"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4</span> <span>Use with tostring</span> </div> </a> <ul id="toc-Use_with_tostring-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Methods" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Methods"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Methods</span> </div> </a> <button aria-controls="toc-Methods-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>Toglo is-adran Methods</span> </button> <ul id="toc-Methods-sublist" class="vector-toc-list"> <li id="toc-Name" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Name"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Name</span> </div> </a> <ul id="toc-Name-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Format" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Format"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Format</span> </div> </a> <ul id="toc-Format-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Border" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Border"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Border</span> </div> </a> <ul id="toc-Border-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Width" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Width"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Width</span> </div> </a> <ul id="toc-Width-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Height" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Height"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Height</span> </div> </a> <ul id="toc-Height-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Upright" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Upright"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Upright</span> </div> </a> <ul id="toc-Upright-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ResetSize" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#ResetSize"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7</span> <span>ResetSize</span> </div> </a> <ul id="toc-ResetSize-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Location" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Location"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.8</span> <span>Location</span> </div> </a> <ul id="toc-Location-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Alignment" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Alignment"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.9</span> <span>Alignment</span> </div> </a> <ul id="toc-Alignment-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Link" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Link"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.10</span> <span>Link</span> </div> </a> <ul id="toc-Link-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Alt" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Alt"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.11</span> <span>Alt</span> </div> </a> <ul id="toc-Alt-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Page" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Page"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.12</span> <span>Page</span> </div> </a> <ul id="toc-Page-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Class" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Class"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.13</span> <span>Class</span> </div> </a> <ul id="toc-Class-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Lang" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Lang"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.14</span> <span>Lang</span> </div> </a> <ul id="toc-Lang-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-StartTime" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#StartTime"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.15</span> <span>StartTime</span> </div> </a> <ul id="toc-StartTime-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-EndTime" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#EndTime"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.16</span> <span>EndTime</span> </div> </a> <ul id="toc-EndTime-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ThumbTime" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#ThumbTime"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.17</span> <span>ThumbTime</span> </div> </a> <ul id="toc-ThumbTime-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Caption" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Caption"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.18</span> <span>Caption</span> </div> </a> <ul id="toc-Caption-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Render" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Render"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.19</span> <span>Render</span> </div> </a> <ul id="toc-Render-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="Cynnwys" 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="Toglo&#039;r tabl cynnwys" > <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">Toglo&#039;r tabl cynnwys</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">Modiwl</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">File link</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="Ewch i erthygl mewn iaith arall. Ar gael mewn 122 iaith" > <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-122" 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">122 iaith</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ab mw-list-item"><a href="https://ab.wikipedia.org/wiki/%D0%90%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Амодуль:File link - Abchaseg" lang="ab" hreflang="ab" data-title="Амодуль:File link" data-language-autonym="Аԥсшәа" data-language-local-name="Abchaseg" class="interlanguage-link-target"><span>Аԥсшәа</span></a></li><li class="interlanguage-link interwiki-af mw-list-item"><a href="https://af.wikipedia.org/wiki/Module:File_link" title="Module:File link - Affricaneg" lang="af" hreflang="af" data-title="Module:File link" data-language-autonym="Afrikaans" data-language-local-name="Affricaneg" class="interlanguage-link-target"><span>Afrikaans</span></a></li><li class="interlanguage-link interwiki-am mw-list-item"><a href="https://am.wikipedia.org/wiki/Module:File_link" title="Module:File link - Amhareg" lang="am" hreflang="am" data-title="Module:File link" data-language-autonym="አማርኛ" data-language-local-name="Amhareg" class="interlanguage-link-target"><span>አማርኛ</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%88%D8%AD%D8%AF%D8%A9:File_link" title="وحدة:File link - Arabeg" lang="ar" hreflang="ar" data-title="وحدة:File link" data-language-autonym="العربية" data-language-local-name="Arabeg" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-ary mw-list-item"><a href="https://ary.wikipedia.org/wiki/%D9%85%D9%88%D8%AF%D9%88%D9%84:File_link" title="مودول:File link - Arabeg Moroco" lang="ary" hreflang="ary" data-title="مودول:File link" data-language-autonym="الدارجة" data-language-local-name="Arabeg Moroco" class="interlanguage-link-target"><span>الدارجة</span></a></li><li class="interlanguage-link interwiki-arz mw-list-item"><a href="https://arz.wikipedia.org/wiki/%D9%88%D8%AD%D8%AF%D8%A9:File_link" title="وحدة:File link - Arabeg yr Aifft" lang="arz" hreflang="arz" data-title="وحدة:File link" data-language-autonym="مصرى" data-language-local-name="Arabeg yr Aifft" class="interlanguage-link-target"><span>مصرى</span></a></li><li class="interlanguage-link interwiki-as mw-list-item"><a href="https://as.wikipedia.org/wiki/Module:File_link" title="Module:File link - Asameg" lang="as" hreflang="as" data-title="Module:File link" data-language-autonym="অসমীয়া" data-language-local-name="Asameg" class="interlanguage-link-target"><span>অসমীয়া</span></a></li><li class="interlanguage-link interwiki-ast mw-list-item"><a href="https://ast.wikipedia.org/wiki/M%C3%B3dulu:File_link" title="Módulu:File link - Astwrianeg" lang="ast" hreflang="ast" data-title="Módulu:File link" data-language-autonym="Asturianu" data-language-local-name="Astwrianeg" class="interlanguage-link-target"><span>Asturianu</span></a></li><li class="interlanguage-link interwiki-av mw-list-item"><a href="https://av.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Модуль:File link - Afareg" lang="av" hreflang="av" data-title="Модуль:File link" data-language-autonym="Авар" data-language-local-name="Afareg" class="interlanguage-link-target"><span>Авар</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Aserbaijaneg" lang="az" hreflang="az" data-title="Modul:File link" data-language-autonym="Azərbaycanca" data-language-local-name="Aserbaijaneg" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%D9%85%D8%A7%DA%98%D9%88%D9%84:File_link" title="ماژول:File link - South Azerbaijani" lang="azb" hreflang="azb" data-title="ماژول:File link" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-ban mw-list-item"><a href="https://ban.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Balïeg" lang="ban" hreflang="ban" data-title="Modul:File link" data-language-autonym="Basa Bali" data-language-local-name="Balïeg" class="interlanguage-link-target"><span>Basa Bali</span></a></li><li class="interlanguage-link interwiki-bcl mw-list-item"><a href="https://bcl.wikipedia.org/wiki/Module:File_link" title="Module:File link - Central Bikol" lang="bcl" hreflang="bcl" data-title="Module:File link" data-language-autonym="Bikol Central" data-language-local-name="Central Bikol" class="interlanguage-link-target"><span>Bikol Central</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Модуль:File link - Belarwseg" lang="be" hreflang="be" data-title="Модуль:File link" data-language-autonym="Беларуская" data-language-local-name="Belarwseg" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bh mw-list-item"><a href="https://bh.wikipedia.org/wiki/Module:File_link" title="Module:File link - Bhojpuri" lang="bh" hreflang="bh" data-title="Module:File link" data-language-autonym="भोजपुरी" data-language-local-name="Bhojpuri" class="interlanguage-link-target"><span>भोजपुरी</span></a></li><li class="interlanguage-link interwiki-blk mw-list-item"><a href="https://blk.wikipedia.org/wiki/%E1%80%99%E1%80%B1%E1%80%AC%E1%80%BA%E1%80%82%E1%80%BB%E1%80%B0%E1%80%B8:File_link" title="မော်ဂျူး:File link - Pa&#039;O" lang="blk" hreflang="blk" data-title="မော်ဂျူး:File link" data-language-autonym="ပအိုဝ်ႏဘာႏသာႏ" data-language-local-name="Pa&#039;O" class="interlanguage-link-target"><span>ပအိုဝ်ႏဘာႏသာႏ</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%AE%E0%A6%A1%E0%A6%BF%E0%A6%89%E0%A6%B2:File_link" title="মডিউল:File link - Bengaleg" lang="bn" hreflang="bn" data-title="মডিউল:File link" data-language-autonym="বাংলা" data-language-local-name="Bengaleg" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Bosnieg" lang="bs" hreflang="bs" data-title="Modul:File link" data-language-autonym="Bosanski" data-language-local-name="Bosnieg" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-btm mw-list-item"><a href="https://btm.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Batak Mandailing" lang="btm" hreflang="btm" data-title="Modul:File link" data-language-autonym="Batak Mandailing" data-language-local-name="Batak Mandailing" class="interlanguage-link-target"><span>Batak Mandailing</span></a></li><li class="interlanguage-link interwiki-bxr mw-list-item"><a href="https://bxr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Модуль:File link - Russia Buriat" lang="bxr" hreflang="bxr" data-title="Модуль:File link" data-language-autonym="Буряад" data-language-local-name="Russia Buriat" class="interlanguage-link-target"><span>Буряад</span></a></li><li class="interlanguage-link interwiki-cdo mw-list-item"><a href="https://cdo.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:File_link" title="模組:File link - Mindong" lang="cdo" hreflang="cdo" data-title="模組:File link" data-language-autonym="閩東語 / Mìng-dĕ̤ng-ngṳ̄" data-language-local-name="Mindong" class="interlanguage-link-target"><span>閩東語 / Mìng-dĕ̤ng-ngṳ̄</span></a></li><li class="interlanguage-link interwiki-ce mw-list-item"><a href="https://ce.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Модуль:File link - Tsietsieneg" lang="ce" hreflang="ce" data-title="Модуль:File link" data-language-autonym="Нохчийн" data-language-local-name="Tsietsieneg" class="interlanguage-link-target"><span>Нохчийн</span></a></li><li class="interlanguage-link interwiki-ceb mw-list-item"><a href="https://ceb.wikipedia.org/wiki/Module:File_link" title="Module:File link - Cebuano" lang="ceb" hreflang="ceb" data-title="Module:File link" data-language-autonym="Cebuano" data-language-local-name="Cebuano" class="interlanguage-link-target"><span>Cebuano</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%D9%85%DB%86%D8%AF%DB%8C%D9%88%D9%88%D9%84:File_link" title="مۆدیوول:File link - Cwrdeg Sorani" lang="ckb" hreflang="ckb" data-title="مۆدیوول:File link" data-language-autonym="کوردی" data-language-local-name="Cwrdeg Sorani" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-co mw-list-item"><a href="https://co.wikipedia.org/wiki/Modulo:File_link" title="Modulo:File link - Corseg" lang="co" hreflang="co" data-title="Modulo:File link" data-language-autonym="Corsu" data-language-local-name="Corseg" class="interlanguage-link-target"><span>Corsu</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Daneg" lang="da" hreflang="da" data-title="Modul:File link" data-language-autonym="Dansk" data-language-local-name="Daneg" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/Module:File_link" title="Module:File link - Groeg" lang="el" hreflang="el" data-title="Module:File link" data-language-autonym="Ελληνικά" data-language-local-name="Groeg" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Module:File_link" title="Module:File link - Saesneg" lang="en" hreflang="en" data-title="Module:File link" data-language-autonym="English" data-language-local-name="Saesneg" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/M%C3%B3dulo:EnlaceArchivo" title="Módulo:EnlaceArchivo - Sbaeneg" lang="es" hreflang="es" data-title="Módulo:EnlaceArchivo" data-language-autonym="Español" data-language-local-name="Sbaeneg" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Moodul:File_link" title="Moodul:File link - Estoneg" lang="et" hreflang="et" data-title="Moodul:File link" data-language-autonym="Eesti" data-language-local-name="Estoneg" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Modulu:File_link" title="Modulu:File link - Basgeg" lang="eu" hreflang="eu" data-title="Modulu:File link" data-language-autonym="Euskara" data-language-local-name="Basgeg" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:File_link" title="پودمان:File link - Perseg" lang="fa" hreflang="fa" data-title="پودمان:File link" data-language-autonym="فارسی" data-language-local-name="Perseg" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-ff mw-list-item"><a href="https://ff.wikipedia.org/wiki/Module:File_link" title="Module:File link - Ffwla" lang="ff" hreflang="ff" data-title="Module:File link" data-language-autonym="Fulfulde" data-language-local-name="Ffwla" class="interlanguage-link-target"><span>Fulfulde</span></a></li><li class="interlanguage-link interwiki-fo mw-list-item"><a href="https://fo.wikipedia.org/wiki/Module:File_link" title="Module:File link - Ffaröeg" lang="fo" hreflang="fo" data-title="Module:File link" data-language-autonym="Føroyskt" data-language-local-name="Ffaröeg" class="interlanguage-link-target"><span>Føroyskt</span></a></li><li class="interlanguage-link interwiki-ga mw-list-item"><a href="https://ga.wikipedia.org/wiki/Module:File_link" title="Module:File link - Gwyddeleg" lang="ga" hreflang="ga" data-title="Module:File link" data-language-autonym="Gaeilge" data-language-local-name="Gwyddeleg" class="interlanguage-link-target"><span>Gaeilge</span></a></li><li class="interlanguage-link interwiki-gan mw-list-item"><a href="https://gan.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:File_link" title="模組:File link - Gan" lang="gan" hreflang="gan" data-title="模組:File link" data-language-autonym="贛語" data-language-local-name="Gan" class="interlanguage-link-target"><span>贛語</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/M%C3%B3dulo:Ligaz%C3%B3nFicheiro" title="Módulo:LigazónFicheiro - Galisieg" lang="gl" hreflang="gl" data-title="Módulo:LigazónFicheiro" data-language-autonym="Galego" data-language-local-name="Galisieg" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-glk mw-list-item"><a href="https://glk.wikipedia.org/wiki/%D9%85%D8%A7%D8%AC%DB%8A%D9%84:File_link" title="ماجۊل:File link - Gilaki" lang="glk" hreflang="glk" data-title="ماجۊل:File link" data-language-autonym="گیلکی" data-language-local-name="Gilaki" class="interlanguage-link-target"><span>گیلکی</span></a></li><li class="interlanguage-link interwiki-gom mw-list-item"><a href="https://gom.wikipedia.org/wiki/%E0%A4%8F%E0%A4%95%E0%A4%95:File_link" title="एकक:File link - Goan Konkani" lang="gom" hreflang="gom" data-title="एकक:File link" data-language-autonym="गोंयची कोंकणी / Gõychi Konknni" data-language-local-name="Goan Konkani" class="interlanguage-link-target"><span>गोंयची कोंकणी / Gõychi Konknni</span></a></li><li class="interlanguage-link interwiki-gu mw-list-item"><a href="https://gu.wikipedia.org/wiki/%E0%AA%B5%E0%AA%BF%E0%AA%AD%E0%AA%BE%E0%AA%97:File_link" title="વિભાગ:File link - Gwjarati" lang="gu" hreflang="gu" data-title="વિભાગ:File link" data-language-autonym="ગુજરાતી" data-language-local-name="Gwjarati" class="interlanguage-link-target"><span>ગુજરાતી</span></a></li><li class="interlanguage-link interwiki-ha mw-list-item"><a href="https://ha.wikipedia.org/wiki/Module:File_link" title="Module:File link - Hawsa" lang="ha" hreflang="ha" data-title="Module:File link" data-language-autonym="Hausa" data-language-local-name="Hawsa" class="interlanguage-link-target"><span>Hausa</span></a></li><li class="interlanguage-link interwiki-hak mw-list-item"><a href="https://hak.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:File_link" title="模組:File link - Hakka Chinese" lang="hak" hreflang="hak" data-title="模組:File link" data-language-autonym="客家語 / Hak-kâ-ngî" data-language-local-name="Hakka Chinese" class="interlanguage-link-target"><span>客家語 / Hak-kâ-ngî</span></a></li><li class="interlanguage-link interwiki-haw mw-list-item"><a href="https://haw.wikipedia.org/wiki/Module:Loulou_waihona" title="Module:Loulou waihona - Hawäieg" lang="haw" hreflang="haw" data-title="Module:Loulou waihona" data-language-autonym="Hawaiʻi" data-language-local-name="Hawäieg" class="interlanguage-link-target"><span>Hawaiʻi</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%99%D7%97%D7%99%D7%93%D7%94:File_link" title="יחידה:File link - Hebraeg" lang="he" hreflang="he" data-title="יחידה:File link" data-language-autonym="עברית" data-language-local-name="Hebraeg" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%AE%E0%A5%89%E0%A4%A1%E0%A5%8D%E0%A4%AF%E0%A5%82%E0%A4%B2:File_link" title="मॉड्यूल:File link - Hindi" lang="hi" hreflang="hi" data-title="मॉड्यूल:File link" data-language-autonym="हिन्दी" data-language-local-name="Hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/%D5%84%D5%B8%D5%A4%D5%B8%D6%82%D5%AC:File_link" title="Մոդուլ:File link - Armeneg" lang="hy" hreflang="hy" data-title="Մոդուլ:File link" data-language-autonym="Հայերեն" data-language-local-name="Armeneg" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-hyw mw-list-item"><a href="https://hyw.wikipedia.org/wiki/%D5%84%D5%B8%D5%A4%D5%B8%D6%82%D5%AC:File_link" title="Մոդուլ:File link - Western Armenian" lang="hyw" hreflang="hyw" data-title="Մոդուլ:File link" data-language-autonym="Արեւմտահայերէն" data-language-local-name="Western Armenian" class="interlanguage-link-target"><span>Արեւմտահայերէն</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Indoneseg" lang="id" hreflang="id" data-title="Modul:File link" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indoneseg" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-ilo mw-list-item"><a href="https://ilo.wikipedia.org/wiki/Modulo:Silpo_ti_papeles" title="Modulo:Silpo ti papeles - Ilocaneg" lang="ilo" hreflang="ilo" data-title="Modulo:Silpo ti papeles" data-language-autonym="Ilokano" data-language-local-name="Ilocaneg" class="interlanguage-link-target"><span>Ilokano</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/Module:File_link" title="Module:File link - Islandeg" lang="is" hreflang="is" data-title="Module:File link" data-language-autonym="Íslenska" data-language-local-name="Islandeg" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:File_link" title="モジュール:File link - Japaneeg" lang="ja" hreflang="ja" data-title="モジュール:File link" data-language-autonym="日本語" data-language-local-name="Japaneeg" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-jv mw-list-item"><a href="https://jv.wikipedia.org/wiki/Modhul:File_link" title="Modhul:File link - Jafanaeg" lang="jv" hreflang="jv" data-title="Modhul:File link" data-language-autonym="Jawa" data-language-local-name="Jafanaeg" class="interlanguage-link-target"><span>Jawa</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/%E1%83%9B%E1%83%9D%E1%83%93%E1%83%A3%E1%83%9A%E1%83%98:File_link" title="მოდული:File link - Georgeg" lang="ka" hreflang="ka" data-title="მოდული:File link" data-language-autonym="ქართული" data-language-local-name="Georgeg" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-kaa mw-list-item"><a href="https://kaa.wikipedia.org/wiki/Module:File_link" title="Module:File link - Cara-Calpaceg" lang="kaa" hreflang="kaa" data-title="Module:File link" data-language-autonym="Qaraqalpaqsha" data-language-local-name="Cara-Calpaceg" class="interlanguage-link-target"><span>Qaraqalpaqsha</span></a></li><li class="interlanguage-link interwiki-kab mw-list-item"><a href="https://kab.wikipedia.org/wiki/Module:File_link" title="Module:File link - Cabileg" lang="kab" hreflang="kab" data-title="Module:File link" data-language-autonym="Taqbaylit" data-language-local-name="Cabileg" class="interlanguage-link-target"><span>Taqbaylit</span></a></li><li class="interlanguage-link interwiki-kn mw-list-item"><a href="https://kn.wikipedia.org/wiki/%E0%B2%AE%E0%B2%BE%E0%B2%A1%E0%B3%8D%E0%B2%AF%E0%B3%82%E0%B2%B2%E0%B3%8D:File_link" title="ಮಾಡ್ಯೂಲ್:File link - Kannada" lang="kn" hreflang="kn" data-title="ಮಾಡ್ಯೂಲ್:File link" data-language-autonym="ಕನ್ನಡ" data-language-local-name="Kannada" class="interlanguage-link-target"><span>ಕನ್ನಡ</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EB%AA%A8%EB%93%88:File_link" title="모듈:File link - Coreeg" lang="ko" hreflang="ko" data-title="모듈:File link" data-language-autonym="한국어" data-language-local-name="Coreeg" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ku mw-list-item"><a href="https://ku.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Cwrdeg" lang="ku" hreflang="ku" data-title="Modul:File link" data-language-autonym="Kurdî" data-language-local-name="Cwrdeg" class="interlanguage-link-target"><span>Kurdî</span></a></li><li class="interlanguage-link interwiki-kw mw-list-item"><a href="https://kw.wikipedia.org/wiki/Module:File_link" title="Module:File link - Cernyweg" lang="kw" hreflang="kw" data-title="Module:File link" data-language-autonym="Kernowek" data-language-local-name="Cernyweg" class="interlanguage-link-target"><span>Kernowek</span></a></li><li class="interlanguage-link interwiki-lg mw-list-item"><a href="https://lg.wikipedia.org/wiki/Module:File_link" title="Module:File link - Ganda" lang="lg" hreflang="lg" data-title="Module:File link" data-language-autonym="Luganda" data-language-local-name="Ganda" class="interlanguage-link-target"><span>Luganda</span></a></li><li class="interlanguage-link interwiki-lld mw-list-item"><a href="https://lld.wikipedia.org/wiki/Modulo:File_link" title="Modulo:File link - Ladin" lang="lld" hreflang="lld" data-title="Modulo:File link" data-language-autonym="Ladin" data-language-local-name="Ladin" class="interlanguage-link-target"><span>Ladin</span></a></li><li class="interlanguage-link interwiki-lo mw-list-item"><a href="https://lo.wikipedia.org/wiki/Module:File_link" title="Module:File link - Laoeg" lang="lo" hreflang="lo" data-title="Module:File link" data-language-autonym="ລາວ" data-language-local-name="Laoeg" class="interlanguage-link-target"><span>ລາວ</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/Modulis:File_link" title="Modulis:File link - Latfieg" lang="lv" hreflang="lv" data-title="Modulis:File link" data-language-autonym="Latviešu" data-language-local-name="Latfieg" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-mad mw-list-item"><a href="https://mad.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Madwreg" lang="mad" hreflang="mad" data-title="Modul:File link" data-language-autonym="Madhurâ" data-language-local-name="Madwreg" class="interlanguage-link-target"><span>Madhurâ</span></a></li><li class="interlanguage-link interwiki-mai mw-list-item"><a href="https://mai.wikipedia.org/wiki/%E0%A4%AE%E0%A5%8B%E0%A4%A1%E0%A5%8D%E0%A4%AF%E0%A5%81%E0%A4%B2:File_link" title="मोड्युल:File link - Maithili" lang="mai" hreflang="mai" data-title="मोड्युल:File link" data-language-autonym="मैथिली" data-language-local-name="Maithili" class="interlanguage-link-target"><span>मैथिली</span></a></li><li class="interlanguage-link interwiki-mdf mw-list-item"><a href="https://mdf.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Модуль:File link - Mocsia" lang="mdf" hreflang="mdf" data-title="Модуль:File link" data-language-autonym="Мокшень" data-language-local-name="Mocsia" class="interlanguage-link-target"><span>Мокшень</span></a></li><li class="interlanguage-link interwiki-mi mw-list-item"><a href="https://mi.wikipedia.org/wiki/Module:File_link" title="Module:File link - Māori" lang="mi" hreflang="mi" data-title="Module:File link" data-language-autonym="Māori" data-language-local-name="Māori" class="interlanguage-link-target"><span>Māori</span></a></li><li class="interlanguage-link interwiki-min mw-list-item"><a href="https://min.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Minangkabau" lang="min" hreflang="min" data-title="Modul:File link" data-language-autonym="Minangkabau" data-language-local-name="Minangkabau" class="interlanguage-link-target"><span>Minangkabau</span></a></li><li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://mk.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:File_link" title="Модул:File link - Macedoneg" lang="mk" hreflang="mk" data-title="Модул:File link" data-language-autonym="Македонски" data-language-local-name="Macedoneg" class="interlanguage-link-target"><span>Македонски</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:File_link" title="ഘടകം:File link - Malayalam" lang="ml" hreflang="ml" data-title="ഘടകം:File link" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-mn mw-list-item"><a href="https://mn.wikipedia.org/wiki/Module:File_link" title="Module:File link - Mongoleg" lang="mn" hreflang="mn" data-title="Module:File link" data-language-autonym="Монгол" data-language-local-name="Mongoleg" class="interlanguage-link-target"><span>Монгол</span></a></li><li class="interlanguage-link interwiki-mnw mw-list-item"><a href="https://mnw.wikipedia.org/wiki/%E1%80%99%E1%80%9D%E1%80%BA%E1%80%82%E1%80%BB%E1%80%B0:File_link" title="မဝ်ဂျူ:File link - Mon" lang="mnw" hreflang="mnw" data-title="မဝ်ဂျူ:File link" data-language-autonym="ဘာသာမန်" data-language-local-name="Mon" class="interlanguage-link-target"><span>ဘာသာမန်</span></a></li><li class="interlanguage-link interwiki-mr mw-list-item"><a href="https://mr.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%AD%E0%A4%BE%E0%A4%97:File_link" title="विभाग:File link - Marathi" lang="mr" hreflang="mr" data-title="विभाग:File link" data-language-autonym="मराठी" data-language-local-name="Marathi" class="interlanguage-link-target"><span>मराठी</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Maleieg" lang="ms" hreflang="ms" data-title="Modul:File link" data-language-autonym="Bahasa Melayu" data-language-local-name="Maleieg" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-my mw-list-item"><a href="https://my.wikipedia.org/wiki/%E1%80%99%E1%80%B1%E1%80%AC%E1%80%BA%E1%80%82%E1%80%BB%E1%80%B0%E1%80%B8:File_link" title="မော်ဂျူး:File link - Byrmaneg" lang="my" hreflang="my" data-title="မော်ဂျူး:File link" data-language-autonym="မြန်မာဘာသာ" data-language-local-name="Byrmaneg" class="interlanguage-link-target"><span>မြန်မာဘာသာ</span></a></li><li class="interlanguage-link interwiki-mzn mw-list-item"><a href="https://mzn.wikipedia.org/wiki/%D9%85%D8%A7%DA%98%D9%88%D9%84:File_link" title="ماژول:File link - Masanderani" lang="mzn" hreflang="mzn" data-title="ماژول:File link" data-language-autonym="مازِرونی" data-language-local-name="Masanderani" class="interlanguage-link-target"><span>مازِرونی</span></a></li><li class="interlanguage-link interwiki-ne mw-list-item"><a href="https://ne.wikipedia.org/wiki/%E0%A4%AE%E0%A5%8B%E0%A4%A1%E0%A5%8D%E0%A4%AF%E0%A5%81%E0%A4%B2:File_link" title="मोड्युल:File link - Nepaleg" lang="ne" hreflang="ne" data-title="मोड्युल:File link" data-language-autonym="नेपाली" data-language-local-name="Nepaleg" class="interlanguage-link-target"><span>नेपाली</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Module:File_link" title="Module:File link - Iseldireg" lang="nl" hreflang="nl" data-title="Module:File link" data-language-autonym="Nederlands" data-language-local-name="Iseldireg" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-nn mw-list-item"><a href="https://nn.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Norwyeg Nynorsk" lang="nn" hreflang="nn" data-title="Modul:File link" data-language-autonym="Norsk nynorsk" data-language-local-name="Norwyeg Nynorsk" class="interlanguage-link-target"><span>Norsk nynorsk</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Norwyeg Bokmål" lang="nb" hreflang="nb" data-title="Modul:File link" data-language-autonym="Norsk bokmål" data-language-local-name="Norwyeg Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%AE%E0%AC%A1%E0%AD%8D%E0%AD%9F%E0%AD%81%E0%AC%B2:File_link" title="ମଡ୍ୟୁଲ:File link - Odia" lang="or" hreflang="or" data-title="ମଡ୍ୟୁଲ:File link" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="Odia" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-pag mw-list-item"><a href="https://pag.wikipedia.org/wiki/Module:File_link" title="Module:File link - Pangasineg" lang="pag" hreflang="pag" data-title="Module:File link" data-language-autonym="Pangasinan" data-language-local-name="Pangasineg" class="interlanguage-link-target"><span>Pangasinan</span></a></li><li class="interlanguage-link interwiki-pam mw-list-item"><a href="https://pam.wikipedia.org/wiki/Module:File_link" title="Module:File link - Pampanga" lang="pam" hreflang="pam" data-title="Module:File link" data-language-autonym="Kapampangan" data-language-local-name="Pampanga" class="interlanguage-link-target"><span>Kapampangan</span></a></li><li class="interlanguage-link interwiki-ps mw-list-item"><a href="https://ps.wikipedia.org/wiki/Module:File_link" title="Module:File link - Pashto" lang="ps" hreflang="ps" data-title="Module:File link" data-language-autonym="پښتو" data-language-local-name="Pashto" class="interlanguage-link-target"><span>پښتو</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/M%C3%B3dulo:Link_de_arquivo" title="Módulo:Link de arquivo - Portiwgaleg" lang="pt" hreflang="pt" data-title="Módulo:Link de arquivo" data-language-autonym="Português" data-language-local-name="Portiwgaleg" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-rn mw-list-item"><a href="https://rn.wikipedia.org/wiki/Module:File_link" title="Module:File link - Rwndi" lang="rn" hreflang="rn" data-title="Module:File link" data-language-autonym="Ikirundi" data-language-local-name="Rwndi" class="interlanguage-link-target"><span>Ikirundi</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Rwmaneg" lang="ro" hreflang="ro" data-title="Modul:File link" data-language-autonym="Română" data-language-local-name="Rwmaneg" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Модуль:File link - Rwseg" lang="ru" hreflang="ru" data-title="Модуль:File link" data-language-autonym="Русский" data-language-local-name="Rwseg" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sa mw-list-item"><a href="https://sa.wikipedia.org/wiki/%E0%A4%AA%E0%A4%9F%E0%A4%B2%E0%A4%AE%E0%A5%8D:File_link" title="पटलम्:File link - Sansgrit" lang="sa" hreflang="sa" data-title="पटलम्:File link" data-language-autonym="संस्कृतम्" data-language-local-name="Sansgrit" class="interlanguage-link-target"><span>संस्कृतम्</span></a></li><li class="interlanguage-link interwiki-sco mw-list-item"><a href="https://sco.wikipedia.org/wiki/Module:File_link" title="Module:File link - Sgoteg" lang="sco" hreflang="sco" data-title="Module:File link" data-language-autonym="Scots" data-language-local-name="Sgoteg" class="interlanguage-link-target"><span>Scots</span></a></li><li class="interlanguage-link interwiki-sd mw-list-item"><a href="https://sd.wikipedia.org/wiki/%D9%85%D8%A7%DA%8A%D9%8A%D9%88%D9%84:File_link" title="ماڊيول:File link - Sindhi" lang="sd" hreflang="sd" data-title="ماڊيول:File link" data-language-autonym="سنڌي" data-language-local-name="Sindhi" class="interlanguage-link-target"><span>سنڌي</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Serbo-Croateg" lang="sh" hreflang="sh" data-title="Modul:File link" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="Serbo-Croateg" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-shn mw-list-item"><a href="https://shn.wikipedia.org/wiki/%E1%80%99%E1%80%B1%E1%82%83%E1%82%87%E1%81%B5%E1%80%BB%E1%80%B0%E1%80%B8:File_link" title="မေႃႇၵျူး:File link - Shan" lang="shn" hreflang="shn" data-title="မေႃႇၵျူး:File link" data-language-autonym="ၽႃႇသႃႇတႆး " data-language-local-name="Shan" class="interlanguage-link-target"><span>ၽႃႇသႃႇတႆး </span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/Module:File_link" title="Module:File link - Sinhaleg" lang="si" hreflang="si" data-title="Module:File link" data-language-autonym="සිංහල" data-language-local-name="Sinhaleg" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Module:File_link" title="Module:File link - Simple English" lang="en-simple" hreflang="en-simple" data-title="Module:File link" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Slofaceg" lang="sk" hreflang="sk" data-title="Modul:File link" data-language-autonym="Slovenčina" data-language-local-name="Slofaceg" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://sl.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Slofeneg" lang="sl" hreflang="sl" data-title="Modul:File link" data-language-autonym="Slovenščina" data-language-local-name="Slofeneg" class="interlanguage-link-target"><span>Slovenščina</span></a></li><li class="interlanguage-link interwiki-so mw-list-item"><a href="https://so.wikipedia.org/wiki/Module:File_link" title="Module:File link - Somaleg" lang="so" hreflang="so" data-title="Module:File link" data-language-autonym="Soomaaliga" data-language-local-name="Somaleg" class="interlanguage-link-target"><span>Soomaaliga</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:File_link" title="Модул:File link - Serbeg" lang="sr" hreflang="sr" data-title="Модул:File link" data-language-autonym="Српски / srpski" data-language-local-name="Serbeg" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-su mw-list-item"><a href="https://su.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Swndaneg" lang="su" hreflang="su" data-title="Modul:File link" data-language-autonym="Sunda" data-language-local-name="Swndaneg" class="interlanguage-link-target"><span>Sunda</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/Module:File_link" title="Module:File link - Tamileg" lang="ta" hreflang="ta" data-title="Module:File link" data-language-autonym="தமிழ்" data-language-local-name="Tamileg" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-tcy mw-list-item"><a href="https://tcy.wikipedia.org/wiki/%E0%B2%AE%E0%B3%8B%E0%B2%A1%E0%B3%8D%E0%B2%AF%E0%B3%82%E0%B2%B2%E0%B3%8D:File_link" title="ಮೋಡ್ಯೂಲ್:File link - Tulu" lang="tcy" hreflang="tcy" data-title="ಮೋಡ್ಯೂಲ್:File link" data-language-autonym="ತುಳು" data-language-local-name="Tulu" class="interlanguage-link-target"><span>ತುಳು</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%AE%E0%B0%BE%E0%B0%A1%E0%B1%8D%E0%B0%AF%E0%B1%82%E0%B0%B2%E0%B1%8D:File_link" title="మాడ్యూల్:File link - Telugu" lang="te" hreflang="te" data-title="మాడ్యూల్:File link" data-language-autonym="తెలుగు" data-language-local-name="Telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-tg mw-list-item"><a href="https://tg.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:File_link" title="Модул:File link - Tajiceg" lang="tg" hreflang="tg" data-title="Модул:File link" data-language-autonym="Тоҷикӣ" data-language-local-name="Tajiceg" class="interlanguage-link-target"><span>Тоҷикӣ</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A1%E0%B8%AD%E0%B8%94%E0%B8%B9%E0%B8%A5:File_link" title="มอดูล:File link - Thai" lang="th" hreflang="th" data-title="มอดูล:File link" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tl mw-list-item"><a href="https://tl.wikipedia.org/wiki/Module:File_link" title="Module:File link - Tagalog" lang="tl" hreflang="tl" data-title="Module:File link" data-language-autonym="Tagalog" data-language-local-name="Tagalog" class="interlanguage-link-target"><span>Tagalog</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Mod%C3%BCl:File_link" title="Modül:File link - Tyrceg" lang="tr" hreflang="tr" data-title="Modül:File link" data-language-autonym="Türkçe" data-language-local-name="Tyrceg" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-tum mw-list-item"><a href="https://tum.wikipedia.org/wiki/Module:File_link" title="Module:File link - Twmbwca" lang="tum" hreflang="tum" data-title="Module:File link" data-language-autonym="ChiTumbuka" data-language-local-name="Twmbwca" class="interlanguage-link-target"><span>ChiTumbuka</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:File_link" title="Модуль:File link - Wcreineg" lang="uk" hreflang="uk" data-title="Модуль:File link" data-language-autonym="Українська" data-language-local-name="Wcreineg" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D9%85%D8%A7%DA%88%DB%8C%D9%88%D9%84:File_link" title="ماڈیول:File link - Wrdw" lang="ur" hreflang="ur" data-title="ماڈیول:File link" data-language-autonym="اردو" data-language-local-name="Wrdw" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-uz mw-list-item"><a href="https://uz.wikipedia.org/wiki/Modul:File_link" title="Modul:File link - Wsbeceg" lang="uz" hreflang="uz" data-title="Modul:File link" data-language-autonym="Oʻzbekcha / ўзбекча" data-language-local-name="Wsbeceg" class="interlanguage-link-target"><span>Oʻzbekcha / ўзбекча</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/M%C3%B4_%C4%91un:File_link" title="Mô đun:File link - Fietnameg" lang="vi" hreflang="vi" data-title="Mô đun:File link" data-language-autonym="Tiếng Việt" data-language-local-name="Fietnameg" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-war mw-list-item"><a href="https://war.wikipedia.org/wiki/Module:File_link" title="Module:File link - Winarayeg" lang="war" hreflang="war" data-title="Module:File link" data-language-autonym="Winaray" data-language-local-name="Winarayeg" class="interlanguage-link-target"><span>Winaray</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/%E6%A8%A1%E5%9D%97:File_link" title="模块:File link - Wu Tsieineaidd" lang="wuu" hreflang="wuu" data-title="模块:File link" data-language-autonym="吴语" data-language-local-name="Wu Tsieineaidd" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-xmf mw-list-item"><a href="https://xmf.wikipedia.org/wiki/%E1%83%9B%E1%83%9D%E1%83%93%E1%83%A3%E1%83%9A%E1%83%98:File_link" title="მოდული:File link - Mingrelian" lang="xmf" hreflang="xmf" data-title="მოდული:File link" data-language-autonym="მარგალური" data-language-local-name="Mingrelian" class="interlanguage-link-target"><span>მარგალური</span></a></li><li class="interlanguage-link interwiki-yo mw-list-item"><a href="https://yo.wikipedia.org/wiki/Module:File_link" title="Module:File link - Iorwba" lang="yo" hreflang="yo" data-title="Module:File link" data-language-autonym="Yorùbá" data-language-local-name="Iorwba" class="interlanguage-link-target"><span>Yorùbá</span></a></li><li class="interlanguage-link interwiki-zgh mw-list-item"><a href="https://zgh.wikipedia.org/wiki/Module:File_link" title="Module:File link - Tamaseit Moroco Safonol" lang="zgh" hreflang="zgh" data-title="Module:File link" data-language-autonym="ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ" data-language-local-name="Tamaseit Moroco Safonol" class="interlanguage-link-target"><span>ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Module:File_link" title="Module:File link - Tsieinëeg" lang="zh" hreflang="zh" data-title="Module:File link" data-language-autonym="中文" data-language-local-name="Tsieinëeg" class="interlanguage-link-target"><span>中文</span></a></li><li class="interlanguage-link interwiki-zh-classical mw-list-item"><a href="https://zh-classical.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:File_link" title="模組:File link - Literary Chinese" lang="lzh" hreflang="lzh" data-title="模組:File link" data-language-autonym="文言" data-language-local-name="Literary Chinese" class="interlanguage-link-target"><span>文言</span></a></li><li class="interlanguage-link interwiki-zh-min-nan mw-list-item"><a href="https://zh-min-nan.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:File_link" title="模組:File link - Minnan" lang="nan" hreflang="nan" data-title="模組:File link" data-language-autonym="閩南語 / Bân-lâm-gú" data-language-local-name="Minnan" class="interlanguage-link-target"><span>閩南語 / Bân-lâm-gú</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:File_link" title="模組:File link - Cantoneeg" lang="yue" hreflang="yue" data-title="模組:File link" data-language-autonym="粵語" data-language-local-name="Cantoneeg" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-zu mw-list-item"><a href="https://zu.wikipedia.org/wiki/Module:File_link" title="Module:File link - Swlw" lang="zu" hreflang="zu" data-title="Module:File link" data-language-autonym="IsiZulu" data-language-local-name="Swlw" class="interlanguage-link-target"><span>IsiZulu</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q17121673#sitelinks-wikipedia" title="Golygu dolenni rhyngwici" class="wbc-editpage">Golygu dolenni</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="Parthau"> <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/Modiwl:File_link" title="Gweld tudalen y modiwl [c]" accesskey="c"><span>Modiwl</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Sgwrs_modiwl:File_link&amp;action=edit&amp;redlink=1" rel="discussion" class="new" title="Sgwrsio am y dudalen (dim tudalen ar gael) [t]" accesskey="t"><span>Sgwrs</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="Newid amrywiad iaith" > <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="Golygon"> <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/Modiwl:File_link"><span>Darllen</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modiwl:File_link&amp;action=edit" title="Golygu cod ffynhonnell y dudalen hon [e]" accesskey="e"><span>Golygu cod</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modiwl:File_link&amp;action=history" title="Fersiynau cynt o&#039;r dudalen hon. [h]" accesskey="h"><span>Gweld hanes</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Offer tudalen"> <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="Blwch offer" > <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">Blwch offer</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">Blwch offer</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">symud i&#039;r bar ochr</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">cuddio</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Rhagor o opsiynau" > <div class="vector-menu-heading"> Gweithredoedd </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/Modiwl:File_link"><span>Darllen</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modiwl:File_link&amp;action=edit" title="Golygu cod ffynhonnell y dudalen hon [e]" accesskey="e"><span>Golygu cod</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modiwl:File_link&amp;action=history"><span>Gweld hanes</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Cyffredinol </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Arbennig:WhatLinksHere/Modiwl:File_link" title="Rhestr o bob tudalen sy&#039;n cysylltu â hon [j]" accesskey="j"><span>Beth sy'n cysylltu yma</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Arbennig:RecentChangesLinked/Modiwl:File_link" rel="nofollow" title="Newidiadau diweddar i dudalennau sydd yn cysylltu â hon [k]" accesskey="k"><span>Newidiadau perthnasol</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Arbennig:SpecialPages" title="Rhestr o&#039;r holl dudalennau arbennig [q]" accesskey="q"><span>Tudalennau arbennig</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Modiwl:File_link&amp;oldid=1710464" title="Dolen barhaol i&#039;r fersiwn hwn y dudalen hon"><span>Dolen barhaol</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Modiwl:File_link&amp;action=info" title="Mwy o wybodaeth am y dudalen hon"><span>Gwybodaeth am y dudalen</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Arbennig:UrlShortener&amp;url=https%3A%2F%2Fcy.wikipedia.org%2Fwiki%2FModiwl%3AFile_link"><span>Cael URL byr</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Arbennig:QrCode&amp;url=https%3A%2F%2Fcy.wikipedia.org%2Fwiki%2FModiwl%3AFile_link"><span>Lawrlwytho cod 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"> Argraffu / allforio </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=Arbennig:DownloadAsPdf&amp;page=Modiwl%3AFile_link&amp;action=show-download-screen"><span>Lawrlwytho fel PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Cynhyrchwch fersiwn o&#039;r dudalen yn barod at ei hargraffu [p]" accesskey="p"><span>Fersiwn argraffu</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"> Mewn prosiectau eraill </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-meta mw-list-item"><a href="https://meta.wikimedia.org/wiki/Module:File_link" hreflang="en"><span>Meta-Wici</span></a></li><li class="wb-otherproject-link wb-otherproject-outreach mw-list-item"><a href="https://outreach.wikimedia.org/wiki/Module:File_link" hreflang="en"><span>Wicimedia Allgymorth</span></a></li><li class="wb-otherproject-link wb-otherproject-sources mw-list-item"><a href="https://wikisource.org/wiki/Module:File_link" hreflang="en"><span>Wicidestun Amlieithog</span></a></li><li class="wb-otherproject-link wb-otherproject-species mw-list-item"><a href="https://species.wikimedia.org/wiki/Module:File_link" hreflang="en"><span>Wicifywyd</span></a></li><li class="wb-otherproject-link wb-otherproject-wikidata mw-list-item"><a href="https://www.wikidata.org/wiki/Module:File_link" hreflang="en"><span>Wicidata</span></a></li><li class="wb-otherproject-link wb-otherproject-wikifunctions mw-list-item"><a href="https://www.wikifunctions.org/wiki/Module:File_link" hreflang="en"><span>Wikifunctions</span></a></li><li class="wb-otherproject-link wb-otherproject-wikimania mw-list-item"><a href="https://wikimania.wikimedia.org/wiki/Module:File_link" hreflang="en"><span>Wicimania</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q17121673" title="Cysylltu i eitem ystorfa gysylltiedig [g]" accesskey="g"><span>Eitem Wicidata</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="Offer tudalen"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Gwedd"> <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">Gwedd</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">symud i&#039;r bar ochr</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">cuddio</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">Oddi ar Wicipedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="cy" dir="ltr"><p>This module is used to construct wikitext links to files, using a fluent Lua interface. This is done by creating a <var>fileLink</var> object, which has various methods corresponding to different file link parameters. The module is used from other Lua modules, and cannot be used directly from wiki pages. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Usage">Usage</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-1" title="Edit section&#039;s source code: Usage"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Creating_the_object">Creating the object</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-2" title="Edit section&#039;s source code: Creating the object"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>First, you need to import the module. </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">fileLink</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">&#39;Module:File link&#39;</span><span class="p">)</span> </pre></div> <p>Then, create the object using the <code>fileLink.new</code> function. The first parameter is the filename, and is optional. </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">obj</span> <span class="o">=</span> <span class="n">fileLink</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="s1">&#39;Example.png&#39;</span><span class="p">)</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Basic_usage">Basic usage</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-3" title="Edit section&#039;s source code: Basic usage"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You can add parameters to the file link using the fileLink object's methods. (See <a href="#Methods">the Methods section</a> below for the full list.) </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">width</span><span class="p">(</span><span class="mi">220</span><span class="p">)</span> <span class="n">obj</span><span class="p">:</span><span class="n">alt</span><span class="p">(</span><span class="s1">&#39;The alt text&#39;</span><span class="p">)</span> <span class="n">obj</span><span class="p">:</span><span class="n">caption</span><span class="p">(</span><span class="s1">&#39;The caption.&#39;</span><span class="p">)</span> </pre></div> <p>You can then produce the link wikitext using the object's <code>render</code> method. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">render</span><span class="p">()</span> </pre></div> <p>This will produce the following wikitext: </p> <pre>[[File:Example.png|220px|alt=The alt text|The caption.]] </pre> <div class="mw-heading mw-heading3"><h3 id="Call-chaining">Call-chaining</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-4" title="Edit section&#039;s source code: Call-chaining"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>All the object's methods apart from the <code>render</code> method return the object itself, so can be used to call-chain. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">width</span><span class="p">(</span><span class="mi">220</span><span class="p">):</span><span class="n">alt</span><span class="p">(</span><span class="s1">&#39;The alt text&#39;</span><span class="p">):</span><span class="n">caption</span><span class="p">(</span><span class="s1">&#39;The caption.&#39;</span><span class="p">):</span><span class="n">render</span><span class="p">()</span> </pre></div> <p>Apart from the <code>name</code> method, all of the object's methods support nil as an input, so call-chaining can be performed with variables whose value is unknown. However, an error will be raised if the input is of an unsupported type for that method. Please see <a href="#Methods">the Methods section</a> for supported input types for each method. Passing nil to a method will overwrite any existing values. </p> <div class="mw-heading mw-heading3"><h3 id="Use_with_tostring">Use with tostring</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-5" title="Edit section&#039;s source code: Use with tostring"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Instead of using the <code>render</code> method, you can call <code>tostring</code> on the object to create the link wikitext. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">width</span><span class="p">(</span><span class="mi">220</span><span class="p">):</span><span class="n">alt</span><span class="p">(</span><span class="s1">&#39;The alt text&#39;</span><span class="p">):</span><span class="n">caption</span><span class="p">(</span><span class="s1">&#39;The caption.&#39;</span><span class="p">)</span> <span class="nb">tostring</span><span class="p">(</span><span class="n">obj</span><span class="p">)</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Methods">Methods</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-6" title="Edit section&#039;s source code: Methods"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Name">Name</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-7" title="Edit section&#039;s source code: Name"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">name</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Sets the filename. <var>s</var> must be a string. Nil values are not accepted, as every file link requires a filename. The filename can also be set in the first parameter to <code>fileLink.new</code>, although in that case it is optional. </p> <div class="mw-heading mw-heading3"><h3 id="Format">Format</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-8" title="Edit section&#039;s source code: Format"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">filename</span><span class="p">)</span> </pre></div> <p>Sets the display format. <var>s</var> must either be nil, or one of the strings 'thumb', 'thumbnail', 'frame', 'framed', or 'frameless'. To see the effect of each of these values, see the <a href="https://www.mediawiki.org/wiki/Help:Images#Format" class="extiw" title="mw:Help:Images">images help page on mediawiki.org</a>. Note that the <i>border</i> format is not set with this method, but with the <a href="#Border">border method</a>. (This is because the border option can be set independently of the values that can be set with this method, for example in the code <code>[[File:Example.png|frameless|border|caption]]</code>.) </p><p>The <var>filename</var> variable is an optional variable that can be used to set the filename for thumbnails. The filename specified will be used instead of the automatically generated thumbnail. This option doesn't have any effect on the other format options. </p> <div class="mw-heading mw-heading3"><h3 id="Border">Border</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-9" title="Edit section&#039;s source code: Border"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">border</span><span class="p">(</span><span class="n">hasBorder</span><span class="p">)</span> </pre></div> <p>Sets a border for images. <var>hasBorder</var> must either be nil, or a boolean value. A border will be set if <var>hasBorder</var> is true. To see the effect of this option, see the <a href="https://www.mediawiki.org/wiki/Help:Images#Format" class="extiw" title="mw:Help:Images">images help page on mediawiki.org</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Width">Width</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-10" title="Edit section&#039;s source code: Width"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">width</span><span class="p">(</span><span class="n">px</span><span class="p">)</span> </pre></div> <p>Sets a width for the file in pixels. <var>px</var> must either be nil or a number value. Width can be used in conjunction with the <a href="#Height">height method</a>, but will produce an error if used when the <i>upright</i> option has been set by the <a href="#Upright">upright method</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Height">Height</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-11" title="Edit section&#039;s source code: Height"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">height</span><span class="p">(</span><span class="n">px</span><span class="p">)</span> </pre></div> <p>Sets a height for the file in pixels. <var>px</var> must either be nil or a number value. Height can be used in conjunction with the <a href="#Width">width method</a>, but will produce an error if used when the <i>upright</i> option has been set by the <a href="#Upright">upright method</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Upright">Upright</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-12" title="Edit section&#039;s source code: Upright"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">upright</span><span class="p">(</span><span class="n">isUpright</span><span class="p">,</span> <span class="n">factor</span><span class="p">)</span> </pre></div> <p>Sets the <i>upright</i> option, used for images that are taller than they are wide. <var>isUpright</var> must either be nil, or a boolean value. The upright option will be set if <var>isUpright</var> is true. <var>factor</var> provides an optional conversion factor for the upright option; the factor is the image's width divided by its height. If no factor is specified, the MediaWiki software uses the default of 0.75. <var>factor</var> must be either nil or a number value. If a width or height has been set with the <a href="#Width">width</a> or <a href="#Height">height</a> methods, then setting the upright value will result in an error. </p> <div class="mw-heading mw-heading3"><h3 id="ResetSize">ResetSize</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-13" title="Edit section&#039;s source code: ResetSize"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">resetSize</span><span class="p">()</span> </pre></div> <p>This method clears any size-related data the fileLink object is holding. This includes width, height, the upright option, and any upright factor. </p> <div class="mw-heading mw-heading3"><h3 id="Location">Location</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-14" title="Edit section&#039;s source code: Location"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">location</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Sets the <i>location</i> option. This is also known as the <i>horizontal alignment</i> option. <var>s</var> must either be nil, or one of the strings 'right', 'left', 'center', or 'none'. To see the effect of each of these values, see the <a href="https://www.mediawiki.org/wiki/Help:Images#Horizontal_alignment" class="extiw" title="mw:Help:Images">images help page on mediawiki.org</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Alignment">Alignment</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-15" title="Edit section&#039;s source code: Alignment"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">alignment</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Sets the <i>alignment</i> option. This is also known as the <i>vertical alignment</i> option. <var>s</var> must either be nil, or one of the strings 'baseline', 'middle', 'sub', 'super', 'text-top', 'text-bottom', 'top', or 'bottom'. To see the effect of each of these values, see the <a href="https://www.mediawiki.org/wiki/Help:Images#Vertical_alignment" class="extiw" title="mw:Help:Images">images help page on mediawiki.org</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Link">Link</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-16" title="Edit section&#039;s source code: Link"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">link</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Sets a link target for the file, instead of the default target of the file description page. <var>s</var> must either be nil or a string value. The link can be a wiki page or a URL, although the exact formatting of the string is not checked by this module. To specify no link, use the blank string: <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">obj</span><span class="p">:</span><span class="n">link</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">)</span></code>. </p> <div class="mw-heading mw-heading3"><h3 id="Alt">Alt</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-17" title="Edit section&#039;s source code: Alt"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">alt</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Sets <a href="/w/index.php?title=Wicipedia:ALT&amp;action=edit&amp;redlink=1" class="new" title="Wicipedia:ALT (dim tudalen ar gael)">alt text</a> for the file. <var>s</var> must either be nil or a string value. </p> <div class="mw-heading mw-heading3"><h3 id="Page">Page</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-18" title="Edit section&#039;s source code: Page"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">page</span><span class="p">(</span><span class="n">num</span><span class="p">)</span> </pre></div> <p>Sets a page number for multi-paged files such as PDFs. <var>num</var> must either be nil or a number. </p> <div class="mw-heading mw-heading3"><h3 id="Class">Class</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-19" title="Edit section&#039;s source code: Class"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">class</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Adds a <code>class</code> parameter to image links. The MediaWiki software adds this parameter to the <code>class="..."</code> attribute of the image's <code>&lt;img /&gt;</code> element when the page is rendered into HTML. <var>s</var> must either be nil or a string value. </p> <div class="mw-heading mw-heading3"><h3 id="Lang">Lang</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-20" title="Edit section&#039;s source code: Lang"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">lang</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Adds a language attribute to specify what language to render the file in. <var>s</var> must either be nil or a string value. This module does not check whether the language tag is valid or not. </p> <div class="mw-heading mw-heading3"><h3 id="StartTime">StartTime</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-21" title="Edit section&#039;s source code: StartTime"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">startTime</span><span class="p">(</span><span class="n">time</span><span class="p">)</span> </pre></div> <p>Specifies a start time for audio and video files. <var>time</var> must be nil, a number, or a string value. Numbers are interpreted as the number of seconds since the start of the file. Strings can be in the format "<i>mm</i>:<i>ss</i>" to specify the number of minutes and seconds of a file, or "<i>ss</i>" to specify the number of seconds since the start of the file. </p> <div class="mw-heading mw-heading3"><h3 id="EndTime">EndTime</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-22" title="Edit section&#039;s source code: EndTime"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">endTime</span><span class="p">(</span><span class="n">time</span><span class="p">)</span> </pre></div> <p>Specifies an end time for audio and video files. <var>time</var> must be nil, a number, or a string value. Numbers are interpreted as the number of seconds since the start of the file. Strings can be in the format "<i>mm</i>:<i>ss</i>" to specify the number of minutes and seconds of a file, or "<i>ss</i>" to specify the number of seconds since the start of the file. </p> <div class="mw-heading mw-heading3"><h3 id="ThumbTime">ThumbTime</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-23" title="Edit section&#039;s source code: ThumbTime"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">thumbTime</span><span class="p">(</span><span class="n">time</span><span class="p">)</span> </pre></div> <p>Specifies the time to use to generate the thumbnail image for video files. <var>time</var> must be nil, a number, or a string value. Numbers are interpreted as the number of seconds since the start of the file. Strings can be in the format "<i>mm</i>:<i>ss</i>" to specify the number of minutes and seconds of a file, or "<i>ss</i>" to specify the number of seconds since the start of the file. </p> <div class="mw-heading mw-heading3"><h3 id="Caption">Caption</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-24" title="Edit section&#039;s source code: Caption"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">caption</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> </pre></div> <p>Sets a caption for the file. <var>s</var> must either be nil or a string value. </p> <div class="mw-heading mw-heading3"><h3 id="Render">Render</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Modiwl:File_link/doc&amp;action=edit&amp;section=T-25" title="Edit section&#039;s source code: Render"><span>golygu cod</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">obj</span><span class="p">:</span><span class="n">render</span><span class="p">()</span> </pre></div> <p>Renders the link wikitext. </p><p><br /> </p> <hr /><div class="mw-highlight mw-highlight-lang-lua mw-content-ltr mw-highlight-lines" dir="ltr"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos" data-line="1"></span></a><span class="c1">-- This module provides a library for formatting file wikilinks.</span> </span><span id="L-2"><a href="#L-2"><span class="linenos" data-line="2"></span></a> </span><span id="L-3"><a href="#L-3"><span class="linenos" data-line="3"></span></a><span class="kd">local</span> <span class="n">yesno</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">&#39;Module:Yesno&#39;</span><span class="p">)</span> </span><span id="L-4"><a href="#L-4"><span class="linenos" data-line="4"></span></a><span class="kd">local</span> <span class="n">checkType</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">&#39;libraryUtil&#39;</span><span class="p">).</span><span class="n">checkType</span> </span><span id="L-5"><a href="#L-5"><span class="linenos" data-line="5"></span></a> </span><span id="L-6"><a href="#L-6"><span class="linenos" data-line="6"></span></a><span class="kd">local</span> <span class="n">p</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-7"><a href="#L-7"><span class="linenos" data-line="7"></span></a> </span><span id="L-8"><a href="#L-8"><span class="linenos" data-line="8"></span></a><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><span id="L-9"><a href="#L-9"><span class="linenos" data-line="9"></span></a> <span class="n">checkType</span><span class="p">(</span><span class="s1">&#39;_main&#39;</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="s1">&#39;table&#39;</span><span class="p">)</span> </span><span id="L-10"><a href="#L-10"><span class="linenos" data-line="10"></span></a> </span><span id="L-11"><a href="#L-11"><span class="linenos" data-line="11"></span></a> <span class="c1">-- This is basically libraryUtil.checkTypeForNamedArg, but we are rolling our</span> </span><span id="L-12"><a href="#L-12"><span class="linenos" data-line="12"></span></a> <span class="c1">-- own function to get the right error level.</span> </span><span id="L-13"><a href="#L-13"><span class="linenos" data-line="13"></span></a> <span class="kd">local</span> <span class="kr">function</span> <span class="nf">checkArg</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">val</span><span class="p">,</span> <span class="n">level</span><span class="p">)</span> </span><span id="L-14"><a href="#L-14"><span class="linenos" data-line="14"></span></a> <span class="kr">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">val</span><span class="p">)</span> <span class="o">~=</span> <span class="s1">&#39;string&#39;</span> <span class="kr">then</span> </span><span id="L-15"><a href="#L-15"><span class="linenos" data-line="15"></span></a> <span class="nb">error</span><span class="p">(</span><span class="nb">string.format</span><span class="p">(</span> </span><span id="L-16"><a href="#L-16"><span class="linenos" data-line="16"></span></a> <span class="s2">&quot;type error in &#39;%s&#39; parameter of &#39;_main&#39; (expected string, got %s)&quot;</span><span class="p">,</span> </span><span id="L-17"><a href="#L-17"><span class="linenos" data-line="17"></span></a> <span class="n">key</span><span class="p">,</span> <span class="nb">type</span><span class="p">(</span><span class="n">val</span><span class="p">)</span> </span><span id="L-18"><a href="#L-18"><span class="linenos" data-line="18"></span></a> <span class="p">),</span> <span class="n">level</span><span class="p">)</span> </span><span id="L-19"><a href="#L-19"><span class="linenos" data-line="19"></span></a> <span class="kr">end</span> </span><span id="L-20"><a href="#L-20"><span class="linenos" data-line="20"></span></a> <span class="kr">end</span> </span><span id="L-21"><a href="#L-21"><span class="linenos" data-line="21"></span></a> </span><span id="L-22"><a href="#L-22"><span class="linenos" data-line="22"></span></a> <span class="kd">local</span> <span class="n">ret</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-23"><a href="#L-23"><span class="linenos" data-line="23"></span></a> </span><span id="L-24"><a href="#L-24"><span class="linenos" data-line="24"></span></a> <span class="c1">-- Adds a positional parameter to the buffer.</span> </span><span id="L-25"><a href="#L-25"><span class="linenos" data-line="25"></span></a> <span class="kd">local</span> <span class="kr">function</span> <span class="nf">addPositional</span><span class="p">(</span><span class="n">key</span><span class="p">)</span> </span><span id="L-26"><a href="#L-26"><span class="linenos" data-line="26"></span></a> <span class="kd">local</span> <span class="n">val</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> </span><span id="L-27"><a href="#L-27"><span class="linenos" data-line="27"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">val</span> <span class="kr">then</span> </span><span id="L-28"><a href="#L-28"><span class="linenos" data-line="28"></span></a> <span class="kr">return</span> <span class="kc">nil</span> </span><span id="L-29"><a href="#L-29"><span class="linenos" data-line="29"></span></a> <span class="kr">end</span> </span><span id="L-30"><a href="#L-30"><span class="linenos" data-line="30"></span></a> <span class="n">checkArg</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">val</span><span class="p">,</span> <span class="mi">4</span><span class="p">)</span> </span><span id="L-31"><a href="#L-31"><span class="linenos" data-line="31"></span></a> <span class="n">ret</span><span class="p">[</span><span class="o">#</span><span class="n">ret</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="n">val</span> </span><span id="L-32"><a href="#L-32"><span class="linenos" data-line="32"></span></a> <span class="kr">end</span> </span><span id="L-33"><a href="#L-33"><span class="linenos" data-line="33"></span></a> </span><span id="L-34"><a href="#L-34"><span class="linenos" data-line="34"></span></a> <span class="c1">-- Adds a named parameter to the buffer. We assume that the parameter name</span> </span><span id="L-35"><a href="#L-35"><span class="linenos" data-line="35"></span></a> <span class="c1">-- is the same as the argument key.</span> </span><span id="L-36"><a href="#L-36"><span class="linenos" data-line="36"></span></a> <span class="kd">local</span> <span class="kr">function</span> <span class="nf">addNamed</span><span class="p">(</span><span class="n">key</span><span class="p">)</span> </span><span id="L-37"><a href="#L-37"><span class="linenos" data-line="37"></span></a> <span class="kd">local</span> <span class="n">val</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> </span><span id="L-38"><a href="#L-38"><span class="linenos" data-line="38"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">val</span> <span class="kr">then</span> </span><span id="L-39"><a href="#L-39"><span class="linenos" data-line="39"></span></a> <span class="kr">return</span> <span class="kc">nil</span> </span><span id="L-40"><a href="#L-40"><span class="linenos" data-line="40"></span></a> <span class="kr">end</span> </span><span id="L-41"><a href="#L-41"><span class="linenos" data-line="41"></span></a> <span class="n">checkArg</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">val</span><span class="p">,</span> <span class="mi">4</span><span class="p">)</span> </span><span id="L-42"><a href="#L-42"><span class="linenos" data-line="42"></span></a> <span class="n">ret</span><span class="p">[</span><span class="o">#</span><span class="n">ret</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="n">key</span> <span class="o">..</span> <span class="s1">&#39;=&#39;</span> <span class="o">..</span> <span class="n">val</span> </span><span id="L-43"><a href="#L-43"><span class="linenos" data-line="43"></span></a> <span class="kr">end</span> </span><span id="L-44"><a href="#L-44"><span class="linenos" data-line="44"></span></a> </span><span id="L-45"><a href="#L-45"><span class="linenos" data-line="45"></span></a> <span class="c1">-- Filename</span> </span><span id="L-46"><a href="#L-46"><span class="linenos" data-line="46"></span></a> <span class="n">checkArg</span><span class="p">(</span><span class="s1">&#39;file&#39;</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">file</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span> </span><span id="L-47"><a href="#L-47"><span class="linenos" data-line="47"></span></a> <span class="n">ret</span><span class="p">[</span><span class="o">#</span><span class="n">ret</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;File:&#39;</span> <span class="o">..</span> <span class="n">args</span><span class="p">.</span><span class="n">file</span> </span><span id="L-48"><a href="#L-48"><span class="linenos" data-line="48"></span></a> </span><span id="L-49"><a href="#L-49"><span class="linenos" data-line="49"></span></a> <span class="c1">-- Format</span> </span><span id="L-50"><a href="#L-50"><span class="linenos" data-line="50"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">format</span> <span class="kr">then</span> </span><span id="L-51"><a href="#L-51"><span class="linenos" data-line="51"></span></a> <span class="n">checkArg</span><span class="p">(</span><span class="s1">&#39;format&#39;</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">format</span><span class="p">)</span> </span><span id="L-52"><a href="#L-52"><span class="linenos" data-line="52"></span></a> <span class="kr">if</span> <span class="n">args</span><span class="p">.</span><span class="n">formatfile</span> <span class="kr">then</span> </span><span id="L-53"><a href="#L-53"><span class="linenos" data-line="53"></span></a> <span class="n">checkArg</span><span class="p">(</span><span class="s1">&#39;formatfile&#39;</span><span class="p">,</span> <span class="n">args</span><span class="p">.</span><span class="n">formatfile</span><span class="p">)</span> </span><span id="L-54"><a href="#L-54"><span class="linenos" data-line="54"></span></a> <span class="n">ret</span><span class="p">[</span><span class="o">#</span><span class="n">ret</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">format</span> <span class="o">..</span> <span class="s1">&#39;=&#39;</span> <span class="o">..</span> <span class="n">args</span><span class="p">.</span><span class="n">formatfile</span> </span><span id="L-55"><a href="#L-55"><span class="linenos" data-line="55"></span></a> <span class="kr">else</span> </span><span id="L-56"><a href="#L-56"><span class="linenos" data-line="56"></span></a> <span class="n">ret</span><span class="p">[</span><span class="o">#</span><span class="n">ret</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="n">args</span><span class="p">.</span><span class="n">format</span> </span><span id="L-57"><a href="#L-57"><span class="linenos" data-line="57"></span></a> <span class="kr">end</span> </span><span id="L-58"><a href="#L-58"><span class="linenos" data-line="58"></span></a> <span class="kr">end</span> </span><span id="L-59"><a href="#L-59"><span class="linenos" data-line="59"></span></a> </span><span id="L-60"><a href="#L-60"><span class="linenos" data-line="60"></span></a> <span class="c1">-- Border</span> </span><span id="L-61"><a href="#L-61"><span class="linenos" data-line="61"></span></a> <span class="kr">if</span> <span class="n">yesno</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">border</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-62"><a href="#L-62"><span class="linenos" data-line="62"></span></a> <span class="n">ret</span><span class="p">[</span><span class="o">#</span><span class="n">ret</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;border&#39;</span> </span><span id="L-63"><a href="#L-63"><span class="linenos" data-line="63"></span></a> <span class="kr">end</span> </span><span id="L-64"><a href="#L-64"><span class="linenos" data-line="64"></span></a> </span><span id="L-65"><a href="#L-65"><span class="linenos" data-line="65"></span></a> <span class="n">addPositional</span><span class="p">(</span><span class="s1">&#39;location&#39;</span><span class="p">)</span> </span><span id="L-66"><a href="#L-66"><span class="linenos" data-line="66"></span></a> <span class="n">addPositional</span><span class="p">(</span><span class="s1">&#39;alignment&#39;</span><span class="p">)</span> </span><span id="L-67"><a href="#L-67"><span class="linenos" data-line="67"></span></a> <span class="n">addPositional</span><span class="p">(</span><span class="s1">&#39;size&#39;</span><span class="p">)</span> </span><span id="L-68"><a href="#L-68"><span class="linenos" data-line="68"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;upright&#39;</span><span class="p">)</span> </span><span id="L-69"><a href="#L-69"><span class="linenos" data-line="69"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;link&#39;</span><span class="p">)</span> </span><span id="L-70"><a href="#L-70"><span class="linenos" data-line="70"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;alt&#39;</span><span class="p">)</span> </span><span id="L-71"><a href="#L-71"><span class="linenos" data-line="71"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;page&#39;</span><span class="p">)</span> </span><span id="L-72"><a href="#L-72"><span class="linenos" data-line="72"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;class&#39;</span><span class="p">)</span> </span><span id="L-73"><a href="#L-73"><span class="linenos" data-line="73"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;lang&#39;</span><span class="p">)</span> </span><span id="L-74"><a href="#L-74"><span class="linenos" data-line="74"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;start&#39;</span><span class="p">)</span> </span><span id="L-75"><a href="#L-75"><span class="linenos" data-line="75"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;end&#39;</span><span class="p">)</span> </span><span id="L-76"><a href="#L-76"><span class="linenos" data-line="76"></span></a> <span class="n">addNamed</span><span class="p">(</span><span class="s1">&#39;thumbtime&#39;</span><span class="p">)</span> </span><span id="L-77"><a href="#L-77"><span class="linenos" data-line="77"></span></a> <span class="n">addPositional</span><span class="p">(</span><span class="s1">&#39;caption&#39;</span><span class="p">)</span> </span><span id="L-78"><a href="#L-78"><span class="linenos" data-line="78"></span></a> </span><span id="L-79"><a href="#L-79"><span class="linenos" data-line="79"></span></a> <span class="kr">return</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;[[%s]]&#39;</span><span class="p">,</span> <span class="nb">table.concat</span><span class="p">(</span><span class="n">ret</span><span class="p">,</span> <span class="s1">&#39;|&#39;</span><span class="p">))</span> </span><span id="L-80"><a href="#L-80"><span class="linenos" data-line="80"></span></a><span class="kr">end</span> </span><span id="L-81"><a href="#L-81"><span class="linenos" data-line="81"></span></a> </span><span id="L-82"><a href="#L-82"><span class="linenos" data-line="82"></span></a><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><span id="L-83"><a href="#L-83"><span class="linenos" data-line="83"></span></a> <span class="kd">local</span> <span class="n">origArgs</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">&#39;Module:Arguments&#39;</span><span class="p">).</span><span class="n">getArgs</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="p">{</span> </span><span id="L-84"><a href="#L-84"><span class="linenos" data-line="84"></span></a> <span class="n">wrappers</span> <span class="o">=</span> <span class="s1">&#39;Template:File link&#39;</span> </span><span id="L-85"><a href="#L-85"><span class="linenos" data-line="85"></span></a> <span class="p">})</span> </span><span id="L-86"><a href="#L-86"><span class="linenos" data-line="86"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">origArgs</span><span class="p">.</span><span class="n">file</span> <span class="kr">then</span> </span><span id="L-87"><a href="#L-87"><span class="linenos" data-line="87"></span></a> <span class="nb">error</span><span class="p">(</span><span class="s2">&quot;&#39;file&#39; parameter missing from [[Template:File link]]&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span> </span><span id="L-88"><a href="#L-88"><span class="linenos" data-line="88"></span></a> <span class="kr">end</span> </span><span id="L-89"><a href="#L-89"><span class="linenos" data-line="89"></span></a> </span><span id="L-90"><a href="#L-90"><span class="linenos" data-line="90"></span></a> <span class="c1">-- Copy the arguments that were passed to a new table to avoid looking up</span> </span><span id="L-91"><a href="#L-91"><span class="linenos" data-line="91"></span></a> <span class="c1">-- every possible parameter in the frame object.</span> </span><span id="L-92"><a href="#L-92"><span class="linenos" data-line="92"></span></a> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-93"><a href="#L-93"><span class="linenos" data-line="93"></span></a> <span class="kr">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">v</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="n">origArgs</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-94"><a href="#L-94"><span class="linenos" data-line="94"></span></a> <span class="c1">-- Make _BLANK a special argument to add a blank parameter. For use in</span> </span><span id="L-95"><a href="#L-95"><span class="linenos" data-line="95"></span></a> <span class="c1">-- conditional templates etc. it is useful for blank arguments to be</span> </span><span id="L-96"><a href="#L-96"><span class="linenos" data-line="96"></span></a> <span class="c1">-- ignored, but we still need a way to specify them so that we can do</span> </span><span id="L-97"><a href="#L-97"><span class="linenos" data-line="97"></span></a> <span class="c1">-- things like [[File:Example.png|link=]].</span> </span><span id="L-98"><a href="#L-98"><span class="linenos" data-line="98"></span></a> <span class="kr">if</span> <span class="n">v</span> <span class="o">==</span> <span class="s1">&#39;_BLANK&#39;</span> <span class="kr">then</span> </span><span id="L-99"><a href="#L-99"><span class="linenos" data-line="99"></span></a> <span class="n">v</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span> </span><span id="L-100"><a href="#L-100"><span class="linenos" data-line="100"></span></a> <span class="kr">end</span> </span><span id="L-101"><a href="#L-101"><span class="linenos" data-line="101"></span></a> <span class="n">args</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="o">=</span> <span class="n">v</span> </span><span id="L-102"><a href="#L-102"><span class="linenos" data-line="102"></span></a> <span class="kr">end</span> </span><span id="L-103"><a href="#L-103"><span class="linenos" data-line="103"></span></a> <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><span id="L-104"><a href="#L-104"><span class="linenos" data-line="104"></span></a><span class="kr">end</span> </span><span id="L-105"><a href="#L-105"><span class="linenos" data-line="105"></span></a> </span><span id="L-106"><a href="#L-106"><span class="linenos" data-line="106"></span></a><span class="kr">return</span> <span class="n">p</span> </span></pre></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐f69cdc8f6‐j7v4x Cached time: 20241124000353 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.081 seconds Real time usage: 1.591 seconds Preprocessor visited node count: 140/1000000 Post‐expand include size: 9177/2097152 bytes Template argument size: 15/2097152 bytes Highest expansion depth: 5/100 Expensive parser function count: 26/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 9129/5000000 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 1568.732 1 -total 100.00% 1568.732 1 Modiwl:File_link/doc 4.52% 70.835 1 Nodyn:Code --> </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="">Wedi dod o "<a dir="ltr" href="https://cy.wikipedia.org/w/index.php?title=Modiwl:File_link&amp;oldid=1710464">https://cy.wikipedia.org/w/index.php?title=Modiwl:File_link&amp;oldid=1710464</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"> <li id="footer-info-lastmod"> Golygwyd y dudalen hon ddiwethaf ar 31 Gorffennaf 2015, am 05:56.</li> <li id="footer-info-copyright">Mae'r testun ar gael o dan <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; gall telerau ychwanegol fod yn berthnasol. Gweler y <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Telerau Gwasanaeth</a> am fanylion.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Polisi preifatrwydd</a></li> <li id="footer-places-about"><a href="/wiki/Wicipedia:Yngl%C5%B7n_%C3%A2_Wicipedia">Ynglŷn â Wicipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wicipedia:Gwadiad_Cyffredinol">Gwadiadau</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Cod Ymddygiad</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Datblygwyr</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/cy.wikipedia.org">Ystadegau</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Datganiad cwcis</a></li> <li id="footer-places-mobileview"><a href="//cy.m.wikipedia.org/w/index.php?title=Modiwl:File_link&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Golwg symudol</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-j7v4x","wgBackendResponseTime":1793,"wgPageParseReport":{"limitreport":{"cputime":"0.081","walltime":"1.591","ppvisitednodes":{"value":140,"limit":1000000},"postexpandincludesize":{"value":9177,"limit":2097152},"templateargumentsize":{"value":15,"limit":2097152},"expansiondepth":{"value":5,"limit":100},"expensivefunctioncount":{"value":26,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":9129,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 1568.732 1 -total","100.00% 1568.732 1 Modiwl:File_link/doc"," 4.52% 70.835 1 Nodyn:Code"]},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-j7v4x","timestamp":"20241124000353","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10