Finished writing a draft article? Are you ready to request review of it by an experienced editor for possible inclusion in Wikipedia? Submit your draft for review!
This is my user sandbox for completing GCI tasks.
Bird Woman Falls 2017.jpg
The list of filenames is stored in a variable called 'imgs'.
Q1. Which letter is conventionally used in Scribunto modules to hold the table of functions?
A1. p, which stands for package.
Q2. What keyword marks the start of a function definition?
A2. The keyword 'function' starts a function definition.
Q3. What keyword marks the end of a function definition?
A3. The 'end' keyword ends a function.
Hello World
Hello, world!
Hello from Lua to my friend Andy.
Hello from Lua to my friend Anirudh.
Hello from Lua to my friend Jimbo.
Temperature conversions:
5 degress celsius is 41 degrees Farenheit. It is cold.
25 degress celsius is 77 degrees Farenheit. It is warm.
0 degress celsius is 32 degrees Farenheit. It is cold.
Checking tests :)
9 degress celsius is 48.2 degrees Farenheit. It is cold.
10 degress celsius is 50 degrees Farenheit. It is warm.
8.5 degress celsius is 47.3 degrees Farenheit. It is cold.
7 degress celsius is 44.6 degrees Farenheit. It is cold.
0 degress celsius is 32 degrees Farenheit. It is cold.
0 degress celsius is 32 degrees Farenheit. It is cold.
6 times table 6 times 1 equals 6 6 times 2 equals 12 6 times 3 equals 18 6 times 4 equals 24 6 times 5 equals 30 6 times 6 equals 36 6 times 7 equals 42 6 times 8 equals 48 6 times 9 equals 54 6 times 10 equals 60 6 times 11 equals 66 6 times 12 equals 72
2 times table 2 times 1 equals 2 2 times 2 equals 4 2 times 3 equals 6 2 times 4 equals 8 2 times 5 equals 10 2 times 6 equals 12 2 times 7 equals 14 2 times 8 equals 16 2 times 9 equals 18 2 times 10 equals 20 2 times 11 equals 22 2 times 12 equals 24
2 times table 2 times 1 equals 2 2 times 2 equals 4 2 times 3 equals 6 2 times 4 equals 8 2 times 5 equals 10 2 times 6 equals 12 2 times 7 equals 14 2 times 8 equals 16 2 times 9 equals 18 2 times 10 equals 20 2 times 11 equals 22 2 times 12 equals 24
2 times table 2 times 1 equals 2 2 times 2 equals 4 2 times 3 equals 6 2 times 4 equals 8 2 times 5 equals 10 2 times 6 equals 12 2 times 7 equals 14 2 times 8 equals 16 2 times 9 equals 18 2 times 10 equals 20 2 times 11 equals 22 2 times 12 equals 24
-8 times table -8 times 1 equals -8 -8 times 2 equals -16 -8 times 3 equals -24 -8 times 4 equals -32 -8 times 5 equals -40 -8 times 6 equals -48 -8 times 7 equals -56 -8 times 8 equals -64 -8 times 9 equals -72 -8 times 10 equals -80 -8 times 11 equals -88 -8 times 12 equals -96
Hello Dad Hello Mum Hello Uncle Stan Hello Aunty Elsie Hello Brian Hello Harry Potter Hello Lord Voldemort Hello Tony Stark
This is easy
Q1. What does %d+ match in a Lua pattern?
A1. The %d matches to all digits. The + means that it will take the longest sequence that matches the pattern, in this case the longest sequence of digits.
Q2. What does %w+ match in a Lua pattern?
A2. The %w matches to all ASCII alphanumeric characters. The + means that it will take the longest sequence that matches the pattern, in this case the longest alphanumeric string.
Year = 2018 Day = 31 Month = October
The American style date has the month first, then the date, and then the year. So, we'll first have to extract the month, then the date and then the year.
So, the pattern should be:
local month, day, year = string.match(dmydate, "(%w+) (%d+), (%d+)")
Year = 2018 Day = 31 Month = October
oc - occitan sc - sardu blk - ပအိုဝ်ႏဘာႏသာႏ ike-latn - inuktitut ab - аԥсшәа glk - گیلکی sli - Schläsch lb - Lëtzebuergesch nb - norsk bokmål xal - хальмг wal - wolaytta ast - asturianu ca - català ba - башҡортса aa - Qafár af ga - Gaeilge fa - فارسی dag - dagbanli kus - Kʋsaal ja - 日本語 mus - Mvskoke ha - Hausa na - Dorerin Naoero la - Latina sa - संस्कृतम् haw - Hawaiʻi pa - ਪੰਜਾਬੀ wa - walon ta - தமிழ் cpx-hans - 莆仙语(简体) scn - sicilianu tly-cyrl - толыши nan-hant - 閩南語(傳統漢字) zh-min-nan - Bân-lâm-gú mnc-latn - manju gisun pag - Pangasinan mag - मगही nan-latn-tailo - Bân-lâm-gú (Tâi-lô) lij - Ligure stq - Seeltersk se-fi - davvisámegiella (Suoma bealde) rki - ရခိုင် nah - Nāhuatl bcc - جهلسری بلوچی lki - لەکی crh-cyrl - къырымтатарджа (Кирилл) aeb - تونسي / Tûnsî pcm - Naijá pcd - Picard tdd - ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ cdo-hant - 閩東語(傳統漢字) bxr - буряад ibb - ibibio ace - Acèh jbo - la .lojban. kbd-cyrl - адыгэбзэ se-no - davvisámegiella (Norgga bealde) acm - عراقي chy - Tsetsêhestâhese cdo - 閩東語 / Mìng-dĕ̤ng-ngṳ̄ kk-arab - قازاقشا (تٴوتە) kjh - хакас shy - tacawit sco - Scots nan - 閩南語 / Bân-lâm-gú ban - Basa Bali gan - 贛語 shi-latn - Taclḥit kai - Karai-karai mai - मैथिली pam - Kapampangan fat - mfantse nys - Nyunga aae - Arbërisht gaa - Ga sat - ᱥᱟᱱᱛᱟᱲᱤ kaa - Qaraqalpaqsha zgh-latn - tamaziɣt tanawayt lbe - лакку lez - лезги kbd - адыгэбзэ gcf - kréyòl Gwadloup kab - Taqbaylit rgn - Rumagnôl sah - саха тыла bgc - हरियाणवी szl - ślůnski fiu-vro - võro acf - Kwéyòl Sent Lisi kcg - Tyap sk - slovenčina ksw - စှီၤ tk - Türkmençe mdf - мокшень gsw - Alemannisch kk - қазақша mk - македонски bar - Boarisch syl - ꠍꠤꠟꠐꠤ ext - estremeñu gan-hans - 赣语(简体) myv - эрзянь hrx - Hunsrik fj - Na Vosa Vakaviti lzh - 文言 kj - Kwanyama koi - перем коми krj - Kinaray-a kea - kabuverdianu ccp - 𑄌𑄋𑄴𑄟𑄳𑄦 zh-classical - 文言 zh - 中文 pdc - Deitsch ti - ትግርኛ si - සිංහල kri - Krio hi - हिन्दी mnc-mong - ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ fi - suomi mi - Māori li - Limburgs ki - Gĩkũyũ tg-latn - tojikī dtp - Kadazandusun bh - भोजपुरी ch - Chamoru shi-tfng - ⵜⴰⵛⵍⵃⵉⵜ nmz - nawdm kum - къумукъ ceb - Cebuano mui - Baso Palembang pwn - pinayuanan sh - srpskohrvatski / српскохрватски tly - tolışi tum - chiTumbuka mh - Ebon nup - Nupe sh-latn - srpskohrvatski (latinica) ko-kp - 조선말 ady-cyrl - адыгабзэ atj - Atikamekw pih - Norfuk / Pitkern bpy - বিষ্ণুপ্রিয়া মণিপুরী bg - български lg - Luganda kg - Kongo ng - Oshiwambo mg - Malagasy ojb - Ojibwemowin ig - Igbo tg - тоҷикӣ sg - Sängö ug - ئۇيغۇرچە / Uyghurche hak-hant - 客家語(繁體) za - Vahcuengh gcr - kriyòl gwiyannen shi - Taclḥit ff - Fulfulde af - Afrikaans loz - Silozi kbp - Kabɩyɛ pt-br - português do Brasil rut - мыхаӀбишды hak-hans - 客家语(简体) ckb - کوردی jut - jysk mnw - ဘာသာမန် cpx-latn - Pó-sing-gṳ̂ (Báⁿ-uā-ci̍) vmw - emakhuwa nyo - Orunyoro ee - eʋegbe de - Deutsch ce - нохчийн be - беларуская nds-nl - Nedersaksies nia - Li Niha ne - नेपाली wuu-hans - 吴语(简体) ie - Interlingue he - עברית ryu - うちなーぐち te - తెలుగు mwl - Mirandés tg-cyrl - тоҷикӣ es-419 - español de América Latina tzm - ⵜⴰⵎⴰⵣⵉⵖⵜ nl-informal - Nederlands (informeel) yue-hant - 粵語(繁體) skr-arab - سرائیکی hif-latn - Fiji Hindi tt-latn - tatarça abs - bahasa ambon gd - Gàidhlig sd - سنڌي efi - Efịk cdo-latn - Mìng-dĕ̤ng-ngṳ̄ (Bàng-uâ-cê) sh-cyrl - српскохрватски (ћирилица) dty - डोटेली yrl - Nhẽẽgatú is - íslenska ks - कॉशुर / کٲشُر ms - Bahasa Melayu trv - Seediq ps - پښتو ss - SiSwati sty - себертатар pnb - پنجابی ur - اردو se-se - davvisámegiella (Ruoŧa bealde) gpe - Ghanaian Pidgin apc - شامي mnc - manju gisun knc - Yerwa Kanuri cs - čeština bs - bosanski fr - français hr - hrvatski kr - kanuri mr - मराठी nr - isiNdebele seSewula or - ଓଡ଼ିଆ kk-latn - qazaqşa (latın) frp - arpetan sr - српски / srpski tru - Ṫuroyo crh - qırımtatarca brh - Bráhuí smn - anarâškielâ ar - العربية br - brezhoneg cr - Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ sma - åarjelsaemien nds - Plattdüütsch lmo - lombard sq - shqip crh-latn - qırımtatarca (Latin) arz - مصرى shy-latn - tacawit en-ca - Canadian English ary - الدارجة luz - لئری دوٙمینی be-tarask - беларуская (тарашкевіца) fon - fɔ̀ngbè vep - vepsän kel’ ses - Koyraboro Senni ts - Xitsonga rmc - romaňi čhib bdr - Bajau Sama krl - karjal es-formal - español (formal) bo - བོད་ཡིག nso - Sesotho sa Leboa nog - ногайша btm - Batak Mandailing tok - toki pona arn - mapudungun kk-cn - قازاقشا (جۇنگو) ban-bali - ᬩᬲᬩᬮᬶ roa-tara - tarandíne pnt - Ποντιακά to - lea faka-Tonga so - Soomaaliga no - norsk mo - молдовеняскэ tpi - Tok Pisin eml - emiliàn e rumagnòl io - Ido lo - ລາວ ko - 한국어 fo - føroyskt eo - Esperanto map-bms - Basa Banyumasan alt - алтай тил csb - kaszëbsczi anp - अंगिका lrc - لۊری شومالی yi - ייִדיש hsb - hornjoserbsce ase - American sign language inh - гӀалгӀай rn - ikirundi sn - chiShona tn - Setswana mn - монгол nn - norsk nynorsk vro - võro kn - ಕನ್ನಡ ln - lingála en - English gn - Avañe'ẽ nqo - ߒߞߏ kk-tr - qazaqşa (Türkïya) am - አማርኛ mhr - олык марий diq - Zazaki gom-deva - गोंयची कोंकणी qug - Runa shimi sm - Gagana Samoa rm - rumantsch nrm - Nouormand om - Oromoo nod - ᨣᩤᩴᨾᩮᩬᩥᨦ km - ភាសាខ្មែរ arc - ܐܪܡܝܐ frc - français cadien mni - ꯃꯤꯇꯩ ꯂꯣꯟ nan-latn-pehoeji - Bân-lâm-gú (Pe̍h-ōe-jī) hsn - 湘語 nov - Novial crh-ro - tatarşa aeb-latn - Tûnsî yo - Yorùbá vo - Volapük new - नेपाल भाषा sl - slovenščina tl - Tagalog chr - ᏣᎳᎩ pl - polski ml - മലയാളം nl - Nederlands kl - kalaallisut vot - Vaďďa isv-latn - medžuslovjansky el - Ελληνικά ku-arab - کوردی (عەرەبی) igl - Igala shn - ၽႃႇသႃႇတႆး egl - Emiliàn bgn - روچ کپتین بلوچی kge - Kumoring chn - chinuk wawa zh-cn - 中文(中国大陆) mos - moore uz - oʻzbekcha / ўзбекча bho - भोजपुरी kiu - Kırmancki cbk-zam - Chavacano de Zamboanga dga - Dagaare zh-tw - 中文(臺灣) zh-sg - 中文(新加坡) zh-my - 中文(马来西亚) dz - ཇོང་ཁ zh-mo - 中文(澳門) als - Alemannisch liv - Līvõ kēļ hak-latn - Hak-kâ-ngî (Pha̍k-fa-sṳ) awa - अवधी zu - isiZulu zh-hans - 中文(简体) zgh - ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ zea - Zeêuws yue-hans - 粵语(简体) war - Winaray xsy - saisiyat az - azərbaycanca hif - Fiji Hindi gor - Bahasa Hulontalo xmf - მარგალური xh - isiXhosa wuu-hant - 吳語(正體) wuu - 吴语 wo - Wolof tyv - тыва дыл my - မြန်မာဘာသာ yue - 粵語 ky - кыргызча vmf - Mainfränkisch de-formal - Deutsch (Sie-Form) guc - wayuunaiki vi - Tiếng Việt lzz - Lazuri es - español de-ch - Schweizer Hochdeutsch cy - Cymraeg vec - vèneto ve - Tshivenda hy - հայերեն uz-latn - oʻzbekcha fy - Frysk olo - livvinkarjala uz-cyrl - ўзбекча tet - tetun pdt - Plautdietsch ay - Aymar aru ann - Obolo ug-arab - ئۇيغۇرچە szy - Sakizaya os - ирон uk - українська arq - جازايرية ug-latn - Uyghurche ksh - Ripoarisch lfn - Lingua Franca Nova sms - nuõrttsääʹmǩiõll sdh - کوردی خوارگ udm - удмурт hu-formal - magyar (formal) vls - West-Vlams wls - Fakaʻuvea ty - reo tahiti as - অসমীয়া tw - Twi bat-smg - žemaitėška lus - Mizo ţawng cpx-hant - 莆仙語(繁體) dua - Duálá pfl - Pälzisch ttj - Orutooro bto - Iriga Bicolano tt-cyrl - татарча hno - ہندکو da - dansk tr - Türkçe lua - ciluba sr-ec - српски (ћирилица) gom - गोंयची कोंकणी / Gõychi Konknni tig - ትግሬ kk-kz - қазақша (Қазақстан) ruq - Vlăheşte pi - पालि be-x-old - беларуская (тарашкевіца) rue - русиньскый gag - Gagauz ka - ქართული ia - interlingua ami - Pangcah gan-hant - 贛語(繁體) mzn - مازِرونی th - ไทย krc - къарачай-малкъар nap - Napulitano tcy - ತುಳು sw - Kiswahili sv - svenska su - Sunda pap - Papiamentu sro - sardu campidanesu rw - Ikinyarwanda iba - Jaku Iban srn - Sranantongo kw - kernowek sr-el - srpski (latinica) co - corsu bcl - Bikol Central zh-hk - 中文(香港) ro - română id - Bahasa Indonesia hke - kihunde ho - Hiri Motu bci - wawle bn - বাংলা zh-hant - 中文(繁體) dsb - dolnoserbski ruq-cyrl - Влахесте guw - gungbe skr - سرائیکی pms - Piemontèis sje - bidumsámegiella ike-cans - ᐃᓄᒃᑎᑐᑦ gv - Gaelg simple - Simple English kjp - ဖၠုံလိက် gom-latn - Gõychi Konknni cv - чӑвашла dv - ދިވެހިބަސް ks-arab - کٲشُر roa-rup - armãneashti bm - bamanankan got - 𐌲𐌿𐍄𐌹𐍃𐌺 jam - Patois lad - Ladino kv - коми lv - latviešu ilo - Ilokano gld - на̄ни mad - Madhurâ din - Thuɔŋjäŋ sgs - žemaitėška sei - Cmique Itom khw - کھوار bew - Betawi grc - Ἀρχαία ἑλληνικὴ se - davvisámegiella min - Minangkabau sdc - Sassaresu av - авар bbc - Batak Toba aeb-arab - تونسي bqi - بختیاری ruq-latn - Vlăheşte rup - armãneashti bug - Basa Ugi iu - ᐃᓄᒃᑎᑐᑦ / inuktitut hu - magyar gu - ગુજરાતી ru - русский eu - euskara rsk - руски hil - Ilonggo azb - تۆرکجه qu - Runa Simi gl - galego bbc-latn - Batak Toba rmy - romani čhib rif - Tarifit en-gb - British English ku - kurdî prg - prūsiskan nit - కొలామి de-at - Österreichisches Deutsch ku-latn - kurdî (latînî) ik - Iñupiatun zh-yue - 粵語 st - Sesotho tt - татарча / tatarça niu - Niuē fit - meänkieli tay - Tayal jv - Jawa frr - Nordfriisk nyn - runyankore sjd - кӣллт са̄мь кӣлл hz - Otsiherero it - italiano cho - Chahta anumpa ny - Chi-Chewa ht - Kreyòl ayisyen et - eesti nv - Diné bizaad hyw - Արեւմտահայերէն cpx - 莆仙語 / Pó-sing-gṳ̂ hak - 客家語 / Hak-kâ-ngî ady - адыгабзэ bi - Bislama pt - português ang - Ænglisc ii - ꆇꉙ bjn - Banjar lt - lietuvių isv-cyrl - меджусловјанскы mt - Malti ms-arab - بهاس ملايو mrj - кырык мары fur - furlan gur - farefare mrh - Mara ltg - latgaļu ks-deva - कॉशुर lld - Ladin kk-cyrl - қазақша (кирил) aln - Gegë cu - словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ avk - Kotava cps - Capiceño an - aragonés = 555 languages
Language: pt 1 - pt-br 2 - en = 2 languages.
Language: nl 1 - en = 1 languages.
Language: es 1 - en = 1 languages.
Extension:Scribunto/Lua reference manual
Color exists and is not a redirect.
Colour exists and is a redirect.
Colr does not exist and is not a redirect.
Meter exists and is a redirect.
Metre exists and is not a redirect.
Google exists and is not a redirect.
Ggle does not exist and is not a redirect.
nil does not exist and is not a redirect.
nil does not exist and is not a redirect.
nil does not exist and is not a redirect.