Wikipedia iswiki https://is.wikipedia.org/wiki/Fors%C3%AD%C3%B0a MediaWiki 1.47.0-wmf.15 first-letter Miðill Kerfissíða Spjall Notandi Notandaspjall Wikipedia Wikipediaspjall Mynd Myndaspjall Melding Meldingarspjall Snið Sniðaspjall Hjálp Hjálparspjall Flokkur Flokkaspjall Gátt Gáttaspjall Skjátexti Skjátextaspjall Module Module talk Event Event talk Listi yfir íslenska myndlistarmenn 0 5188 1975560 1960022 2026-08-16T10:50:37Z Wikm456 119617 1975560 wikitext text/x-wiki Þetta er '''listi yfir íslenskt myndlistarfólk'''. Listinn er ekki tæmandi, þú getur [{{SERVER}}{{localurl:{{NAMESPACE}}:Listi yfir íslenska myndlistarmenn|action=edit}} bætt við hann]. {| class="wikitable sortable" !rowspan="2" scope="col" | Þura - Þuríður Sigurðardóttir !rowspan="2" scope="col" | 1949 !rowspan="2" scope="col" | Dánarár !rowspan="2" scope="col" | Listgrein |- |[[Sölvi Helgason]] |1820 |1895 | |- |[[Sigurður Guðmundsson (f. 1833)]] |1833 |1874 | |- |[[Þóra Pétursdóttir]] |1847 |1917 | |- |[[Kristín Vídalín Jacobson]] |1864 |1943 | |- |[[Þórarinn B. Þorláksson]] |1867 |1924 | |- |[[Kristín Þorvaldsdóttir]] |1870 |1944 | |- |[[Einar Jónsson]] |1874 |1954 |Myndhöggvari |- |[[Ásgrímur Jónsson]] |1876 |1958 | |- |[[Jón Stefánsson]] |1881 |1962 | |- |[[Jóhannes Sveinsson Kjarval]] |1885 |1972 | |- |[[Eyjólfur Eyfells]] |1886 |1979 | |- |[[Kristín Jónsdóttir (listmálari)|Kristín Jónsdóttir]] |1888 |1959 | |- |[[Ríkarður Jónsson]] |1888 |1977 | |- |[[Júlíana Sveinsdóttir]] |1889 |1966 | |- |[[Jón Jónsson]] |1890 |1982 | |- |[[Muggur|Guðmundur Thorsteinsson (Muggur)]] |1891 |1924 | |- |[[Finnur Jónsson (myndlistarmaður)|Finnur Jónsson]] |1892 |1993 | |- |[[Nína Sæmundsson]] |1892 |1965 |Myndhöggvari |- |[[Ásmundur Sveinsson]] |1893 |1982 | |- |[[Gunnlaugur Blöndal]] |1893 |1962 | |- |[[Guðmundur frá Miðdal|Guðmundur Einarsson frá Miðdal]] |1895 |1963 | |- |[[Freymóður Jóhannsson]] |1895 |1973 | |- |[[Dunganon|Karl Einarsson (Dunganon)]] |1897 |1972 | |- |[[Eggert M. Laxdal]] |1897 |1951 | |- |[[Ólafur Túbals]] |1897 |1964 | |- |[[Tryggvi Magnússon]] |1900 |1960 | |- |[[Snorri Arinbjarnar]] |1901 |1958 | |- |[[Kristján Magnússon]] |1903 |1937 | |- |[[Gunnlaugur Scheving]] |1904 |1972 | |- |[[Sigríður Ó. Candi]] |1930 |2018 |Myndlistamaður |- |[[Þorvaldur Skúlason]] |1906 |1984 | |- |[[Höskuldur Björnsson]] |1907 |1963 |Myndlistamaður |- |[[Jóhann Briem]] |1907 |1991 | |- |[[Sigurjón Ólafsson]] |1908 |1982 |Myndhöggvari |- |[[Ágúst Petersen]] |1908 |1990 | |- |[[Jón Engilberts]] |1908 |1972 | |- |[[Svavar Guðnason]] |1909 |1988 | |- |Guðmundur Þorsteinsson |1909 |1965 | |- |[[Wilhelm Ernst Beckmann]] |1909 |1965 | |- |[[Barbara Árnason]] |1911 |1975 | |- |[[Nína Tryggvadóttir]] |1913 |1968 | |- |[[Halldór Pétursson]] |1916 |1977 | |- |[[Kristján Davíðsson]] |1917 |1923 | |- |[[Louisa Matthíasdóttir]] |1917 |2000 | |- |[[Valtýr Pétursson]] |1919 |1988 | |- |[[Þorbjörg Pálsdóttir]] |1919 |2009 |Myndhöggvari |- |[[Ásgerður Búadóttir]] |1920 |2014 |Vefnaðarlist |- |[[Drífa Viðar]] |1920 |1971 | |- |[[Örlygur Sigurðsson]] |1920 |2002 | |- |[[Gestur Þorgrímsson]] |1920 |2003 | |- |[[Ólöf Pálsdóttir]] |1920 |2018 |Myndhöggvari |- |[[Kjartan Guðjónsson (myndlistamaður)|Kjartan Guðjónsson]] |1921 |2010 | |- |[[Guðmunda Andrésdóttir]] |1922 |2002 | |- |[[Hörður Ágústsson]] |1922 |2005 | |- |[[Kíkó Korriró|Þórður Valdimarsson (Kíkó Korriró)]] |1922 |2002 | |- |[[Ragnar Kjartansson]] |1923 |1988 |Myndhöggvari |- |[[Eyborg Guðmundsdóttir]] |1924 |1977 | |- |[[Karl Kvaran]] |1924 |1989 | |- |[[Eiríkur Smith]] |1925 |2016 | |- |[[Sigrún Guðjónsdóttir|Sigrún Guðjónsdóttir (Rúna)]] |1926 | | |- |[[Veturliði Gunnarsson]] |1926 |2004 | |- |[[Gerður Helgadóttir]] |1928 |1975 |Myndhöggvari |- |[[Benedikt Gunnarsson]] |1929 |2018 | |- |[[Ásta Sigurðardóttir]] |1930 |1971 | |- |[[Dieter Roth]] |1930 |1998 | |- |[[Sverrir Haraldsson]] |1930 |1985 | |- |[[Bragi Ásgeirsson]] |1931 |2016 | |- |[[Jón Gunnar Árnason]] |1931 |1989 |Myndhöggvari |- |[[Björn Birnir]] |1932 |2017 | |- |[[Erró]] |1932 | | |- |[[Hringur Jóhannesson]] |1932 |1996 | |- |[[Ragnheiður Jónsdóttir (myndlistakona)|Ragnheiður Jónsdóttir]] |1933 | | |- |[[Hafsteinn Austmann]] |1934 | | |- |[[Kristinn G. Jóhannsson]] |1936 | | |- |[[Ólafur Th Ólafsson]] |1936 | | |- |[[Haukur Halldórsson]] |1937 | | |- |[[Alfreð Flóki]] |1938 |1987 | |- |[[Baltasar Samper]] |1938 | | |- |[[Hildur Hákonardóttir]] |1938 | |Vefnaðarlist |- |[[Björg Þorsteinsdóttir]] |1940 |2019 | |- |[[Haukur Dór Sturluson]] |1940 | | |- |[[Róska|Ragnhildur Óskarsdóttir (Róska)]] |1940 |1996 | |- |[[Steina Vasulka]] |1940 | | |- |[[Tryggvi Ólafsson]] |1940 |2019 | |- |[[Kristján Guðmundsson]] |1941 | | |- |[[Edda Jónsdóttir]] |1942 | | |- |[[Ríkey (listamaður)|Ríkey Ingimundardóttir]] |1942 | | |- |[[Sigurður Guðmundsson (f. 1942)]] |1942 | | |- |[[Hreinn Friðfinnsson]] |1943 |2024 | |- |[[Magnús Tómasson]] |1943 | |Myndhöggvari |- |[[Magdalena Margrét Kjartansdóttir]] |1944 | | |- |[[Hallsteinn Sigurðsson]] |1944 | | |- |[[Karólína Lárusdóttir]] |1944 |2019 | |- |[[Rut Rebekka Sigurjónsdóttir]] |1944 | | |- |[[Jón Reykdal]] |1945 |2013 |Grafík |- |[[Kolbrún Kjarval]] |1945 | | |- |[[Leifur Breiðfjörð]] |1945 | |Glerlist |- |[[Ragna Róbertsdóttir]] |1945 | | |- |[[Örn Ingi Gíslason]] |1945 |2017 | |- |[[Sigurður Örlygsson]] |1946 |2019 | |- |[[Hrafnhildur Inga Sigurðardóttir]] |1946 | | |- |[[Gunnar Örn Gunnarsson]] |1946 |2008 | |- |[[Helgi Gíslason]] |1947 | | |- |[[Níels Hafstein]] |1947 | | |- |[[Haraldur Bilson]] |1948 | | |- |[[Sigurður Örlygsson]] |1949 |2019 | |- |[[Magnús Kjartansson]] |1949 |2006 | |- |[[Árni Páll Jóhannsson]] |1950 |2020 | |- |[[Brian Pilkington]] |1950 | | |- |[[Guðrún Erla Geirsdóttir (Gerla)]] |1951 | | |- |[[Rúrí|Þuríður Fannberg (Rúrí)]] |1951 | | |- |[[Vignir Jóhannsson]] |1952 | | |- |[[Kogga|Kolbrún Björgólfsdóttir (Kogga)]] |1952 | |Keramik |- |[[Svava Björnsdóttir]] |1952 | | |- |[[Helgi Þorgils Friðjónsson]] |1953 | | |- |[[Jóhanna Kristín Yngvadóttir]] |1953 |1991 | |- |[[Pjetur Stefánsson]] |1953 | | |- |[[Tolli|Þorlákur Morthens (Tolli)]] |1953 | | |- |[[Daði Guðbjörnsson]] |1954 | | |- |[[Sigrún Eldjárn]] |1954 | | |- |[[Sigrún Harðardóttir]] |1954 |- |[[Steingrímur Eyfjörð]] |1954 | | |- |[[Jón Óskar Hafsteinsson]] |1954 | | |- |[[Birgir Andrésson]] |1955 |2007 | |- |[[Björk Tryggvadóttir]] |1955 | | |- |[[Brynhildur Þorgeirsdóttir]] |1955 | | |- |[[Elín Rafnsdóttir]] |1955 | | |- |[[Erla Þórarinsdóttir]] |1955 | | |- |[[Hannes Lárusson]] |1955 | | |- |[[Harpa Björnsdóttir]] |1955 | | |- |[[Inga Ragnarsdóttir]] |1955 | | |- |[[Lind Völundardóttir]] |1955 | | |- |[[Steinunn Þórarinsdóttir]] |1955 | |Myndhöggvari |- |[[Eggert Pétursson]] |1956 | | |- |[[Guðjón Ketilsson]] |1956 | | |- |[[Guðrún Elín Ólafsdóttir (Gunnella)]] |1956 | | |- |[[Hulda Hákon]] |1956 | | |- |[[Jón Axel Björnsson]] |1956 | | |- |[[Rósa Gísladóttir]] |1957 | | |- |[[Tumi Magnússon]] |1957 | | |- |[[Aðalheiður Valgeirsdóttir]] |1958 | | |- |[[Ragnhildur Stefánsdóttir]] |1958 | |Myndhöggvari |- |[[Finnbogi Pétursson]] |1959 | | |- |[[Hallgrímur Helgason]] |1959 | | |- |[[Sigurborg Stefánsdóttir]] |1959 | | |- |[[Victor Cilia]] |1960 | | |- |[[Þorvaldur Þorsteinsson]] |1960 |2013 | |- |[[Georg Guðni Hauksson]] |1961 |2011 | |- |[[Haraldur Jónsson]] |1961 | | |- |[[Húbert Nói]] |1961 | | |- |[[Ólöf Nordal (myndlistakona)|Ólöf Nordal]] |1961 | | |- |[[Ósk Vilhjálmsdóttir]] |1962 | | |- |[[Arngunnur Ýr]] |1963 | | |- |[[Kristín Gunnlaugsdóttir]] |1963 | | |- |[[Áslaug Thorlacius]] |1963 | | |- |[[Einar Garibaldi Eiríksson]] |1964 | | |- |[[Eygló Harðardóttir (myndlistarmaður)|Eygló Harðardóttir]] |1964 | | |- |[[Stefán Jónsson (myndlistarmaður)|Stefán Jónsson]] |1964 | | |- |[[Harpa Árnadóttir]] |1965 | | |- |[[Soffía Sæmundsdóttir]] |1965 | | |- |[[Jóhann Ludwig Torfason]] |1965 | | |- |[[Guðrún Vera Hjartardóttir]] |1966 | | |- |[[Pétur Gautur]] |1966 | | |- |[[Snorri Ásmundsson]] |1966 | | |- |[[Lína Rut Wilberg]] |1966 | | |- |[[Ólafur Elíasson]] |1967 | | |- |[[Katrín Sigurðardóttir]] |1967 | | |- |[[Kristinn Már Pálmason]] |1967 | | |- |[[Hlynur Hallsson]] |1968 | | |- |[[Jón Sæmundur Auðarson]] |1968 | | |- |[[Hrafnhildur Arnardóttir|Hrafnhildur Arnardóttir (Shoplifter)]] |1969 | | |- |[[Ilmur Stefánsdóttir]] |1969 | | |- |[[Bryndís Hrönn Ragnarsdóttir]] |1970 | | |- |[[Libia Castro & Ólafur Ólafsson]] |1970 | | |- |[[Margrét H. Blöndal]] |1970 | | |- |[[Gabríela Friðriksdóttir]] |1971 | | |- |[[Gunnhildur Hauksdóttir]] |1972 | | |- |[[Egill Sæbjörnsson]] |1973 | | |- |[[Karlotta J. Blöndal]] |1973 | | |- |[[Ólöf Björg Björnsdóttir]] |1973 | | |- |[[Sigrún Hrólfsdóttir]] |1973 | | |- |[[Ásdís Sif Gunnarsdóttir]] |1976 | | |- |Magnea Lynn Fisher(Sissy) |1976 | |listmálari |- |[[Ragnar Kjartansson (myndlistarmaður)|Ragnar Kjartansson]] |1976 | | |- |[[Hugleikur Dagsson]] |1977 | | |- |[[Þrándur Þórarinsson]] |1978 | | |- |[[Lóa Hlín Hjálmtýsdóttir]] |1979 | | |- |[[Elín Hansdóttir]] |1980 | | |- |[[Sara Riel]] |1980 | | |- |[[Halldór Ragnarsson]] |1981 | | |- |[[Páll Haukur Björnsson]] |1981 | | |- |[[Áslaug Íris Friðjónsdóttir]] |1981 | | |- |[[Arna Óttarsdóttir]] |1986 | | |- |[[Loji Höskuldsson]] |1987 | | |- |[[Úlfur Karlsson]] |1988 | | |- |[[Þórdís Erla Zöega]] |1988 | | |- |[[Ragnhildur Weisshappel]] |1989 | | |- |[[Aron Leví Beck|Aron Leví Beck (Albeck)]] |1989 | | |- |[[Júlíanna Ósk Hafberg]] |1992 | | |- |[[Almar Steinn Atlason]] |1993 | | |- |[[Sigurður Sævar Magnúsarson]] |1997 | | |- |Refur Geirdal |1976 | |Digital! Nova Ars |} Árni Laugdal Jónsson == Tengt efni == * [[Íslensk menning]] [[Flokkur:Íslenskir myndlistarmenn| ]] [[Flokkur:Íslensk menning]] [[Flokkur:Íslensk myndlist]] [[Flokkur:Listar tengdir Íslandi]] [[Flokkur:Listar um myndlist|Íslenskir myndlistarmenn]] [[Flokkur:Listar yfir Íslendinga|Myndlistarmenn]] lb4yo0i3rn5flgygv3uqexembf30egx Íslenski hesturinn 0 12287 1975349 1935414 2026-08-15T12:14:45Z ~2026-44891-07 119581 Stafsetningarvillur leiðréttar. Hlekkur á gangtegundina skeið lagaður. 1975349 wikitext text/x-wiki [[Mynd:Icelandic Pony Hill.jpg|thumb|right|Íslenskur hestur]] '''Íslenski hesturinn''' er [[hestur|hestakyn]] sem er skylt [[norski lynghesturinn|norska lynghestinum]] og er af mongólskum uppruna. [[Víkingar]] fluttu með sér meðal annars skandinavíska hesta þegar þeir settust að á Íslandi fyrir meira en 1000 árum síðan. Íslenski hesturinn er ekki hár í loftinu miðað við mörg önnur hestakyn en aftur á móti er hann óvenju sterkbyggður, heilsuhraustur, þrautseigur og veðurþolinn. Íslenski hesturinn státar af [[jafnaðargeð]]i og vingjarnlegu eðlisfari og fyrir það hefur hann aflað sér mikillar aðdáunar. <!--Einnig er hann sterkari á taugum heldur en mörg stærri hestakyn.{{heimild vantar}}--> Aftur á móti getur hann verið þrjóskari og óþekkari en aðrar hestategundir, enda ræktaður með það í huga að selflytja fólk, sem kann ekki á hesta og verður því að vita sjálfur betur en knapinn hvað rétt sé og hvert ferðinni sé heitið. Algengt er að íslensk hross nái 25 til 27 vetra aldri án heilsubrests, en þau geta orðið yfir 30 vetra. Hestar eru [[félagsvera|félagsverur]] og vilja vera á [[beitiland|beit]] með öðrum hestum. Íslenskir hestar gera ekki miklar kröfur til [[fóður]]s eða húsaskjóls. Innflutningur hesta til landsins er bannaður vegna sóttvarna og hefur íslenski hesturinn verið einangraður í langan tíma og þróast frá landnámi Íslands. == Gangtegundir == [[Mynd:043 Sævar frá Stangarholti.jpg|thumb|Íslenskur hestur á tölti]] Íslenski hesturinn er þekktur fyrir sínar fimm ólíku gangtegundir; [[fet]], [[brokk]], [[stökk]], [[tölt]] og [[Skeið (gangtegund)|skeið]]. Tölt, sem er fjórtakta hliðarhreyfing, er ekki einstakt fyrir íslenska hestinn. Töltið finnst í nokkrum hestakynjum í [[Ameríka|Norður-Ameríku]], [[Suður-Ameríka|Suður-Ameríku]] og í [[Asía|Asíu]]. Það sem hins vegar gefur íslenska hestinum sérstöðu, er að enginn annar hestur er sýndur á fimm gangtegundum í keppni og sýningum. Gangtegundirnar eru ekki eðlislægar öllum hestum og er þeim skipt upp í þrjá flokka, alhliða hesta, klárhesta með tölti og klárhesta. Alhliða hestar eru með allar fimm gangtegundirnar. Klárhestar með tölti eru ekki með skeið en hafa allar hinar gangtegundirnar. Klárhestar geta svo aftur fetað, stokkið og brokkað eins og önnur hestakyn, en bjóða ekki upp á tölt og skeið. Hreinir klárhestar eru sjaldgæfir að verða. Yfirleitt er ein gangtegund ríkjandi hjá íslenska hestinum en til eru hestar sem eru [[jafnvígur|jafnvígir]] á allar gangtegundir. == Litir == Íslenski hesturinn hefur yfir 40 grunnliti og hundrað litaafbrigði frá leirljósu að jörpu, frá muskóttu til móvindótts. Algengustu grunnlitir íslenska hestsins eru tveir, [[rauður]] og brúnn og er sá rauði algengastur, en í mismunandi blæbrigðum. Mikill fjölbreytileiki í lit er einnig í faxi og tagli íslenska hestsins og ekki er alltaf sami litur á faxi og tagli hestsins. Litur á fótum hestsins getur líka verið breytilegur. Í hrossum almennt eru 15 vel skilgreind litasæti sem stjórna litaerfðum hestsins og er íslenski hesturinn talinn hafa að minnsta kosti 11 þeirra, sem eru eftirfarandi: * '''A:''' Erfðavísir sem ákveður hvort hrossið verður brúnt eða rautt. Þetta sæti vísar einnig í jarpt og ákveður hvort jarpur litur komi fram eða ekki. * '''B:''' Ákveður hvort húðin framleiði litarefni fyrir svart eða mórautt. Ekki er vitað um mórauð, íslensk hross svo það er gert ráð fyrir að öll íslensk hross hafi hér svart í sætinu. * '''C:''' Ræður hvort litastyrkur í hárum hrossins verður fullur eða deyfður. Leirlitirnir leirljóst, moldótt, muskótt og fölt (albínó) verða til vegna þessa erfðavísis. * '''Ch:''' Er erfðavísir fyrir kampavínslitum og finnst ekki í íslenskum hrossum. * '''Dn:''' Litasætið Dn stýrir álóttum litum, móálóttu, bleikálóttu og bleiku. * '''E:''' Þetta sæti ræður því hvort hrossið verði svart eða rautt, ásamt A-sætinu. Þetta skilur því brún hross frá jörpu annars vegar og frá rauðum hins vegar. * '''G:''' Tekur fram hvort hrossið gráni með aldri. Grá hross eru fædd í einhverjum grunnlit, en grána svo með aldri, og verða fyrir rest alhvít á feldinn. * '''Rn:''' Rn-sætið eða ''Roan''-sætið tekur fram hvort hrossið verður litförótt eða ekki. Litförótt lýsir sér þannig að hrossið hefur sinn tiltekna grunnlit en verður árstíðabundið ljós því undirhárin eru hvít en vindhárin í grunnlit hestsin. * '''Spl:''' Er erfðasætið fyrir slettuskjóttan lit. Slettuskjótt hross eru hjálmótt og sokkótt, með hvítar skellur undir kvið, sem geta náð upp á síður og jafnvel upp á bak. * '''To:''' ''Tobiano''-sætið, eða skjótta sætið ræður hvort hrossið verði skjótt eða ekki. Skjótt hross eru í raun litlaus á þeim skellum sem eru hvítar. Í húðinni á þessum stöðum eru engin litkorn í húðfrumunum. * '''Z:''' Erfðavísir fyrir vindóttu er í þessu sæti. Svört hross verða móvindótt, jörp hross verða jarpvindótt, móálótt hross verða móálótt vindótt og svo fram eftir götunum, en rauð, leirljós og bleik hross bera þess engin merki þó þau hafi vindóttar erfðir. == Saga íslenska hestsins == [[Mynd:Icelandic horse 5.jpg|thumb|right|Íslenskur hestur]] [[Mynd:An Icelandic pack train. (4558222489).jpg|thumb|Íslenskir hestar um 1900.]] Talið er að íslenski hesturinn hafi komið hingað til lands á [[landnám]]stímanum og hefur hann aðlagast náttúru og [[veðurfar]]i á [[Ísland]]i mjög vel. [[landnámsmaður|Landnámsmenn]] komu með [[búfjárrækt|búfénað]] með sér frá [[Evrópa|Evrópu]] þar á meðal var úrval [[gæðingur|gæðinga]]. Hrossin sem landnámsmenn komu með sér voru af ýmsum uppruna þó aðallega germönskum. Heimildum ber ekki saman um hver uppruni íslenska hestsins er en talið er að hann eigi sameiginlegan uppruna með norska lynghestinum og eigi þau kyn ættir sínar að rekja til taminna hrossa í Mongólíu. Einnig kemur fram í heimildum að íslenski hesturinn sé skyldur „equus caballus scandinavicus“ hrossakyni sem var upp í [[Norður-Evrópa|Norður-Evrópu]] á meðan aðrir telja hann náskyldan breska [[smáhestur|smáhestinum]] Exmoor. Þrátt fyrir að íslenski hesturinn hafi verið að blönduðu kyni til að byrja hefur hann þróast síðan á 11. öld án blöndunar við aðra hestastofna og hefur hann því haldið ýmsum eiginleikum sem hafa tapast hjá öðrum hestakynum. Fyrr á tíðum var íslenski hesturinn kallaður „þarfasti þjóninn“. Íslenski hesturinn sá meðal annars um að sækja ljósmóðurina og dró kistuna til [[kirkja|kirkju]] og má því segja að hann hafi fylgt manninum frá vöggu til grafar. En með tímanum og tilkomu [[bifreið|bílsins]], árið 1904, hefur hlutverk íslenska hestsins breyst úr því að vera [[burðardýr]] og ómissandi atvinnu- og samgöngutæki í að vera [[tómstundagaman]] en gegnir hann þó enn mikilvægu hlutverki í göngum og leitum á haustin. Sama ár og bílinn kom var fyrsta [[hrossaræktafélag|hrossaræktarfélagið]] á Íslandi stofnað. [[Hrossarækt]] á auknum vinsældum að fagna í dag og er að finna mörg stór hrossaræktarbú um landið ásamt því að fjöldi einstaklinga ræktar hross í smærri stíl. Íslenski hesturinn var fluttur úr landi á fyrri hluta síðustu aldar sem vinnuhestur. Upp úr 1950 hófst útflutningur á reiðhestum. == Bókmenntir og íslenski hesturinn == [[Mynd:IcelandicHorseInWinter.jpg|thumb|Íslenskur hestur, nálægt [[Krýsuvík]], í vetrarfeldi]] Íslenski hesturinn gegndi mikilvægu hlutverki á tímum [[víkingur|víkinga]] í [[hernaður|hernaði]] og var góður hestur lífsnauðsynlegur [[stríðsmaður|stríðsmanni]]. Hesturinn var tákn um veldi víkinga og var mikil virðing borin fyrir honum og oftar en ekki voru altygjaðir hestar grafnir með stríðsmönnum sínum. Í Íslendingasögum er þess einnig getið að íslenski hesturinn hafi verið gefin sem gjöf til [[konungur|konunga]] og fyrirmanna. Í [[Norræn goðafræði|norrænni goðafræði]] skipaði hesturinn stórt hlutverk og var hann meðal annars [[frjósemistákn]] og verndari [[skáldskapur|skáldskapar]]. Hestar voru heilög dýr og var lögð mikil rækt við þá. Frægasti hesturinn úr norrænum goðasögum er án efa hinn áttfætti [[Sleipnir]], hestur [[Óðinn|Óðins]]. Enn í dag eru áhrif norrænna sagna að finna í hestasamfélaginu þar sem mörg [[hestamannafélag|hestamannafélög]] og fjöldi hesta bera nöfn sem koma úr goðafræðinni. Þegar [[kristni]] var lögtekin, á 10. öld, var bannað að borða hrossakjöt í kristni erlendis, en Íslendingar tóku kristni með nokkrum skilyrðum, meðal annars því að hrossakjötsát væri leyfilegt. Eftir því sem aldirnar liðu náði þessi erlendi hugsanaháttur þó að skjóta rótum á Íslandi, og það að borða hrossakjöt var talið ganga [[glæpur|glæpi]] næst. Einstaka fátæklingar borðuðu hrossakjöt og hirtu ekki um [[hjátrú]] en þeir sem gerðu það voru oftar en ekki fyrirlitnir og kallaðir hrossakjötsætur. == Útflutningur == Á fyrri hluta síðustu aldar voru íslenskir hestar fyrst fluttir úr landi mestmegnis til [[Bretlandseyjar|Bretlandseyja]] og [[Danmörk|Danmerkur]]. Flestir voru þeir notaðir á bóndabæjum eða í [[náma|námum]]. Íslenski reiðhesturinn var fyrst fluttur út 1950 og hafa vinsældir hans vaxið mjög á meginlandi Evrópu og í Norður-Ameríku síðan þá. Íslenskir hestar sem hafa verið fluttir út eða fæðst erlendis eru orðnir fleiri en fjöldi hesta á Íslandi, eru þeir meira en hundrað þúsund. Mest hefur verið flutt af íslenskum hestum út til Þýskalands og Skandínavíu. Útflutningur á íslenska hestinum skapaði verðmæta [[atvinnugrein]], hrossarækt til útflutnings. Hér á landi er að finna mörg stór hrossabú ásamt því að margir einstaklingar rækta hross sér til ánægju. Árið 1906 var haldin fyrsta [[kynbótasýning]]in hér á landi og hafa hrossaræktendur síðan þá haft það að leiðar ljósi að bæta íslenska hestinn. Hrossarækt fer að mestu fram á sumrin og er þá [[stóðhestur|stóðhesti]] komið fyrir í stóðhestagirðingu með [[hryssa|hryssum]]. En aukning hefur verið á undanförnum árum í sæðingu og húsnotkun. == Heimildir == * [[Stefán Aðalsteinsson]]. 2001. ''Íslenski hesturinn - litir og erfðir.'' Ormstunga, [[Reykjavík]]. * [http://wayback.vefsafn.is/wayback/20061114190813/www.fhb.is/landbunadur/wgbi.nsf/Attachment/FHB-hestarisl72/$file/hestarisl72.pdf Félag hrossabænda] Skoðað 5.febrúar 2009. * [http://www.nat.is/husdyr/Islenzki_hesturinn.htm NAT Norðurferðir] {{Webarchive|url=https://web.archive.org/web/20070625033723/http://www.nat.is/husdyr/Islenzki_hesturinn.htm |date=2007-06-25 }} Skoðað 5. febrúar 2009. * [http://www.ismennt.is/not/hbrynj/hestar/ Íslenski hesturinn] {{Webarchive|url=https://web.archive.org/web/20100708154254/http://www.ismennt.is/not/hbrynj/hestar/ |date=2010-07-08 }} Skoðað 5. febrúar 2009. * [http://www.imh.org/museum/breeds.php?pageid=8&breed=49 Kentucky Horse Park] (á ensku) Skoðað 5. febrúar 2009. == Tenglar == {{commons|Icelandic horse|Íslenska hestinum}} * [http://timarit.is/view_page_init.jsp?pageId=1755554 ''Ættbók og saga íslenska hestsins''; grein í Morgunblaðinu 1991] * [http://timarit.is/view_page_init.jsp?pageId=1352441 ''Rannsóknir á blóðflokkun íslenzka hestsins''; grein í Morgunblaðinu 1963] * [http://timarit.is/view_page_init.jsp?pageId=1455750 ''Ekki langt í hinn fullkomna íslenzka hest?''; 1. grein í Morgunblaðinu 1974] * [http://timarit.is/view_page_init.jsp?pageId=1456122 ''Ekki nóg að rækta góðan og fallegan hest, það þarf að temja hann líka''; 2. grein í Morgunblaðinu 1974] * [http://timarit.is/view_page_init.jsp?pageId=1763084 ''Rauður númer eitt''; grein í Morgunblaðinu 1992] * [http://timarit.is/view_page_init.jsp?pageId=3483108 ''Samræmt námsefni með skilgreindum markmiðum komið í gagnið''; grein í Morgunblaðinu 2003] == Sjá einnig == * [[Færeyski hesturinn]] [[Flokkur:Íslenski hesturinn]] 60x83nm43hf1cb97ga69ybkcbi5exs4 Sólmundur 0 17684 1975553 1819212 2026-08-16T01:13:46Z ~2026-44906-99 119608 1975553 wikitext text/x-wiki {{Íslenskt mannanafn | nafn = Sólmundur | kyn = kk | nefnifall = Sólmundur | þolfall = Sólmund | þágufall = Sólmundi | eignarfall = Sólmundar | eiginnöfn = 29 | millinöfn = 3 | dagsetning = 1. janúar 2025 }} '''Sólmundur''' er [[íslenskt karlmannsnafn]]. == Dreifing á Íslandi == {{Þjóðskrártölfræði}} <timeline> ImageSize = width:600 height:320 PlotArea = left:40 right:10 top:40 bottom:40 AlignBars = late DateFormat = yyyy Period = from:1949 till:2008 TimeAxis = orientation:horizontal ScaleMajor = unit:year increment:5 start:1950 Colors = id:canvas value:white id:fyrsta value: rgb(0.1,0.1,0.7) id:seinna value: rgb(1,0.7,0) Backgroundcolors = canvas:canvas TextData = pos:(5,310) textcolor:black fontsize:S text:Fjöldi pos:(550,20) textcolor:black fontsize:S text:Ár pos:(250,310) textcolor:black fontsize:M text:Heildarfjöldi nafngifta fyrir karlmannsnafnið Sólmundur pos:(50,315) textcolor:fyrsta fontsize:S text:fyrsta nafn pos:(50,300) textcolor:seinna fontsize:S text:seinni nöfn BarData = bar:5 text:5 bar:4 text:4 bar:3 text:3 bar:2 text:2 bar:1 text:1 LineData= color:fyrsta width:5 at:1951 frompos:40 tillpos:90 #1 at:1953 frompos:40 tillpos:90 #1 at:1956 frompos:40 tillpos:140 #2 at:1965 frompos:40 tillpos:90 #1 at:1967 frompos:40 tillpos:140 #2 at:1968 frompos:40 tillpos:90 #1 at:1973 frompos:40 tillpos:140 #2 at:1976 frompos:40 tillpos:90 #1 at:1982 frompos:40 tillpos:140 #2 at:1983 frompos:40 tillpos:90 #1 at:1987 frompos:40 tillpos:90 #1 at:1988 frompos:40 tillpos:90 #1 at:1991 frompos:40 tillpos:90 #1 at:1993 frompos:40 tillpos:90 #1 at:1995 frompos:40 tillpos:90 #1 at:1996 frompos:40 tillpos:90 #1 at:2001 frompos:40 tillpos:140 #2 at:2005 frompos:40 tillpos:90 #1 at:2006 frompos:40 tillpos:90 #1 color:seinna width:1 at:1953 frompos:40 tillpos:90 #1 at:1972 frompos:40 tillpos:90 #1 at:1993 frompos:40 tillpos:90 #1 </timeline> <timeline> ImageSize = width:600 height:320 PlotArea = left:40 right:10 top:40 bottom:40 AlignBars = late DateFormat = yyyy Period = from:1949 till:2008 TimeAxis = orientation:horizontal ScaleMajor = unit:year increment:5 start:1950 Colors = id:canvas value:white id:fyrsta value: rgb(0.1,0.1,0.7) id:seinna value: rgb(1,0.7,0) Backgroundcolors = canvas:canvas TextData = pos:(5,310) textcolor:black fontsize:S text:Hlutfall pos:(550,20) textcolor:black fontsize:S text:Ár pos:(250,310) textcolor:black fontsize:M text:Hlutfall nafngifta fyrir karlmannsnafnið Sólmundur pos:(50,315) textcolor:fyrsta fontsize:S text:fyrsta nafn pos:(50,300) textcolor:seinna fontsize:S text:seinni nöfn BarData = bar:5 text:1 % bar:4 text:0.8 % bar:3 text:0.6 % bar:2 text:0.4 % bar:1 text:0.2 % LineData= color:fyrsta width:5 at:1951 frompos:40 tillpos:50 #0.04% at:1953 frompos:40 tillpos:48 #0.03% at:1956 frompos:40 tillpos:55 #0.06% at:1965 frompos:40 tillpos:48 #0.03% at:1967 frompos:40 tillpos:55 #0.06% at:1968 frompos:40 tillpos:48 #0.03% at:1973 frompos:40 tillpos:53 #0.05% at:1976 frompos:40 tillpos:48 #0.03% at:1982 frompos:40 tillpos:53 #0.05% at:1983 frompos:40 tillpos:48 #0.03% at:1987 frompos:40 tillpos:48 #0.03% at:1988 frompos:40 tillpos:48 #0.03% at:1991 frompos:40 tillpos:48 #0.03% at:1993 frompos:40 tillpos:48 #0.03% at:1995 frompos:40 tillpos:48 #0.03% at:1996 frompos:40 tillpos:48 #0.03% at:2001 frompos:40 tillpos:53 #0.05% at:2005 frompos:40 tillpos:48 #0.03% at:2006 frompos:40 tillpos:48 #0.03% color:seinna width:1 at:1953 frompos:40 tillpos:65 #0.1% at:1972 frompos:40 tillpos:55 #0.06% at:1993 frompos:40 tillpos:55 #0.06% </timeline> == Heimildir == * {{vefheimild|url=http://www.rettarheimild.is/mannanofn|titill=Mannanafnaskrá|archive-url=https://vefsafn.is/is/20061115051547/http://www.rettarheimild.is/mannanofn|archive-date=15. nóvember 2006|mánuðurskoðað=10. nóvember|árskoðað=2005}} * {{þjóðskrárheimild|nóvember 2005}} [[Flokkur:Íslensk karlmannsnöfn]] f1lee6r90h31qzo2214h1vx62osaah5 1975554 1975553 2026-08-16T01:14:13Z ~2026-44906-99 119608 1975554 wikitext text/x-wiki {{Íslenskt mannanafn | nafn = Sólmundur | kyn = kk | nefnifall = Sólmundur | þolfall = Sólmund | þágufall = Sólmundi | eignarfall = Sólmundar | eiginnöfn = 29 | millinöfn = 4 | dagsetning = 1. janúar 2025 }} '''Sólmundur''' er [[íslenskt karlmannsnafn]]. == Dreifing á Íslandi == {{Þjóðskrártölfræði}} <timeline> ImageSize = width:600 height:320 PlotArea = left:40 right:10 top:40 bottom:40 AlignBars = late DateFormat = yyyy Period = from:1949 till:2008 TimeAxis = orientation:horizontal ScaleMajor = unit:year increment:5 start:1950 Colors = id:canvas value:white id:fyrsta value: rgb(0.1,0.1,0.7) id:seinna value: rgb(1,0.7,0) Backgroundcolors = canvas:canvas TextData = pos:(5,310) textcolor:black fontsize:S text:Fjöldi pos:(550,20) textcolor:black fontsize:S text:Ár pos:(250,310) textcolor:black fontsize:M text:Heildarfjöldi nafngifta fyrir karlmannsnafnið Sólmundur pos:(50,315) textcolor:fyrsta fontsize:S text:fyrsta nafn pos:(50,300) textcolor:seinna fontsize:S text:seinni nöfn BarData = bar:5 text:5 bar:4 text:4 bar:3 text:3 bar:2 text:2 bar:1 text:1 LineData= color:fyrsta width:5 at:1951 frompos:40 tillpos:90 #1 at:1953 frompos:40 tillpos:90 #1 at:1956 frompos:40 tillpos:140 #2 at:1965 frompos:40 tillpos:90 #1 at:1967 frompos:40 tillpos:140 #2 at:1968 frompos:40 tillpos:90 #1 at:1973 frompos:40 tillpos:140 #2 at:1976 frompos:40 tillpos:90 #1 at:1982 frompos:40 tillpos:140 #2 at:1983 frompos:40 tillpos:90 #1 at:1987 frompos:40 tillpos:90 #1 at:1988 frompos:40 tillpos:90 #1 at:1991 frompos:40 tillpos:90 #1 at:1993 frompos:40 tillpos:90 #1 at:1995 frompos:40 tillpos:90 #1 at:1996 frompos:40 tillpos:90 #1 at:2001 frompos:40 tillpos:140 #2 at:2005 frompos:40 tillpos:90 #1 at:2006 frompos:40 tillpos:90 #1 color:seinna width:1 at:1953 frompos:40 tillpos:90 #1 at:1972 frompos:40 tillpos:90 #1 at:1993 frompos:40 tillpos:90 #1 </timeline> <timeline> ImageSize = width:600 height:320 PlotArea = left:40 right:10 top:40 bottom:40 AlignBars = late DateFormat = yyyy Period = from:1949 till:2008 TimeAxis = orientation:horizontal ScaleMajor = unit:year increment:5 start:1950 Colors = id:canvas value:white id:fyrsta value: rgb(0.1,0.1,0.7) id:seinna value: rgb(1,0.7,0) Backgroundcolors = canvas:canvas TextData = pos:(5,310) textcolor:black fontsize:S text:Hlutfall pos:(550,20) textcolor:black fontsize:S text:Ár pos:(250,310) textcolor:black fontsize:M text:Hlutfall nafngifta fyrir karlmannsnafnið Sólmundur pos:(50,315) textcolor:fyrsta fontsize:S text:fyrsta nafn pos:(50,300) textcolor:seinna fontsize:S text:seinni nöfn BarData = bar:5 text:1 % bar:4 text:0.8 % bar:3 text:0.6 % bar:2 text:0.4 % bar:1 text:0.2 % LineData= color:fyrsta width:5 at:1951 frompos:40 tillpos:50 #0.04% at:1953 frompos:40 tillpos:48 #0.03% at:1956 frompos:40 tillpos:55 #0.06% at:1965 frompos:40 tillpos:48 #0.03% at:1967 frompos:40 tillpos:55 #0.06% at:1968 frompos:40 tillpos:48 #0.03% at:1973 frompos:40 tillpos:53 #0.05% at:1976 frompos:40 tillpos:48 #0.03% at:1982 frompos:40 tillpos:53 #0.05% at:1983 frompos:40 tillpos:48 #0.03% at:1987 frompos:40 tillpos:48 #0.03% at:1988 frompos:40 tillpos:48 #0.03% at:1991 frompos:40 tillpos:48 #0.03% at:1993 frompos:40 tillpos:48 #0.03% at:1995 frompos:40 tillpos:48 #0.03% at:1996 frompos:40 tillpos:48 #0.03% at:2001 frompos:40 tillpos:53 #0.05% at:2005 frompos:40 tillpos:48 #0.03% at:2006 frompos:40 tillpos:48 #0.03% color:seinna width:1 at:1953 frompos:40 tillpos:65 #0.1% at:1972 frompos:40 tillpos:55 #0.06% at:1993 frompos:40 tillpos:55 #0.06% </timeline> == Heimildir == * {{vefheimild|url=http://www.rettarheimild.is/mannanofn|titill=Mannanafnaskrá|archive-url=https://vefsafn.is/is/20061115051547/http://www.rettarheimild.is/mannanofn|archive-date=15. nóvember 2006|mánuðurskoðað=10. nóvember|árskoðað=2005}} * {{þjóðskrárheimild|nóvember 2005}} [[Flokkur:Íslensk karlmannsnöfn]] kbc40vflp4b5azqmwwk8gdvurezvu92 Woodrow Wilson 0 32985 1975555 1964092 2026-08-16T01:18:24Z TKSnaevarr 53243 1975555 wikitext text/x-wiki {{Forseti |nafn = Woodrow Wilson |mynd = Thomas Woodrow Wilson, Harris & Ewing bw photo portrait, 1919.jpg |myndatexti1 = Woodrow Wilson árið 1919. |titill = [[Forseti Bandaríkjanna]] |stjórnartíð_start = [[4. mars]] [[1913]] |stjórnartíð_end = [[4. mars]] [[1921]] |vara_forseti = [[Thomas R. Marshall]] |forveri = [[William Howard Taft]] |eftirmaður = [[Warren G. Harding]] |titill2 = [[Fylkisstjóri (Bandaríkin)|Fylkisstjóri]] [[New Jersey]] |stjórnartíð_start2 = [[17. janúar]] [[1911]] |stjórnartíð_end2 = [[1. mars]] [[1913]] |forveri2 = [[John Franklin Fort]] |eftirmaður2 = [[James Fairman Fielder]] |fæddur = [[28. desember]] [[1856]] |fæðingarstaður = [[Staunton]], [[Virginía (fylki)|Virginíu]], [[Bandaríkin|Bandaríkjunum]] |dánardagur = {{Dánardagur og aldur|1924|2|3|1856|12|28}} |dánarstaður = [[Washington, D. C.]], Bandaríkjunum |þjóderni = [[Bandaríkin|Bandarískur]] |stjórnmálaflokkur = [[Demókrataflokkurinn]] |maki = {{gifting|[[Ellen Axson Wilson|Ellen Axson]]|1885|1914|orsök=dó}}<br>{{gifting|[[Edith Wilson|Edith Bolling]]|1915}} |börn = 3 |háskóli = [[Davidson-háskóli]]<br>[[Princeton-háskóli]] ([[Baccalaureus Artium|AB]])<br>[[Johns Hopkins-háskóli]] ([[Philosophiae Doctor|PhD]]) |undirskrift = Woodrow Wilson Signature 2.svg }} '''Thomas Woodrow Wilson''' ([[28. desember]] [[1856]] – [[3. febrúar]] [[1924]]) var 28. [[forseti Bandaríkjanna]] frá [[4. mars]] [[1913]] til 4. mars [[1921]]. Áður var hann skólastjóri [[Princeton-háskóli|Princeton]]-háskólans og fylkisstjóri [[New Jersey]]. Í forsetatíð hans var [[bandaríski seðlabankinn]] stofnaður. [[1917]] kom hann á [[herskylda|herskyldu]] þegar Bandaríkjamenn hófu þátttöku í [[fyrri heimsstyrjöldin]]ni. Eftir styrjöldina átti hann mikinn þátt í stofnun [[Þjóðabandalagið|Þjóðabandalagsins]] og skilyrðum [[Versalasamningurinn|Versalasamningsins]] en samningurinn var ekki samþykktur af [[Öldungadeild Bandaríkjaþings|öldungadeildinni]] né heldur gengu Bandaríkjamenn í Þjóðabandalagið. Wilson er almennt talinn með betri forsetum Bandaríkjanna frá upphafi<ref>Arthur M. Schlesinger, Jr., "Ranking the Presidents: From Washington to Clinton". ''Political Science Quarterly'' (1997). 112#2: 179–90.</ref> en kynþáttahyggja hans hefur óumdeilanlega skyggt á ímynd hans í seinni tíð.<ref>{{Vefheimild|titill=Princeton-háskóli snýr baki við Woodrow Wilsonm|url=https://vardberg.is/frettir/princeton-haskoli-snyr-baki-vid-woodrow-wilsonm/|útgefandi=''[[Varðberg]]''|dags=29/06/2020|skoðað=23. ágúst 2023}}</ref> ==Æviágrip== Wilson fæddist í Staunton í [[Virginía (fylki)|Virginíu]] og var af ætt þrælaeigenda. Hann varði fyrstu árum sínum í Augusta í [[Georgía (fylki)|Georgíu]]. Á barnsaldri varð Wilson fyrir áhrifum af [[Þrælastríðið|þrælastríðinu]] og af uppgjafarhermönnum úr her [[Suðurríkjasambandið|Suðurríkjasambandsins]].<ref>{{Tímarit.is|5969526|Woodrow Wilson|útgáfudagsetning=1. febrúar 1944|blað=[[Dagskrá: tímarit um þjóðfélagsmál]]|höfundur=Stefán Júlíusson|blaðsíða=60–72}}</ref> Faðir Wilsons var einn af stofnendum [[Öldungakirkjan|öldungakirkjunnar]] í Bandaríkjunum. Eftir að Wilson útskrifaðist úr [[Johns Hopkins-háskóli|Johns Hopkins-háskóla]] með doktorsgráðu í [[stjórnmálafræði]] gerðist hann kennari í ýmsum skólum. Hann kenndi lögfræði og hagfræði við [[Princeton-háskóli|Princeton-háskóla]] frá árinu 1890 og fyrirlestrar hans nutu talsverðra vinsælda. Wilson var síðan einróma kjörinn nýr rektor háskólans árið 1902.<ref name=samvinnan>{{Tímarit.is|4297912|Leiðin til Hvíta hússins|útgáfudagsetning=1. mars 1986|blað=[[Samvinnan]]|höfundur=Haraldur Jóhannsson|blaðsíða=52-59}}</ref> Wilson taldi að bandarískir háskólar þyrftu að vera „af sama anda og alþýða manna“ og kom því sem rektor á ýmsum umbótum á kennsluháttum og félagslífi Princeton-skóla, sérstaklega að enskri fyrirmynd.<ref name=samvinnan/> Árið 1910 fengu leiðtogar Demókrata hann til að gerast [[Fylkisstjóri (Bandaríkin)|fylkisstjóri]] í [[New Jersey]]. Hann gegndi því embætti frá 1911 til 1912 og óhlýðnaðist valdsmönnum flokksins með því að koma í gegn ýmsum framfarasinnuðum umbótum. Hann vann sér inn orðstír um allt landið sem framfarasinnaður umbótamaður og varð jafnframt vinsæll í suðurríkjum Bandaríkjanna vegna uppruna síns þar. Árið 1912 var Wilson kosinn frambjóðandi Demókrataflokksins í undankjöri fyrir forsetakosningarnar árið 1912. [[Theodore Roosevelt]], fyrrverandi forseti Repúblikana, bauð sig sjálfstætt fram í kosningunum á móti sitjandi forseta úr röðum Repúblikana, [[William Howard Taft]].<ref name=almanak/> Atkvæðahópur Repúblikana var því klofinn og Wilson bar sigur úr býtum. ===Forsetatíð (1913-1921)=== Þegar Wilson tók við embætti kallaði hann saman efri deild bandaríska þingsins og kynnti með þeim til sögunnar nýjan [[Tekjuskattur|tekjuskatt]] árið 1913. Skatturinn átti að draga úr ríkisútgjöldum á móti lækkun á verndartollum. Wilson stofnaði jafnframt seðlabanka Bandaríkjanna. Stefnumál Wilsons gengu undir nafninu „nýja frelsið“<ref name=almanak>{{Tímarit.is|4663869|Woodrow Wilson Bandaríkjaforseti og stjórnmálahugsjónir hans|útgáfudagsetning=1. janúar 1914|blað=[[Almanak Ólafs S. Thorgeirssonar]]|blaðsíða=20-46|höfundur=F. J. Bergmann}}</ref> (''New Freedom'') og komu á ýmsum nýjum ríkisreknum eftirlitsstofnunum sem áttu að fylgjast með efnahaginum. Wilson útnefndi fjölmarga stjórnmálamenn frá suðurríkjunum í ríkisstjórn sína og þeir kröfðust þess að aðskilnaði kynþátta yrði komið á í fjármálaráðuneytinu og ýmsum öðrum ríkisstofnunum. Þegar [[fyrri heimsstyrjöldin]] braust út árið 1914 hélt Wilson Bandaríkjunum hlutlausum í byrjun. Wilson vann naumt endurkjör árið 1916 með slagorðinu „Hann hélt okkur utan við stríð!“ („''He kept us out of war!''“). Ríkisstjórn Wilson greip inn í [[Mexíkóska byltingin|mexíkósku byltinguna]] með hervaldi en fór ekki í stríð vegna hennar. Árið 1917 hóf [[Þýska keisaraveldið|Þýskaland]] óheftan kafbátahernað gegn bandarískum kaupskipum. Í [[Zimmermann-símskeytið|Zimmermann-símskeytinu]] stungu Þjóðverjar jafnframt upp á því að Mexíkanar ættu að lýsa yfir stríði gegn Bandaríkjunum ef Bandaríkjamenn gengju inn í styrjöldina við hlið bandamanna.<ref name=iðunn>{{Tímarit.is|4717734|Woodrow Wilson|blað=[[Iðunn (tímarit)|Iðunn]]|útgáfudagsetning=1. apríl 1918|blaðsíða=286-300}}</ref> Í apríl bað Wilson þingið að lýsa yfir stríði til þess að „gera heiminn öruggan fyrir lýðræði“. Bandaríkin sendu mat, birgðir, lán og hermenn til Frakklands; um 10.000 hermenn á dag þegar komið var fram á árið 1918. Wilson einbeitti sér að fjármálum og milliríkjasamskiptum og lét hershöfðingjann [[John J. Pershing]] um hernaðarmálin. Heima fyrir hækkaði Wilson tekjuskatta og aflaði milljörðum dollara með því að selja almenningnum „Frelsisskuldabréf“ (''Liberty Bonds''). Hann kom einnig á herskyldu. Hann hvatti til samstarfs við stéttarfélög verkamanna, setti eftirlitsreglur á landbúnað og matarframleiðslu og tók við stjórnvöl járnbrautakerfis landsins. Snemma árs 1918 gaf Wilson út „[[Fjórtán punktarnir|fjórtán punktana]]“ sem lýstu gildum hans um það hvernig ætti að koma á friði eftir lok stríðsins. Eftir að samið var um vopnahlé í nóvember 1918 ferðaðist Wilson til Parísar og kom að gerð [[Versalasamningurinn|Versalasaminganna]] ásamt [[David Lloyd George]] forsætisráðherra Bretlands og [[Georges Clemenceau]] forsætisráðherra Frakklands. Wilson ferðaðist síðan um Bandaríkin til að vinna sér stuðning fyrir staðfestingu á Versalasamningnum og inngöngu Bandaríkjanna í [[Þjóðabandalagið]] en hann fék [[heilablóðfall]] í október árið 1919. Á síðasta ári sínu í embætti einangraði Wilson sig í hvíta húsinu og naut lítilla áhrifa vegna veikinda sinna. Eiginkona Wilsons, [[Edith Wilson|Edith]], fór í reynd með völd forsetaembættisins á meðan Wilson var rúmliggjandi og varð nokkurs konar „leyniforseti“ í nafni eiginmanns síns.<ref name=mbl>{{Tímarit.is|1360893|Síðustu dagar Wilsons forseta Bandaríkjanna|blað=[[Morgunblaðið]]|útgáfudagsetning=27. september 1964|blaðsíða=15}}</ref> Bandaríska þingið hafnaði að endingu Versalasamningnum og Bandaríkin gengu aldrei í Þjóðabandalagið. Wilson settist í helgan stein árið 1921 og lést árið 1924. ==Tilvísanir== <references/> {{Töflubyrjun}} {{Erfðatafla | titill = [[Forseti Bandaríkjanna]] | frá = 1913 | til = 1921 | fyrir = [[William Howard Taft]] | eftir = [[Warren G. Harding]] }} {{Töfluendir}} {{Forsetar Bandaríkjanna}} {{Friðarverðlaun Nóbels}} {{stubbur|æviágrip|saga|stjórnmál}} {{Stubbur|bandaríkin}} {{fde|1856|1924|Wilson, Woodrow}} {{DEFAULTSORT:Wilson, Woodrow}} [[Flokkur:Demókratar|Wilson, Woodrow]] [[Flokkur:Forsetar Bandaríkjanna|Wilson, Woodrow]] [[Flokkur:Fylkisstjórar New Jersey]] [[Flokkur:Handhafar friðarverðlauna Nóbels]] [[Flokkur:Stjórnmálaleiðtogar í fyrri heimsstyrjöldinni]] igag2i08tcwq4osmvznwlioumu8q1uj Snið:Tl 10 35331 1975365 1622488 2021-02-12T22:03:00Z en>Anthony Appleyard 0 Anthony Appleyard moved page [[Template:Tl]] to [[Template:Template link]]: [[Special:Permalink/1006428669|Requested]] by Buidhe at [[WP:RM/TR]]: RM closed as move 1975365 wikitext text/x-wiki #REDIRECT [[Template:Template link]] {{Redirect category shell| {{R from move}} }} p1dn3i2ckb7gtckkrbn0xh6ckx8nei1 1975366 1797098 2026-08-15T16:50:43Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Tl]] 1797098 wikitext text/x-wiki &#123;&#123;[[Snið:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|<nowiki>|</nowiki>{{{2}}}}}&#125;&#125;<noinclude> {{documentation}} [[Flokkur:Flakksnið]] </noinclude> b5vx4h8hu2ct6g2fz2sujlg8ttyx575 Snið:Documentation subpage 10 35332 1975457 1784318 2026-07-26T21:53:49Z en>Jlwoodwa 0 [[mw:Help:Magic words#EXPECTED_UNCONNECTED_PAGE|__EXPECTED_UNCONNECTED_PAGE__]] 1975457 wikitext text/x-wiki <includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = [[File:Edit-copy green.svg|40px|alt=icon]] | text = {{strong|This is a [[Wikipedia:Template documentation|documentation subpage]]}} for {{terminate sentence|{{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}}}<br />It may contain usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. }} }}<!-- -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!-- --><includeonly>__EXPECTED_UNCONNECTED_PAGE__</includeonly><!-- -->{{#if:{{{nocat|}}}{{{inhibit|}}}|<!--(don't categorize)--> |<includeonly><!-- -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}} | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | [[Category:Documentation subpages without corresponding pages]] }}<!-- --></includeonly> }}<!-- (completing initial #ifeq: at start of template:) --><includeonly> | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--> }}<!-- --></includeonly><noinclude>{{Documentation}}</noinclude> iwz7dreef73y68fx96yxyj3ry6l1x58 1975458 1975457 2026-08-15T16:50:49Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Documentation_subpage]] 1975457 wikitext text/x-wiki <includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = [[File:Edit-copy green.svg|40px|alt=icon]] | text = {{strong|This is a [[Wikipedia:Template documentation|documentation subpage]]}} for {{terminate sentence|{{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}}}<br />It may contain usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. }} }}<!-- -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!-- --><includeonly>__EXPECTED_UNCONNECTED_PAGE__</includeonly><!-- -->{{#if:{{{nocat|}}}{{{inhibit|}}}|<!--(don't categorize)--> |<includeonly><!-- -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}} | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | [[Category:Documentation subpages without corresponding pages]] }}<!-- --></includeonly> }}<!-- (completing initial #ifeq: at start of template:) --><includeonly> | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--> }}<!-- --></includeonly><noinclude>{{Documentation}}</noinclude> iwz7dreef73y68fx96yxyj3ry6l1x58 1975517 1975458 2026-08-15T18:25:40Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975457|1975457]] frá notandanum [[:en:User:Jlwoodwa|en>Jlwoodwa]] 1975517 wikitext text/x-wiki <includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = [[File:Edit-copy green.svg|40px|alt=|link=]] | text = '''Þetta er leiðbeiningarsíða á undirsíðu''' fyrir {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}<br />Það inniheldur notkunarupplýsingar, flokka og annað efni sem er ekki hluta af {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} sniðinu |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} síðunni|greininni}}}}}}}}. }} }}<!-- -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!-- -->{{#if:{{{inhibit|}}} |<!--(don't categorize)--> | <includeonly><!-- -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}} |{{#ifeq:{{SUBJECTSPACE}} | Snið | [[Flokkur:Sniðaupplýsingar]]| [[Category:{{#switch:{{SUBJECTSPACE}} |Snið=Template |Module=Module |Notandi=User |#default=Wikipedia}} documentation pages]]}} | [[Category:Documentation subpages without corresponding pages]] }}<!-- --></includeonly> }}<!-- (completing initial #ifeq: at start of template:) --><includeonly> | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--> }}<!-- --></includeonly><noinclude>{{Documentation}}[[Flokkur:Sniðaupplýsingar]] </noinclude> nwbi84r7o3nfexvz4hnufb18kkyv6jo Snið:Nowrap 10 52998 1975363 1423581 2015-11-28T10:13:53Z en>Edokter 0 Adapt comment; edits inside noinclude blocks should not affect job queue, but won't kill parser either way. 1975363 wikitext text/x-wiki <span class="nowrap">{{{1}}}</span><noinclude> {{documentation}} <!-- Categories go on the /doc page; interwikis go to Wikidata. --> </noinclude> avb5tcymgupik1ikutqclidkj9tnitx 1975364 1791457 2026-08-15T16:50:43Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Nowrap]] 1791457 wikitext text/x-wiki <span class="nowrap">{{{1}}}</span><noinclude> {{documentation}} [[Flokkur:Grunnsnið]] </noinclude> dursgqdx3ohjao96wge88c5u13os8em Bardagaíþrótt 0 60841 1975520 1974754 2026-08-15T19:07:04Z InternetArchiveBot 75347 Bætir við 1 bók til að [[Wikipedia:Sannreynanleikareglan|sannreyna]] (20260815sim)) #IABot (v2.0.9.5) ([[User:GreenC bot|GreenC bot]] 1975520 wikitext text/x-wiki [[Mynd:Womens_Muay_Thai_teep.jpg|thumb|right|Keppni í [[taíbox]]i kvenna.]] '''Bardagaíþrótt''' eða '''sjálfsvarnaríþrótt''' er [[íþrótt]] þar sem tveir eða fleiri keppa í [[bardagi|bardaga]] í [[návígi]] samkvæmt tilteknum keppnisreglum ýmist með eða án [[vopn]]a. Dæmi um bardagaíþróttir eru [[hnefaleikar]], [[glíma]] og [[skylmingar]]. Fólk leggur stund á bardagaíþróttir af ýmsum ástæðum, svo sem fyrir [[líkamsrækt]], sem [[keppnisíþrótt]], í [[sjálfsvörn|sjálfsvarnarskyni]], og til beitingar í [[slagsmál]]um og [[götubardagi|götubardögum]].<ref>{{cite journal|author=Godfrey, E.|year=2010|title=Urban heroes versus folk devils: civilian self-defence in London (1880-1914)|journal=Crime, Histoire & Sociétés/Crime, History & Societies|volume=14|number=2|pages=5-30|url=https://journals.openedition.org/chs/1185}}</ref> Bardagaíþróttir eru líka hluti af þjálfun [[hermaður|hermanna]] og [[lögregla|lögreglu]].<ref>{{cite journal|author1=Öztürk, E.|author2=Yanar, N.|year=2021|title=Comparison of Defence Arts by Country in Law Enforcement Education|journal=Scientific Bulletin|volume=26|number=2|pages=168-175|doi=10.2478/bsaft-2021-0020}}</ref> Hugtök á borð við „bardagaíþrótt“ eða „sjálfsvarnaríþrótt“ voru búin til til að lýsa hefðbundnum íþróttum frá [[Austur-Asía|Austur-Asíu]], á borð við [[jiu jitsu]], [[karate]] og [[kung fu]].<ref>{{tímarit.is|4218888|Júdó|höfundur=Þór Indriðason|blað=Skinfaxi|dags=1. febrúar 1981|bls=14-15}}</ref> Seinna var tekið að telja með vestrænar íþróttagreinar á borð við skylmingar og hnefaleika, þar sem barist er í návígi. Fjölmargar hefðbundnar vestrænar íþróttagreinar eiga sér uppruna sem tengist þjálfun í hernaði. Dæmi um það eru [[spjótkast]], [[kringlukast]], [[bogfimi]] og [[hindrunarstökk]]. [[Fimmtarþraut]] og [[nútímafimmtarþraut]] eru samsettar fjölíþróttagreinar sem áttu upphaflega að endurspegla þjálfun hermanna.<ref>{{cite journal|author=Heck, S.|year=2011|title=Modern Pentathlon and the First World War: When Athletes and Soldiers Met to Practise Martial Manliness|url=https://archive.org/details/sim_international-journal-of-the-history-of-sport_2011-03_28_3-4/page/410|journal=The International Journal of the History of Sport|volume=28|number=3–4|pages=410–428|doi=10.1080/09523367.2011.544860}}</ref> Íþróttagreinar á borð við [[skotfimi]], bogfimi og spjótkast, sem ekki fela í sér bardaga milli tveggja keppenda í návígi, eru yfirleitt ekki flokkaðar með bardagaíþróttum. Bardagaíþróttir eru flokkaðar með ýmsu móti, til dæmis eftir því hvort þær byggist á höggum og spörkum, eða glímutökum, lásum og köstum; og eftir því hvaða vopn eru notuð. Sumar bardagaíþróttir eru fyrst og fremst sjálfsvarnaríþróttir og í sumum þeirra er lögð meiri áhersla á andlega þjálfun, siðaboðskap, íhugun og innri frið, en líkamlega færni.<ref>{{cite book|author=Corcoran, John|year=1992|title=The Martial Arts Companion: Culture, History, and Enlightenment|publisher=Mallard Press|isbn=0-7924-5762-5}}</ref> == Tegundir == === Án vopna === * [[Blandaðar bardagaíþróttir]] * [[Brasilískt ju jitsu]] * [[Capoeira]] * [[Fjölbragðaglíma]] * [[Glíma]] * [[Hnefaleikar]] * [[Ju jitsu]] * [[Júdó]] * [[Karate]] * [[Klassísk glíma]] * [[Kung Fu]] * [[Savate]] * [[Sparkbox]] * [[Súmóglíma]] * [[Taekwondo]] * [[Taíbox]] === Með vopnum === * [[Kalaripayattu]] * [[Kendó]] * [[Skylmingar]] * [[Stafbardagi]] == Tilvísanir == {{reflist}} {{stubbur|bardagaíþrótt}} [[Flokkur:Bardagaíþróttir| ]] 3b39wldagyp0o2r16xwarygw8ave7qj Snið:Documentation 10 61982 1975435 1744441 2022-03-29T02:14:34Z en>Bsherr 0 consistent with new substitution template format 1975435 wikitext text/x-wiki {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Add categories to the /doc subpage --> </noinclude> ii1kftoonz87mztj4siz1yhyqeg6agm 1975436 1967992 2026-08-15T16:50:48Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Documentation]] 1967992 wikitext text/x-wiki {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}__NOEDITSECTION__<noinclude> </noinclude> lm0wuit97bf3lhvh8drdx400710n6at Snið:Clear 10 64393 1975401 458680 2024-02-13T14:32:36Z en>Redrose64 0 pass class through 1975401 wikitext text/x-wiki <div style="clear:{{{1|both}}};" class={{{class|}}}></div><noinclude> {{documentation}} </noinclude> an9yinekx1cqo1nkoi5u8nuqub9qbvg 1975402 1975401 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Clear]] 1975401 wikitext text/x-wiki <div style="clear:{{{1|both}}};" class={{{class|}}}></div><noinclude> {{documentation}} </noinclude> an9yinekx1cqo1nkoi5u8nuqub9qbvg 1975525 1975402 2026-08-15T20:04:01Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975401|1975401]] frá notandanum [[:en:User:Redrose64|en>Redrose64]] 1975525 wikitext text/x-wiki #tilvísun [[Snið:Ryðja]] q63bhwm4kuzzmwy0ct8j5f5aneylnwr Snið:Country data United Kingdom 10 67720 1975431 516646 2026-03-22T08:49:02Z en>Santiago Claudio 0 Changed "flag alias" per December 2025 edit request 1975431 wikitext text/x-wiki {{ {{{1<noinclude>|country showdata</noinclude>}}} | alias = United Kingdom | flag alias = Flag of the United Kingdom (1-2).svg | flag alias-1707 = Naval ensign of Great Britain (1707–1800).svg | flag alias-air force = Ensign of the Royal Air Force.svg | flag alias-army = Flag of the British Army.svg | flag alias-civil = Civil Ensign of the United Kingdom.svg | flag alias-civil-air = Civil Air Ensign of the United Kingdom.svg | flag alias-coast guard = Flag of Her Majesty's Coastguard.svg | flag alias-consulate = UK-Consular.svg | flag alias-embassy = British Ambassador Flag.svg | flag alias-government = Government Ensign of the United Kingdom.svg | flag alias-marines = Flag of the Royal Marines.svg | flag alias-military = Flag of the United Kingdom (3-5).svg | flag alias-naval = Naval ensign of the United Kingdom.svg | flag alias-GS = Government Service Ensign.svg | flag alias-merchant = Civil Ensign of the United Kingdom.svg | flag alias-RFA = British-Royal-Fleet-Auxiliary-Ensign.svg | flag alias-RFA-1905 = Government Service Ensign.svg | flag alias-RMAS = British Royal Maritime Auxiliary Ensign.svg | flag alias-RNLI = Flag of the Royal National Lifeboat Institution.svg | flag alias-naval-1707 = Naval ensign of Great Britain (1707–1800).svg | flag alias-naval-GS = Government Service Ensign.svg | flag alias-naval-merchant = Civil Ensign of the United Kingdom.svg | flag alias-naval-RFA = British-Royal-Fleet-Auxiliary-Ensign.svg | flag alias-naval-RFA-1905 = Government Service Ensign.svg | flag alias-naval-RMAS = British Royal Maritime Auxiliary Ensign.svg | flag alias-naval-RNLI = Flag of the Royal National Lifeboat Institution.svg | flag alias-navy = Naval ensign of the United Kingdom.svg | link alias-air force = Royal Air Force | link alias-army = British Army | link alias-coast guard = His Majesty's Coastguard | link alias-marines = Royal Marines | link alias-military = British Armed Forces | link alias-navy = Royal Navy | link alias-naval = {{#switch:{{{variant|}}} | merchant = Merchant Navy (United Kingdom){{!}}Merchant Navy | reserve = Royal Naval Reserve | RFA = Royal Fleet Auxiliary | RFA-1905 = Royal Fleet Auxiliary | RMAS = Royal Maritime Auxiliary Service | RNLI = Royal National Lifeboat Institution | naval-merchant = Merchant Navy (United Kingdom){{!}}Merchant Navy | naval-reserve = Royal Naval Reserve | naval-RFA-1905 = Royal Fleet Auxiliary | naval-RFA = Royal Fleet Auxiliary | naval-RMAS = Royal Maritime Auxiliary Service | naval-RNLI = Royal National Lifeboat Institution | #default = Royal Navy }} | flag alias-MOD = Flag of the Ministry of Defence (United Kingdom).svg | link alias-MOD = Ministry of Defence (United Kingdom) | size = {{{size|}}} | name = {{#ifeq:{{{name|}}}|Britain|United Kingdom|{{{name|}}}}} | altlink = {{{altlink|}}} | variant = {{{variant|}}} <noinclude> | var1 = civil | var2 = government | var3 = 1707 | var4 = civil-air | var5 = embassy | var6 = consulate | var7 = GS | var8 = merchant | var9 = RFA | var10 = RFA-1905 | var11 = RMAS | var12 = RNLI | var13 = naval-1707 | var14 = naval-GS | var15 = naval-merchant | var16 = naval-RFA | var17 = naval-RFA-1905 | var18 = naval-RMAS | var19 = naval-RNLI | var20 = MOD | redir1 = UK | redir2 = United Kingdom of Great Britain and Northern Ireland | redir3 = U.K. | related1 = Great Britain | related2 = London | related3 = Kingdom of Great Britain | related4 = British Empire | related5 = United Kingdom of Great Britain and Ireland | related6 = Kingdom of England | related7 = Kingdom of Scotland </noinclude> }} 3c1bzisxfl2l5yu2nb4u7pf5o79b5na 1975432 1975431 2026-08-15T16:50:48Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Country_data_United_Kingdom]] 1975431 wikitext text/x-wiki {{ {{{1<noinclude>|country showdata</noinclude>}}} | alias = United Kingdom | flag alias = Flag of the United Kingdom (1-2).svg | flag alias-1707 = Naval ensign of Great Britain (1707–1800).svg | flag alias-air force = Ensign of the Royal Air Force.svg | flag alias-army = Flag of the British Army.svg | flag alias-civil = Civil Ensign of the United Kingdom.svg | flag alias-civil-air = Civil Air Ensign of the United Kingdom.svg | flag alias-coast guard = Flag of Her Majesty's Coastguard.svg | flag alias-consulate = UK-Consular.svg | flag alias-embassy = British Ambassador Flag.svg | flag alias-government = Government Ensign of the United Kingdom.svg | flag alias-marines = Flag of the Royal Marines.svg | flag alias-military = Flag of the United Kingdom (3-5).svg | flag alias-naval = Naval ensign of the United Kingdom.svg | flag alias-GS = Government Service Ensign.svg | flag alias-merchant = Civil Ensign of the United Kingdom.svg | flag alias-RFA = British-Royal-Fleet-Auxiliary-Ensign.svg | flag alias-RFA-1905 = Government Service Ensign.svg | flag alias-RMAS = British Royal Maritime Auxiliary Ensign.svg | flag alias-RNLI = Flag of the Royal National Lifeboat Institution.svg | flag alias-naval-1707 = Naval ensign of Great Britain (1707–1800).svg | flag alias-naval-GS = Government Service Ensign.svg | flag alias-naval-merchant = Civil Ensign of the United Kingdom.svg | flag alias-naval-RFA = British-Royal-Fleet-Auxiliary-Ensign.svg | flag alias-naval-RFA-1905 = Government Service Ensign.svg | flag alias-naval-RMAS = British Royal Maritime Auxiliary Ensign.svg | flag alias-naval-RNLI = Flag of the Royal National Lifeboat Institution.svg | flag alias-navy = Naval ensign of the United Kingdom.svg | link alias-air force = Royal Air Force | link alias-army = British Army | link alias-coast guard = His Majesty's Coastguard | link alias-marines = Royal Marines | link alias-military = British Armed Forces | link alias-navy = Royal Navy | link alias-naval = {{#switch:{{{variant|}}} | merchant = Merchant Navy (United Kingdom){{!}}Merchant Navy | reserve = Royal Naval Reserve | RFA = Royal Fleet Auxiliary | RFA-1905 = Royal Fleet Auxiliary | RMAS = Royal Maritime Auxiliary Service | RNLI = Royal National Lifeboat Institution | naval-merchant = Merchant Navy (United Kingdom){{!}}Merchant Navy | naval-reserve = Royal Naval Reserve | naval-RFA-1905 = Royal Fleet Auxiliary | naval-RFA = Royal Fleet Auxiliary | naval-RMAS = Royal Maritime Auxiliary Service | naval-RNLI = Royal National Lifeboat Institution | #default = Royal Navy }} | flag alias-MOD = Flag of the Ministry of Defence (United Kingdom).svg | link alias-MOD = Ministry of Defence (United Kingdom) | size = {{{size|}}} | name = {{#ifeq:{{{name|}}}|Britain|United Kingdom|{{{name|}}}}} | altlink = {{{altlink|}}} | variant = {{{variant|}}} <noinclude> | var1 = civil | var2 = government | var3 = 1707 | var4 = civil-air | var5 = embassy | var6 = consulate | var7 = GS | var8 = merchant | var9 = RFA | var10 = RFA-1905 | var11 = RMAS | var12 = RNLI | var13 = naval-1707 | var14 = naval-GS | var15 = naval-merchant | var16 = naval-RFA | var17 = naval-RFA-1905 | var18 = naval-RMAS | var19 = naval-RNLI | var20 = MOD | redir1 = UK | redir2 = United Kingdom of Great Britain and Northern Ireland | redir3 = U.K. | related1 = Great Britain | related2 = London | related3 = Kingdom of Great Britain | related4 = British Empire | related5 = United Kingdom of Great Britain and Ireland | related6 = Kingdom of England | related7 = Kingdom of Scotland </noinclude> }} 3c1bzisxfl2l5yu2nb4u7pf5o79b5na 1975507 1975432 2026-08-15T16:56:10Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975431|1975431]] frá notandanum [[:en:User:Santiago Claudio|en>Santiago Claudio]] 1975507 wikitext text/x-wiki #tilvísun [[Snið:Country data Bretland]] 8olxlerh4il0254z0ug6lov8uwsio98 Snið:Infobox 10 70206 1975397 1417831 2018-08-15T18:33:36Z en>Primefac 0 Undid revision 855063393 by [[Special:Contributions/Jdlrobson|Jdlrobson]] ([[User talk:Jdlrobson|talk]]) rather problematic change mentioned [[Template_talk:Infobox#Using_template_styles_to_reduce_technical_debt_inside_mobile_skin|on talk page]], reverting until it can be sorted 1975397 wikitext text/x-wiki {{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude> {{documentation}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude> f4hgwrnr11ahhwyo266vcd10dpi92pe 1975398 1754082 2026-08-15T16:50:45Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Infobox]] 1754082 wikitext text/x-wiki {{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Flokkur:Upplýsingasnið|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude> {{documentation}} [[Flokkur:Upplýsingasnið]] </noinclude> 7dbgieojd3817pyiwoo5av10899wejn Flores (Asóreyjum) 0 72502 1975350 1574583 2026-08-15T12:14:46Z Berserkur 10188 Berserkur færði [[Flores]] á [[Flores (Asóreyjum)]]: Aðgreining 1574583 wikitext text/x-wiki [[Mynd:Flores area map-en.png|thumb|Kort.]] [[Mynd:Ilha das Flores P5270221 (35170620164).jpg|thumb|Fossar á Flores.]] [[Mynd:Ilha das Flores P5260096 (35199711263).jpg|thumb|Hamrar á eyjunni]] '''Flores''' er [[eyja]] í [[Asóreyjar|Asóreyjaklasanum]] og tilheyrir [[Portúgal]]. Hún er [[vestur|vestust]] þeirra og er þar með vestasti [[land]]shluti [[Evrópa|Evrópu]]. Á Flores búa um 4000 manns, flestir í bænum Santa Cruz, sem er á norðausturhluta eyjarinnar. Á miðri vesturströndinni er bærinn Faja Grande, sem er vestasti bær Evrópu. Þar búa um 200 manns. Um 4 kílómetra norð-norðvestur af Faja Grande rís gígtappinn Ilhéu do Monchique úr hafinu. Hann er vestasti klettur Evrópu. Hnattstaða hans er 39°29'43''N, 31°16'30''V. {{stubbur|landafræði}} [[Flokkur:Asóreyjar]] d4i8n6dya8mcq10sood1xdishepxi2z Snið:Template other 10 85038 1975399 1387881 2018-12-16T22:06:25Z en>Amorymeltzer 0 Changed protection level for "[[Template:Template other]]": [[WP:High-risk templates|Highly visible template]]: Transclusion count has increased dramatically ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) 1975399 wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Template}} | template | other }} }} | template = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> 0tcssjmltwl7y5v3f5wj2kqciaabqly 1975400 1975399 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Template_other]] 1975399 wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Template}} | template | other }} }} | template = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> 0tcssjmltwl7y5v3f5wj2kqciaabqly Grótta 0 85863 1975551 1872083 2026-08-15T23:25:27Z MyraMidnight 41218 Heimildir, fyrirsagnir og nafnsifjar 1975551 wikitext text/x-wiki {{Fyrir|íþróttafélagið|Íþróttafélagið Grótta}} {{Coord|64.166667|-22.016667|type:edu_region:IS|display=title}} [[Mynd:Grótta2.JPG|thumb|300px|Grótta á Seltjarnarnesi.]] '''Grótta''' er [[örfirisey (landslagsþáttur)|örfirisey]] yst á [[Seltjarnarnes]]i. Viti var reistur í Gróttu árið 1897 en núverandi viti er frá árinu 1947. Áður fyrr var bær í Gróttu og er fyrst getið um hann í heimildum 1547. Árið 1703 var hann hjáleiga frá [[Nes við Seltjörn|Nesi]]. Bærinn fór síðar í eyði en byggðist aftur á [[19. öld]].<ref>[http://www.seltjarnarnes.is/umhverfi/grotta/ „Saga Gróttu“; af Seltjarnarnesi.is] {{Webarchive|url=https://web.archive.org/web/20091023111454/http://www.seltjarnarnes.is/umhverfi/grotta/ |date=2009-10-23 }}</ref> Nágrenni Gróttu er vinsælt útivistarsvæði. Grótta er [[friðland]] vegna fuglalífs (friðlýst 1974) og er umferð fólks bönnuð þar frá 1. maí til 1. júlí ár hvert. == Vitinn == Fyrsti vitinn í Gróttu var reistur af dönsku vitastofnuninni árið 1897. Núverandi viti er sívalur 23 metra hár hvítur steinsteyptur turn, reistur árið 1947. Vitavörður var búsettur í vitavarðarhúsinu í Gróttu frá 1897 til 1970. Ljóseinkenni Gróttuvita er Fl(3) WRG 20s (3 þrískipt blikkljós á 20 sekúndna fresti). ==Landslagsbreytingar== Miklar breytingar hafa orðið við Gróttu frá því að land byggðist, bæði vegna landsigs og landbrots, og geta því þau einkenni sem voru tilefni nafnsins verið horfin. Af elstu kortum má sjá að Grótta var upphaflega landföst, þ.e. nyrsti hluti Seltjarnarness. Áður var malarkambur úr Gróttu yfir í Suðurnes á Seltjarnarnesi, þar sem golfvöllurinn er nú. Þar fyrir innan var Seltjörn, sem gaf nesinu nafn. Malarkamburinn er nú horfinn og tjörnin orðin sjávarvík, en e.t.v. hefur Bakkatjörn áður verið innsti hluti Seltjarnar. == Nafnsifjar == Nafnið Grótta kemur af ''Grótti'', sem er [[kvörn]] úr norrænum goðsögum sem átti að geta malað hvað sem er, sbr. kvæðið [[Gróttasöngur|Gróttasöng]], og er nafnið þá dregið af holunni sem er á efri kvarnarsteininum, sem kornið var látið í.<ref>{{Vefheimild|url=https://timarit.is/page/3276903?iabr=on#page/n0/mode/1up|titill=Grótta|höfundur=Árni Óla|útgefandi=Lesbók Morgunblaðsins|mánuður=28.júlí|ár=1946|bls=309-312}}</ref> Orðið ''grótta'' merkir jarðfall eða hola, en nafnið gæti einnig hafa þýtt hellir, sbr „grotta“ í [[sænska|sænsku]]. == Tenglar == *[http://www.nat.is/travelguide/vitar_a_islandi.htm Vitar á Íslandi] {{Webarchive|url=https://web.archive.org/web/20070310210636/http://www.nat.is/travelguide/vitar_a_islandi.htm |date=2007-03-10 }} ==Tilvísanir == {{reflist}} {{Friðlönd}} {{Vitar á Íslandi}} [[Flokkur:Seltjarnarnes]] [[Flokkur:Friðlýst svæði á Íslandi]] [[Flokkur:Vitar á Íslandi]] 2tog7ov2cfugnapghqw3cmsa6sizfv6 Eiríkur 14. 0 91699 1975534 1670022 2026-08-15T21:15:14Z TKSnaevarr 53243 1975534 wikitext text/x-wiki {{konungur | titill = [[Konungur Svíþjóðar]] | ætt = [[Vasaættin|Vasaætt]] | skjaldarmerki = Arms of the House of Vasa.svg | nafn = Eiríkur 14. | mynd = Erik XIV (1533-1577) Domenicus Verwildt.jpg | skírnarnafn = Eiríkur | fæðingardagur = {{fæðingardagur|1533|12|13}} | fæðingarstaður = [[Tre Kronor]], [[Svíþjóð]] | kjörorð = Gud ger åt vem han vill (latína: ''Jehovah (Deus) dat cui vult'') | dánardagur = {{Dánardagur og aldur|1577|2|26|1533|12|13}} | dánarstaður = [[Örbyhus]], [[Svíþjóð]] | grafinn = [[Dómkirkjan í Västerås]], Svíþjóð | ríkisár = 29. september 1560 – janúar 1569 | undirskrift = Eric XIV signature.svg | faðir = [[Gústaf Vasa]] | móðir = [[Katrín af Sachsen-Lauenburg]] | maki = {{gifting|[[Karin Monsdóttir]]|1568}} | titill_maka = Eiginkona | börn = ''[[Virginía Eiríksdóttir]]''<br/>''[[Konstantía Eiríksdóttir]]''<br/>[[Sigríður Svíaprinsessa|Sigríður prinsessa]]<br/>[[Gústaf Svíaprins|Gústaf prins]] }} '''Eiríkur 14.''' ([[13. desember]] [[1533]] – [[26. febrúar]] [[1577]]) var konungur Svíþjóðar frá [[1560]] þar til hann var settur af árið [[1568]] vegna [[Geðsjúkdómur|geðsýki]]. Eftir það var hann fangelsaður til æviloka og var sennilega drepinn með eitri. == Uppvöxtur og kvonbænir == Eiríkur var sonur [[Gústaf Vasa|Gústafs Vasa]] og fyrstu konu hans, [[Katrín af Sachsen-Lauenburg|Katrín]]ar af Sachsen-Lauenburg. Móðir hans dó þegar hann var tæplega tveggja ára og skömmu síðar giftist faðir hans að nýju [[Margrét Leijonhufvud|Margréti Leijonhufvud]]. [[Jóhann 3. Svíakonungur|Jóhann]] hálfbróðir hans fæddist í árslok [[1537]], elstur af átta börnum Gústafs og Margrétar. Aðalkennari bæði Eiríks og Jóhanns var franski kalvínistinn Dionysius Beurreus. Eiríkur var góður námsmaður, einkum í tungumálum og stærðfræði, en hafði einnig góða sagnfræðikunnáttu, var ritfær og hafði þekkingu á stjörnuspeki. Eiríkur hóf þreifingar um hjónaband við ensku konungsdótturina [[Elísabet 1.|Elísabetu Tudor]], síðar drottningu, þvert gegn vilja föður síns. Hann reyndi í nokkur ár að semja um giftingu og var á leið til Englands [[1560]] þegar fregnir bárust af láti föður hans og að hann væri orðinn konungur. Þá gaf hann Elísabetu upp á bátinn en leitaði síðar eftir hjúskap við [[María Skotadrottning|Maríu Skotadrottningu]] og ýmsar evrópskar prinsessur, án árangurs. == Ríkisstjórnarár Eiríks == Eiríkur er talinn hafa verið greindur, listfengur og pólitískt metnaðargjarn, en mjög skapríkur og tortrygginn sýndi snemma einkenni geðrænna truflana sem þróuðust yfir í geðveiki. Geðlæknar sem rannsakað hafa lýsingar á konungi og hegðun hans telja að hann hafi verið [[geðklofi]] en þó ber að athuga að þegar hann var settur af er líklegt að andstæðingar hans hafi reynt að gera sem mest úr einkennunum og ekki víst að allt sé satt sem sagt var um konunginn. Sænskir aðalsmenn voru ósáttir við margt í stjórnun konungs og einn helsti leiðtogi þeirra var Jóhann, bróðir hans, sem var hertogi af [[Finnland]]i og kvæntur pólskri konungsdóttur, svo að hann naut stuðnings frá [[Pólland]]i. Eiríkur lét handtaka Jóhann 1563 fyrir landráð og hafði hann í haldi í nokkur ár. Sama ár hófst [[Sjö ára stríðið]] við Danmörku en [[Friðrik 2. Danakonungur]] var ósáttur við útþenslustefnu Eiríks í [[Eystrasaltslönd]]um. Á næstu árum virðist geðheilsu Eiríks hafa hrakað, ákvarðanir hans voru vanhugsaðar og fólu oft í sér ofbeldi. Árið [[1566]] lét hann drepa ýmsa meðlimi Sture-ættarinnar, sem hann grunaði um landráð. [[Sture-morðin]] svonefndu mæltust mjög illa fyrir og andstaða við konunginn fór sífellt vaxandi. == Karin Monsdóttir == [[Mynd:Erik XIV, King of Sweden (Georg von Rosen) - Nationalmuseum - 18157.tif|thumb|left|Eiríkur konungur með Karinu og Jöran Persson ráðgjafa sínum.]] Árið 1565 tók konungurinn sér fimmtán ára þjónustustúlku Elísabetar systur sinnar fyrir ástkonu. Hún hét [[Karin Monsdóttir]] og var af fátæku fólki komin. Eiríkur hafði áður átt fjölda hjákvenna - ein þeirra var Agda Persdóttir, sem ól honum fjórar dætur - en eftir að Karin kom til sögunnar leit hann ekki á aðrar konur. Hann lét hana fá eigin íbúð og þjónustufólk í höllinni, lét kenna henni að lesa og skrifa og þegar Sigríður dóttir þeirra fæddist 1566 var hún meðhöndluð eins og hún væri skilgetin. Karin er sögð hafa verið afar falleg, skapgóð, lítillát og ljúf og hún virðist hafa verið sú eina sem hafði tök á að róa konunginn niður. Eiríkur giftist Karinu leynilega [[1567]] og opinberlega [[1568]], eftir að hún hafði fætt honum soninn [[Gústaf Eiríksson Vasa|Gústaf]], og lét krýna þá hana drottningu undir nafninu Katrín Magnúsdóttir og lýsa börn þeirra skilgetin. Líklega var brúðkaupið kornið sem fyllti mælinn því að þótt Karin ætti sér enga óvini og nyti raunar velvildar hjá konungsfjölskyldunni vegna þeirra góðu áhrifa sem hún hafði á Eirík, þá þótti hún engan veginn honum samboðin og gifting þeirra olli mikilli hneykslun. Skömmu síðar gerðu bræður Eiríks uppreisn með stuðningi aðalsins, hnepptu konungsfjölskylduna í varðhald og settu Eirík af. Jóhann var gerður að konungi í hans stað. == Fangavist og dauði == Helsti ráðgjafi Eiríks, Jöran Persson, tók á sig mikið af sökinni fyrir illvirki sem framin höfðu verið í stjórnartíð Eiríks og var hann tekinn af lífi.Fyrstu árin var fjölskyldan höfð saman í haldi og Karin ól tvo syni í viðbót sem dóu báðir á barnsaldri. Eftir það voru þau aðskilin og skömmu síðar var Gústaf prins sendur til [[Pólland]]s, þar sem hann ólst upp. Eiríkur var hafður í haldi í ýmsum köstulum í Svíþjóð og Finnlandi en dó í Örbyhus-kastala eftir níu ára fangavist. Sagan segirað hann hafi dáið eftir að hafa borðað skál af eitraðri [[baunasúpa|baunasúpu]]. Til er bréf, undirritað af Jóhanni bróður hans og aðalsmanninum Bengt Bengtsson Gylta, þar sem varðmönnum Eiríks er gefið leyfi til að eitra fyrir honum ef einhver reyndi að leysa hann úr haldi. Seinni tíma rannsókn á beinum hans leiddi í ljós að hann hafði innbyrt banvænan skammt af [[arsenik]]i. == Heimildir == * {{wpheimild|tungumál = Sv|titill = Erik XIV |mánuðurskoðað = 11. september|árskoðað = 2010}} * {{wpheimild|tungumál = En|titill = Eric XIV of Sweden |mánuðurskoðað = 11. september|árskoðað = 2010}} {{Töflubyrjun}} {{Erfðatafla | titill = [[Svíakonungar|Svíakonungur]] | frá = [[1560]] | til = [[1568]] | fyrir = [[Gústaf 1. Vasa]] | eftir = [[Jóhann 3. Svíakonungur|Jóhann 3.]] }} {{Töfluendir}} {{Einvaldar Svíþjóðar}} [[Flokkur:Svíakonungar]] [[Flokkur:Vasaætt]] {{fd|1533|1577}} bhhlcfvjw4t9frzhmrduk2mdzy3b8pk Spjall:Aðildarviðræður Íslands við Evrópusambandið 1 95397 1975356 1924767 2026-08-15T13:49:36Z Bjarki S 9 /* */ Svar 1975356 wikitext text/x-wiki Ég legg til að greinin verði sameinuð greininni ''[[Evrópusambandið]]''. [[Notandi:Thvj|Thvj]] 27. janúar 2011 kl. 22:22 (UTC) : Greinin um Evrópusambandið er þegar 27 Kb og gæti lengst þó nokkuð án þessarar viðbótar svo ég held að það sé allt í góðu að hafa þetta áfram sem sérstaka grein, enda enginn stubbur hér á ferð. Þessi grein hefur meira að segja burði til þess að lengjast líka og gæti orðið allítarleg. --[[Notandi:Cessator|Cessator]] 27. janúar 2011 kl. 22:42 (UTC) : Sammála Cessator. Greinin um Evrópusambandið er mjög stuttaraleg og mætti auðveldlega tvöfalda hana að stærð. Mikið á eftir að bætast við þessa hérna grein. --[[Notandi:Jabbi|Jabbi]] 28. janúar 2011 kl. 01:12 (UTC) :: Skil sjónarmið ykkar, en vandamál þessarar greina er að efni hennar er mjög óljóst eða hvað er átt við með ''Ísland og Evrópusambandið''? Er þetta sérstakt hugtak í Íslensku eða kannske bara ''pólitískt slagorð'' - er e.t.v. aðeins verið að fjalla um ''[[Umsókn Íslands að Evrópusambandinu]]''? Slík grein ætti þá að merkja með ''líðandi stund'' . - Auk þess fyndist mér vel fara á að hafa smá klausu um Ísland og Evrópusambandið í greininni [[Evrópusambandið]]. [[Notandi:Thvj|Thvj]] 28. janúar 2011 kl. 13:48 (UTC) ::: Það er nú þegar kafli um Ísland og Evrópusambandið í greininni um Evrópusambandið. Ég er reyndar þeirrar skoðunar að það ætti að fara lítið fyrir honum þar af því að í grein um Evrópusambandið skiptir Ísland einfaldlega litlu máli. Það mætti reyndar líka hafa þannig kafla í greininni um Ísland og þar gæti hann verið fyrirferðameiri en í greininni um Evrópusambandið. En hvað titilinn varðar, þá skil ég hann svo að hann vísi til tengsla Íslands og Evrópusambandsins. Ekki ósvipað og greinin [[:en:Norway – European Union relations]] (en þess má geta að [[:en:Norway and the European Union]] er tilvísun á þá grein) eða [[:en:Switzerland – European Union relations]] (en [[:en:Switzerland and the European Union]] er tilvísun á þá grein). --[[Notandi:Cessator|Cessator]] 28. janúar 2011 kl. 14:16 (UTC) :::: Ok, tók nú loks eftir kaflanum í greininni um Es. Er þó ómsammála fullyrðingu Cessators um að "í grein um Es skipti Íslandi litlu máli", því umsóknarferlið, sem sumir kalla í hálfkæringu "aðlögunarferli", er í fullum gangi og gæti í framtíðinni leitt til inngöngu Íslands í Es. (Ég reikna að sjálfsögðu með að fulltrúar Es taki umsókn okkar alvarlega.) Hins vegar á ég bágt með að skilja þessa grein, sem um ræðir. Um hvað fjallar hún eiginlega, ef ekki umsókanrferli Íslands að Es og ætti þá að nefnast ''[[Umsókn Íslands að Es]]'', ''umsókarferli'' e.þ.h.? - Auk þess vantar skilgreiningu í upphafi greinarinnar, eða treystir sig nokkur til að skirfa skilgreininguna, þ.a. ljóst verði um hvað greinin eigi að fjalla? [[Notandi:Thvj|Thvj]] 28. janúar 2011 kl. 17:13 (UTC) ::::: Hún ætti auðvitað að fjalla að verulegu leyti um umsóknarferlið en ekki eingöngu það, því jafnvel þótt Ísland hefði ekki sótt um inngöngu hefði greinin átt rétt á sér og hefði fjallað um sams konar hluti og greinarnar „Noregur og Evrópusambandið“ og „Sviss og Evrópusambandið“ gera á ensku. Það sem ég átt við með að Ísland skipti litlu máli er einfaldlega það að fyrir ESB skiptir Ísland litlu máli. Við getum t.d. ímyndað okkur að einhver sé að skrifa grein um ESB á japönsku eða kínversku Wikipediunni og velti fyrir sér hvaða kafla hann ætti að hafa; hann myndi aldrei komast að þeirri niðurstöðu að í grein um ESB væri mikilvægt að hafa kaflann „Ísland og ESB“. Það mun hins vegar breyta miklu meiru fyrir Ísland en fyrir Evrópusambandið ef Ísland gengur í ESB og þess vegna er þetta mikilvægari kafli í greininni um Ísland. --[[Notandi:Cessator|Cessator]] 28. janúar 2011 kl. 17:22 (UTC) ::: Jú, Ísland er vissulega agnarlítið í samanburði við Es og þannig séð má segja að kvantitatíft skipti Ísland skipti litlu fyrir Es, en það er aukaatriði. Treystir Cessator eða einvher annar sér til að skrifa skilgreiningu, sem skýrir um hvað greinin eigi að fjalla ef ekki um umsóknarferlið (tæknilega séð)? E.t.v. á hún að fjalla að einhverju leyti um sálarástand þjóðarinnar, sjálfsmynd og þjóðernisímynd í skugga "hins ægilega" Evrópusambands? (Það væri reyndar verðugt verkefni að fjalla um sálarástand þjóðarinnar á hinum ýmsu tímum.) [[Notandi:Thvj|Thvj]] 28. janúar 2011 kl. 17:33 (UTC) :::: Hún gæti fjallað um ýmislegt fleira, s.s. EES og réttindi Íslendinga í ESB, deilur við sambandið um fiskveiðar, ESB sem markað fyrir íslenskar útflutningsvörur o.s.frv. --[[Notandi:Akigka|Akigka]] 28. janúar 2011 kl. 18:32 (UTC) ::::: Já, greinin gæti fjallað um hitt og þetta tengt EES og ES, en spurningin er hvað á hún í rauninni að fjalla um? Er ekki greinarheitið allt of víðtækt og óljóst til þess að verðskulda grein á wikipedíu? Með sömu rökum mætti þá stofna greinarnar ''[[Ísland og Kína]]'', ''[[Ísland og Bandaríkin]]'' eða [[Ísland og Grænland]], án þess að ég mæli þó með því. Ég mundi þó gjarnan vilja sjá greinina [[Umsókn Íslands að Evrópusambandinu]], en eins og greinin stendur nú virðist hún að mestu einmitt fjalla um það ferli. - Annars skora ég á einhvern slyngan að skrifa skilgreiningu í innganginum, en ef það tekst ekki held ég að við verðum að finna nýtt og hnitmiðað greinarheiti. [[Notandi:Thvj|Thvj]] 29. janúar 2011 kl. 01:41 (UTC) :::::: Það gæti svo sem verið fínt að flytja greinina eins og þú nefnir, en ég sá þetta fyrir mér hliðstætt við [[:en:Norway – European Union relations]] (hét greinin um Ísland ekki eitthvað svipað á en:wiki áður en umsóknin kom til?). --[[Notandi:Akigka|Akigka]] 29. janúar 2011 kl. 17:25 (UTC) :::::::Jú, og hún var svo færð aftur undir þann titil á enwiki 2017 eftir að viðræður sigldu í strand. Ég hallast frekar að því einmitt að hafa grein um tvíhliða samband Íslands og ESB þar sem fjallað er um aðildarferlið en einnig aðra fleti eins og EES, Schengen, makríl, tollamál o.s.frv. [[Notandi:Bjarki S|Bjarki]] ([[Notandaspjall:Bjarki S|spjall]]) 15. ágúst 2026 kl. 13:49 (UTC) ::::: Greinarnar eru snarlíkar, en það breytir ekki því að mér finnst fókusinn í þeim báðum óskýr, ekki síst þar sem enginn virðist treysta sér til að skilgreina efni greinanna í innganginum. Færi ekki betur á því að takmarka sig aðeins og skrifa frekar um ''[[umnsóknarferlið]]'', en í slíkri grein mundu vafalaust birtast aðdragandi umsóknarinnar og alls kyns vangaveldur um stóðu Íslands innan Es, EES og EFTA? Grein (ítarleg) um ''Ísland og Es'' er reyndar einnig til á öðrum tungumálum á wikipedía þ.a. hún fær væntanlega að standa óhögguð, en það breytir ekki því að mér finnst þetta furðulegar greinar, sambland af sagnfræði og blaðamennsku, og má spyrja sig hvort þær eigi heima í alfræðiriti. - Ég auglýsi þó eftir grein um ''[[umsókarferlið]]''. [[Notandi:Thvj|Thvj]] 29. janúar 2011 kl. 18:00 (UTC) == Breyta nafni == [[Aðildarviðræður Íslands við Evrópusambandið]]. Þar sem það er meira relevant. --[[Notandi:Jabbi|Jabbi]] ([[Notandaspjall:Jabbi|spjall]]) 23. apríl 2013 kl. 21:37 (UTC) : Já, þetta er betra heiti. [[Notandi:Thvj|Thvj]] ([[Notandaspjall:Thvj|spjall]]) 23. apríl 2013 kl. 23:11 (UTC) == Staða viðræðna == Hæ, ég er með eina spurningu. Er Ísland raunverulega með virka umsókn að ESB? Það er vissulega rétt að Ísland hefur ekki stundað formlegar viðræður við ESB í 10 ár síðan Gunnar Bragi Sveinsson þáverandi utanríkisráðherra fór til Brussel og lagði inn beiðni um að aðildarviðræður Íslands yrðu dregnar til baka. Ég hef heyrt fræðimenn á sviði málefna ESB segja að við séum enn þá með virka umsókn en hef líka heyrt fólk segja að umsóknin hefði verið afturkölluð. [[Kerfissíða:Framlög/2A01:6F02:31D:4501:1856:4554:334:E822|2A01:6F02:31D:4501:1856:4554:334:E822]] 28. júlí 2025 kl. 11:18 (UTC) :Samkvæmt ESB er aðildarumsóknin enn talin virk (en það má deila um hvort það hafi neina merkingu nema Ísland kjósi að halda þeim áfram). Það þyrfti að bæta við setningu um þetta í greinina. Ég geng í það við tækifæri. [[Notandi:TKSnaevarr|TKSnaevarr]] ([[Notandaspjall:TKSnaevarr|spjall]]) 28. júlí 2025 kl. 12:06 (UTC) 7khqcid1ywgt8pv0ql9v3v14rb2xd8o Brandönd 0 99400 1975561 1962505 2026-08-16T10:51:09Z CommonsDelinker 1159 Skipti út Common_Shellduck_(Tadorna_tadorna)_(26499348215).jpg fyrir [[Mynd:Common_Shelduck_(Tadorna_tadorna)_(26499348215).jpg]] (eftir [[c:User:CommonsDelinker|CommonsDelinker]] vegna þess að: [[:c:COM:FR|File renamed]]: [[:c:COM:FR#FR3|Criterion 3]] (o 1975561 wikitext text/x-wiki {{Taxobox | name = Brandönd | image = Common Shelduck (Tadorna tadorna) (26499348215).jpg | image_width = 240px | image_caption = Brandönd, karlfugl | image2 = Gravand (Tadorna-tadorna)- Ystad-2017.jpg | image2_width = 240px | image2_caption = Fullvaxinn karlfugl | status = LC | status_system = iucn3.1 | regnum = [[Dýraríki]] (''Animalia'') | phylum = [[Seildýr]] (''Chordata'') | classis = [[Fuglar]] (''Aves'') | ordo = [[Gásfuglar]] (''Anseriformes'') | familia = [[Andaætt]] (''Anatidae'') | genus = ''[[shelduck|Tadorna]]'' | species = '''''T. tadorna''''' | binomial = ''Tadorna tadorna'' | binomial_authority = ([[Carolus Linnaeus|Linnaeus]], 1758) | range_map = Tadorna tadorna distribution.png | range_map_width = 240px | range_map_caption = Heimkynni<br />(gult: sumar, blátt: vetur, grænt: allt árið) | synonyms =''Anas tadorna'' {{small|Linnaeus,&nbsp;1758}} }} [[File:Common Shelduck.ogv|thumb|Brandönd]] '''Brandönd''' ([[fræðiheiti]]: ''Tadorna tadorna'') er stórvaxin og skrautleg [[önd]] sem minnir á [[gæs]] bæði hvað varðar stærð og lögun. Goggur andarinnar er rauðbleikur, fæturnir bleikir og búkurinn hvítur með brúnum og svörtum flekkjum. Höfuðið og hálsinn eru dökkgræn. Brúnt belti er um miðju og nær það aftur á bakið. Axlarfjaðrir eru svartar. Dökk rák nær frá bringu eftir endilöngum kviðnum. Kynin eru svipuð í útliti en kvenfuglarnir eru minni. Brandendur eru léttar í gangi og á sundi og hefja sig snögglega til flugs án tilhlaups. Þær eru áberandi hálslangar á flugi. Brandönd verpir yfirleit 8 eggjum sem klekjast út á mánupi og verða ungarnir fleygir á 6-7 vikum. Báðir foreldrar sjá um uppeldi unga. Kjörlendi brandanda er grunnsævi og leirur þar sem þær sía fæðu úr leðjunni. Þær halda sig við voga og árósa og fara sjaldan lengra en 1 - 2 km frá sjó. Karlfuglinn tístir og flautar um varptíma en kvenfuglinn gargar og kvakar. Brandönd er farfugl og var áður fáséður flækingsfugl á [[Ísland]]i. Fyrsta varp sem vitað er um á Íslandi er 1990. Síðan hefur hún sést árlega í Borgarfirði. Stofninn á Íslandi telur nú vel yfir þúsund fugla og eru höfuðstöðvar hans við ósa Hvítár í Borgarfirði. Brandönd er alfriðuð. <gallery> File:Brandgans gründelnd.JPG|Fullorðnir fuglar að kafa, takið eftir litum neðan á búk og fótum File:Diorama Brandgänse.JPG|Hreiðurstæði brandandar File:Brandgans Küken, Borkum.JPG|Ungahópur brandandar Tadorna tadorna MHNT.ZOO.2010.11.19.3.jpg |Museum specimen </gallery> ==Heimild== * Jóhann Óli Hilmarsson, Íslenskur fuglavísir, Iðunn, Reykjavík, 1999 == Tenglar == * [http://www1.nams.is/fuglar/details.php?val=1&id=72 Brandönd (Námsgagnastofnun)] {{Webarchive|url=https://web.archive.org/web/20120319082834/http://www1.nams.is/fuglar/details.php?val=1&id=72 |date=2012-03-19 }} * [http://www.rspb.org.uk/birds/guide/s/shelduck/index.asp RSPB A to Z of UK Birds] * [http://ibc.lynxeds.com/species/common-shelduck-tadorna-tadorna Common Shelduck videos, photos & sounds] {{Webarchive|url=https://web.archive.org/web/20130807000336/http://ibc.lynxeds.com/species/common-shelduck-tadorna-tadorna |date=2013-08-07 }} on the Internet Bird Collection * [http://www.ibercajalav.net/img/71_ShelduckTtadorna.pdf Ageing and sexing (PDF) by Javier Blasco-Zumeta] {{Webarchive|url=https://web.archive.org/web/20131112075231/http://www.ibercajalav.net/img/71_ShelduckTtadorna.pdf |date=2013-11-12 }} * [http://www.narba.org/default.aspx/MenuItemID/104/MenuGroup/Home.htm NARBA North American Rare Bird Alert] {{Webarchive|url=https://web.archive.org/web/20110118224253/http://www.narba.org/default.aspx/MenuItemID/104/MenuGroup/Home.htm |date=2011-01-18 }} == Tilvísanir == {{reflist}} {{commonscat|Tadorna tadorna|brandöndum}} {{Wikilífverur|Tadorna tadorna|brandöndum}} {{commons|Tadorna tadorna|brandöndum}} {{stubbur|fugl}} [[Flokkur:Andaætt]] fykjpqqmj26m861h5uq1vsrvcoie2gq Vala Flosadóttir 0 105615 1975549 1942583 2026-08-15T23:08:31Z ~2026-44630-70 119605 1975549 wikitext text/x-wiki '''Vala Flosadóttir''' (f. í [[Reykjavík]] 16. febrúar 1978) er íslensk [[frjálsar íþróttir|frjálsíþróttakona]] og keppti í [[stangarstökk]]i. Árið 2000 varð hún í þriðja sæti á [[Sumarólympíuleikarnir 2000|Ólympíuleikunum]] í [[Sydney]] með stökki upp á 4,50 metra, sem jafnframt er persónulegt met. Árið 1998 setti Vala tvívegis [[heimsmet]] í stangarstökki innanhúss og hún setti einnig fimm unglingaheimsmet á árunum 1995–1997. Hún varð Evrópumeistari í stangarstökki innanhúss 1996, en það var í fyrsta skipti sem keppt var í stangarstökki kvenna á stórmóti, og hafnaði í þriðja sæti á Evrópumeistaramótinu árið 1998. Hún vann Evrópumeistaramót 22 ára og yngri 1999 og varð önnur á evrópska unglingameistaramótinu 1997. Vala hætti keppni árið 2005. Hún var tekin inn í [[heiðurshöll ÍSÍ]] árið 2012. ==Achievements== {| {{AchievementTable|Event=yes}} |- !colspan="6"|Representing {{ISL}} |- |1995 |[[Athletics at the 1995 Games of the Small States of Europe|Games of the Small States of Europe]] |[[Luxembourg City, Luxembourg]] |bgcolor=silver|2nd |High jump |1.80 m |- |1996 |[[1996 European Indoor Championships in Athletics|European Indoor Championships]] |[[Stockholm]], Sweden |bgcolor="gold" | 1st |Pole vault |[[1996 European Athletics Indoor Championships – Women's pole vault|4.16 m]] |- |rowspan=2|1997 |[[1997 IAAF World Indoor Championships|World Indoor Championships]] |[[Paris]], France |8th |Pole vault |[[1997 IAAF World Indoor Championships – Women's pole vault|4.00 m]] |- |[[1997 European Athletics Junior Championships|European Junior Championships]] |[[Ljubljana]], Slovenia |bgcolor=silver|2nd |Pole vault |4.00 m |- |rowspan=3|1998 |[[1998 European Indoor Athletics Championships|European Indoor Championships]] |[[Valencia]], Spain |bgcolor=cc9966|3rd |Pole vault |[[1998 European Athletics Indoor Championships – Women's pole vault|4.40 m]] |- |[[Athletics at the 1998 Goodwill Games|Goodwill Games]] |[[Uniondale, New York|Uniondale]], [[United States]] |bgcolor="cc9966" | 3rd |Pole vault |[[Athletics at the 1998 Goodwill Games – Results#Pole vault 2|4.20 m]] |- |[[1998 European Championships in Athletics|European Championships]] |[[Budapest]], Hungary |9th |Pole vault |[[1998 European Athletics Championships – Women's pole vault|4.15 m]] |- |rowspan=3|1999 |[[1999 IAAF World Indoor Championships|World Indoor Championships]] |[[Maebashi]], Japan |bgcolor="silver" | 2nd |Pole vault |[[1999 IAAF World Indoor Championships – Women's pole vault|4.45 m]] (iNR) |- |[[1999 European Athletics U23 Championships|European U23 Championships]] |[[Gothenburg]], Sweden |bgcolor="gold" | 1st |Pole vault |[[1999 European Athletics U23 Championships – Women's pole vault|4.30 m]] |- |[[1999 World Championships in Athletics|World Championships]] |[[Seville]], Spain |12th |Pole vault |[[1999 World Championships in Athletics – Women's pole vault|4.25 m]] |- |rowspan=2|2000 |[[2002 European Indoor Athletics Championships|European Indoor Championships]] |[[Ghent]], Belgium |4th |Pole vault |[[2002 European Athletics Indoor Championships – Women's pole vault|4.30 m]] |- |[[Athletics at the 2000 Summer Olympics|Olympic Games]] |[[Sydney]], Australia |bgcolor="CC9966" | 3rd |Pole vault |[[Athletics at the 2000 Summer Olympics – Women's pole vault|4.50 m]] (NR) |- |2001 |[[2001 World Championships in Athletics|World Championships]] |[[Edmonton]], Canada |23rd (q) |Pole vault |[[2001 World Championships in Athletics – Women's pole vault|4.15 m]] |- |rowspan=2|2002 |[[2002 European Indoor Athletics Championships|European Indoor Championships]] |[[Vienna]], Austria |9th (q) |Pole vault |[[2002 European Athletics Indoor Championships – Women's pole vault|4.30 m]] |- |[[2002 European Championships in Athletics|European Championships]] |[[Munich]], Germany |22nd (q) |Pole vault |[[2002 European Athletics Championships – Women's pole vault|4.00 m]] |} == Heimildir == * {{Cite web|url=https://timarit.is/page/1900739?iabr=on#page/n17/mode/2up |title=Hið ljosa man |last=Hallgrímsson |first=Skapti |work=Morgunblaðið |page=18–19 |date=1998-03-15 |access-date=2026-01-13}} * {{Cite web|url=https://timarit.is/page/1979386?iabr=on#page/n0/mode/1up |title=„Stund sem líður mér aldrei úr minni“ |work=Morgunblaðið |page=1 |date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/1979421?iabr=on#page/n35/mode/1up |title=„Maður situr með tárin í augunum“ |work=Morgunblaðið |pages=36–37|date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/3666545?iabr=on#page/n0/mode/1up |title=Vala hættir stangarstökki |last=Benediktsson |first=Ívar |work=Morgunblaðið C |page=1 |date=2005-06-10 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/7349180?iabr=on#page/n21/mode/2up |title=„Þetta var draumur sem rættist“ |last=Ásgeirsdóttir |first=Ásdís |work=Morgunblaðið |page=22–24 |date=2020-09-27 |access-date=2026-01-13}} * {{Cite web|url=https://www.ruv.is/frettir/ithrottir/2025-09-25-aldarfjordungur-fra-bronsi-volu-flosa-454327 |title=Aldarfjórðungur frá bronsi Völu Flosa |last=Sigurbjörnsson |first=Þorkell Gunnar |work=ruv.is |date=2025-09-25 |access-date=2025-09-25}} {{Íþróttamaður ársins}} [[Flokkur:Íslenskir Ólympíuverðlaunahafar]] [[Flokkur:Íslenskir stangarstökkvarar]] [[Flokkur:Íslenskir kvenstangarstökkvarar]] [[Flokkur:Íslenskir frjálsíþróttamenn]] [[Flokkur:Íslenskar frjálsíþróttakonur]] [[Flokkur:Íslenskir heimsmeistarar í íþróttum]] {{f|1978}} glbfayr2xofk61egaxrklfoguif9g95 1975550 1975549 2026-08-15T23:09:11Z ~2026-44630-70 119605 /* Achievements */ 1975550 wikitext text/x-wiki '''Vala Flosadóttir''' (f. í [[Reykjavík]] 16. febrúar 1978) er íslensk [[frjálsar íþróttir|frjálsíþróttakona]] og keppti í [[stangarstökk]]i. Árið 2000 varð hún í þriðja sæti á [[Sumarólympíuleikarnir 2000|Ólympíuleikunum]] í [[Sydney]] með stökki upp á 4,50 metra, sem jafnframt er persónulegt met. Árið 1998 setti Vala tvívegis [[heimsmet]] í stangarstökki innanhúss og hún setti einnig fimm unglingaheimsmet á árunum 1995–1997. Hún varð Evrópumeistari í stangarstökki innanhúss 1996, en það var í fyrsta skipti sem keppt var í stangarstökki kvenna á stórmóti, og hafnaði í þriðja sæti á Evrópumeistaramótinu árið 1998. Hún vann Evrópumeistaramót 22 ára og yngri 1999 og varð önnur á evrópska unglingameistaramótinu 1997. Vala hætti keppni árið 2005. Hún var tekin inn í [[heiðurshöll ÍSÍ]] árið 2012. ==Afrekaskrá== {| {{AchievementTable|Event=yes}} |- !colspan="6"|Representing {{ISL}} |- |1995 |[[Athletics at the 1995 Games of the Small States of Europe|Games of the Small States of Europe]] |[[Luxembourg City, Luxembourg]] |bgcolor=silver|2nd |High jump |1.80 m |- |1996 |[[1996 European Indoor Championships in Athletics|European Indoor Championships]] |[[Stockholm]], Sweden |bgcolor="gold" | 1st |Pole vault |[[1996 European Athletics Indoor Championships – Women's pole vault|4.16 m]] |- |rowspan=2|1997 |[[1997 IAAF World Indoor Championships|World Indoor Championships]] |[[Paris]], France |8th |Pole vault |[[1997 IAAF World Indoor Championships – Women's pole vault|4.00 m]] |- |[[1997 European Athletics Junior Championships|European Junior Championships]] |[[Ljubljana]], Slovenia |bgcolor=silver|2nd |Pole vault |4.00 m |- |rowspan=3|1998 |[[1998 European Indoor Athletics Championships|European Indoor Championships]] |[[Valencia]], Spain |bgcolor=cc9966|3rd |Pole vault |[[1998 European Athletics Indoor Championships – Women's pole vault|4.40 m]] |- |[[Athletics at the 1998 Goodwill Games|Goodwill Games]] |[[Uniondale, New York|Uniondale]], [[United States]] |bgcolor="cc9966" | 3rd |Pole vault |[[Athletics at the 1998 Goodwill Games – Results#Pole vault 2|4.20 m]] |- |[[1998 European Championships in Athletics|European Championships]] |[[Budapest]], Hungary |9th |Pole vault |[[1998 European Athletics Championships – Women's pole vault|4.15 m]] |- |rowspan=3|1999 |[[1999 IAAF World Indoor Championships|World Indoor Championships]] |[[Maebashi]], Japan |bgcolor="silver" | 2nd |Pole vault |[[1999 IAAF World Indoor Championships – Women's pole vault|4.45 m]] (iNR) |- |[[1999 European Athletics U23 Championships|European U23 Championships]] |[[Gothenburg]], Sweden |bgcolor="gold" | 1st |Pole vault |[[1999 European Athletics U23 Championships – Women's pole vault|4.30 m]] |- |[[1999 World Championships in Athletics|World Championships]] |[[Seville]], Spain |12th |Pole vault |[[1999 World Championships in Athletics – Women's pole vault|4.25 m]] |- |rowspan=2|2000 |[[2002 European Indoor Athletics Championships|European Indoor Championships]] |[[Ghent]], Belgium |4th |Pole vault |[[2002 European Athletics Indoor Championships – Women's pole vault|4.30 m]] |- |[[Athletics at the 2000 Summer Olympics|Olympic Games]] |[[Sydney]], Australia |bgcolor="CC9966" | 3rd |Pole vault |[[Athletics at the 2000 Summer Olympics – Women's pole vault|4.50 m]] (NR) |- |2001 |[[2001 World Championships in Athletics|World Championships]] |[[Edmonton]], Canada |23rd (q) |Pole vault |[[2001 World Championships in Athletics – Women's pole vault|4.15 m]] |- |rowspan=2|2002 |[[2002 European Indoor Athletics Championships|European Indoor Championships]] |[[Vienna]], Austria |9th (q) |Pole vault |[[2002 European Athletics Indoor Championships – Women's pole vault|4.30 m]] |- |[[2002 European Championships in Athletics|European Championships]] |[[Munich]], Germany |22nd (q) |Pole vault |[[2002 European Athletics Championships – Women's pole vault|4.00 m]] |} == Heimildir == * {{Cite web|url=https://timarit.is/page/1900739?iabr=on#page/n17/mode/2up |title=Hið ljosa man |last=Hallgrímsson |first=Skapti |work=Morgunblaðið |page=18–19 |date=1998-03-15 |access-date=2026-01-13}} * {{Cite web|url=https://timarit.is/page/1979386?iabr=on#page/n0/mode/1up |title=„Stund sem líður mér aldrei úr minni“ |work=Morgunblaðið |page=1 |date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/1979421?iabr=on#page/n35/mode/1up |title=„Maður situr með tárin í augunum“ |work=Morgunblaðið |pages=36–37|date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/3666545?iabr=on#page/n0/mode/1up |title=Vala hættir stangarstökki |last=Benediktsson |first=Ívar |work=Morgunblaðið C |page=1 |date=2005-06-10 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/7349180?iabr=on#page/n21/mode/2up |title=„Þetta var draumur sem rættist“ |last=Ásgeirsdóttir |first=Ásdís |work=Morgunblaðið |page=22–24 |date=2020-09-27 |access-date=2026-01-13}} * {{Cite web|url=https://www.ruv.is/frettir/ithrottir/2025-09-25-aldarfjordungur-fra-bronsi-volu-flosa-454327 |title=Aldarfjórðungur frá bronsi Völu Flosa |last=Sigurbjörnsson |first=Þorkell Gunnar |work=ruv.is |date=2025-09-25 |access-date=2025-09-25}} {{Íþróttamaður ársins}} [[Flokkur:Íslenskir Ólympíuverðlaunahafar]] [[Flokkur:Íslenskir stangarstökkvarar]] [[Flokkur:Íslenskir kvenstangarstökkvarar]] [[Flokkur:Íslenskir frjálsíþróttamenn]] [[Flokkur:Íslenskar frjálsíþróttakonur]] [[Flokkur:Íslenskir heimsmeistarar í íþróttum]] {{f|1978}} lzee5utczfxh1r5kud2e4p4q1nsuzwr 1975552 1975550 2026-08-16T00:33:12Z Berserkur 10188 1975552 wikitext text/x-wiki '''Vala Flosadóttir''' (f. í [[Reykjavík]] 16. febrúar 1978) er íslensk [[frjálsar íþróttir|frjálsíþróttakona]] og keppti í [[stangarstökk]]i. Árið 2000 varð hún í þriðja sæti á [[Sumarólympíuleikarnir 2000|Ólympíuleikunum]] í [[Sydney]] með stökki upp á 4,50 metra, sem jafnframt er persónulegt met. Árið 1998 setti Vala tvívegis [[heimsmet]] í stangarstökki innanhúss og hún setti einnig fimm unglingaheimsmet á árunum 1995–1997. Hún varð Evrópumeistari í stangarstökki innanhúss 1996, en það var í fyrsta skipti sem keppt var í stangarstökki kvenna á stórmóti, og hafnaði í þriðja sæti á Evrópumeistaramótinu árið 1998. Hún vann Evrópumeistaramót 22 ára og yngri 1999 og varð önnur á evrópska unglingameistaramótinu 1997. Vala hætti keppni árið 2005. Hún var tekin inn í [[heiðurshöll ÍSÍ]] árið 2012. ==Afrekaskrá== {| {{AchievementTable|Event=yes}} |- !colspan="6"| {{ISL}} |- |1995 |Smáþjóðaleikarnir |[[Lúxemborg]] |bgcolor=silver|2. sæti |Hástökk |1.80 m |- |1996 |Evrópumeistaramótið innanhúss |[[Stokkhólmur]], Svíþjóð |bgcolor="gold" | 1. sæti |Stangarstökk |4.16 m |- |rowspan=2|1997 |Alþjóðamót innanhúss |[[París]], Frakkland |8. sæti |Stangarstökk |4.00 m |- |Evrópumót ungmenna 1997 |[[Ljubljana]], Slóvenía |bgcolor=silver|2. sæti |Stangarstökk |4.00 m |- |rowspan=3|1998 |Evrópumótið innanhúss |[[Valensía]], Spánn |bgcolor=cc9966|3. sæti |Stangarstökk |4.40 m |- |Goodwill Games, 1998 |Uniondale, Bandaríkin |bgcolor="cc9966" | 3. sæti |Stangarstökk |4.20 m |- |Evrópumótið 1999 |[[Búdapest]], Ungverjaland |9. sæti |Stangarstökk |4.15 m |- |rowspan=3|1999 |Alþjóðmót innanhúss |[[Maebashi]], Japan |bgcolor="silver" | 2. sæti |Stangarstökk |4.45 m |- |Evrópumótið U23 |[[Gautaborg]], Svíþjóð |bgcolor="gold" | 1. sæti |Stangarstökk |4.30 m |- |Heimsmeistaramótið |[[Sevilla]], Spánn |12. sæti |Stangarstökk |[[4.25 m |- |rowspan=2|2000 |Evrópumótið innanhúss |[[Gent]], Belgía |4. sæti |Stangarstökk |4.30 m |- |Ólympíuleikarnir |[[Sydney]], Ástralía |bgcolor="CC9966" | 3. sæti |Stangarstökk |4.50 m |- |2001 |Heimsmeistaramótið |[[Edmonton]], Kanada |23. sæti |Stangarstökk |4.15 m |- |rowspan=2|2002 |Evrópumótið innanhúss |[[Vín]], Austurríki |9. sæti |Stangarstökk |4.30 m |- |Evrópumótið 2002 |[[Munchen]], Þýskaland |22. sæti |Stangarstökk |4.00 m |} == Heimildir == * {{Cite web|url=https://timarit.is/page/1900739?iabr=on#page/n17/mode/2up |title=Hið ljosa man |last=Hallgrímsson |first=Skapti |work=Morgunblaðið |page=18–19 |date=1998-03-15 |access-date=2026-01-13}} * {{Cite web|url=https://timarit.is/page/1979386?iabr=on#page/n0/mode/1up |title=„Stund sem líður mér aldrei úr minni“ |work=Morgunblaðið |page=1 |date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/1979421?iabr=on#page/n35/mode/1up |title=„Maður situr með tárin í augunum“ |work=Morgunblaðið |pages=36–37|date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/3666545?iabr=on#page/n0/mode/1up |title=Vala hættir stangarstökki |last=Benediktsson |first=Ívar |work=Morgunblaðið C |page=1 |date=2005-06-10 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/7349180?iabr=on#page/n21/mode/2up |title=„Þetta var draumur sem rættist“ |last=Ásgeirsdóttir |first=Ásdís |work=Morgunblaðið |page=22–24 |date=2020-09-27 |access-date=2026-01-13}} * {{Cite web|url=https://www.ruv.is/frettir/ithrottir/2025-09-25-aldarfjordungur-fra-bronsi-volu-flosa-454327 |title=Aldarfjórðungur frá bronsi Völu Flosa |last=Sigurbjörnsson |first=Þorkell Gunnar |work=ruv.is |date=2025-09-25 |access-date=2025-09-25}} {{Íþróttamaður ársins}} [[Flokkur:Íslenskir Ólympíuverðlaunahafar]] [[Flokkur:Íslenskir stangarstökkvarar]] [[Flokkur:Íslenskir kvenstangarstökkvarar]] [[Flokkur:Íslenskir frjálsíþróttamenn]] [[Flokkur:Íslenskar frjálsíþróttakonur]] [[Flokkur:Íslenskir heimsmeistarar í íþróttum]] {{f|1978}} 43whgvi32n02caop40hpq30rmxucpzg 1975558 1975552 2026-08-16T09:05:35Z Berserkur 10188 1975558 wikitext text/x-wiki '''Vala Flosadóttir''' (f. í [[Reykjavík]] 16. febrúar 1978) er íslensk [[frjálsar íþróttir|frjálsíþróttakona]] og keppti í [[stangarstökk]]i. Árið 2000 varð hún í þriðja sæti á [[Sumarólympíuleikarnir 2000|Ólympíuleikunum]] í [[Sydney]] með stökki upp á 4,50 metra, sem jafnframt var persónulegt met. Árið 1998 setti Vala tvívegis [[heimsmet]] í stangarstökki innanhúss og hún setti einnig fimm unglingaheimsmet á árunum 1995–1997. Hún varð Evrópumeistari í stangarstökki innanhúss 1996, en það var í fyrsta skipti sem keppt var í stangarstökki kvenna á stórmóti, og hafnaði í þriðja sæti á Evrópumeistaramótinu árið 1998. Hún vann Evrópumeistaramót 22 ára og yngri 1999 og varð önnur á evrópska unglingameistaramótinu 1997. Vala hætti keppni árið 2005. Hún var tekin inn í [[heiðurshöll ÍSÍ]] árið 2012. ==Afrekaskrá== {| {{AchievementTable|Event=yes}} |- !colspan="6"| {{ISL}} |- |1995 |Smáþjóðaleikarnir |[[Lúxemborg]] |bgcolor=silver|2. sæti |Hástökk |1.80 m |- |1996 |Evrópumeistaramót innanhúss |[[Stokkhólmur]], Svíþjóð |bgcolor="gold" | 1. sæti |Stangarstökk |4.16 m |- |rowspan=2|1997 |Alþjóðamót innanhúss |[[París]], Frakkland |8. sæti |Stangarstökk |4.00 m |- |Evrópumót ungmenna 1997 |[[Ljúbljana]], Slóvenía |bgcolor=silver|2. sæti |Stangarstökk |4.00 m |- |rowspan=3|1998 |Evrópumót innanhúss |[[Valensía]], Spánn |bgcolor=cc9966|3. sæti |Stangarstökk |4.40 m |- |Goodwill Games, 1998 |Uniondale, Bandaríkin |bgcolor="cc9966" | 3. sæti |Stangarstökk |4.20 m |- |Evrópumót 1999 |[[Búdapest]], Ungverjaland |9. sæti |Stangarstökk |4.15 m |- |rowspan=3|1999 |Alþjóðmót innanhúss |Maebashi, Japan |bgcolor="silver" | 2. sæti |Stangarstökk |4.45 m |- |Evrópumót U23 |[[Gautaborg]], Svíþjóð |bgcolor="gold" | 1. sæti |Stangarstökk |4.30 m |- |Heimsmeistaramótið |[[Sevilla]], Spánn |12. sæti |Stangarstökk |4.25 m |- |rowspan=2|2000 |Evrópumót innanhúss |[[Gent]], Belgía |4. sæti |Stangarstökk |4.30 m |- |Ólympíuleikarnir |[[Sydney]], Ástralía |bgcolor="CC9966" | 3. sæti |Stangarstökk |4.50 m |- |2001 |Heimsmeistaramótið |[[Edmonton]], Kanada |23. sæti |Stangarstökk |4.15 m |- |rowspan=2|2002 |Evrópumót innanhúss |[[Vín]], Austurríki |9. sæti |Stangarstökk |4.30 m |- |Evrópumót 2002 |[[Munchen]], Þýskaland |22. sæti |Stangarstökk |4.00 m |} == Heimildir == * {{Cite web|url=https://timarit.is/page/1900739?iabr=on#page/n17/mode/2up |title=Hið ljosa man |last=Hallgrímsson |first=Skapti |work=Morgunblaðið |page=18–19 |date=1998-03-15 |access-date=2026-01-13}} * {{Cite web|url=https://timarit.is/page/1979386?iabr=on#page/n0/mode/1up |title=„Stund sem líður mér aldrei úr minni“ |work=Morgunblaðið |page=1 |date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/1979421?iabr=on#page/n35/mode/1up |title=„Maður situr með tárin í augunum“ |work=Morgunblaðið |pages=36–37|date=2000-09-26 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/3666545?iabr=on#page/n0/mode/1up |title=Vala hættir stangarstökki |last=Benediktsson |first=Ívar |work=Morgunblaðið C |page=1 |date=2005-06-10 |access-date=2025-09-25}} * {{Cite web|url=https://timarit.is/page/7349180?iabr=on#page/n21/mode/2up |title=„Þetta var draumur sem rættist“ |last=Ásgeirsdóttir |first=Ásdís |work=Morgunblaðið |page=22–24 |date=2020-09-27 |access-date=2026-01-13}} * {{Cite web|url=https://www.ruv.is/frettir/ithrottir/2025-09-25-aldarfjordungur-fra-bronsi-volu-flosa-454327 |title=Aldarfjórðungur frá bronsi Völu Flosa |last=Sigurbjörnsson |first=Þorkell Gunnar |work=ruv.is |date=2025-09-25 |access-date=2025-09-25}} {{Íþróttamaður ársins}} [[Flokkur:Íslenskir Ólympíuverðlaunahafar]] [[Flokkur:Íslenskir stangarstökkvarar]] [[Flokkur:Íslenskir kvenstangarstökkvarar]] [[Flokkur:Íslenskir frjálsíþróttamenn]] [[Flokkur:Íslenskar frjálsíþróttakonur]] [[Flokkur:Íslenskir heimsmeistarar í íþróttum]] {{f|1978}} mwc74axxlkl8t4yd8kfn39xpnkxsgw3 Module:Math 828 115321 1975413 1770746 2026-04-10T14:26:08Z en>Ahecht 0 Rewrite rounding and precision code to run faster, other code cleanup including removing unused variables. Please revert if this causes any unexpected side effects 1975413 Scribunto text/plain --[[ This module provides a number of basic mathematical operations. ]] local yesno, getArgs -- lazily initialized local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules. local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua. --[[ Helper functions used to avoid redundant code. ]] local function err(msg) -- Generates wikitext error messages. return mw.ustring.format('<strong class="error">Formatting error: %s</strong>', msg) end local function unpackNumberArgs(args) -- Returns an unpacked list of arguments specified with numerical keys. local ret = {} for k, v in pairs(args) do if type(k) == 'number' then table.insert(ret, v) end end return unpack(ret) end local function makeArgArray(...) -- Makes an array of arguments from a list of arguments that might include nils. local args = {...} -- Table of arguments. It might contain nils or non-number values, so we can't use ipairs. local nums = {} -- Stores the numbers of valid numerical arguments. local ret = {} for k, v in pairs(args) do v = p._cleanNumber(v) if v then nums[#nums + 1] = k args[k] = v end end table.sort(nums) for i, num in ipairs(nums) do ret[#ret + 1] = args[num] end return ret end local function fold(func, ...) -- Use a function on all supplied arguments, and return the result. The function must accept two numbers as parameters, -- and must return a number as an output. This number is then supplied as input to the next function call. local vals = makeArgArray(...) local count = #vals -- The number of valid arguments if count == 0 then return -- Exit if we have no valid args, otherwise removing the first arg would cause an error. nil, 0 end local ret = table.remove(vals, 1) for _, val in ipairs(vals) do ret = func(ret, val) end return ret, count end --[[ Fold arguments by selectively choosing values (func should return when to choose the current "dominant" value). ]] local function binary_fold(func, ...) local value = fold((function(a, b) if func(a, b) then return a else return b end end), ...) return value end --[[ random Generate a random number Usage: {{#invoke: Math | random }} {{#invoke: Math | random | maximum value }} {{#invoke: Math | random | minimum value | maximum value }} ]] function wrap.random(args) local first = p._cleanNumber(args[1]) local second = p._cleanNumber(args[2]) return p._random(first, second) end function p._random(first, second) math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000)) -- math.random will throw an error if given an explicit nil parameter, so we need to use if statements to check the params. if first and second then if first <= second then -- math.random doesn't allow the first number to be greater than the second. return math.random(first, second) end elseif first then return math.random(first) else return math.random() end end --[[ order Determine order of magnitude of a number Usage: {{#invoke: Math | order | value }} ]] function wrap.order(args) local input_string = (args[1] or args.x or '0'); local input_number = p._cleanNumber(input_string); if input_number == nil then return err('order of magnitude input appears non-numeric') else return p._order(input_number) end end function p._order(x) if x == 0 then return 0 end return math.floor(math.log10(math.abs(x))) end --[[ precision Detemines the precision of a number using the string representation Usage: {{ #invoke: Math | precision | value }} ]] function wrap.precision(args) local input_string = (args[1] or args.x or '0'); local trap_fraction = args.check_fraction; if not yesno then yesno = require('Module:Yesno') end if yesno(trap_fraction, true) then -- Returns true for all input except nil, false, "no", "n", "0" and a few others. See [[Module:Yesno]]. local pos = string.find(input_string, '/', 1, true); if pos ~= nil then if string.find(input_string, '/', pos + 1, true) == nil then local denominator = string.sub(input_string, pos+1, -1); local denom_value = tonumber(denominator); if denom_value ~= nil then return math.log10(denom_value); end end end end local _, clean_string = p._cleanNumber(input_string); if clean_string == nil then return err('precision input appears non-numeric') else return p._precision(clean_string) end end function p._precision(x) if type(x) == 'number' then x = tostring(x) end local result = 0; --subtract exponent local _, _, coefficient, exponent = x:find("^(.*)[eE](.*)$") if coefficient then result = result - (tonumber(exponent) or 0) x = coefficient end --add decimal places local i, j = x:find('%..*$') if i then result = result + (j - i) return result end --subtract trailing zeroes i, j = x:find('[^0]0+$') if i then result = result - (j - i) end return result end --[[ max Finds the maximum argument Usage: {{#invoke:Math| max | value1 | value2 | ... }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.max(args) return p._max(unpackNumberArgs(args)) end function p._max(...) local max_value = binary_fold((function(a, b) return a > b end), ...) if max_value then return max_value end end --[[ median Find the median of set of numbers Usage: {{#invoke:Math | median | number1 | number2 | ...}} OR {{#invoke:Math | median }} ]] function wrap.median(args) return p._median(unpackNumberArgs(args)) end function p._median(...) local vals = makeArgArray(...) local count = #vals table.sort(vals) if count == 0 then return 0 end if p._mod(count, 2) == 0 then return (vals[count/2] + vals[count/2+1])/2 else return vals[math.ceil(count/2)] end end --[[ min Finds the minimum argument Usage: {{#invoke:Math| min | value1 | value2 | ... }} OR {{#invoke:Math| min }} When used with no arguments, it takes its input from the parent frame. Note, any values that do not evaluate to numbers are ignored. ]] function wrap.min(args) return p._min(unpackNumberArgs(args)) end function p._min(...) local min_value = binary_fold((function(a, b) return a < b end), ...) if min_value then return min_value end end --[[ sum Finds the sum Usage: {{#invoke:Math| sum | value1 | value2 | ... }} OR {{#invoke:Math| sum }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.sum(args) return p._sum(unpackNumberArgs(args)) end function p._sum(...) local sums = fold((function(a, b) return a + b end), ...) if not sums then return 0 else return sums end end --[[ average Finds the average Usage: {{#invoke:Math| average | value1 | value2 | ... }} OR {{#invoke:Math| average }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.average(args) return p._average(unpackNumberArgs(args)) end function p._average(...) local sum, count = fold((function(a, b) return a + b end), ...) if not sum then return 0 else return sum / count end end --[[ round Rounds a number to specified precision Usage: {{#invoke:Math | round | value | precision }} --]] function wrap.round(args) local value = p._cleanNumber(args[1] or args.value or 0) local precision = p._cleanNumber(args[2] or args.precision or 0) if value == nil or precision == nil then return err('round input appears non-numeric') else return p._round(value, precision) end end function p._round(value, precision) local rescale = math.pow(10, precision or 0); return math.floor(value * rescale + 0.5) / rescale; end --[[ log10 returns the log (base 10) of a number Usage: {{#invoke:Math | log10 | x }} ]] function wrap.log10(args) return math.log10(args[1]) end --[[ mod Implements the modulo operator Usage: {{#invoke:Math | mod | x | y }} --]] function wrap.mod(args) local x = p._cleanNumber(args[1]) local y = p._cleanNumber(args[2]) if not x then return err('first argument to mod appears non-numeric') elseif not y then return err('second argument to mod appears non-numeric') else return p._mod(x, y) end end function p._mod(x, y) local ret = x % y if not (0 <= ret and ret < y) then ret = 0 end return ret end --[[ gcd Calculates the greatest common divisor of multiple numbers Usage: {{#invoke:Math | gcd | value 1 | value 2 | value 3 | ... }} --]] function wrap.gcd(args) return p._gcd(unpackNumberArgs(args)) end function p._gcd(...) local function findGcd(a, b) local r = b local oldr = a while r ~= 0 do local quotient = math.floor(oldr / r) oldr, r = r, oldr - quotient * r end if oldr < 0 then oldr = oldr * -1 end return oldr end local result = fold(findGcd, ...) return result end --[[ precision_format Rounds a number to the specified precision and formats according to rules originally used for {{template:Rnd}}. Output is a string. Usage: {{#invoke: Math | precision_format | number | precision }} ]] function wrap.precision_format(args) local value_string = args[1] or 0 local precision = args[2] or 0 return p._precision_format(value_string, precision) end function p._precision_format(value_string, precision) -- For access to Mediawiki built-in formatter. local lang = mw.getContentLanguage(); local value value, value_string = p._cleanNumber(value_string) precision = p._cleanNumber(precision) -- Check for non-numeric input if value == nil or precision == nil then return err('invalid input when rounding') end local abs_value = math.abs(value) local current_precision = p._precision(value) local order = p._order(value) -- Due to round-off effects it is neccesary to limit the returned precision under -- some circumstances because the terminal digits will be inaccurately reported. if order + precision >= 14 then if order + p._precision(value_string) >= 14 then precision = 13 - order; end end -- If rounding off, truncate extra digits if precision < current_precision then value = p._round(value, precision) abs_value = math.abs(value) current_precision = p._precision(value) end local formatted_num = lang:formatNum(abs_value) -- Handle cases requiring scientific notation if math.abs(order) >= 9 or string.find(formatted_num, 'E', 1, true) then value = value * (10 ^ (-order)) abs_value = math.abs(value) current_precision = current_precision + order precision = precision + order formatted_num = lang:formatNum(abs_value) else order = 0; end -- Use proper unary minus sign rather than ASCII default formatted_num = ((value < 0) and '−' or '') .. formatted_num -- Pad with zeros, if needed if current_precision < precision then local padding if current_precision <= 0 then if precision > 0 then local zero_sep = lang:formatNum(1.1) formatted_num = formatted_num .. zero_sep:sub(2,2) padding = precision if padding > 20 then padding = 20 end formatted_num = formatted_num .. string.rep('0', padding) end else padding = precision - current_precision if padding > 20 then padding = 20 end formatted_num = formatted_num .. string.rep('0', padding) end end -- Add exponential notation, if necessary. if order ~= 0 then -- Use proper unary minus sign rather than ASCII default if order < 0 then order = '−' .. lang:formatNum(math.abs(order)) else order = lang:formatNum(order) end formatted_num = formatted_num .. '<span style="margin:0 .15em 0 .25em">×</span>10<sup>' .. order .. '</sup>' end return formatted_num end --[[ divide Implements the division operator Usage: {{#invoke:Math | divide | x | y | round= | precision= }} --]] function wrap.divide(args) local x = args[1] local y = args[2] local round = args.round local precision = args.precision if not yesno then yesno = require('Module:Yesno') end return p._divide(x, y, yesno(round), precision) end function p._divide(x, y, round, precision) if y == nil or y == "" then return err("Empty divisor") elseif not tonumber(y) then if type(y) == 'string' and string.sub(y, 1, 1) == '<' then return y else return err("Not a number: " .. y) end elseif x == nil or x == "" then return err("Empty dividend") elseif not tonumber(x) then if type(x) == 'string' and string.sub(x, 1, 1) == '<' then return x else return err("Not a number: " .. x) end else local z = x / y if round then return p._round(z, 0) elseif precision then return p._round(z, precision) else return z end end end --[[ Helper function that interprets the input numerically. If the input does not appear to be a number, attempts evaluating it as a parser functions expression. ]] function p._cleanNumber(number_string, unformat) if type(number_string) == 'number' then -- We were passed a number, so we don't need to do any processing. return number_string, tostring(number_string) elseif type(number_string) ~= 'string' or not number_string:find('%S') then -- We were passed a non-string or a blank string, so exit. return nil, nil; end -- Attempt basic conversion local number = tonumber(number_string) -- If failed, try unformatting the number_string if unformat and number == nil then -- Cannot use mw.language.getContentLanguage():parseFormattedNumber() -- because, unlike {{formatnum:|R}}, it won't ignore operators (it -- would return an error on "1,234+1,234" instead of "1234+1234") number_string = mw.getCurrentFrame():callParserFunction("formatnum", {number_string, "R"}) number = tonumber(number_string) end -- If failed, attempt to evaluate input as an expression if number == nil then local success, result = pcall(mw.ext.ParserFunctions.expr, number_string) if success then number = tonumber(result) number_string = tostring(number) else number = nil number_string = nil end else number_string = number_string:match("^%s*(.-)%s*$") -- String is valid but may contain padding, clean it. number_string = number_string:match("^%+(.*)$") or number_string -- Trim any leading + signs. if number_string:find('^%-?0[xX]') then -- Number is using 0xnnn notation to indicate base 16; use the number that Lua detected instead. number_string = tostring(number) end end return number, number_string end --[[ Wrapper function that does basic argument processing. This ensures that all functions from #invoke can use either the current frame or the parent frame, and it also trims whitespace for all arguments and removes blank arguments. ]] local mt = { __index = function(_, k) return function(frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end return wrap[k](getArgs(frame)) -- Argument processing is left to Module:Arguments. Whitespace is trimmed and blank arguments are removed. end end } return setmetatable(p, mt) f4r823qxvpkct3eikmvj99wyjq9cjkm 1975414 1975413 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Math]] 1975413 Scribunto text/plain --[[ This module provides a number of basic mathematical operations. ]] local yesno, getArgs -- lazily initialized local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules. local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua. --[[ Helper functions used to avoid redundant code. ]] local function err(msg) -- Generates wikitext error messages. return mw.ustring.format('<strong class="error">Formatting error: %s</strong>', msg) end local function unpackNumberArgs(args) -- Returns an unpacked list of arguments specified with numerical keys. local ret = {} for k, v in pairs(args) do if type(k) == 'number' then table.insert(ret, v) end end return unpack(ret) end local function makeArgArray(...) -- Makes an array of arguments from a list of arguments that might include nils. local args = {...} -- Table of arguments. It might contain nils or non-number values, so we can't use ipairs. local nums = {} -- Stores the numbers of valid numerical arguments. local ret = {} for k, v in pairs(args) do v = p._cleanNumber(v) if v then nums[#nums + 1] = k args[k] = v end end table.sort(nums) for i, num in ipairs(nums) do ret[#ret + 1] = args[num] end return ret end local function fold(func, ...) -- Use a function on all supplied arguments, and return the result. The function must accept two numbers as parameters, -- and must return a number as an output. This number is then supplied as input to the next function call. local vals = makeArgArray(...) local count = #vals -- The number of valid arguments if count == 0 then return -- Exit if we have no valid args, otherwise removing the first arg would cause an error. nil, 0 end local ret = table.remove(vals, 1) for _, val in ipairs(vals) do ret = func(ret, val) end return ret, count end --[[ Fold arguments by selectively choosing values (func should return when to choose the current "dominant" value). ]] local function binary_fold(func, ...) local value = fold((function(a, b) if func(a, b) then return a else return b end end), ...) return value end --[[ random Generate a random number Usage: {{#invoke: Math | random }} {{#invoke: Math | random | maximum value }} {{#invoke: Math | random | minimum value | maximum value }} ]] function wrap.random(args) local first = p._cleanNumber(args[1]) local second = p._cleanNumber(args[2]) return p._random(first, second) end function p._random(first, second) math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000)) -- math.random will throw an error if given an explicit nil parameter, so we need to use if statements to check the params. if first and second then if first <= second then -- math.random doesn't allow the first number to be greater than the second. return math.random(first, second) end elseif first then return math.random(first) else return math.random() end end --[[ order Determine order of magnitude of a number Usage: {{#invoke: Math | order | value }} ]] function wrap.order(args) local input_string = (args[1] or args.x or '0'); local input_number = p._cleanNumber(input_string); if input_number == nil then return err('order of magnitude input appears non-numeric') else return p._order(input_number) end end function p._order(x) if x == 0 then return 0 end return math.floor(math.log10(math.abs(x))) end --[[ precision Detemines the precision of a number using the string representation Usage: {{ #invoke: Math | precision | value }} ]] function wrap.precision(args) local input_string = (args[1] or args.x or '0'); local trap_fraction = args.check_fraction; if not yesno then yesno = require('Module:Yesno') end if yesno(trap_fraction, true) then -- Returns true for all input except nil, false, "no", "n", "0" and a few others. See [[Module:Yesno]]. local pos = string.find(input_string, '/', 1, true); if pos ~= nil then if string.find(input_string, '/', pos + 1, true) == nil then local denominator = string.sub(input_string, pos+1, -1); local denom_value = tonumber(denominator); if denom_value ~= nil then return math.log10(denom_value); end end end end local _, clean_string = p._cleanNumber(input_string); if clean_string == nil then return err('precision input appears non-numeric') else return p._precision(clean_string) end end function p._precision(x) if type(x) == 'number' then x = tostring(x) end local result = 0; --subtract exponent local _, _, coefficient, exponent = x:find("^(.*)[eE](.*)$") if coefficient then result = result - (tonumber(exponent) or 0) x = coefficient end --add decimal places local i, j = x:find('%..*$') if i then result = result + (j - i) return result end --subtract trailing zeroes i, j = x:find('[^0]0+$') if i then result = result - (j - i) end return result end --[[ max Finds the maximum argument Usage: {{#invoke:Math| max | value1 | value2 | ... }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.max(args) return p._max(unpackNumberArgs(args)) end function p._max(...) local max_value = binary_fold((function(a, b) return a > b end), ...) if max_value then return max_value end end --[[ median Find the median of set of numbers Usage: {{#invoke:Math | median | number1 | number2 | ...}} OR {{#invoke:Math | median }} ]] function wrap.median(args) return p._median(unpackNumberArgs(args)) end function p._median(...) local vals = makeArgArray(...) local count = #vals table.sort(vals) if count == 0 then return 0 end if p._mod(count, 2) == 0 then return (vals[count/2] + vals[count/2+1])/2 else return vals[math.ceil(count/2)] end end --[[ min Finds the minimum argument Usage: {{#invoke:Math| min | value1 | value2 | ... }} OR {{#invoke:Math| min }} When used with no arguments, it takes its input from the parent frame. Note, any values that do not evaluate to numbers are ignored. ]] function wrap.min(args) return p._min(unpackNumberArgs(args)) end function p._min(...) local min_value = binary_fold((function(a, b) return a < b end), ...) if min_value then return min_value end end --[[ sum Finds the sum Usage: {{#invoke:Math| sum | value1 | value2 | ... }} OR {{#invoke:Math| sum }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.sum(args) return p._sum(unpackNumberArgs(args)) end function p._sum(...) local sums = fold((function(a, b) return a + b end), ...) if not sums then return 0 else return sums end end --[[ average Finds the average Usage: {{#invoke:Math| average | value1 | value2 | ... }} OR {{#invoke:Math| average }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.average(args) return p._average(unpackNumberArgs(args)) end function p._average(...) local sum, count = fold((function(a, b) return a + b end), ...) if not sum then return 0 else return sum / count end end --[[ round Rounds a number to specified precision Usage: {{#invoke:Math | round | value | precision }} --]] function wrap.round(args) local value = p._cleanNumber(args[1] or args.value or 0) local precision = p._cleanNumber(args[2] or args.precision or 0) if value == nil or precision == nil then return err('round input appears non-numeric') else return p._round(value, precision) end end function p._round(value, precision) local rescale = math.pow(10, precision or 0); return math.floor(value * rescale + 0.5) / rescale; end --[[ log10 returns the log (base 10) of a number Usage: {{#invoke:Math | log10 | x }} ]] function wrap.log10(args) return math.log10(args[1]) end --[[ mod Implements the modulo operator Usage: {{#invoke:Math | mod | x | y }} --]] function wrap.mod(args) local x = p._cleanNumber(args[1]) local y = p._cleanNumber(args[2]) if not x then return err('first argument to mod appears non-numeric') elseif not y then return err('second argument to mod appears non-numeric') else return p._mod(x, y) end end function p._mod(x, y) local ret = x % y if not (0 <= ret and ret < y) then ret = 0 end return ret end --[[ gcd Calculates the greatest common divisor of multiple numbers Usage: {{#invoke:Math | gcd | value 1 | value 2 | value 3 | ... }} --]] function wrap.gcd(args) return p._gcd(unpackNumberArgs(args)) end function p._gcd(...) local function findGcd(a, b) local r = b local oldr = a while r ~= 0 do local quotient = math.floor(oldr / r) oldr, r = r, oldr - quotient * r end if oldr < 0 then oldr = oldr * -1 end return oldr end local result = fold(findGcd, ...) return result end --[[ precision_format Rounds a number to the specified precision and formats according to rules originally used for {{template:Rnd}}. Output is a string. Usage: {{#invoke: Math | precision_format | number | precision }} ]] function wrap.precision_format(args) local value_string = args[1] or 0 local precision = args[2] or 0 return p._precision_format(value_string, precision) end function p._precision_format(value_string, precision) -- For access to Mediawiki built-in formatter. local lang = mw.getContentLanguage(); local value value, value_string = p._cleanNumber(value_string) precision = p._cleanNumber(precision) -- Check for non-numeric input if value == nil or precision == nil then return err('invalid input when rounding') end local abs_value = math.abs(value) local current_precision = p._precision(value) local order = p._order(value) -- Due to round-off effects it is neccesary to limit the returned precision under -- some circumstances because the terminal digits will be inaccurately reported. if order + precision >= 14 then if order + p._precision(value_string) >= 14 then precision = 13 - order; end end -- If rounding off, truncate extra digits if precision < current_precision then value = p._round(value, precision) abs_value = math.abs(value) current_precision = p._precision(value) end local formatted_num = lang:formatNum(abs_value) -- Handle cases requiring scientific notation if math.abs(order) >= 9 or string.find(formatted_num, 'E', 1, true) then value = value * (10 ^ (-order)) abs_value = math.abs(value) current_precision = current_precision + order precision = precision + order formatted_num = lang:formatNum(abs_value) else order = 0; end -- Use proper unary minus sign rather than ASCII default formatted_num = ((value < 0) and '−' or '') .. formatted_num -- Pad with zeros, if needed if current_precision < precision then local padding if current_precision <= 0 then if precision > 0 then local zero_sep = lang:formatNum(1.1) formatted_num = formatted_num .. zero_sep:sub(2,2) padding = precision if padding > 20 then padding = 20 end formatted_num = formatted_num .. string.rep('0', padding) end else padding = precision - current_precision if padding > 20 then padding = 20 end formatted_num = formatted_num .. string.rep('0', padding) end end -- Add exponential notation, if necessary. if order ~= 0 then -- Use proper unary minus sign rather than ASCII default if order < 0 then order = '−' .. lang:formatNum(math.abs(order)) else order = lang:formatNum(order) end formatted_num = formatted_num .. '<span style="margin:0 .15em 0 .25em">×</span>10<sup>' .. order .. '</sup>' end return formatted_num end --[[ divide Implements the division operator Usage: {{#invoke:Math | divide | x | y | round= | precision= }} --]] function wrap.divide(args) local x = args[1] local y = args[2] local round = args.round local precision = args.precision if not yesno then yesno = require('Module:Yesno') end return p._divide(x, y, yesno(round), precision) end function p._divide(x, y, round, precision) if y == nil or y == "" then return err("Empty divisor") elseif not tonumber(y) then if type(y) == 'string' and string.sub(y, 1, 1) == '<' then return y else return err("Not a number: " .. y) end elseif x == nil or x == "" then return err("Empty dividend") elseif not tonumber(x) then if type(x) == 'string' and string.sub(x, 1, 1) == '<' then return x else return err("Not a number: " .. x) end else local z = x / y if round then return p._round(z, 0) elseif precision then return p._round(z, precision) else return z end end end --[[ Helper function that interprets the input numerically. If the input does not appear to be a number, attempts evaluating it as a parser functions expression. ]] function p._cleanNumber(number_string, unformat) if type(number_string) == 'number' then -- We were passed a number, so we don't need to do any processing. return number_string, tostring(number_string) elseif type(number_string) ~= 'string' or not number_string:find('%S') then -- We were passed a non-string or a blank string, so exit. return nil, nil; end -- Attempt basic conversion local number = tonumber(number_string) -- If failed, try unformatting the number_string if unformat and number == nil then -- Cannot use mw.language.getContentLanguage():parseFormattedNumber() -- because, unlike {{formatnum:|R}}, it won't ignore operators (it -- would return an error on "1,234+1,234" instead of "1234+1234") number_string = mw.getCurrentFrame():callParserFunction("formatnum", {number_string, "R"}) number = tonumber(number_string) end -- If failed, attempt to evaluate input as an expression if number == nil then local success, result = pcall(mw.ext.ParserFunctions.expr, number_string) if success then number = tonumber(result) number_string = tostring(number) else number = nil number_string = nil end else number_string = number_string:match("^%s*(.-)%s*$") -- String is valid but may contain padding, clean it. number_string = number_string:match("^%+(.*)$") or number_string -- Trim any leading + signs. if number_string:find('^%-?0[xX]') then -- Number is using 0xnnn notation to indicate base 16; use the number that Lua detected instead. number_string = tostring(number) end end return number, number_string end --[[ Wrapper function that does basic argument processing. This ensures that all functions from #invoke can use either the current frame or the parent frame, and it also trims whitespace for all arguments and removes blank arguments. ]] local mt = { __index = function(_, k) return function(frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end return wrap[k](getArgs(frame)) -- Argument processing is left to Module:Arguments. Whitespace is trimmed and blank arguments are removed. end end } return setmetatable(p, mt) f4r823qxvpkct3eikmvj99wyjq9cjkm 1975521 1975414 2026-08-15T19:59:28Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975413|1975413]] frá notandanum [[:en:User:Ahecht|en>Ahecht]] 1975521 Scribunto text/plain --[[ This module provides a number of basic mathematical operations. ]] local yesno, getArgs -- lazily initialized local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules. local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua. --[[ Helper functions used to avoid redundant code. ]] local function err(msg) -- Generates wikitext error messages. return mw.ustring.format('<strong class="error">Formatting error: %s</strong>', msg) end local function unpackNumberArgs(args) -- Returns an unpacked list of arguments specified with numerical keys. local ret = {} for k, v in pairs(args) do if type(k) == 'number' then table.insert(ret, v) end end return unpack(ret) end local function makeArgArray(...) -- Makes an array of arguments from a list of arguments that might include nils. local args = {...} -- Table of arguments. It might contain nils or non-number values, so we can't use ipairs. local nums = {} -- Stores the numbers of valid numerical arguments. local ret = {} for k, v in pairs(args) do v = p._cleanNumber(v) if v then nums[#nums + 1] = k args[k] = v end end table.sort(nums) for i, num in ipairs(nums) do ret[#ret + 1] = args[num] end return ret end local function fold(func, ...) -- Use a function on all supplied arguments, and return the result. The function must accept two numbers as parameters, -- and must return a number as an output. This number is then supplied as input to the next function call. local vals = makeArgArray(...) local count = #vals -- The number of valid arguments if count == 0 then return -- Exit if we have no valid args, otherwise removing the first arg would cause an error. nil, 0 end local ret = table.remove(vals, 1) for _, val in ipairs(vals) do ret = func(ret, val) end return ret, count end --[[ Fold arguments by selectively choosing values (func should return when to choose the current "dominant" value). ]] local function binary_fold(func, ...) local value = fold((function(a, b) if func(a, b) then return a else return b end end), ...) return value end --[[ random Generate a random number Usage: {{#invoke: Math | random }} {{#invoke: Math | random | maximum value }} {{#invoke: Math | random | minimum value | maximum value }} ]] function wrap.random(args) local first = p._cleanNumber(args[1]) local second = p._cleanNumber(args[2]) return p._random(first, second) end function p._random(first, second) math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000)) -- math.random will throw an error if given an explicit nil parameter, so we need to use if statements to check the params. if first and second then if first <= second then -- math.random doesn't allow the first number to be greater than the second. return math.random(first, second) end elseif first then return math.random(first) else return math.random() end end --[[ order Determine order of magnitude of a number Usage: {{#invoke: Math | order | value }} ]] function wrap.order(args) local input_string = (args[1] or args.x or '0'); local input_number = p._cleanNumber(input_string); if input_number == nil then return err('order of magnitude input appears non-numeric') else return p._order(input_number) end end function p._order(x) if x == 0 then return 0 end return math.floor(math.log10(math.abs(x))) end --[[ precision Detemines the precision of a number using the string representation Usage: {{ #invoke: Math | precision | value }} ]] function wrap.precision(args) local input_string = (args[1] or args.x or '0'); local trap_fraction = args.check_fraction; local input_number; if not yesno then yesno = require('Module:Yesno') end if yesno(trap_fraction, true) then -- Returns true for all input except nil, false, "no", "n", "0" and a few others. See [[Module:Yesno]]. local pos = string.find(input_string, '/', 1, true); if pos ~= nil then if string.find(input_string, '/', pos + 1, true) == nil then local denominator = string.sub(input_string, pos+1, -1); local denom_value = tonumber(denominator); if denom_value ~= nil then return math.log10(denom_value); end end end end input_number, input_string = p._cleanNumber(input_string); if input_string == nil then return err('precision input appears non-numeric') else return p._precision(input_string) end end function p._precision(x) if type(x) == 'number' then x = tostring(x) end x = string.upper(x) local decimal = x:find('%.') local exponent_pos = x:find('E') local result = 0; if exponent_pos ~= nil then local exponent = string.sub(x, exponent_pos + 1) x = string.sub(x, 1, exponent_pos - 1) result = result - tonumber(exponent) end if decimal ~= nil then result = result + string.len(x) - decimal return result end local pos = string.len(x); while x:byte(pos) == string.byte('0') do pos = pos - 1 result = result - 1 if pos <= 0 then return 0 end end return result end --[[ max Finds the maximum argument Usage: {{#invoke:Math| max | value1 | value2 | ... }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.max(args) return p._max(unpackNumberArgs(args)) end function p._max(...) local max_value = binary_fold((function(a, b) return a > b end), ...) if max_value then return max_value end end --[[ median Find the median of set of numbers Usage: {{#invoke:Math | median | number1 | number2 | ...}} OR {{#invoke:Math | median }} ]] function wrap.median(args) return p._median(unpackNumberArgs(args)) end function p._median(...) local vals = makeArgArray(...) local count = #vals table.sort(vals) if count == 0 then return 0 end if p._mod(count, 2) == 0 then return (vals[count/2] + vals[count/2+1])/2 else return vals[math.ceil(count/2)] end end --[[ min Finds the minimum argument Usage: {{#invoke:Math| min | value1 | value2 | ... }} OR {{#invoke:Math| min }} When used with no arguments, it takes its input from the parent frame. Note, any values that do not evaluate to numbers are ignored. ]] function wrap.min(args) return p._min(unpackNumberArgs(args)) end function p._min(...) local min_value = binary_fold((function(a, b) return a < b end), ...) if min_value then return min_value end end --[[ sum Finds the sum Usage: {{#invoke:Math| sum | value1 | value2 | ... }} OR {{#invoke:Math| sum }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.sum(args) return p._sum(unpackNumberArgs(args)) end function p._sum(...) local sums, count = fold((function(a, b) return a + b end), ...) if not sums then return 0 else return sums end end --[[ average Finds the average Usage: {{#invoke:Math| average | value1 | value2 | ... }} OR {{#invoke:Math| average }} Note, any values that do not evaluate to numbers are ignored. ]] function wrap.average(args) return p._average(unpackNumberArgs(args)) end function p._average(...) local sum, count = fold((function(a, b) return a + b end), ...) if not sum then return 0 else return sum / count end end --[[ round Rounds a number to specified precision Usage: {{#invoke:Math | round | value | precision }} --]] function wrap.round(args) local value = p._cleanNumber(args[1] or args.value or 0) local precision = p._cleanNumber(args[2] or args.precision or 0) if value == nil or precision == nil then return err('round input appears non-numeric') else return p._round(value, precision) end end function p._round(value, precision) local rescale = math.pow(10, precision or 0); return math.floor(value * rescale + 0.5) / rescale; end --[[ log10 returns the log (base 10) of a number Usage: {{#invoke:Math | log10 | x }} ]] function wrap.log10(args) return math.log10(args[1]) end --[[ mod Implements the modulo operator Usage: {{#invoke:Math | mod | x | y }} --]] function wrap.mod(args) local x = p._cleanNumber(args[1]) local y = p._cleanNumber(args[2]) if not x then return err('first argument to mod appears non-numeric') elseif not y then return err('second argument to mod appears non-numeric') else return p._mod(x, y) end end function p._mod(x, y) local ret = x % y if not (0 <= ret and ret < y) then ret = 0 end return ret end --[[ gcd Calculates the greatest common divisor of multiple numbers Usage: {{#invoke:Math | gcd | value 1 | value 2 | value 3 | ... }} --]] function wrap.gcd(args) return p._gcd(unpackNumberArgs(args)) end function p._gcd(...) local function findGcd(a, b) local r = b local oldr = a while r ~= 0 do local quotient = math.floor(oldr / r) oldr, r = r, oldr - quotient * r end if oldr < 0 then oldr = oldr * -1 end return oldr end local result, count = fold(findGcd, ...) return result end --[[ precision_format Rounds a number to the specified precision and formats according to rules originally used for {{template:Rnd}}. Output is a string. Usage: {{#invoke: Math | precision_format | number | precision }} ]] function wrap.precision_format(args) local value_string = args[1] or 0 local precision = args[2] or 0 return p._precision_format(value_string, precision) end function p._precision_format(value_string, precision) -- For access to Mediawiki built-in formatter. local lang = mw.getContentLanguage(); local value value, value_string = p._cleanNumber(value_string) precision = p._cleanNumber(precision) -- Check for non-numeric input if value == nil or precision == nil then return err('invalid input when rounding') end local current_precision = p._precision(value) local order = p._order(value) -- Due to round-off effects it is neccesary to limit the returned precision under -- some circumstances because the terminal digits will be inaccurately reported. if order + precision >= 14 then if order + p._precision(value_string) >= 14 then precision = 13 - order; end end -- If rounding off, truncate extra digits if precision < current_precision then value = p._round(value, precision) current_precision = p._precision(value) end local formatted_num = lang:formatNum(math.abs(value)) local sign -- Use proper unary minus sign rather than ASCII default if value < 0 then sign = '−' else sign = '' end -- Handle cases requiring scientific notation if string.find(formatted_num, 'E', 1, true) ~= nil or math.abs(order) >= 9 then value = value * math.pow(10, -order) current_precision = current_precision + order precision = precision + order formatted_num = lang:formatNum(math.abs(value)) else order = 0; end formatted_num = sign .. formatted_num -- Pad with zeros, if needed if current_precision < precision then local padding if current_precision <= 0 then if precision > 0 then local zero_sep = lang:formatNum(1.1) formatted_num = formatted_num .. zero_sep:sub(2,2) padding = precision if padding > 20 then padding = 20 end formatted_num = formatted_num .. string.rep('0', padding) end else padding = precision - current_precision if padding > 20 then padding = 20 end formatted_num = formatted_num .. string.rep('0', padding) end end -- Add exponential notation, if necessary. if order ~= 0 then -- Use proper unary minus sign rather than ASCII default if order < 0 then order = '−' .. lang:formatNum(math.abs(order)) else order = lang:formatNum(order) end formatted_num = formatted_num .. '<span style="margin:0 .15em 0 .25em">×</span>10<sup>' .. order .. '</sup>' end return formatted_num end --[[ divide Implements the division operator Usage: {{#invoke:Math | divide | x | y | round= | precision= }} --]] function wrap.divide(args) local x = args[1] local y = args[2] local round = args.round local precision = args.precision if not yesno then yesno = require('Module:Yesno') end return p._divide(x, y, yesno(round), precision) end function p._divide(x, y, round, precision) if y == nil or y == "" then return err("Empty divisor") elseif not tonumber(y) then if type(y) == 'string' and string.sub(y, 1, 1) == '<' then return y else return err("Not a number: " .. y) end elseif x == nil or x == "" then return err("Empty dividend") elseif not tonumber(x) then if type(x) == 'string' and string.sub(x, 1, 1) == '<' then return x else return err("Not a number: " .. x) end else local z = x / y if round then return p._round(z, 0) elseif precision then return p._round(z, precision) else return z end end end --[[ Helper function that interprets the input numerically. If the input does not appear to be a number, attempts evaluating it as a parser functions expression. ]] function p._cleanNumber(number_string) if type(number_string) == 'number' then -- We were passed a number, so we don't need to do any processing. return number_string, tostring(number_string) elseif type(number_string) ~= 'string' or not number_string:find('%S') then -- We were passed a non-string or a blank string, so exit. return nil, nil; end -- Attempt basic conversion local number = tonumber(number_string) -- If failed, attempt to evaluate input as an expression if number == nil then local success, result = pcall(mw.ext.ParserFunctions.expr, number_string) if success then number = tonumber(result) number_string = tostring(number) else number = nil number_string = nil end else number_string = number_string:match("^%s*(.-)%s*$") -- String is valid but may contain padding, clean it. number_string = number_string:match("^%+(.*)$") or number_string -- Trim any leading + signs. if number_string:find('^%-?0[xX]') then -- Number is using 0xnnn notation to indicate base 16; use the number that Lua detected instead. number_string = tostring(number) end end return number, number_string end --[[ Wrapper function that does basic argument processing. This ensures that all functions from #invoke can use either the current frame or the parent frame, and it also trims whitespace for all arguments and removes blank arguments. ]] local mt = { __index = function(t, k) return function(frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end return wrap[k](getArgs(frame)) -- Argument processing is left to Module:Arguments. Whitespace is trimmed and blank arguments are removed. end end } return setmetatable(p, mt) 53y9xuneyjocim7fhors0t2vo6rax8q Module:Infobox 828 116654 1975383 1964260 2026-06-08T00:50:22Z en>Zackmann08 0 hiding un-needed blank rows that show up in child infoboxes per [[Template_talk:Infobox#Blank_rows_on_child_infoboxes....|talk page]] 1975383 Scribunto text/plain local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local has_rows = false local yesno = require("Module:Yesno") local lists = { plainlist_t = { patterns = { '^plainlist$', '%splainlist$', '^plainlist%s', '%splainlist%s' }, found = false, styles = 'Plainlist/styles.css' }, hlist_t = { patterns = { '^hlist$', '%shlist$', '^hlist%s', '%shlist%s' }, found = false, styles = 'Hlist/styles.css' } } local function has_list_class(args_to_check) for _, list in pairs(lists) do if not list.found then for _, arg in pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end end if list.found then break end end end end end local function isUntitledChildBox(sval) return sval and ( sval:match( '^%s*<%s*[Tt][Rr]' ) or sval:match( '^%s*\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127%s*<%s*[Tt][Rr]' ) ) end local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval -- start moving templatestyles and categories inside of table rows local slast = '' while slast ~= s do slast = s s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*%]%])', '%2%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127)', '%2%1') end -- end moving templatestyles and categories inside of table rows s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) if s:match(marker) then s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '') s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1') s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1') s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1') end if s:match(marker) then local subcells = mw.text.split(s, marker) s = '' for k = 1, #subcells do if k == 1 then s = s .. subcells[k] .. '</' .. tt .. '></tr>' elseif k == #subcells then local rowstyle = ' style="display:none"' if notempty(subcells[k]) then rowstyle = '' end s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k] elseif notempty(subcells[k]) then if (k % 2) == 0 then s = s .. subcells[k] else s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>' end end end end -- the next two lines add a newline at the end of lists for the PHP parser -- [[Special:Diff/849054481]] -- remove when [[:phab:T191516]] is fixed or OBE s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1') s = mw.ustring.gsub(s, '^(%{%|)', '\n%1') return s else return sval end end -- Cleans empty tables local function cleanInfobox() root = tostring(root) if has_rows == false then root = mw.ustring.gsub(root, '<table[^<>]*>%s*</table>', '') end end -- Returns the union of the values of two tables, as a sequence. local function union(t1, t2) local vals = {} for k, v in pairs(t1) do vals[v] = true end for k, v in pairs(t2) do vals[v] = true end local ret = {} for k, v in pairs(vals) do table.insert(ret, k) end return ret end -- Returns a table containing the numbers of the arguments that exist -- for the specified prefix. For example, if the prefix was 'data', and -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}. local function getArgNums(prefix) local nums = {} for k, v in pairs(args) do local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -- Adds a row to the infobox, with either a header cell -- or a label/data cell combination. local function addRow(rowArgs) if rowArgs.header and rowArgs.header ~= '_BLANK_' then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class, args.headerclass }) root :tag('tr') :addClass(rowArgs.rowclass) :addClass( isUntitledChildBox( rowArgs.header ) and 'infobox-hiddenrow' or nil ) :cssText(rowArgs.rowstyle) :tag('th') :attr('colspan', '2') :addClass('infobox-header') :addClass(rowArgs.class) :addClass(args.headerclass) -- @deprecated next; target .infobox-<name> .infobox-header :cssText(args.headerstyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.header, 'th')) if rowArgs.data and not yesno(args.decat) then root:wikitext( '[[Category:Pages using infobox templates with ignored data cells]]' ) end elseif rowArgs.data and rowArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class }) local row = root:tag('tr') row:addClass(rowArgs.rowclass) row:cssText(rowArgs.rowstyle) if rowArgs.label then row :tag('th') :attr('scope', 'row') :addClass('infobox-label') -- @deprecated next; target .infobox-<name> .infobox-label :cssText(args.labelstyle) :cssText(rowArgs.rowcellstyle) :wikitext(rowArgs.label) :done() else row:addClass( isUntitledChildBox( rowArgs.data ) and 'infobox-hiddenrow' or nil ) end local dataCell = row:tag('td') dataCell :attr('colspan', not rowArgs.label and '2' or nil) :addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data') :addClass(rowArgs.class) -- @deprecated next; target .infobox-<name> .infobox(-full)-data :cssText(rowArgs.datastyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.data, 'td')) else table.insert(empty_row_categories, rowArgs.data or '') end end local function renderTitle() if not args.title then return end has_rows = true has_list_class({args.titleclass}) root :tag('caption') :addClass('infobox-title') :addClass(args.titleclass) -- @deprecated next; target .infobox-<name> .infobox-title :cssText(args.titlestyle) :wikitext(args.title) end local function renderAboveRow() if not args.above then return end has_rows = true has_list_class({ args.aboveclass }) root :tag('tr') :addClass( isUntitledChildBox( args.above ) and 'infobox-hiddenrow' or nil ) :tag('th') :attr('colspan', '2') :addClass('infobox-above') :addClass(args.aboveclass) -- @deprecated next; target .infobox-<name> .infobox-above :cssText(args.abovestyle) :wikitext(fixChildBoxes(args.above,'th')) end local function renderBelowRow() if not args.below then return end has_rows = true has_list_class({ args.belowclass }) root :tag('tr') :addClass( isUntitledChildBox( args.below ) and 'infobox-hiddenrow' or nil ) :tag('td') :attr('colspan', '2') :addClass('infobox-below') :addClass(args.belowclass) -- @deprecated next; target .infobox-<name> .infobox-below :cssText(args.belowstyle) :wikitext(fixChildBoxes(args.below,'td')) end local function addSubheaderRow(subheaderArgs) if subheaderArgs.data and subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ subheaderArgs.rowclass, subheaderArgs.class }) local row = root:tag('tr') row:addClass(subheaderArgs.rowclass) row:addClass( isUntitledChildBox( subheaderArgs.data ) and 'infobox-hiddenrow' or nil ) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-subheader') :addClass(subheaderArgs.class) :cssText(subheaderArgs.datastyle) :cssText(subheaderArgs.rowcellstyle) :wikitext(fixChildBoxes(subheaderArgs.data, 'td')) else table.insert(empty_row_categories, subheaderArgs.data or '') end end local function renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1 = args.subheaderrowclass end local subheadernums = getArgNums('subheader') for k, num in ipairs(subheadernums) do addSubheaderRow({ data = args['subheader' .. tostring(num)], -- @deprecated next; target .infobox-<name> .infobox-subheader datastyle = args.subheaderstyle, rowcellstyle = args['subheaderstyle' .. tostring(num)], class = args.subheaderclass, rowclass = args['subheaderrowclass' .. tostring(num)] }) end end local function addImageRow(imageArgs) if imageArgs.data and imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ imageArgs.rowclass, imageArgs.class }) local row = root:tag('tr') row:addClass(imageArgs.rowclass) row:addClass( isUntitledChildBox( imageArgs.data ) and 'infobox-hiddenrow' or nil ) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-image') :addClass(imageArgs.class) :cssText(imageArgs.datastyle) :wikitext(fixChildBoxes(imageArgs.data, 'td')) else table.insert(empty_row_categories, imageArgs.data or '') end end local function renderImages() if args.image then args.image1 = args.image end if args.caption then args.caption1 = args.caption end local imagenums = getArgNums('image') for k, num in ipairs(imagenums) do local caption = args['caption' .. tostring(num)] local data = mw.html.create():wikitext(args['image' .. tostring(num)]) if caption then data :tag('div') :addClass('infobox-caption') -- @deprecated next; target .infobox-<name> .infobox-caption :cssText(args.captionstyle) :wikitext(caption) end addImageRow({ data = tostring(data), -- @deprecated next; target .infobox-<name> .infobox-image datastyle = args.imagestyle, class = args.imageclass, rowclass = args['imagerowclass' .. tostring(num)] }) end end -- When autoheaders are turned on, preprocesses the rows local function preprocessRows() if not args.autoheaders then return end local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) local lastheader for k, num in ipairs(rownums) do if args['header' .. tostring(num)] then if lastheader then args['header' .. tostring(lastheader)] = nil end lastheader = num elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local data = args['data' .. tostring(num)] if data:gsub(category_in_empty_row_pattern, ''):match('%S') then lastheader = nil end end end if lastheader then args['header' .. tostring(lastheader)] = nil end end -- Gets the union of the header and data argument numbers, -- and renders them all in order local function renderRows() local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) for k, num in ipairs(rownums) do addRow({ header = args['header' .. tostring(num)], label = args['label' .. tostring(num)], data = args['data' .. tostring(num)], datastyle = args.datastyle, class = args['class' .. tostring(num)], rowclass = args['rowclass' .. tostring(num)], -- @deprecated next; target .infobox-<name> rowclass rowstyle = args['rowstyle' .. tostring(num)], rowcellstyle = args['rowcellstyle' .. tostring(num)] }) end end local function renderNavBar() if not args.name then return end has_rows = true root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-navbar') :wikitext(require('Module:Navbar')._navbar{ args.name, mini = 1, }) end local function renderItalicTitle() local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title']) if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then root:wikitext(require('Module:Italic title')._main({})) end end -- Categories in otherwise empty rows are collected in empty_row_categories. -- This function adds them to the module output. It is not affected by -- args.decat because this module should not prevent module-external categories -- from rendering. local function renderEmptyRowCategories() for _, s in ipairs(empty_row_categories) do root:wikitext(s) end end -- Render tracking categories. args.decat == turns off tracking categories. local function renderTrackingCategories() if yesno(args.decat) then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Pages using embedded infobox templates with the title parameter]]' ) end elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then root:wikitext('[[Category:Articles using infobox templates with no data rows]]') end end --[=[ Loads the templatestyles for the infobox. TODO: FINISH loading base templatestyles here rather than in MediaWiki:Common.css. There are 4-5000 pages with 'raw' infobox tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :). When we do this we should clean up the inline CSS below too. Will have to do some bizarre conversion category like with sidebar. ]=] local function loadTemplateStyles() local frame = mw.getCurrentFrame() local hlist_templatestyles = '' if lists.hlist_t.found then hlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.hlist_t.styles } } end local plainlist_templatestyles = '' if lists.plainlist_t.found then plainlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.plainlist_t.styles } } end -- See function description local base_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Infobox/styles.css' } } local templatestyles = '' if args['templatestyles'] then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['templatestyles'] } } end local child_templatestyles = '' if args['child templatestyles'] then child_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['child templatestyles'] } } end local grandchild_templatestyles = '' if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['grandchild templatestyles'] } } end return table.concat({ -- hlist -> plainlist -> base is best-effort to preserve old Common.css ordering. -- this ordering is not a guarantee because the rows of interest invoking -- each class may not be on a specific page hlist_templatestyles, plainlist_templatestyles, base_templatestyles, templatestyles, child_templatestyles, grandchild_templatestyles }) end -- common functions between the child and non child cases local function structure_infobox_common() renderSubheaders() renderImages() preprocessRows() renderRows() renderBelowRow() renderNavBar() renderItalicTitle() renderEmptyRowCategories() renderTrackingCategories() cleanInfobox() end -- Specify the overall layout of the infobox, with special settings if the -- infobox is used as a 'child' inside another infobox. local function _infobox() if args.child ~= 'yes' then root = mw.html.create('table') root :addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox') :addClass(args.bodyclass) -- @deprecated next; target .infobox-<name> :cssText(args.bodystyle) has_list_class({ args.bodyclass }) renderTitle() renderAboveRow() else root = mw.html.create() root :wikitext(args.title) end structure_infobox_common() return loadTemplateStyles() .. root end -- If the argument exists and isn't blank, add it to the argument table. -- Blank arguments are treated as nil to match the behaviour of ParserFunctions. local function preprocessSingleArg(argName) if origArgs[argName] and origArgs[argName] ~= '' then args[argName] = origArgs[argName] end end -- Assign the parameters with the given prefixes to the args table, in order, in -- batches of the step size specified. This is to prevent references etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix" string and a -- "depend" table. The function always parses parameters containing the "prefix" -- string, but only parses parameters in the "depend" table if the prefix -- parameter is present and non-blank. local function preprocessArgs(prefixTable, step) if type(prefixTable) ~= 'table' then error("Non-table value detected for the prefix table", 2) end if type(step) ~= 'number' then error("Invalid step value detected", 2) end -- Get arguments without a number suffix, and check for bad input. for i,v in ipairs(prefixTable) do if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then error('Invalid input detected to preprocessArgs prefix table', 2) end preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present -- and not blank. if args[v.prefix] and v.depend then for j, dependValue in ipairs(v.depend) do if type(dependValue) ~= 'string' then error('Invalid "depend" parameter value detected in preprocessArgs') end preprocessSingleArg(dependValue) end end end -- Get arguments with number suffixes. local a = 1 -- Counter variable. local moreArgumentsExist = true while moreArgumentsExist == true do moreArgumentsExist = false for i = a, a + step - 1 do for j,v in ipairs(prefixTable) do local prefixArgName = v.prefix .. tostring(i) if origArgs[prefixArgName] then -- Do another loop if any arguments are found, even blank ones. moreArgumentsExist = true preprocessSingleArg(prefixArgName) end -- Process the depend table if the prefix argument is present -- and not blank, or we are processing "prefix1" and "prefix" is -- present and not blank, and if the depend table is present. if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then for j,dependValue in ipairs(v.depend) do local dependArgName = dependValue .. tostring(i) preprocessSingleArg(dependArgName) end end end end a = a + step end end -- Parse the data parameters in the same order that the old {{infobox}} did, so -- that references etc. will display in the expected places. Parameters that -- depend on another parameter are only processed if that parameter is present, -- to avoid phantom references appearing in article reference lists. local function parseDataParameters() preprocessSingleArg('autoheaders') preprocessSingleArg('child') preprocessSingleArg('bodyclass') preprocessSingleArg('subbox') preprocessSingleArg('bodystyle') preprocessSingleArg('title') preprocessSingleArg('titleclass') preprocessSingleArg('titlestyle') preprocessSingleArg('above') preprocessSingleArg('aboveclass') preprocessSingleArg('abovestyle') preprocessArgs({ {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}} }, 10) preprocessSingleArg('subheaderstyle') preprocessSingleArg('subheaderclass') preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) preprocessSingleArg('captionstyle') preprocessSingleArg('imagestyle') preprocessSingleArg('imageclass') preprocessArgs({ {prefix = 'header'}, {prefix = 'data', depend = {'label'}}, {prefix = 'rowclass'}, {prefix = 'rowstyle'}, {prefix = 'rowcellstyle'}, {prefix = 'class'} }, 50) preprocessSingleArg('headerclass') preprocessSingleArg('headerstyle') preprocessSingleArg('labelstyle') preprocessSingleArg('datastyle') preprocessSingleArg('below') preprocessSingleArg('belowclass') preprocessSingleArg('belowstyle') preprocessSingleArg('name') -- different behaviour for italics if blank or absent args['italic title'] = origArgs['italic title'] preprocessSingleArg('decat') preprocessSingleArg('templatestyles') preprocessSingleArg('child templatestyles') preprocessSingleArg('grandchild templatestyles') end -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. function p.infobox(frame) if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args else origArgs = frame end parseDataParameters() return _infobox() end -- For calling via #invoke within a template function p.infoboxTemplate(frame) origArgs = {} for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end parseDataParameters() return _infobox() end return p kueb5p6xeoq6x7bxu2zyyl7pmxgesrs 1975384 1975383 2026-08-15T16:50:45Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Infobox]] 1975383 Scribunto text/plain local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local has_rows = false local yesno = require("Module:Yesno") local lists = { plainlist_t = { patterns = { '^plainlist$', '%splainlist$', '^plainlist%s', '%splainlist%s' }, found = false, styles = 'Plainlist/styles.css' }, hlist_t = { patterns = { '^hlist$', '%shlist$', '^hlist%s', '%shlist%s' }, found = false, styles = 'Hlist/styles.css' } } local function has_list_class(args_to_check) for _, list in pairs(lists) do if not list.found then for _, arg in pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end end if list.found then break end end end end end local function isUntitledChildBox(sval) return sval and ( sval:match( '^%s*<%s*[Tt][Rr]' ) or sval:match( '^%s*\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127%s*<%s*[Tt][Rr]' ) ) end local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval -- start moving templatestyles and categories inside of table rows local slast = '' while slast ~= s do slast = s s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*%]%])', '%2%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127)', '%2%1') end -- end moving templatestyles and categories inside of table rows s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) if s:match(marker) then s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '') s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1') s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1') s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1') end if s:match(marker) then local subcells = mw.text.split(s, marker) s = '' for k = 1, #subcells do if k == 1 then s = s .. subcells[k] .. '</' .. tt .. '></tr>' elseif k == #subcells then local rowstyle = ' style="display:none"' if notempty(subcells[k]) then rowstyle = '' end s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k] elseif notempty(subcells[k]) then if (k % 2) == 0 then s = s .. subcells[k] else s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>' end end end end -- the next two lines add a newline at the end of lists for the PHP parser -- [[Special:Diff/849054481]] -- remove when [[:phab:T191516]] is fixed or OBE s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1') s = mw.ustring.gsub(s, '^(%{%|)', '\n%1') return s else return sval end end -- Cleans empty tables local function cleanInfobox() root = tostring(root) if has_rows == false then root = mw.ustring.gsub(root, '<table[^<>]*>%s*</table>', '') end end -- Returns the union of the values of two tables, as a sequence. local function union(t1, t2) local vals = {} for k, v in pairs(t1) do vals[v] = true end for k, v in pairs(t2) do vals[v] = true end local ret = {} for k, v in pairs(vals) do table.insert(ret, k) end return ret end -- Returns a table containing the numbers of the arguments that exist -- for the specified prefix. For example, if the prefix was 'data', and -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}. local function getArgNums(prefix) local nums = {} for k, v in pairs(args) do local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -- Adds a row to the infobox, with either a header cell -- or a label/data cell combination. local function addRow(rowArgs) if rowArgs.header and rowArgs.header ~= '_BLANK_' then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class, args.headerclass }) root :tag('tr') :addClass(rowArgs.rowclass) :addClass( isUntitledChildBox( rowArgs.header ) and 'infobox-hiddenrow' or nil ) :cssText(rowArgs.rowstyle) :tag('th') :attr('colspan', '2') :addClass('infobox-header') :addClass(rowArgs.class) :addClass(args.headerclass) -- @deprecated next; target .infobox-<name> .infobox-header :cssText(args.headerstyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.header, 'th')) if rowArgs.data and not yesno(args.decat) then root:wikitext( '[[Category:Pages using infobox templates with ignored data cells]]' ) end elseif rowArgs.data and rowArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class }) local row = root:tag('tr') row:addClass(rowArgs.rowclass) row:cssText(rowArgs.rowstyle) if rowArgs.label then row :tag('th') :attr('scope', 'row') :addClass('infobox-label') -- @deprecated next; target .infobox-<name> .infobox-label :cssText(args.labelstyle) :cssText(rowArgs.rowcellstyle) :wikitext(rowArgs.label) :done() else row:addClass( isUntitledChildBox( rowArgs.data ) and 'infobox-hiddenrow' or nil ) end local dataCell = row:tag('td') dataCell :attr('colspan', not rowArgs.label and '2' or nil) :addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data') :addClass(rowArgs.class) -- @deprecated next; target .infobox-<name> .infobox(-full)-data :cssText(rowArgs.datastyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.data, 'td')) else table.insert(empty_row_categories, rowArgs.data or '') end end local function renderTitle() if not args.title then return end has_rows = true has_list_class({args.titleclass}) root :tag('caption') :addClass('infobox-title') :addClass(args.titleclass) -- @deprecated next; target .infobox-<name> .infobox-title :cssText(args.titlestyle) :wikitext(args.title) end local function renderAboveRow() if not args.above then return end has_rows = true has_list_class({ args.aboveclass }) root :tag('tr') :addClass( isUntitledChildBox( args.above ) and 'infobox-hiddenrow' or nil ) :tag('th') :attr('colspan', '2') :addClass('infobox-above') :addClass(args.aboveclass) -- @deprecated next; target .infobox-<name> .infobox-above :cssText(args.abovestyle) :wikitext(fixChildBoxes(args.above,'th')) end local function renderBelowRow() if not args.below then return end has_rows = true has_list_class({ args.belowclass }) root :tag('tr') :addClass( isUntitledChildBox( args.below ) and 'infobox-hiddenrow' or nil ) :tag('td') :attr('colspan', '2') :addClass('infobox-below') :addClass(args.belowclass) -- @deprecated next; target .infobox-<name> .infobox-below :cssText(args.belowstyle) :wikitext(fixChildBoxes(args.below,'td')) end local function addSubheaderRow(subheaderArgs) if subheaderArgs.data and subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ subheaderArgs.rowclass, subheaderArgs.class }) local row = root:tag('tr') row:addClass(subheaderArgs.rowclass) row:addClass( isUntitledChildBox( subheaderArgs.data ) and 'infobox-hiddenrow' or nil ) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-subheader') :addClass(subheaderArgs.class) :cssText(subheaderArgs.datastyle) :cssText(subheaderArgs.rowcellstyle) :wikitext(fixChildBoxes(subheaderArgs.data, 'td')) else table.insert(empty_row_categories, subheaderArgs.data or '') end end local function renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1 = args.subheaderrowclass end local subheadernums = getArgNums('subheader') for k, num in ipairs(subheadernums) do addSubheaderRow({ data = args['subheader' .. tostring(num)], -- @deprecated next; target .infobox-<name> .infobox-subheader datastyle = args.subheaderstyle, rowcellstyle = args['subheaderstyle' .. tostring(num)], class = args.subheaderclass, rowclass = args['subheaderrowclass' .. tostring(num)] }) end end local function addImageRow(imageArgs) if imageArgs.data and imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ imageArgs.rowclass, imageArgs.class }) local row = root:tag('tr') row:addClass(imageArgs.rowclass) row:addClass( isUntitledChildBox( imageArgs.data ) and 'infobox-hiddenrow' or nil ) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-image') :addClass(imageArgs.class) :cssText(imageArgs.datastyle) :wikitext(fixChildBoxes(imageArgs.data, 'td')) else table.insert(empty_row_categories, imageArgs.data or '') end end local function renderImages() if args.image then args.image1 = args.image end if args.caption then args.caption1 = args.caption end local imagenums = getArgNums('image') for k, num in ipairs(imagenums) do local caption = args['caption' .. tostring(num)] local data = mw.html.create():wikitext(args['image' .. tostring(num)]) if caption then data :tag('div') :addClass('infobox-caption') -- @deprecated next; target .infobox-<name> .infobox-caption :cssText(args.captionstyle) :wikitext(caption) end addImageRow({ data = tostring(data), -- @deprecated next; target .infobox-<name> .infobox-image datastyle = args.imagestyle, class = args.imageclass, rowclass = args['imagerowclass' .. tostring(num)] }) end end -- When autoheaders are turned on, preprocesses the rows local function preprocessRows() if not args.autoheaders then return end local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) local lastheader for k, num in ipairs(rownums) do if args['header' .. tostring(num)] then if lastheader then args['header' .. tostring(lastheader)] = nil end lastheader = num elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local data = args['data' .. tostring(num)] if data:gsub(category_in_empty_row_pattern, ''):match('%S') then lastheader = nil end end end if lastheader then args['header' .. tostring(lastheader)] = nil end end -- Gets the union of the header and data argument numbers, -- and renders them all in order local function renderRows() local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) for k, num in ipairs(rownums) do addRow({ header = args['header' .. tostring(num)], label = args['label' .. tostring(num)], data = args['data' .. tostring(num)], datastyle = args.datastyle, class = args['class' .. tostring(num)], rowclass = args['rowclass' .. tostring(num)], -- @deprecated next; target .infobox-<name> rowclass rowstyle = args['rowstyle' .. tostring(num)], rowcellstyle = args['rowcellstyle' .. tostring(num)] }) end end local function renderNavBar() if not args.name then return end has_rows = true root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-navbar') :wikitext(require('Module:Navbar')._navbar{ args.name, mini = 1, }) end local function renderItalicTitle() local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title']) if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then root:wikitext(require('Module:Italic title')._main({})) end end -- Categories in otherwise empty rows are collected in empty_row_categories. -- This function adds them to the module output. It is not affected by -- args.decat because this module should not prevent module-external categories -- from rendering. local function renderEmptyRowCategories() for _, s in ipairs(empty_row_categories) do root:wikitext(s) end end -- Render tracking categories. args.decat == turns off tracking categories. local function renderTrackingCategories() if yesno(args.decat) then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Pages using embedded infobox templates with the title parameter]]' ) end elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then root:wikitext('[[Category:Articles using infobox templates with no data rows]]') end end --[=[ Loads the templatestyles for the infobox. TODO: FINISH loading base templatestyles here rather than in MediaWiki:Common.css. There are 4-5000 pages with 'raw' infobox tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :). When we do this we should clean up the inline CSS below too. Will have to do some bizarre conversion category like with sidebar. ]=] local function loadTemplateStyles() local frame = mw.getCurrentFrame() local hlist_templatestyles = '' if lists.hlist_t.found then hlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.hlist_t.styles } } end local plainlist_templatestyles = '' if lists.plainlist_t.found then plainlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.plainlist_t.styles } } end -- See function description local base_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Infobox/styles.css' } } local templatestyles = '' if args['templatestyles'] then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['templatestyles'] } } end local child_templatestyles = '' if args['child templatestyles'] then child_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['child templatestyles'] } } end local grandchild_templatestyles = '' if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['grandchild templatestyles'] } } end return table.concat({ -- hlist -> plainlist -> base is best-effort to preserve old Common.css ordering. -- this ordering is not a guarantee because the rows of interest invoking -- each class may not be on a specific page hlist_templatestyles, plainlist_templatestyles, base_templatestyles, templatestyles, child_templatestyles, grandchild_templatestyles }) end -- common functions between the child and non child cases local function structure_infobox_common() renderSubheaders() renderImages() preprocessRows() renderRows() renderBelowRow() renderNavBar() renderItalicTitle() renderEmptyRowCategories() renderTrackingCategories() cleanInfobox() end -- Specify the overall layout of the infobox, with special settings if the -- infobox is used as a 'child' inside another infobox. local function _infobox() if args.child ~= 'yes' then root = mw.html.create('table') root :addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox') :addClass(args.bodyclass) -- @deprecated next; target .infobox-<name> :cssText(args.bodystyle) has_list_class({ args.bodyclass }) renderTitle() renderAboveRow() else root = mw.html.create() root :wikitext(args.title) end structure_infobox_common() return loadTemplateStyles() .. root end -- If the argument exists and isn't blank, add it to the argument table. -- Blank arguments are treated as nil to match the behaviour of ParserFunctions. local function preprocessSingleArg(argName) if origArgs[argName] and origArgs[argName] ~= '' then args[argName] = origArgs[argName] end end -- Assign the parameters with the given prefixes to the args table, in order, in -- batches of the step size specified. This is to prevent references etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix" string and a -- "depend" table. The function always parses parameters containing the "prefix" -- string, but only parses parameters in the "depend" table if the prefix -- parameter is present and non-blank. local function preprocessArgs(prefixTable, step) if type(prefixTable) ~= 'table' then error("Non-table value detected for the prefix table", 2) end if type(step) ~= 'number' then error("Invalid step value detected", 2) end -- Get arguments without a number suffix, and check for bad input. for i,v in ipairs(prefixTable) do if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then error('Invalid input detected to preprocessArgs prefix table', 2) end preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present -- and not blank. if args[v.prefix] and v.depend then for j, dependValue in ipairs(v.depend) do if type(dependValue) ~= 'string' then error('Invalid "depend" parameter value detected in preprocessArgs') end preprocessSingleArg(dependValue) end end end -- Get arguments with number suffixes. local a = 1 -- Counter variable. local moreArgumentsExist = true while moreArgumentsExist == true do moreArgumentsExist = false for i = a, a + step - 1 do for j,v in ipairs(prefixTable) do local prefixArgName = v.prefix .. tostring(i) if origArgs[prefixArgName] then -- Do another loop if any arguments are found, even blank ones. moreArgumentsExist = true preprocessSingleArg(prefixArgName) end -- Process the depend table if the prefix argument is present -- and not blank, or we are processing "prefix1" and "prefix" is -- present and not blank, and if the depend table is present. if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then for j,dependValue in ipairs(v.depend) do local dependArgName = dependValue .. tostring(i) preprocessSingleArg(dependArgName) end end end end a = a + step end end -- Parse the data parameters in the same order that the old {{infobox}} did, so -- that references etc. will display in the expected places. Parameters that -- depend on another parameter are only processed if that parameter is present, -- to avoid phantom references appearing in article reference lists. local function parseDataParameters() preprocessSingleArg('autoheaders') preprocessSingleArg('child') preprocessSingleArg('bodyclass') preprocessSingleArg('subbox') preprocessSingleArg('bodystyle') preprocessSingleArg('title') preprocessSingleArg('titleclass') preprocessSingleArg('titlestyle') preprocessSingleArg('above') preprocessSingleArg('aboveclass') preprocessSingleArg('abovestyle') preprocessArgs({ {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}} }, 10) preprocessSingleArg('subheaderstyle') preprocessSingleArg('subheaderclass') preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) preprocessSingleArg('captionstyle') preprocessSingleArg('imagestyle') preprocessSingleArg('imageclass') preprocessArgs({ {prefix = 'header'}, {prefix = 'data', depend = {'label'}}, {prefix = 'rowclass'}, {prefix = 'rowstyle'}, {prefix = 'rowcellstyle'}, {prefix = 'class'} }, 50) preprocessSingleArg('headerclass') preprocessSingleArg('headerstyle') preprocessSingleArg('labelstyle') preprocessSingleArg('datastyle') preprocessSingleArg('below') preprocessSingleArg('belowclass') preprocessSingleArg('belowstyle') preprocessSingleArg('name') -- different behaviour for italics if blank or absent args['italic title'] = origArgs['italic title'] preprocessSingleArg('decat') preprocessSingleArg('templatestyles') preprocessSingleArg('child templatestyles') preprocessSingleArg('grandchild templatestyles') end -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. function p.infobox(frame) if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args else origArgs = frame end parseDataParameters() return _infobox() end -- For calling via #invoke within a template function p.infoboxTemplate(frame) origArgs = {} for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end parseDataParameters() return _infobox() end return p kueb5p6xeoq6x7bxu2zyyl7pmxgesrs 1975526 1975384 2026-08-15T20:29:59Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975383|1975383]] frá notandanum [[:en:User:Zackmann08|en>Zackmann08]] 1975526 Scribunto text/plain local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local has_rows = false local yesno = require("Module:Yesno") local lists = { plainlist_t = { patterns = { '^plainlist$', '%splainlist$', '^plainlist%s', '%splainlist%s' }, found = false, styles = 'Plainlist/styles.css' }, hlist_t = { patterns = { '^hlist$', '%shlist$', '^hlist%s', '%shlist%s' }, found = false, styles = 'Hlist/styles.css' } } local function has_list_class(args_to_check) for _, list in pairs(lists) do if not list.found then for _, arg in pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end end if list.found then break end end end end end local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval -- start moving templatestyles and categories inside of table rows local slast = '' while slast ~= s do slast = s s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*%]%])', '%2%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127)', '%2%1') end -- end moving templatestyles and categories inside of table rows s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) if s:match(marker) then s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '') s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1') s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1') s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1') end if s:match(marker) then local subcells = mw.text.split(s, marker) s = '' for k = 1, #subcells do if k == 1 then s = s .. subcells[k] .. '</' .. tt .. '></tr>' elseif k == #subcells then local rowstyle = ' style="display:none"' if notempty(subcells[k]) then rowstyle = '' end s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k] elseif notempty(subcells[k]) then if (k % 2) == 0 then s = s .. subcells[k] else s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>' end end end end -- the next two lines add a newline at the end of lists for the PHP parser -- [[Special:Diff/849054481]] -- remove when [[:phab:T191516]] is fixed or OBE s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1') s = mw.ustring.gsub(s, '^(%{%|)', '\n%1') return s else return sval end end -- Cleans empty tables local function cleanInfobox() root = tostring(root) if has_rows == false then root = mw.ustring.gsub(root, '<table[^<>]*>%s*</table>', '') end end -- Returns the union of the values of two tables, as a sequence. local function union(t1, t2) local vals = {} for k, v in pairs(t1) do vals[v] = true end for k, v in pairs(t2) do vals[v] = true end local ret = {} for k, v in pairs(vals) do table.insert(ret, k) end return ret end -- Returns a table containing the numbers of the arguments that exist -- for the specified prefix. For example, if the prefix was 'data', and -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}. local function getArgNums(prefix) local nums = {} for k, v in pairs(args) do local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -- Adds a row to the infobox, with either a header cell -- or a label/data cell combination. local function addRow(rowArgs) if rowArgs.header and rowArgs.header ~= '_BLANK_' then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class, args.headerclass }) root :tag('tr') :addClass(rowArgs.rowclass) :cssText(rowArgs.rowstyle) :tag('th') :attr('colspan', '2') :addClass('infobox-header') :addClass(rowArgs.class) :addClass(args.headerclass) -- @deprecated next; target .infobox-<name> .infobox-header :cssText(args.headerstyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.header, 'th')) if rowArgs.data and not yesno(args.decat) then root:wikitext( '[[Category:Pages using infobox templates with ignored data cells]]' ) end elseif rowArgs.data and rowArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class }) local row = root:tag('tr') row:addClass(rowArgs.rowclass) row:cssText(rowArgs.rowstyle) if rowArgs.label then row :tag('th') :attr('scope', 'row') :addClass('infobox-label') -- @deprecated next; target .infobox-<name> .infobox-label :cssText(args.labelstyle) :cssText(rowArgs.rowcellstyle) :wikitext(rowArgs.label) :done() end local dataCell = row:tag('td') dataCell :attr('colspan', not rowArgs.label and '2' or nil) :addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data') :addClass(rowArgs.class) -- @deprecated next; target .infobox-<name> .infobox(-full)-data :cssText(rowArgs.datastyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.data, 'td')) else table.insert(empty_row_categories, rowArgs.data or '') end end local function renderTitle() if not args.title then return end has_rows = true has_list_class({args.titleclass}) root :tag('caption') :addClass('infobox-title') :addClass(args.titleclass) -- @deprecated next; target .infobox-<name> .infobox-title :cssText(args.titlestyle) :wikitext(args.title) end local function renderAboveRow() if not args.above then return end has_rows = true has_list_class({ args.aboveclass }) root :tag('tr') :tag('th') :attr('colspan', '2') :addClass('infobox-above') :addClass(args.aboveclass) -- @deprecated next; target .infobox-<name> .infobox-above :cssText(args.abovestyle) :wikitext(fixChildBoxes(args.above,'th')) end local function renderBelowRow() if not args.below then return end has_rows = true has_list_class({ args.belowclass }) root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-below') :addClass(args.belowclass) -- @deprecated next; target .infobox-<name> .infobox-below :cssText(args.belowstyle) :wikitext(fixChildBoxes(args.below,'td')) end local function addSubheaderRow(subheaderArgs) if subheaderArgs.data and subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ subheaderArgs.rowclass, subheaderArgs.class }) local row = root:tag('tr') row:addClass(subheaderArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-subheader') :addClass(subheaderArgs.class) :cssText(subheaderArgs.datastyle) :cssText(subheaderArgs.rowcellstyle) :wikitext(fixChildBoxes(subheaderArgs.data, 'td')) else table.insert(empty_row_categories, subheaderArgs.data or '') end end local function renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1 = args.subheaderrowclass end local subheadernums = getArgNums('subheader') for k, num in ipairs(subheadernums) do addSubheaderRow({ data = args['subheader' .. tostring(num)], -- @deprecated next; target .infobox-<name> .infobox-subheader datastyle = args.subheaderstyle, rowcellstyle = args['subheaderstyle' .. tostring(num)], class = args.subheaderclass, rowclass = args['subheaderrowclass' .. tostring(num)] }) end end local function addImageRow(imageArgs) if imageArgs.data and imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ imageArgs.rowclass, imageArgs.class }) local row = root:tag('tr') row:addClass(imageArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-image') :addClass(imageArgs.class) :cssText(imageArgs.datastyle) :wikitext(fixChildBoxes(imageArgs.data, 'td')) else table.insert(empty_row_categories, imageArgs.data or '') end end local function renderImages() if args.image then args.image1 = args.image end if args.caption then args.caption1 = args.caption end local imagenums = getArgNums('image') for k, num in ipairs(imagenums) do local caption = args['caption' .. tostring(num)] local data = mw.html.create():wikitext(args['image' .. tostring(num)]) if caption then data :tag('div') :addClass('infobox-caption') -- @deprecated next; target .infobox-<name> .infobox-caption :cssText(args.captionstyle) :wikitext(caption) end addImageRow({ data = tostring(data), -- @deprecated next; target .infobox-<name> .infobox-image datastyle = args.imagestyle, class = args.imageclass, rowclass = args['imagerowclass' .. tostring(num)] }) end end -- When autoheaders are turned on, preprocesses the rows local function preprocessRows() if not args.autoheaders then return end local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) local lastheader for k, num in ipairs(rownums) do if args['header' .. tostring(num)] then if lastheader then args['header' .. tostring(lastheader)] = nil end lastheader = num elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local data = args['data' .. tostring(num)] if data:gsub(category_in_empty_row_pattern, ''):match('%S') then lastheader = nil end end end if lastheader then args['header' .. tostring(lastheader)] = nil end end -- Gets the union of the header and data argument numbers, -- and renders them all in order local function renderRows() local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) for k, num in ipairs(rownums) do addRow({ header = args['header' .. tostring(num)], label = args['label' .. tostring(num)], data = args['data' .. tostring(num)], datastyle = args.datastyle, class = args['class' .. tostring(num)], rowclass = args['rowclass' .. tostring(num)], -- @deprecated next; target .infobox-<name> rowclass rowstyle = args['rowstyle' .. tostring(num)], rowcellstyle = args['rowcellstyle' .. tostring(num)] }) end end local function renderNavBar() if not args.name then return end has_rows = true root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-navbar') :wikitext(require('Module:Navbar')._navbar{ args.name, mini = 1, }) end local function renderItalicTitle() local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title']) if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then root:wikitext(require('Module:Italic title')._main({})) end end -- Categories in otherwise empty rows are collected in empty_row_categories. -- This function adds them to the module output. It is not affected by -- args.decat because this module should not prevent module-external categories -- from rendering. local function renderEmptyRowCategories() for _, s in ipairs(empty_row_categories) do root:wikitext(s) end end -- Render tracking categories. args.decat == turns off tracking categories. local function renderTrackingCategories() if yesno(args.decat) then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Greinar með infobox ítengingu og engum titli]]' ) end elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then root:wikitext('[[Category:Greinar með infobox ítengingu og engum gögnum]]') end end --[=[ Loads the templatestyles for the infobox. TODO: FINISH loading base templatestyles here rather than in MediaWiki:Common.css. There are 4-5000 pages with 'raw' infobox tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :). When we do this we should clean up the inline CSS below too. Will have to do some bizarre conversion category like with sidebar. ]=] local function loadTemplateStyles() local frame = mw.getCurrentFrame() local hlist_templatestyles = '' if lists.hlist_t.found then hlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.hlist_t.styles } } end local plainlist_templatestyles = '' if lists.plainlist_t.found then plainlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.plainlist_t.styles } } end -- See function description local base_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Infobox/styles.css' } } local templatestyles = '' if args['templatestyles'] then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['templatestyles'] } } end local child_templatestyles = '' if args['child templatestyles'] then child_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['child templatestyles'] } } end local grandchild_templatestyles = '' if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['grandchild templatestyles'] } } end return table.concat({ -- hlist -> plainlist -> base is best-effort to preserve old Common.css ordering. -- this ordering is not a guarantee because the rows of interest invoking -- each class may not be on a specific page hlist_templatestyles, plainlist_templatestyles, base_templatestyles, templatestyles, child_templatestyles, grandchild_templatestyles }) end -- common functions between the child and non child cases local function structure_infobox_common() renderSubheaders() renderImages() preprocessRows() renderRows() renderBelowRow() renderNavBar() renderItalicTitle() renderEmptyRowCategories() renderTrackingCategories() cleanInfobox() end -- Specify the overall layout of the infobox, with special settings if the -- infobox is used as a 'child' inside another infobox. local function _infobox() if args.child ~= 'yes' then root = mw.html.create('table') root :addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox') :addClass(args.bodyclass) -- @deprecated next; target .infobox-<name> :cssText(args.bodystyle) has_list_class({ args.bodyclass }) renderTitle() renderAboveRow() else root = mw.html.create() root :wikitext(args.title) end structure_infobox_common() return loadTemplateStyles() .. root end -- If the argument exists and isn't blank, add it to the argument table. -- Blank arguments are treated as nil to match the behaviour of ParserFunctions. local function preprocessSingleArg(argName) if origArgs[argName] and origArgs[argName] ~= '' then args[argName] = origArgs[argName] end end -- Assign the parameters with the given prefixes to the args table, in order, in -- batches of the step size specified. This is to prevent references etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix" string and a -- "depend" table. The function always parses parameters containing the "prefix" -- string, but only parses parameters in the "depend" table if the prefix -- parameter is present and non-blank. local function preprocessArgs(prefixTable, step) if type(prefixTable) ~= 'table' then error("Non-table value detected for the prefix table", 2) end if type(step) ~= 'number' then error("Invalid step value detected", 2) end -- Get arguments without a number suffix, and check for bad input. for i,v in ipairs(prefixTable) do if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then error('Invalid input detected to preprocessArgs prefix table', 2) end preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present -- and not blank. if args[v.prefix] and v.depend then for j, dependValue in ipairs(v.depend) do if type(dependValue) ~= 'string' then error('Invalid "depend" parameter value detected in preprocessArgs') end preprocessSingleArg(dependValue) end end end -- Get arguments with number suffixes. local a = 1 -- Counter variable. local moreArgumentsExist = true while moreArgumentsExist == true do moreArgumentsExist = false for i = a, a + step - 1 do for j,v in ipairs(prefixTable) do local prefixArgName = v.prefix .. tostring(i) if origArgs[prefixArgName] then -- Do another loop if any arguments are found, even blank ones. moreArgumentsExist = true preprocessSingleArg(prefixArgName) end -- Process the depend table if the prefix argument is present -- and not blank, or we are processing "prefix1" and "prefix" is -- present and not blank, and if the depend table is present. if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then for j,dependValue in ipairs(v.depend) do local dependArgName = dependValue .. tostring(i) preprocessSingleArg(dependArgName) end end end end a = a + step end end -- Parse the data parameters in the same order that the old {{infobox}} did, so -- that references etc. will display in the expected places. Parameters that -- depend on another parameter are only processed if that parameter is present, -- to avoid phantom references appearing in article reference lists. local function parseDataParameters() preprocessSingleArg('autoheaders') preprocessSingleArg('child') preprocessSingleArg('bodyclass') preprocessSingleArg('subbox') preprocessSingleArg('bodystyle') preprocessSingleArg('title') preprocessSingleArg('titleclass') preprocessSingleArg('titlestyle') preprocessSingleArg('above') preprocessSingleArg('aboveclass') preprocessSingleArg('abovestyle') preprocessArgs({ {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}} }, 10) preprocessSingleArg('subheaderstyle') preprocessSingleArg('subheaderclass') preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) preprocessSingleArg('captionstyle') preprocessSingleArg('imagestyle') preprocessSingleArg('imageclass') preprocessArgs({ {prefix = 'header'}, {prefix = 'data', depend = {'label'}}, {prefix = 'rowclass'}, {prefix = 'rowstyle'}, {prefix = 'rowcellstyle'}, {prefix = 'class'} }, 50) preprocessSingleArg('headerclass') preprocessSingleArg('headerstyle') preprocessSingleArg('labelstyle') preprocessSingleArg('datastyle') preprocessSingleArg('below') preprocessSingleArg('belowclass') preprocessSingleArg('belowstyle') preprocessSingleArg('name') -- different behaviour for italics if blank or absent args['italic title'] = origArgs['italic title'] preprocessSingleArg('decat') preprocessSingleArg('templatestyles') preprocessSingleArg('child templatestyles') preprocessSingleArg('grandchild templatestyles') end -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. function p.infobox(frame) if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args else origArgs = frame end parseDataParameters() return _infobox() end -- For calling via #invoke within a template function p.infoboxTemplate(frame) origArgs = {} for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end parseDataParameters() return _infobox() end return p ihmrtloq4ajvx8hzpz0c5u1cq2crnxr Module:InfoboxImage 828 120307 1975385 1771101 2025-10-18T09:45:47Z en>WOSlinker 0 make changes from sandbox requested by [[User:Hike395]] on talk page 1975385 Scribunto text/plain -- Inputs: -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link -- page - page to display for multipage images (DjVu) -- size - size to display the image -- maxsize - maximum size for image -- sizedefault - default size to display the image if size param is blank -- alt - alt text for image -- title - title text for image -- border - set to yes if border -- center - set to yes, if the image has to be centered -- upright - upright image param -- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it -- link - page to visit when clicking on image -- class - HTML classes to add to the image -- Outputs: -- Formatted image. -- More details available at the "Module:InfoboxImage/doc" page local i = {} -- List of placeholder images and tracking categories stored in [[Module:InfoboxImage/data]] -- Other constants: -- the system-wide default thumbnail size (in px) local defaultThumbnailSize = 250 -- If page is not a user page, return tracking category. Else return empty. local function trackingCat(cat) local ns = mw.title.getCurrentTitle().nsText:lower() local categories = mw.loadData('Module:InfoboxImage/data').categories return (ns ~= 'user' and ns ~= 'user talk' and categories[cat]) or "" end -- Determine whether image is a placeholder function i.IsPlaceholder(image) -- change underscores to spaces image = mw.ustring.gsub(image, "_", " "); assert(image ~= nil, 'mw.ustring.gsub(image, "_", " ") must not return nil') -- if image starts with [[ then remove that and anything after | if mw.ustring.sub(image,1,2) == "[[" then image = mw.ustring.sub(image,3); image = mw.ustring.gsub(image, "([^|]*)|.*", "%1"); assert(image ~= nil, 'mw.ustring.gsub(image, "([^|]*)|.*", "%1") must not return nil') end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); assert(image ~= nil, "mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1') must not return nil") -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); -- capitalise first letter image = mw.ustring.upper(mw.ustring.sub(image,1,1)) .. mw.ustring.sub(image,2); local placeholder_image = mw.loadData('Module:InfoboxImage/data').placeholder_image return placeholder_image[image] end local function isempty(x) return (not x) or x == "" end -- Main entry point function i.InfoboxImage(frame) local image = frame.args["image"]; if isempty(image) then return ""; end if image == "&nbsp;" then return image; end if frame.args["suppressplaceholder"] ~= "no" then if i.IsPlaceholder(image) == true then return ""; end end if string.find(image, "^%[*https?:") then -- Error category. return trackingCat("url_image_links") end if mw.ustring.sub(image,1,2) == "[[" then -- search for thumbnail images and add to tracking cat if found local cat = ""; if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then cat = trackingCat("thumbnail_images") end return image .. cat; elseif mw.ustring.sub(image,1,2) == "{{" and mw.ustring.sub(image,1,3) ~= "{{{" then return image; elseif mw.ustring.sub(image,1,1) == "<" then return image; elseif mw.ustring.sub(image,1,8) == mw.ustring.char(127).."'\"`UNIQ" then -- Found strip marker at begining, so pass don't process at all return image; else local result = ""; local page = frame.args["page"]; local upright = frame.args["upright"] or "" local size = frame.args["size"]; local maxsize = frame.args["maxsize"]; local sizedefault = frame.args["sizedefault"]; local alt = frame.args["alt"]; local link = frame.args["link"]; local title = frame.args["title"]; local border = frame.args["border"]; local thumbtime = frame.args["thumbtime"] or ""; local center = frame.args["center"]; local class = frame.args["class"]; -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end if not isempty(maxsize) then -- if no sizedefault nor upright, then set to maxsize if isempty(sizedefault) and isempty(upright) then sizedefault = maxsize end -- check to see if size bigger than maxsize local maxsizenumber = tonumber(mw.ustring.match(maxsize,"%d*")) or 0; if not isempty(size) then local sizenumber = tonumber(mw.ustring.match(size,"%d*")) or 0; if sizenumber > maxsizenumber and maxsizenumber > 0 then size = maxsize; end end -- check to see if upright bigger than maxsize (at default preferred size) if not isempty(upright) then local uprightnumber = tonumber(upright) or (upright == "yes" and 0.75) or 0 if uprightnumber*defaultThumbnailSize > maxsizenumber and maxsizenumber > 0 then upright = tostring(maxsizenumber/defaultThumbnailSize) end end end -- add px to size if just a number if (tonumber(size) or 0) > 0 then size = size .. "px"; end -- add px to sizedefault if just a number if (tonumber(sizedefault) or 0) > 0 then sizedefault = sizedefault .. "px"; end result = "[[File:" .. image; if not isempty(page) then result = result .. "|page=" .. page; end if not isempty(size) then result = result .. "|" .. size; elseif not isempty(sizedefault) and isempty(upright) then result = result .. "|" .. sizedefault; else result = result .. "|frameless"; end if center == "yes" then result = result .. "|center" end if not isempty(alt) then result = result .. "|alt=" .. alt; end if not isempty(link) then result = result .. "|link=" .. link; end if border == "yes" then result = result .. "|border"; end if upright == "yes" then result = result .. "|upright"; elseif upright ~= "" then result = result .. "|upright=" .. upright; end if thumbtime ~= "" then result = result .. "|thumbtime=" .. thumbtime; end if not isempty(class) then result = result .. "|class=" .. class; end -- if alt value is a keyword then do not use as a description if alt == "thumbnail" or alt == "thumb" or alt == "frameless" or alt == "left" or alt == "center" or alt == "right" or alt == "upright" or alt == "border" or mw.ustring.match(alt or "", '^[0-9]*px$', 1) ~= nil then alt = nil; end if not isempty(title) then -- does title param contain any templatestyles? If yes then set to blank. if mw.ustring.match(frame:preprocess(title), 'UNIQ%-%-templatestyles', 1) ~= nil then title = nil; end end if not isempty(title) then result = result .. "|" .. title; end result = result .. "]]"; return result; end end return i; jhks6vfk9v2iehyrc6dp50ju1s294vf 1975386 1975385 2026-08-15T16:50:45Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:InfoboxImage]] 1975385 Scribunto text/plain -- Inputs: -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link -- page - page to display for multipage images (DjVu) -- size - size to display the image -- maxsize - maximum size for image -- sizedefault - default size to display the image if size param is blank -- alt - alt text for image -- title - title text for image -- border - set to yes if border -- center - set to yes, if the image has to be centered -- upright - upright image param -- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it -- link - page to visit when clicking on image -- class - HTML classes to add to the image -- Outputs: -- Formatted image. -- More details available at the "Module:InfoboxImage/doc" page local i = {} -- List of placeholder images and tracking categories stored in [[Module:InfoboxImage/data]] -- Other constants: -- the system-wide default thumbnail size (in px) local defaultThumbnailSize = 250 -- If page is not a user page, return tracking category. Else return empty. local function trackingCat(cat) local ns = mw.title.getCurrentTitle().nsText:lower() local categories = mw.loadData('Module:InfoboxImage/data').categories return (ns ~= 'user' and ns ~= 'user talk' and categories[cat]) or "" end -- Determine whether image is a placeholder function i.IsPlaceholder(image) -- change underscores to spaces image = mw.ustring.gsub(image, "_", " "); assert(image ~= nil, 'mw.ustring.gsub(image, "_", " ") must not return nil') -- if image starts with [[ then remove that and anything after | if mw.ustring.sub(image,1,2) == "[[" then image = mw.ustring.sub(image,3); image = mw.ustring.gsub(image, "([^|]*)|.*", "%1"); assert(image ~= nil, 'mw.ustring.gsub(image, "([^|]*)|.*", "%1") must not return nil') end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); assert(image ~= nil, "mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1') must not return nil") -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); -- capitalise first letter image = mw.ustring.upper(mw.ustring.sub(image,1,1)) .. mw.ustring.sub(image,2); local placeholder_image = mw.loadData('Module:InfoboxImage/data').placeholder_image return placeholder_image[image] end local function isempty(x) return (not x) or x == "" end -- Main entry point function i.InfoboxImage(frame) local image = frame.args["image"]; if isempty(image) then return ""; end if image == "&nbsp;" then return image; end if frame.args["suppressplaceholder"] ~= "no" then if i.IsPlaceholder(image) == true then return ""; end end if string.find(image, "^%[*https?:") then -- Error category. return trackingCat("url_image_links") end if mw.ustring.sub(image,1,2) == "[[" then -- search for thumbnail images and add to tracking cat if found local cat = ""; if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then cat = trackingCat("thumbnail_images") end return image .. cat; elseif mw.ustring.sub(image,1,2) == "{{" and mw.ustring.sub(image,1,3) ~= "{{{" then return image; elseif mw.ustring.sub(image,1,1) == "<" then return image; elseif mw.ustring.sub(image,1,8) == mw.ustring.char(127).."'\"`UNIQ" then -- Found strip marker at begining, so pass don't process at all return image; else local result = ""; local page = frame.args["page"]; local upright = frame.args["upright"] or "" local size = frame.args["size"]; local maxsize = frame.args["maxsize"]; local sizedefault = frame.args["sizedefault"]; local alt = frame.args["alt"]; local link = frame.args["link"]; local title = frame.args["title"]; local border = frame.args["border"]; local thumbtime = frame.args["thumbtime"] or ""; local center = frame.args["center"]; local class = frame.args["class"]; -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end if not isempty(maxsize) then -- if no sizedefault nor upright, then set to maxsize if isempty(sizedefault) and isempty(upright) then sizedefault = maxsize end -- check to see if size bigger than maxsize local maxsizenumber = tonumber(mw.ustring.match(maxsize,"%d*")) or 0; if not isempty(size) then local sizenumber = tonumber(mw.ustring.match(size,"%d*")) or 0; if sizenumber > maxsizenumber and maxsizenumber > 0 then size = maxsize; end end -- check to see if upright bigger than maxsize (at default preferred size) if not isempty(upright) then local uprightnumber = tonumber(upright) or (upright == "yes" and 0.75) or 0 if uprightnumber*defaultThumbnailSize > maxsizenumber and maxsizenumber > 0 then upright = tostring(maxsizenumber/defaultThumbnailSize) end end end -- add px to size if just a number if (tonumber(size) or 0) > 0 then size = size .. "px"; end -- add px to sizedefault if just a number if (tonumber(sizedefault) or 0) > 0 then sizedefault = sizedefault .. "px"; end result = "[[File:" .. image; if not isempty(page) then result = result .. "|page=" .. page; end if not isempty(size) then result = result .. "|" .. size; elseif not isempty(sizedefault) and isempty(upright) then result = result .. "|" .. sizedefault; else result = result .. "|frameless"; end if center == "yes" then result = result .. "|center" end if not isempty(alt) then result = result .. "|alt=" .. alt; end if not isempty(link) then result = result .. "|link=" .. link; end if border == "yes" then result = result .. "|border"; end if upright == "yes" then result = result .. "|upright"; elseif upright ~= "" then result = result .. "|upright=" .. upright; end if thumbtime ~= "" then result = result .. "|thumbtime=" .. thumbtime; end if not isempty(class) then result = result .. "|class=" .. class; end -- if alt value is a keyword then do not use as a description if alt == "thumbnail" or alt == "thumb" or alt == "frameless" or alt == "left" or alt == "center" or alt == "right" or alt == "upright" or alt == "border" or mw.ustring.match(alt or "", '^[0-9]*px$', 1) ~= nil then alt = nil; end if not isempty(title) then -- does title param contain any templatestyles? If yes then set to blank. if mw.ustring.match(frame:preprocess(title), 'UNIQ%-%-templatestyles', 1) ~= nil then title = nil; end end if not isempty(title) then result = result .. "|" .. title; end result = result .. "]]"; return result; end end return i; jhks6vfk9v2iehyrc6dp50ju1s294vf 1975513 1975386 2026-08-15T17:31:25Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975385|1975385]] frá notandanum [[:en:User:WOSlinker|en>WOSlinker]] 1975513 Scribunto text/plain -- Inputs: -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link -- page - page to display for multipage images (DjVu) -- size - size to display the image -- maxsize - maximum size for image -- sizedefault - default size to display the image if size param is blank -- alt - alt text for image -- title - title text for image -- border - set to yes if border -- center - set to yes, if the image has to be centered -- upright - upright image param -- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it -- link - page to visit when clicking on image -- class - HTML classes to add to the image -- Outputs: -- Formatted image. -- More details available at the "Module:InfoboxImage/doc" page local i = {}; local placeholder_image = { "Blue - Replace this image female.svg", "Blue - Replace this image male.svg", "Female no free image yet.png", "Flag of None (square).svg", "Flag of None.svg", "Flag of.svg", "Green - Replace this image female.svg", "Green - Replace this image male.svg", "Image is needed female.svg", "Image is needed male.svg", "Location map of None.svg", "Male no free image yet.png", "Missing flag.png", "No flag.svg", "No free portrait.svg", "No portrait (female).svg", "No portrait (male).svg", "Red - Replace this image female.svg", "Red - Replace this image male.svg", "Replace this image female (blue).svg", "Replace this image female.svg", "Replace this image male (blue).svg", "Replace this image male.svg", "Silver - Replace this image female.svg", "Silver - Replace this image male.svg", "Replace this image.svg", "Cricket no pic.png", "CarersLogo.gif", "Diagram Needed.svg", "Example.jpg", "Image placeholder.png", "No male portrait.svg", "Nocover-upload.png", "NoDVDcover copy.png", "Noribbon.svg", "No portrait-BFD-test.svg", "Placeholder barnstar ribbon.png", "Project Trains no image.png", "Image-request.png", "Sin bandera.svg", "Sin escudo.svg", "Replace this image - temple.png", "Replace this image butterfly.png", "Replace this image.svg", "Replace this image1.svg", "Resolution angle.png", "Image-No portrait-text-BFD-test.svg", "Insert image here.svg", "No image available.png", "NO IMAGE YET square.png", "NO IMAGE YET.png", "No Photo Available.svg", "No Screenshot.svg", "No-image-available.jpg", "Null.png", "PictureNeeded.gif", "Place holder.jpg", "Unbenannt.JPG", "UploadACopyrightFreeImage.svg", "UploadAnImage.gif", "UploadAnImage.svg", "UploadAnImageShort.svg", "CarersLogo.gif", "Diagram Needed.svg", "No male portrait.svg", "NoDVDcover copy.png", "Placeholder barnstar ribbon.png", "Project Trains no image.png", "Image-request.png", "Noimage.gif", } function i.IsPlaceholder(image) -- change underscores to spaces image = mw.ustring.gsub(image, "_", " "); assert(image ~= nil, 'mw.ustring.gsub(image, "_", " ") má ekki vera tómt') -- if image starts with [[ then remove that and anything after | if mw.ustring.sub(image,1,2) == "[[" then image = mw.ustring.sub(image,3); image = mw.ustring.gsub(image, "([^|]*)|.*", "%1"); assert(image ~= nil, 'mw.ustring.gsub(image, "([^|]*)|.*", "%1") má ekki vera tómt') end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); assert(image ~= nil, "mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1') má ekki vera tómt") -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); -- capitalise first letter image = mw.ustring.upper(mw.ustring.sub(image,1,1)) .. mw.ustring.sub(image,2); for i,j in pairs(placeholder_image) do if image == j then return true end end return false end function i.InfoboxImage(frame) local image = frame.args["image"]; if image == "" or image == nil then return ""; end if image == "&nbsp;" then return image; end if frame.args["suppressplaceholder"] ~= "no" then if i.IsPlaceholder(image) == true then return ""; end end if mw.ustring.lower(mw.ustring.sub(image,1,5)) == "http:" then return ""; end if mw.ustring.lower(mw.ustring.sub(image,1,6)) == "[http:" then return ""; end if mw.ustring.lower(mw.ustring.sub(image,1,7)) == "[[http:" then return ""; end if mw.ustring.lower(mw.ustring.sub(image,1,6)) == "https:" then return ""; end if mw.ustring.lower(mw.ustring.sub(image,1,7)) == "[https:" then return ""; end if mw.ustring.lower(mw.ustring.sub(image,1,8)) == "[[https:" then return ""; end if mw.ustring.sub(image,1,2) == "[[" then -- search for thumbnail images and add to tracking cat if found local cat = ""; if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then cat = "[[Category:Pages using infoboxes with thumbnail images]]"; end return image .. cat; elseif mw.ustring.sub(image,1,2) == "{{" and mw.ustring.sub(image,1,3) ~= "{{{" then return image; elseif mw.ustring.sub(image,1,1) == "<" then return image; elseif mw.ustring.sub(image,1,5) == mw.ustring.char(127).."UNIQ" then -- Found strip marker at begining, so pass don't process at all return image; elseif mw.ustring.sub(image,4,9) == "`UNIQ-" then -- Found strip marker at begining, so pass don't process at all return image; else local result = ""; local page = frame.args["page"]; local size = frame.args["size"]; local maxsize = frame.args["maxsize"]; local sizedefault = frame.args["sizedefault"]; local alt = frame.args["alt"]; local link = frame.args["link"]; local title = frame.args["title"]; local border = frame.args["border"]; local upright = frame.args["upright"] or ""; local thumbtime = frame.args["thumbtime"] or ""; local center = frame.args["center"]; local class = frame.args["class"]; -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end if maxsize ~= "" and maxsize ~= nil then -- if no sizedefault then set to maxsize if sizedefault == "" or sizedefault == nil then sizedefault = maxsize end -- check to see if size bigger than maxsize if size ~= "" and size ~= nil then local sizenumber = tonumber(mw.ustring.match(size,"%d*")) or 0; local maxsizenumber = tonumber(mw.ustring.match(maxsize,"%d*")) or 0; if sizenumber>maxsizenumber and maxsizenumber>0 then size = maxsize; end end end -- add px to size if just a number if (tonumber(size) or 0) > 0 then size = size .. "px"; end -- add px to sizedefault if just a number if (tonumber(sizedefault) or 0) > 0 then sizedefault = sizedefault .. "px"; end result = "[[Mynd:" .. image; if page ~= "" and page ~= nil then result = result .. "|page=" .. page; end if size ~= "" and size ~= nil then result = result .. "|" .. size; elseif sizedefault ~= "" and sizedefault ~= nil then result = result .. "|" .. sizedefault; else result = result .. "|frameless"; end if center == "yes" then result = result .. "|center" end if alt ~= "" and alt ~= nil then result = result .. "|alt=" .. alt; end if link ~= "" and link ~= nil then result = result .. "|link=" .. link; end if border == "yes" then result = result .. "|border"; end if upright == "yes" then result = result .. "|upright"; elseif upright ~= "" then result = result .. "|upright=" .. upright; end if thumbtime ~= "" then result = result .. "|thumbtime=" .. thumbtime; end if class ~= nil and class ~= "" then result = result .. "|class=" .. class; end -- if alt value is a keyword then do not use as a description if alt == "thumbnail" or alt == "thumb" or alt == "frameless" or alt == "left" or alt == "center" or alt == "right" or alt == "upright" or alt == "border" or mw.ustring.match(alt or "", '^[0-9]*px$', 1) ~= nil then alt = nil; end if title ~= "" and title ~= nil then -- does title param contain any templatestyles? If yes then set to blank. if mw.ustring.match(frame:preprocess(title), 'UNIQ%-%-templatestyles', 1) ~= nil then title = nil; end end if title ~= "" and title ~= nil then result = result .. "|" .. title; end result = result .. "]]"; return result; end end return i; kcrw2apcvtbzpiqa9z5ikffblppw3h7 2026 0 131138 1975347 1975206 2026-08-15T12:11:44Z Berserkur 10188 1975347 wikitext text/x-wiki {{Ár nav}} Árið '''2026''' ('''MMXXVI''' í [[rómverskar tölur|rómverskum tölum]]) er í [[Gregoríanska tímatalið|gregoríanska tímatalinu]] [[almennt ár sem byrjar á fimmtudegi]]. == Atburðir == ===Janúar=== * [[1. janúar]]: **[[Búlgaría]] tók upp [[evra|evru]]. ** 41 lést í eldsvoða sem varð í á bar í skíðabænum [[Crans Montana]] í [[Sviss]]. ** Tónlistarstöðvar [[MTV]] hættu útsendingum. * [[3. janúar]]: ** [[Árásir Bandaríkjanna á Venesúela 2026]]: Bandaríkjaher gerði loftárásir á [[Venesúela]]. Tugir létust í árásunum og var [[Nicolás Maduro]], forseti landsins, handsamaður. [[Delcy Rodríguez]] var skipuð forseti landsins. ** [[Eygló Fanndal Sturludóttir]], kraftlyftingarkona var valin [[íþróttamaður ársins]]. ** [[Miðbaugs-Gínea]] flutti höfuðborg sína frá [[Malabó]] til [[Ciudad de la Paz]]. * [[7. janúar]] - Bandaríkin tóku yfir stjórn á olíuflutningaskipið Marinera sem sigldi undir rússneskum fána 200 km suðaustan við Ísland. * [[8. janúar]] - [[Guðmundur Ingi Kristinsson]] sagði af sér embætti menntamálaráðherra vegna veikinda. * [[Mótmælin í Íran 2025–2026|Mótmæli í Íran]] gegn stjórnvöldum stigmögnuðust. Þúsundir létust. * [[14. janúar]] - Utanríkisráðherra Danmerkur og [[Grænland]]s funduðu með [[Marco Rubio]], utanríkisráðherra Bandaríkjanna og [[JD Vance]], varaforseta Bandaríkjanna um [[Hugmyndir Bandaríkjanna um að kaupa Grænland|málefni Grænlands]]. * [[15. janúar]] - 1. febrúar: Evrópukeppnin í [[handbolti|handbolta]] fór fram í Skandinavíu. Þýskaland og Danmörk mættust í úrslitum og vann [[Danska karlalandsliðið í handknattleik]] mótið. * [[16. janúar]] - [[Yoweri Museveni]] var endurkjörinn forseti [[Úganda]]. Ásakanir voru um kosningasvindl. * [[18. janúar]]: ** Átta Evrópuþjóðir gáfu út yfirlýsingu gagnvart hótunum [[Donald Trump]] um að innlima Grænland, að þær græfu undan samskiptum Evrópu og Bandaríkjanna. ** 46 létust og hátt í 300 slösuðust þegar tvær háhraðalestir skullu saman nálægt [[Córdoba]] á suður-Spáni. ** [[Senegalska karlalandsliðið í knattspyrnu]] vann [[Afríkukeppni landsliða í knattspyrnu karla]]. Titillinn var síðar sviptur af þeim og Marokkó afhentur titillinn. * [[19. janúar]] - Helmingur íbúa [[Kýiv]] varð rafmagnslaus eftir árásir Rússlandshers. * [[19. janúar]] - [[23. janúar]]: [[Heimsviðskiptaráðstefnan í Davos]] fór fram. * [[20. janúar]] - Stjórnarher [[Sýrland]]s náði yfirráðum yfir megninu af svæði sem [[Lýðræðissveitir Sýrlands]] höfðu á valdi sínu í norðurhluta landsins. * [[22. janúar]]: ** Bandaríkin sögðu sig formlega úr [[Alþjóðaheilbrigðismálastofnunin]]ni. ** [[Laugarnestangi]] í Reykjavík var friðlýstur. * [[23. janúar]] - [[Ílíjana Jotova]] varð fyrsti kvenforseti [[Búlgaría|Búlgaríu]] eftir afsögn [[Rúmen Radev]]. * [[24. janúar]] - Maður var skotinn til bana í [[Minneapolis]] af útsendurum [[ICE]]-innflytjendaeftirlitsins, rúmum tveimur vikum eftir að kona var skotin til bana af þeim. Mikil mótmæli voru gegn ICE í borginni. Ríkisstjóri Minnesota, [[Tim Walz]] ásamt borgarstjóra Minneapolis, [[Jacob Frey]], kröfðust enn á ný að ICE-liðar yfirgæfu borgina og fylkið. * [[27. janúar]] - [[Evrópusambandið]] og [[Indland]] gerðu fríverslunarsamning. * [[28. janúar]] - Yfir 200 létust þegar náma féll saman í miklum rigningum í [[Lýðveldið Kongó|Lýðveldinu Kongó]]. * [[30. janúar]] - [[Epstein-skjölin]] voru birt. Þau innihéldu nær 3.5 milljón skjöl, myndir og myndbönd sem viðkomu kynferðisglæpamanninum [[Jeffrey Epstein]] og hans innsta hring. ===Febrúar=== * [[1. febrúar]] - [[Laura Fernández Delgado]] var kosin forseti [[Kosta Ríka]]. * [[6. febrúar]] - [[22. febrúar]]: [[Vetrarólympíuleikarnir 2026]] fóru fram í Mílanó og Cortina d'Ampezzo á Ítalíu. * [[8. febrúar]]: **Frjálslyndi lýðræðisflokkurinn undir forystu [[Sanae Takaichi]] vann sigur í þingkosningum í [[Japan]]. ** [[António José Seguro]] var kjörinn forseti Portúgals. * [[11. febrúar]] - 18 ára byssumaður drap 6 í framhaldsskóla í Tumbler Ridge í [[Breska Kólumbía|Bresku Kólumbíu]] í Kandada ásamt því að drepa móður sína, stjúpbróður og loks sjálfan sig. * [[15. febrúar]] - [[Lilja Alfreðsdóttir]] var kjörin formaður [[Framsóknarflokkurinn|Framsóknarflokksins]]. * [[19. febrúar]] - [[Yoon Suk-yeol]], fyrrum forseti Suður-Kóreu, var dæmdur í ævilangt fangelsi. * [[20. febrúar]]: ** [[Hæstiréttur Bandaríkjanna]] felldi úr gildi tolla sem [[Donald Trump]], forseti, hafði sett á lönd heimsins fyrr á forsetatíð sinni. ** [[Sagrada Família]] í [[Barselóna]] varð hæsta kirkja í heimi þegar hún tók fram úr [[dómkirkjan í Ulm|dómkirkjunni í Ulm]]. * [[22. febrúar]] - Yfir 60 létust í lögregluaðgerðum í [[Jalisco]], Mexíkó. Þar á meðal var fíkniefnabaróninn Nemesio Oseguera ''El Mencho'' Cervantes. * [[23. febrúar]] - [[Rob Jetten]] tók við embætti forsætisráðherra [[Holland]]s. * [[26. febrúar]] - [[Pakistan]] gerði loftárásir á [[Afganistan]] og lýsti stríði á hendur stjórn [[Talibanar|Talibana]]. * [[28. febrúar]] - [[Íransstríðið 2026|Íransstríðið hófst þegar Ísrael og Bandaríkin gerðu loftárásir á Íran]]. Nokkrir leiðtogar landsins létust í árásunum: [[Ali Khamenei]], æðstiklerkur, leiðtogi byltingavarðarins, varnarmálaráðherann og fleiri. Íran svaraði með loftárásum á bandarískar herstöðvar í nágrannaríkjum þess. ===Mars=== * [[2. mars]]: ** [[Hezbollah]] gerði árásir á Ísrael sem svaraði með árásum á [[Beirút]]. ** Um 170 voru drepnir í árás vopnaðra ungmenna í [[Suður-Súdan]]. * [[4. mars]] - Bandaríkjaher sökkti íranska herskipinu ''IRIS Dena'' undan ströndum [[Srí Lanka]]. Nálægt 90 voru taldir af en yfir 30 björguðust. * [[8. mars]] - [[Mojtaba Khamenei]] var valinn [[æðsti leiðtogi Írans]]. * [[14. mars]] - Bandaríkin gerðu loftárásir á [[Kharg-eyja|Kharg-eyju]] undan ströndum [[Íran]]s. * [[17. mars]] - Yfir 400 létust í árás [[Pakistan]]s á spítala í [[Kabúl]], Afganistan. * [[18. mars]] - [[Ísrael]] gerði árás á gasvinnslustöðvar í [[Íran]]. Íran gerði árásir á olíu- og gasvinnslu í [[Katar]] og [[Kúveit]]. * [[24. mars]] - Þingkosningarnar fóru fram í [[Danmörk]]u. [[Mette Frederiksen]], forsætisráðherra frá 2019, fékk umboð til stjórnarmyndunar en Jafnaðarmannaflokkur hennar tapaði þó fylgi. * [[25. mars]] - [[Úkraína]] gerði drónaárás á olíu og gas-stöðvar við höfnina í bænum Ust-Luga í [[Leníngradfylki]] Rússlands. * [[26. mars]] - Þingkosningarnar fóru fram í [[Færeyjar|Færeyjum]]. [[Fólkaflokkurinn]] hlaut flest atkvæði. * [[27. mars]] - [[Balendra Shah]] varð forsætisráðherra [[Nepal]]s. * [[28. mars]] - [[Hútar]] í [[Jemen]] skutu flugskeytum á [[Ísrael]]. ===Apríl=== [[Mynd:Earth From the Perspective of Artemis II.jpg|thumb|Mynd tekin úr Artemis II.]] * [[1. apríl]] - [[NASA]] hóf fyrstu [[tunglið|tunglferðina]], [[Artemis II]], síðan [[1972]]. * [[6. apríl]] - Áhöfn Artemis II sló metið yfir vegalengd sem menn hafa komist fjarri jörðu og komust 406.773 km. * [[7. apríl]]: **[[Íransstríðið 2026|Íransstríðið]]: Bandaríkin og Íran sömdu um 2 vikna vopnahlé. ** [[Tô Lâm]] var kosinn forseti [[Víetnam]]s. * [[8. apríl]] - [[Ísrael]] gerði loftárásir á miðborg [[Beirút]] þar sem yfir 300 létust. * [[10. apríl]] - Áhöfn Artemis II lenti í sjónum við Kyrrahaf nálægt [[San Diego]]. * [[12. apríl]] - Þingkosningar fóru fram í [[Ungverjaland]]i. [[Fidesz]]-flokkur [[Viktor Orbán]] tapaði fyrir stjórnmálaflokknum [[Tisza-flokkurinn|Tisza]] undir forystu [[Péter Magyar]]. * [[16. apríl]] - [[Donald Trump]] boðaði 10 daga [[vopnahlé]] milli [[Ísrael]]s og [[Líbanon]]s. * [[17. apríl]] - [[Íran]] opnaði [[Hormússund]] fyrir skipaumferð tímabundið. * [[19. apríl]] - Þingkosningar í [[Búlgaría|Búlgaríu]]. Flokkur [[Rúmen Radev]], fyrrum forseti, hlaut flest atkvæði. * [[22. apríl]] - Íran gerði árásir á vöruflutningaskip við [[Hormússund]]. * [[25. apríl]] - Íslamskir vígahópar gerðu árásir á byggðir í [[Malí]]. * [[28. apríl]] - Úkraína gerði þriðju árás sína í mánuðinum á olíubirgðastöð Rússa í Tuapse í [[Krasnodarfylki]]. ===Maí=== * [[1. maí]] - [[Sameinuðu arabísku furstadæmin]] yfirgáfu [[Samtök olíuútflutningslanda]] (OPEC). * [[10. maí]] - Farþegar á hollensku skemmtiferðaskipi voru fluttir til sinna heimalanda frá [[Tenerife]] eftir að [[hantaveira|hantaveirufaraldur]] hafði verið um borð og létust þrír farþega. * [[12. maí]] - [[16. maí]]: [[Söngvakeppni evrópskra sjónvarpsstöðva 2026|Eurovision]] var haldið í Austurríki. Lagið ''Bangaranga'' frá Búlgaríu vann. * [[14. maí]] - [[Evika Siliņa]], forsætisráðherra [[Lettland]]s, sagði af sér vegna viðbragða stjórnarinnar við [[Drónahernaður|drónahernaði]] Úkraínu. * [[16. maí]]: **[[Sveitarstjórnarkosningar á Íslandi 2026|Sveitarstjórnarkosningar]] voru haldnar. Sjálfstæðisflokkurinn átti góðu gengi að fagna í stærstu sveitarfélögum landsins á suðvesturhorninu. ** Sameining sveitarfélaga: [[Skorradalshreppur]] sameinaðist [[Borgarbyggð]]. * [[19. maí]] - [[Arsenal]] varð meistari í ensku úrvalsdeildinni í fyrsta sinn í 22 ár. * [[23. maí]] - Rússland gerði yfir 600 dróna og loftskeytaárásir á Úkraínu. * [[24. maí]] - 82 létust í námuslysi í norður-[[Kína]]. * [[26. maí]] - Hitamet var sett fyrir maí á Englandi þegar hiti fór í 35,1 C° í [[Konunglegi grasagarðurinn í Kew|Kew-grasagarðinum]] í London. * [[27. maí]] - [[Sjálfstæðisflokkur]], [[Viðreisn]] og [[Framsókn]] mynduðu meirihluta í [[borgarstjórn Reykjavíkur]]. * [[29. maí]] - Rússneskt [[flygildi]] hafnaði á fjölbýlishúsi í borginni [[Galaţi]] í Rúmeníu, nálægt landamærum Úkraínu. Rúmenía rak í kjölfarið rússneska ræðismanninn í borginni [[Constanta]]. ===Júní=== * [[2. júní]] - [[Hildur Björnsdóttir]] tók við sem [[borgarstjóri Reykjavíkur]]. * [[3. júní]]: ** Íran gerði loftárás á alþjóðaflugvöllinn í [[Kúveit]]. ** Úkraína gerði drónaárás á olíuvinnslu við [[Sankti Pétursborg]]. Nokkrum dögum síðar voru enn frekari árásir gerðar á hernaðarskotmörk. * [[7. júní]]: ** Þingkosningar voru haldnar í [[Armenía|Armeníu]]. Stjórn [[Níkol Pasjínjan]] hélt velli. ** Íran gerði loftárásir á norður-Ísrael. Ísrael svaraði í sömu mynt. * [[8. júní]] - [[Jarðskjálfti]] af stærð 7,8 varð á Filippseyjum, sá stærsti síðan 1990. * [[9. júní]] - [[Íransstríðið 2026|Íransstríðið]]: Bandaríkin gerðu árásir á Íran eftir að bandarísk þyrla var skotin niður. Íran gerði eldflaugaárásir á bandarískar herstöðvar í Barein, Jórdaníu og Kúveit. * [[11. júní]] - [[Heimsmeistaramót landsliða í knattspyrnu karla 2026]] hófst. Mótið var haldið í Mexíkó, Bandaríkjunum og Kanada. * [[12. júní]] - [[Elon Musk]] varð fyrsti billjónamæringur sögunnar eftir að opnað var fyrir viðskipti með fyrirtæki hans, [[SpaceX]], á [[NASDAQ]]-hlutabréfamarkaðnum. * [[14. júní]]: ** Bandaríkin og Íran gerðu samkomulag til að binda enda á [[Íransstríðið 2026|Íransstríðið]]. ** [[New York Knicks]] varð [[NBA]]-meistari í fyrsta sinn síðan 1973. * [[18. júní]] - Úkraína gerði mestu árásir sínar á Moskvu síðan [[innrás Rússlands í Úkraínu]] hófst. * [[21. júní]] - Hægrimaðurinn [[Abelardo de la Espriella]] sigraði í forsetakosningum í [[Kólumbía|Kólumbíu]]. * [[22. júní]]: ** [[Keir Starmer]] tilkynnti um afsögn sína sem [[forsætisráðherra Bretlands]] og sem formaður Breska verkamannaflokksins. ** Fyrstu hvalirnir voru veiddir við Ísland frá árinu 2023, tvær [[langreyður|langreyðar]] af [[Hvalur 9 RE-399|Hval 9]]. * [[24. júní]]: ** [[Jarðskjálftarnir í Venesúela 2026|Jarðskjálftar af stærðinni 7,2 og 7,2 riðu yfir Venesúela]] vestur af [[Karakas]]. Fjölbýlishús hrundu og týndu mörg þúsund lífi. ** Ný brú yfir [[Hornafjarðarfljót]] var opnuð. Brúin leysti af einbreiða brú sem byggð var árið [[1961]] og stytti [[hringvegurinn|hringveginn]] um 12 kílómetra. * [[26. júní]] - Íran gerði drónaárás á flutningaskip við [[Hormússund]]. Bandaríkin svöruðu með árásum á dróna- og vopnageymslur í Íran. * Hitamet voru slegin í Danmörku, Þýskalandi, Póllandi og Tékklandi. ===Júlí=== * [[1. júlí]] - [[Háskóli Íslands]] og [[Hólaskóli (háskóli)|Háskólinn á Hólum]] sameinuðust. * [[3. júlí]] - Rússar gerðu loftárásir á [[Kýiv]] þar sem tugir létust. * [[8. júlí]] - Vopnahléi lauk í [[Íransstríðið 2026|Íransstríðinu]] þegar Íran skaut á olíuflutningaskip og Bandaríkin svöruðu með árásum á Íran. * [[17. júlí]] - Yfir 100 hús brunnu í [[Drammen]] í Noregi. * [[19. júlí]] - [[Spænska karlalandsliðið í knattspyrnu|Spánn]] vann [[Argentínska karlalandsliðið í knattspyrnu|Argentínu]] í úrslitum [[HM 2026]] í knattspyrnu. * [[20. júlí]]: **[[Andy Burnham]] tók við sem [[forsætisráðherra Bretlands]] af [[Keir Starmer]]. ** [[Daniel Ortega]], forseti [[Níkaragva]] lýsti yfir að framvegis yrðu engar kosningar í landinu. * [[23. júlí]] - Neyðarástandi var lýst yfir í [[Sjálfstjórnarhéraðið Madríd|héraðinu Madríd]] á Spáni vegna [[skógareldar|skógarelda]]. Einnig geisuðu skógareldar í Frakklandi og Portúgal. * [[28. júlí]]: ** Jarðskjálfti að stærð 6,8 varð á [[Kyushu]] í Japan nálægt borginni [[Kumamoto]] þar sem verslunarmiðstöð og verksmiðja voru meðal mannvirkja sem eyðilögðust. Yfir 30 létust og hundruð slösuðust. ** [[Keiko Fujimori]], tók við sem forseti [[Perú]]. * [[29. júlí]]: ** Nokkur þúsund [[minkur|minkar]] sluppu úr minkabúi í [[Mosfellsbær|Mosfellsbæ]] eftir innbrot í búið. ** [[Íransstríðið 2026|Íransstríðið]]: Bandaríkin og Sádi-Arabía gerðu árásir á herstöðvar í Írak þar sem hópar hliðhollir Íran dvöldu. * [[30. júlí]]: ** Landhelgisgæslan og sérsveit ríkislögreglustjóra tóku við stjórn Bandero, skipi [[Paul Watson]]-samtakanna vegna ógnana við hvalveiðiskipið [[Hvalur 9|Hvals 9]] og neitun á samvinnu við yfirvöld. Skipið var fært til hafnar og 21 skipverja var vísað úr landi. ** 111 létust þegar um 80.000 flóttafólks fóru yfir til spænsku [[hólmlenda|hólmlendunnar]] [[Ceuta]] frá norðurodda [[Marokkó]]. ===Ágúst=== * [[7. ágúst]] - Skógareldar í sunnanverðri [[Breska Kólumbía|Bresku Kólumbíu]] ollu því að 20.000 íbúar rýmdu svæðið og einn lést. * [[10. ágúst]]: ** [[Úkraína]] gerði drónárásir í fjölda rússneskra héraða, þ.á.m. á olíuhreinsunarstöð í [[Tatarstan]] þar sem 13 létust. ** Yfir 240 manns létust í [[Jarðskjálftinn í Kólumbíu 2026|jarðskjálfta í vestanverðri Kólumbíu]]. * [[11. ágúst]] - Sýrlenskur dómstóll dæmdi [[Bashar Al-Assad]] fyrrum forseta landsins, bróður hans Maher og embættismenn eins og varnarmálaráðherrann og yfirmann öryggissveitanna, til dauða. * [[12. ágúst]]: ** [[Sólmyrkvinn 12. ágúst 2026|Sólmyrkvi]] átti sér stað á [[norðurhvel]]i. Á Íslandi, Spáni og Grænlandi var hægt að sjá almyrkva. ** Úkraínuher gerði loftárásir á flotastöð í rússnesku borginni [[Novorossíjsk]] við [[Svartahaf]]. * [[14. ágúst]] - Um 40 létust þegar jarðskjálfti af stærðinni 7,7 varð nálægt eyjunni [[Flores]] við [[Litlu-Sundaeyjar]] í Indónesíu. * [[29. ágúst]] - [[Þjóðaratkvæðagreiðslan um aðildarviðræður Íslands við Evrópusambandið|Þjóðaratkvæðagreiðsla er fyrirhuguð]] um áframhaldandi viðræður [[Ísland]]s við [[Evrópusambandið]]. ===September=== * [[13. september]] - Þingkosningar verða í Svíþjóð. ===Október=== * [[4. október]] - Þingkosningar verða í Brasilíu. ===Nóvember=== * [[3. nóvember]] - Kosningar verða haldnar í Bandaríkjunum. * [[7. nóvember]] - Brasilíska [[þungarokk]]ssveitin [[Sepultura]] spilar á sínum síðustu tónleikum. ===Desember=== ==Dáin== * [[3. janúar]] - [[Guðmundur Oddur Magnússon]], ''Goddur'', listamaður og prófessor í grafískri hönnun við Listaháskóla Íslands. (f. [[1955]]) * [[9. janúar]] - [[Magnús Eiríksson (tónlistarmaður)|Magnús Eiríksson]], tónlistarmaður (f. [[1945]]). * [[10. janúar]] - [[Sturla Böðvarsson]], alþingismaður og ráðherra (f. [[1945]]). * [[13. janúar]] - [[Baltasar Samper]], katalónsk-íslenskur listmálari (f. [[1938]]). * [[18. janúar]] - [[Heidi Strand]], íslenskur myndlistarmaður (f. [[1953]]). * [[21. janúar]] - [[Kristinn Svavarsson]], saxófónleikari ([[Mezzoforte]]) og kennari (f. [[1947]]). * [[22. janúar]] - [[Floyd Vivino]], bandarískur leikari og sviðslistamaður (f. [[1951]]) * [[25. janúar]] - [[Jón Þ. Ólafsson]], frjálsíþróttamaður (f. [[1941]]). * [[30. janúar]] - [[Catherine O´Hara]], kanadísk-bandarísk leikkona (f. [[1954]]) * [[11. febrúar]] - [[James Van Der Beek]], bandarískur leikari (f. [[1977]]) * [[15. febrúar]] - [[Robert Duvall]], bandarískur leikari (f. [[1931]]). * [[17. febrúar]] - [[Jesse Jackson]], bandarískur mannréttindafrömuður (f. [[1941]]) * [[18. febrúar]]: ** [[Haraldur Sigurðsson (leikari)|Haraldur Sigurðsson]], leikari (f. [[1942]]) ** [[Jan Timman]], hollenskur stórmeistari í skák. (f. [[1951]]). * [[20. febrúar]] - [[Frank Booker]], bandarískur körfuboltamaður (f. [[1964]]) * [[28. febrúar]] - [[Ali Khamenei]], æðstiklerkur [[Íran]]s (f. [[1939]]). * [[1. mars]] - [[Davíð Oddsson]], forsætisráðherra, borgarstjóri, seðlabankastjóri og ritstjóri Morgunblaðsins (f. [[1948]]) . * [[13. mars]]: **[[Hjálmar H. Ragnarsson]], tónskáld og tónlistarfræðingur (f. [[1952]]). ** [[Phil Campbell]], enskur gítarleikari ([[Motörhead]]) (f. [[1961]]) * [[14. mars]] - [[Jürgen Habermas]], þýskur heimspekingur og félagsfræðingur (f. [[1929]]). * [[19. mars]] - [[Chuck Norris]], bandarískur leikari og bardagaíþróttamaður (f. [[1940]]). * [[20. mars]]: ** [[Robert Mueller]], formaður bandarísku alríkislögreglunnar (f. [[1944]]). ** [[Nicholas Brendon]], bandarískur leikari (f. [[1971]]). * [[22. mars]] - [[Lionel Jospin]], forsætisráðherra Frakklands (f. [[1937]]). * [[30. mars]] - [[Chan Santokhi]], forseti Súrínam (f. [[1959]]) * [[9. apríl]] - [[Björgvin Halldórsson]], íslenskur söngvari (f. [[1951]]). * [[13. apríl]] - [[Moya Brennan]], írsk söngkona (f. [[1952]]). * [[17. apríl]] - [[Oscar Schmidt]], brasilískur körfuknattleiksmaður (f. [[1958]]). * [[19. apríl]] - [[Desmond Morris]], breskur dýrafræðingur (f. [[1928]]) * [[20. apríl]] - [[Valdimar Örnólfsson]], íþróttamaður og fimleikakennari (f. [[1932]]). * [[6. maí]] - [[Ted Turner]], bandarískur viðskiptamaður og sjónvarpsframleiðandi (f. [[1938]]). * [[28. maí]] - [[Aðalsteinn Bergdal]], íslenskur leikari og tónlistarmaður (f. [[1949]]). * [[4. júní]] - [[Marjane Satrapi]], íransk-franskur rithöfundur (f. [[1969]]). * [[8. júní]] - [[Tryggvi Gíslason]], skólameistari Menntaskólans á Akureyri (f. [[1938]]). * [[17. júní]] - [[Margrét Helga Jóhannsdóttir]], íslensk leikkona (f. [[1940]]). * [[5. júlí]] - [[Þrúður Vilhjálmsdóttir]], íslensk leikkona (f. [[1973]]) * [[6. júlí]] - [[Magnús Þór Jónsson]] (Megas), tónlistarmaður (f. [[1945]]). * [[8. júlí]] - [[Bonnie Tyler]], velsk söngkona (f. [[1951]]). * [[9. júlí]] - [[Ann Widdecombe]], bresk þingkona og ráðherra (f. [[1947]]). * [[10. júlí]] - [[Kinu Rochford]], bandarískur körfuboltamaður (f. [[1990]]) * [[11. júlí]] - [[Lindsey Graham ]], bandarískur þingmaður (f. [[1955]]). * [[13. júlí]] - [[Sam Neill]], nýsjálenskur leikari (f. [[1947]]). * [[20. júlí]] - [[Kevin Keegan]], enskur knattspyrnumaður og knattspyrnustjóri (f. [[1951]]). * [[24. júlí]] - [[Gunnar Rósinkranz]], íslenskur byggingarverkfræðingur (f. [[1941]]). * [[29. júlí]]: **[[Glen Hansard]], írskur tónlistarmaður (f. [[1970]]) ** [[Gunnar Þórðarson]], íslenskur tónlistarmaður (f. [[1945]]) * [[31. júlí]] - [[Franco Baresi]], ítalskur knattspyrnumaður (f. [[1960]]). * [[9. ágúst]] - [[Don Nelson]], bandarískur körfuknattleiksþjálfari og leikmaður (f. [[1940]]). [[Flokkur:2026]] [[Flokkur:2021-2030]] 8hs06c5po7ngpgr5tro6rgluah1p6uw Module:TableTools 828 132163 1975391 1690980 2024-08-18T04:19:07Z en>Pppery 0 Update from sandbox per request 1975391 Scribunto text/plain ------------------------------------------------------------------------------------ -- TableTools -- -- -- -- This module includes a number of functions for dealing with Lua tables. -- -- It is a meta-module, meant to be called from other Lua modules, and should not -- -- be called directly from #invoke. -- ------------------------------------------------------------------------------------ local libraryUtil = require('libraryUtil') local p = {} -- Define often-used variables and functions. local floor = math.floor local infinity = math.huge local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti ------------------------------------------------------------------------------------ -- isPositiveInteger -- -- This function returns true if the given value is a positive integer, and false -- if not. Although it doesn't operate on tables, it is included here as it is -- useful for determining whether a given table key is in the array part or the -- hash part of a table. ------------------------------------------------------------------------------------ function p.isPositiveInteger(v) return type(v) == 'number' and v >= 1 and floor(v) == v and v < infinity end ------------------------------------------------------------------------------------ -- isNan -- -- This function returns true if the given number is a NaN value, and false if -- not. Although it doesn't operate on tables, it is included here as it is useful -- for determining whether a value can be a valid table key. Lua will generate an -- error if a NaN is used as a table key. ------------------------------------------------------------------------------------ function p.isNan(v) return type(v) == 'number' and v ~= v end ------------------------------------------------------------------------------------ -- shallowClone -- -- This returns a clone of a table. The value returned is a new table, but all -- subtables and functions are shared. Metamethods are respected, but the returned -- table will have no metatable of its own. ------------------------------------------------------------------------------------ function p.shallowClone(t) checkType('shallowClone', 1, t, 'table') local ret = {} for k, v in pairs(t) do ret[k] = v end return ret end ------------------------------------------------------------------------------------ -- removeDuplicates -- -- This removes duplicate values from an array. Non-positive-integer keys are -- ignored. The earliest value is kept, and all subsequent duplicate values are -- removed, but otherwise the array order is unchanged. ------------------------------------------------------------------------------------ function p.removeDuplicates(arr) checkType('removeDuplicates', 1, arr, 'table') local isNan = p.isNan local ret, exists = {}, {} for _, v in ipairs(arr) do if isNan(v) then -- NaNs can't be table keys, and they are also unique, so we don't need to check existence. ret[#ret + 1] = v elseif not exists[v] then ret[#ret + 1] = v exists[v] = true end end return ret end ------------------------------------------------------------------------------------ -- numKeys -- -- This takes a table and returns an array containing the numbers of any numerical -- keys that have non-nil values, sorted in numerical order. ------------------------------------------------------------------------------------ function p.numKeys(t) checkType('numKeys', 1, t, 'table') local isPositiveInteger = p.isPositiveInteger local nums = {} for k in pairs(t) do if isPositiveInteger(k) then nums[#nums + 1] = k end end table.sort(nums) return nums end ------------------------------------------------------------------------------------ -- affixNums -- -- This takes a table and returns an array containing the numbers of keys with the -- specified prefix and suffix. For example, for the table -- {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix "a", affixNums will return -- {1, 3, 6}. ------------------------------------------------------------------------------------ function p.affixNums(t, prefix, suffix) checkType('affixNums', 1, t, 'table') checkType('affixNums', 2, prefix, 'string', true) checkType('affixNums', 3, suffix, 'string', true) local function cleanPattern(s) -- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally. return s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1') end prefix = prefix or '' suffix = suffix or '' prefix = cleanPattern(prefix) suffix = cleanPattern(suffix) local pattern = '^' .. prefix .. '([1-9]%d*)' .. suffix .. '$' local nums = {} for k in pairs(t) do if type(k) == 'string' then local num = mw.ustring.match(k, pattern) if num then nums[#nums + 1] = tonumber(num) end end end table.sort(nums) return nums end ------------------------------------------------------------------------------------ -- numData -- -- Given a table with keys like {"foo1", "bar1", "foo2", "baz2"}, returns a table -- of subtables in the format -- {[1] = {foo = 'text', bar = 'text'}, [2] = {foo = 'text', baz = 'text'}}. -- Keys that don't end with an integer are stored in a subtable named "other". The -- compress option compresses the table so that it can be iterated over with -- ipairs. ------------------------------------------------------------------------------------ function p.numData(t, compress) checkType('numData', 1, t, 'table') checkType('numData', 2, compress, 'boolean', true) local ret = {} for k, v in pairs(t) do local prefix, num = mw.ustring.match(tostring(k), '^([^0-9]*)([1-9][0-9]*)$') if num then num = tonumber(num) local subtable = ret[num] or {} if prefix == '' then -- Positional parameters match the blank string; put them at the start of the subtable instead. prefix = 1 end subtable[prefix] = v ret[num] = subtable else local subtable = ret.other or {} subtable[k] = v ret.other = subtable end end if compress then local other = ret.other ret = p.compressSparseArray(ret) ret.other = other end return ret end ------------------------------------------------------------------------------------ -- compressSparseArray -- -- This takes an array with one or more nil values, and removes the nil values -- while preserving the order, so that the array can be safely traversed with -- ipairs. ------------------------------------------------------------------------------------ function p.compressSparseArray(t) checkType('compressSparseArray', 1, t, 'table') local ret = {} local nums = p.numKeys(t) for _, num in ipairs(nums) do ret[#ret + 1] = t[num] end return ret end ------------------------------------------------------------------------------------ -- sparseIpairs -- -- This is an iterator for sparse arrays. It can be used like ipairs, but can -- handle nil values. ------------------------------------------------------------------------------------ function p.sparseIpairs(t) checkType('sparseIpairs', 1, t, 'table') local nums = p.numKeys(t) local i = 0 local lim = #nums return function () i = i + 1 if i <= lim then local key = nums[i] return key, t[key] else return nil, nil end end end ------------------------------------------------------------------------------------ -- size -- -- This returns the size of a key/value pair table. It will also work on arrays, -- but for arrays it is more efficient to use the # operator. ------------------------------------------------------------------------------------ function p.size(t) checkType('size', 1, t, 'table') local i = 0 for _ in pairs(t) do i = i + 1 end return i end local function defaultKeySort(item1, item2) -- "number" < "string", so numbers will be sorted before strings. local type1, type2 = type(item1), type(item2) if type1 ~= type2 then return type1 < type2 elseif type1 == 'table' or type1 == 'boolean' or type1 == 'function' then return tostring(item1) < tostring(item2) else return item1 < item2 end end ------------------------------------------------------------------------------------ -- keysToList -- -- Returns an array of the keys in a table, sorted using either a default -- comparison function or a custom keySort function. ------------------------------------------------------------------------------------ function p.keysToList(t, keySort, checked) if not checked then checkType('keysToList', 1, t, 'table') checkTypeMulti('keysToList', 2, keySort, {'function', 'boolean', 'nil'}) end local arr = {} local index = 1 for k in pairs(t) do arr[index] = k index = index + 1 end if keySort ~= false then keySort = type(keySort) == 'function' and keySort or defaultKeySort table.sort(arr, keySort) end return arr end ------------------------------------------------------------------------------------ -- sortedPairs -- -- Iterates through a table, with the keys sorted using the keysToList function. -- If there are only numerical keys, sparseIpairs is probably more efficient. ------------------------------------------------------------------------------------ function p.sortedPairs(t, keySort) checkType('sortedPairs', 1, t, 'table') checkType('sortedPairs', 2, keySort, 'function', true) local arr = p.keysToList(t, keySort, true) local i = 0 return function () i = i + 1 local key = arr[i] if key ~= nil then return key, t[key] else return nil, nil end end end ------------------------------------------------------------------------------------ -- isArray -- -- Returns true if the given value is a table and all keys are consecutive -- integers starting at 1. ------------------------------------------------------------------------------------ function p.isArray(v) if type(v) ~= 'table' then return false end local i = 0 for _ in pairs(v) do i = i + 1 if v[i] == nil then return false end end return true end ------------------------------------------------------------------------------------ -- isArrayLike -- -- Returns true if the given value is iterable and all keys are consecutive -- integers starting at 1. ------------------------------------------------------------------------------------ function p.isArrayLike(v) if not pcall(pairs, v) then return false end local i = 0 for _ in pairs(v) do i = i + 1 if v[i] == nil then return false end end return true end ------------------------------------------------------------------------------------ -- invert -- -- Transposes the keys and values in an array. For example, {"a", "b", "c"} -> -- {a = 1, b = 2, c = 3}. Duplicates are not supported (result values refer to -- the index of the last duplicate) and NaN values are ignored. ------------------------------------------------------------------------------------ function p.invert(arr) checkType("invert", 1, arr, "table") local isNan = p.isNan local map = {} for i, v in ipairs(arr) do if not isNan(v) then map[v] = i end end return map end ------------------------------------------------------------------------------------ -- listToSet -- -- Creates a set from the array part of the table. Indexing the set by any of the -- values of the array returns true. For example, {"a", "b", "c"} -> -- {a = true, b = true, c = true}. NaN values are ignored as Lua considers them -- never equal to any value (including other NaNs or even themselves). ------------------------------------------------------------------------------------ function p.listToSet(arr) checkType("listToSet", 1, arr, "table") local isNan = p.isNan local set = {} for _, v in ipairs(arr) do if not isNan(v) then set[v] = true end end return set end ------------------------------------------------------------------------------------ -- deepCopy -- -- Recursive deep copy function. Preserves identities of subtables. ------------------------------------------------------------------------------------ local function _deepCopy(orig, includeMetatable, already_seen) if type(orig) ~= "table" then return orig end -- already_seen stores copies of tables indexed by the original table. local copy = already_seen[orig] if copy ~= nil then return copy end copy = {} already_seen[orig] = copy -- memoize before any recursion, to avoid infinite loops for orig_key, orig_value in pairs(orig) do copy[_deepCopy(orig_key, includeMetatable, already_seen)] = _deepCopy(orig_value, includeMetatable, already_seen) end if includeMetatable then local mt = getmetatable(orig) if mt ~= nil then setmetatable(copy, _deepCopy(mt, true, already_seen)) end end return copy end function p.deepCopy(orig, noMetatable, already_seen) checkType("deepCopy", 3, already_seen, "table", true) return _deepCopy(orig, not noMetatable, already_seen or {}) end ------------------------------------------------------------------------------------ -- sparseConcat -- -- Concatenates all values in the table that are indexed by a number, in order. -- sparseConcat{a, nil, c, d} => "acd" -- sparseConcat{nil, b, c, d} => "bcd" ------------------------------------------------------------------------------------ function p.sparseConcat(t, sep, i, j) local arr = {} local arr_i = 0 for _, v in p.sparseIpairs(t) do arr_i = arr_i + 1 arr[arr_i] = v end return table.concat(arr, sep, i, j) end ------------------------------------------------------------------------------------ -- length -- -- Finds the length of an array, or of a quasi-array with keys such as "data1", -- "data2", etc., using an exponential search algorithm. It is similar to the -- operator #, but may return a different value when there are gaps in the array -- portion of the table. Intended to be used on data loaded with mw.loadData. For -- other tables, use #. -- Note: #frame.args in frame object always be set to 0, regardless of the number -- of unnamed template parameters, so use this function for frame.args. ------------------------------------------------------------------------------------ function p.length(t, prefix) -- requiring module inline so that [[Module:Exponential search]] which is -- only needed by this one function doesn't get millions of transclusions local expSearch = require("Module:Exponential search") checkType('length', 1, t, 'table') checkType('length', 2, prefix, 'string', true) return expSearch(function (i) local key if prefix then key = prefix .. tostring(i) else key = i end return t[key] ~= nil end) or 0 end ------------------------------------------------------------------------------------ -- inArray -- -- Returns true if searchElement is a member of the array, and false otherwise. -- Equivalent to JavaScript array.includes(searchElement) or -- array.includes(searchElement, fromIndex), except fromIndex is 1 indexed ------------------------------------------------------------------------------------ function p.inArray(array, searchElement, fromIndex) checkType("inArray", 1, array, "table") -- if searchElement is nil, error? fromIndex = tonumber(fromIndex) if fromIndex then if (fromIndex < 0) then fromIndex = #array + fromIndex + 1 end if fromIndex < 1 then fromIndex = 1 end for _, v in ipairs({unpack(array, fromIndex)}) do if v == searchElement then return true end end else for _, v in pairs(array) do if v == searchElement then return true end end end return false end ------------------------------------------------------------------------------------ -- merge -- -- Given the arrays, returns an array containing the elements of each input array -- in sequence. ------------------------------------------------------------------------------------ function p.merge(...) local arrays = {...} local ret = {} for i, arr in ipairs(arrays) do checkType('merge', i, arr, 'table') for _, v in ipairs(arr) do ret[#ret + 1] = v end end return ret end ------------------------------------------------------------------------------------ -- extend -- -- Extends the first array in place by appending all elements from the second -- array. ------------------------------------------------------------------------------------ function p.extend(arr1, arr2) checkType('extend', 1, arr1, 'table') checkType('extend', 2, arr2, 'table') for _, v in ipairs(arr2) do arr1[#arr1 + 1] = v end end return p 4n03zk6kcoeg4gz82mieeh94c1szcjy 1975392 1968587 2026-08-15T16:50:45Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:TableTools]] 1968587 Scribunto text/plain ------------------------------------------------------------------------------------ -- TableTools -- -- -- -- This module includes a number of functions for dealing with Lua tables. -- -- It is a meta-module, meant to be called from other Lua modules, and should not -- -- be called directly from #invoke. -- ------------------------------------------------------------------------------------ local libraryUtil = require('libraryUtil') local p = {} -- Define often-used variables and functions. local floor = math.floor local infinity = math.huge local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti ------------------------------------------------------------------------------------ -- isPositiveInteger -- -- This function returns true if the given value is a positive integer, and false -- if not. Although it doesn't operate on tables, it is included here as it is -- useful for determining whether a given table key is in the array part or the -- hash part of a table. ------------------------------------------------------------------------------------ function p.isPositiveInteger(v) return type(v) == 'number' and v >= 1 and floor(v) == v and v < infinity end ------------------------------------------------------------------------------------ -- isNan -- -- This function returns true if the given number is a NaN value, and false if -- not. Although it doesn't operate on tables, it is included here as it is useful -- for determining whether a value can be a valid table key. Lua will generate an -- error if a NaN is used as a table key. ------------------------------------------------------------------------------------ function p.isNan(v) return type(v) == 'number' and v ~= v end ------------------------------------------------------------------------------------ -- shallowClone -- -- This returns a clone of a table. The value returned is a new table, but all -- subtables and functions are shared. Metamethods are respected, but the returned -- table will have no metatable of its own. ------------------------------------------------------------------------------------ function p.shallowClone(t) checkType('shallowClone', 1, t, 'table') local ret = {} for k, v in pairs(t) do ret[k] = v end return ret end ------------------------------------------------------------------------------------ -- removeDuplicates -- -- This removes duplicate values from an array. Non-positive-integer keys are -- ignored. The earliest value is kept, and all subsequent duplicate values are -- removed, but otherwise the array order is unchanged. ------------------------------------------------------------------------------------ function p.removeDuplicates(arr) checkType('removeDuplicates', 1, arr, 'table') local isNan = p.isNan local ret, exists = {}, {} for _, v in ipairs(arr) do if isNan(v) then -- NaNs can't be table keys, and they are also unique, so we don't need to check existence. ret[#ret + 1] = v elseif not exists[v] then ret[#ret + 1] = v exists[v] = true end end return ret end ------------------------------------------------------------------------------------ -- numKeys -- -- This takes a table and returns an array containing the numbers of any numerical -- keys that have non-nil values, sorted in numerical order. ------------------------------------------------------------------------------------ function p.numKeys(t) checkType('numKeys', 1, t, 'table') local isPositiveInteger = p.isPositiveInteger local nums = {} for k in pairs(t) do if isPositiveInteger(k) then nums[#nums + 1] = k end end table.sort(nums) return nums end ------------------------------------------------------------------------------------ -- affixNums -- -- This takes a table and returns an array containing the numbers of keys with the -- specified prefix and suffix. For example, for the table -- {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix "a", affixNums will return -- {1, 3, 6}. ------------------------------------------------------------------------------------ function p.affixNums(t, prefix, suffix) checkType('affixNums', 1, t, 'table') checkType('affixNums', 2, prefix, 'string', true) checkType('affixNums', 3, suffix, 'string', true) local function cleanPattern(s) -- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally. return s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1') end prefix = prefix or '' suffix = suffix or '' prefix = cleanPattern(prefix) suffix = cleanPattern(suffix) local pattern = '^' .. prefix .. '([1-9]%d*)' .. suffix .. '$' local nums = {} for k in pairs(t) do if type(k) == 'string' then local num = mw.ustring.match(k, pattern) if num then nums[#nums + 1] = tonumber(num) end end end table.sort(nums) return nums end ------------------------------------------------------------------------------------ -- numData -- -- Given a table with keys like {"foo1", "bar1", "foo2", "baz2"}, returns a table -- of subtables in the format -- {[1] = {foo = 'text', bar = 'text'}, [2] = {foo = 'text', baz = 'text'}}. -- Keys that don't end with an integer are stored in a subtable named "other". The -- compress option compresses the table so that it can be iterated over with -- ipairs. ------------------------------------------------------------------------------------ function p.numData(t, compress) checkType('numData', 1, t, 'table') checkType('numData', 2, compress, 'boolean', true) local ret = {} for k, v in pairs(t) do local prefix, num = mw.ustring.match(tostring(k), '^([^0-9]*)([1-9][0-9]*)$') if num then num = tonumber(num) local subtable = ret[num] or {} if prefix == '' then -- Positional parameters match the blank string; put them at the start of the subtable instead. prefix = 1 end subtable[prefix] = v ret[num] = subtable else local subtable = ret.other or {} subtable[k] = v ret.other = subtable end end if compress then local other = ret.other ret = p.compressSparseArray(ret) ret.other = other end return ret end ------------------------------------------------------------------------------------ -- compressSparseArray -- -- This takes an array with one or more nil values, and removes the nil values -- while preserving the order, so that the array can be safely traversed with -- ipairs. ------------------------------------------------------------------------------------ function p.compressSparseArray(t) checkType('compressSparseArray', 1, t, 'table') local ret = {} local nums = p.numKeys(t) for _, num in ipairs(nums) do ret[#ret + 1] = t[num] end return ret end ------------------------------------------------------------------------------------ -- sparseIpairs -- -- This is an iterator for sparse arrays. It can be used like ipairs, but can -- handle nil values. ------------------------------------------------------------------------------------ function p.sparseIpairs(t) checkType('sparseIpairs', 1, t, 'table') local nums = p.numKeys(t) local i = 0 local lim = #nums return function () i = i + 1 if i <= lim then local key = nums[i] return key, t[key] else return nil, nil end end end ------------------------------------------------------------------------------------ -- size -- -- This returns the size of a key/value pair table. It will also work on arrays, -- but for arrays it is more efficient to use the # operator. ------------------------------------------------------------------------------------ function p.size(t) checkType('size', 1, t, 'table') local i = 0 for _ in pairs(t) do i = i + 1 end return i end local function defaultKeySort(item1, item2) -- "number" < "string", so numbers will be sorted before strings. local type1, type2 = type(item1), type(item2) if type1 ~= type2 then return type1 < type2 elseif type1 == 'table' or type1 == 'boolean' or type1 == 'function' then return tostring(item1) < tostring(item2) else return item1 < item2 end end ------------------------------------------------------------------------------------ -- keysToList -- -- Returns an array of the keys in a table, sorted using either a default -- comparison function or a custom keySort function. ------------------------------------------------------------------------------------ function p.keysToList(t, keySort, checked) if not checked then checkType('keysToList', 1, t, 'table') checkTypeMulti('keysToList', 2, keySort, {'function', 'boolean', 'nil'}) end local arr = {} local index = 1 for k in pairs(t) do arr[index] = k index = index + 1 end if keySort ~= false then keySort = type(keySort) == 'function' and keySort or defaultKeySort table.sort(arr, keySort) end return arr end ------------------------------------------------------------------------------------ -- sortedPairs -- -- Iterates through a table, with the keys sorted using the keysToList function. -- If there are only numerical keys, sparseIpairs is probably more efficient. ------------------------------------------------------------------------------------ function p.sortedPairs(t, keySort) checkType('sortedPairs', 1, t, 'table') checkType('sortedPairs', 2, keySort, 'function', true) local arr = p.keysToList(t, keySort, true) local i = 0 return function () i = i + 1 local key = arr[i] if key ~= nil then return key, t[key] else return nil, nil end end end ------------------------------------------------------------------------------------ -- isArray -- -- Returns true if the given value is a table and all keys are consecutive -- integers starting at 1. ------------------------------------------------------------------------------------ function p.isArray(v) if type(v) ~= 'table' then return false end local i = 0 for _ in pairs(v) do i = i + 1 if v[i] == nil then return false end end return true end ------------------------------------------------------------------------------------ -- isArrayLike -- -- Returns true if the given value is iterable and all keys are consecutive -- integers starting at 1. ------------------------------------------------------------------------------------ function p.isArrayLike(v) if not pcall(pairs, v) then return false end local i = 0 for _ in pairs(v) do i = i + 1 if v[i] == nil then return false end end return true end ------------------------------------------------------------------------------------ -- invert -- -- Transposes the keys and values in an array. For example, {"a", "b", "c"} -> -- {a = 1, b = 2, c = 3}. Duplicates are not supported (result values refer to -- the index of the last duplicate) and NaN values are ignored. ------------------------------------------------------------------------------------ function p.invert(arr) checkType("invert", 1, arr, "table") local isNan = p.isNan local map = {} for i, v in ipairs(arr) do if not isNan(v) then map[v] = i end end return map end ------------------------------------------------------------------------------------ -- listToSet -- -- Creates a set from the array part of the table. Indexing the set by any of the -- values of the array returns true. For example, {"a", "b", "c"} -> -- {a = true, b = true, c = true}. NaN values are ignored as Lua considers them -- never equal to any value (including other NaNs or even themselves). ------------------------------------------------------------------------------------ function p.listToSet(arr) checkType("listToSet", 1, arr, "table") local isNan = p.isNan local set = {} for _, v in ipairs(arr) do if not isNan(v) then set[v] = true end end return set end ------------------------------------------------------------------------------------ -- deepCopy -- -- Recursive deep copy function. Preserves identities of subtables. ------------------------------------------------------------------------------------ local function _deepCopy(orig, includeMetatable, already_seen) if type(orig) ~= "table" then return orig end -- already_seen stores copies of tables indexed by the original table. local copy = already_seen[orig] if copy ~= nil then return copy end copy = {} already_seen[orig] = copy -- memoize before any recursion, to avoid infinite loops for orig_key, orig_value in pairs(orig) do copy[_deepCopy(orig_key, includeMetatable, already_seen)] = _deepCopy(orig_value, includeMetatable, already_seen) end if includeMetatable then local mt = getmetatable(orig) if mt ~= nil then setmetatable(copy, _deepCopy(mt, true, already_seen)) end end return copy end function p.deepCopy(orig, noMetatable, already_seen) checkType("deepCopy", 3, already_seen, "table", true) return _deepCopy(orig, not noMetatable, already_seen or {}) end ------------------------------------------------------------------------------------ -- sparseConcat -- -- Concatenates all values in the table that are indexed by a number, in order. -- sparseConcat{a, nil, c, d} => "acd" -- sparseConcat{nil, b, c, d} => "bcd" ------------------------------------------------------------------------------------ function p.sparseConcat(t, sep, i, j) local arr = {} local arr_i = 0 for _, v in p.sparseIpairs(t) do arr_i = arr_i + 1 arr[arr_i] = v end return table.concat(arr, sep, i, j) end ------------------------------------------------------------------------------------ -- length -- -- Finds the length of an array, or of a quasi-array with keys such as "data1", -- "data2", etc., using an exponential search algorithm. It is similar to the -- operator #, but may return a different value when there are gaps in the array -- portion of the table. Intended to be used on data loaded with mw.loadData. For -- other tables, use #. -- Note: #frame.args in frame object always be set to 0, regardless of the number -- of unnamed template parameters, so use this function for frame.args. ------------------------------------------------------------------------------------ function p.length(t, prefix) -- requiring module inline so that [[Module:Exponential search]] which is -- only needed by this one function doesn't get millions of transclusions local expSearch = require("Module:Exponential search") checkType('length', 1, t, 'table') checkType('length', 2, prefix, 'string', true) return expSearch(function (i) local key if prefix then key = prefix .. tostring(i) else key = i end return t[key] ~= nil end) or 0 end ------------------------------------------------------------------------------------ -- inArray -- -- Returns true if searchElement is a member of the array, and false otherwise. -- Equivalent to JavaScript array.includes(searchElement) or -- array.includes(searchElement, fromIndex), except fromIndex is 1 indexed ------------------------------------------------------------------------------------ function p.inArray(array, searchElement, fromIndex) checkType("inArray", 1, array, "table") -- if searchElement is nil, error? fromIndex = tonumber(fromIndex) if fromIndex then if (fromIndex < 0) then fromIndex = #array + fromIndex + 1 end if fromIndex < 1 then fromIndex = 1 end for _, v in ipairs({unpack(array, fromIndex)}) do if v == searchElement then return true end end else for _, v in pairs(array) do if v == searchElement then return true end end end return false end ------------------------------------------------------------------------------------ -- merge -- -- Given the arrays, returns an array containing the elements of each input array -- in sequence. ------------------------------------------------------------------------------------ function p.merge(...) local arrays = {...} local ret = {} for i, arr in ipairs(arrays) do checkType('merge', i, arr, 'table') for _, v in ipairs(arr) do ret[#ret + 1] = v end end return ret end ------------------------------------------------------------------------------------ -- extend -- -- Extends the first array in place by appending all elements from the second -- array. ------------------------------------------------------------------------------------ function p.extend(arr1, arr2) checkType('extend', 1, arr1, 'table') checkType('extend', 2, arr2, 'table') for _, v in ipairs(arr2) do arr1[#arr1 + 1] = v end end return p 4n03zk6kcoeg4gz82mieeh94c1szcjy Alfred Russel Wallace 0 133147 1975354 1953118 2026-08-15T12:22:12Z Berserkur 10188 1975354 wikitext text/x-wiki [[Mynd:Alfred-Russel-Wallace-c1895.jpg|thumbnail|Alfred Russel Wallace.]] [[Mynd:Alfred Russel Wallace 1862 - Project Gutenberg eText 15997.png|thumb|Alfred Russel Wallace árið 1862 í Singapore. ]] [[Mynd:Map of Sunda and Sahul 2.png|thumbnail|Wallacelínan sýnir skil milli mismunandi tegunda.]] '''Alfred Russel Wallace''' (fæddur [[8. janúar]] [[1823]], dáinn [[7. nóvember]] [[1913]]) var [[Bretland|breskur]] [[náttúrufræði]]ngur og landkönnuður. Hann er best þekktur fyrir framlag sitt til [[þróunarkenningin|þróunarkenningarinnar]]. Wallace fæddist í [[Wales]], sjöundi af níu systkinum. Sem ungur maður fékk hann áhuga á náttúrunni; safnaði [[skordýr]]um og las um náttúrusögu. Hann var af fátæku fólki og hafði einkum tekjur af að selja framandleg sýni náttúrugripa. Wallace dvaldist í [[Suður-Ameríka|Suður-Ameríku]] árin 1848-52 og rannsakaði dýra- og plöntulíf á vatnasvæðum [[Amazon]] og [[Rio Negro]]. Á leiðinni heim til [[England]]s brann skip hans í hafi og glataðist með því nær allt sem hann hafði safnað í leiðangrinum. Hann var tryggður fyrir tapinu og notaði féð til að fara leiðangur til [[Malajaeyjar|Malajaeyja]] ([[Indónesía]], [[Malasía]], [[Filippseyjar]] og [[Nýja Gínea]]) í [[Asía|Asíu]] árin 1854-1862. Hann tók þar eftir áberandi skilum í dýralífi á eyjunum. Á hinum vestari var dýralíf líkt og á meginlandi Suðaustur-Asíu en austar tók við lífheimur [[Eyjaálfa|Eyjaálfu]]. Skilin sem liggja milli [[Borneó]] og [[Balí]] í vestri og [[Súlavesí|Celebes]] og [[Lombok]] í austri eru nú við hann kennd og kölluð [[Wallace-línan]]. <ref>[http://timarit.is/view_page_init.jsp?pageId=4257966] Þróun tegundanna. Tilraun til samantektar á hugmyndum manna fyrr og nú. Örnólfur Thorlacius. Náttúrufræðingurinn. 1999.</ref> Wallace hafði einnig tekið eftir skilum milli mismunandi [[apaköttur|apakatta]] í Amasón milli þveráa [[Amasónfljót]]s. Wallace átti í bréfaskriftum við [[Charles Darwin]] frá Asíu og árið 1858 sendi hann honum grein þar sem hann lýsti kenningum sínum. Darwin til furðu og hrifningu hafði Wallace komist að sömu niðurstöðum óháð honum. [[Þróunarkenningin]] var upphaflega sett fram í fyrirlestri í nafni Wallaces og Darwins í Linné-félaginu í London sama ár.<ref>[https://www.visindavefur.is/svar.php?id=1251 Er rétt að Darwin hafi dregið kenningu sína til baka vegna eigin trúarskoðana?] Vísindavefur, skoðað 18. des, 2017</ref> Hvorugur þeirra var við fyrirlesturinn. Það var helst varðandi þróun mannsins sem skoðanir Darwin og Wallace fóru ekki saman. Báðir töldu að líkami hans hefði þróast við náttúrlegt val en Wallace, sem var [[spíritismi|spíritisti]], hélt að við mótun mannshugarins hlytu æðri og yfirnáttúrleg öfl að hafa verið að verki. Árið 1886 hélt Wallace ýmsa fyrirlestra í [[Bandaríkin|Bandaríkjunum]] um þróunarkenninguna, pólitík og spíritisma. Hann rannsakaði einnig [[flóra|flóru]] [[Klettafjöll|Klettafjalla]]. Wallace var [[sósíalismi|sósíalisti]] og gagnrýndi félagslega misskiptingu. Wallace dó árið 1913. Hann hafði fallið í nokkra gleymsku eftir dauða sinn, hugsanlega vegna þess að hann féll í skuggann á Darwin og tók upp óvinsælar hugmyndir eins og spíritisma og andstöðu við bólusetningu. En eftir aldamótin 2000 komu út bækur og þættir um hann í meira mæli og 100 ára afmæli dauða hans afhjúpaði [[David Attenborough]] styttu honum til heiðurs í [[Natural History Museum|Náttúrugripasafninu í London]]. ==Helstu verk== *1853: '''On the Monkeys of the Amazon'''. Speculates on the effect of rivers and other geographical barriers on the distribution of closely allied species.<br> *1855: '''On the Law Which Has Regulated the Introduction of New Species'''. Wallace's thoughts on the laws governing the geographic distribution of closely allied species, including the Sarawak Law, and the implications of those laws for the transmutation of species. *1857: '''On the Natural History of the Aru Islands'''. First methodical biogeographic study.<br> *1858: '''On the Tendency of Varieties to Depart Indefinitely From the Original Type'''. Paper on natural selection sent by Wallace to Darwin. *1859: '''On the Zoological Geography of the Malay Archipelago'''. Contains first description of the Wallace Line.<br> *1863: '''Remarks on the Rev. S. Haughton's Paper on the Bee's Cell, And on the Origin of Species'''. Wallace's defence of the Origin on the topic of evolution of the hexagonal bee cell.<br> *1863: '''On the Physical Geography of the Malay Archipelago.''' Paper on the geography and possible geographic history of Indonesia with concluding remarks on importance of biogeography and biodiversity that are frequently cited in modern conservation circles.<br> *1864: '''On the phenomena of variation and geographical distribution as illustrated by the Papilionidae of the Malayan region'''. Monograph on Indonesian butterfly family with discussion of different kinds of variability including individual variation, polymorphic forms, geographical races, variation influenced by local conditions, and closely allied species.<br> *1891: '''English and American Flowers.''' Contains speculation on how glaciation may have affected distribution of mountain flora in North America and Eurasia. ==Heimild== Heimild meðal annars fengin af ensku Wikipedia; greininni {{ill|Alfred Russel Wallace|en|Alfred_Russel_Wallace}}. Skoðuð 17. mars, 2016. ==Tilvísanir== {{reflist}} {{DEFAULTSORT:Wallace, Alfred Russel}} [[Flokkur:Breskir náttúrufræðingar]] [[Flokkur:Breskir landkönnuðir]] [[Flokkur:Spíritistar]] [[Flokkur:Þróun]] {{fd|1823|1913}} cebbqp8qk8c8qepkqg101u0y7cpunc5 Kim Jong-un 0 135235 1975559 1974112 2026-08-16T10:05:37Z TKSnaevarr 53243 /* Valdatíð */ 1975559 wikitext text/x-wiki {{Forsætisráðherra | nafn = Kim Jong-un | nafn_á_frummáli = {{Nobold|김정은}} | mynd = Kim Jong-un at the Workers' Party of Korea main building.png | myndatexti1 = Kim Jong Un árið 2018. | titill = Æðsti leiðtogi Norður-Kóreu<br>{{small|(''de facto'')}} | stjórnartíð_start = 17. desember 2011 | stjórnartíð_end = | forveri = [[Kim Jong-il]] | titill2 = Aðalritari Verkamannaflokks Kóreu | stjórnartíð_start2 = 11. apríl 2012 | stjórnartíð_end2 = | forveri2 = [[Kim Jong-il]] | titill3 = Forseti ríkismálanefndar Kóreu | stjórnartíð_start3 = 29. júní 2016 | stjórnartíð_end3 = | vara_forseti3 = [[Choe Ryong-hae]] | forsætisráðherra3 = [[Pak Pong-ju]]<br>[[Kim Jae-ryong]]<br>[[Kim Tok-hun]]<br>[[Pak Thae-song]] | forveri3 = Hann sjálfur sem forseti varnarmálanefndar | fæddur = {{fæðingardagur og aldur|1984|1|8}} | fæðingarstaður = [[Pjongjang]], [[Norður-Kórea|Norður-Kóreu]] | stjórnmálaflokkur = [[Verkamannaflokkur Kóreu]] | starf = Stjórnmálamaður | háskóli = Kim Il Sung-háskólinn | maki = {{gifting|[[Ri Sol Ju]]|2009}} | börn = 2 óstaðfest; 1 staðfest: [[Kim Ju-ae]] | faðir = [[Kim Jong-il]] | móðir = [[Ko Yong-hui]] | ættingjar = [[Kim Yo-jong]] (systir) | undirskrift = Kim Jong-un Signature.svg }} '''Kim Jong-un''' (f. [[8. janúar]] [[1984]]) er æðsti leiðtogi og [[einræðisherra]] [[Norður-Kórea|Norður-Kóreu]]. Hann er sonur forvera síns, [[Kim Jong-il]], og sonarsonur stofnanda Alþýðulýðveldisins Kóreu, [[Kim Il-sung|Kim Il-sung]]. Kim Jong-un tók við sem leiðtogi Norður-Kóreu eftir dauða föður síns árið 2011. Formlega fer hann með völd sín sem aðalritari stjórnarflokksins, [[Verkamannaflokkur Kóreu|Verkamannaflokks Kóreu]], og sem forseti ríkismálanefndar landsins. Kim Jong-un er fyrsti þjóðarleiðtogi Norður-Kóreu sem fæddur er eftir stofnun ríkisins árið 1945. ==Æviágrip== Kim Jong-un gekk á árunum 1998 til 2000 í skóla í Köniz í [[Sviss]] ásamt systur sinni, [[Kim Yo-jong]]. Hann gekk þar undir nafninu „Pak-un“ og kvaðst vera sonur starfsmanna norður-kóreska sendiráðsins í Bern. Samkvæmt bekkjarfélögum hans var „Pak-un“ hlédrægur en viðkunnanlegur drengur sem talaði sjaldan um heimaland sitt. Þegar Kim Jong-un fæddist var ekki útrætt að hann myndi taka við af föður sínum sem einræðisherra. Lengst af hafði elsti hálfbróðir Kims, [[Kim Jong-nam]], verið álitinn sennilegasti arftaki föður þeirra sem leiðtogi Norður-Kóreu. Kim Jong-nam var hins vegar útskúfað árið 2001 eftir að hann var gómaður við að reyna að komast til Japan með fölsuðu vegabréfi, þar sem hann hugðist heimsækja [[Disneyland]] í Tókýó. Kim Jong-un fór í kjölfarið að birtast æ oftar með Kim Jong-il á opinberum viðburðum og var orðinn traustur í sessi sem arftaki við byrjun annars áratugs 21. aldar. ===Valdatíð=== [[Kim Jong-il]] lést þann 17. desember árið 2011 og Kim Jong-un tók við formennsku kóreska Verkamannaflokksins ásamt öðrum embættum föður síns. Í upphafi leyfðu margir sér að vona að Kim Jong-un myndi vera umbótamaður og frjálslyndisvæða stjórn ríkisins. Þessar vonir rættust ekki og Kim Jong-un hefur viðhaldið svipuðum stjórnarháttum og tíðkuðust á valdatíðum föður síns og afa. Snemma á valdatíð sinni lét Kim taka af lífi fjölda herforingja og annarra embættismanna sem talið var að gætu ógnað stöðu hans. Mikla athygli vakti árið 2013 þegar Kim lét handtaka frænda sinn, [[Jang Song-thaek]], sem hafði verið náinn samstarfsmaður föður hans. Jang Song-thaek var sakaður um svikráð gegn Norður-Kóreu og síðan tekinn af lífi.<ref>{{Vefheimild|titill=Frænd­inn tek­inn af lífi|url=https://www.mbl.is/frettir/erlent/2013/12/12/fraendinn_tekinn_af_lifi/|útgefandi=''[[mbl.is]]''|ár=2013|mánuður=12. desember|árskoðað=2018|mánuðurskoðað=29. nóvember}}</ref> Í byrjun ársins 2017 var Kim Jong-nam, hálfbróðir Kims, myrtur með taugaeitri á flugvelli í [[Malasía|Malasíu]].<ref>{{Vefheimild|titill=Kim Jong Nam myrtur með gereyðingarvopni|url=https://www.visir.is/g/2017170229328|útgefandi=''[[Vísir (vefmiðill)|Vísir]]''|ár=2017|mánuður=24. febrúar|árskoðað=2018|mánuðurskoðað=29. nóvember}}</ref> Leyniþjónustur bæði Suður-Kóreu og Bandaríkjanna telja Kim Jong-un hafa fyrirskipað morð bróður síns til að refsa honum fyrir gagnrýni hans á stjórnarhætti Kim-fjölskyldunnar í Norður-Kóreu.<ref>{{Vefheimild|titill=Segja bróður Kim Jong-un hafa verið uppljóstrara fyrir CIA|url=https://www.visir.is/g/2019190619876/segja-brodur-kim-jong-un-hafa-verid-uppljostrara-fyrir-cia|útgefandi=''[[Vísir (vefmiðill)|Vísir]]''|dags=11. júní 2019|skoðað=4. maí 2026|höfundur=Vésteinn Örn Pétursson}}</ref> Á valdatíð Kims hafa Norður-Kóreumenn haldið áfram að þróa [[kjarnorkuvopn]].<ref>{{Vefheimild|titill=Norður-Kórea og stórveldin tvö|url=https://kjarninn.is/skyring/2017-03-25-nordur-korea-og-storveldin-tvo/|útgefandi=''[[Kjarninn]]''|ár=2017|mánuður=26. mars|árskoðað=2018|mánuðurskoðað=29. nóvember}}</ref><ref>{{Vefheimild|titill=Nota ekki kjarnavopn að fyrra bragði|url=http://www.vb.is/frettir/nota-ekki-kjarnavopn-ad-fyrra-bragdi/127473/|útgefandi=''[[Viðskiptablaðið]]''|ár=2016|mánuður=8. maí|árskoðað=2018|mánuðurskoðað=29. nóvember}}</ref> Snemma í stjórnartíð hans var orðræða Norður-Kóreumanna mjög herská, sér í lagi í garð [[Suður-Kórea|Suður-Kóreu]] og [[Bandaríkin|Bandaríkjanna]]. Spennan náði hámarki árið 2017 og Norður-Kóreumenn hótuðu meðal annars að gera kjarnorkuárás á [[Gvam]].<ref>{{Vefheimild|titill=Norður-Kóreumenn tilbúnir í eldflaugaárás á Gvam von bráðar|url=https://www.visir.is/g/2017170819967|útgefandi=''[[Vísir (vefmiðill)|Vísir]]''|ár=2017|mánuður=10. ágúst|árskoðað=2018|mánuðurskoðað=29. nóvember}}</ref> Kim mildaði orðræðu sína umtalsvert í byrjun ársins 2018 og rétti fram sáttahönd. Þann 27. apríl 2018 átti Kim fund með [[Moon Jae-in]], forseta Suður-Kóreu, og sammældist um það að reyna að binda formlegan enda á [[Kóreustríðið]] og stefna að afkjarnavopnun Kóreuskaga.<ref>{{Vefheimild|url=https://www.visir.is/g/2018180219957|titill=Kim Yong-un býður Moon Jae-in heim|mánuður=10. febrúar|ár=2018|work=''Vísir''|mánuðurskoðað=27. apríl|árskoðað=2018}}</ref> Kim átti síðan fund með [[Donald Trump]] Bandaríkjaforseta í Singapúr þann 12. júní sama ár og var þetta í fyrsta skipti sem leiðtogar ríkjanna áttu formlegan leiðtogafund.<ref>{{Vefheimild|url=https://kjarninn.is/frettir/2018-06-12-sogulegur-fundur-kim-jong-un-og-trump/|titill=Sögulegur fundur Kim Jong Un og Trump|mánuður=12. júní|ár=2018|work=''Kjarninn''|mánuðurskoðað=29. nóvember|árskoðað=2018}}</ref> Á fundinum undirritaði Kim yfirlýsingu sem skuldbatt Norður-Kóreu til að vinna að „friði og farsæld“ með Bandaríkjamönnum og til að vinna að algerri afkjarnavopnun.<ref>{{Vefheimild|url=https://www.hringbraut.is/frettir/um-hvad-somdu-trump-og-kim|titill=Um hvað sömdu Trump og Kim?|mánuður=12. júní|ár=2018|útgefandi=''Hringbraut''|mánuðurskoðað=29. nóvember|árskoðað=2018}}</ref> Þrátt fyrir fyrirheitin um afvopnun héldu Norður-Kóreumenn áfram að þróa kjarnavopn eftir fundinn.<ref>{{Vefheimild|url=https://www.ruv.is/frett/nordur-korea-heldur-afram-ad-throa-kjarnavopn|titill=Norður-Kórea heldur áfram að þróa kjarnavopn|mánuður=4. ágúst|ár=2018|útgefandi=''RÚV''|mánuðurskoðað=29. nóvember|árskoðað=2018}}</ref> Kim og Trump áttu annan fund í [[Hanoi]] á dögunum 27. – 28. febrúar árið 2019 en enginn frekari árangur í átt að afkjarnavopnun náðist á þeim fundi og því var fundinum slitið án samnings. Að sögn Trumps kröfðust Norður-Kóreumenn afléttingu allra viðskiptaþvingana gegn ríkinu í skiptum fyrir skref í átt að afkjarnavopnun en Trump sagðist ekki geta gengið að slíkum kröfum.<ref>{{Vefheimild|höfundur=Stefán Ó. Jónsson|url=https://www.visir.is/g/2019190228800/gat-ekki-gengid-ad-krofum-kim|titill=Gat ekki gengið að kröfum Kim|mánuður=28. febrúar|ár=2019|útgefandi=''[[Vísir (vefmiðill)|Vísir]]''|mánuðurskoðað=1. mars|árskoðað=2019}}</ref> Norður-Kóreumenn sögðu Trump síðar hafa misskilið kröfur þeirra og að þeir hefðu í raun aðeins beðið um afléttingu sumra viðskiptaþvinganana.<ref>{{Vefheimild|höfundur=Stefán Ó. Jónsson|url=https://www.visir.is/g/2019190309973/trump-hafi-misskilid-krofur-nordur-koreu|titill=Trump hafi misskilið kröfur Norður-Kóreu|mánuður=1. mars|ár=2019|útgefandi=''[[Vísir (vefmiðill)|Vísir]]''|mánuðurskoðað=1. mars|árskoðað=2019}}</ref> Kim og Trump funduðu í þriðja sinn í lok júní árið 2019. Þetta var í fyrsta sinn sem sitjandi forseti Bandaríkjanna fór inn í Norður-Kóreu.<ref>{{Vefheimild|titill=Trump og Kim hittust í þriðja sinn: „Frábær dagur“|url=https://www.frettabladid.is/frettir/trump-og-kim-hittust-i-thridja-sinn-/|höfundur=Lovísa Arnardóttir|útgefandi=''Fréttablaðið''|ár=2019|mánuður=30. júní|árskoðað=2019|mánuðurskoðað=9. ágúst|safnslóð=https://vefsafn.is/is/20190630165410/https://www.frettabladid.is/frettir/trump-og-kim-hittust-i-thridja-sinn-/|safndags= 30. júní 2019}}</ref><ref>{{Vefheimild|titill=Trump og Kim hitt­ast|url=https://www.mbl.is/frettir/erlent/2019/06/30/samskiptin_frabaer_segir_kim/|útgefandi=mbl.is|ár=2019|mánuður=30. júní|árskoðað=2019|mánuðurskoðað=9. ágúst}}</ref> Þrátt fyrir vinsamleg samskipti leiðtoganna hafa Norður-Kóreumenn haldið áfram að gera tilraunir með eldflaugar og kjarnavopn eftir fundina.<ref>{{Vefheimild|titill=Skutu fjölda eld­flauga á loft|url=https://www.mbl.is/frettir/erlent/2019/07/30/skutu_fjolda_eldflauga_a_loft/|útgefandi=mbl.is|ár=2019|mánuður=30. júlí|árskoðað=2019|mánuðurskoðað=9. ágúst}}</ref> Trump hét Kim áframhaldandi stuðningi þótt möguleiki væri á að hann hefði brotið gegn banni Sam­einuðu þjóðanna við til­raun­um með kjarn­orku­eld­flaug­ar.<ref>{{Vefheimild|titill=Trump styður Kim áfram|url=https://www.mbl.is/frettir/erlent/2019/08/02/trump_stydur_kim_afram/|útgefandi=mbl.is|ár=2019|mánuður=2. ágúst|árskoðað=2019|mánuðurskoðað=9. ágúst}}</ref> Í desember 2019 lýstu norður-kóresk stjórnvöld því yfir að kjarnorkuafvopnun væri ekki lengur á samningaborðinu og að ekki væri þörf á frekari löngum viðræðum við Bandaríkjamenn.<ref>{{Vefheimild|titill=Kjarn­orku­af­vopn­un ekki á dag­skrá|url=https://www.mbl.is/frettir/erlent/2019/12/08/kjarnorkuafvopnun_ekki_a_dagskra/|útgefandi=[[mbl.is]]|ár=2019|mánuður=8. desember|árskoðað=2020|mánuðurskoðað=10. janúar}}</ref> Í nýársávarpi sínu í byrjun ársins 2020 tilkynnti Kim svo að Norður-Kóreumenn hygðust hætta að standa við orð sín um að stöðva próf­un kjarna­vopna og lang­drægra flug­skeyta.<ref>{{Vefheimild|titill=Kim Jong-un her­skár á ný­árs­dag|url=https://www.mbl.is/frettir/erlent/2019/12/31/kim_jong_un_herskar_a_nyarsdag/|útgefandi=[[mbl.is]]|ár=2019|mánuður=31. desember|árskoðað=2020|mánuðurskoðað=10. janúar}}</ref> Í janúar 2024 gaf Kim Jong-un út að sameining Norður- og Suður-Kóreu væri ekki lengur markmið stjórnar hans og lýsti Suður-Kóreu um leið formlega höfuðóvin Norður-Kóreu.<ref>{{Vefheimild|titill= Vilja binda illsakir ríkjanna í lög|url=https://www.mbl.is/frettir/erlent/2024/10/17/vilja_binda_i_stjornarskra_ad_s_korea_teljist_fjand/|útgefandi=[[mbl.is]]|dags= 17. október 2024|skoðað=2. ágúst 2026}}</ref> Í febrúar 2026 héldu sérfræðingar hjá leyniþjónustu Suður-Kóreu því fram að Kim hygðist lýsa dóttur sína, [[Kim Ju Ae]], arftaka sinn og að formlegt ferli til þess væri þegar hafið.<ref>{{Vefheimild|titill= Táningsdóttir Kims form­legur arf­taki hans |url=https://www.visir.is/g/20262842375d/taningsdottir-kims-form-legur-arf-taki-hans|útgefandi=''[[Vísir (vefmiðill)|Vísir]]''|dags= 12. febrúar 2026 |skoðað= 15. febrúar 2026|höfundur=Samúel Karl Ólason}}</ref> ==Tilvísanir== <references/> {{Töflubyrjun}} {{Erfðatafla | fyrir=[[Kim Jong-il]] | titill=Æðsti leiðtogi Norður-Kóreu | frá=[[17. desember]] [[2011]] | til= | eftir=Enn í embætti }} {{töfluendir}} {{stubbur|æviágrip|stjórnmál}} [[Flokkur:Fólk fætt árið 1984]] [[Flokkur:Leiðtogar Norður-Kóreu]] m98kfem8dzqqml4baozdg9o0pnd2t42 Tígurköttur 0 136490 1975562 1788295 2026-08-16T10:54:38Z CommonsDelinker 1159 Skipti út Leopardus_tigrinus_-_Parc_des_Félins.jpg fyrir [[Mynd:Leopardus_guttulus_-_Parc_des_Félins.jpg]] (eftir [[c:User:CommonsDelinker|CommonsDelinker]] vegna þess að: [[:c:COM:FR|File renamed]]: [[:c:COM:FR#FR3|Criterion 3]] (obvious error)). 1975562 wikitext text/x-wiki {{Taxobox | name = Tígurköttur | image = Leopardus guttulus - Parc des Félins.jpg | image_width = 250px | image_caption = Tígurköttur (''Leopardus tigrinus'') | status = VU | status_system = IUCN3.1 | status_ref = <ref name=iucn>{{cite iucn |title=''Leopardus tigrinus'' |author=Payan, E. |author2=de Oliveira, T. |date=2016 |page=e.T54012637A50653881 |doi=10.2305/IUCN.UK.2016-2.RLTS.T54012637A50653881.en |access-date=16 January 2022}}</ref> | regnum = [[Dýraríki]] (''Animalia'') | phylum = [[Seildýr]] (''Chordata'') | classis = [[Spendýr]] (''Mammalia'') | ordo = [[Rándýr]] (''Carnivora'') | familia = [[Kattardýr]] (''Felidae'') | genus = (''[[Leopardus]]'') | species = '''''L. tigrinus''''' | binomial = ''Leopardus tigrinus'' | binomial_authority = ([[Johann Christian Daniel von Schreber|Schreber]], [[1775]]) | range_map = Oncilla distribution.jpg | range_map_caption = Útbreiðsla 2016<ref name=iucn/> | synonyms = *''Oncifelis tigrinus'' *''Felis tigrina'' }} '''Tígurköttur''' ([[fræðiheiti]]: ''Leopardus tigrinus'') er [[kattardýr]] sem finnst á svæði frá [[Panama]] til [[Brasilía|Brasilíu]]. == Heimild == {{reflist}} {{commonscat|Leopardus tigrinus|tígurköttum}} {{Wikilífverur|Leopardus tigrinus|tígurköttum}} {{stubbur|líffræði}} [[Flokkur:Kattardýr]] ewhon79vg886ttp14e5s8lgun3gcunp Frode Johnsen 0 139107 1975566 1814726 2026-08-16T11:50:16Z Løken 21002 1975566 wikitext text/x-wiki {{Knattspyrnumaður |nafn=Frode Johnsen |mynd=[[file:Frode Johnsen.jpg|200px]] |fullt nafn=Frode Johnsen |fæðingardagur={{fæðingardagur og aldur|1974|3|17}} |fæðingarbær=[[Skien]] |fæðingarland=[[Noregur]] |hæð= |staða=[[Framherji]] |núverandi lið= |númer= |ár1=1993-2000 |ár2=2000-2006 |ár3=2006-2008 |ár4=2009-2010 |ár5=2011-2015 |lið1=[[Odds BK|Odd]] |lið2=[[Rosenborg]] |lið3=[[Nagoya Grampus]] |lið4=[[Shimizu S-Pulse]] |lið5=[[Odds BK|Odd]] |leikir (mörk)1= |landsliðsár=2000-2013 |landslið=[[Norska karlalandsliðið í knattspyrnu|Noregur]] |landsliðsleikir (mörk)=36 (10) }} '''Frode Johnsen''' (fæddur [[17. mars]] [[1974]]) er [[Noregur|norskur]] fyrrverandi [[Knattspyrna|knattspyrnumaður]]. Hann spilaði 36 leiki og skoraði 10 mörk með landsliðinu. ==Tölfræði== {|class="wikitable" style="text-align:center" !colspan=3|Noregur |- !Ár!!Leikir!!Mörk |- |2000||1||0 |- |2001||5||3 |- |2002||1||0 |- |2003||9||0 |- |2004||10||3 |- |2005||4||2 |- |2006||3||2 |- |2007||1||0 |- |2008||0||0 |- |2009||0||0 |- |2010||0||0 |- |2011||0||0 |- |2012||0||0 |- |2013||2||0 |- !Heild||36||10 |} ==Tenglar== *[http://www.national-football-teams.com/player/4919/Frode_Johnsen.html National Football Teams] {{stubbur|knattspyrna}} {{DEFAULTSORT:Johnsen, Frode }} {{fe|1974}} [[Flokkur:Norskir knattspyrnumenn]] mmg28mo4lvaf61t2sc3esfbinfbftgx Vincent Price 0 143554 1975557 1956870 2026-08-16T08:44:56Z CommonsDelinker 1159 Skráin Vincent_Price_in_House_on_Haunted_Hill_(cropped).jpg var fjarlægð og henni eytt af Commons af [[c:User:Yann|Yann]] vegna þess að per [[:c:Commons:Deletion requests/Files found with house on haunted hill|]] 1975557 wikitext text/x-wiki '''Vincent Leonard Price yngri''' (27. maí 1911 – 25. október 1993) var [[Bandaríkin|bandarískur]] leikari, kunnur fyrir auðþekkjanlega rödd sína og fjölmörg hlutverk sem hann lék í hryllingsmyndum, oft sem illmennið. Á ferli sínum birtist hann einnig í kvikmyndum annarra sagnageira, þar á meðal í spæjaramyndum, spennumyndum og gamanmyndum. Price lék á sviði, í sjónvarpi og útvarpi og birtist í fleiri en hundrað kvikmyndum. Hann á tvær stjörnur á Walk of Fame-götunni í [[Hollywood]]; eina fyrir kvikmyndir sínar og aðra fyrir sjónvarpsvinnu.<ref>{{Cite web|url=https://projects.latimes.com/hollywood/star-walk/vincent-price|title=Vincent Price - Hollywood Star Walk|website=projects.latimes.com|language=en|access-date=2017-08-04}}</ref> Price var fæddur og uppalinn í [[St. Louis]] í [[Missouri]] og á einnig stjörnu á Walk of Fame-götu St. Louis. Price var listsafnari og var með gráðu í listasögu. Hann flutti fyrirlestra og skrifaði bækur um listasögu. Hann stofnaði einnig Vincent Price-listasafnið í [[Kalifornía|Kaliforníu]].<ref>{{cite web|url=http://www.filmreference.com/film/34/Vincent-Price.html|title=Vincent Price profile at|publisher=Filmreference.com|accessdate=November 13, 2008}}</ref> Price var einnig þekktur sem meistarakokkur.<ref name="mentalfloss">{{cite journal|last=McCarthy|first=Erin|date=March 28, 2014|title=Vincent Price was a Gourmet Cook|journal=Mental Floss|issn=1543-4702|oclc=48211285|url=http://mentalfloss.com/article/55836/vincent-price-was-gourmet-cook}}</ref> Price ljáði rödd sína tónlistarplötunni ''Thriller'' eftir [[Michael Jackson]], þar sem hann flytur inngangsorð í byrjun og hlær illkvittnislega í lokin.<ref name="Vincent">{{cite news|title= Vincent Price's Halloween Thriller |type= fact sheet |publisher= Henderson-Crowe Syndications, Inc. |location= Atlanta |date= September 24, 1984}}</ref> ==Tilvísanir== <references/> {{DEFAULTSORT:Price, Vincent}} {{fde|1911|1993|Price, Vincent}} [[Flokkur:Bandarískir leikarar]] qj3dp0ij4skgt10s86g061slnhfzckm 1. deild kvenna í knattspyrnu 0 146891 1975519 1974352 2026-08-15T18:56:07Z Nipas2 54688 /* Meistarasaga */ Giving order to all lines means no more symbols or custom bold names 1975519 wikitext text/x-wiki {{Deild keppnisíþrótta | titill = 1. deild kvenna | mynd = | stofnár = 1982 | ríki = ISL Ísland | efri deild = [[Úrvalsdeild kvenna í knattspyrnu|Úrvalsdeild kvenna]] | neðri deild = [[2. deild kvenna í knattspyrnu|2. deild kvenna]] | liðafjöldi = 10 | píramída stig = [[Íslenska kvennaknattspyrnudeildakerfið|Stig 2]] | bikarar = | núverandi meistarar = [[ÍBV]] (2025) | sigursælasta lið = | heimasíða = [http://www.ksi.is www.ksi.is] }} '''1. deild kvenna í knattspyrnu''' er önnur hæsta kvennadeildin í [[Íslensk knattspyrna|íslenskri knattspyrnu]]. Deildin var stofnuð árið [[1982]]. Frá 1982 til 1994 var deildin undir nafninu "2. deild kvenna" þangað til deildin var skýrð "1. deild" 1995. Deildin hefur þó alltaf verið önnur hæsta kvennadeild landsins. == Núverandi lið (2025) == *{{Lið Afturelding}} *[[Íþróttafélagið Fylkir|Fylkir]] *[[Ungmennafélag Grindavíkur|Grindavík]]/[[Ungmennafélag Njarðvíkur|Njarðvík]] *Grótta *[[Knattspyrnufélagið Haukar|Haukar]] *[[Handknattleiksfélag Kópavogs|HK]] *[[ÍA]] *[[Íþróttabandalag Vestmannaeyja|ÍBV]] *[[Keflavík, íþrótta- og ungmennafélag|Keflavík]] *[[Knattspyrnufélag Reykjavíkur|KR]] === Meistarasaga === {| class="wikitable sortable" bgcolor="#f7f8ff" cellpadding="3" cellspacing="0" border="1" style="font-size: 95%; border: gray solid 1px; border-collapse: collapse;" |- bgcolor="#CCCCCC" align="center" |''Tímabil'' |''Lið'' |''Meistari'' |''Riðill'' |''Stig'' |''2. sæti'' |''Riðill'' |''Stig'' |- align="center" |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1982|1982]]''||9||''{{Lið Víðir}}''||A||14||{{Lið KA}}||B||12 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1983|1983]]''||11||''[[Íþróttafélagið Þór|Þór]]''||B||15||{{Lið Höttur}}||A||15 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1984|1984]]''||12||''{{Lið Keflavík}}''||B||28||{{Lið Fylkir}}||A||23 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1985|1985]]''||11||''{{Lið Haukar}}''||B||26||[[Knattspyrnufélagið Víkingur|Víkingur]]||A||21 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1986|1986]]''||12||''{{Lið Stjarnan}}''||B||30||{{Lið KA}}||A||30 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1987|1987]]''||9||''{{Lið Fram}}''||B||21||[[Íþróttabandalag Ísafjarðar|ÍBÍ]]||A||9 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1988|1988]]''||5||''{{Lið Breiðablik}}''|| ||22|| [[Íþróttafélagið Þór|Þór]]|| ||16 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1989|1989]]''||4||''[[Knattspyrnudeild Vestra#Meistaraflokkur kvenna|BÍ]]''|| ||6||{{Lið FH}}|| ||0 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1990|1990]]''||14||''[[Þróttur Neskaupsstað|Þróttur]]''||C||32||[[Knattspyrnufélagið Týr|Týr]]||A||12 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1991|1991]]''||17||''{{Lið Stjarnan}}''||A||33||{{Lið Höttur}}||C||27 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1992|1992]]''||17||''{{Lið KA}}''||B||24||[[Knattspyrnufélagið Týr|Týr]]||A||22 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1993|1993]]''||16||''{{Lið Höttur}}''||C||24||{{Lið Haukar}}||A||34 |-bgcolor="#efefef" align="center" |''[[2. deild kvenna í knattspyrnu 1994|1994]]''||15||''{{Lið ÍBA}}''||B||15||{{Lið ÍBV}}||A||26 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 1995|1995]]''||16||''{{Lið Afturelding}}''||A||21|| || || |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 1996|1996]]''||14||''{{Lið Haukar}}''||A||28|| || || |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 1997|1997]]''||14||''{{Lið Reynir S.}}''||A||30|| || || |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 1998|1998]]''||14||''{{Lið Grindavík}}''||A||12|| || || |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 1999|1999]]''||14||''{{Lið Þór/KA}}''||A||34|| || || |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2000|2000]]''||9||''{{Lið Grindavík}}''||A||27||{{Lið Þróttur R.}}||A||23 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2001|2001]]''||9||''{{Lið Þróttur R.}}''||A||30||{{Lið Haukar}}||A||30 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2002|2002]]''||12||''{{Lið Þróttur R.}}''||A||36||{{Lið Haukar}}||A||28 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2003|2003]]''||14||''{{Lið Fjölnir}}''||A||34||{{Lið Sindri}}||B||36 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2004|2004]]''||13||''{{Lið Keflavík}}''||A||34||{{Lið ÍA}}||B||36 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2005|2005]]''||12||''{{Lið Fylkir}}''||A||28||[[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]]||B||36 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2006|2006]]''||14||''{{Lið Fjölnir}}''||A||34||{{Lið ÍR}}||A||30 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2007|2007]]''||15||''{{Lið HK/Víkingur}}''||A||36||{{Lið Afturelding}}||A||35 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2008|2008]]''||12||''{{Lið ÍR}}''||A||33||[[Ungmennafélag Grindavíkur|G]][[Reynir Sandgerði|R]]/[[Knattspyrnufélagið Víðir Garði|V]]||A||25 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2009|2009]]''||13||''{{Lið Haukar}}''||B||39||{{Lið Völsungur}}||B||33 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2010|2010]]''||15||''{{Lið ÍBV}}''||B||39||{{Lið Þróttur R.}}||A||33 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2011|2011]]''||14||''{{Lið FH}}''||A||36||{{Lið Selfoss}}||B||31 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2012|2012]]''||16||''{{Lið Þróttur R.}}''||A||25||{{Lið HK/Víkingur}}||B||27 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2013|2013]]''||17||''{{Lið Fylkir}}''||A||46||{{Lið ÍA}}||A||37 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2014|2014]]''||20||''{{Lið KR}}''||B||45||{{Lið Þróttur R.}}||B||35 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2015|2015]]''||20||''{{Lið ÍA}}''||A||19||{{Lið FH}}||B||28 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2016|2016]]''||22||''{{Lið Haukar}}''||B||37||{{Lið Grindavík}}||B||28 |-bgcolor="#efefef" align="center" |''[[1. deild kvenna í knattspyrnu 2017|2017]]''||10||''{{Lið HK/Víkingur}}''||-||39||{{Lið Selfoss}}||-||36 |-bgcolor="#efefef" align="center" |''[[Inkassodeild kvenna í knattspyrnu 2018|2018]]''||10||''{{Lið Fylkir}}''||-||48||{{Lið Keflavík}}||-||46 |-bgcolor="#efefef" align="center" |''[[Inkassodeild kvenna í knattspyrnu 2019|2019]]''||10|||''{{Lið Þróttur R.}}''||-||45||{{Lið FH}}||-||39 |-bgcolor="#efefef" align="center" |''[[Lengjudeild kvenna í knattspyrnu 2020|2020]]''||10||''{{Lið Tindastóll}}''||-||46||{{Lið Keflavík}}||-||42 |-bgcolor="#efefef" align="center" |''[[Lengjudeild kvenna í knattspyrnu 2021|2021]]''||10||''{{Lið KR}}''||-||42||{{Lið Afturelding}}||-||40 |-bgcolor="#efefef" align="center" |''[[Lengjudeild kvenna í knattspyrnu 2022|2022]]''||10||''{{Lið FH}}''||-||42||{{Lið Tindastóll}}||-||41 |-bgcolor="#efefef" align="center" |''[[Lengjudeild kvenna í knattspyrnu 2023|2023]]''||10||''[[Knattspyrnufélagið Víkingur|Víkingur R.]]''||-||39||{{Lið Fylkir}}||-||38 |-bgcolor="#efefef" align="center" |''[[Lengjudeild kvenna í knattspyrnu 2024|2024]]''||10||''Fjardabyggd/Höttur/Leiknir''||-||40|| [[Knattspyrnufélagið Fram|Fram]]||-||34 |-bgcolor="#efefef" align="center" |''[[Lengjudeild kvenna í knattspyrnu 2025|2025]]''||10||''[[Íþróttabandalag Vestmannaeyja|ÍBV]]''||-||49||[[Ungmennafélag Grindavíkur|Grindavík]]/[[Ungmennafélag Njarðvíkur|Njarðvík]]||-||38 |-bgcolor="#efefef" align="center" |''[[Lengjudeild kvenna í knattspyrnu 2026|2026]]''||10|| ''?'' ||-||..|| ? ||-||.. |} == Heimildaskrá == {{reflist}} == Heimild == *{{vefheimild|url=http://www.ksi.is/um-ksi|titill=Um KSÍ|mánuðurskoðað=7. október|árskoðað=2018}} {{1. deild kvenna í knattspyrnu}} [[Flokkur:Knattspyrna]] [[Flokkur:Íslenskar knattspyrnudeildir]] [[Flokkur:Íslensk knattspyrnumót]] 3li0j5gi3dvryv6cjltcsgo6gjgbmd9 Module:List 828 147861 1975389 1773322 2026-03-02T05:52:06Z en>HouseBlaster 0 implement [[Wikipedia:Categories for discussion/Log/2026 February 13#Category:List templates with deprecated parameters]] 1975389 Scribunto text/plain local libUtil = require('libraryUtil') local checkType = libUtil.checkType local mTableTools = require('Module:TableTools') local p = {} local listTypes = { ['bulleted'] = true, ['unbulleted'] = true, ['horizontal'] = true, ['ordered'] = true, ['horizontal_ordered'] = true } function p.makeListData(listType, args) -- Constructs a data table to be passed to p.renderList. local data = {} -- Classes and TemplateStyles data.classes = {} data.templatestyles = '' if listType == 'horizontal' or listType == 'horizontal_ordered' then table.insert(data.classes, 'hlist') data.templatestyles = mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Hlist/styles.css' } } elseif listType == 'unbulleted' then table.insert(data.classes, 'plainlist') data.templatestyles = mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Plainlist/styles.css' } } end table.insert(data.classes, args.class) -- Main div style data.style = args.style -- Indent for horizontal lists if listType == 'horizontal' or listType == 'horizontal_ordered' then local indent = tonumber(args.indent) indent = indent and indent * 1.6 or 0 if indent > 0 then data.marginLeft = indent .. 'em' end end -- List style types for ordered lists -- This could be "1, 2, 3", "a, b, c", or a number of others. The list style -- type is either set by the "type" attribute or the "list-style-type" CSS -- property. if listType == 'ordered' or listType == 'horizontal_ordered' then data.listStyleType = args.list_style_type or args['list-style-type'] data.type = args['type'] -- Detect invalid type attributes and attempt to convert them to -- list-style-type CSS properties. if data.type and not data.listStyleType and not tostring(data.type):find('^%s*[1AaIi]%s*$') then data.listStyleType = data.type data.type = nil end end -- List tag type if listType == 'ordered' or listType == 'horizontal_ordered' then data.listTag = 'ol' else data.listTag = 'ul' end -- Start number for ordered lists data.start = args.start if listType == 'horizontal_ordered' then -- Apply fix to get start numbers working with horizontal ordered lists. local startNum = tonumber(data.start) if startNum then data.counterReset = 'listitem ' .. tostring(startNum - 1) end end -- List style -- ul_style and ol_style are included for backwards compatibility. No -- distinction is made for ordered or unordered lists. data.listStyle = args.list_style -- List items -- li_style is included for backwards compatibility. item_style was included -- to be easier to understand for non-coders. data.itemStyle = args.item_style or args.li_style data.items = {} for _, num in ipairs(mTableTools.numKeys(args)) do local item = {} item.content = args[num] item.style = args['item' .. tostring(num) .. '_style'] or args['item_style' .. tostring(num)] item.value = args['item' .. tostring(num) .. '_value'] or args['item_value' .. tostring(num)] table.insert(data.items, item) end return data end function p.renderList(data) -- Renders the list HTML. -- Return the blank string if there are no list items. if type(data.items) ~= 'table' or #data.items < 1 then return '' end -- Render the main div tag. local root = mw.html.create('div') for _, class in ipairs(data.classes or {}) do root:addClass(class) end root:css{['margin-left'] = data.marginLeft} if data.style then root:cssText(data.style) end -- Render the list tag. local list = root:tag(data.listTag or 'ul') list :attr{start = data.start, type = data.type} :css{ ['counter-reset'] = data.counterReset, ['list-style-type'] = data.listStyleType } if data.listStyle then list:cssText(data.listStyle) end -- Render the list items for _, t in ipairs(data.items or {}) do local item = list:tag('li') if data.itemStyle then item:cssText(data.itemStyle) end if t.style then item:cssText(t.style) end item :attr{value = t.value} :wikitext(t.content) end return data.templatestyles .. tostring(root) end function p.renderTrackingCategories(args) local isDeprecated = false -- Tracks deprecated parameters. for k, v in pairs(args) do k = tostring(k) if k:find('^item_style%d+$') or k:find('^item_value%d+$') then isDeprecated = true break end end local ret = '' if isDeprecated then ret = ret .. '[[Category:Pages using module:list with deprecated parameters]]' end return ret end function p.makeList(listType, args) if not listType or not listTypes[listType] then error(string.format( "bad argument #1 to 'makeList' ('%s' is not a valid list type)", tostring(listType) ), 2) end checkType('makeList', 2, args, 'table') local data = p.makeListData(listType, args) local list = p.renderList(data) local trackingCategories = p.renderTrackingCategories(args) return list .. trackingCategories end for listType in pairs(listTypes) do p[listType] = function (frame) local mArguments = require('Module:Arguments') local origArgs = mArguments.getArgs(frame, { frameOnly = ((frame and frame.args and frame.args.frameonly or '') ~= ''), valueFunc = function (key, value) if not value or not mw.ustring.find(value, '%S') then return nil end if mw.ustring.find(value, '^%s*[%*#;:]') then return value else return value:match('^%s*(.-)%s*$') end return nil end }) -- Copy all the arguments to a new table, for faster indexing. local args = {} for k, v in pairs(origArgs) do args[k] = v end return p.makeList(listType, args) end end return p 3zyv4n9325mfv0ujl80r445q2241il3 1975390 1975389 2026-08-15T16:50:45Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:List]] 1975389 Scribunto text/plain local libUtil = require('libraryUtil') local checkType = libUtil.checkType local mTableTools = require('Module:TableTools') local p = {} local listTypes = { ['bulleted'] = true, ['unbulleted'] = true, ['horizontal'] = true, ['ordered'] = true, ['horizontal_ordered'] = true } function p.makeListData(listType, args) -- Constructs a data table to be passed to p.renderList. local data = {} -- Classes and TemplateStyles data.classes = {} data.templatestyles = '' if listType == 'horizontal' or listType == 'horizontal_ordered' then table.insert(data.classes, 'hlist') data.templatestyles = mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Hlist/styles.css' } } elseif listType == 'unbulleted' then table.insert(data.classes, 'plainlist') data.templatestyles = mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Plainlist/styles.css' } } end table.insert(data.classes, args.class) -- Main div style data.style = args.style -- Indent for horizontal lists if listType == 'horizontal' or listType == 'horizontal_ordered' then local indent = tonumber(args.indent) indent = indent and indent * 1.6 or 0 if indent > 0 then data.marginLeft = indent .. 'em' end end -- List style types for ordered lists -- This could be "1, 2, 3", "a, b, c", or a number of others. The list style -- type is either set by the "type" attribute or the "list-style-type" CSS -- property. if listType == 'ordered' or listType == 'horizontal_ordered' then data.listStyleType = args.list_style_type or args['list-style-type'] data.type = args['type'] -- Detect invalid type attributes and attempt to convert them to -- list-style-type CSS properties. if data.type and not data.listStyleType and not tostring(data.type):find('^%s*[1AaIi]%s*$') then data.listStyleType = data.type data.type = nil end end -- List tag type if listType == 'ordered' or listType == 'horizontal_ordered' then data.listTag = 'ol' else data.listTag = 'ul' end -- Start number for ordered lists data.start = args.start if listType == 'horizontal_ordered' then -- Apply fix to get start numbers working with horizontal ordered lists. local startNum = tonumber(data.start) if startNum then data.counterReset = 'listitem ' .. tostring(startNum - 1) end end -- List style -- ul_style and ol_style are included for backwards compatibility. No -- distinction is made for ordered or unordered lists. data.listStyle = args.list_style -- List items -- li_style is included for backwards compatibility. item_style was included -- to be easier to understand for non-coders. data.itemStyle = args.item_style or args.li_style data.items = {} for _, num in ipairs(mTableTools.numKeys(args)) do local item = {} item.content = args[num] item.style = args['item' .. tostring(num) .. '_style'] or args['item_style' .. tostring(num)] item.value = args['item' .. tostring(num) .. '_value'] or args['item_value' .. tostring(num)] table.insert(data.items, item) end return data end function p.renderList(data) -- Renders the list HTML. -- Return the blank string if there are no list items. if type(data.items) ~= 'table' or #data.items < 1 then return '' end -- Render the main div tag. local root = mw.html.create('div') for _, class in ipairs(data.classes or {}) do root:addClass(class) end root:css{['margin-left'] = data.marginLeft} if data.style then root:cssText(data.style) end -- Render the list tag. local list = root:tag(data.listTag or 'ul') list :attr{start = data.start, type = data.type} :css{ ['counter-reset'] = data.counterReset, ['list-style-type'] = data.listStyleType } if data.listStyle then list:cssText(data.listStyle) end -- Render the list items for _, t in ipairs(data.items or {}) do local item = list:tag('li') if data.itemStyle then item:cssText(data.itemStyle) end if t.style then item:cssText(t.style) end item :attr{value = t.value} :wikitext(t.content) end return data.templatestyles .. tostring(root) end function p.renderTrackingCategories(args) local isDeprecated = false -- Tracks deprecated parameters. for k, v in pairs(args) do k = tostring(k) if k:find('^item_style%d+$') or k:find('^item_value%d+$') then isDeprecated = true break end end local ret = '' if isDeprecated then ret = ret .. '[[Category:Pages using module:list with deprecated parameters]]' end return ret end function p.makeList(listType, args) if not listType or not listTypes[listType] then error(string.format( "bad argument #1 to 'makeList' ('%s' is not a valid list type)", tostring(listType) ), 2) end checkType('makeList', 2, args, 'table') local data = p.makeListData(listType, args) local list = p.renderList(data) local trackingCategories = p.renderTrackingCategories(args) return list .. trackingCategories end for listType in pairs(listTypes) do p[listType] = function (frame) local mArguments = require('Module:Arguments') local origArgs = mArguments.getArgs(frame, { frameOnly = ((frame and frame.args and frame.args.frameonly or '') ~= ''), valueFunc = function (key, value) if not value or not mw.ustring.find(value, '%S') then return nil end if mw.ustring.find(value, '^%s*[%*#;:]') then return value else return value:match('^%s*(.-)%s*$') end return nil end }) -- Copy all the arguments to a new table, for faster indexing. local args = {} for k, v in pairs(origArgs) do args[k] = v end return p.makeList(listType, args) end end return p 3zyv4n9325mfv0ujl80r445q2241il3 Module:Check for unknown parameters 828 149143 1975379 1816359 2026-06-28T22:16:03Z en>MSGJ 0 +pushpin_map 1975379 Scribunto text/plain -- This module may be used to compare the arguments passed to the parent -- with a list of arguments, returning a specified result if an argument is -- not on the list require ('strict'); local p = {} local pushpin_map_params = { 'coordinates', 'pushpin_caption', 'pushpin_relief', 'pushpin_label', 'pushpin_label_position', 'pushpin_label_size', 'pushpin_map', 'pushpin_mark', 'pushpin_mark_size', 'pushpin_alt', 'pushpin_background', 'pushpin_map_size' } local mapframe_params = { 'coord', 'coordinates', 'id', 'qid', 'mapframe', 'mapframe-area_km2', 'mapframe-area_mi2', 'mapframe-caption', 'mapframe-coord', 'mapframe-coordinates', 'mapframe-custom', 'mapframe-frame-coord', 'mapframe-frame-coordinates', 'mapframe-frame-height', 'mapframe-frame-width', 'mapframe-geomask', 'mapframe-geomask-fill', 'mapframe-geomask-fill-opacity', 'mapframe-geomask-stroke-color', 'mapframe-geomask-stroke-colour', 'mapframe-geomask-stroke-width', 'mapframe-height', 'mapframe-id', 'mapframe-length_km', 'mapframe-length_mi', 'mapframe-line', 'mapframe-line-stroke-color', 'mapframe-line-stroke-colour', 'mapframe-marker', 'mapframe-marker-color', 'mapframe-marker-colour', 'mapframe-point', 'mapframe-population', 'mapframe-shape', 'mapframe-shape-fill', 'mapframe-shape-fill-opacity', 'mapframe-shape-stroke-color', 'mapframe-shape-stroke-colour', 'mapframe-stroke-color', 'mapframe-stroke-colour', 'mapframe-stroke-width', 'mapframe-switcher', 'mapframe-type', 'mapframe-width', 'mapframe-wikidata', 'mapframe-zoom' } local function trim(s) return s:match('^%s*(.-)%s*$') end local function isnotempty(s) return s and s:match('%S') end local function clean(text) -- Return text cleaned for display and truncated if too long. -- Strip markers are replaced with dummy text representing the original wikitext. local pos, truncated local function truncate(text) if truncated then return '' end if mw.ustring.len(text) > 25 then truncated = true text = mw.ustring.sub(text, 1, 25) .. '...' end return mw.text.nowiki(text) end local parts = {} for before, tag, remainder in text:gmatch('([^\127]*)\127[^\127]*%-(%l+)%-[^\127]*\127()') do pos = remainder table.insert(parts, truncate(before) .. '&lt;' .. tag .. '&gt;...&lt;/' .. tag .. '&gt;') end table.insert(parts, truncate(text:sub(pos or 1))) return table.concat(parts) end function p._check(args, pargs) if type(args) ~= "table" or type(pargs) ~= "table" then -- TODO: error handling return end -- create the list of known args, regular expressions, and the return string local knownargs = {} if isnotempty(args['mapframe_args']) then for _, v in ipairs(mapframe_params) do knownargs[v] = 1 end end if isnotempty(args['pushpin_map_args']) then for _, v in ipairs(pushpin_map_params) do knownargs[v] = 1 end end local regexps = {} for k, v in pairs(args) do if type(k) == 'number' then v = trim(v) knownargs[v] = 1 elseif k:find('^regexp[1-9][0-9]*$') then table.insert(regexps, '^' .. v .. '$') end end -- loop over the parent args, and make sure they are on the list local ignoreblank = isnotempty(args['ignoreblank']) local showblankpos = isnotempty(args['showblankpositional']) local values = {} for k, v in pairs(pargs) do if type(k) == 'string' and knownargs[k] == nil then local knownflag = false for _, regexp in ipairs(regexps) do if mw.ustring.match(k, regexp) then knownflag = true break end end if not knownflag and ( not ignoreblank or isnotempty(v) ) then table.insert(values, clean(k)) end elseif type(k) == 'number' and knownargs[tostring(k)] == nil then local knownflag = false for _, regexp in ipairs(regexps) do if mw.ustring.match(tostring(k), regexp) then knownflag = true break end end if not knownflag and ( showblankpos or isnotempty(v) ) then table.insert(values, k .. ' = ' .. clean(v)) end end end -- add results to the output tables local res = {} if #values > 0 then local unknown_text = args['unknown'] or 'Found _VALUE_, ' if mw.getCurrentFrame():preprocess( "{{REVISIONID}}" ) == "" then local preview_text = args['preview'] if isnotempty(preview_text) then preview_text = require('Module:If preview')._warning({preview_text}) elseif preview_text == nil then preview_text = unknown_text end unknown_text = preview_text end for _, v in pairs(values) do -- Fix odd bug for | = which gets stripped to the empty string and -- breaks category links if v == '' then v = ' ' end -- avoid error with v = 'example%2' ("invalid capture index") local r = unknown_text:gsub('_VALUE_', {_VALUE_ = v}) table.insert(res, r) end end return table.concat(res) end function p.check(frame) local args = frame.args local pargs = frame:getParent().args return p._check(args, pargs) end return p kohqf9fxewyce9gq1kljbz0180u8sl1 1975380 1975379 2026-08-15T16:50:44Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Check_for_unknown_parameters]] 1975379 Scribunto text/plain -- This module may be used to compare the arguments passed to the parent -- with a list of arguments, returning a specified result if an argument is -- not on the list require ('strict'); local p = {} local pushpin_map_params = { 'coordinates', 'pushpin_caption', 'pushpin_relief', 'pushpin_label', 'pushpin_label_position', 'pushpin_label_size', 'pushpin_map', 'pushpin_mark', 'pushpin_mark_size', 'pushpin_alt', 'pushpin_background', 'pushpin_map_size' } local mapframe_params = { 'coord', 'coordinates', 'id', 'qid', 'mapframe', 'mapframe-area_km2', 'mapframe-area_mi2', 'mapframe-caption', 'mapframe-coord', 'mapframe-coordinates', 'mapframe-custom', 'mapframe-frame-coord', 'mapframe-frame-coordinates', 'mapframe-frame-height', 'mapframe-frame-width', 'mapframe-geomask', 'mapframe-geomask-fill', 'mapframe-geomask-fill-opacity', 'mapframe-geomask-stroke-color', 'mapframe-geomask-stroke-colour', 'mapframe-geomask-stroke-width', 'mapframe-height', 'mapframe-id', 'mapframe-length_km', 'mapframe-length_mi', 'mapframe-line', 'mapframe-line-stroke-color', 'mapframe-line-stroke-colour', 'mapframe-marker', 'mapframe-marker-color', 'mapframe-marker-colour', 'mapframe-point', 'mapframe-population', 'mapframe-shape', 'mapframe-shape-fill', 'mapframe-shape-fill-opacity', 'mapframe-shape-stroke-color', 'mapframe-shape-stroke-colour', 'mapframe-stroke-color', 'mapframe-stroke-colour', 'mapframe-stroke-width', 'mapframe-switcher', 'mapframe-type', 'mapframe-width', 'mapframe-wikidata', 'mapframe-zoom' } local function trim(s) return s:match('^%s*(.-)%s*$') end local function isnotempty(s) return s and s:match('%S') end local function clean(text) -- Return text cleaned for display and truncated if too long. -- Strip markers are replaced with dummy text representing the original wikitext. local pos, truncated local function truncate(text) if truncated then return '' end if mw.ustring.len(text) > 25 then truncated = true text = mw.ustring.sub(text, 1, 25) .. '...' end return mw.text.nowiki(text) end local parts = {} for before, tag, remainder in text:gmatch('([^\127]*)\127[^\127]*%-(%l+)%-[^\127]*\127()') do pos = remainder table.insert(parts, truncate(before) .. '&lt;' .. tag .. '&gt;...&lt;/' .. tag .. '&gt;') end table.insert(parts, truncate(text:sub(pos or 1))) return table.concat(parts) end function p._check(args, pargs) if type(args) ~= "table" or type(pargs) ~= "table" then -- TODO: error handling return end -- create the list of known args, regular expressions, and the return string local knownargs = {} if isnotempty(args['mapframe_args']) then for _, v in ipairs(mapframe_params) do knownargs[v] = 1 end end if isnotempty(args['pushpin_map_args']) then for _, v in ipairs(pushpin_map_params) do knownargs[v] = 1 end end local regexps = {} for k, v in pairs(args) do if type(k) == 'number' then v = trim(v) knownargs[v] = 1 elseif k:find('^regexp[1-9][0-9]*$') then table.insert(regexps, '^' .. v .. '$') end end -- loop over the parent args, and make sure they are on the list local ignoreblank = isnotempty(args['ignoreblank']) local showblankpos = isnotempty(args['showblankpositional']) local values = {} for k, v in pairs(pargs) do if type(k) == 'string' and knownargs[k] == nil then local knownflag = false for _, regexp in ipairs(regexps) do if mw.ustring.match(k, regexp) then knownflag = true break end end if not knownflag and ( not ignoreblank or isnotempty(v) ) then table.insert(values, clean(k)) end elseif type(k) == 'number' and knownargs[tostring(k)] == nil then local knownflag = false for _, regexp in ipairs(regexps) do if mw.ustring.match(tostring(k), regexp) then knownflag = true break end end if not knownflag and ( showblankpos or isnotempty(v) ) then table.insert(values, k .. ' = ' .. clean(v)) end end end -- add results to the output tables local res = {} if #values > 0 then local unknown_text = args['unknown'] or 'Found _VALUE_, ' if mw.getCurrentFrame():preprocess( "{{REVISIONID}}" ) == "" then local preview_text = args['preview'] if isnotempty(preview_text) then preview_text = require('Module:If preview')._warning({preview_text}) elseif preview_text == nil then preview_text = unknown_text end unknown_text = preview_text end for _, v in pairs(values) do -- Fix odd bug for | = which gets stripped to the empty string and -- breaks category links if v == '' then v = ' ' end -- avoid error with v = 'example%2' ("invalid capture index") local r = unknown_text:gsub('_VALUE_', {_VALUE_ = v}) table.insert(res, r) end end return table.concat(res) end function p.check(frame) local args = frame.args local pargs = frame:getParent().args return p._check(args, pargs) end return p kohqf9fxewyce9gq1kljbz0180u8sl1 1975528 1975380 2026-08-15T20:33:23Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975379|1975379]] frá notandanum [[:en:User:MSGJ|en>MSGJ]] 1975528 Scribunto text/plain -- This module may be used to compare the arguments passed to the parent -- with a list of arguments, returning a specified result if an argument is -- not on the list local p = {} local function trim(s) return s:match('^%s*(.-)%s*$') end local function isnotempty(s) return s and s:match('%S') end local function clean(text) -- Return text cleaned for display and truncated if too long. -- Strip markers are replaced with dummy text representing the original wikitext. local pos, truncated local function truncate(text) if truncated then return '' end if mw.ustring.len(text) > 25 then truncated = true text = mw.ustring.sub(text, 1, 25) .. '...' end return mw.text.nowiki(text) end local parts = {} for before, tag, remainder in text:gmatch('([^\127]*)\127[^\127]*%-(%l+)%-[^\127]*\127()') do pos = remainder table.insert(parts, truncate(before) .. '&lt;' .. tag .. '&gt;...&lt;/' .. tag .. '&gt;') end table.insert(parts, truncate(text:sub(pos or 1))) return table.concat(parts) end function p.check (frame) local args = frame.args local pargs = frame:getParent().args local ignoreblank = isnotempty(args['ignoreblank']) local showblankpos = isnotempty(args['showblankpositional']) local knownargs = {} local unknown = args['unknown'] or 'Found _VALUE_, ' local preview = args['preview'] local values = {} local res = {} local regexps = {} -- create the list of known args, regular expressions, and the return string for k, v in pairs(args) do if type(k) == 'number' then v = trim(v) knownargs[v] = 1 elseif k:find('^regexp[1-9][0-9]*$') then table.insert(regexps, '^' .. v .. '$') end end -- loop over the parent args, and make sure they are on the list for k, v in pairs(pargs) do if type(k) == 'string' and knownargs[k] == nil then local knownflag = false for _, regexp in ipairs(regexps) do if mw.ustring.match(k, regexp) then knownflag = true break end end if not knownflag and ( not ignoreblank or isnotempty(v) ) then table.insert(values, clean(k)) end elseif type(k) == 'number' and knownargs[tostring(k)] == nil and ( showblankpos or isnotempty(v) ) then table.insert(values, k .. ' = ' .. clean(v)) end end -- add results to the output tables if #values > 0 then for _, v in pairs(values) do if v == '' then -- Fix odd bug for | = which gets stripped to the empty string and -- breaks category links v = ' ' end -- avoid error with v = 'example%2' ("invalid capture index") local r = unknown:gsub('_VALUE_', {_VALUE_ = v}) end end if isnotempty(preview) and r then preview = mw.addWarning('<div class="hatnote" style="color:red"><strong>Warning:</strong> ' .. r .. ' (this message is shown only in preview).</div>') elseif preview == nil then preview = unknown end local templatestyles = mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = "Module:Hatnote/styles.css"} } return templatestyles .. table.concat(res) end return p hz338rw8aob73kyz7bkht27npf9ici7 Snið:If empty 10 155337 1975403 1658889 2022-04-03T20:56:41Z en>Wugapodes 0 Changed protection settings for "[[Template:If empty]]": [[WP:High-risk templates|Highly visible template]]: used on 2 million pages and permanently cascade protected; matches module protection ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) 1658889 wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:If empty|main}}<noinclude>{{Documentation}}</noinclude> dl9p9t1ge8vz1f67zrvu4lp7md161es 1975404 1790809 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:If_empty]] 1790809 wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:If empty|main}}<noinclude>{{Documentation}} Þetta snið er notað af öðrum sniðum, tekur við nokkrum gildum og skilar fyrsta gildinu sem er ekki tómt. <code><nowiki>{{if empty|a|b|c}}</nowiki></code> [[Flokkur:Grunnsnið]]</noinclude> ia7xrni697qibblti0oa136lg69uvpw Module:If empty 828 155338 1975405 1770562 2023-01-26T18:33:28Z en>MSGJ 0 lastk is not needed 1975405 Scribunto text/plain local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) for k,v in ipairs(args) do if v ~= '' then return v end end end return p 8cxs60bq7ivex6wukqrel0fi3yogyu4 1975406 1975405 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:If_empty]] 1975405 Scribunto text/plain local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) for k,v in ipairs(args) do if v ~= '' then return v end end end return p 8cxs60bq7ivex6wukqrel0fi3yogyu4 Module:String 828 155341 1975381 1754535 2025-08-11T23:48:56Z en>Pppery 0 Fix 1975381 Scribunto text/plain --[[ This module is intended to provide access to basic string functions. Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace. Global options ignore_errors: If set to 'true' or 1, any error condition will result in an empty string being returned rather than an error message. error_category: If an error occurs, specifies the name of a category to include with the error message. The default category is [Category:Errors reported by Module String]. no_category: If set to 'true' or 1, no category will be added if an error is generated. Unit tests for this module are available at Module:String/tests. ]] local str = {} --[[ len This function returns the length of the target string. Usage: {{#invoke:String|len|target_string|}} OR {{#invoke:String|len|s=target_string}} Parameters s: The string whose length to report If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. ]] function str.len( frame ) local new_args = str._getParameters( frame.args, {'s'} ) local s = new_args['s'] or '' return mw.ustring.len( s ) end --[[ sub This function returns a substring of the target string at specified indices. Usage: {{#invoke:String|sub|target_string|start_index|end_index}} OR {{#invoke:String|sub|s=target_string|i=start_index|j=end_index}} Parameters s: The string to return a subset of i: The first index of the substring to return, defaults to 1. j: The last index of the string to return, defaults to the last character. The first character of the string is assigned an index of 1. If either i or j is a negative value, it is interpreted the same as selecting a character by counting from the end of the string. Hence, a value of -1 is the same as selecting the last character of the string. If the requested indices are out of range for the given string, an error is reported. ]] function str.sub( frame ) local new_args = str._getParameters( frame.args, { 's', 'i', 'j' } ) local s = new_args['s'] or '' local i = tonumber( new_args['i'] ) or 1 local j = tonumber( new_args['j'] ) or -1 local len = mw.ustring.len( s ) -- Convert negatives for range checking if i < 0 then i = len + i + 1 end if j < 0 then j = len + j + 1 end if i > len or j > len or i < 1 or j < 1 then return str._error( 'String subset index out of range' ) end if j < i then return str._error( 'String subset indices out of order' ) end return mw.ustring.sub( s, i, j ) end --[[ This function implements that features of {{str sub old}} and is kept in order to maintain these older templates. ]] function str.sublength( frame ) local i = tonumber( frame.args.i ) or 0 local len = tonumber( frame.args.len ) return mw.ustring.sub( frame.args.s, i + 1, len and ( i + len ) ) end --[[ _match This function returns a substring from the source string that matches a specified pattern. It is exported for use in other modules Usage: strmatch = require("Module:String")._match sresult = strmatch( s, pattern, start, match, plain, nomatch ) Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This sub-routine is exported for use in other modules function str._match( s, pattern, start, match_index, plain_flag, nomatch ) if s == '' then return str._error( 'Target string is empty' ) end if pattern == '' then return str._error( 'Pattern string is empty' ) end start = tonumber(start) or 1 if math.abs(start) < 1 or math.abs(start) > mw.ustring.len( s ) then return str._error( 'Requested start is out of range' ) end if match_index == 0 then return str._error( 'Match index is out of range' ) end if plain_flag then pattern = str._escapePattern( pattern ) end local result if match_index == 1 then -- Find first match is simple case result = mw.ustring.match( s, pattern, start ) else if start > 1 then s = mw.ustring.sub( s, start ) end local iterator = mw.ustring.gmatch(s, pattern) if match_index > 0 then -- Forward search for w in iterator do match_index = match_index - 1 if match_index == 0 then result = w break end end else -- Reverse search local result_table = {} local count = 1 for w in iterator do result_table[count] = w count = count + 1 end result = result_table[ count + match_index ] end end if result == nil then if nomatch == nil then return str._error( 'Match not found' ) else return nomatch end else return result end end --[[ match This function returns a substring from the source string that matches a specified pattern. Usage: {{#invoke:String|match|source_string|pattern_string|start_index|match_number|plain_flag|nomatch_output}} OR {{#invoke:String|match|s=source_string|pattern=pattern_string|start=start_index |match=match_number|plain=plain_flag|nomatch=nomatch_output}} Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from each string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. If the match_number or start_index are out of range for the string being queried, then this function generates an error. An error is also generated if no match is found. If one adds the parameter ignore_errors=true, then the error will be suppressed and an empty string will be returned on any failure. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This is the entry point for #invoke:String|match function str.match( frame ) local new_args = str._getParameters( frame.args, {'s', 'pattern', 'start', 'match', 'plain', 'nomatch'} ) local s = new_args['s'] or '' local start = tonumber( new_args['start'] ) or 1 local plain_flag = str._getBoolean( new_args['plain'] or false ) local pattern = new_args['pattern'] or '' local match_index = math.floor( tonumber(new_args['match']) or 1 ) local nomatch = new_args['nomatch'] return str._match( s, pattern, start, match_index, plain_flag, nomatch ) end --[[ pos This function returns a single character from the target string at position pos. Usage: {{#invoke:String|pos|target_string|index_value}} OR {{#invoke:String|pos|target=target_string|pos=index_value}} Parameters target: The string to search pos: The index for the character to return If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. The first character has an index value of 1. If one requests a negative value, this function will select a character by counting backwards from the end of the string. In other words pos = -1 is the same as asking for the last character. A requested value of zero, or a value greater than the length of the string returns an error. ]] function str.pos( frame ) local new_args = str._getParameters( frame.args, {'target', 'pos'} ) local target_str = new_args['target'] or '' local pos = tonumber( new_args['pos'] ) or 0 if pos == 0 or math.abs(pos) > mw.ustring.len( target_str ) then return str._error( 'String index out of range' ) end return mw.ustring.sub( target_str, pos, pos ) end --[[ str_find This function duplicates the behavior of {{str_find}}, including all of its quirks. This is provided in order to support existing templates, but is NOT RECOMMENDED for new code and templates. New code is recommended to use the "find" function instead. Returns the first index in "source" that is a match to "target". Indexing is 1-based, and the function returns -1 if the "target" string is not present in "source". Important Note: If the "target" string is empty / missing, this function returns a value of "1", which is generally unexpected behavior, and must be accounted for separatetly. ]] function str.str_find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target'} ) local source_str = new_args['source'] or '' local target_str = new_args['target'] or '' if target_str == '' then return 1 end local start = mw.ustring.find( source_str, target_str, 1, true ) if start == nil then start = -1 end return start end --[[ find This function allows one to search for a target string or pattern within another string. Usage: {{#invoke:String|find|source_str|target_string|start_index|plain_flag}} OR {{#invoke:String|find|source=source_str|target=target_str|start=start_index|plain=plain_flag}} Parameters source: The string to search target: The string or pattern to find within source start: The index within the source string to start the search, defaults to 1 plain: Boolean flag indicating that target should be understood as plain text and not as a Lua style regular expression, defaults to true If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. This function returns the first index >= "start" where "target" can be found within "source". Indices are 1-based. If "target" is not found, then this function returns 0. If either "source" or "target" are missing / empty, this function also returns 0. This function should be safe for UTF-8 strings. ]] function str.find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target', 'start', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['target'] or '' local start_pos = tonumber(new_args['start']) or 1 local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return 0 end plain = str._getBoolean( plain ) local start = mw.ustring.find( source_str, pattern, start_pos, plain ) if start == nil then start = 0 end return start end --[[ replace This function allows one to replace a target string or pattern within another string. Usage: {{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}} OR {{#invoke:String|replace|source=source_string|pattern=pattern_string|replace=replace_string| count=replacement_count|plain=plain_flag}} Parameters source: The string to search pattern: The string or pattern to find within source replace: The replacement text count: The number of occurences to replace, defaults to all. plain: Boolean flag indicating that pattern should be understood as plain text and not as a Lua style regular expression, defaults to true ]] function str.replace( frame ) local new_args = str._getParameters( frame.args, {'source', 'pattern', 'replace', 'count', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['pattern'] or '' local replace = new_args['replace'] or '' local count = tonumber( new_args['count'] ) local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return source_str end plain = str._getBoolean( plain ) if plain then pattern = str._escapePattern( pattern ) replace = string.gsub( replace, "%%", "%%%%" ) --Only need to escape replacement sequences. end local result if count ~= nil then result = mw.ustring.gsub( source_str, pattern, replace, count ) else result = mw.ustring.gsub( source_str, pattern, replace ) end return result end --[[ simple function to pipe string.rep to templates. ]] function str.rep( frame ) local repetitions = tonumber( frame.args[2] ) if not repetitions then return str._error( 'function rep expects a number as second parameter, received "' .. ( frame.args[2] or '' ) .. '"' ) end return string.rep( frame.args[1] or '', repetitions ) end --[[ escapePattern This function escapes special characters from a Lua string pattern. See [1] for details on how patterns work. [1] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns Usage: {{#invoke:String|escapePattern|pattern_string}} Parameters pattern_string: The pattern string to escape. ]] function str.escapePattern( frame ) local pattern_str = frame.args[1] if not pattern_str then return str._error( 'No pattern string specified' ) end local result = str._escapePattern( pattern_str ) return result end --[[ count This function counts the number of occurrences of one string in another. ]] function str.count(frame) local args = str._getParameters(frame.args, {'source', 'pattern', 'plain'}) local source = args.source or '' local pattern = args.pattern or '' local plain = str._getBoolean(args.plain or true) if plain then pattern = str._escapePattern(pattern) end local _, count = mw.ustring.gsub(source, pattern, '') return count end --[[ endswith This function determines whether a string ends with another string. ]] function str.endswith(frame) local args = str._getParameters(frame.args, {'source', 'pattern'}) local source = args.source or '' local pattern = args.pattern or '' if pattern == '' then -- All strings end with the empty string. return "yes" end if mw.ustring.sub(source, -mw.ustring.len(pattern), -1) == pattern then return "yes" else return "" end end --[[ join Join all non empty arguments together; the first argument is the separator. Usage: {{#invoke:String|join|sep|one|two|three}} ]] function str.join(frame) local args = {} local sep for _, v in ipairs( frame.args ) do if sep then if v ~= '' then table.insert(args, v) end else sep = v end end return table.concat( args, sep or '' ) end -- findpagetext returns the position of a piece of text in a page -- First positional parameter or |text is the search text -- Optional parameter |title is the page title, defaults to current page -- Optional parameter |plain is either true for plain search (default) or false for Lua pattern search -- Optional parameter |nomatch is the return value when no match is found; default is nil function str._findpagetext(args) -- process parameters local nomatch = args.nomatch or "" if nomatch == "" then nomatch = nil end -- local text = mw.text.trim(args[1] or args.text or "") if text == "" then return nil end -- local title = args.title or "" local titleobj if title == "" then titleobj = mw.title.getCurrentTitle() else titleobj = mw.title.new(title) end -- local plain = args.plain or "" if plain:sub(1, 1) == "f" then plain = false else plain = true end -- get the page content and look for 'text' - return position or nomatch local content = titleobj and titleobj:getContent() return content and mw.ustring.find(content, text, 1, plain) or nomatch end function str.findpagetext(frame) local args = frame.args local pargs = frame:getParent().args for k, v in pairs(pargs) do args[k] = v end if not (args[1] or args.text) then return nil end -- just the first value return (str._findpagetext(args)) end --[[ Helper function that populates the argument list given that user may need to use a mix of named and unnamed parameters. This is relevant because named parameters are not identical to unnamed parameters due to string trimming, and when dealing with strings we sometimes want to either preserve or remove that whitespace depending on the application. ]] function str._getParameters( frame_args, arg_list ) local new_args = {} local index = 1 local value for _, arg in ipairs( arg_list ) do value = frame_args[arg] if value == nil then value = frame_args[index] index = index + 1 end new_args[arg] = value end return new_args end --[[ Helper function to handle error messages. ]] function str._error( error_str ) local frame = mw.getCurrentFrame() local error_category = frame.args.error_category or 'Errors reported by Module String' local ignore_errors = frame.args.ignore_errors or false local no_category = frame.args.no_category or false if str._getBoolean(ignore_errors) then return '' end local error_str = '<strong class="error">String Module Error: ' .. error_str .. '</strong>' if error_category ~= '' and not str._getBoolean( no_category ) then error_str = '[[Category:' .. error_category .. ']]' .. error_str end return error_str end --[[ Helper Function to interpret boolean strings ]] function str._getBoolean( boolean_str ) local boolean_value if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower() if boolean_str == 'false' or boolean_str == 'no' or boolean_str == '0' or boolean_str == '' then boolean_value = false else boolean_value = true end elseif type( boolean_str ) == 'boolean' then boolean_value = boolean_str else error( 'No boolean value found' ) end return boolean_value end --[[ Helper function that escapes all pattern characters so that they will be treated as plain text. ]] function str._escapePattern( pattern_str ) return ( string.gsub( pattern_str, "[%(%)%.%%%+%-%*%?%[%^%$%]]", "%%%0" ) ) end return str j3b8d4sejqnvazpfl0gk0yfaa503gli 1975382 1975381 2026-08-15T16:50:44Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:String]] 1975381 Scribunto text/plain --[[ This module is intended to provide access to basic string functions. Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace. Global options ignore_errors: If set to 'true' or 1, any error condition will result in an empty string being returned rather than an error message. error_category: If an error occurs, specifies the name of a category to include with the error message. The default category is [Category:Errors reported by Module String]. no_category: If set to 'true' or 1, no category will be added if an error is generated. Unit tests for this module are available at Module:String/tests. ]] local str = {} --[[ len This function returns the length of the target string. Usage: {{#invoke:String|len|target_string|}} OR {{#invoke:String|len|s=target_string}} Parameters s: The string whose length to report If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. ]] function str.len( frame ) local new_args = str._getParameters( frame.args, {'s'} ) local s = new_args['s'] or '' return mw.ustring.len( s ) end --[[ sub This function returns a substring of the target string at specified indices. Usage: {{#invoke:String|sub|target_string|start_index|end_index}} OR {{#invoke:String|sub|s=target_string|i=start_index|j=end_index}} Parameters s: The string to return a subset of i: The first index of the substring to return, defaults to 1. j: The last index of the string to return, defaults to the last character. The first character of the string is assigned an index of 1. If either i or j is a negative value, it is interpreted the same as selecting a character by counting from the end of the string. Hence, a value of -1 is the same as selecting the last character of the string. If the requested indices are out of range for the given string, an error is reported. ]] function str.sub( frame ) local new_args = str._getParameters( frame.args, { 's', 'i', 'j' } ) local s = new_args['s'] or '' local i = tonumber( new_args['i'] ) or 1 local j = tonumber( new_args['j'] ) or -1 local len = mw.ustring.len( s ) -- Convert negatives for range checking if i < 0 then i = len + i + 1 end if j < 0 then j = len + j + 1 end if i > len or j > len or i < 1 or j < 1 then return str._error( 'String subset index out of range' ) end if j < i then return str._error( 'String subset indices out of order' ) end return mw.ustring.sub( s, i, j ) end --[[ This function implements that features of {{str sub old}} and is kept in order to maintain these older templates. ]] function str.sublength( frame ) local i = tonumber( frame.args.i ) or 0 local len = tonumber( frame.args.len ) return mw.ustring.sub( frame.args.s, i + 1, len and ( i + len ) ) end --[[ _match This function returns a substring from the source string that matches a specified pattern. It is exported for use in other modules Usage: strmatch = require("Module:String")._match sresult = strmatch( s, pattern, start, match, plain, nomatch ) Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This sub-routine is exported for use in other modules function str._match( s, pattern, start, match_index, plain_flag, nomatch ) if s == '' then return str._error( 'Target string is empty' ) end if pattern == '' then return str._error( 'Pattern string is empty' ) end start = tonumber(start) or 1 if math.abs(start) < 1 or math.abs(start) > mw.ustring.len( s ) then return str._error( 'Requested start is out of range' ) end if match_index == 0 then return str._error( 'Match index is out of range' ) end if plain_flag then pattern = str._escapePattern( pattern ) end local result if match_index == 1 then -- Find first match is simple case result = mw.ustring.match( s, pattern, start ) else if start > 1 then s = mw.ustring.sub( s, start ) end local iterator = mw.ustring.gmatch(s, pattern) if match_index > 0 then -- Forward search for w in iterator do match_index = match_index - 1 if match_index == 0 then result = w break end end else -- Reverse search local result_table = {} local count = 1 for w in iterator do result_table[count] = w count = count + 1 end result = result_table[ count + match_index ] end end if result == nil then if nomatch == nil then return str._error( 'Match not found' ) else return nomatch end else return result end end --[[ match This function returns a substring from the source string that matches a specified pattern. Usage: {{#invoke:String|match|source_string|pattern_string|start_index|match_number|plain_flag|nomatch_output}} OR {{#invoke:String|match|s=source_string|pattern=pattern_string|start=start_index |match=match_number|plain=plain_flag|nomatch=nomatch_output}} Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from each string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. If the match_number or start_index are out of range for the string being queried, then this function generates an error. An error is also generated if no match is found. If one adds the parameter ignore_errors=true, then the error will be suppressed and an empty string will be returned on any failure. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This is the entry point for #invoke:String|match function str.match( frame ) local new_args = str._getParameters( frame.args, {'s', 'pattern', 'start', 'match', 'plain', 'nomatch'} ) local s = new_args['s'] or '' local start = tonumber( new_args['start'] ) or 1 local plain_flag = str._getBoolean( new_args['plain'] or false ) local pattern = new_args['pattern'] or '' local match_index = math.floor( tonumber(new_args['match']) or 1 ) local nomatch = new_args['nomatch'] return str._match( s, pattern, start, match_index, plain_flag, nomatch ) end --[[ pos This function returns a single character from the target string at position pos. Usage: {{#invoke:String|pos|target_string|index_value}} OR {{#invoke:String|pos|target=target_string|pos=index_value}} Parameters target: The string to search pos: The index for the character to return If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. The first character has an index value of 1. If one requests a negative value, this function will select a character by counting backwards from the end of the string. In other words pos = -1 is the same as asking for the last character. A requested value of zero, or a value greater than the length of the string returns an error. ]] function str.pos( frame ) local new_args = str._getParameters( frame.args, {'target', 'pos'} ) local target_str = new_args['target'] or '' local pos = tonumber( new_args['pos'] ) or 0 if pos == 0 or math.abs(pos) > mw.ustring.len( target_str ) then return str._error( 'String index out of range' ) end return mw.ustring.sub( target_str, pos, pos ) end --[[ str_find This function duplicates the behavior of {{str_find}}, including all of its quirks. This is provided in order to support existing templates, but is NOT RECOMMENDED for new code and templates. New code is recommended to use the "find" function instead. Returns the first index in "source" that is a match to "target". Indexing is 1-based, and the function returns -1 if the "target" string is not present in "source". Important Note: If the "target" string is empty / missing, this function returns a value of "1", which is generally unexpected behavior, and must be accounted for separatetly. ]] function str.str_find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target'} ) local source_str = new_args['source'] or '' local target_str = new_args['target'] or '' if target_str == '' then return 1 end local start = mw.ustring.find( source_str, target_str, 1, true ) if start == nil then start = -1 end return start end --[[ find This function allows one to search for a target string or pattern within another string. Usage: {{#invoke:String|find|source_str|target_string|start_index|plain_flag}} OR {{#invoke:String|find|source=source_str|target=target_str|start=start_index|plain=plain_flag}} Parameters source: The string to search target: The string or pattern to find within source start: The index within the source string to start the search, defaults to 1 plain: Boolean flag indicating that target should be understood as plain text and not as a Lua style regular expression, defaults to true If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. This function returns the first index >= "start" where "target" can be found within "source". Indices are 1-based. If "target" is not found, then this function returns 0. If either "source" or "target" are missing / empty, this function also returns 0. This function should be safe for UTF-8 strings. ]] function str.find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target', 'start', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['target'] or '' local start_pos = tonumber(new_args['start']) or 1 local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return 0 end plain = str._getBoolean( plain ) local start = mw.ustring.find( source_str, pattern, start_pos, plain ) if start == nil then start = 0 end return start end --[[ replace This function allows one to replace a target string or pattern within another string. Usage: {{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}} OR {{#invoke:String|replace|source=source_string|pattern=pattern_string|replace=replace_string| count=replacement_count|plain=plain_flag}} Parameters source: The string to search pattern: The string or pattern to find within source replace: The replacement text count: The number of occurences to replace, defaults to all. plain: Boolean flag indicating that pattern should be understood as plain text and not as a Lua style regular expression, defaults to true ]] function str.replace( frame ) local new_args = str._getParameters( frame.args, {'source', 'pattern', 'replace', 'count', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['pattern'] or '' local replace = new_args['replace'] or '' local count = tonumber( new_args['count'] ) local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return source_str end plain = str._getBoolean( plain ) if plain then pattern = str._escapePattern( pattern ) replace = string.gsub( replace, "%%", "%%%%" ) --Only need to escape replacement sequences. end local result if count ~= nil then result = mw.ustring.gsub( source_str, pattern, replace, count ) else result = mw.ustring.gsub( source_str, pattern, replace ) end return result end --[[ simple function to pipe string.rep to templates. ]] function str.rep( frame ) local repetitions = tonumber( frame.args[2] ) if not repetitions then return str._error( 'function rep expects a number as second parameter, received "' .. ( frame.args[2] or '' ) .. '"' ) end return string.rep( frame.args[1] or '', repetitions ) end --[[ escapePattern This function escapes special characters from a Lua string pattern. See [1] for details on how patterns work. [1] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns Usage: {{#invoke:String|escapePattern|pattern_string}} Parameters pattern_string: The pattern string to escape. ]] function str.escapePattern( frame ) local pattern_str = frame.args[1] if not pattern_str then return str._error( 'No pattern string specified' ) end local result = str._escapePattern( pattern_str ) return result end --[[ count This function counts the number of occurrences of one string in another. ]] function str.count(frame) local args = str._getParameters(frame.args, {'source', 'pattern', 'plain'}) local source = args.source or '' local pattern = args.pattern or '' local plain = str._getBoolean(args.plain or true) if plain then pattern = str._escapePattern(pattern) end local _, count = mw.ustring.gsub(source, pattern, '') return count end --[[ endswith This function determines whether a string ends with another string. ]] function str.endswith(frame) local args = str._getParameters(frame.args, {'source', 'pattern'}) local source = args.source or '' local pattern = args.pattern or '' if pattern == '' then -- All strings end with the empty string. return "yes" end if mw.ustring.sub(source, -mw.ustring.len(pattern), -1) == pattern then return "yes" else return "" end end --[[ join Join all non empty arguments together; the first argument is the separator. Usage: {{#invoke:String|join|sep|one|two|three}} ]] function str.join(frame) local args = {} local sep for _, v in ipairs( frame.args ) do if sep then if v ~= '' then table.insert(args, v) end else sep = v end end return table.concat( args, sep or '' ) end -- findpagetext returns the position of a piece of text in a page -- First positional parameter or |text is the search text -- Optional parameter |title is the page title, defaults to current page -- Optional parameter |plain is either true for plain search (default) or false for Lua pattern search -- Optional parameter |nomatch is the return value when no match is found; default is nil function str._findpagetext(args) -- process parameters local nomatch = args.nomatch or "" if nomatch == "" then nomatch = nil end -- local text = mw.text.trim(args[1] or args.text or "") if text == "" then return nil end -- local title = args.title or "" local titleobj if title == "" then titleobj = mw.title.getCurrentTitle() else titleobj = mw.title.new(title) end -- local plain = args.plain or "" if plain:sub(1, 1) == "f" then plain = false else plain = true end -- get the page content and look for 'text' - return position or nomatch local content = titleobj and titleobj:getContent() return content and mw.ustring.find(content, text, 1, plain) or nomatch end function str.findpagetext(frame) local args = frame.args local pargs = frame:getParent().args for k, v in pairs(pargs) do args[k] = v end if not (args[1] or args.text) then return nil end -- just the first value return (str._findpagetext(args)) end --[[ Helper function that populates the argument list given that user may need to use a mix of named and unnamed parameters. This is relevant because named parameters are not identical to unnamed parameters due to string trimming, and when dealing with strings we sometimes want to either preserve or remove that whitespace depending on the application. ]] function str._getParameters( frame_args, arg_list ) local new_args = {} local index = 1 local value for _, arg in ipairs( arg_list ) do value = frame_args[arg] if value == nil then value = frame_args[index] index = index + 1 end new_args[arg] = value end return new_args end --[[ Helper function to handle error messages. ]] function str._error( error_str ) local frame = mw.getCurrentFrame() local error_category = frame.args.error_category or 'Errors reported by Module String' local ignore_errors = frame.args.ignore_errors or false local no_category = frame.args.no_category or false if str._getBoolean(ignore_errors) then return '' end local error_str = '<strong class="error">String Module Error: ' .. error_str .. '</strong>' if error_category ~= '' and not str._getBoolean( no_category ) then error_str = '[[Category:' .. error_category .. ']]' .. error_str end return error_str end --[[ Helper Function to interpret boolean strings ]] function str._getBoolean( boolean_str ) local boolean_value if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower() if boolean_str == 'false' or boolean_str == 'no' or boolean_str == '0' or boolean_str == '' then boolean_value = false else boolean_value = true end elseif type( boolean_str ) == 'boolean' then boolean_value = boolean_str else error( 'No boolean value found' ) end return boolean_value end --[[ Helper function that escapes all pattern characters so that they will be treated as plain text. ]] function str._escapePattern( pattern_str ) return ( string.gsub( pattern_str, "[%(%)%.%%%+%-%*%?%[%^%$%]]", "%%%0" ) ) end return str j3b8d4sejqnvazpfl0gk0yfaa503gli 1975527 1975382 2026-08-15T20:32:57Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975381|1975381]] frá notandanum [[:en:User:Pppery|en>Pppery]] 1975527 Scribunto text/plain return require ("Module:Strengur") d2i0iy80dvs5s0kyc5ie4qh7fhhdrdq Habib Bourguiba 0 158223 1975348 1948507 2026-08-15T12:12:28Z Ziv 102822 ([[c:GR|GR]]) [[File:Portrait officiel de Habib Bourguiba.png]] → [[File:Habib Bourguiba portrait4.jpg]] → File replacement: update from an old and low quality png version to a jpg with better quality ([[c:c:GR]]) 1975348 wikitext text/x-wiki {{Forsætisráðherra | forskeyti = | nafn = Habib Bourguiba | nafn_á_frummáli = {{nobold|حبيب بورقيبة}} | mynd = Habib Bourguiba portrait4.jpg | myndatexti1 = {{small|Habib Bourguiba árið 1960.}} | titill= Forseti Túnis | stjórnartíð_start = [[25. júlí]] [[1957]] | stjórnartíð_end = [[7. nóvember]] [[1987]] | forsætisráðherra = [[Bahi Ladgham]]<br>[[Hédi Nouira]]<br>[[Mohammed Mzali]]<br>[[Rachid Sfar]]<br>[[Zine El Abidine Ben Ali]] | forveri = ''Embætti stofnað'' | eftirmaður = [[Zine El Abidine Ben Ali]] | titill2= Forsætisráðherra Túnis | stjórnartíð_start2 = [[11. apríl]] [[1956]] | stjórnartíð_end2 = [[25. júlí]] [[1957]] | einvaldur2 = [[Múhameð 8. al-Amin]] | forveri2 = [[Tahar Ben Ammar]] | eftirmaður2 = [[Bahi Ladgham]] | fæddur = [[3. ágúst]] [[1903]] | fæðingarstaður = [[Monastir]], [[Túnis]] | dánardagur = {{Dánardagur og aldur|2000|4|6|1903|8|3}} | dánarstaður = [[Monastir]], [[Túnis]] | þjóderni = [[Túnis]]kur | maki = Mathilde Lorrain (g. 1927; sk. 1961)<br>Wassila Ben Ammar (g. 1962; sk. 1986) | börn = 2 | foreldrar = | stjórnmálaflokkur = [[Sósíalíski Destour-flokkurinn]] (1964–87)<br>[[Neo-Destour]] (1934–64)<br>[[Destour]] (1930–34) | háskóli = [[Parísarháskóli]] | starf = Lögfræðingur |undirskrift =Signature Habib Bourguiba.svg }} '''Habib Bourguiba''' (3. ágúst 1903 – 6. apríl 2000) var stofnandi og fyrsti forseti Lýðveldisins [[Túnis]]. Hann gegndi forsetaembættinu í þrjátíu ár, frá 1957 til 1987. Þar áður hafði hann leikið lykilhlutverk í sjálfstæðisbaráttu Túnis undan [[Frakkland]]i og hafði verið forsætisráðherra Túnis frá 1956 til 1957. ==Æviágrip== Habib Bourguiba fæddist árið 1903 í [[Monastir]] í [[Túnis]]. Faðir hans var liðsforingi í heimavarnarliði landsins, sem þá var verndarsvæði undir yfirráðum [[Þriðja franska lýðveldið|Frakklands]].<ref name=svipmynd>{{Tímarit.is|3288140|Habib Bourgíba|útgáfudagsetning=21. júlí 1963|blað=[[Lesbók Morgunblaðsins]]|skoðað=4. júlí 2020|blaðsíða=2}}</ref> Faðir Habibs sendi hann til náms í [[París]], þar sem Bourguiba nam lögfræði við [[Parísarháskóli|Parísarháskóla]]. Hann sneri aftur til Túnis að loknu námi og gerðist málaflutningsmaður. Hann gekk í túnisku sjálfstæðishreyfingunna [[Destour]] en sagði skilið við hana árið 1934 vegna ágreinings við [[Íslamismi|íslamista]] í flokknum og tók þátt í stofnun nýrra sjálfstæðissamtaka, [[Neo-Destour]].<ref name=fálkinn>{{Tímarit.is|4374599|Fyrsti forseti Tunis – Habib Bourgiba|útgáfudagsetning=11. september 1959|blað=[[Fálkinn]]|skoðað=4. júlí 2020|blaðsíða=11}}</ref> Bourguiba varð framkvæmdastjóri nýja flokksins sama ár.<ref name=samtíðin>{{Tímarit.is|5065571|Habib Bourguiba, forseti Túnis|útgáfudagsetning=1. júní 1961|blað=[[Samtíðin]]|skoðað=4. júlí 2020|blaðsíða=21-23}}</ref> Árið 1935 var Bourguiba í fyrsta sinn handtekinn af frönskum stjórnvöldum fyrir aðild sína að sjálfstæðisbaráttunni. Hann sat oft í fangelsi og í útlegð næstu ár og varði meðal annars árum [[Seinni heimsstyrjöldin|seinni heimsstyrjaldarinnar]] í fangelsi í Frakklandi. Þrátt fyrir [[Orrustan um Frakkland|ósigur Frakka gegn Þjóðverjum]] og hernám Frakklands var Bourguiba þess fullviss að Þýskaland gæti ekki unnið styrjöldina og skipaði því stuðningsmönnum sínum að styðja útlegðarstjórn [[Frjálsir Frakkar|Frjálsra Frakka]] og starfa með henni á hans ábyrgð og í hans nafni.<ref name=samtíðin/> Þjóðverjar létu sleppa Bourguiba úr haldi árið 1942,<ref>{{Tímarit.is|1015134|Sjálfstæðisbaráttan í Tunis|útgáfudagsetning=20. febrúar 1952|blað=[[Tíminn]]|skoðað=4. júlí 2020|blaðsíða=5}}</ref> fluttu hann til [[Róm]]ar og buðu honum að gerast leiðtogi túniskrar útlegðarstjórnar með þýskum stuðningi en Bourguiba hafnaði tilboði þeirra. Bourguiba sneri aftur til Túnis árið 1944 og hvatti þá landa sína til að styðja Frakka áfram í styrjöldinni.<ref name=svipmynd/> Vegna stuðnings síns við Frakka var Bourguiba í sterkri stöðu eftir lok styrjaldarinnar. Hann fékk leyfi til að taka þátt í stjórnmálum á ný og Neo-Destour varð brátt sterkasti stjórnmálaflokkur í Túnis. Bourguiba hlaut um skeið sæti í ríkisstjórn Túnis en vegna síaukinna tilþreifana í sjálfstæðisátt var hann handtekinn á ný árið 1952 og fluttur til Frakklands. Handtaka hans leiddi til mikilla óeirða í Túnis og staða Frakka í nýlendunni varð sífellt erfiðari. Bourguiba sat í fangelsi í tvö ár en þegar [[Pierre Mendès France]] varð forsætisráðherra Frakklands árið 1954 ákvað stjórn hans að veita Túnis sjálfstæði sitt. Sem leiðtogi Neo-Destour var Bourguiba í reynd sjálfkjörinn sem fyrsti ríkisstjórnarleiðtogi hins sjálfstæða Túnis. Neo-Destour hlaut nær öll þingsætin í fyrstu kosningum hins nýsjálfstæða ríkis þann 11. apríl 1956.<ref name=tíminn1958>{{Tímarit.is|1032367|Í Túnis er aðeins einn Bourguiba|útgáfudagsetning=17. febrúar 1958|blað=[[Tíminn]]|skoðað=7. júlí 2020|blaðsíða=6; 3}}</ref> Eftir sjálfstæði varð Túnis fyrst um sinn konungsríki og [[Múhameð 8. al-Amin]], sem hafði verið leppstjórnandi Frakka með titlinum ''[[bey]]'', varð konungur þess. Árið 1957 stóð Bourguiba hins vegar fyrir því að Túnis var lýst [[lýðveldi]] og Bourguiba varð sjálfur fyrsti forseti landsins.<ref name=tíminn1958/> Við upphaf stjórnartíðar sinnar átti Bourguiba einnig í valdabaráttu gegn öðrum leiðtoga Neo-Destour, [[Salah ben Youssef]], sem hneigðist lengra til vinstri og var hallur undir hugmyndir [[Gamal Abdel Nasser|Nassers]] Egyptalandsforseta um samheldni Arabaríkjanna.<ref name=tíminn1958/> Bourguiba greindi meðal annars á við Nasser og fylgismenn hans þar sem Bourguiba vildi viðhalda vinsamlegu sambandi við [[Vesturlönd]], sér í lagi við gömlu herraþjóðina Frakkland. Í valdabaráttunni varð Bourguiba yfirsterkari, sem leiddi til þess að Youssef flúði úr landi og hlaut hæli hjá stjórn Nassers í [[Kaíró]]. Þetta olli miklum kala í samskiptum Bourguiba og Nassers og Bourguiba sleit um skeið samskiptum við Egyptaland.<ref>{{Tímarit.is|1318407|Búrgíba ræðst harkalega að Nasser|útgáfudagsetning=17. október 1958|blað=[[Morgunblaðið]]|skoðað=7. júlí 2020|blaðsíða=1}}</ref> Í innanríkismálum beitti Bourguiba sér fyrir nútímavæðingu og umbótum í anda [[Kemal Atatürk|Atatürks]] í Tyrklandi. Hann lét nema úr gildi ýmis gömul [[Íslam|íslömsk]] lög, setti nútímalegri lög um hjónaskilnaði og hvatti Túnisa til þess að halda áfram að vinna á föstunni.<ref name=samtíðin/> Bourguiba var leiðtogi Túnis í rúm þrjátíu ár og á þeim tíma fór dýrðarljóminn af honum sem sjálfstæðishetju landsins mjög að dofna. Lítið var um eiginlegt lýðræði í Túnis á stjórnartíð hans og Bourguiba réði því lengst af sem [[einræðisherra]]. Stjórn hans viðhélt eftirliti með fjölmiðlum og hvatti til [[persónudýrkun]]ar á forsetanum.<ref>{{Tímarit.is|3734776|Bourguiba forseti vill einn öllu ráða í Túnis|útgáfudagsetning=29. ágúst 1973|blað=[[Tíminn]]|skoðað=7. júlí 2020|blaðsíða=9}}</ref> Á áttunda áratugnum átti Bourguiba um skeið í viðræðum við [[Muammar Gaddafi]], leiðtoga [[Líbía|Líbíu]], um að Túnis og Líbía skyldu sameinast í eitt ríki.<ref>{{Tímarit.is|3260467|Stirðleg trúlofun|útgáfudagsetning=14. febrúar 1975|blað=[[Vísir (dagblað)|Vísir]]|skoðað=7. júlí 2020|blaðsíða=6}}</ref> Aldrei varð þó neitt úr þessum fyrirætlunum. Árið 1987 skipaði Bourguiba [[Zine El Abidine Ben Ali]] forsætisráðherra stjórnar sinnar og var þaðan af litið á Ben Ali sem líklegan eftirmann hans. Þann 7. nóvember sama ár lýsti Ben Ali því yfir að Bourguiba væri elliær og framdi blóðlaust valdarán gegn forsetanum. Leiðtogaskiptin fóru fram í skugga vaxandi óvinsælda Bourguiba og því kipptu fáir Túnisar sér upp við valdaránið.<ref>{{Tímarit.is|1667746|Ben Ali, forseti, virðist njóta trausts Túnisa|útgáfudagsetning=10. nóvember 1987|blað=[[Morgunblaðið]]|skoðað=7. júlí 2020|höfundur=[[Jóhanna Kristjónsdóttir]]|blaðsíða=28}}</ref> Bourguiba lést þann 7. apríl árið 2000.<ref>{{cite news |work=[[L'Humanité]] |date=7 April 2000 |title=Tunisie. Le décès du père de l'indépendance. Bourguiba. La mort après l'oubli |url=http://www.humanite.presse.fr/journal/2000-04-07/2000-04-07-223175 |access-date=2020-07-07 |archive-date=2005-06-25 |archive-url=https://web.archive.org/web/20050625030405/http://www.humanite.presse.fr/journal/2000-04-07/2000-04-07-223175 |url-status=dead }}</ref> Mikið hefur verið deilt um stjórnartíð hans og arfleifð hans til túnisku þjóðarinnar, sérstaklega eftir [[Byltingin í Túnis|byltinguna árið 2010]]. ==Tilvísanir== <references/> {{Töflubyrjun}} {{Erfðatafla |titill = Forsætisráðherra Túnis | frá = [[11. apríl]] [[1956]] | til = [[25. júlí]] [[1957]] | fyrir = [[Tahar Ben Ammar]] | eftir = Embætti lagt niður }} {{Erfðatafla |titill = Forseti Túnis | frá = [[25. júlí]] [[1957]] | til = [[7. nóvember]] [[1987]] | fyrir = Fyrstur í embætti<br>{{small|[[Múhameð 8. al-Amin|Múhameð 8.]] sem konungur Túnis}} | eftir = [[Zine El Abidine Ben Ali]] }} {{töfluendir}} {{Forsetar Túnis}} {{DEFAULTSORT:Bourguiba, Habib}} {{fd|1903|2000}} [[Flokkur:Forsetar Túnis]] [[Flokkur:Forsætisráðherrar Túnis]] p7c5xyh8023t4a5qf93f7aevw79xhrn Snið:Main other 10 161078 1975371 1886265 2025-07-28T14:53:49Z en>Pppery 0 Make substable per request 1975371 wikitext text/x-wiki {{safesubst:<noinclude/>#switch: <noinclude><!-- If no or empty "demospace" parameter then detect namespace --></noinclude> {{safesubst:<noinclude/>#if:{{{demospace|}}} | {{safesubst:<noinclude/>lc: {{{demospace}}} }} <noinclude><!-- Use lower case "demospace" --></noinclude> | {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE}}|{{safesubst:<noinclude/>ns:0}} | main | other }} }} | main = {{{1|}}} | other | #default = {{{2|}}} }}<noinclude> {{documentation}} <!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --> </noinclude> aljcm6nr1pwk5dw5g13lyhxhplulpg5 1975372 1975371 2026-08-15T16:50:44Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Main_other]] 1975371 wikitext text/x-wiki {{safesubst:<noinclude/>#switch: <noinclude><!-- If no or empty "demospace" parameter then detect namespace --></noinclude> {{safesubst:<noinclude/>#if:{{{demospace|}}} | {{safesubst:<noinclude/>lc: {{{demospace}}} }} <noinclude><!-- Use lower case "demospace" --></noinclude> | {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE}}|{{safesubst:<noinclude/>ns:0}} | main | other }} }} | main = {{{1|}}} | other | #default = {{{2|}}} }}<noinclude> {{documentation}} <!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --> </noinclude> aljcm6nr1pwk5dw5g13lyhxhplulpg5 Module:TNT 828 161415 1975425 2020-08-30T07:28:25Z en>Johnuniq 0 Changed protection level for "[[Module:TNT]]": [[WP:High-risk templates|High-risk Lua module]]: per request at [[WP:RFPP]] to match [[Module:Excerpt]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) 1975425 Scribunto text/plain -- -- INTRO: (!!! DO NOT RENAME THIS PAGE !!!) -- This module allows any template or module to be copy/pasted between -- wikis without any translation changes. All translation text is stored -- in the global Data:*.tab pages on Commons, and used everywhere. -- -- SEE: https://www.mediawiki.org/wiki/Multilingual_Templates_and_Modules -- -- ATTENTION: -- Please do NOT rename this module - it has to be identical on all wikis. -- This code is maintained at https://www.mediawiki.org/wiki/Module:TNT -- Please do not modify it anywhere else, as it may get copied and override your changes. -- Suggestions can be made at https://www.mediawiki.org/wiki/Module_talk:TNT -- -- DESCRIPTION: -- The "msg" function uses a Commons dataset to translate a message -- with a given key (e.g. source-table), plus optional arguments -- to the wiki markup in the current content language. -- Use lang=xx to set language. Example: -- -- {{#invoke:TNT | msg -- | I18n/Template:Graphs.tab <!-- https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab --> -- | source-table <!-- uses a translation message with id = "source-table" --> -- | param1 }} <!-- optional parameter --> -- -- -- The "doc" function will generate the <templatedata> parameter documentation for templates. -- This way all template parameters can be stored and localized in a single Commons dataset. -- NOTE: "doc" assumes that all documentation is located in Data:Templatedata/* on Commons. -- -- {{#invoke:TNT | doc | Graph:Lines }} -- uses https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Lines.tab -- if the current page is Template:Graph:Lines/doc -- local p = {} local i18nDataset = 'I18n/Module:TNT.tab' -- Forward declaration of the local functions local sanitizeDataset, loadData, link, formatMessage function p.msg(frame) local dataset, id local params = {} local lang = nil for k, v in pairs(frame.args) do if k == 1 then dataset = mw.text.trim(v) elseif k == 2 then id = mw.text.trim(v) elseif type(k) == 'number' then table.insert(params, mw.text.trim(v)) elseif k == 'lang' and v ~= '_' then lang = mw.text.trim(v) end end return formatMessage(dataset, id, params, lang) end -- Identical to p.msg() above, but used from other lua modules -- Parameters: name of dataset, message key, optional arguments -- Example with 2 params: format('I18n/Module:TNT', 'error_bad_msgkey', 'my-key', 'my-dataset') function p.format(dataset, key, ...) local checkType = require('libraryUtil').checkType checkType('format', 1, dataset, 'string') checkType('format', 2, key, 'string') return formatMessage(dataset, key, {...}) end -- Identical to p.msg() above, but used from other lua modules with the language param -- Parameters: language code, name of dataset, message key, optional arguments -- Example with 2 params: formatInLanguage('es', I18n/Module:TNT', 'error_bad_msgkey', 'my-key', 'my-dataset') function p.formatInLanguage(lang, dataset, key, ...) local checkType = require('libraryUtil').checkType checkType('formatInLanguage', 1, lang, 'string') checkType('formatInLanguage', 2, dataset, 'string') checkType('formatInLanguage', 3, key, 'string') return formatMessage(dataset, key, {...}, lang) end -- Obsolete function that adds a 'c:' prefix to the first param. -- "Sandbox/Sample.tab" -> 'c:Data:Sandbox/Sample.tab' function p.link(frame) return link(frame.args[1]) end function p.doc(frame) local dataset = 'Templatedata/' .. sanitizeDataset(frame.args[1]) return frame:extensionTag('templatedata', p.getTemplateData(dataset)) .. formatMessage(i18nDataset, 'edit_doc', {link(dataset)}) end function p.getTemplateData(dataset) -- TODO: add '_' parameter once lua starts reindexing properly for "all" languages local data = loadData(dataset) local names = {} for _, field in pairs(data.schema.fields) do table.insert(names, field.name) end local params = {} local paramOrder = {} for _, row in pairs(data.data) do local newVal = {} local name = nil for pos, val in pairs(row) do local columnName = names[pos] if columnName == 'name' then name = val else newVal[columnName] = val end end if name then params[name] = newVal table.insert(paramOrder, name) end end -- Work around json encoding treating {"1":{...}} as an [{...}] params['zzz123']='' local json = mw.text.jsonEncode({ params=params, paramOrder=paramOrder, description=data.description }) json = string.gsub(json,'"zzz123":"",?', "") return json end -- Local functions sanitizeDataset = function(dataset) if not dataset then return nil end dataset = mw.text.trim(dataset) if dataset == '' then return nil elseif string.sub(dataset,-4) ~= '.tab' then return dataset .. '.tab' else return dataset end end loadData = function(dataset, lang) dataset = sanitizeDataset(dataset) if not dataset then error(formatMessage(i18nDataset, 'error_no_dataset', {})) end -- Give helpful error to thirdparties who try and copy this module. if not mw.ext or not mw.ext.data or not mw.ext.data.get then error('Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:' .. dataset) end local data = mw.ext.data.get(dataset, lang) if data == false then if dataset == i18nDataset then -- Prevent cyclical calls error('Missing Commons dataset ' .. i18nDataset) else error(formatMessage(i18nDataset, 'error_bad_dataset', {link(dataset)})) end end return data end -- Given a dataset name, convert it to a title with the 'commons:data:' prefix link = function(dataset) return 'c:Data:' .. mw.text.trim(dataset or '') end formatMessage = function(dataset, key, params, lang) for _, row in pairs(loadData(dataset, lang).data) do local id, msg = unpack(row) if id == key then local result = mw.message.newRawMessage(msg, unpack(params or {})) return result:plain() end end if dataset == i18nDataset then -- Prevent cyclical calls error('Invalid message key "' .. key .. '"') else error(formatMessage(i18nDataset, 'error_bad_msgkey', {key, link(dataset)})) end end return p icfixo3zxiew6gqg3s5h19xr03x3wkh 1975426 1940788 2026-08-15T16:50:47Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:TNT]] 1940788 Scribunto text/plain -- -- INTRO: (!!! DO NOT RENAME THIS PAGE !!!) -- This module allows any template or module to be copy/pasted between -- wikis without any translation changes. All translation text is stored -- in the global Data:*.tab pages on Commons, and used everywhere. -- -- SEE: https://www.mediawiki.org/wiki/Multilingual_Templates_and_Modules -- -- ATTENTION: -- Please do NOT rename this module - it has to be identical on all wikis. -- This code is maintained at https://www.mediawiki.org/wiki/Module:TNT -- Please do not modify it anywhere else, as it may get copied and override your changes. -- Suggestions can be made at https://www.mediawiki.org/wiki/Module_talk:TNT -- -- DESCRIPTION: -- The "msg" function uses a Commons dataset to translate a message -- with a given key (e.g. source-table), plus optional arguments -- to the wiki markup in the current content language. -- Use lang=xx to set language. Example: -- -- {{#invoke:TNT | msg -- | I18n/Template:Graphs.tab <!-- https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab --> -- | source-table <!-- uses a translation message with id = "source-table" --> -- | param1 }} <!-- optional parameter --> -- -- -- The "doc" function will generate the <templatedata> parameter documentation for templates. -- This way all template parameters can be stored and localized in a single Commons dataset. -- NOTE: "doc" assumes that all documentation is located in Data:Templatedata/* on Commons. -- -- {{#invoke:TNT | doc | Graph:Lines }} -- uses https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Lines.tab -- if the current page is Template:Graph:Lines/doc -- local config = (function() local ok, res = pcall(mw.loadData, "Module:TNT/config"); return ok and res or {}; end)(); local p = {} local i18nDataset = 'I18n/Module:TNT.tab' -- Forward declaration of the local functions local sanitizeDataset, loadData, link, formatMessage function p.msg(frame) local dataset, id local params = {} local lang = nil for k, v in pairs(frame.args) do if k == 1 then dataset = mw.text.trim(v) elseif k == 2 then id = mw.text.trim(v) elseif type(k) == 'number' then params[k - 2] = mw.text.trim(v) elseif k == 'lang' and v ~= '_' then lang = mw.text.trim(v) end end return formatMessage(dataset, id, params, lang) end -- Identical to p.msg() above, but used from other lua modules -- Parameters: name of dataset, message key, optional arguments -- Example with 2 params: format('I18n/Module:TNT', 'error_bad_msgkey', 'my-key', 'my-dataset') function p.format(dataset, key, ...) local checkType = require('libraryUtil').checkType checkType('format', 1, dataset, 'string') checkType('format', 2, key, 'string') return formatMessage(dataset, key, {...}) end -- Identical to p.msg() above, but used from other lua modules with the language param -- Parameters: language code, name of dataset, message key, optional arguments -- Example with 2 params: formatInLanguage('es', I18n/Module:TNT', 'error_bad_msgkey', 'my-key', 'my-dataset') function p.formatInLanguage(lang, dataset, key, ...) local checkType = require('libraryUtil').checkType checkType('formatInLanguage', 1, lang, 'string') checkType('formatInLanguage', 2, dataset, 'string') checkType('formatInLanguage', 3, key, 'string') return formatMessage(dataset, key, {...}, lang) end -- Obsolete function that adds a 'c:' prefix to the first param. -- "Sandbox/Sample.tab" -> 'c:Data:Sandbox/Sample.tab' function p.link(frame) return link(frame.args[1]) end local implGetTemplateData; function p.doc(frame) local dataset = sanitizeDataset(frame.args[1]) local json, dataPage, categories = implGetTemplateData(nil, dataset, frame.args) return frame:extensionTag('templatedata', json) .. formatMessage(i18nDataset, 'edit_doc', {link(dataPage)}) .. (categories or ""); end function p.getTemplateData(dataset) local data = implGetTemplateData(true, dataset); return data; end function p.getTemplateDataNew(...) return implGetTemplateData(nil, ...); end function implGetTemplateData(legacy, dataset, args) -- TODO: add '_' parameter once lua starts reindexing properly for "all" languages local data, dataPage, categories = loadData( dataset, nil, not legacy and 'TemplateData' or nil); local names = {} for _, field in ipairs(data.schema.fields) do table.insert(names, field.name) end local numOnly = true local params = {} local paramOrder = {} for _, row in ipairs(data.data) do local newVal = {} local name = nil for pos, columnName in ipairs(names) do if columnName == 'name' then name = row[pos] else newVal[columnName] = row[pos] end end if name then if ( (type(name) ~= "number") and ( (type(name) ~= "string") or not string.match(name, "^%d+$") ) ) then numOnly = false end params[name] = newVal table.insert(paramOrder, name) end end -- Work around json encoding treating {"1":{...}} as an [{...}] if numOnly then params['zzz123']='' end local json = mw.text.jsonEncode({ params=params, paramOrder=paramOrder, description=data.description, -- TODO: Store this in a dataset: format = (args and args.format or nil), }) if numOnly then json = string.gsub(json,'"zzz123":"",?', "") end return json, dataPage, categories; end -- Local functions sanitizeDataset = function(dataset) if not dataset then return nil end dataset = mw.text.trim(dataset) if dataset == '' then return nil elseif string.sub(dataset,-4) ~= '.tab' then return dataset .. '.tab' else return dataset end end loadData = function(dataset, lang, dataType) dataset = sanitizeDataset(dataset) if not dataset then error(formatMessage(i18nDataset, 'error_no_dataset', {})) end -- Give helpful error to thirdparties who try and copy this module. if not mw.ext or not mw.ext.data or not mw.ext.data.get then error(string.format([['''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:%s. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates''']], dataset)) end local dataPage = dataset; local data, categories; if dataType == 'TemplateData' then dataPage = 'TemplateData/' .. dataset; data = mw.ext.data.get(dataPage, lang); if data == false then data = mw.ext.data.get('Templatedata/' .. dataset, lang); if data ~= false then local legacyTemplateDataCategoryName = config.legacyTemplateDataCategoryName; if legacyTemplateDataCategoryName ~= false then categories = string.format( '[[Category:%s%s]]', legacyTemplateDataCategoryName or "Templates using legacy global TemplateData table name", config.translatableCategoryLink and mw.getCurrentFrame():callParserFunction("#translation:") or "" ); end dataPage = 'Templatedata/' .. dataset; end end else data = mw.ext.data.get(dataset, lang) end if data == false then if dataset == i18nDataset then -- Prevent cyclical calls error('Missing Commons dataset ' .. i18nDataset) else error(formatMessage(i18nDataset, 'error_bad_dataset', {link(dataPage)})) end end return data, dataPage, categories; end -- Given a dataset name, convert it to a title with the 'commons:data:' prefix link = function(dataset) return 'c:Data:' .. mw.text.trim(dataset or '') end formatMessage = function(dataset, key, params, lang) for _, row in pairs(loadData(dataset, lang).data) do local id, msg = unpack(row) if id == key then local result = mw.message.newRawMessage(msg, unpack(params or {})) return result:plain() end end if dataset == i18nDataset then -- Prevent cyclical calls error('Invalid message key "' .. key .. '"') else error(formatMessage(i18nDataset, 'error_bad_msgkey', {key, link(dataset)})) end end return p 2ii65lh3z6ssbx7s7r8h0vsbnbhbiyl Snið:Both 10 164188 1975373 1784180 2024-06-15T14:15:23Z en>Explicit 0 [[Wikipedia:Templates for discussion/Log/2024 June 8#Template:Both]] closed as keep ([[WP:XFDC#4.0.15|XFDcloser]]) 1975373 wikitext text/x-wiki {{SAFESUBST:<noinclude />#if:{{{1|}}}|{{SAFESUBST:<noinclude />#if:{{{2|}}}|1}}}}<noinclude> {{documentation}} </noinclude> a92g9dgn74wuyygsul02g6cnq29em4t 1975374 1975373 2026-08-15T16:50:44Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Both]] 1975373 wikitext text/x-wiki {{SAFESUBST:<noinclude />#if:{{{1|}}}|{{SAFESUBST:<noinclude />#if:{{{2|}}}|1}}}}<noinclude> {{documentation}} </noinclude> a92g9dgn74wuyygsul02g6cnq29em4t 1975530 1975374 2026-08-15T20:49:39Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975373|1975373]] frá notandanum [[:en:User:Explicit|en>Explicit]] 1975530 wikitext text/x-wiki {{SAFESUBST:<noinclude />#if:{{{1|}}}|{{SAFESUBST:<noinclude />#if:{{{2|}}}|1}}}}<noinclude> {{documentation}} [[Flokkur:Grunnsnið]] </noinclude> dnazwk7xpgiexzdjaiuzrqt2d1jnesx Snið:Succession links 10 165070 1975415 1731777 2025-12-15T04:58:20Z en>Pppery 0 Copy from sandbox per request 1975415 wikitext text/x-wiki {{#if:{{{above|}}} |<div class="{{{aboveclass|}}}" style="width:100%; text-align:center; {{{abovestyle|}}}">{{{above}}}</div> }}{{#if:{{{center|}}} |<!-- then --><div style="width:100%; margin:1px; display:inline-table;"> <div style="display:table-cell; text-align:left; vertical-align:{{{vertical-align|middle}}}; padding:0 0.5em 0 0;{{#if:{{{wide|}}}|width:45%;}}{{{leftstyle|}}}" class="noprint">{{#if:{{{left|}}}|{{#if:{{{noarrows|}}}||&larr;&nbsp;}}{{Delink question hyphen-minus|{{{left|}}}}}{{#if:{{{bullets|}}}|&nbsp;'''·'''}}}}</div> <div style="display:table-cell; text-align:center; vertical-align:{{{vertical-align|middle}}}; padding:0 1px;{{{centerstyle|}}}" class="{{{centerclass|}}}">{{{center}}}</div> <div style="display:table-cell; text-align:right; vertical-align:{{{vertical-align|middle}}}; padding:0 0 0 0.5em;{{#if:{{{wide|}}}|width:45%;}}{{{rightstyle|}}}" class="noprint">{{#if:{{{right|}}}|{{#if:{{{bullets|}}}|'''·'''&nbsp;}}{{Delink question hyphen-minus|{{{right|}}}}}{{#if:{{{noarrows|}}}||&nbsp;&rarr;}}}}</div> </div> |<!-- else -->{{#if:{{{left|}}}{{{right|}}}|<div style="width:100%">{{#if:{{{left|}}}| <div style="float: left; text-align:left;padding-right:0.5em;{{{leftstyle|}}}" class="noprint">{{#if:{{{noarrows|}}}||&larr;&nbsp;}}{{Delink question hyphen-minus|{{{left|}}}}}</div> }}{{#if:{{{right|}}}| <div style="float: right; text-align:right;padding-left:0.5em;{{{rightstyle|}}}" class="noprint">{{Delink question hyphen-minus|{{{right|}}}}}{{#if:{{{noarrows|}}}||&nbsp;&rarr;}}</div> }}</div>}} }}<noinclude>{{documentation}}</noinclude> mqzj1ijp3znlzcigairge69xq7lpztd 1975416 1975415 2026-08-15T16:50:47Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Succession_links]] 1975415 wikitext text/x-wiki {{#if:{{{above|}}} |<div class="{{{aboveclass|}}}" style="width:100%; text-align:center; {{{abovestyle|}}}">{{{above}}}</div> }}{{#if:{{{center|}}} |<!-- then --><div style="width:100%; margin:1px; display:inline-table;"> <div style="display:table-cell; text-align:left; vertical-align:{{{vertical-align|middle}}}; padding:0 0.5em 0 0;{{#if:{{{wide|}}}|width:45%;}}{{{leftstyle|}}}" class="noprint">{{#if:{{{left|}}}|{{#if:{{{noarrows|}}}||&larr;&nbsp;}}{{Delink question hyphen-minus|{{{left|}}}}}{{#if:{{{bullets|}}}|&nbsp;'''·'''}}}}</div> <div style="display:table-cell; text-align:center; vertical-align:{{{vertical-align|middle}}}; padding:0 1px;{{{centerstyle|}}}" class="{{{centerclass|}}}">{{{center}}}</div> <div style="display:table-cell; text-align:right; vertical-align:{{{vertical-align|middle}}}; padding:0 0 0 0.5em;{{#if:{{{wide|}}}|width:45%;}}{{{rightstyle|}}}" class="noprint">{{#if:{{{right|}}}|{{#if:{{{bullets|}}}|'''·'''&nbsp;}}{{Delink question hyphen-minus|{{{right|}}}}}{{#if:{{{noarrows|}}}||&nbsp;&rarr;}}}}</div> </div> |<!-- else -->{{#if:{{{left|}}}{{{right|}}}|<div style="width:100%">{{#if:{{{left|}}}| <div style="float: left; text-align:left;padding-right:0.5em;{{{leftstyle|}}}" class="noprint">{{#if:{{{noarrows|}}}||&larr;&nbsp;}}{{Delink question hyphen-minus|{{{left|}}}}}</div> }}{{#if:{{{right|}}}| <div style="float: right; text-align:right;padding-left:0.5em;{{{rightstyle|}}}" class="noprint">{{Delink question hyphen-minus|{{{right|}}}}}{{#if:{{{noarrows|}}}||&nbsp;&rarr;}}</div> }}</div>}} }}<noinclude>{{documentation}}</noinclude> mqzj1ijp3znlzcigairge69xq7lpztd Module:Infobox/styles.css 828 165912 1975387 1754226 2026-06-09T21:49:34Z en>Izno 0 spaceeeee 1975387 sanitized-css text/css /* {{pp|small=y}} */ /* * This TemplateStyles sheet deliberately does NOT include the full set of * infobox styles. We are still working to migrate all of the manual * infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]] * DO NOT ADD THEM HERE */ /* NOTE: This is maintained both here and in [[MediaWiki:Common.css]] until migration is complete. * Starting with bare minimum for the benefit of [[mw:Manual:Safemode]]. */ @media (min-width: 640px) { .infobox { /* @noflip */ margin-left: 1em; /* @noflip */ float: right; /* @noflip */ clear: right; width: 22em; } } /* * not strictly certain these styles are necessary since the modules now * exclusively output infobox-subbox or infobox, not both * just replicating the module faithfully */ .infobox-subbox { padding: 0; border: none; margin: -3px; width: auto; min-width: 100%; font-size: 100%; clear: none; float: none; background-color: transparent; color:inherit; } .infobox-3cols-child { margin: -3px; } .infobox .navbar { font-size: 100%; } /* remove when infobox is not a table anymore */ .infobox-hiddenrow, /* we mean it, Minerva. but also Vector 2022 in the future at some point */ body.skin--responsive.skin--responsive .infobox .infobox-hiddenrow { display: none; } /* Dark theme: [[William Wragg]], [[Coral Castle]] */ @media screen { html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] { background: #1f1f23 !important; /* switch with var( --color-base ) when supported. */ color: #f8f9fa; } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) > div:not(.notheme)[style] { background: #1f1f23 !important; /* switch with var( --color-base ) when supported. */ color: #f8f9fa; } } /* Since infobox is a table, many infobox templates take advantage of this to * add columns and rows to the infobox itself rather than as part of a new table * inside them. This class should be discouraged and removed on the long term, * but allows us to at least identify these tables going forward * Currently in use on: [[Module:Infobox3cols]] * Fixes issue described in [[phab:F55300125]] on Vector 2022. */ @media (min-width: 640px) { body.skin--responsive .infobox-table { display: table !important; } body.skin--responsive .infobox-table > caption { display: table-caption !important; } body.skin--responsive .infobox-table > tbody { display: table-row-group; } body.skin--responsive .infobox-table th, body.skin--responsive .infobox-table td { padding-left: inherit; padding-right: inherit; } } bi1nsztkx4350a55cuzjhaotvp5h216 1975388 1975387 2026-08-15T16:50:45Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Infobox/styles.css]] 1975387 sanitized-css text/css /* {{pp|small=y}} */ /* * This TemplateStyles sheet deliberately does NOT include the full set of * infobox styles. We are still working to migrate all of the manual * infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]] * DO NOT ADD THEM HERE */ /* NOTE: This is maintained both here and in [[MediaWiki:Common.css]] until migration is complete. * Starting with bare minimum for the benefit of [[mw:Manual:Safemode]]. */ @media (min-width: 640px) { .infobox { /* @noflip */ margin-left: 1em; /* @noflip */ float: right; /* @noflip */ clear: right; width: 22em; } } /* * not strictly certain these styles are necessary since the modules now * exclusively output infobox-subbox or infobox, not both * just replicating the module faithfully */ .infobox-subbox { padding: 0; border: none; margin: -3px; width: auto; min-width: 100%; font-size: 100%; clear: none; float: none; background-color: transparent; color:inherit; } .infobox-3cols-child { margin: -3px; } .infobox .navbar { font-size: 100%; } /* remove when infobox is not a table anymore */ .infobox-hiddenrow, /* we mean it, Minerva. but also Vector 2022 in the future at some point */ body.skin--responsive.skin--responsive .infobox .infobox-hiddenrow { display: none; } /* Dark theme: [[William Wragg]], [[Coral Castle]] */ @media screen { html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] { background: #1f1f23 !important; /* switch with var( --color-base ) when supported. */ color: #f8f9fa; } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) > div:not(.notheme)[style] { background: #1f1f23 !important; /* switch with var( --color-base ) when supported. */ color: #f8f9fa; } } /* Since infobox is a table, many infobox templates take advantage of this to * add columns and rows to the infobox itself rather than as part of a new table * inside them. This class should be discouraged and removed on the long term, * but allows us to at least identify these tables going forward * Currently in use on: [[Module:Infobox3cols]] * Fixes issue described in [[phab:F55300125]] on Vector 2022. */ @media (min-width: 640px) { body.skin--responsive .infobox-table { display: table !important; } body.skin--responsive .infobox-table > caption { display: table-caption !important; } body.skin--responsive .infobox-table > tbody { display: table-row-group; } body.skin--responsive .infobox-table th, body.skin--responsive .infobox-table td { padding-left: inherit; padding-right: inherit; } } bi1nsztkx4350a55cuzjhaotvp5h216 1975514 1975388 2026-08-15T17:33:35Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975387|1975387]] frá notandanum [[:en:User:Izno|en>Izno]] 1975514 sanitized-css text/css /* {{pp|small=y}} */ /* * not strictly certain these styles are necessary since the modules now * exclusively output infobox-subbox or infobox, not both * just replicating the module faithfully */ .infobox-subbox { padding: 0; border: none; margin: -3px; width: auto; min-width: 100%; font-size: 100%; clear: none; float: none; background-color: transparent; } .infobox-3cols-child { margin: auto; } /* Infobox template style */ .infobox { border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: black; /* @noflip */ margin: 0.5em 0 0.5em 1em; padding: 0.2em; /* @noflip */ clear: right; font-size: 88%; line-height: 1.5em; width: 22em; } @media screen and (min-width: 720px) { .infobox { float: right } } @media screen and (max-width: 720px) { .infobox { float: none } } .infobox-header, .infobox-label, .infobox-above, .infobox-full-data, .infobox-data, .infobox-below, .infobox-subheader, .infobox-image, .infobox-navbar, /* Remove element selector when every .infobox thing is using the standard module/templates */ .infobox th, .infobox td { vertical-align: top; } .infobox-label, .infobox-data { /* @noflip */ text-align: left; } /* Remove .infobox when element selectors above are removed */ .infobox .infobox-above, .infobox .infobox-title, /* Remove element selector when every .infobox thing is using the standard module/templates */ .infobox caption { font-size: 125%; font-weight: bold; text-align: center; } .infobox-title, /* Remove element selector when every .infobox thing is using the standard module/templates */ .infobox caption { padding: 0.2em; } /* Remove .infobox when element selectors above are removed */ .infobox .infobox-header, .infobox .infobox-above, .infobox .infobox-subheader, .infobox .infobox-image, .infobox .infobox-full-data, .infobox .infobox-below { text-align: center; } /* Remove .infobox when element selectors above are removed */ .infobox .infobox-navbar { /* @noflip */ text-align: right; } nyp6m5xjf8ohjm3c6vb4w029mhwx6lb Snið:Uses TemplateStyles 10 166086 1975477 1793343 2023-04-18T22:22:16Z en>Grufo 0 Move the preview inside the documentation 1975477 wikitext text/x-wiki <includeonly>{{#invoke:Uses TemplateStyles|main}}</includeonly><noinclude>{{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> bbov914irrnmmvc6pz3scgivkjsu4ve 1975478 1969291 2026-08-15T16:50:50Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Uses_TemplateStyles]] 1969291 wikitext text/x-wiki {{ombox | image = [[File:Farm-Fresh css add.svg|32px|alt=CSS]] | plainlinks = yes | small = yes | text = Þetta snið notar [[w:en:Wikipedia:TemplateStyles|TemplateStyles]]:<ul><li>[[:{{{1}}}]]</li>{{#if:{{{2|}}}|<li>[[:{{{2}}}]]</li>}}{{#if:{{{3|}}}|<li>[[:{{{3}}}]]</li>}}{{#if:{{{4|}}}|<li>[[:{{{4}}}]]</li>}}{{#if:{{{5|}}}|<li>[[:{{{5}}}]]</li>}}{{#if:{{{6|}}}|<li>[[:{{{6}}}]]</li>}}{{#if:{{{7|}}}|<li>[[:{{{7}}}]]</li>}}{{#if:{{{8|}}}|<li>[[:{{{8}}}]]</li>}}{{#if:{{{9|}}}|<li>[[:{{{9}}}]]</li>}}{{#if:{{{10|}}}|<li>[[:{{{10}}}]]</li>}}{{#if:{{{11|}}}|<li>[[:{{{11}}}]]</li>}}</ul> }}<noinclude>{{Documentation}}</noinclude> aeui50yh2ou9rebmc1s9kklkkem9kd7 1975511 1975478 2026-08-15T17:11:01Z Bjarki S 9 1975511 wikitext text/x-wiki {{ombox | image = [[File:Farm-Fresh css add.svg|32px|alt=CSS]] | plainlinks = yes | small = yes | text = Þetta snið notar [[w:en:Wikipedia:TemplateStyles|TemplateStyles]]:<ul><li>[[:{{{1}}}]]</li>{{#if:{{{2|}}}|<li>[[:{{{2}}}]]</li>}}{{#if:{{{3|}}}|<li>[[:{{{3}}}]]</li>}}{{#if:{{{4|}}}|<li>[[:{{{4}}}]]</li>}}{{#if:{{{5|}}}|<li>[[:{{{5}}}]]</li>}}{{#if:{{{6|}}}|<li>[[:{{{6}}}]]</li>}}{{#if:{{{7|}}}|<li>[[:{{{7}}}]]</li>}}{{#if:{{{8|}}}|<li>[[:{{{8}}}]]</li>}}{{#if:{{{9|}}}|<li>[[:{{{9}}}]]</li>}}{{#if:{{{10|}}}|<li>[[:{{{10}}}]]</li>}}{{#if:{{{11|}}}|<li>[[:{{{11}}}]]</li>}}</ul> }}<noinclude>Til þess að merkja snið sem nota TemplateStyles {{Uses TemplateStyles|Module:Message box/ombox.css}}</noinclude> g90lexskxz3qc9pp8zxvk64o39luc26 Snið:Nobold 10 167094 1975375 2018-10-23T17:15:13Z en>Frietjes 0 1975375 wikitext text/x-wiki <templatestyles src="Nobold/styles.css"/><span class="nobold">{{{1}}}</span><noinclude> {{documentation}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> iaf63qvx3m2zxytvj4dw3wwalq5wusd 1975376 1791458 2026-08-15T16:50:44Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Nobold]] 1791458 wikitext text/x-wiki <span style="font-weight:normal;">{{{1}}}</span><noinclude> {{documentation}} </noinclude> sodbhwu1r6lnpuzousmujfg59iz4ql9 Module:Message box 828 167365 1975367 1932944 2025-10-19T18:19:52Z en>Izno 0 below in div mbox 1975367 Scribunto text/plain require('strict') local getArgs local yesno = require('Module:Yesno') local lang = mw.language.getContentLanguage() local CONFIG_MODULE = 'Module:Message box/configuration' local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'} -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function getTitleObject(...) -- Get the title object, passing the function through pcall -- in case we are over the expensive function count limit. local success, title = pcall(mw.title.new, ...) if success then return title end end local function union(t1, t2) -- Returns the union of two arrays. local vals = {} for i, v in ipairs(t1) do vals[v] = true end for i, v in ipairs(t2) do vals[v] = true end local ret = {} for k in pairs(vals) do table.insert(ret, k) end table.sort(ret) return ret end local function getArgNums(args, prefix) local nums = {} for k, v in pairs(args) do local num = mw.ustring.match(tostring(k), '^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -------------------------------------------------------------------------------- -- Box class definition -------------------------------------------------------------------------------- local MessageBox = {} MessageBox.__index = MessageBox function MessageBox.new(boxType, args, cfg) args = args or {} local obj = {} -- Set the title object and the namespace. obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle() -- Set the config for our box type. obj.cfg = cfg[boxType] if not obj.cfg then local ns = obj.title.namespace -- boxType is "mbox" or invalid input if args.demospace and args.demospace ~= '' then -- implement demospace parameter of mbox local demospace = string.lower(args.demospace) if DEMOSPACES[demospace] then -- use template from DEMOSPACES obj.cfg = cfg[DEMOSPACES[demospace]] elseif string.find( demospace, 'talk' ) then -- demo as a talk page obj.cfg = cfg.tmbox else -- default to ombox obj.cfg = cfg.ombox end elseif ns == 0 then obj.cfg = cfg.ambox -- main namespace elseif ns == 6 then obj.cfg = cfg.imbox -- file namespace elseif ns == 14 then obj.cfg = cfg.cmbox -- category namespace else local nsTable = mw.site.namespaces[ns] if nsTable and nsTable.isTalk then obj.cfg = cfg.tmbox -- any talk namespace else obj.cfg = cfg.ombox -- other namespaces or invalid input end end end -- Set the arguments, and remove all blank arguments except for the ones -- listed in cfg.allowBlankParams. do local newArgs = {} for k, v in pairs(args) do if v ~= '' then newArgs[k] = v end end for i, param in ipairs(obj.cfg.allowBlankParams or {}) do newArgs[param] = args[param] end obj.args = newArgs end -- Define internal data structure. obj.categories = {} obj.classes = {} -- For lazy loading of [[Module:Category handler]]. obj.hasCategories = false return setmetatable(obj, MessageBox) end function MessageBox:addCat(ns, cat, sort) if not cat then return nil end if sort then cat = string.format('[[Category:%s|%s]]', cat, sort) else cat = string.format('[[Category:%s]]', cat) end self.hasCategories = true self.categories[ns] = self.categories[ns] or {} table.insert(self.categories[ns], cat) end function MessageBox:addClass(class) if not class then return nil end table.insert(self.classes, class) end function MessageBox:setParameters() local args = self.args local cfg = self.cfg -- Get type data. self.type = args.type local typeData = cfg.types[self.type] self.invalidTypeError = cfg.showInvalidTypeError and self.type and not typeData typeData = typeData or cfg.types[cfg.default] self.typeClass = typeData.class self.typeImage = typeData.image self.typeImageNeedsLink = typeData.imageNeedsLink -- Find if the box has been wrongly substituted. self.isSubstituted = cfg.substCheck and args.subst == 'SUBST' -- Find whether we are using a small message box. self.isSmall = cfg.allowSmall and ( cfg.smallParam and args.small == cfg.smallParam or not cfg.smallParam and yesno(args.small) ) -- Set the below row. self.below = cfg.below and args.below -- Add attributes, classes and styles. self.id = args.id self.name = args.name if self.name then self:addClass('box-' .. string.gsub(self.name,' ','_')) end if yesno(args.plainlinks) ~= false then self:addClass('plainlinks') end if self.below then self:addClass('mbox-with-below') end for _, class in ipairs(cfg.classes or {}) do self:addClass(class) end if self.isSmall then self:addClass(cfg.smallClass or 'mbox-small') end self:addClass(self.typeClass) self:addClass(args.class) self.style = args.style self.attrs = args.attrs -- Set text style. self.textstyle = args.textstyle -- Set image classes. self.imageRightClass = args.imagerightclass or args.imageclass self.imageLeftClass = args.imageleftclass or args.imageclass -- Find if we are on the template page or not. This functionality is only -- used if useCollapsibleTextFields is set, or if both cfg.templateCategory -- and cfg.templateCategoryRequireName are set. self.useCollapsibleTextFields = cfg.useCollapsibleTextFields if self.useCollapsibleTextFields or cfg.templateCategory and cfg.templateCategoryRequireName then if self.name then local templateName = mw.ustring.match( self.name, '^[tT][eE][mM][pP][lL][aA][tT][eE][%s_]*:[%s_]*(.*)$' ) or self.name templateName = 'Template:' .. templateName self.templateTitle = getTitleObject(templateName) end self.isTemplatePage = self.templateTitle and mw.title.equals(self.title, self.templateTitle) end -- Process data for collapsible text fields. At the moment these are only -- used in {{ambox}}. if self.useCollapsibleTextFields then -- Get the self.issue value. if self.isSmall and args.smalltext then self.issue = args.smalltext else local sect if args.sect == '' then sect = 'This ' .. (cfg.sectionDefault or 'page') elseif type(args.sect) == 'string' then sect = 'This ' .. args.sect end local issue = args.issue issue = type(issue) == 'string' and issue ~= '' and issue or nil local text = args.text text = type(text) == 'string' and text or nil local issues = {} table.insert(issues, sect) table.insert(issues, issue) table.insert(issues, text) self.issue = table.concat(issues, ' ') end -- Get the self.talk value. local talk = args.talk -- Show talk links on the template page or template subpages if the talk -- parameter is blank. if talk == '' and self.templateTitle and ( mw.title.equals(self.templateTitle, self.title) or self.title:isSubpageOf(self.templateTitle) ) then talk = '#' elseif talk == '' then talk = nil end if talk then -- If the talk value is a talk page, make a link to that page. Else -- assume that it's a section heading, and make a link to the talk -- page of the current page with that section heading. local talkTitle = getTitleObject(talk) local talkArgIsTalkPage = true if not talkTitle or not talkTitle.isTalkPage then talkArgIsTalkPage = false talkTitle = getTitleObject( self.title.text, mw.site.namespaces[self.title.namespace].talk.id ) end if talkTitle and talkTitle.exists then local talkText if self.isSmall then local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. (talk == '#' and '' or '#') .. talk) talkText = string.format('([[%s|talk]])', talkLink) else talkText = 'Relevant discussion may be found on' if talkArgIsTalkPage then talkText = string.format( '%s [[%s|%s]].', talkText, talk, talkTitle.prefixedText ) else talkText = string.format( '%s the [[%s' .. (talk == '#' and '' or '#') .. '%s|talk page]].', talkText, talkTitle.prefixedText, talk ) end end self.talk = talkText end end -- Get other values. self.fix = args.fix ~= '' and args.fix or nil local date if args.date and args.date ~= '' then date = args.date elseif args.date == '' and self.isTemplatePage then date = lang:formatDate('F Y') end if date then self.date = string.format(" <span class='date-container'><i>(<span class='date'>%s</span>)</i></span>", date) end self.info = args.info if yesno(args.removalnotice) then self.removalNotice = cfg.removalNotice end end -- Set the non-collapsible text field. At the moment this is used by all box -- types other than ambox, and also by ambox when small=yes. if self.isSmall then self.text = args.smalltext or args.text else self.text = args.text end -- General image settings. self.imageCellDiv = not self.isSmall and cfg.imageCellDiv self.imageEmptyCell = cfg.imageEmptyCell -- Left image settings. local imageLeft = self.isSmall and args.smallimage or args.image if cfg.imageCheckBlank and imageLeft ~= 'blank' and imageLeft ~= 'none' or not cfg.imageCheckBlank and imageLeft ~= 'none' then self.imageLeft = imageLeft if not imageLeft then local imageSize = self.isSmall and (cfg.imageSmallSize or '30x30px') or '40x40px' self.imageLeft = string.format('[[File:%s|%s%s|alt=]]', self.typeImage or 'Information icon4.svg', imageSize, self.typeImageNeedsLink and "" or "|link=" ) end end -- Right image settings. local imageRight = self.isSmall and args.smallimageright or args.imageright if not (cfg.imageRightNone and imageRight == 'none') then self.imageRight = imageRight end -- set templatestyles self.base_templatestyles = cfg.templatestyles self.templatestyles = args.templatestyles end function MessageBox:setMainspaceCategories() local args = self.args local cfg = self.cfg if not cfg.allowMainspaceCategories then return nil end local nums = {} for _, prefix in ipairs{'cat', 'category', 'all'} do args[prefix .. '1'] = args[prefix] nums = union(nums, getArgNums(args, prefix)) end -- The following is roughly equivalent to the old {{Ambox/category}}. local date = args.date date = type(date) == 'string' and date local preposition = 'from' for _, num in ipairs(nums) do local mainCat = args['cat' .. tostring(num)] or args['category' .. tostring(num)] local allCat = args['all' .. tostring(num)] mainCat = type(mainCat) == 'string' and mainCat allCat = type(allCat) == 'string' and allCat if mainCat and date and date ~= '' then local catTitle = string.format('%s %s %s', mainCat, preposition, date) self:addCat(0, catTitle) catTitle = getTitleObject('Category:' .. catTitle) if not catTitle or not catTitle.exists then self:addCat(0, 'Articles with invalid date parameter in template') end elseif mainCat and (not date or date == '') then self:addCat(0, mainCat) end if allCat then self:addCat(0, allCat) end end end function MessageBox:setTemplateCategories() local args = self.args local cfg = self.cfg -- Add template categories. if cfg.templateCategory then if cfg.templateCategoryRequireName then if self.isTemplatePage then self:addCat(10, cfg.templateCategory) end elseif not self.title.isSubpage then self:addCat(10, cfg.templateCategory) end end -- Add template error categories. if cfg.templateErrorCategory then local templateErrorCategory = cfg.templateErrorCategory local templateCat, templateSort if not self.name and not self.title.isSubpage then templateCat = templateErrorCategory elseif self.isTemplatePage then local paramsToCheck = cfg.templateErrorParamsToCheck or {} local count = 0 for i, param in ipairs(paramsToCheck) do if not args[param] then count = count + 1 end end if count > 0 then templateCat = templateErrorCategory templateSort = tostring(count) end if self.categoryNums and #self.categoryNums > 0 then templateCat = templateErrorCategory templateSort = 'C' end end self:addCat(10, templateCat, templateSort) end end function MessageBox:setAllNamespaceCategories() -- Set categories for all namespaces. if self.invalidTypeError then local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText self:addCat('all', 'Wikipedia message box parameter needs fixing', allSort) end if self.isSubstituted then self:addCat('all', 'Pages with incorrectly substituted templates') end end function MessageBox:setCategories() if self.title.namespace == 0 then self:setMainspaceCategories() elseif self.title.namespace == 10 then self:setTemplateCategories() end self:setAllNamespaceCategories() end function MessageBox:renderCategories() if not self.hasCategories then -- No categories added, no need to pass them to Category handler so, -- if it was invoked, it would return the empty string. -- So we shortcut and return the empty string. return "" end -- Convert category tables to strings and pass them through -- [[Module:Category handler]]. return require('Module:Category handler')._main{ main = table.concat(self.categories[0] or {}), template = table.concat(self.categories[10] or {}), all = table.concat(self.categories.all or {}), nocat = self.args.nocat, page = self.args.page } end function MessageBox:exportDiv() local root = mw.html.create() -- Add the subst check error. if self.isSubstituted and self.name then root:tag('b') :addClass('error') :wikitext(string.format( 'Template <code>%s[[Template:%s|%s]]%s</code> has been incorrectly substituted.', mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') )) end local frame = mw.getCurrentFrame() root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.base_templatestyles }, }) -- Add support for a single custom templatestyles sheet. Undocumented as -- need should be limited and many templates using mbox are substed; we -- don't want to spread templatestyles sheets around to arbitrary places if self.templatestyles then root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.templatestyles }, }) end -- Create the box. local mbox = root:tag('div') mbox:attr('id', self.id or nil) for i, class in ipairs(self.classes or {}) do mbox:addClass(class or nil) end mbox :cssText(self.style or nil) if self.attrs then mbox:attr(self.attrs) end local flex_container if self.below then -- we need to wrap the flex components (`image(right)` and `text`) in their -- own container div to support the `below` parameter flex_container = mw.html.create('div') flex_container:addClass('mbox-flex') else -- the mbox itself is the parent, so we need no HTML flex_container flex_container = mw.html.create() end -- Add the left-hand image. if self.imageLeft then local imageLeftCell = flex_container:tag('div'):addClass('mbox-image') imageLeftCell :addClass(self.imageLeftClass) :wikitext(self.imageLeft or nil) end -- Add the text. local textCell = flex_container:tag('div'):addClass('mbox-text') if self.useCollapsibleTextFields then -- The message box uses advanced text parameters that allow things to be -- collapsible. At the moment, only ambox uses this. textCell:cssText(self.textstyle or nil) local textCellDiv = textCell:tag('div') textCellDiv :addClass('mbox-text-span') :wikitext(self.issue or nil) if (self.talk or self.fix) then textCellDiv:tag('span') :addClass('hide-when-compact') :wikitext(self.talk and (' ' .. self.talk) or nil) :wikitext(self.fix and (' ' .. self.fix) or nil) end textCellDiv:wikitext(self.date and (' ' .. self.date) or nil) if self.info and not self.isSmall then textCellDiv :tag('span') :addClass('hide-when-compact') :wikitext(self.info and (' ' .. self.info) or nil) end if self.removalNotice then textCellDiv:tag('span') :addClass('hide-when-compact') :tag('i') :wikitext(string.format(" (%s)", self.removalNotice)) end else -- Default text formatting - anything goes. textCell :cssText(self.textstyle or nil) :wikitext(self.text or nil) end -- Add the right-hand image. if self.imageRight then local imageRightCell = flex_container:tag('div'):addClass('mbox-imageright') imageRightCell :addClass(self.imageRightClass) :wikitext(self.imageRight or nil) end mbox:node(flex_container) -- Add the below row. if self.below then mbox:tag('div') :addClass('mbox-text mbox-below') :cssText(self.textstyle or nil) :wikitext(self.below or nil) end -- Add error message for invalid type parameters. if self.invalidTypeError then root:tag('div') :addClass('mbox-invalid-type') :wikitext(string.format( 'This message box is using an invalid "type=%s" parameter and needs fixing.', self.type or '' )) end -- Add categories. root:wikitext(self:renderCategories() or nil) return tostring(root) end function MessageBox:export() local root = mw.html.create() -- Add the subst check error. if self.isSubstituted and self.name then root:tag('b') :addClass('error') :wikitext(string.format( 'Template <code>%s[[Template:%s|%s]]%s</code> has been incorrectly substituted.', mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') )) end local frame = mw.getCurrentFrame() root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.base_templatestyles }, }) -- Add support for a single custom templatestyles sheet. Undocumented as -- need should be limited and many templates using mbox are substed; we -- don't want to spread templatestyles sheets around to arbitrary places if self.templatestyles then root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.templatestyles }, }) end -- Create the box table. local boxTable = root:tag('table') boxTable:attr('id', self.id or nil) for i, class in ipairs(self.classes or {}) do boxTable:addClass(class or nil) end boxTable :cssText(self.style or nil) :attr('role', 'presentation') if self.attrs then boxTable:attr(self.attrs) end -- Add the left-hand image. local row = boxTable:tag('tr') if self.imageLeft then local imageLeftCell = row:tag('td'):addClass('mbox-image') if self.imageCellDiv then -- If we are using a div, redefine imageLeftCell so that the image -- is inside it. Divs use style="width: 52px;", which limits the -- image width to 52px. If any images in a div are wider than that, -- they may overlap with the text or cause other display problems. imageLeftCell = imageLeftCell:tag('div'):addClass('mbox-image-div') end imageLeftCell :addClass(self.imageLeftClass) :wikitext(self.imageLeft or nil) elseif self.imageEmptyCell then -- Some message boxes define an empty cell if no image is specified, and -- some don't. The old template code in templates where empty cells are -- specified gives the following hint: "No image. Cell with some width -- or padding necessary for text cell to have 100% width." row:tag('td') :addClass('mbox-empty-cell') end -- Add the text. local textCell = row:tag('td'):addClass('mbox-text') if self.useCollapsibleTextFields then -- The message box uses advanced text parameters that allow things to be -- collapsible. At the moment, only ambox uses this. textCell:cssText(self.textstyle or nil) local textCellDiv = textCell:tag('div') textCellDiv :addClass('mbox-text-span') :wikitext(self.issue or nil) if (self.talk or self.fix) then textCellDiv:tag('span') :addClass('hide-when-compact') :wikitext(self.talk and (' ' .. self.talk) or nil) :wikitext(self.fix and (' ' .. self.fix) or nil) end textCellDiv:wikitext(self.date and (' ' .. self.date) or nil) if self.info and not self.isSmall then textCellDiv :tag('span') :addClass('hide-when-compact') :wikitext(self.info and (' ' .. self.info) or nil) end if self.removalNotice then textCellDiv:tag('span') :addClass('hide-when-compact') :tag('i') :wikitext(string.format(" (%s)", self.removalNotice)) end else -- Default text formatting - anything goes. textCell :cssText(self.textstyle or nil) :wikitext(self.text or nil) end -- Add the right-hand image. if self.imageRight then local imageRightCell = row:tag('td'):addClass('mbox-imageright') if self.imageCellDiv then -- If we are using a div, redefine imageRightCell so that the image -- is inside it. imageRightCell = imageRightCell:tag('div'):addClass('mbox-image-div') end imageRightCell :addClass(self.imageRightClass) :wikitext(self.imageRight or nil) end -- Add the below row. if self.below then boxTable:tag('tr') :tag('td') :attr('colspan', self.imageRight and '3' or '2') :addClass('mbox-text') :cssText(self.textstyle or nil) :wikitext(self.below or nil) end -- Add error message for invalid type parameters. if self.invalidTypeError then root:tag('div') :addClass('mbox-invalid-type') :wikitext(string.format( 'This message box is using an invalid "type=%s" parameter and needs fixing.', self.type or '' )) end -- Add categories. root:wikitext(self:renderCategories() or nil) return tostring(root) end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p, mt = {}, {} function p._exportClasses() -- For testing. return { MessageBox = MessageBox } end function p.main(boxType, args, cfgTables) local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE)) box:setParameters() box:setCategories() -- DIV MIGRATION CONDITIONAL if box.cfg.div_structure then return box:exportDiv() end -- END DIV MIGRATION CONDITIONAL return box:export() end function mt.__index(t, k) return function (frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end return t.main(k, getArgs(frame, {trim = false, removeBlanks = false})) end end return setmetatable(p, mt) ocboyo877qnpqum2b9fyiquh72vukqa 1975368 1970198 2026-08-15T16:50:44Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Message_box]] 1970198 Scribunto text/plain require('strict') local getArgs local yesno = require('Module:Yesno') local lang = mw.language.getContentLanguage() local CONFIG_MODULE = 'Module:Message box/configuration' local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'} -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function getTitleObject(...) -- Get the title object, passing the function through pcall -- in case we are over the expensive function count limit. local success, title = pcall(mw.title.new, ...) if success then return title end end local function union(t1, t2) -- Returns the union of two arrays. local vals = {} for i, v in ipairs(t1) do vals[v] = true end for i, v in ipairs(t2) do vals[v] = true end local ret = {} for k in pairs(vals) do table.insert(ret, k) end table.sort(ret) return ret end local function getArgNums(args, prefix) local nums = {} for k, v in pairs(args) do local num = mw.ustring.match(tostring(k), '^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -------------------------------------------------------------------------------- -- Box class definition -------------------------------------------------------------------------------- local MessageBox = {} MessageBox.__index = MessageBox function MessageBox.new(boxType, args, cfg) args = args or {} local obj = {} -- Set the title object and the namespace. obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle() -- Set the config for our box type. obj.cfg = cfg[boxType] if not obj.cfg then local ns = obj.title.namespace -- boxType is "mbox" or invalid input if args.demospace and args.demospace ~= '' then -- implement demospace parameter of mbox local demospace = string.lower(args.demospace) if DEMOSPACES[demospace] then -- use template from DEMOSPACES obj.cfg = cfg[DEMOSPACES[demospace]] elseif string.find( demospace, 'talk' ) then -- demo as a talk page obj.cfg = cfg.tmbox else -- default to ombox obj.cfg = cfg.ombox end elseif ns == 0 then obj.cfg = cfg.ambox -- main namespace elseif ns == 6 then obj.cfg = cfg.imbox -- file namespace elseif ns == 14 then obj.cfg = cfg.cmbox -- category namespace else local nsTable = mw.site.namespaces[ns] if nsTable and nsTable.isTalk then obj.cfg = cfg.tmbox -- any talk namespace else obj.cfg = cfg.ombox -- other namespaces or invalid input end end end -- Set the arguments, and remove all blank arguments except for the ones -- listed in cfg.allowBlankParams. do local newArgs = {} for k, v in pairs(args) do if v ~= '' then newArgs[k] = v end end for i, param in ipairs(obj.cfg.allowBlankParams or {}) do newArgs[param] = args[param] end obj.args = newArgs end -- Define internal data structure. obj.categories = {} obj.classes = {} -- For lazy loading of [[Module:Category handler]]. obj.hasCategories = false return setmetatable(obj, MessageBox) end function MessageBox:addCat(ns, cat, sort) if not cat then return nil end if sort then cat = string.format('[[Flokkur:%s|%s]]', cat, sort) else cat = string.format('[[Flokkur:%s]]', cat) end self.hasCategories = true self.categories[ns] = self.categories[ns] or {} table.insert(self.categories[ns], cat) end function MessageBox:addClass(class) if not class then return nil end table.insert(self.classes, class) end function MessageBox:setParameters() local args = self.args local cfg = self.cfg -- Get type data. self.type = args.type local typeData = cfg.types[self.type] self.invalidTypeError = cfg.showInvalidTypeError and self.type and not typeData typeData = typeData or cfg.types[cfg.default] self.typeClass = typeData.class self.typeImage = typeData.image self.typeImageNeedsLink = typeData.imageNeedsLink -- Find if the box has been wrongly substituted. self.isSubstituted = cfg.substCheck and args.subst == 'SUBST' -- Find whether we are using a small message box. self.isSmall = cfg.allowSmall and ( cfg.smallParam and args.small == cfg.smallParam or not cfg.smallParam and yesno(args.small) ) -- Add attributes, classes and styles. self.id = args.id self.name = args.name if self.name then self:addClass('box-' .. string.gsub(self.name,' ','_')) end if yesno(args.plainlinks) ~= false then self:addClass('plainlinks') end for _, class in ipairs(cfg.classes or {}) do self:addClass(class) end if self.isSmall then self:addClass(cfg.smallClass or 'mbox-small') end self:addClass(self.typeClass) self:addClass(args.class) self.style = args.style self.attrs = args.attrs -- Set text style. self.textstyle = args.textstyle -- Set image classes. self.imageRightClass = args.imagerightclass or args.imageclass self.imageLeftClass = args.imageleftclass or args.imageclass -- Find if we are on the template page or not. This functionality is only -- used if useCollapsibleTextFields is set, or if both cfg.templateCategory -- and cfg.templateCategoryRequireName are set. self.useCollapsibleTextFields = cfg.useCollapsibleTextFields if self.useCollapsibleTextFields or cfg.templateCategory and cfg.templateCategoryRequireName then if self.name then local templateName = mw.ustring.match( self.name, '^[tT][eE][mM][pP][lL][aA][tT][eE][%s_]*:[%s_]*(.*)$' ) or self.name templateName = 'Snið:' .. templateName self.templateTitle = getTitleObject(templateName) end self.isTemplatePage = self.templateTitle and mw.title.equals(self.title, self.templateTitle) end -- Process data for collapsible text fields. At the moment these are only -- used in {{ambox}}. if self.useCollapsibleTextFields then -- Get the self.issue value. if self.isSmall and args.smalltext then self.issue = args.smalltext else local sect if args.sect == '' then sect = 'This ' .. (cfg.sectionDefault or 'page') elseif type(args.sect) == 'string' then sect = 'This ' .. args.sect end local issue = args.issue issue = type(issue) == 'string' and issue ~= '' and issue or nil local text = args.text text = type(text) == 'string' and text or nil local issues = {} table.insert(issues, sect) table.insert(issues, issue) table.insert(issues, text) self.issue = table.concat(issues, ' ') end -- Get the self.talk value. local talk = args.talk -- Show talk links on the template page or template subpages if the talk -- parameter is blank. if talk == '' and self.templateTitle and ( mw.title.equals(self.templateTitle, self.title) or self.title:isSubpageOf(self.templateTitle) ) then talk = '#' elseif talk == '' then talk = nil end if talk then -- If the talk value is a talk page, make a link to that page. Else -- assume that it's a section heading, and make a link to the talk -- page of the current page with that section heading. local talkTitle = getTitleObject(talk) local talkArgIsTalkPage = true if not talkTitle or not talkTitle.isTalkPage then talkArgIsTalkPage = false talkTitle = getTitleObject( self.title.text, mw.site.namespaces[self.title.namespace].talk.id ) end if talkTitle and talkTitle.exists then local talkText if self.isSmall then local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. (talk == '#' and '' or '#') .. talk) talkText = string.format('([[%s|talk]])', talkLink) else talkText = 'Viðeigandi umræðu er hægt að finna í' if talkArgIsTalkPage then talkText = string.format( '%s [[%s|%s]].', talkText, talk, talkTitle.prefixedText ) else talkText = string.format( '%s the [[%s' .. (talk == '#' and '' or '#') .. '%s|spjall]].', talkText, talkTitle.prefixedText, talk ) end end self.talk = talkText end end -- Get other values. self.fix = args.fix ~= '' and args.fix or nil local date if args.date and args.date ~= '' then date = args.date elseif args.date == '' and self.isTemplatePage then date = lang:formatDate('F Y') end if date then self.date = string.format(" <span class='date-container'><i>(<span class='date'>%s</span>)</i></span>", date) end self.info = args.info if yesno(args.removalnotice) then self.removalNotice = cfg.removalNotice end end -- Set the non-collapsible text field. At the moment this is used by all box -- types other than ambox, and also by ambox when small=yes. if self.isSmall then self.text = args.smalltext or args.text else self.text = args.text end -- Set the below row. self.below = cfg.below and args.below -- General image settings. self.imageCellDiv = not self.isSmall and cfg.imageCellDiv self.imageEmptyCell = cfg.imageEmptyCell -- Left image settings. local imageLeft = self.isSmall and args.smallimage or args.image if cfg.imageCheckBlank and imageLeft ~= 'blank' and imageLeft ~= 'none' or not cfg.imageCheckBlank and imageLeft ~= 'none' then self.imageLeft = imageLeft if not imageLeft then local imageSize = self.isSmall and (cfg.imageSmallSize or '30x30px') or '40x40px' self.imageLeft = string.format('[[Mynd:%s|%s%s|alt=]]', self.typeImage or 'Information icon4.svg', imageSize, self.typeImageNeedsLink and "" or "|link=" ) end end -- Right image settings. local imageRight = self.isSmall and args.smallimageright or args.imageright if not (cfg.imageRightNone and imageRight == 'none') then self.imageRight = imageRight end -- set templatestyles self.base_templatestyles = cfg.templatestyles self.templatestyles = args.templatestyles end function MessageBox:setMainspaceCategories() local args = self.args local cfg = self.cfg if not cfg.allowMainspaceCategories then return nil end local nums = {} for _, prefix in ipairs{'cat', 'category', 'all'} do args[prefix .. '1'] = args[prefix] nums = union(nums, getArgNums(args, prefix)) end -- The following is roughly equivalent to the old {{Ambox/category}}. local date = args.date date = type(date) == 'string' and date local preposition = 'from' for _, num in ipairs(nums) do local mainCat = args['cat' .. tostring(num)] or args['category' .. tostring(num)] local allCat = args['all' .. tostring(num)] mainCat = type(mainCat) == 'string' and mainCat allCat = type(allCat) == 'string' and allCat if mainCat and date and date ~= '' then -- Íslensk breyting: höfum ekki flokka eftir dagsetningum. -- local catTitle = string.format('%s %s %s', mainCat, preposition, date) -- self:addCat(0, catTitle) self:addCat(0, mainCat) -- catTitle = getTitleObject('Flokkur:' .. catTitle) -- if not catTitle or not catTitle.exists then if not mainCat then self:addCat(0, 'Greinar með ógilda dags. færibreytu í sniði') end elseif mainCat and (not date or date == '') then self:addCat(0, mainCat) end if allCat then self:addCat(0, allCat) end end end function MessageBox:setTemplateCategories() local args = self.args local cfg = self.cfg -- Add template categories. if cfg.templateCategory then if cfg.templateCategoryRequireName then if self.isTemplatePage then self:addCat(10, cfg.templateCategory) end elseif not self.title.isSubpage then self:addCat(10, cfg.templateCategory) end end -- Add template error categories. if cfg.templateErrorCategory then local templateErrorCategory = cfg.templateErrorCategory local templateCat, templateSort if not self.name and not self.title.isSubpage then templateCat = templateErrorCategory elseif self.isTemplatePage then local paramsToCheck = cfg.templateErrorParamsToCheck or {} local count = 0 for i, param in ipairs(paramsToCheck) do if not args[param] then count = count + 1 end end if count > 0 then templateCat = templateErrorCategory templateSort = tostring(count) end if self.categoryNums and #self.categoryNums > 0 then templateCat = templateErrorCategory templateSort = 'C' end end self:addCat(10, templateCat, templateSort) end end function MessageBox:setAllNamespaceCategories() -- Set categories for all namespaces. if self.invalidTypeError then local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText self:addCat('all', 'Wikipedia skilaboðasnið-breytu þarf að laga', allSort) end if self.isSubstituted then self:addCat('all', 'Síður sem hafa ekki rétt uppsetta staðgengla') end end function MessageBox:setCategories() if self.title.namespace == 0 then self:setMainspaceCategories() elseif self.title.namespace == 10 then self:setTemplateCategories() end self:setAllNamespaceCategories() end function MessageBox:renderCategories() if not self.hasCategories then -- No categories added, no need to pass them to Category handler so, -- if it was invoked, it would return the empty string. -- So we shortcut and return the empty string. return "" end -- Convert category tables to strings and pass them through -- [[Module:Category handler]]. return require('Module:Category handler')._main{ main = table.concat(self.categories[0] or {}), template = table.concat(self.categories[10] or {}), all = table.concat(self.categories.all or {}), nocat = self.args.nocat, page = self.args.page } end function MessageBox:exportDiv() local root = mw.html.create() -- Add the subst check error. if self.isSubstituted and self.name then root:tag('b') :addClass('error') :wikitext(string.format( 'Sniðið <code>%s[[Snið:%s|%s]]%s</code> hefur ekki sett upp staðgengil á réttan hátt.', mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') )) end local frame = mw.getCurrentFrame() root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.base_templatestyles }, }) -- Add support for a single custom templatestyles sheet. Undocumented as -- need should be limited and many templates using mbox are substed; we -- don't want to spread templatestyles sheets around to arbitrary places if self.templatestyles then root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.templatestyles }, }) end -- Create the box. local mbox = root:tag('div') mbox:attr('id', self.id or nil) for i, class in ipairs(self.classes or {}) do mbox:addClass(class or nil) end mbox :cssText(self.style or nil) if self.attrs then mbox:attr(self.attrs) end -- Add the left-hand image. if self.imageLeft then local imageLeftCell = mbox:tag('div'):addClass('mbox-image') imageLeftCell :addClass(self.imageLeftClass) :wikitext(self.imageLeft or nil) end -- Add the text. local textCell = mbox:tag('div'):addClass('mbox-text') if self.useCollapsibleTextFields then -- The message box uses advanced text parameters that allow things to be -- collapsible. At the moment, only ambox uses this. textCell:cssText(self.textstyle or nil) local textCellDiv = textCell:tag('div') textCellDiv :addClass('mbox-text-span') :wikitext(self.issue or nil) if (self.talk or self.fix) then textCellDiv:tag('span') :addClass('hide-when-compact') :wikitext(self.talk and (' ' .. self.talk) or nil) :wikitext(self.fix and (' ' .. self.fix) or nil) end textCellDiv:wikitext(self.date and (' ' .. self.date) or nil) if self.info and not self.isSmall then textCellDiv :tag('span') :addClass('hide-when-compact') :wikitext(self.info and (' ' .. self.info) or nil) end if self.removalNotice then textCellDiv:tag('span') :addClass('hide-when-compact') :tag('i') :wikitext(string.format(" (%s)", self.removalNotice)) end else -- Default text formatting - anything goes. textCell :cssText(self.textstyle or nil) :wikitext(self.text or nil) end -- Add the right-hand image. if self.imageRight then local imageRightCell = mbox:tag('div'):addClass('mbox-imageright') imageRightCell :addClass(self.imageRightClass) :wikitext(self.imageRight or nil) end -- Add the below row. if self.below then mbox:tag('div') :addClass('mbox-text') :cssText(self.textstyle or nil) :wikitext(self.below or nil) end -- Add error message for invalid type parameters. if self.invalidTypeError then root:tag('div') :addClass('mbox-invalid-type') :wikitext(string.format( 'Þetta skilaboðasnið er að nota ógilt gildi í "type=%s" færibreytuna og þörf er á að lagfæra það.', self.type or '' )) end -- Add categories. root:wikitext(self:renderCategories() or nil) return tostring(root) end function MessageBox:export() local root = mw.html.create() -- Add the subst check error. if self.isSubstituted and self.name then root:tag('b') :addClass('error') :wikitext(string.format( 'Sniðið <code>%s[[Snið:%s|%s]]%s</code> hefur ekki sett upp staðgengil á réttan hátt.', mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') )) end local frame = mw.getCurrentFrame() root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.base_templatestyles }, }) -- Add support for a single custom templatestyles sheet. Undocumented as -- need should be limited and many templates using mbox are substed; we -- don't want to spread templatestyles sheets around to arbitrary places if self.templatestyles then root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = self.templatestyles }, }) end -- Create the box table. local boxTable = root:tag('table') boxTable:attr('id', self.id or nil) for i, class in ipairs(self.classes or {}) do boxTable:addClass(class or nil) end boxTable :cssText(self.style or nil) :attr('role', 'presentation') if self.attrs then boxTable:attr(self.attrs) end -- Add the left-hand image. local row = boxTable:tag('tr') if self.imageLeft then local imageLeftCell = row:tag('td'):addClass('mbox-image') if self.imageCellDiv then -- If we are using a div, redefine imageLeftCell so that the image -- is inside it. Divs use style="width: 52px;", which limits the -- image width to 52px. If any images in a div are wider than that, -- they may overlap with the text or cause other display problems. imageLeftCell = imageLeftCell:tag('div'):addClass('mbox-image-div') end imageLeftCell :addClass(self.imageLeftClass) :wikitext(self.imageLeft or nil) elseif self.imageEmptyCell then -- Some message boxes define an empty cell if no image is specified, and -- some don't. The old template code in templates where empty cells are -- specified gives the following hint: "No image. Cell with some width -- or padding necessary for text cell to have 100% width." row:tag('td') :addClass('mbox-empty-cell') end -- Add the text. local textCell = row:tag('td'):addClass('mbox-text') if self.useCollapsibleTextFields then -- The message box uses advanced text parameters that allow things to be -- collapsible. At the moment, only ambox uses this. textCell:cssText(self.textstyle or nil) local textCellDiv = textCell:tag('div') textCellDiv :addClass('mbox-text-span') :wikitext(self.issue or nil) if (self.talk or self.fix) then textCellDiv:tag('span') :addClass('hide-when-compact') :wikitext(self.talk and (' ' .. self.talk) or nil) :wikitext(self.fix and (' ' .. self.fix) or nil) end textCellDiv:wikitext(self.date and (' ' .. self.date) or nil) if self.info and not self.isSmall then textCellDiv :tag('span') :addClass('hide-when-compact') :wikitext(self.info and (' ' .. self.info) or nil) end if self.removalNotice then textCellDiv:tag('span') :addClass('hide-when-compact') :tag('i') :wikitext(string.format(" (%s)", self.removalNotice)) end else -- Default text formatting - anything goes. textCell :cssText(self.textstyle or nil) :wikitext(self.text or nil) end -- Add the right-hand image. if self.imageRight then local imageRightCell = row:tag('td'):addClass('mbox-imageright') if self.imageCellDiv then -- If we are using a div, redefine imageRightCell so that the image -- is inside it. imageRightCell = imageRightCell:tag('div'):addClass('mbox-image-div') end imageRightCell :addClass(self.imageRightClass) :wikitext(self.imageRight or nil) end -- Add the below row. if self.below then boxTable:tag('tr') :tag('td') :attr('colspan', self.imageRight and '3' or '2') :addClass('mbox-text') :cssText(self.textstyle or nil) :wikitext(self.below or nil) end -- Add error message for invalid type parameters. if self.invalidTypeError then root:tag('div') :addClass('mbox-invalid-type') :wikitext(string.format( 'Þetta skilaboðasnið er að nota ógilt gildi í "type=%s" færibreytuna og þörf er á að lagfæra það.', self.type or '' )) end -- Add categories. root:wikitext(self:renderCategories() or nil) return tostring(root) end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p, mt = {}, {} function p._exportClasses() -- For testing. return { MessageBox = MessageBox } end function p.main(boxType, args, cfgTables) local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE)) box:setParameters() box:setCategories() -- DIV MIGRATION CONDITIONAL if box.cfg.div_structure then return box:exportDiv() end -- END DIV MIGRATION CONDITIONAL return box:export() end function mt.__index(t, k) return function (frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end return t.main(k, getArgs(frame, {trim = false, removeBlanks = false})) end end return setmetatable(p, mt) 3s8pwolw2a0o6jtbzqfe0s6u0c9g1g5 Module:Message box/configuration 828 167366 1975369 1932945 2025-10-19T18:19:49Z en>Izno 0 div imbox 1975369 Scribunto text/plain -------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for [[Module:Message box]]. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class = 'ambox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ambox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ambox-content', image = 'Ambox important.svg' }, style = { class = 'ambox-style', image = 'Edit-clear.svg' }, move = { class = 'ambox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ambox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ambox-notice', image = 'Information icon4.svg' } }, default = 'notice', allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'}, allowSmall = true, smallParam = 'left', smallClass = 'mbox-small-left', substCheck = true, classes = {'metadata', 'ambox'}, imageEmptyCell = true, imageCheckBlank = true, imageSmallSize = '20x20px', imageCellDiv = true, useCollapsibleTextFields = true, imageRightNone = true, sectionDefault = 'article', allowMainspaceCategories = true, templateCategory = 'Article message templates', templateCategoryRequireName = true, templateErrorCategory = 'Article message templates with missing parameters', templateErrorParamsToCheck = {'issue', 'fix', 'subst'}, removalNotice = '<small>[[Help:Maintenance template removal|Learn how and when to remove this message]]</small>', templatestyles = 'Module:Message box/ambox.css' }, cmbox = { types = { speedy = { class = 'cmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'cmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'cmbox-content', image = 'Ambox important.svg' }, style = { class = 'cmbox-style', image = 'Edit-clear.svg' }, move = { class = 'cmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'cmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'cmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'cmbox'}, imageEmptyCell = true, templatestyles = 'Module:Message box/cmbox.css', div_structure = true, }, fmbox = { types = { warning = { class = 'fmbox-warning', image = 'Ambox warning pn.svg' }, editnotice = { class = 'fmbox-editnotice', image = 'Information icon4.svg' }, system = { class = 'fmbox-system', image = 'Information icon4.svg' } }, default = 'system', showInvalidTypeError = true, classes = {'fmbox'}, imageEmptyCell = false, imageRightNone = false, templatestyles = 'Module:Message box/fmbox.css', div_structure = true, }, imbox = { types = { speedy = { class = 'imbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'imbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'imbox-content', image = 'Ambox important.svg' }, style = { class = 'imbox-style', image = 'Edit-clear.svg' }, move = { class = 'imbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'imbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, license = { class = 'imbox-license licensetpl', image = 'Imbox-license.svg' }, ["license-related"] = { class = 'imbox-license', image = 'Imbox-license.svg' }, featured = { class = 'imbox-featured', image = 'Cscr-featured.svg', imageNeedsLink = true }, notice = { class = 'imbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'imbox'}, imageEmptyCell = true, below = true, templateCategory = 'File message boxes', templatestyles = 'Module:Message box/imbox.css', div_structure = true, }, ombox = { types = { speedy = { class = 'ombox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ombox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ombox-content', image = 'Ambox important.svg' }, style = { class = 'ombox-style', image = 'Edit-clear.svg' }, move = { class = 'ombox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ombox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ombox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'ombox'}, allowSmall = true, imageEmptyCell = true, imageRightNone = true, templatestyles = 'Module:Message box/ombox.css' }, tmbox = { types = { speedy = { class = 'tmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'tmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'tmbox-content', image = 'Ambox important.svg' }, style = { class = 'tmbox-style', image = 'Edit-clear.svg' }, move = { class = 'tmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'tmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'tmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'tmbox'}, allowSmall = true, imageRightNone = true, imageEmptyCell = true, templateCategory = 'Talk message boxes', templatestyles = 'Module:Message box/tmbox.css' } } p36hrbxjy99m7clj64lhlint2en3bo0 1975370 1970537 2026-08-15T16:50:44Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Message_box/configuration]] 1970537 Scribunto text/plain -------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for [[Module:Message box]]. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class = 'ambox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ambox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ambox-content', image = 'Ambox important.svg' }, style = { class = 'ambox-style', image = 'Edit-clear.svg' }, move = { class = 'ambox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ambox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ambox-notice', image = 'Information icon4.svg' }, ['alvarlegt'] = { class = 'ambox-delete', image = 'Dialog-error-round.svg' }, ['efni'] = { class = 'ambox-content', image = 'Emblem-contradict.svg' }, ['stíll'] = { class = 'ambox-style', image = 'Broom icon.svg' }, ['sameina'] = { class = 'ambox-move', image = 'Merge-split-transwiki default.svg' }, ['athuga'] = { class = 'ambox-notice', image = 'Info_talk.png' }, ['stærð'] = { class = 'ambox-growth', image = 'N write green black.svg' }, ['höfundaréttur'] = { class = 'ambox-delete', image = 'Copyright red.svg' }, ['heimildir'] = { class = 'ambox-content', image = 'NoFonti.svg' }, ['hlutleysi'] = { class = 'ambox-content', image = 'Emblem-scales.svg' }, ['alþjóðavæða'] = { class = 'ambox-content', image = 'Gnome-globe.svg' }, ['læst'] = { class = 'ambox-protection', image = 'Padlock.svg' }, ['núna'] = { class = 'ambox-notice', image = 'Ambox current red.svg' }, ['uppfæra'] = { class = 'ambox-notice', image = 'Gnome globe current event.svg' } }, default = 'notice', allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'}, allowSmall = true, smallParam = 'left', smallClass = 'mbox-small-left', substCheck = true, classes = {'metadata', 'ambox'}, imageEmptyCell = true, imageCheckBlank = true, imageSmallSize = '20x20px', imageCellDiv = true, useCollapsibleTextFields = true, imageRightNone = true, sectionDefault = 'article', allowMainspaceCategories = true, templateCategory = 'Skilaboðasnið fyrir greinar', templateCategoryRequireName = true, templateErrorCategory = 'Skilaboðasnið sem vantar færibreytur', templateErrorParamsToCheck = {'issue', 'fix', 'subst'}, removalNotice = '<small>[[Hjálp:Fjarlægja viðhaldssnið|Lærið hvenær og hvernig á að fjarlægja svona skilaboð]]</small>', templatestyles = 'Module:Message box/ambox.css' }, cmbox = { types = { speedy = { class = 'cmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'cmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'cmbox-content', image = 'Ambox important.svg' }, style = { class = 'cmbox-style', image = 'Edit-clear.svg' }, move = { class = 'cmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'cmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'cmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'cmbox'}, imageEmptyCell = true, templatestyles = 'Module:Message box/cmbox.css', templateCategory = 'Skilaboðasnið fyrir flokka', div_structure = false, }, fmbox = { types = { warning = { class = 'fmbox-warning', image = 'Ambox warning pn.svg' }, editnotice = { class = 'fmbox-editnotice', image = 'Information icon4.svg' }, system = { class = 'fmbox-system', image = 'Information icon4.svg' } }, default = 'system', showInvalidTypeError = true, classes = {'fmbox'}, imageEmptyCell = false, imageRightNone = false, templatestyles = 'Module:Message box/fmbox.css', div_structure = false, }, imbox = { types = { speedy = { class = 'imbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'imbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'imbox-content', image = 'Ambox important.svg' }, style = { class = 'imbox-style', image = 'Edit-clear.svg' }, move = { class = 'imbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'imbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, license = { class = 'imbox-license licensetpl', image = 'Imbox-license.svg' }, ["license-related"] = { class = 'imbox-license', image = 'Imbox-license.svg' }, featured = { class = 'imbox-featured', image = 'Cscr-featured.svg', imageNeedsLink = true }, notice = { class = 'imbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'imbox'}, imageEmptyCell = true, below = true, templateCategory = 'Skilaboðasnið fyrir myndir', templatestyles = 'Module:Message box/imbox.css' }, ombox = { types = { speedy = { class = 'ombox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ombox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ombox-content', image = 'Ambox important.svg' }, style = { class = 'ombox-style', image = 'Edit-clear.svg' }, move = { class = 'ombox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ombox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ombox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'ombox'}, allowSmall = true, imageEmptyCell = true, imageRightNone = true, templatestyles = 'Module:Message box/ombox.css', templateCategory = 'Skilaboðasnið fyrir annað' }, tmbox = { types = { speedy = { class = 'tmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'tmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'tmbox-content', image = 'Ambox important.svg' }, style = { class = 'tmbox-style', image = 'Edit-clear.svg' }, move = { class = 'tmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'tmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'tmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'tmbox'}, allowSmall = true, imageRightNone = true, imageEmptyCell = true, templateCategory = 'Skilaboðasnið fyrir umræður', --tbox templatestyles = 'Module:Message box/tmbox.css' } } pyt9pbhevy3phz2nobar4cx7ga7c34v Module:Category handler/blacklist 828 167374 1975393 2020-04-18T08:48:05Z en>Jo-Jo Eumerus 0 Per category talk page 1975393 Scribunto text/plain -- This module contains the blacklist used by [[Module:Category handler]]. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested. return { '^Main Page$', -- don't categorise the main page. -- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wikipedia:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]', -- The userbox "template" space. '^User talk:UBX%f[/\0]', -- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipedia:Template index/.*$', -- Don't categorise archives. '/[aA]rchive', "^Wikipedia:Administrators' noticeboard/IncidentArchive%d+$", } fsv1drcay6t25e91hzhqxtyp7pckbpx 1975394 1750862 2026-08-15T16:50:45Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Category_handler/blacklist]] 1750862 Scribunto text/plain -- This module contains the blacklist used by [[Module:Category handler]]. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested. return { '^Forsíða$', -- don't categorise the main page. -- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. -- '^Wikipedia:Cascade%-protected items%f[/\0]', -- '^User:UBX%f[/\0]', -- The userbox "template" space. -- '^User talk:UBX%f[/\0]', -- Don't categorise subpages of these pages, but allow -- categorisation of the base page. -- '^Wikipedia:Template index/.*$', -- Don't categorise archives. -- '/[aA]rchive', -- "^Wikipedia:Administrators' noticeboard/IncidentArchive%d+$", } nvgnelk3x41ny2o3qd4mldwiz6zqisz Module:Message box/ombox.css 828 167613 1975485 1870420 2025-08-29T06:07:09Z en>Izno 0 english 1975485 sanitized-css text/css /* {{pp|small=y}} */ .ombox { margin: 4px 0; border-collapse: collapse; border: 1px solid #a2a9b1; /* Default "notice" gray */ background-color: var(--background-color-neutral-subtle, #f8f9fa); box-sizing: border-box; color: var(--color-base, #202122); } /* For the "small=yes" option. */ .ombox.mbox-small { font-size: 88%; line-height: 1.25em; } .ombox-speedy { border: 2px solid #b32424; /* Red */ background-color: #fee7e6; /* Pink */ } .ombox-delete { border: 2px solid #b32424; /* Red */ } .ombox-content { border: 1px solid #f28500; /* Orange */ } .ombox-style { border: 1px solid #fc3; /* Yellow */ } .ombox-move { border: 1px solid #9932cc; /* Purple */ } .ombox-protection { border: 2px solid #a2a9b1; /* Gray-gold */ } .ombox .mbox-text { border: none; /* @noflip */ padding: 0.25em 0.9em; width: 100%; } .ombox .mbox-image { border: none; /* @noflip */ padding: 2px 0 2px 0.9em; text-align: center; } .ombox .mbox-imageright { border: none; /* @noflip */ padding: 2px 0.9em 2px 0; text-align: center; } /* An empty narrow cell */ .ombox .mbox-empty-cell { border: none; padding: 0; width: 1px; } /* keep synced with each other type of message box as this isn't qualified */ .mbox-invalid-type { text-align: center; } @media (min-width: 720px) { .ombox { margin: 4px 10%; } .ombox.mbox-small { /* @noflip */ clear: right; /* @noflip */ float: right; /* @noflip */ margin: 4px 0 4px 1em; width: 238px; } } /** T367463 */ body.skin--responsive table.ombox img { max-width: none !important; } @media screen { html.skin-theme-clientpref-night .ombox-speedy { background-color: #310402; /* Dark red, same hue/saturation as light */ } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .ombox-speedy { background-color: #310402; /* Dark red, same hue/saturation as light */ } } s3kd4o8l90hza7k55c82cm0ltkd3xp2 1975486 1975485 2026-08-15T16:50:51Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Message_box/ombox.css]] 1975485 sanitized-css text/css /* {{pp|small=y}} */ .ombox { margin: 4px 0; border-collapse: collapse; border: 1px solid #a2a9b1; /* Default "notice" gray */ background-color: var(--background-color-neutral-subtle, #f8f9fa); box-sizing: border-box; color: var(--color-base, #202122); } /* For the "small=yes" option. */ .ombox.mbox-small { font-size: 88%; line-height: 1.25em; } .ombox-speedy { border: 2px solid #b32424; /* Red */ background-color: #fee7e6; /* Pink */ } .ombox-delete { border: 2px solid #b32424; /* Red */ } .ombox-content { border: 1px solid #f28500; /* Orange */ } .ombox-style { border: 1px solid #fc3; /* Yellow */ } .ombox-move { border: 1px solid #9932cc; /* Purple */ } .ombox-protection { border: 2px solid #a2a9b1; /* Gray-gold */ } .ombox .mbox-text { border: none; /* @noflip */ padding: 0.25em 0.9em; width: 100%; } .ombox .mbox-image { border: none; /* @noflip */ padding: 2px 0 2px 0.9em; text-align: center; } .ombox .mbox-imageright { border: none; /* @noflip */ padding: 2px 0.9em 2px 0; text-align: center; } /* An empty narrow cell */ .ombox .mbox-empty-cell { border: none; padding: 0; width: 1px; } /* keep synced with each other type of message box as this isn't qualified */ .mbox-invalid-type { text-align: center; } @media (min-width: 720px) { .ombox { margin: 4px 10%; } .ombox.mbox-small { /* @noflip */ clear: right; /* @noflip */ float: right; /* @noflip */ margin: 4px 0 4px 1em; width: 238px; } } /** T367463 */ body.skin--responsive table.ombox img { max-width: none !important; } @media screen { html.skin-theme-clientpref-night .ombox-speedy { background-color: #310402; /* Dark red, same hue/saturation as light */ } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .ombox-speedy { background-color: #310402; /* Dark red, same hue/saturation as light */ } } s3kd4o8l90hza7k55c82cm0ltkd3xp2 Snið:Sandbox other 10 167694 1975447 1754503 2025-08-05T04:52:35Z en>Theknightwho 0 Make substable. 1975447 wikitext text/x-wiki <onlyinclude>{{safesubst:<noinclude/>#if:{{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>#invoke:String|sublength|s={{safesubst:<noinclude/>SUBPAGENAME}}|i=0|len=7}}|sandbox|1}}{{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>SUBPAGENAME}}|doc|1}}{{safesubst:<noinclude/>#invoke:String|match|{{safesubst:<noinclude/>PAGENAME}}|/sandbox/styles.css$|plain=false|nomatch=}}|{{{1|}}}|{{{2|}}}}}</onlyinclude><!-- -->{{documentation}} qglmfuqapld2v7m2c8ehvpm6ympoljf 1975448 1975447 2026-08-15T16:50:49Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Sandbox_other]] 1975447 wikitext text/x-wiki <onlyinclude>{{safesubst:<noinclude/>#if:{{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>#invoke:String|sublength|s={{safesubst:<noinclude/>SUBPAGENAME}}|i=0|len=7}}|sandbox|1}}{{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>SUBPAGENAME}}|doc|1}}{{safesubst:<noinclude/>#invoke:String|match|{{safesubst:<noinclude/>PAGENAME}}|/sandbox/styles.css$|plain=false|nomatch=}}|{{{1|}}}|{{{2|}}}}}</onlyinclude><!-- -->{{documentation}} qglmfuqapld2v7m2c8ehvpm6ympoljf Module:Documentation 828 167695 1975437 1966618 2026-06-18T22:38:35Z en>Stjn 0 as a hotfix for [[phab:T268900]] issue, feel free to replace with some solution restoring separate [] at a later point if needed 1975437 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p bo74oekmmsj1xtpw7dlzkvkhc0k05g6 1975438 1968558 2026-08-15T16:50:48Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Documentation]] 1968558 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('skilaboð: type villa í skilaboðum cfg.' .. cfgKey .. ' (vildi ' .. expectType .. ', fékk ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('skilaboð: ekkert gildi fannst fyrir lykil $' .. match .. ' í skilaboðum cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- --[[ title var 'module test case notice' ]] function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'Tilkynning um sýnishorn skriftu'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p g52zrym4kf27mrbhuyhr19xukym0729 Module:Documentation/config 828 167696 1975439 1796500 2025-10-13T18:10:40Z en>Paine Ellsworth 0 per edit request at [[Template talk:Documentation#Update sandbox icon to match all other templates]] - update sandbox notice image 1975439 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[Help:Transclusion|transcluded]] from $1.' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "Editors can experiment in this template's $1 and $2 pages." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'Add categories to the $1 subpage.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/doc' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Subpages of this $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'doc' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg 2z4v6f5nkabra0nulgb7sxch1cktfsn 1975440 1969227 2026-08-15T16:50:48Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Documentation/config]] 1969227 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[Mynd:Sandbox.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = 'Sandkassi sniðs' cfg['sandbox-notice-pagetype-module'] = 'Sandkassi skriftu' cfg['sandbox-notice-pagetype-other'] = 'sandkassinn' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'Þetta er $1 fyrir $2.' cfg['sandbox-notice-diff-blurb'] = 'Þetta er $1 fyrir $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'samanburður' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'Sjá einnig fylgisíðuna á $1.' cfg['sandbox-notice-testcases-link-display'] = 'prufudæmi' cfg['sandbox-notice-testcases-run-blurb'] = 'Sjá einnig fylgisíðuna á $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'keyra' -- cfg['sandbox-category'] -- A category to add to all template sandboxes. cfg['sandbox-category'] = 'Sniða sandkassar' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[Mynd:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Upplýsingaskjölun sniðs' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Upplýsingaskjölun skriftu' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Upplýsingaskjölun' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Upplýsingaskjölun' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'skoða' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'breyta' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'saga' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'hreinsa' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'skapa' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'Upplýsingarnar hér fyrir ofan eru innleiddar frá $1.' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'Þú gætir viljað $1 upplýsingaskjölunarsíðu fyrir þessa Skribunto skriftu.' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "Notendur geta prófað sig áfram í $1 og $2 sniðsins." cfg['experiment-blurb-module'] = "Notendur geta prófað sig áfram í $1 og $2 skriftunnar." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandkassi' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Snið:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Snið:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandkassa' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'breyta' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'skapa' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'samanburður' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Bý til sandkassa útgáfu af $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'spegla' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Snið:Documentation/spegill' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'prufudæmi' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Snið:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Snið:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'prufudæmi' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'breyta' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'keyra' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'skapa' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'Bættu við flokkum á $1 undirsíðunni.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/doc' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Undirssíður $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'sniðsins' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'skriftunnar' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'síðunnar' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'doc' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Snið:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Snið:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia síður sem nota ((documentation)) furðulega' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg 1vjc43szifw4motl525u3ia7f0gaxjw Module:Documentation/styles.css 828 167697 1975441 1870429 2026-06-19T03:19:17Z en>Izno 0 add margins 1975441 sanitized-css text/css /* {{pp|small=yes}} */ .documentation, .documentation-metadata { border: 1px solid var( --border-color-base, #a2a9b1 ); background-color: #ecfcf4; color:inherit; clear: both; } .documentation { margin: 1em 0 0 0; padding: 1em; } .documentation-metadata { margin: 0.2em 0; /* same margin left-right as .documentation */ font-style: italic; padding: 0.4em 1em; /* same padding left-right as .documentation */ } .documentation-startbox { padding-bottom: 3px; border-bottom: 1px solid var( --border-color-base, #a2a9b1 ); margin-bottom: 1ex; } .documentation-heading { font-weight: bold; font-size: 125%; } body.skin-minerva .documentation-startbox .mw-editsection-like a, body.skin-timeless .documentation-startbox .mw-editsection-like a { display: inline-block; margin-left: 0.3em; margin-right: 0.3em; } .documentation-clear { /* Don't want things to stick out where they shouldn't. */ clear: both; } .documentation-toolbar { font-style: normal; font-size: 85%; } @media screen { html.skin-theme-clientpref-night .documentation, html.skin-theme-clientpref-night .documentation-metadata { background-color: #0b1e1c; } } @media screen and ( prefers-color-scheme: dark ) { html.skin-theme-clientpref-os .documentation, html.skin-theme-clientpref-os .documentation-metadata { background-color: #0b1e1c; } } ohekqp4ao232tow40gho8bknn5qdpvd 1975442 1975441 2026-08-15T16:50:48Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Documentation/styles.css]] 1975441 sanitized-css text/css /* {{pp|small=yes}} */ .documentation, .documentation-metadata { border: 1px solid var( --border-color-base, #a2a9b1 ); background-color: #ecfcf4; color:inherit; clear: both; } .documentation { margin: 1em 0 0 0; padding: 1em; } .documentation-metadata { margin: 0.2em 0; /* same margin left-right as .documentation */ font-style: italic; padding: 0.4em 1em; /* same padding left-right as .documentation */ } .documentation-startbox { padding-bottom: 3px; border-bottom: 1px solid var( --border-color-base, #a2a9b1 ); margin-bottom: 1ex; } .documentation-heading { font-weight: bold; font-size: 125%; } body.skin-minerva .documentation-startbox .mw-editsection-like a, body.skin-timeless .documentation-startbox .mw-editsection-like a { display: inline-block; margin-left: 0.3em; margin-right: 0.3em; } .documentation-clear { /* Don't want things to stick out where they shouldn't. */ clear: both; } .documentation-toolbar { font-style: normal; font-size: 85%; } @media screen { html.skin-theme-clientpref-night .documentation, html.skin-theme-clientpref-night .documentation-metadata { background-color: #0b1e1c; } } @media screen and ( prefers-color-scheme: dark ) { html.skin-theme-clientpref-os .documentation, html.skin-theme-clientpref-os .documentation-metadata { background-color: #0b1e1c; } } ohekqp4ao232tow40gho8bknn5qdpvd Module:Effective protection level 828 167699 1975407 1754515 2025-09-25T02:35:06Z en>Pppery 0 Handle gadget page 1975407 Scribunto text/plain local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local level = mw.ext.FlaggedRevs.getStabilitySettings(title) level = level and level.autoreview if level == 'review' then return 'reviewer' elseif level ~= '' then return level else return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review end elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' and action ~= 'undelete' then error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 ) end if title.namespace == 8 then -- MediaWiki namespace if title.text:sub(-3) == '.js' or title.text:sub(-4) == '.css' or title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page return 'interfaceadmin' elseif title.baseText == "Gadgets-definition" then return 'interfaceadmin' else -- any non-JS/CSS MediaWiki page return 'sysop' end elseif title.namespace == 2 and title.isSubpage then if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page return 'interfaceadmin' elseif title.contentModel == 'json' then -- user JSON page return 'sysop' end end if action == 'undelete' then return 'sysop' end local level = title.protectionLevels[action] and title.protectionLevels[action][1] if level == 'sysop' or level == 'editprotected' then return 'sysop' elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page return 'sysop' elseif level == 'templateeditor' then return 'templateeditor' elseif action == 'move' then local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move. if blacklistentry and not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif title.namespace == 6 then return 'filemover' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end end local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) if blacklistentry then if not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason return 'autoconfirmed' elseif level then return level elseif action == 'upload' then return 'autoconfirmed' elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts if title.namespace == 0 then return 'autoconfirmed' -- Per [[WP:ACPERM]], you need to be autoconfirmed to create pages in mainspace end return 'user' else return '*' end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p nacj9lsnya0896kpkyuy2onbc6mm6xw 1975408 1975407 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Effective_protection_level]] 1975407 Scribunto text/plain local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local level = mw.ext.FlaggedRevs.getStabilitySettings(title) level = level and level.autoreview if level == 'review' then return 'reviewer' elseif level ~= '' then return level else return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review end elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' and action ~= 'undelete' then error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 ) end if title.namespace == 8 then -- MediaWiki namespace if title.text:sub(-3) == '.js' or title.text:sub(-4) == '.css' or title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page return 'interfaceadmin' elseif title.baseText == "Gadgets-definition" then return 'interfaceadmin' else -- any non-JS/CSS MediaWiki page return 'sysop' end elseif title.namespace == 2 and title.isSubpage then if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page return 'interfaceadmin' elseif title.contentModel == 'json' then -- user JSON page return 'sysop' end end if action == 'undelete' then return 'sysop' end local level = title.protectionLevels[action] and title.protectionLevels[action][1] if level == 'sysop' or level == 'editprotected' then return 'sysop' elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page return 'sysop' elseif level == 'templateeditor' then return 'templateeditor' elseif action == 'move' then local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move. if blacklistentry and not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif title.namespace == 6 then return 'filemover' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end end local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) if blacklistentry then if not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason return 'autoconfirmed' elseif level then return level elseif action == 'upload' then return 'autoconfirmed' elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts if title.namespace == 0 then return 'autoconfirmed' -- Per [[WP:ACPERM]], you need to be autoconfirmed to create pages in mainspace end return 'user' else return '*' end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p nacj9lsnya0896kpkyuy2onbc6mm6xw 1975524 1975408 2026-08-15T20:02:26Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975407|1975407]] frá notandanum [[:en:User:Pppery|en>Pppery]] 1975524 Scribunto text/plain local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local level = mw.ext.FlaggedRevs.getStabilitySettings(title) level = level and level.autoreview if level == 'review' then return 'reviewer' elseif level ~= '' then return level else return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review end elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' and action ~= 'undelete' then error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 ) end if title.namespace == 8 then -- MediaWiki namespace if title.text:sub(-3) == '.js' or title.text:sub(-4) == '.css' or title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page return 'interfaceadmin' else -- any non-JS/CSS MediaWiki page return 'sysop' end elseif title.namespace == 2 and title.isSubpage then if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page return 'interfaceadmin' elseif title.contentModel == 'json' then -- user JSON page return 'sysop' end end if action == 'undelete' then return 'sysop' end local level = title.protectionLevels[action] and title.protectionLevels[action][1] if level == 'sysop' or level == 'editprotected' then return 'sysop' elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page return 'sysop' elseif level == 'templateeditor' then return 'templateeditor' elseif action == 'move' then local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move. if blacklistentry and not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif title.namespace == 6 then return 'filemover' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end end local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) if blacklistentry then if not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason return 'autoconfirmed' elseif level then return level elseif action == 'upload' then return 'autoconfirmed' elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts return 'user' else return '*' end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p d3lhy0comfcfe9lnnj8klmrfqm1oxw7 Module:Protection banner 828 167704 1975409 1869720 2026-02-18T08:46:08Z en>Krinkle 0 1975409 Scribunto text/plain -- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('strict') local makeFileLink = require('Module:File link')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main local yesno = require('Module:Yesno') -- Lazily initialise modules and objects we don't always need. local getArgs, makeMessageBox, lang -- Set constants. local CONFIG_MODULE = 'Module:Protection banner/config' -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function makeCategoryLink(cat, sort) if cat then return string.format( '[[%s:%s|%s]]', mw.site.namespaces[14].name, cat, sort ) end end -- Validation function for the expiry and the protection date local function validateDate(dateString, dateType) if not lang then lang = mw.language.getContentLanguage() end local success, result = pcall(lang.formatDate, lang, 'U', dateString) if success then result = tonumber(result) if result then return result end end error(string.format( 'invalid %s: %s', dateType, tostring(dateString) ), 4) end local function makeFullUrl(page, query, display) return string.format( '[%s %s]', tostring(mw.uri.fullUrl(page, query)), display ) end -- Given a directed graph formatted as node -> table of direct successors, -- get a table of all nodes reachable from a given node (though always -- including the given node). local function getReachableNodes(graph, start) local toWalk, retval = {[start] = true}, {} while true do -- Can't use pairs() since we're adding and removing things as we're iterating local k = next(toWalk) -- This always gets the "first" key if k == nil then return retval end toWalk[k] = nil retval[k] = true for _,v in ipairs(graph[k]) do if not retval[v] then toWalk[v] = true end end end end -------------------------------------------------------------------------------- -- Protection class -------------------------------------------------------------------------------- local Protection = {} Protection.__index = Protection Protection.supportedActions = { edit = true, move = true, autoreview = true, upload = true } Protection.bannerConfigFields = { 'text', 'explanation', 'tooltip', 'alt', 'link', 'image' } function Protection.new(args, cfg, title) local obj = {} obj._cfg = cfg obj.title = title or mw.title.getCurrentTitle() -- Set action if not args.action then obj.action = 'edit' elseif Protection.supportedActions[args.action] then obj.action = args.action else error(string.format( 'invalid action: %s', tostring(args.action) ), 3) end -- Set level obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title) if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then -- Users need to be autoconfirmed to move pages anyway, so treat -- semi-move-protected pages as unprotected. obj.level = '*' end -- Set expiry local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title) if effectiveExpiry == 'infinity' then obj.expiry = 'indef' elseif effectiveExpiry ~= 'unknown' then obj.expiry = validateDate(effectiveExpiry, 'expiry date') end -- Set reason if args[1] then obj.reason = mw.ustring.lower(args[1]) if obj.reason:find('|') then error('reasons cannot contain the pipe character ("|")', 3) end end -- Set protection date if args.date then obj.protectionDate = validateDate(args.date, 'protection date') end -- Set banner config do obj.bannerConfig = {} local configTables = {} if cfg.banners[obj.action] then configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason] end if cfg.defaultBanners[obj.action] then configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level] configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default end configTables[#configTables + 1] = cfg.masterBanner for i, field in ipairs(Protection.bannerConfigFields) do for j, t in ipairs(configTables) do if t[field] then obj.bannerConfig[field] = t[field] break end end end end return setmetatable(obj, Protection) end function Protection:isUserScript() -- Whether the page is a user JavaScript or CSS page. local title = self.title return title.namespace == 2 and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) end function Protection:isProtected() return self.level ~= '*' end function Protection:shouldShowLock() -- Whether we should output a banner/padlock return self:isProtected() and not self:isUserScript() end -- Whether this page needs a protection category. Protection.shouldHaveProtectionCategory = Protection.shouldShowLock function Protection:isTemporary() return type(self.expiry) == 'number' end function Protection:makeProtectionCategory() if not self:shouldHaveProtectionCategory() then return '' end local cfg = self._cfg local title = self.title -- Get the expiry key fragment. local expiryFragment if self.expiry == 'indef' then expiryFragment = self.expiry elseif type(self.expiry) == 'number' then expiryFragment = 'temp' end -- Get the namespace key fragment. local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace] if not namespaceFragment and title.namespace % 2 == 1 then namespaceFragment = 'talk' end -- Define the order that key fragments are tested in. This is done with an -- array of tables containing the value to be tested, along with its -- position in the cfg.protectionCategories table. local order = { {val = expiryFragment, keypos = 1}, {val = namespaceFragment, keypos = 2}, {val = self.reason, keypos = 3}, {val = self.level, keypos = 4}, {val = self.action, keypos = 5} } --[[ -- The old protection templates used an ad-hoc protection category system, -- with some templates prioritising namespaces in their categories, and -- others prioritising the protection reason. To emulate this in this module -- we use the config table cfg.reasonsWithNamespacePriority to set the -- reasons for which namespaces have priority over protection reason. -- If we are dealing with one of those reasons, move the namespace table to -- the end of the order table, i.e. give it highest priority. If not, the -- reason should have highest priority, so move that to the end of the table -- instead. --]] table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3)) --[[ -- Define the attempt order. Inactive subtables (subtables with nil "value" -- fields) are moved to the end, where they will later be given the key -- "all". This is to cut down on the number of table lookups in -- cfg.protectionCategories, which grows exponentially with the number of -- non-nil keys. We keep track of the number of active subtables with the -- noActive parameter. --]] local noActive, attemptOrder do local active, inactive = {}, {} for i, t in ipairs(order) do if t.val then active[#active + 1] = t else inactive[#inactive + 1] = t end end noActive = #active attemptOrder = active for i, t in ipairs(inactive) do attemptOrder[#attemptOrder + 1] = t end end --[[ -- Check increasingly generic key combinations until we find a match. If a -- specific category exists for the combination of key fragments we are -- given, that match will be found first. If not, we keep trying different -- key fragment combinations until we match using the key -- "all-all-all-all-all". -- -- To generate the keys, we index the key subtables using a binary matrix -- with indexes i and j. j is only calculated up to the number of active -- subtables. For example, if there were three active subtables, the matrix -- would look like this, with 0 corresponding to the key fragment "all", and -- 1 corresponding to other key fragments. -- -- j 1 2 3 -- i -- 1 1 1 1 -- 2 0 1 1 -- 3 1 0 1 -- 4 0 0 1 -- 5 1 1 0 -- 6 0 1 0 -- 7 1 0 0 -- 8 0 0 0 -- -- Values of j higher than the number of active subtables are set -- to the string "all". -- -- A key for cfg.protectionCategories is constructed for each value of i. -- The position of the value in the key is determined by the keypos field in -- each subtable. --]] local cats = cfg.protectionCategories for i = 1, 2^noActive do local key = {} for j, t in ipairs(attemptOrder) do if j > noActive then key[t.keypos] = 'all' else local quotient = i / 2 ^ (j - 1) quotient = math.ceil(quotient) if quotient % 2 == 1 then key[t.keypos] = t.val else key[t.keypos] = 'all' end end end key = table.concat(key, '|') local attempt = cats[key] if attempt then return makeCategoryLink(attempt, title.text) end end return '' end function Protection:isIncorrect() if not self:shouldHaveProtectionCategory() then return true end if type(self.expiry) ~= 'number' then return false end local expiry = os.date('*t', self.expiry) -- Avoid checking today.day or os.time(), unless close. https://phabricator.wikimedia.org/T416616 local today = os.date('*t') return (expiry.year < today.year) or (expiry.year == today.year and expiry.month < today.month) or (expiry.year == today.year and expiry.month == today.month and expiry.day < today.day) or (expiry.year == today.year and expiry.month == today.month and expiry.day == today.day and self.expiry < os.time()) end function Protection:isTemplateProtectedNonTemplate() local action, namespace = self.action, self.title.namespace return self.level == 'templateeditor' and ( (action ~= 'edit' and action ~= 'move') or (namespace ~= 10 and namespace ~= 828) ) end function Protection:makeCategoryLinks() local msg = self._cfg.msg local ret = {self:makeProtectionCategory()} if self:isIncorrect() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-incorrect'], self.title.text ) end if self:isTemplateProtectedNonTemplate() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-template'], self.title.text ) end return table.concat(ret) end -------------------------------------------------------------------------------- -- Blurb class -------------------------------------------------------------------------------- local Blurb = {} Blurb.__index = Blurb Blurb.bannerTextFields = { text = true, explanation = true, tooltip = true, alt = true, link = true } function Blurb.new(protectionObj, args, cfg) return setmetatable({ _cfg = cfg, _protectionObj = protectionObj, _args = args }, Blurb) end -- Private methods -- function Blurb:_formatDate(num) -- Formats a Unix timestamp into dd Month, YYYY format. lang = lang or mw.language.getContentLanguage() local success, date = pcall( lang.formatDate, lang, self._cfg.msg['expiry-date-format'] or 'j F Y', '@' .. tostring(num) ) if success then return date end end function Blurb:_getExpandedMessage(msgKey) return self:_substituteParameters(self._cfg.msg[msgKey]) end function Blurb:_substituteParameters(msg) if not self._params then local parameterFuncs = {} parameterFuncs.CURRENTVERSION = self._makeCurrentVersionParameter parameterFuncs.EDITREQUEST = self._makeEditRequestParameter parameterFuncs.EXPIRY = self._makeExpiryParameter parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter parameterFuncs.IMAGELINK = self._makeImageLinkParameter parameterFuncs.INTROBLURB = self._makeIntroBlurbParameter parameterFuncs.INTROFRAGMENT = self._makeIntroFragmentParameter parameterFuncs.PAGETYPE = self._makePagetypeParameter parameterFuncs.PROTECTIONBLURB = self._makeProtectionBlurbParameter parameterFuncs.PROTECTIONDATE = self._makeProtectionDateParameter parameterFuncs.PROTECTIONLEVEL = self._makeProtectionLevelParameter parameterFuncs.PROTECTIONLOG = self._makeProtectionLogParameter parameterFuncs.TALKPAGE = self._makeTalkPageParameter parameterFuncs.TOOLTIPBLURB = self._makeTooltipBlurbParameter parameterFuncs.TOOLTIPFRAGMENT = self._makeTooltipFragmentParameter parameterFuncs.VANDAL = self._makeVandalTemplateParameter self._params = setmetatable({}, { __index = function (t, k) local param if parameterFuncs[k] then param = parameterFuncs[k](self) end param = param or '' t[k] = param return param end }) end msg = msg:gsub('${(%u+)}', self._params) return msg end function Blurb:_makeCurrentVersionParameter() -- A link to the page history or the move log, depending on the kind of -- protection. local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'move' then -- We need the move log link. return makeFullUrl( 'Special:Log', {type = 'move', page = pagename}, self:_getExpandedMessage('current-version-move-display') ) else -- We need the history link. return makeFullUrl( pagename, {action = 'history'}, self:_getExpandedMessage('current-version-edit-display') ) end end function Blurb:_makeEditRequestParameter() local mEditRequest = require('Module:Submit an edit request') local action = self._protectionObj.action local level = self._protectionObj.level -- Get the edit request type. local requestType if action == 'edit' then if level == 'autoconfirmed' then requestType = 'semi' elseif level == 'extendedconfirmed' then requestType = 'extended' elseif level == 'templateeditor' then requestType = 'template' end end requestType = requestType or 'full' -- Get the display value. local display = self:_getExpandedMessage('edit-request-display') return mEditRequest._link{type = requestType, display = display} end function Blurb:_makeExpiryParameter() local expiry = self._protectionObj.expiry if type(expiry) == 'number' then return self:_formatDate(expiry) else return expiry end end function Blurb:_makeExplanationBlurbParameter() -- Cover special cases first. if self._protectionObj.title.namespace == 8 then -- MediaWiki namespace return self:_getExpandedMessage('explanation-blurb-nounprotect') end -- Get explanation blurb table keys local action = self._protectionObj.action local level = self._protectionObj.level local talkKey = self._protectionObj.title.isTalkPage and 'talk' or 'subject' -- Find the message in the explanation blurb table and substitute any -- parameters. local explanations = self._cfg.explanationBlurbs local msg if explanations[action][level] and explanations[action][level][talkKey] then msg = explanations[action][level][talkKey] elseif explanations[action][level] and explanations[action][level].default then msg = explanations[action][level].default elseif explanations[action].default and explanations[action].default[talkKey] then msg = explanations[action].default[talkKey] elseif explanations[action].default and explanations[action].default.default then msg = explanations[action].default.default else error(string.format( 'could not find explanation blurb for action "%s", level "%s" and talk key "%s"', action, level, talkKey ), 8) end return self:_substituteParameters(msg) end function Blurb:_makeImageLinkParameter() local imageLinks = self._cfg.imageLinks local action = self._protectionObj.action local level = self._protectionObj.level local msg if imageLinks[action][level] then msg = imageLinks[action][level] elseif imageLinks[action].default then msg = imageLinks[action].default else msg = imageLinks.edit.default end return self:_substituteParameters(msg) end function Blurb:_makeIntroBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-blurb-expiry') else return self:_getExpandedMessage('intro-blurb-noexpiry') end end function Blurb:_makeIntroFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-fragment-expiry') else return self:_getExpandedMessage('intro-fragment-noexpiry') end end function Blurb:_makePagetypeParameter() local pagetypes = self._cfg.pagetypes return pagetypes[self._protectionObj.title.namespace] or pagetypes.default or error('no default pagetype defined', 8) end function Blurb:_makeProtectionBlurbParameter() local protectionBlurbs = self._cfg.protectionBlurbs local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionBlurbs[action][level] then msg = protectionBlurbs[action][level] elseif protectionBlurbs[action].default then msg = protectionBlurbs[action].default elseif protectionBlurbs.edit.default then msg = protectionBlurbs.edit.default else error('no protection blurb defined for protectionBlurbs.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionDateParameter() local protectionDate = self._protectionObj.protectionDate if type(protectionDate) == 'number' then return self:_formatDate(protectionDate) else return protectionDate end end function Blurb:_makeProtectionLevelParameter() local protectionLevels = self._cfg.protectionLevels local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionLevels[action][level] then msg = protectionLevels[action][level] elseif protectionLevels[action].default then msg = protectionLevels[action].default elseif protectionLevels.edit.default then msg = protectionLevels.edit.default else error('no protection level defined for protectionLevels.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionLogParameter() local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'autoreview' then -- We need the pending changes log. return makeFullUrl( 'Special:Log', {type = 'stable', page = pagename}, self:_getExpandedMessage('pc-log-display') ) else -- We need the protection log. return makeFullUrl( 'Special:Log', {type = 'protect', page = pagename}, self:_getExpandedMessage('protection-log-display') ) end end function Blurb:_makeTalkPageParameter() return string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[self._protectionObj.title.namespace].talk.name, self._protectionObj.title.text, self._args.section or 'top', self:_getExpandedMessage('talk-page-link-display') ) end function Blurb:_makeTooltipBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-blurb-expiry') else return self:_getExpandedMessage('tooltip-blurb-noexpiry') end end function Blurb:_makeTooltipFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-fragment-expiry') else return self:_getExpandedMessage('tooltip-fragment-noexpiry') end end function Blurb:_makeVandalTemplateParameter() return mw.getCurrentFrame():expandTemplate{ title="vandal-m", args={self._args.user or self._protectionObj.title.baseText} } end -- Public methods -- function Blurb:makeBannerText(key) -- Validate input. if not key or not Blurb.bannerTextFields[key] then error(string.format( '"%s" is not a valid banner config field', tostring(key) ), 2) end -- Generate the text. local msg = self._protectionObj.bannerConfig[key] if type(msg) == 'string' then return self:_substituteParameters(msg) elseif type(msg) == 'function' then msg = msg(self._protectionObj, self._args) if type(msg) ~= 'string' then error(string.format( 'bad output from banner config function with key "%s"' .. ' (expected string, got %s)', tostring(key), type(msg) ), 4) end return self:_substituteParameters(msg) end end -------------------------------------------------------------------------------- -- BannerTemplate class -------------------------------------------------------------------------------- local BannerTemplate = {} BannerTemplate.__index = BannerTemplate function BannerTemplate.new(protectionObj, cfg) local obj = {} obj._cfg = cfg -- Set the image filename. local imageFilename = protectionObj.bannerConfig.image if imageFilename then obj._imageFilename = imageFilename else -- If an image filename isn't specified explicitly in the banner config, -- generate it from the protection status and the namespace. local action = protectionObj.action local level = protectionObj.level local namespace = protectionObj.title.namespace local reason = protectionObj.reason -- Deal with special cases first. if ( namespace == 10 or namespace == 828 or reason and obj._cfg.indefImageReasons[reason] ) and action == 'edit' and level == 'sysop' and not protectionObj:isTemporary() then -- Fully protected modules and templates get the special red "indef" -- padlock. obj._imageFilename = obj._cfg.msg['image-filename-indef'] else -- Deal with regular protection types. local images = obj._cfg.images if images[action] then if images[action][level] then obj._imageFilename = images[action][level] elseif images[action].default then obj._imageFilename = images[action].default end end end end return setmetatable(obj, BannerTemplate) end function BannerTemplate:renderImage() local filename = self._imageFilename or self._cfg.msg['image-filename-default'] or 'Transparent.gif' return makeFileLink{ file = filename, size = (self.imageWidth or 20) .. 'px', alt = self._imageAlt, link = self._imageLink, caption = self.imageCaption } end -------------------------------------------------------------------------------- -- Banner class -------------------------------------------------------------------------------- local Banner = setmetatable({}, BannerTemplate) Banner.__index = Banner function Banner.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 40 obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip. obj._reasonText = blurbObj:makeBannerText('text') obj._explanationText = blurbObj:makeBannerText('explanation') obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing. return setmetatable(obj, Banner) end function Banner:__tostring() -- Renders the banner. makeMessageBox = makeMessageBox or require('Module:Message box').main local reasonText = self._reasonText or error('no reason text set', 2) local explanationText = self._explanationText local mbargs = { page = self._page, type = 'protection', image = self:renderImage(), text = string.format( "'''%s'''%s", reasonText, explanationText and '<br />' .. explanationText or '' ) } return makeMessageBox('mbox', mbargs) end -------------------------------------------------------------------------------- -- Padlock class -------------------------------------------------------------------------------- local Padlock = setmetatable({}, BannerTemplate) Padlock.__index = Padlock function Padlock.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 20 obj.imageCaption = blurbObj:makeBannerText('tooltip') obj._imageAlt = blurbObj:makeBannerText('alt') obj._imageLink = blurbObj:makeBannerText('link') obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action] or cfg.padlockIndicatorNames.default or 'pp-default' return setmetatable(obj, Padlock) end function Padlock:__tostring() local frame = mw.getCurrentFrame() -- The nowiki tag helps prevent whitespace at the top of articles. return frame:extensionTag{name = 'nowiki'} .. frame:extensionTag{ name = 'indicator', args = {name = self._indicatorName}, content = self:renderImage() } end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p = {} function p._exportClasses() -- This is used for testing purposes. return { Protection = Protection, Blurb = Blurb, BannerTemplate = BannerTemplate, Banner = Banner, Padlock = Padlock, } end function p._main(args, cfg, title) args = args or {} cfg = cfg or require(CONFIG_MODULE) local protectionObj = Protection.new(args, cfg, title) local ret = {} -- If a page's edit protection is equally or more restrictive than its -- protection from some other action, then don't bother displaying anything -- for the other action (except categories). if not yesno(args.catonly) and (protectionObj.action == 'edit' or args.demolevel or not getReachableNodes( cfg.hierarchy, protectionObj.level )[effectiveProtectionLevel('edit', protectionObj.title)]) then -- Initialise the blurb object local blurbObj = Blurb.new(protectionObj, args, cfg) -- Render the banner if protectionObj:shouldShowLock() then ret[#ret + 1] = tostring( (yesno(args.small) and Padlock or Banner) .new(protectionObj, blurbObj, cfg) ) end end -- Render the categories if yesno(args.category) ~= false then ret[#ret + 1] = protectionObj:makeCategoryLinks() end -- For arbitration enforcement, flagging [[WP:PIA]] pages to enable [[Special:AbuseFilter/1339]] to flag edits to them if protectionObj.level == "extendedconfirmed" then if require("Module:TableTools").inArray(protectionObj.title.talkPageTitle.categories, "Wikipedia pages subject to the extended confirmed restriction related to the Arab-Israeli conflict") then ret[#ret + 1] = "<p class='PIA-flag' style='display:none; visibility:hidden;' title='This page is subject to the extended confirmed restriction related to the Arab-Israeli conflict.'></p>" end end return table.concat(ret) end function p.main(frame, cfg) cfg = cfg or require(CONFIG_MODULE) -- Find default args, if any. local parent = frame.getParent and frame:getParent() local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandbox$', '')] -- Find user args, and use the parent frame if we are being called from a -- wrapper template. getArgs = getArgs or require('Module:Arguments').getArgs local userArgs = getArgs(frame, { parentOnly = defaultArgs, frameOnly = not defaultArgs }) -- Build the args table. User-specified args overwrite default args. local args = {} for k, v in pairs(defaultArgs or {}) do args[k] = v end for k, v in pairs(userArgs) do args[k] = v end return p._main(args, cfg) end return p o3ocs8c50hagthmsuho5s6y44o0rimz 1975410 1975409 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Protection_banner]] 1975409 Scribunto text/plain -- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('strict') local makeFileLink = require('Module:File link')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main local yesno = require('Module:Yesno') -- Lazily initialise modules and objects we don't always need. local getArgs, makeMessageBox, lang -- Set constants. local CONFIG_MODULE = 'Module:Protection banner/config' -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function makeCategoryLink(cat, sort) if cat then return string.format( '[[%s:%s|%s]]', mw.site.namespaces[14].name, cat, sort ) end end -- Validation function for the expiry and the protection date local function validateDate(dateString, dateType) if not lang then lang = mw.language.getContentLanguage() end local success, result = pcall(lang.formatDate, lang, 'U', dateString) if success then result = tonumber(result) if result then return result end end error(string.format( 'invalid %s: %s', dateType, tostring(dateString) ), 4) end local function makeFullUrl(page, query, display) return string.format( '[%s %s]', tostring(mw.uri.fullUrl(page, query)), display ) end -- Given a directed graph formatted as node -> table of direct successors, -- get a table of all nodes reachable from a given node (though always -- including the given node). local function getReachableNodes(graph, start) local toWalk, retval = {[start] = true}, {} while true do -- Can't use pairs() since we're adding and removing things as we're iterating local k = next(toWalk) -- This always gets the "first" key if k == nil then return retval end toWalk[k] = nil retval[k] = true for _,v in ipairs(graph[k]) do if not retval[v] then toWalk[v] = true end end end end -------------------------------------------------------------------------------- -- Protection class -------------------------------------------------------------------------------- local Protection = {} Protection.__index = Protection Protection.supportedActions = { edit = true, move = true, autoreview = true, upload = true } Protection.bannerConfigFields = { 'text', 'explanation', 'tooltip', 'alt', 'link', 'image' } function Protection.new(args, cfg, title) local obj = {} obj._cfg = cfg obj.title = title or mw.title.getCurrentTitle() -- Set action if not args.action then obj.action = 'edit' elseif Protection.supportedActions[args.action] then obj.action = args.action else error(string.format( 'invalid action: %s', tostring(args.action) ), 3) end -- Set level obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title) if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then -- Users need to be autoconfirmed to move pages anyway, so treat -- semi-move-protected pages as unprotected. obj.level = '*' end -- Set expiry local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title) if effectiveExpiry == 'infinity' then obj.expiry = 'indef' elseif effectiveExpiry ~= 'unknown' then obj.expiry = validateDate(effectiveExpiry, 'expiry date') end -- Set reason if args[1] then obj.reason = mw.ustring.lower(args[1]) if obj.reason:find('|') then error('reasons cannot contain the pipe character ("|")', 3) end end -- Set protection date if args.date then obj.protectionDate = validateDate(args.date, 'protection date') end -- Set banner config do obj.bannerConfig = {} local configTables = {} if cfg.banners[obj.action] then configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason] end if cfg.defaultBanners[obj.action] then configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level] configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default end configTables[#configTables + 1] = cfg.masterBanner for i, field in ipairs(Protection.bannerConfigFields) do for j, t in ipairs(configTables) do if t[field] then obj.bannerConfig[field] = t[field] break end end end end return setmetatable(obj, Protection) end function Protection:isUserScript() -- Whether the page is a user JavaScript or CSS page. local title = self.title return title.namespace == 2 and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) end function Protection:isProtected() return self.level ~= '*' end function Protection:shouldShowLock() -- Whether we should output a banner/padlock return self:isProtected() and not self:isUserScript() end -- Whether this page needs a protection category. Protection.shouldHaveProtectionCategory = Protection.shouldShowLock function Protection:isTemporary() return type(self.expiry) == 'number' end function Protection:makeProtectionCategory() if not self:shouldHaveProtectionCategory() then return '' end local cfg = self._cfg local title = self.title -- Get the expiry key fragment. local expiryFragment if self.expiry == 'indef' then expiryFragment = self.expiry elseif type(self.expiry) == 'number' then expiryFragment = 'temp' end -- Get the namespace key fragment. local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace] if not namespaceFragment and title.namespace % 2 == 1 then namespaceFragment = 'talk' end -- Define the order that key fragments are tested in. This is done with an -- array of tables containing the value to be tested, along with its -- position in the cfg.protectionCategories table. local order = { {val = expiryFragment, keypos = 1}, {val = namespaceFragment, keypos = 2}, {val = self.reason, keypos = 3}, {val = self.level, keypos = 4}, {val = self.action, keypos = 5} } --[[ -- The old protection templates used an ad-hoc protection category system, -- with some templates prioritising namespaces in their categories, and -- others prioritising the protection reason. To emulate this in this module -- we use the config table cfg.reasonsWithNamespacePriority to set the -- reasons for which namespaces have priority over protection reason. -- If we are dealing with one of those reasons, move the namespace table to -- the end of the order table, i.e. give it highest priority. If not, the -- reason should have highest priority, so move that to the end of the table -- instead. --]] table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3)) --[[ -- Define the attempt order. Inactive subtables (subtables with nil "value" -- fields) are moved to the end, where they will later be given the key -- "all". This is to cut down on the number of table lookups in -- cfg.protectionCategories, which grows exponentially with the number of -- non-nil keys. We keep track of the number of active subtables with the -- noActive parameter. --]] local noActive, attemptOrder do local active, inactive = {}, {} for i, t in ipairs(order) do if t.val then active[#active + 1] = t else inactive[#inactive + 1] = t end end noActive = #active attemptOrder = active for i, t in ipairs(inactive) do attemptOrder[#attemptOrder + 1] = t end end --[[ -- Check increasingly generic key combinations until we find a match. If a -- specific category exists for the combination of key fragments we are -- given, that match will be found first. If not, we keep trying different -- key fragment combinations until we match using the key -- "all-all-all-all-all". -- -- To generate the keys, we index the key subtables using a binary matrix -- with indexes i and j. j is only calculated up to the number of active -- subtables. For example, if there were three active subtables, the matrix -- would look like this, with 0 corresponding to the key fragment "all", and -- 1 corresponding to other key fragments. -- -- j 1 2 3 -- i -- 1 1 1 1 -- 2 0 1 1 -- 3 1 0 1 -- 4 0 0 1 -- 5 1 1 0 -- 6 0 1 0 -- 7 1 0 0 -- 8 0 0 0 -- -- Values of j higher than the number of active subtables are set -- to the string "all". -- -- A key for cfg.protectionCategories is constructed for each value of i. -- The position of the value in the key is determined by the keypos field in -- each subtable. --]] local cats = cfg.protectionCategories for i = 1, 2^noActive do local key = {} for j, t in ipairs(attemptOrder) do if j > noActive then key[t.keypos] = 'all' else local quotient = i / 2 ^ (j - 1) quotient = math.ceil(quotient) if quotient % 2 == 1 then key[t.keypos] = t.val else key[t.keypos] = 'all' end end end key = table.concat(key, '|') local attempt = cats[key] if attempt then return makeCategoryLink(attempt, title.text) end end return '' end function Protection:isIncorrect() if not self:shouldHaveProtectionCategory() then return true end if type(self.expiry) ~= 'number' then return false end local expiry = os.date('*t', self.expiry) -- Avoid checking today.day or os.time(), unless close. https://phabricator.wikimedia.org/T416616 local today = os.date('*t') return (expiry.year < today.year) or (expiry.year == today.year and expiry.month < today.month) or (expiry.year == today.year and expiry.month == today.month and expiry.day < today.day) or (expiry.year == today.year and expiry.month == today.month and expiry.day == today.day and self.expiry < os.time()) end function Protection:isTemplateProtectedNonTemplate() local action, namespace = self.action, self.title.namespace return self.level == 'templateeditor' and ( (action ~= 'edit' and action ~= 'move') or (namespace ~= 10 and namespace ~= 828) ) end function Protection:makeCategoryLinks() local msg = self._cfg.msg local ret = {self:makeProtectionCategory()} if self:isIncorrect() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-incorrect'], self.title.text ) end if self:isTemplateProtectedNonTemplate() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-template'], self.title.text ) end return table.concat(ret) end -------------------------------------------------------------------------------- -- Blurb class -------------------------------------------------------------------------------- local Blurb = {} Blurb.__index = Blurb Blurb.bannerTextFields = { text = true, explanation = true, tooltip = true, alt = true, link = true } function Blurb.new(protectionObj, args, cfg) return setmetatable({ _cfg = cfg, _protectionObj = protectionObj, _args = args }, Blurb) end -- Private methods -- function Blurb:_formatDate(num) -- Formats a Unix timestamp into dd Month, YYYY format. lang = lang or mw.language.getContentLanguage() local success, date = pcall( lang.formatDate, lang, self._cfg.msg['expiry-date-format'] or 'j F Y', '@' .. tostring(num) ) if success then return date end end function Blurb:_getExpandedMessage(msgKey) return self:_substituteParameters(self._cfg.msg[msgKey]) end function Blurb:_substituteParameters(msg) if not self._params then local parameterFuncs = {} parameterFuncs.CURRENTVERSION = self._makeCurrentVersionParameter parameterFuncs.EDITREQUEST = self._makeEditRequestParameter parameterFuncs.EXPIRY = self._makeExpiryParameter parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter parameterFuncs.IMAGELINK = self._makeImageLinkParameter parameterFuncs.INTROBLURB = self._makeIntroBlurbParameter parameterFuncs.INTROFRAGMENT = self._makeIntroFragmentParameter parameterFuncs.PAGETYPE = self._makePagetypeParameter parameterFuncs.PROTECTIONBLURB = self._makeProtectionBlurbParameter parameterFuncs.PROTECTIONDATE = self._makeProtectionDateParameter parameterFuncs.PROTECTIONLEVEL = self._makeProtectionLevelParameter parameterFuncs.PROTECTIONLOG = self._makeProtectionLogParameter parameterFuncs.TALKPAGE = self._makeTalkPageParameter parameterFuncs.TOOLTIPBLURB = self._makeTooltipBlurbParameter parameterFuncs.TOOLTIPFRAGMENT = self._makeTooltipFragmentParameter parameterFuncs.VANDAL = self._makeVandalTemplateParameter self._params = setmetatable({}, { __index = function (t, k) local param if parameterFuncs[k] then param = parameterFuncs[k](self) end param = param or '' t[k] = param return param end }) end msg = msg:gsub('${(%u+)}', self._params) return msg end function Blurb:_makeCurrentVersionParameter() -- A link to the page history or the move log, depending on the kind of -- protection. local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'move' then -- We need the move log link. return makeFullUrl( 'Special:Log', {type = 'move', page = pagename}, self:_getExpandedMessage('current-version-move-display') ) else -- We need the history link. return makeFullUrl( pagename, {action = 'history'}, self:_getExpandedMessage('current-version-edit-display') ) end end function Blurb:_makeEditRequestParameter() local mEditRequest = require('Module:Submit an edit request') local action = self._protectionObj.action local level = self._protectionObj.level -- Get the edit request type. local requestType if action == 'edit' then if level == 'autoconfirmed' then requestType = 'semi' elseif level == 'extendedconfirmed' then requestType = 'extended' elseif level == 'templateeditor' then requestType = 'template' end end requestType = requestType or 'full' -- Get the display value. local display = self:_getExpandedMessage('edit-request-display') return mEditRequest._link{type = requestType, display = display} end function Blurb:_makeExpiryParameter() local expiry = self._protectionObj.expiry if type(expiry) == 'number' then return self:_formatDate(expiry) else return expiry end end function Blurb:_makeExplanationBlurbParameter() -- Cover special cases first. if self._protectionObj.title.namespace == 8 then -- MediaWiki namespace return self:_getExpandedMessage('explanation-blurb-nounprotect') end -- Get explanation blurb table keys local action = self._protectionObj.action local level = self._protectionObj.level local talkKey = self._protectionObj.title.isTalkPage and 'talk' or 'subject' -- Find the message in the explanation blurb table and substitute any -- parameters. local explanations = self._cfg.explanationBlurbs local msg if explanations[action][level] and explanations[action][level][talkKey] then msg = explanations[action][level][talkKey] elseif explanations[action][level] and explanations[action][level].default then msg = explanations[action][level].default elseif explanations[action].default and explanations[action].default[talkKey] then msg = explanations[action].default[talkKey] elseif explanations[action].default and explanations[action].default.default then msg = explanations[action].default.default else error(string.format( 'could not find explanation blurb for action "%s", level "%s" and talk key "%s"', action, level, talkKey ), 8) end return self:_substituteParameters(msg) end function Blurb:_makeImageLinkParameter() local imageLinks = self._cfg.imageLinks local action = self._protectionObj.action local level = self._protectionObj.level local msg if imageLinks[action][level] then msg = imageLinks[action][level] elseif imageLinks[action].default then msg = imageLinks[action].default else msg = imageLinks.edit.default end return self:_substituteParameters(msg) end function Blurb:_makeIntroBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-blurb-expiry') else return self:_getExpandedMessage('intro-blurb-noexpiry') end end function Blurb:_makeIntroFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-fragment-expiry') else return self:_getExpandedMessage('intro-fragment-noexpiry') end end function Blurb:_makePagetypeParameter() local pagetypes = self._cfg.pagetypes return pagetypes[self._protectionObj.title.namespace] or pagetypes.default or error('no default pagetype defined', 8) end function Blurb:_makeProtectionBlurbParameter() local protectionBlurbs = self._cfg.protectionBlurbs local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionBlurbs[action][level] then msg = protectionBlurbs[action][level] elseif protectionBlurbs[action].default then msg = protectionBlurbs[action].default elseif protectionBlurbs.edit.default then msg = protectionBlurbs.edit.default else error('no protection blurb defined for protectionBlurbs.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionDateParameter() local protectionDate = self._protectionObj.protectionDate if type(protectionDate) == 'number' then return self:_formatDate(protectionDate) else return protectionDate end end function Blurb:_makeProtectionLevelParameter() local protectionLevels = self._cfg.protectionLevels local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionLevels[action][level] then msg = protectionLevels[action][level] elseif protectionLevels[action].default then msg = protectionLevels[action].default elseif protectionLevels.edit.default then msg = protectionLevels.edit.default else error('no protection level defined for protectionLevels.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionLogParameter() local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'autoreview' then -- We need the pending changes log. return makeFullUrl( 'Special:Log', {type = 'stable', page = pagename}, self:_getExpandedMessage('pc-log-display') ) else -- We need the protection log. return makeFullUrl( 'Special:Log', {type = 'protect', page = pagename}, self:_getExpandedMessage('protection-log-display') ) end end function Blurb:_makeTalkPageParameter() return string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[self._protectionObj.title.namespace].talk.name, self._protectionObj.title.text, self._args.section or 'top', self:_getExpandedMessage('talk-page-link-display') ) end function Blurb:_makeTooltipBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-blurb-expiry') else return self:_getExpandedMessage('tooltip-blurb-noexpiry') end end function Blurb:_makeTooltipFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-fragment-expiry') else return self:_getExpandedMessage('tooltip-fragment-noexpiry') end end function Blurb:_makeVandalTemplateParameter() return mw.getCurrentFrame():expandTemplate{ title="vandal-m", args={self._args.user or self._protectionObj.title.baseText} } end -- Public methods -- function Blurb:makeBannerText(key) -- Validate input. if not key or not Blurb.bannerTextFields[key] then error(string.format( '"%s" is not a valid banner config field', tostring(key) ), 2) end -- Generate the text. local msg = self._protectionObj.bannerConfig[key] if type(msg) == 'string' then return self:_substituteParameters(msg) elseif type(msg) == 'function' then msg = msg(self._protectionObj, self._args) if type(msg) ~= 'string' then error(string.format( 'bad output from banner config function with key "%s"' .. ' (expected string, got %s)', tostring(key), type(msg) ), 4) end return self:_substituteParameters(msg) end end -------------------------------------------------------------------------------- -- BannerTemplate class -------------------------------------------------------------------------------- local BannerTemplate = {} BannerTemplate.__index = BannerTemplate function BannerTemplate.new(protectionObj, cfg) local obj = {} obj._cfg = cfg -- Set the image filename. local imageFilename = protectionObj.bannerConfig.image if imageFilename then obj._imageFilename = imageFilename else -- If an image filename isn't specified explicitly in the banner config, -- generate it from the protection status and the namespace. local action = protectionObj.action local level = protectionObj.level local namespace = protectionObj.title.namespace local reason = protectionObj.reason -- Deal with special cases first. if ( namespace == 10 or namespace == 828 or reason and obj._cfg.indefImageReasons[reason] ) and action == 'edit' and level == 'sysop' and not protectionObj:isTemporary() then -- Fully protected modules and templates get the special red "indef" -- padlock. obj._imageFilename = obj._cfg.msg['image-filename-indef'] else -- Deal with regular protection types. local images = obj._cfg.images if images[action] then if images[action][level] then obj._imageFilename = images[action][level] elseif images[action].default then obj._imageFilename = images[action].default end end end end return setmetatable(obj, BannerTemplate) end function BannerTemplate:renderImage() local filename = self._imageFilename or self._cfg.msg['image-filename-default'] or 'Transparent.gif' return makeFileLink{ file = filename, size = (self.imageWidth or 20) .. 'px', alt = self._imageAlt, link = self._imageLink, caption = self.imageCaption } end -------------------------------------------------------------------------------- -- Banner class -------------------------------------------------------------------------------- local Banner = setmetatable({}, BannerTemplate) Banner.__index = Banner function Banner.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 40 obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip. obj._reasonText = blurbObj:makeBannerText('text') obj._explanationText = blurbObj:makeBannerText('explanation') obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing. return setmetatable(obj, Banner) end function Banner:__tostring() -- Renders the banner. makeMessageBox = makeMessageBox or require('Module:Message box').main local reasonText = self._reasonText or error('no reason text set', 2) local explanationText = self._explanationText local mbargs = { page = self._page, type = 'protection', image = self:renderImage(), text = string.format( "'''%s'''%s", reasonText, explanationText and '<br />' .. explanationText or '' ) } return makeMessageBox('mbox', mbargs) end -------------------------------------------------------------------------------- -- Padlock class -------------------------------------------------------------------------------- local Padlock = setmetatable({}, BannerTemplate) Padlock.__index = Padlock function Padlock.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 20 obj.imageCaption = blurbObj:makeBannerText('tooltip') obj._imageAlt = blurbObj:makeBannerText('alt') obj._imageLink = blurbObj:makeBannerText('link') obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action] or cfg.padlockIndicatorNames.default or 'pp-default' return setmetatable(obj, Padlock) end function Padlock:__tostring() local frame = mw.getCurrentFrame() -- The nowiki tag helps prevent whitespace at the top of articles. return frame:extensionTag{name = 'nowiki'} .. frame:extensionTag{ name = 'indicator', args = {name = self._indicatorName}, content = self:renderImage() } end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p = {} function p._exportClasses() -- This is used for testing purposes. return { Protection = Protection, Blurb = Blurb, BannerTemplate = BannerTemplate, Banner = Banner, Padlock = Padlock, } end function p._main(args, cfg, title) args = args or {} cfg = cfg or require(CONFIG_MODULE) local protectionObj = Protection.new(args, cfg, title) local ret = {} -- If a page's edit protection is equally or more restrictive than its -- protection from some other action, then don't bother displaying anything -- for the other action (except categories). if not yesno(args.catonly) and (protectionObj.action == 'edit' or args.demolevel or not getReachableNodes( cfg.hierarchy, protectionObj.level )[effectiveProtectionLevel('edit', protectionObj.title)]) then -- Initialise the blurb object local blurbObj = Blurb.new(protectionObj, args, cfg) -- Render the banner if protectionObj:shouldShowLock() then ret[#ret + 1] = tostring( (yesno(args.small) and Padlock or Banner) .new(protectionObj, blurbObj, cfg) ) end end -- Render the categories if yesno(args.category) ~= false then ret[#ret + 1] = protectionObj:makeCategoryLinks() end -- For arbitration enforcement, flagging [[WP:PIA]] pages to enable [[Special:AbuseFilter/1339]] to flag edits to them if protectionObj.level == "extendedconfirmed" then if require("Module:TableTools").inArray(protectionObj.title.talkPageTitle.categories, "Wikipedia pages subject to the extended confirmed restriction related to the Arab-Israeli conflict") then ret[#ret + 1] = "<p class='PIA-flag' style='display:none; visibility:hidden;' title='This page is subject to the extended confirmed restriction related to the Arab-Israeli conflict.'></p>" end end return table.concat(ret) end function p.main(frame, cfg) cfg = cfg or require(CONFIG_MODULE) -- Find default args, if any. local parent = frame.getParent and frame:getParent() local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandbox$', '')] -- Find user args, and use the parent frame if we are being called from a -- wrapper template. getArgs = getArgs or require('Module:Arguments').getArgs local userArgs = getArgs(frame, { parentOnly = defaultArgs, frameOnly = not defaultArgs }) -- Build the args table. User-specified args overwrite default args. local args = {} for k, v in pairs(defaultArgs or {}) do args[k] = v end for k, v in pairs(userArgs) do args[k] = v end return p._main(args, cfg) end return p o3ocs8c50hagthmsuho5s6y44o0rimz 1975523 1975410 2026-08-15T20:01:33Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975409|1975409]] frá notandanum [[:en:User:Krinkle|en>Krinkle]] 1975523 Scribunto text/plain -- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('strict') local makeFileLink = require('Module:File link')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main local yesno = require('Module:Yesno') -- Lazily initialise modules and objects we don't always need. local getArgs, makeMessageBox, lang -- Set constants. local CONFIG_MODULE = 'Module:Protection banner/config' -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function makeCategoryLink(cat, sort) if cat then return '' --string.format( -- '[[%s:%s|%s]]', -- mw.site.namespaces[14].name, -- cat, -- sort -- ) end end -- Validation function for the expiry and the protection date local function validateDate(dateString, dateType) if not lang then lang = mw.language.getContentLanguage() end local success, result = pcall(lang.formatDate, lang, 'U', dateString) if success then result = tonumber(result) if result then return result end end error(string.format( 'invalid %s: %s', dateType, tostring(dateString) ), 4) end local function makeFullUrl(page, query, display) return string.format( '[%s %s]', tostring(mw.uri.fullUrl(page, query)), display ) end -- Given a directed graph formatted as node -> table of direct successors, -- get a table of all nodes reachable from a given node (though always -- including the given node). local function getReachableNodes(graph, start) local toWalk, retval = {[start] = true}, {} while true do -- Can't use pairs() since we're adding and removing things as we're iterating local k = next(toWalk) -- This always gets the "first" key if k == nil then return retval end toWalk[k] = nil retval[k] = true for _,v in ipairs(graph[k]) do if not retval[v] then toWalk[v] = true end end end end -------------------------------------------------------------------------------- -- Protection class -------------------------------------------------------------------------------- local Protection = {} Protection.__index = Protection Protection.supportedActions = { edit = true, move = true, autoreview = true, upload = true } Protection.bannerConfigFields = { 'text', 'explanation', 'tooltip', 'alt', 'link', 'image' } function Protection.new(args, cfg, title) local obj = {} obj._cfg = cfg obj.title = title or mw.title.getCurrentTitle() -- Set action if not args.action then obj.action = 'edit' elseif Protection.supportedActions[args.action] then obj.action = args.action else error(string.format( 'invalid action: %s', tostring(args.action) ), 3) end -- Set level obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title) if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then -- Users need to be autoconfirmed to move pages anyway, so treat -- semi-move-protected pages as unprotected. obj.level = '*' end -- Set expiry local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title) if effectiveExpiry == 'infinity' then obj.expiry = 'indef' elseif effectiveExpiry ~= 'unknown' then obj.expiry = validateDate(effectiveExpiry, 'expiry date') end -- Set reason if args[1] then obj.reason = mw.ustring.lower(args[1]) if obj.reason:find('|') then error('reasons cannot contain the pipe character ("|")', 3) end end -- Set protection date if args.date then obj.protectionDate = validateDate(args.date, 'protection date') end -- Set banner config do obj.bannerConfig = {} local configTables = {} if cfg.banners[obj.action] then configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason] end if cfg.defaultBanners[obj.action] then configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level] configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default end configTables[#configTables + 1] = cfg.masterBanner for i, field in ipairs(Protection.bannerConfigFields) do for j, t in ipairs(configTables) do if t[field] then obj.bannerConfig[field] = t[field] break end end end end return setmetatable(obj, Protection) end function Protection:isUserScript() -- Whether the page is a user JavaScript or CSS page. local title = self.title return title.namespace == 2 and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) end function Protection:isProtected() return self.level ~= '*' end function Protection:shouldShowLock() -- Whether we should output a banner/padlock return self:isProtected() and not self:isUserScript() end -- Whether this page needs a protection category. Protection.shouldHaveProtectionCategory = Protection.shouldShowLock function Protection:isTemporary() return type(self.expiry) == 'number' end function Protection:makeProtectionCategory() if not self:shouldHaveProtectionCategory() then return '' end local cfg = self._cfg local title = self.title -- Get the expiry key fragment. local expiryFragment if self.expiry == 'indef' then expiryFragment = self.expiry elseif type(self.expiry) == 'number' then expiryFragment = 'temp' end -- Get the namespace key fragment. local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace] if not namespaceFragment and title.namespace % 2 == 1 then namespaceFragment = 'talk' end -- Define the order that key fragments are tested in. This is done with an -- array of tables containing the value to be tested, along with its -- position in the cfg.protectionCategories table. local order = { {val = expiryFragment, keypos = 1}, {val = namespaceFragment, keypos = 2}, {val = self.reason, keypos = 3}, {val = self.level, keypos = 4}, {val = self.action, keypos = 5} } --[[ -- The old protection templates used an ad-hoc protection category system, -- with some templates prioritising namespaces in their categories, and -- others prioritising the protection reason. To emulate this in this module -- we use the config table cfg.reasonsWithNamespacePriority to set the -- reasons for which namespaces have priority over protection reason. -- If we are dealing with one of those reasons, move the namespace table to -- the end of the order table, i.e. give it highest priority. If not, the -- reason should have highest priority, so move that to the end of the table -- instead. --]] table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3)) --[[ -- Define the attempt order. Inactive subtables (subtables with nil "value" -- fields) are moved to the end, where they will later be given the key -- "all". This is to cut down on the number of table lookups in -- cfg.protectionCategories, which grows exponentially with the number of -- non-nil keys. We keep track of the number of active subtables with the -- noActive parameter. --]] local noActive, attemptOrder do local active, inactive = {}, {} for i, t in ipairs(order) do if t.val then active[#active + 1] = t else inactive[#inactive + 1] = t end end noActive = #active attemptOrder = active for i, t in ipairs(inactive) do attemptOrder[#attemptOrder + 1] = t end end --[[ -- Check increasingly generic key combinations until we find a match. If a -- specific category exists for the combination of key fragments we are -- given, that match will be found first. If not, we keep trying different -- key fragment combinations until we match using the key -- "all-all-all-all-all". -- -- To generate the keys, we index the key subtables using a binary matrix -- with indexes i and j. j is only calculated up to the number of active -- subtables. For example, if there were three active subtables, the matrix -- would look like this, with 0 corresponding to the key fragment "all", and -- 1 corresponding to other key fragments. -- -- j 1 2 3 -- i -- 1 1 1 1 -- 2 0 1 1 -- 3 1 0 1 -- 4 0 0 1 -- 5 1 1 0 -- 6 0 1 0 -- 7 1 0 0 -- 8 0 0 0 -- -- Values of j higher than the number of active subtables are set -- to the string "all". -- -- A key for cfg.protectionCategories is constructed for each value of i. -- The position of the value in the key is determined by the keypos field in -- each subtable. --]] local cats = cfg.protectionCategories for i = 1, 2^noActive do local key = {} for j, t in ipairs(attemptOrder) do if j > noActive then key[t.keypos] = 'all' else local quotient = i / 2 ^ (j - 1) quotient = math.ceil(quotient) if quotient % 2 == 1 then key[t.keypos] = t.val else key[t.keypos] = 'all' end end end key = table.concat(key, '|') local attempt = cats[key] if attempt then return makeCategoryLink(attempt, title.text) end end return '' end function Protection:isIncorrect() local expiry = self.expiry return not self:shouldHaveProtectionCategory() or type(expiry) == 'number' and expiry < os.time() end function Protection:isTemplateProtectedNonTemplate() local action, namespace = self.action, self.title.namespace return self.level == 'templateeditor' and ( (action ~= 'edit' and action ~= 'move') or (namespace ~= 10 and namespace ~= 828) ) end function Protection:makeCategoryLinks() local msg = self._cfg.msg local ret = {self:makeProtectionCategory()} if self:isIncorrect() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-incorrect'], self.title.text ) end if self:isTemplateProtectedNonTemplate() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-template'], self.title.text ) end return table.concat(ret) end -------------------------------------------------------------------------------- -- Blurb class -------------------------------------------------------------------------------- local Blurb = {} Blurb.__index = Blurb Blurb.bannerTextFields = { text = true, explanation = true, tooltip = true, alt = true, link = true } function Blurb.new(protectionObj, args, cfg) return setmetatable({ _cfg = cfg, _protectionObj = protectionObj, _args = args }, Blurb) end -- Private methods -- function Blurb:_formatDate(num) -- Formats a Unix timestamp into dd Month, YYYY format. lang = lang or mw.language.getContentLanguage() local success, date = pcall( lang.formatDate, lang, self._cfg.msg['expiry-date-format'] or 'j F Y', '@' .. tostring(num) ) if success then return date end end function Blurb:_getExpandedMessage(msgKey) return self:_substituteParameters(self._cfg.msg[msgKey]) end function Blurb:_substituteParameters(msg) if not self._params then local parameterFuncs = {} parameterFuncs.CURRENTVERSION = self._makeCurrentVersionParameter -- parameterFuncs.EDITREQUEST = self._makeEditRequestParameter parameterFuncs.EXPIRY = self._makeExpiryParameter parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter parameterFuncs.IMAGELINK = self._makeImageLinkParameter parameterFuncs.INTROBLURB = self._makeIntroBlurbParameter parameterFuncs.INTROFRAGMENT = self._makeIntroFragmentParameter parameterFuncs.PAGETYPE = self._makePagetypeParameter parameterFuncs.PROTECTIONBLURB = self._makeProtectionBlurbParameter parameterFuncs.PROTECTIONDATE = self._makeProtectionDateParameter parameterFuncs.PROTECTIONLEVEL = self._makeProtectionLevelParameter parameterFuncs.PROTECTIONLOG = self._makeProtectionLogParameter parameterFuncs.TALKPAGE = self._makeTalkPageParameter parameterFuncs.TOOLTIPBLURB = self._makeTooltipBlurbParameter parameterFuncs.TOOLTIPFRAGMENT = self._makeTooltipFragmentParameter parameterFuncs.VANDAL = self._makeVandalTemplateParameter self._params = setmetatable({}, { __index = function (t, k) local param if parameterFuncs[k] then param = parameterFuncs[k](self) end param = param or '' t[k] = param return param end }) end msg = msg:gsub('${(%u+)}', self._params) return msg end function Blurb:_makeCurrentVersionParameter() -- A link to the page history or the move log, depending on the kind of -- protection. local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'move' then -- We need the move log link. return makeFullUrl( 'Special:Log', {type = 'move', page = pagename}, self:_getExpandedMessage('current-version-move-display') ) else -- We need the history link. return makeFullUrl( pagename, {action = 'history'}, self:_getExpandedMessage('current-version-edit-display') ) end end --[[function Blurb:_makeEditRequestParameter() local mEditRequest = require('Module:Submit an edit request') local action = self._protectionObj.action local level = self._protectionObj.level -- Get the edit request type. local requestType if action == 'edit' then if level == 'autoconfirmed' then requestType = 'semi' elseif level == 'extendedconfirmed' then requestType = 'extended' elseif level == 'templateeditor' then requestType = 'template' end end requestType = requestType or 'full' -- Get the display value. local display = self:_getExpandedMessage('edit-request-display') return mEditRequest._link{type = requestType, display = display} end]] function Blurb:_makeExpiryParameter() local expiry = self._protectionObj.expiry if type(expiry) == 'number' then return self:_formatDate(expiry) else return expiry end end function Blurb:_makeExplanationBlurbParameter() -- Cover special cases first. if self._protectionObj.title.namespace == 8 then -- MediaWiki namespace return self:_getExpandedMessage('explanation-blurb-nounprotect') end -- Get explanation blurb table keys local action = self._protectionObj.action local level = self._protectionObj.level local talkKey = self._protectionObj.title.isTalkPage and 'talk' or 'subject' -- Find the message in the explanation blurb table and substitute any -- parameters. local explanations = self._cfg.explanationBlurbs local msg if explanations[action][level] and explanations[action][level][talkKey] then msg = explanations[action][level][talkKey] elseif explanations[action][level] and explanations[action][level].default then msg = explanations[action][level].default elseif explanations[action].default and explanations[action].default[talkKey] then msg = explanations[action].default[talkKey] elseif explanations[action].default and explanations[action].default.default then msg = explanations[action].default.default else error(string.format( 'could not find explanation blurb for action "%s", level "%s" and talk key "%s"', action, level, talkKey ), 8) end return self:_substituteParameters(msg) end function Blurb:_makeImageLinkParameter() local imageLinks = self._cfg.imageLinks local action = self._protectionObj.action local level = self._protectionObj.level local msg if imageLinks[action][level] then msg = imageLinks[action][level] elseif imageLinks[action].default then msg = imageLinks[action].default else msg = imageLinks.edit.default end return self:_substituteParameters(msg) end function Blurb:_makeIntroBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-blurb-expiry') else return self:_getExpandedMessage('intro-blurb-noexpiry') end end function Blurb:_makeIntroFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-fragment-expiry') else return self:_getExpandedMessage('intro-fragment-noexpiry') end end function Blurb:_makePagetypeParameter() local pagetypes = self._cfg.pagetypes return pagetypes[self._protectionObj.title.namespace] or pagetypes.default or error('no default pagetype defined', 8) end function Blurb:_makeProtectionBlurbParameter() local protectionBlurbs = self._cfg.protectionBlurbs local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionBlurbs[action][level] then msg = protectionBlurbs[action][level] elseif protectionBlurbs[action].default then msg = protectionBlurbs[action].default elseif protectionBlurbs.edit.default then msg = protectionBlurbs.edit.default else error('no protection blurb defined for protectionBlurbs.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionDateParameter() local protectionDate = self._protectionObj.protectionDate if type(protectionDate) == 'number' then return self:_formatDate(protectionDate) else return protectionDate end end function Blurb:_makeProtectionLevelParameter() local protectionLevels = self._cfg.protectionLevels local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionLevels[action][level] then msg = protectionLevels[action][level] elseif protectionLevels[action].default then msg = protectionLevels[action].default elseif protectionLevels.edit.default then msg = protectionLevels.edit.default else error('no protection level defined for protectionLevels.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionLogParameter() local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'autoreview' then -- We need the pending changes log. return makeFullUrl( 'Special:Log', {type = 'stable', page = pagename}, self:_getExpandedMessage('pc-log-display') ) else -- We need the protection log. return makeFullUrl( 'Special:Log', {type = 'protect', page = pagename}, self:_getExpandedMessage('protection-log-display') ) end end function Blurb:_makeTalkPageParameter() return string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[self._protectionObj.title.namespace].talk.name, self._protectionObj.title.text, self._args.section or 'top', self:_getExpandedMessage('talk-page-link-display') ) end function Blurb:_makeTooltipBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-blurb-expiry') else return self:_getExpandedMessage('tooltip-blurb-noexpiry') end end function Blurb:_makeTooltipFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-fragment-expiry') else return self:_getExpandedMessage('tooltip-fragment-noexpiry') end end function Blurb:_makeVandalTemplateParameter() return mw.getCurrentFrame():expandTemplate{ title="vandal-m", args={self._args.user or self._protectionObj.title.baseText} } end -- Public methods -- function Blurb:makeBannerText(key) -- Validate input. if not key or not Blurb.bannerTextFields[key] then error(string.format( '"%s" is not a valid banner config field', tostring(key) ), 2) end -- Generate the text. local msg = self._protectionObj.bannerConfig[key] if type(msg) == 'string' then return self:_substituteParameters(msg) elseif type(msg) == 'function' then msg = msg(self._protectionObj, self._args) if type(msg) ~= 'string' then error(string.format( 'bad output from banner config function with key "%s"' .. ' (expected string, got %s)', tostring(key), type(msg) ), 4) end return self:_substituteParameters(msg) end end -------------------------------------------------------------------------------- -- BannerTemplate class -------------------------------------------------------------------------------- local BannerTemplate = {} BannerTemplate.__index = BannerTemplate function BannerTemplate.new(protectionObj, cfg) local obj = {} obj._cfg = cfg -- Set the image filename. local imageFilename = protectionObj.bannerConfig.image if imageFilename then obj._imageFilename = imageFilename else -- If an image filename isn't specified explicitly in the banner config, -- generate it from the protection status and the namespace. local action = protectionObj.action local level = protectionObj.level local namespace = protectionObj.title.namespace local reason = protectionObj.reason -- Deal with special cases first. if ( namespace == 10 or namespace == 828 or reason and obj._cfg.indefImageReasons[reason] ) and action == 'edit' and level == 'sysop' and not protectionObj:isTemporary() then -- Fully protected modules and templates get the special red "indef" -- padlock. obj._imageFilename = obj._cfg.msg['image-filename-indef'] else -- Deal with regular protection types. local images = obj._cfg.images if images[action] then if images[action][level] then obj._imageFilename = images[action][level] elseif images[action].default then obj._imageFilename = images[action].default end end end end return setmetatable(obj, BannerTemplate) end function BannerTemplate:renderImage(protectionObj, cfg) local action = protectionObj.action local level = protectionObj.level local filename = self._imageFilename or cfg.images[action][level] or 'Transparent.gif' return makeFileLink{ file = filename, size = (self.imageWidth or 20) .. 'px', alt = self._imageAlt, link = self._imageLink, caption = self.imageCaption } end -------------------------------------------------------------------------------- -- Banner class -------------------------------------------------------------------------------- local Banner = setmetatable({}, BannerTemplate) Banner.__index = Banner function Banner.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 40 obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip. obj._reasonText = blurbObj:makeBannerText('text') obj._explanationText = blurbObj:makeBannerText('explanation') obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing. return Banner:__tostring(protectionObj, cfg, obj) end function Banner:__tostring(protectionObj, cfg, obj) -- Renders the banner. makeMessageBox = makeMessageBox or require('Module:Message box').main local reasonText = obj._reasonText or error('no reason text set', 2) local explanationText = obj._explanationText local mbargs = { page = self._page, type = 'protection', image = self:renderImage(protectionObj, cfg), text = string.format( "'''%s'''%s", reasonText, explanationText and '<br />' .. explanationText or '' ) } return makeMessageBox('mbox', mbargs) end -------------------------------------------------------------------------------- -- Padlock class -------------------------------------------------------------------------------- local Padlock = setmetatable({}, BannerTemplate) Padlock.__index = Padlock function Padlock.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 20 obj.imageCaption = blurbObj:makeBannerText('tooltip') obj._imageAlt = blurbObj:makeBannerText('alt') obj._imageLink = blurbObj:makeBannerText('link') obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action] or cfg.padlockIndicatorNames.default or 'pp-default' return Padlock:__tostring(protectionObj, cfg, obj) end function Padlock:__tostring(protectionObj, cfg, obj) local frame = mw.getCurrentFrame() -- The nowiki tag helps prevent whitespace at the top of articles. return frame:extensionTag{ name = 'indicator', args = {name = obj._indicatorName}, content = self:renderImage(protectionObj, cfg) } end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p = {} function p._exportClasses() -- This is used for testing purposes. return { Protection = Protection, Blurb = Blurb, BannerTemplate = BannerTemplate, Banner = Banner, Padlock = Padlock, } end function p._main(args, cfg, title) args = args or {} cfg = cfg or require(CONFIG_MODULE) local protectionObj = Protection.new(args, cfg, title) local ret = {} -- If a page's edit protection is equally or more restrictive than its -- protection from some other action, then don't bother displaying anything -- for the other action (except categories). if not yesno(args.catonly) and (protectionObj.action == 'edit' or args.demolevel or not getReachableNodes( cfg.hierarchy, protectionObj.level )[effectiveProtectionLevel('edit', protectionObj.title)]) then -- Initialise the blurb object local blurbObj = Blurb.new(protectionObj, args, cfg) -- Render the banner if protectionObj:shouldShowLock() then if yesno(args.small) == true and Padlock then ret[#ret + 1] = Padlock.new(protectionObj, blurbObj, cfg) elseif args.small == nil and Banner then ret[#ret + 1] = tostring( Banner.new(protectionObj, blurbObj, cfg) ) end end end -- Render the categories if yesno(args.category) ~= false then ret[#ret + 1] = protectionObj:makeCategoryLinks() end return table.concat(ret) end function p.main(frame, cfg) cfg = cfg or require(CONFIG_MODULE) -- Find default args, if any. local parent = frame.getParent and frame:getParent() local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandbox$', '')] -- Find user args, and use the parent frame if we are being called from a -- wrapper template. -- getArgs = getArgs or require('Module:Arguments').getArgs -- local userArgs = getArgs(frame, { -- parentOnly = defaultArgs, -- frameOnly = not defaultArgs -- }) -- Build the args table. User-specified args overwrite default args. -- local args = {} -- for k, v in pairs(defaultArgs or {}) do -- args[k] = v -- end -- for k, v in pairs(userArgs) do -- args[k] = v -- end return p._main(parent.args, cfg) end return p jb9p6k9adva3nxem7d7pxq0hfkk20qu Module:Protection banner/config 828 167705 1975411 1869660 2026-04-18T02:24:50Z en>Santiago Claudio 0 Sync with sandbox per edit request 1975411 Scribunto text/plain -- This module provides configuration data for [[Module:Protection banner]]. return { -------------------------------------------------------------------------------- -- -- BANNER DATA -- -------------------------------------------------------------------------------- --[[ -- Banner data consists of six fields: -- * text - the main protection text that appears at the top of protection -- banners. -- * explanation - the text that appears below the main protection text, used -- to explain the details of the protection. -- * tooltip - the tooltip text you see when you move the mouse over a small -- padlock icon. -- * link - the page that the small padlock icon links to. -- * alt - the alt text for the small padlock icon. This is also used as tooltip -- text for the large protection banners. -- * image - the padlock image used in both protection banners and small padlock -- icons. -- -- The module checks in three separate tables to find a value for each field. -- First it checks the banners table, which has values specific to the reason -- for the page being protected. Then the module checks the defaultBanners -- table, which has values specific to each protection level. Finally, the -- module checks the masterBanner table, which holds data for protection -- templates to use if no data has been found in the previous two tables. -- -- The values in the banner data can take parameters. These are specified -- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name -- enclosed in curly braces). -- -- Available parameters: -- -- ${CURRENTVERSION} - a link to the page history or the move log, with the -- display message "current-version-edit-display" or -- "current-version-move-display". -- -- ${EDITREQUEST} - a link to create an edit request for the current page. -- -- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes -- on the talk page; you may submit a request to ask an administrator to make -- an edit if it is minor or supported by consensus." -- -- ${IMAGELINK} - a link to set the image to, depending on the protection -- action and protection level. -- -- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry -- is set. E.g. "Editing of this page by new or unregistered users is currently -- disabled until dd Month YYYY." -- -- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation -- so that it can be used in run-on sentences. -- -- ${PAGETYPE} - the type of the page, e.g. "article" or "template". -- Defined in the cfg.pagetypes table. -- -- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g. -- "Editing of this page by new or unregistered users is currently disabled" -- -- ${PROTECTIONDATE} - the protection date, if it has been supplied to the -- template. -- -- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or -- "semi-protected". -- -- ${PROTECTIONLOG} - a link to the protection log or the pending changes log, -- depending on the protection action. -- -- ${TALKPAGE} - a link to the talk page. If a section is specified, links -- straight to that talk page section. -- -- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to -- create a blurb like "This template is semi-protected", or "This article is -- move-protected until DD Month YYYY". -- -- ${VANDAL} - links for the specified username (or the root page name) -- using Module:Vandal-m. -- -- Functions -- -- For advanced users, it is possible to use Lua functions instead of strings -- in the banner config tables. Using functions gives flexibility that is not -- possible just by using parameters. Functions take two arguments, the -- protection object and the template arguments, and they must output a string. -- -- For example: -- -- text = function (protectionObj, args) -- if protectionObj.level == 'autoconfirmed' then -- return 'foo' -- else -- return 'bar' -- end -- end -- -- Some protection object properties and methods that may be useful: -- protectionObj.action - the protection action -- protectionObj.level - the protection level -- protectionObj.reason - the protection reason -- protectionObj.expiry - the expiry. Nil if unset, the string "indef" if set -- to indefinite, and the protection time in unix time if temporary. -- protectionObj.protectionDate - the protection date in unix time, or nil if -- unspecified. -- protectionObj.bannerConfig - the banner config found by the module. Beware -- of editing the config field used by the function, as it could create an -- infinite loop. -- protectionObj:isProtected - returns a boolean showing whether the page is -- protected. -- protectionObj:isTemporary - returns a boolean showing whether the expiry is -- temporary. -- protectionObj:isIncorrect - returns a boolean showing whether the protection -- template is incorrect. --]] -- The master banner data, used if no values have been found in banners or -- defaultBanners. masterBanner = { text = '${INTROBLURB}', explanation = '${EXPLANATIONBLURB}', tooltip = '${TOOLTIPBLURB}', link = '${IMAGELINK}', alt = 'Page ${PROTECTIONLEVEL}' }, -- The default banner data. This holds banner data for different protection -- levels. -- *required* - this table needs edit, move, autoreview and upload subtables. defaultBanners = { edit = {}, move = {}, autoreview = { default = { alt = 'Page protected with pending changes', tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', image = 'Pending-protection-shackle.svg' } }, upload = {} }, -- The banner data. This holds banner data for different protection reasons. -- In fact, the reasons specified in this table control which reasons are -- valid inputs to the first positional parameter. -- -- There is also a non-standard "description" field that can be used for items -- in this table. This is a description of the protection reason for use in the -- module documentation. -- -- *required* - this table needs edit, move, autoreview and upload subtables. banners = { edit = { blp = { description = 'For pages protected to promote compliance with the' .. ' [[Wikipedia:Biographies of living persons' .. '|biographies of living persons]] policy', text = '${INTROFRAGMENT} to promote compliance with' .. ' [[Wikipedia:Biographies of living persons' .. "|Wikipedia's&nbsp;policy on&nbsp;the&nbsp;biographies" .. ' of&nbsp;living&nbsp;people]].', tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on' .. ' biographies of living persons', }, deceased = { description = 'For user pages of Wikipedia users who are deceased', text = '${INTROFRAGMENT} to prevent vandalism of a deceased' .. ' Wikipedian\'s user page.' .. ' A family member who wishes to edit this user page can use this' .. ' user\'s ${TALKPAGE} or submit a request to [[Wikipedia:VRT|the' .. ' Volunteer Response Team]].', tooltip = '${TOOLTIPFRAGMENT} because this Wikipedian is deceased' }, dmca = { description = 'For pages protected by the Wikimedia Foundation' .. ' due to [[Digital Millennium Copyright Act]] takedown requests', explanation = function (protectionObj, args) local ret = 'Pursuant to a rights owner notice under the Digital' .. ' Millennium Copyright Act (DMCA) regarding some content' .. ' in this article, the Wikimedia Foundation acted under' .. ' applicable law and took down and restricted the content' .. ' in question.' if args.notice then ret = ret .. ' A copy of the received notice can be found here: ' .. args.notice .. '.' end ret = ret .. ' For more information, including websites discussing' .. ' how to file a counter-notice, please see' .. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}." .. "'''Do not remove this template from the article until the" .. " restrictions are withdrawn'''." return ret end, image = 'Office-protection-shackle.svg', link = 'Wikipedia:Protection policy#office', }, dispute = { description = 'For pages protected due to editing disputes', text = function (protectionObj, args) -- Find the value of "disputes". local display = 'disputes' local disputes if args.section then disputes = string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[protectionObj.title.namespace].talk.name, protectionObj.title.text, args.section, display ) else disputes = display end -- Make the blurb, depending on the expiry. local msg if type(protectionObj.expiry) == 'number' then msg = '${INTROFRAGMENT} or until editing %s have been resolved.' else msg = '${INTROFRAGMENT} until editing %s have been resolved.' end return string.format(msg, disputes) end, explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', }, ecp = { description = 'For articles in topic areas authorized by' .. ' [[Wikipedia:Arbitration Committee|ArbCom]] or' .. ' meets the criteria for community use', alt = 'Extended-protected ${PAGETYPE}', }, mainpage = { description = 'For pages protected for being displayed on the [[Main Page]]', text = 'This file is currently' .. ' [[Wikipedia:This page is protected|protected]] from' .. ' editing because it is currently or will soon be displayed' .. ' on the [[Main Page]].', explanation = 'Images on the Main Page are protected due to their high' .. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.' .. '<br /><span style="font-size:90%;">' .. "'''Administrators:''' Once this image is definitely off the Main Page," .. ' please unprotect this file, or reduce to semi-protection,' .. ' as appropriate.</span>', }, office = { description = 'For pages protected by the Wikimedia Foundation', text = function (protectionObj, args) local ret = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.' if protectionObj.protectionDate then ret = ret .. ' It has been protected since ${PROTECTIONDATE}.' end return ret end, explanation = "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this" .. " page unless you are authorized by the Wikimedia Foundation to do" .. " so.'''", image = 'Office-protection-shackle.svg', link = 'Wikipedia:Protection policy#office', }, reset = { description = 'For pages protected by the Wikimedia Foundation and' .. ' "reset" to a bare-bones version', text = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.', explanation = function (protectionObj, args) local ret = '' if protectionObj.protectionDate then ret = ret .. 'On ${PROTECTIONDATE} this ${PAGETYPE} was' else ret = ret .. 'This ${PAGETYPE} has been' end ret = ret .. ' reduced to a' .. ' simplified, "bare bones" version so that it may be completely' .. ' rewritten to ensure it meets the policies of' .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].' .. ' Standard Wikipedia policies will apply to its rewriting—which' .. ' will eventually be open to all editors—and will be strictly' .. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while' .. ' it is being rebuilt.\n\n' .. 'Any insertion of material directly from' .. ' pre-protection revisions of the ${PAGETYPE} will be removed, as' .. ' will any material added to the ${PAGETYPE} that is not properly' .. ' sourced. The associated talk page(s) were also cleared on the' .. " same date.\n\n" .. "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not override" .. " this action, and do not remove protection from this page," .. " unless you are authorized by the Wikimedia Foundation" .. " to do so. No editor may remove this notice.'''" return ret end, image = 'Office-protection-shackle.svg', link = 'Wikipedia:Protection policy#office', }, sock = { description = 'For pages protected due to' .. ' [[Wikipedia:Sock puppetry|sock puppetry]]', text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' .. ' [[Wikipedia:Blocking policy|blocked]] or' .. ' [[Wikipedia:Banning policy|banned users]]' .. ' from editing it.', tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' .. ' editing it', }, template = { description = 'For [[Wikipedia:High-risk templates|high-risk]]' .. ' templates and Lua modules', text = 'This is a permanently [[Wikipedia:Protection policy|protected]] ${PAGETYPE},' .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] or' .. ' [[Wikipedia:Template editor|template editor]] to make an edit if' .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by' .. ' [[Wikipedia:Consensus|consensus]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' .. ' to prevent vandalism', alt = 'Permanently protected ${PAGETYPE}', }, usertalk = { description = 'For pages protected against disruptive edits by a' .. ' particular user', text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,' .. ' such as abusing the' .. ' &#123;&#123;[[Template:unblock|unblock]]&#125;&#125; template.', explanation = 'If you cannot edit this user talk page and you need to' .. ' make a change or leave a message, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for edits to a protected page' .. '|request an edit]],' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]],' .. ' [[Special:Userlogin|log in]],' .. ' or [[Special:UserLogin/signup|create an account]].', }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism|vandalism]]', text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].', explanation = function (protectionObj, args) local ret = '' if protectionObj.level == 'sysop' then ret = ret .. "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ' end return ret .. '${EXPLANATIONBLURB}' end, tooltip = '${TOOLTIPFRAGMENT} due to vandalism', } }, move = { dispute = { description = 'For pages protected against page moves due to' .. ' disputes over the page title', explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', image = 'Move-protection-shackle.svg' }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism#Page-move vandalism' .. ' |page-move vandalism]]' } }, autoreview = {}, upload = {} }, -------------------------------------------------------------------------------- -- -- GENERAL DATA TABLES -- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Protection blurbs -------------------------------------------------------------------------------- -- This table produces the protection blurbs available with the -- ${PROTECTIONBLURB} parameter. It is sorted by protection action and -- protection level, and is checked by the module in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionBlurbs = { edit = { default = 'This ${PAGETYPE} is currently [[Wikipedia:Protection policy#full|' .. 'protected]] from editing', templateeditor = 'This ${PAGETYPE} is currently [[Wikipedia:Protection policy#template' .. '|protected]] from editing', autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access' .. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered' .. ' users|unregistered]] users is currently [[Wikipedia:Protection' .. ' policy#semi|disabled]]', extendedconfirmed = 'This ${PAGETYPE} is currently under [[Wikipedia:Protection' .. ' policy#extended|extended confirmed protection]]', }, move = { default = 'This ${PAGETYPE} is currently [[Wikipedia:Protection policy#Move' .. ' protection|protected]] from [[Help:Moving a page|page moves]]' }, autoreview = { default = 'All edits made to this ${PAGETYPE} by' .. ' [[Wikipedia:User access levels#New users|new]] or' .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]' .. ' users are currently' .. ' [[Wikipedia:Pending changes|subject to review]]' }, upload = { default = 'Uploading new versions of this ${PAGETYPE} is currently disabled' } }, -------------------------------------------------------------------------------- -- Explanation blurbs -------------------------------------------------------------------------------- -- This table produces the explanation blurbs available with the -- ${EXPLANATIONBLURB} parameter. It is sorted by protection action, -- protection level, and whether the page is a talk page or not. If the page is -- a talk page it will have a talk key of "talk"; otherwise it will have a talk -- key of "subject". The table is checked in the following order: -- 1. page's protection action, page's protection level, page's talk key -- 2. page's protection action, page's protection level, default talk key -- 3. page's protection action, default protection level, page's talk key -- 4. page's protection action, default protection level, default talk key -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. explanationBlurbs = { edit = { autoconfirmed = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', }, extendedconfirmed = { default = 'Extended confirmed protection prevents edits from all unregistered editors' .. ' and registered users with fewer than 30 days tenure and 500 edits.' .. ' The [[Wikipedia:Protection policy#extended|policy on community use]]' .. ' specifies that extended confirmed protection can be applied to combat' .. ' disruption, if semi-protection has proven to be ineffective.' .. ' Extended confirmed protection may also be applied to enforce' .. ' [[Wikipedia:Arbitration Committee|arbitration sanctions]].' .. ' Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask for uncontroversial changes supported by' .. ' [[Wikipedia:Consensus|consensus]].' }, default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]]. You may also [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|request]] that this page be unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' You may [[Wikipedia:Requests for page' .. ' protection#Current requests for edits to a protected page|request an' .. ' edit]] to this page, or [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|ask]] for it to be unprotected.' } }, move = { default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves on the' .. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves at' .. ' [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.' } }, autoreview = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Edits to this ${PAGETYPE} by new and unregistered users' .. ' will not be visible to readers until they are accepted by' .. ' a reviewer. To avoid the need for your edits to be' .. ' reviewed, you may' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].' }, }, upload = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but new versions of the file' .. ' cannot be uploaded until it is unprotected. You can' .. ' request that a new version be uploaded by using a' .. ' [[Wikipedia:Edit requests|protected edit request]], or you' .. ' can [[Wikipedia:Requests for page protection|request]]' .. ' that the file be unprotected.' } } }, -------------------------------------------------------------------------------- -- Protection levels -------------------------------------------------------------------------------- -- This table provides the data for the ${PROTECTIONLEVEL} parameter, which -- produces a short label for different protection levels. It is sorted by -- protection action and protection level, and is checked in the following -- order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionLevels = { edit = { default = 'protected', templateeditor = 'template-protected', extendedconfirmed = 'extended-confirmed-protected', autoconfirmed = 'semi-protected', }, move = { default = 'move-protected' }, autoreview = { }, upload = { default = 'upload-protected' } }, -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- This table lists different padlock images for each protection action and -- protection level. It is used if an image is not specified in any of the -- banner data tables, and if the page does not satisfy the conditions for using -- the ['image-filename-indef'] image. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level images = { edit = { default = 'Full-protection-shackle.svg', templateeditor = 'Template-protection-shackle.svg', extendedconfirmed = 'Extended-protection-shackle.svg', autoconfirmed = 'Semi-protection-shackle.svg' }, move = { default = 'Move-protection-shackle.svg', }, autoreview = { default = 'Pending-protection-shackle.svg' }, upload = { default = 'Upload-protection-shackle.svg' } }, -- Pages with a reason specified in this table will show the special "indef" -- padlock, defined in the 'image-filename-indef' message, if no expiry is set. indefImageReasons = { template = true }, -------------------------------------------------------------------------------- -- Image links -------------------------------------------------------------------------------- -- This table provides the data for the ${IMAGELINK} parameter, which gets -- the image link for small padlock icons based on the page's protection action -- and protection level. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. imageLinks = { edit = { default = 'Wikipedia:Protection policy#full', templateeditor = 'Wikipedia:Protection policy#template', extendedconfirmed = 'Wikipedia:Protection policy#extended', autoconfirmed = 'Wikipedia:Protection policy#semi' }, move = { default = 'Wikipedia:Protection policy#move' }, autoreview = { default = 'Wikipedia:Protection policy#pending' }, upload = { default = 'Wikipedia:Protection policy#upload' } }, -------------------------------------------------------------------------------- -- Padlock indicator names -------------------------------------------------------------------------------- -- This table provides the "name" attribute for the <indicator> extension tag -- with which small padlock icons are generated. All indicator tags on a page -- are displayed in alphabetical order based on this attribute, and with -- indicator tags with duplicate names, the last tag on the page wins. -- The attribute is chosen based on the protection action; table keys must be a -- protection action name or the string "default". padlockIndicatorNames = { autoreview = 'pp-autoreview', default = 'pp-default' }, -------------------------------------------------------------------------------- -- Protection categories -------------------------------------------------------------------------------- --[[ -- The protection categories are stored in the protectionCategories table. -- Keys to this table are made up of the following strings: -- -- 1. the expiry date -- 2. the namespace -- 3. the protection reason (e.g. "dispute" or "vandalism") -- 4. the protection level (e.g. "sysop" or "autoconfirmed") -- 5. the action (e.g. "edit" or "move") -- -- When the module looks up a category in the table, first it will will check to -- see a key exists that corresponds to all five parameters. For example, a -- user page semi-protected from vandalism for two weeks would have the key -- "temp-user-vandalism-autoconfirmed-edit". If no match is found, the module -- changes the first part of the key to "all" and checks the table again. It -- keeps checking increasingly generic key combinations until it finds the -- field, or until it reaches the key "all-all-all-all-all". -- -- The module uses a binary matrix to determine the order in which to search. -- This is best demonstrated by a table. In this table, the "0" values -- represent "all", and the "1" values represent the original data (e.g. -- "indef" or "file" or "vandalism"). -- -- expiry namespace reason level action -- order -- 1 1 1 1 1 1 -- 2 0 1 1 1 1 -- 3 1 0 1 1 1 -- 4 0 0 1 1 1 -- 5 1 1 0 1 1 -- 6 0 1 0 1 1 -- 7 1 0 0 1 1 -- 8 0 0 0 1 1 -- 9 1 1 1 0 1 -- 10 0 1 1 0 1 -- 11 1 0 1 0 1 -- 12 0 0 1 0 1 -- 13 1 1 0 0 1 -- 14 0 1 0 0 1 -- 15 1 0 0 0 1 -- 16 0 0 0 0 1 -- 17 1 1 1 1 0 -- 18 0 1 1 1 0 -- 19 1 0 1 1 0 -- 20 0 0 1 1 0 -- 21 1 1 0 1 0 -- 22 0 1 0 1 0 -- 23 1 0 0 1 0 -- 24 0 0 0 1 0 -- 25 1 1 1 0 0 -- 26 0 1 1 0 0 -- 27 1 0 1 0 0 -- 28 0 0 1 0 0 -- 29 1 1 0 0 0 -- 30 0 1 0 0 0 -- 31 1 0 0 0 0 -- 32 0 0 0 0 0 -- -- In this scheme the action has the highest priority, as it is the last -- to change, and the expiry has the least priority, as it changes the most. -- The priorities of the expiry, the protection level and the action are -- fixed, but the priorities of the reason and the namespace can be swapped -- through the use of the cfg.bannerDataNamespaceHasPriority table. --]] -- If the reason specified to the template is listed in this table, -- namespace data will take priority over reason data in the protectionCategories -- table. reasonsWithNamespacePriority = { vandalism = true, }, -- The string to use as a namespace key for the protectionCategories table for each -- namespace number. categoryNamespaceKeys = { [ 2] = 'user', [ 3] = 'user', [ 4] = 'project', [ 6] = 'file', [ 8] = 'mediawiki', [ 10] = 'template', [ 12] = 'project', [ 14] = 'category', [100] = 'portal', [828] = 'module', }, protectionCategories = { ['all|all|all|all|all'] = 'Wikipedia fully protected pages', ['all|all|office|all|all'] = 'Wikipedia Office-protected pages', ['all|all|reset|all|all'] = 'Wikipedia Office-protected pages', ['all|all|dmca|all|all'] = 'Wikipedia Office-protected pages', ['all|all|mainpage|all|all'] = 'Wikipedia fully protected main page files', ['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|template|all|all|edit'] = 'Wikipedia fully protected templates', ['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', ['indef|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected pages', ['all|all|blp|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living people', ['temp|all|blp|autoconfirmed|edit'] = 'Wikipedia temporarily semi-protected biographies of living people', ['all|all|dispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected due to dispute', ['all|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected from banned users', ['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism', ['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories', ['all|file|all|autoconfirmed|edit'] = 'Wikipedia semi-protected files', ['all|portal|all|autoconfirmed|edit'] = 'Wikipedia semi-protected portals', ['all|project|all|autoconfirmed|edit'] = 'Wikipedia semi-protected project pages', ['all|talk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected talk pages', ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', ['all|all|all|templateeditor|move'] = 'Wikipedia template-protected pages other than templates and modules', ['all|all|all|templateeditor|edit'] = 'Wikipedia template-protected pages other than templates and modules', ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected templates ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', ['all|category|all|sysop|edit'] = 'Wikipedia fully protected categories', ['all|file|all|sysop|edit'] = 'Wikipedia fully protected files', ['all|project|all|sysop|edit'] = 'Wikipedia fully protected project pages', ['all|talk|all|sysop|edit'] = 'Wikipedia fully protected talk pages', ['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates', ['all|template|all|extendedconfirmed|move'] = 'Wikipedia extended-confirmed-protected templates', ['all|template|all|sysop|edit'] = 'Wikipedia fully protected templates', ['all|user|all|sysop|edit'] = 'Wikipedia fully protected user and user talk pages', ['all|module|all|all|edit'] = 'Wikipedia fully protected modules', ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', ['all|module|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected modules', ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', ['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', ['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages', ['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages', ['all|template|all|sysop|move'] = 'Wikipedia move-protected templates', ['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages', ['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages', ['all|file|all|all|upload'] = 'Wikipedia upload-protected files', }, -------------------------------------------------------------------------------- -- Expiry category config -------------------------------------------------------------------------------- -- This table configures the expiry category behaviour for each protection -- action. -- * If set to true, setting that action will always categorise the page if -- an expiry parameter is not set. -- * If set to false, setting that action will never categorise the page. -- * If set to nil, the module will categorise the page if: -- 1) an expiry parameter is not set, and -- 2) a reason is provided, and -- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck -- table. expiryCheckActions = { edit = nil, move = false, autoreview = true, upload = false }, reasonsWithoutExpiryCheck = { blp = true, template = true, }, -------------------------------------------------------------------------------- -- Pagetypes -------------------------------------------------------------------------------- -- This table produces the page types available with the ${PAGETYPE} parameter. -- Keys are namespace numbers, or the string "default" for the default value. pagetypes = { [0] = 'article', [6] = 'file', [10] = 'template', [14] = 'category', [828] = 'module', default = 'page' }, -------------------------------------------------------------------------------- -- Strings marking indefinite protection -------------------------------------------------------------------------------- -- This table contains values passed to the expiry parameter that mean the page -- is protected indefinitely. indefStrings = { ['indef'] = true, ['indefinite'] = true, ['indefinitely'] = true, ['infinite'] = true, }, -------------------------------------------------------------------------------- -- Group hierarchy -------------------------------------------------------------------------------- -- This table maps each group to all groups that have a superset of the original -- group's page editing permissions. hierarchy = { sysop = {}, reviewer = {'sysop'}, filemover = {'sysop'}, templateeditor = {'sysop'}, extendedconfirmed = {'sysop'}, autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'}, user = {'autoconfirmed'}, ['*'] = {'user'} }, -------------------------------------------------------------------------------- -- Wrapper templates and their default arguments -------------------------------------------------------------------------------- -- This table contains wrapper templates used with the module, and their -- default arguments. Templates specified in this table should contain the -- following invocation, and no other template content: -- -- {{#invoke:Protection banner|main}} -- -- If other content is desired, it can be added between -- <noinclude>...</noinclude> tags. -- -- When a user calls one of these wrapper templates, they will use the -- default arguments automatically. However, users can override any of the -- arguments. wrappers = { ['Template:Pp'] = {}, ['Template:Protection padlock'] = {}, ['Template:Pp-extended'] = {'ecp'}, ['Template:Pp-blp'] = {'blp'}, -- we don't need Template:Pp-create ['Template:Pp-dispute'] = {'dispute'}, ['Template:Pp-main-page'] = {'mainpage'}, ['Template:Pp-move'] = {action = 'move', catonly = 'yes'}, ['Template:Pp-move-dispute'] = {'dispute', action = 'move', catonly = 'yes'}, -- we don't need Template:Pp-move-indef ['Template:Pp-move-vandalism'] = {'vandalism', action = 'move', catonly = 'yes'}, ['Template:Pp-office'] = {'office'}, ['Template:Pp-office-dmca'] = {'dmca'}, ['Template:Pp-pc'] = {action = 'autoreview', small = true}, ['Template:Pp-pc1'] = {action = 'autoreview', small = true}, ['Template:Pp-reset'] = {'reset'}, ['Template:Pp-semi-indef'] = {small = true}, ['Template:Pp-sock'] = {'sock'}, ['Template:Pp-template'] = {'template', small = true}, ['Template:Pp-upload'] = {action = 'upload'}, ['Template:Pp-usertalk'] = {'usertalk'}, ['Template:Pp-vandalism'] = {'vandalism'}, }, -------------------------------------------------------------------------------- -- -- MESSAGES -- -------------------------------------------------------------------------------- msg = { -------------------------------------------------------------------------------- -- Intro blurb and intro fragment -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${INTROBLURB} and -- ${INTROFRAGMENT} parameters. If the protection is temporary they use the -- intro-blurb-expiry or intro-fragment-expiry, and if not they use -- intro-blurb-noexpiry or intro-fragment-noexpiry. -- It is possible to use banner parameters in these messages. ['intro-blurb-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY}.', ['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.', ['intro-fragment-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY},', ['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}', -------------------------------------------------------------------------------- -- Tooltip blurb -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${TOOLTIPBLURB} parameter. -- If the protection is temporary the tooltip-blurb-expiry message is used, and -- if not the tooltip-blurb-noexpiry message is used. -- It is possible to use banner parameters in these messages. ['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', ['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.', ['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},', ['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', -------------------------------------------------------------------------------- -- Special explanation blurb -------------------------------------------------------------------------------- -- An explanation blurb for pages that cannot be unprotected, e.g. for pages -- in the MediaWiki namespace. -- It is possible to use banner parameters in this message. ['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]].', -------------------------------------------------------------------------------- -- Protection log display values -------------------------------------------------------------------------------- -- These messages determine the display values for the protection log link -- or the pending changes log link produced by the ${PROTECTIONLOG} parameter. -- It is possible to use banner parameters in these messages. ['protection-log-display'] = 'protection log', ['pc-log-display'] = 'pending changes log', -------------------------------------------------------------------------------- -- Current version display values -------------------------------------------------------------------------------- -- These messages determine the display values for the page history link -- or the move log link produced by the ${CURRENTVERSION} parameter. -- It is possible to use banner parameters in these messages. ['current-version-move-display'] = 'current title', ['current-version-edit-display'] = 'current version', -------------------------------------------------------------------------------- -- Talk page -------------------------------------------------------------------------------- -- This message determines the display value of the talk page link produced -- with the ${TALKPAGE} parameter. -- It is possible to use banner parameters in this message. ['talk-page-link-display'] = 'talk page', -------------------------------------------------------------------------------- -- Edit requests -------------------------------------------------------------------------------- -- This message determines the display value of the edit request link produced -- with the ${EDITREQUEST} parameter. -- It is possible to use banner parameters in this message. ['edit-request-display'] = 'submit an edit request', -------------------------------------------------------------------------------- -- Expiry date format -------------------------------------------------------------------------------- -- This is the format for the blurb expiry date. It should be valid input for -- the first parameter of the #time parser function. ['expiry-date-format'] = 'F j, Y "at" H:i e', -------------------------------------------------------------------------------- -- Tracking categories -------------------------------------------------------------------------------- -- These messages determine which tracking categories the module outputs. ['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates', ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- These are images that are not defined by their protection action and protection level. ['image-filename-indef'] = 'Full-protection-shackle.svg', ['image-filename-default'] = 'Transparent.gif', -------------------------------------------------------------------------------- -- End messages -------------------------------------------------------------------------------- } -------------------------------------------------------------------------------- -- End configuration -------------------------------------------------------------------------------- } g4f6dkimoikv05ulbf832zu7omkf2fc 1975412 1975411 2026-08-15T16:50:46Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Protection_banner/config]] 1975411 Scribunto text/plain -- This module provides configuration data for [[Module:Protection banner]]. return { -------------------------------------------------------------------------------- -- -- BANNER DATA -- -------------------------------------------------------------------------------- --[[ -- Banner data consists of six fields: -- * text - the main protection text that appears at the top of protection -- banners. -- * explanation - the text that appears below the main protection text, used -- to explain the details of the protection. -- * tooltip - the tooltip text you see when you move the mouse over a small -- padlock icon. -- * link - the page that the small padlock icon links to. -- * alt - the alt text for the small padlock icon. This is also used as tooltip -- text for the large protection banners. -- * image - the padlock image used in both protection banners and small padlock -- icons. -- -- The module checks in three separate tables to find a value for each field. -- First it checks the banners table, which has values specific to the reason -- for the page being protected. Then the module checks the defaultBanners -- table, which has values specific to each protection level. Finally, the -- module checks the masterBanner table, which holds data for protection -- templates to use if no data has been found in the previous two tables. -- -- The values in the banner data can take parameters. These are specified -- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name -- enclosed in curly braces). -- -- Available parameters: -- -- ${CURRENTVERSION} - a link to the page history or the move log, with the -- display message "current-version-edit-display" or -- "current-version-move-display". -- -- ${EDITREQUEST} - a link to create an edit request for the current page. -- -- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes -- on the talk page; you may submit a request to ask an administrator to make -- an edit if it is minor or supported by consensus." -- -- ${IMAGELINK} - a link to set the image to, depending on the protection -- action and protection level. -- -- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry -- is set. E.g. "Editing of this page by new or unregistered users is currently -- disabled until dd Month YYYY." -- -- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation -- so that it can be used in run-on sentences. -- -- ${PAGETYPE} - the type of the page, e.g. "article" or "template". -- Defined in the cfg.pagetypes table. -- -- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g. -- "Editing of this page by new or unregistered users is currently disabled" -- -- ${PROTECTIONDATE} - the protection date, if it has been supplied to the -- template. -- -- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or -- "semi-protected". -- -- ${PROTECTIONLOG} - a link to the protection log or the pending changes log, -- depending on the protection action. -- -- ${TALKPAGE} - a link to the talk page. If a section is specified, links -- straight to that talk page section. -- -- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to -- create a blurb like "This template is semi-protected", or "This article is -- move-protected until DD Month YYYY". -- -- ${VANDAL} - links for the specified username (or the root page name) -- using Module:Vandal-m. -- -- Functions -- -- For advanced users, it is possible to use Lua functions instead of strings -- in the banner config tables. Using functions gives flexibility that is not -- possible just by using parameters. Functions take two arguments, the -- protection object and the template arguments, and they must output a string. -- -- For example: -- -- text = function (protectionObj, args) -- if protectionObj.level == 'autoconfirmed' then -- return 'foo' -- else -- return 'bar' -- end -- end -- -- Some protection object properties and methods that may be useful: -- protectionObj.action - the protection action -- protectionObj.level - the protection level -- protectionObj.reason - the protection reason -- protectionObj.expiry - the expiry. Nil if unset, the string "indef" if set -- to indefinite, and the protection time in unix time if temporary. -- protectionObj.protectionDate - the protection date in unix time, or nil if -- unspecified. -- protectionObj.bannerConfig - the banner config found by the module. Beware -- of editing the config field used by the function, as it could create an -- infinite loop. -- protectionObj:isProtected - returns a boolean showing whether the page is -- protected. -- protectionObj:isTemporary - returns a boolean showing whether the expiry is -- temporary. -- protectionObj:isIncorrect - returns a boolean showing whether the protection -- template is incorrect. --]] -- The master banner data, used if no values have been found in banners or -- defaultBanners. masterBanner = { text = '${INTROBLURB}', explanation = '${EXPLANATIONBLURB}', tooltip = '${TOOLTIPBLURB}', link = '${IMAGELINK}', alt = 'Page ${PROTECTIONLEVEL}' }, -- The default banner data. This holds banner data for different protection -- levels. -- *required* - this table needs edit, move, autoreview and upload subtables. defaultBanners = { edit = {}, move = {}, autoreview = { default = { alt = 'Page protected with pending changes', tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', image = 'Pending-protection-shackle.svg' } }, upload = {} }, -- The banner data. This holds banner data for different protection reasons. -- In fact, the reasons specified in this table control which reasons are -- valid inputs to the first positional parameter. -- -- There is also a non-standard "description" field that can be used for items -- in this table. This is a description of the protection reason for use in the -- module documentation. -- -- *required* - this table needs edit, move, autoreview and upload subtables. banners = { edit = { blp = { description = 'For pages protected to promote compliance with the' .. ' [[Wikipedia:Biographies of living persons' .. '|biographies of living persons]] policy', text = '${INTROFRAGMENT} to promote compliance with' .. ' [[Wikipedia:Biographies of living persons' .. "|Wikipedia's&nbsp;policy on&nbsp;the&nbsp;biographies" .. ' of&nbsp;living&nbsp;people]].', tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on' .. ' biographies of living persons', }, deceased = { description = 'For user pages of Wikipedia users who are deceased', text = '${INTROFRAGMENT} to prevent vandalism of a deceased' .. ' Wikipedian\'s user page.' .. ' A family member who wishes to edit this user page can use this' .. ' user\'s ${TALKPAGE} or submit a request to [[Wikipedia:VRT|the' .. ' Volunteer Response Team]].', tooltip = '${TOOLTIPFRAGMENT} because this Wikipedian is deceased' }, dmca = { description = 'For pages protected by the Wikimedia Foundation' .. ' due to [[Digital Millennium Copyright Act]] takedown requests', explanation = function (protectionObj, args) local ret = 'Pursuant to a rights owner notice under the Digital' .. ' Millennium Copyright Act (DMCA) regarding some content' .. ' in this article, the Wikimedia Foundation acted under' .. ' applicable law and took down and restricted the content' .. ' in question.' if args.notice then ret = ret .. ' A copy of the received notice can be found here: ' .. args.notice .. '.' end ret = ret .. ' For more information, including websites discussing' .. ' how to file a counter-notice, please see' .. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}." .. "'''Do not remove this template from the article until the" .. " restrictions are withdrawn'''." return ret end, image = 'Office-protection-shackle.svg', link = 'Wikipedia:Protection policy#office', }, dispute = { description = 'For pages protected due to editing disputes', text = function (protectionObj, args) -- Find the value of "disputes". local display = 'disputes' local disputes if args.section then disputes = string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[protectionObj.title.namespace].talk.name, protectionObj.title.text, args.section, display ) else disputes = display end -- Make the blurb, depending on the expiry. local msg if type(protectionObj.expiry) == 'number' then msg = '${INTROFRAGMENT} or until editing %s have been resolved.' else msg = '${INTROFRAGMENT} until editing %s have been resolved.' end return string.format(msg, disputes) end, explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', }, ecp = { description = 'For articles in topic areas authorized by' .. ' [[Wikipedia:Arbitration Committee|ArbCom]] or' .. ' meets the criteria for community use', alt = 'Extended-protected ${PAGETYPE}', }, mainpage = { description = 'For pages protected for being displayed on the [[Main Page]]', text = 'This file is currently' .. ' [[Wikipedia:This page is protected|protected]] from' .. ' editing because it is currently or will soon be displayed' .. ' on the [[Main Page]].', explanation = 'Images on the Main Page are protected due to their high' .. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.' .. '<br /><span style="font-size:90%;">' .. "'''Administrators:''' Once this image is definitely off the Main Page," .. ' please unprotect this file, or reduce to semi-protection,' .. ' as appropriate.</span>', }, office = { description = 'For pages protected by the Wikimedia Foundation', text = function (protectionObj, args) local ret = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.' if protectionObj.protectionDate then ret = ret .. ' It has been protected since ${PROTECTIONDATE}.' end return ret end, explanation = "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this" .. " page unless you are authorized by the Wikimedia Foundation to do" .. " so.'''", image = 'Office-protection-shackle.svg', link = 'Wikipedia:Protection policy#office', }, reset = { description = 'For pages protected by the Wikimedia Foundation and' .. ' "reset" to a bare-bones version', text = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.', explanation = function (protectionObj, args) local ret = '' if protectionObj.protectionDate then ret = ret .. 'On ${PROTECTIONDATE} this ${PAGETYPE} was' else ret = ret .. 'This ${PAGETYPE} has been' end ret = ret .. ' reduced to a' .. ' simplified, "bare bones" version so that it may be completely' .. ' rewritten to ensure it meets the policies of' .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].' .. ' Standard Wikipedia policies will apply to its rewriting—which' .. ' will eventually be open to all editors—and will be strictly' .. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while' .. ' it is being rebuilt.\n\n' .. 'Any insertion of material directly from' .. ' pre-protection revisions of the ${PAGETYPE} will be removed, as' .. ' will any material added to the ${PAGETYPE} that is not properly' .. ' sourced. The associated talk page(s) were also cleared on the' .. " same date.\n\n" .. "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not override" .. " this action, and do not remove protection from this page," .. " unless you are authorized by the Wikimedia Foundation" .. " to do so. No editor may remove this notice.'''" return ret end, image = 'Office-protection-shackle.svg', link = 'Wikipedia:Protection policy#office', }, sock = { description = 'For pages protected due to' .. ' [[Wikipedia:Sock puppetry|sock puppetry]]', text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' .. ' [[Wikipedia:Blocking policy|blocked]] or' .. ' [[Wikipedia:Banning policy|banned users]]' .. ' from editing it.', tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' .. ' editing it', }, template = { description = 'For [[Wikipedia:High-risk templates|high-risk]]' .. ' templates and Lua modules', text = 'This is a permanently [[Wikipedia:Protection policy|protected]] ${PAGETYPE},' .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] or' .. ' [[Wikipedia:Template editor|template editor]] to make an edit if' .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by' .. ' [[Wikipedia:Consensus|consensus]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' .. ' to prevent vandalism', alt = 'Permanently protected ${PAGETYPE}', }, usertalk = { description = 'For pages protected against disruptive edits by a' .. ' particular user', text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,' .. ' such as abusing the' .. ' &#123;&#123;[[Template:unblock|unblock]]&#125;&#125; template.', explanation = 'If you cannot edit this user talk page and you need to' .. ' make a change or leave a message, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for edits to a protected page' .. '|request an edit]],' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]],' .. ' [[Special:Userlogin|log in]],' .. ' or [[Special:UserLogin/signup|create an account]].', }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism|vandalism]]', text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].', explanation = function (protectionObj, args) local ret = '' if protectionObj.level == 'sysop' then ret = ret .. "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ' end return ret .. '${EXPLANATIONBLURB}' end, tooltip = '${TOOLTIPFRAGMENT} due to vandalism', } }, move = { dispute = { description = 'For pages protected against page moves due to' .. ' disputes over the page title', explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', image = 'Move-protection-shackle.svg' }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism#Page-move vandalism' .. ' |page-move vandalism]]' } }, autoreview = {}, upload = {} }, -------------------------------------------------------------------------------- -- -- GENERAL DATA TABLES -- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Protection blurbs -------------------------------------------------------------------------------- -- This table produces the protection blurbs available with the -- ${PROTECTIONBLURB} parameter. It is sorted by protection action and -- protection level, and is checked by the module in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionBlurbs = { edit = { default = 'This ${PAGETYPE} is currently [[Wikipedia:Protection policy#full|' .. 'protected]] from editing', templateeditor = 'This ${PAGETYPE} is currently [[Wikipedia:Protection policy#template' .. '|protected]] from editing', autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access' .. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered' .. ' users|unregistered]] users is currently [[Wikipedia:Protection' .. ' policy#semi|disabled]]', extendedconfirmed = 'This ${PAGETYPE} is currently under [[Wikipedia:Protection' .. ' policy#extended|extended confirmed protection]]', }, move = { default = 'This ${PAGETYPE} is currently [[Wikipedia:Protection policy#Move' .. ' protection|protected]] from [[Help:Moving a page|page moves]]' }, autoreview = { default = 'All edits made to this ${PAGETYPE} by' .. ' [[Wikipedia:User access levels#New users|new]] or' .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]' .. ' users are currently' .. ' [[Wikipedia:Pending changes|subject to review]]' }, upload = { default = 'Uploading new versions of this ${PAGETYPE} is currently disabled' } }, -------------------------------------------------------------------------------- -- Explanation blurbs -------------------------------------------------------------------------------- -- This table produces the explanation blurbs available with the -- ${EXPLANATIONBLURB} parameter. It is sorted by protection action, -- protection level, and whether the page is a talk page or not. If the page is -- a talk page it will have a talk key of "talk"; otherwise it will have a talk -- key of "subject". The table is checked in the following order: -- 1. page's protection action, page's protection level, page's talk key -- 2. page's protection action, page's protection level, default talk key -- 3. page's protection action, default protection level, page's talk key -- 4. page's protection action, default protection level, default talk key -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. explanationBlurbs = { edit = { autoconfirmed = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', }, extendedconfirmed = { default = 'Extended confirmed protection prevents edits from all unregistered editors' .. ' and registered users with fewer than 30 days tenure and 500 edits.' .. ' The [[Wikipedia:Protection policy#extended|policy on community use]]' .. ' specifies that extended confirmed protection can be applied to combat' .. ' disruption, if semi-protection has proven to be ineffective.' .. ' Extended confirmed protection may also be applied to enforce' .. ' [[Wikipedia:Arbitration Committee|arbitration sanctions]].' .. ' Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask for uncontroversial changes supported by' .. ' [[Wikipedia:Consensus|consensus]].' }, default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]]. You may also [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|request]] that this page be unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' You may [[Wikipedia:Requests for page' .. ' protection#Current requests for edits to a protected page|request an' .. ' edit]] to this page, or [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|ask]] for it to be unprotected.' } }, move = { default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves on the' .. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves at' .. ' [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.' } }, autoreview = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Edits to this ${PAGETYPE} by new and unregistered users' .. ' will not be visible to readers until they are accepted by' .. ' a reviewer. To avoid the need for your edits to be' .. ' reviewed, you may' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].' }, }, upload = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but new versions of the file' .. ' cannot be uploaded until it is unprotected. You can' .. ' request that a new version be uploaded by using a' .. ' [[Wikipedia:Edit requests|protected edit request]], or you' .. ' can [[Wikipedia:Requests for page protection|request]]' .. ' that the file be unprotected.' } } }, -------------------------------------------------------------------------------- -- Protection levels -------------------------------------------------------------------------------- -- This table provides the data for the ${PROTECTIONLEVEL} parameter, which -- produces a short label for different protection levels. It is sorted by -- protection action and protection level, and is checked in the following -- order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionLevels = { edit = { default = 'protected', templateeditor = 'template-protected', extendedconfirmed = 'extended-confirmed-protected', autoconfirmed = 'semi-protected', }, move = { default = 'move-protected' }, autoreview = { }, upload = { default = 'upload-protected' } }, -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- This table lists different padlock images for each protection action and -- protection level. It is used if an image is not specified in any of the -- banner data tables, and if the page does not satisfy the conditions for using -- the ['image-filename-indef'] image. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level images = { edit = { default = 'Full-protection-shackle.svg', templateeditor = 'Template-protection-shackle.svg', extendedconfirmed = 'Extended-protection-shackle.svg', autoconfirmed = 'Semi-protection-shackle.svg' }, move = { default = 'Move-protection-shackle.svg', }, autoreview = { default = 'Pending-protection-shackle.svg' }, upload = { default = 'Upload-protection-shackle.svg' } }, -- Pages with a reason specified in this table will show the special "indef" -- padlock, defined in the 'image-filename-indef' message, if no expiry is set. indefImageReasons = { template = true }, -------------------------------------------------------------------------------- -- Image links -------------------------------------------------------------------------------- -- This table provides the data for the ${IMAGELINK} parameter, which gets -- the image link for small padlock icons based on the page's protection action -- and protection level. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. imageLinks = { edit = { default = 'Wikipedia:Protection policy#full', templateeditor = 'Wikipedia:Protection policy#template', extendedconfirmed = 'Wikipedia:Protection policy#extended', autoconfirmed = 'Wikipedia:Protection policy#semi' }, move = { default = 'Wikipedia:Protection policy#move' }, autoreview = { default = 'Wikipedia:Protection policy#pending' }, upload = { default = 'Wikipedia:Protection policy#upload' } }, -------------------------------------------------------------------------------- -- Padlock indicator names -------------------------------------------------------------------------------- -- This table provides the "name" attribute for the <indicator> extension tag -- with which small padlock icons are generated. All indicator tags on a page -- are displayed in alphabetical order based on this attribute, and with -- indicator tags with duplicate names, the last tag on the page wins. -- The attribute is chosen based on the protection action; table keys must be a -- protection action name or the string "default". padlockIndicatorNames = { autoreview = 'pp-autoreview', default = 'pp-default' }, -------------------------------------------------------------------------------- -- Protection categories -------------------------------------------------------------------------------- --[[ -- The protection categories are stored in the protectionCategories table. -- Keys to this table are made up of the following strings: -- -- 1. the expiry date -- 2. the namespace -- 3. the protection reason (e.g. "dispute" or "vandalism") -- 4. the protection level (e.g. "sysop" or "autoconfirmed") -- 5. the action (e.g. "edit" or "move") -- -- When the module looks up a category in the table, first it will will check to -- see a key exists that corresponds to all five parameters. For example, a -- user page semi-protected from vandalism for two weeks would have the key -- "temp-user-vandalism-autoconfirmed-edit". If no match is found, the module -- changes the first part of the key to "all" and checks the table again. It -- keeps checking increasingly generic key combinations until it finds the -- field, or until it reaches the key "all-all-all-all-all". -- -- The module uses a binary matrix to determine the order in which to search. -- This is best demonstrated by a table. In this table, the "0" values -- represent "all", and the "1" values represent the original data (e.g. -- "indef" or "file" or "vandalism"). -- -- expiry namespace reason level action -- order -- 1 1 1 1 1 1 -- 2 0 1 1 1 1 -- 3 1 0 1 1 1 -- 4 0 0 1 1 1 -- 5 1 1 0 1 1 -- 6 0 1 0 1 1 -- 7 1 0 0 1 1 -- 8 0 0 0 1 1 -- 9 1 1 1 0 1 -- 10 0 1 1 0 1 -- 11 1 0 1 0 1 -- 12 0 0 1 0 1 -- 13 1 1 0 0 1 -- 14 0 1 0 0 1 -- 15 1 0 0 0 1 -- 16 0 0 0 0 1 -- 17 1 1 1 1 0 -- 18 0 1 1 1 0 -- 19 1 0 1 1 0 -- 20 0 0 1 1 0 -- 21 1 1 0 1 0 -- 22 0 1 0 1 0 -- 23 1 0 0 1 0 -- 24 0 0 0 1 0 -- 25 1 1 1 0 0 -- 26 0 1 1 0 0 -- 27 1 0 1 0 0 -- 28 0 0 1 0 0 -- 29 1 1 0 0 0 -- 30 0 1 0 0 0 -- 31 1 0 0 0 0 -- 32 0 0 0 0 0 -- -- In this scheme the action has the highest priority, as it is the last -- to change, and the expiry has the least priority, as it changes the most. -- The priorities of the expiry, the protection level and the action are -- fixed, but the priorities of the reason and the namespace can be swapped -- through the use of the cfg.bannerDataNamespaceHasPriority table. --]] -- If the reason specified to the template is listed in this table, -- namespace data will take priority over reason data in the protectionCategories -- table. reasonsWithNamespacePriority = { vandalism = true, }, -- The string to use as a namespace key for the protectionCategories table for each -- namespace number. categoryNamespaceKeys = { [ 2] = 'user', [ 3] = 'user', [ 4] = 'project', [ 6] = 'file', [ 8] = 'mediawiki', [ 10] = 'template', [ 12] = 'project', [ 14] = 'category', [100] = 'portal', [828] = 'module', }, protectionCategories = { ['all|all|all|all|all'] = 'Wikipedia fully protected pages', ['all|all|office|all|all'] = 'Wikipedia Office-protected pages', ['all|all|reset|all|all'] = 'Wikipedia Office-protected pages', ['all|all|dmca|all|all'] = 'Wikipedia Office-protected pages', ['all|all|mainpage|all|all'] = 'Wikipedia fully protected main page files', ['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|template|all|all|edit'] = 'Wikipedia fully protected templates', ['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', ['indef|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected pages', ['all|all|blp|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living people', ['temp|all|blp|autoconfirmed|edit'] = 'Wikipedia temporarily semi-protected biographies of living people', ['all|all|dispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected due to dispute', ['all|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected from banned users', ['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism', ['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories', ['all|file|all|autoconfirmed|edit'] = 'Wikipedia semi-protected files', ['all|portal|all|autoconfirmed|edit'] = 'Wikipedia semi-protected portals', ['all|project|all|autoconfirmed|edit'] = 'Wikipedia semi-protected project pages', ['all|talk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected talk pages', ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', ['all|all|all|templateeditor|move'] = 'Wikipedia template-protected pages other than templates and modules', ['all|all|all|templateeditor|edit'] = 'Wikipedia template-protected pages other than templates and modules', ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected templates ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', ['all|category|all|sysop|edit'] = 'Wikipedia fully protected categories', ['all|file|all|sysop|edit'] = 'Wikipedia fully protected files', ['all|project|all|sysop|edit'] = 'Wikipedia fully protected project pages', ['all|talk|all|sysop|edit'] = 'Wikipedia fully protected talk pages', ['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates', ['all|template|all|extendedconfirmed|move'] = 'Wikipedia extended-confirmed-protected templates', ['all|template|all|sysop|edit'] = 'Wikipedia fully protected templates', ['all|user|all|sysop|edit'] = 'Wikipedia fully protected user and user talk pages', ['all|module|all|all|edit'] = 'Wikipedia fully protected modules', ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', ['all|module|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected modules', ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', ['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', ['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages', ['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages', ['all|template|all|sysop|move'] = 'Wikipedia move-protected templates', ['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages', ['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages', ['all|file|all|all|upload'] = 'Wikipedia upload-protected files', }, -------------------------------------------------------------------------------- -- Expiry category config -------------------------------------------------------------------------------- -- This table configures the expiry category behaviour for each protection -- action. -- * If set to true, setting that action will always categorise the page if -- an expiry parameter is not set. -- * If set to false, setting that action will never categorise the page. -- * If set to nil, the module will categorise the page if: -- 1) an expiry parameter is not set, and -- 2) a reason is provided, and -- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck -- table. expiryCheckActions = { edit = nil, move = false, autoreview = true, upload = false }, reasonsWithoutExpiryCheck = { blp = true, template = true, }, -------------------------------------------------------------------------------- -- Pagetypes -------------------------------------------------------------------------------- -- This table produces the page types available with the ${PAGETYPE} parameter. -- Keys are namespace numbers, or the string "default" for the default value. pagetypes = { [0] = 'article', [6] = 'file', [10] = 'template', [14] = 'category', [828] = 'module', default = 'page' }, -------------------------------------------------------------------------------- -- Strings marking indefinite protection -------------------------------------------------------------------------------- -- This table contains values passed to the expiry parameter that mean the page -- is protected indefinitely. indefStrings = { ['indef'] = true, ['indefinite'] = true, ['indefinitely'] = true, ['infinite'] = true, }, -------------------------------------------------------------------------------- -- Group hierarchy -------------------------------------------------------------------------------- -- This table maps each group to all groups that have a superset of the original -- group's page editing permissions. hierarchy = { sysop = {}, reviewer = {'sysop'}, filemover = {'sysop'}, templateeditor = {'sysop'}, extendedconfirmed = {'sysop'}, autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'}, user = {'autoconfirmed'}, ['*'] = {'user'} }, -------------------------------------------------------------------------------- -- Wrapper templates and their default arguments -------------------------------------------------------------------------------- -- This table contains wrapper templates used with the module, and their -- default arguments. Templates specified in this table should contain the -- following invocation, and no other template content: -- -- {{#invoke:Protection banner|main}} -- -- If other content is desired, it can be added between -- <noinclude>...</noinclude> tags. -- -- When a user calls one of these wrapper templates, they will use the -- default arguments automatically. However, users can override any of the -- arguments. wrappers = { ['Template:Pp'] = {}, ['Template:Protection padlock'] = {}, ['Template:Pp-extended'] = {'ecp'}, ['Template:Pp-blp'] = {'blp'}, -- we don't need Template:Pp-create ['Template:Pp-dispute'] = {'dispute'}, ['Template:Pp-main-page'] = {'mainpage'}, ['Template:Pp-move'] = {action = 'move', catonly = 'yes'}, ['Template:Pp-move-dispute'] = {'dispute', action = 'move', catonly = 'yes'}, -- we don't need Template:Pp-move-indef ['Template:Pp-move-vandalism'] = {'vandalism', action = 'move', catonly = 'yes'}, ['Template:Pp-office'] = {'office'}, ['Template:Pp-office-dmca'] = {'dmca'}, ['Template:Pp-pc'] = {action = 'autoreview', small = true}, ['Template:Pp-pc1'] = {action = 'autoreview', small = true}, ['Template:Pp-reset'] = {'reset'}, ['Template:Pp-semi-indef'] = {small = true}, ['Template:Pp-sock'] = {'sock'}, ['Template:Pp-template'] = {'template', small = true}, ['Template:Pp-upload'] = {action = 'upload'}, ['Template:Pp-usertalk'] = {'usertalk'}, ['Template:Pp-vandalism'] = {'vandalism'}, }, -------------------------------------------------------------------------------- -- -- MESSAGES -- -------------------------------------------------------------------------------- msg = { -------------------------------------------------------------------------------- -- Intro blurb and intro fragment -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${INTROBLURB} and -- ${INTROFRAGMENT} parameters. If the protection is temporary they use the -- intro-blurb-expiry or intro-fragment-expiry, and if not they use -- intro-blurb-noexpiry or intro-fragment-noexpiry. -- It is possible to use banner parameters in these messages. ['intro-blurb-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY}.', ['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.', ['intro-fragment-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY},', ['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}', -------------------------------------------------------------------------------- -- Tooltip blurb -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${TOOLTIPBLURB} parameter. -- If the protection is temporary the tooltip-blurb-expiry message is used, and -- if not the tooltip-blurb-noexpiry message is used. -- It is possible to use banner parameters in these messages. ['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', ['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.', ['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},', ['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', -------------------------------------------------------------------------------- -- Special explanation blurb -------------------------------------------------------------------------------- -- An explanation blurb for pages that cannot be unprotected, e.g. for pages -- in the MediaWiki namespace. -- It is possible to use banner parameters in this message. ['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]].', -------------------------------------------------------------------------------- -- Protection log display values -------------------------------------------------------------------------------- -- These messages determine the display values for the protection log link -- or the pending changes log link produced by the ${PROTECTIONLOG} parameter. -- It is possible to use banner parameters in these messages. ['protection-log-display'] = 'protection log', ['pc-log-display'] = 'pending changes log', -------------------------------------------------------------------------------- -- Current version display values -------------------------------------------------------------------------------- -- These messages determine the display values for the page history link -- or the move log link produced by the ${CURRENTVERSION} parameter. -- It is possible to use banner parameters in these messages. ['current-version-move-display'] = 'current title', ['current-version-edit-display'] = 'current version', -------------------------------------------------------------------------------- -- Talk page -------------------------------------------------------------------------------- -- This message determines the display value of the talk page link produced -- with the ${TALKPAGE} parameter. -- It is possible to use banner parameters in this message. ['talk-page-link-display'] = 'talk page', -------------------------------------------------------------------------------- -- Edit requests -------------------------------------------------------------------------------- -- This message determines the display value of the edit request link produced -- with the ${EDITREQUEST} parameter. -- It is possible to use banner parameters in this message. ['edit-request-display'] = 'submit an edit request', -------------------------------------------------------------------------------- -- Expiry date format -------------------------------------------------------------------------------- -- This is the format for the blurb expiry date. It should be valid input for -- the first parameter of the #time parser function. ['expiry-date-format'] = 'F j, Y "at" H:i e', -------------------------------------------------------------------------------- -- Tracking categories -------------------------------------------------------------------------------- -- These messages determine which tracking categories the module outputs. ['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates', ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- These are images that are not defined by their protection action and protection level. ['image-filename-indef'] = 'Full-protection-shackle.svg', ['image-filename-default'] = 'Transparent.gif', -------------------------------------------------------------------------------- -- End messages -------------------------------------------------------------------------------- } -------------------------------------------------------------------------------- -- End configuration -------------------------------------------------------------------------------- } g4f6dkimoikv05ulbf832zu7omkf2fc 1975522 1975412 2026-08-15T20:00:53Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975411|1975411]] frá notandanum [[:en:User:Santiago Claudio|en>Santiago Claudio]] 1975522 Scribunto text/plain -- This module provides configuration data for [[Module:Protection banner]]. return { -------------------------------------------------------------------------------- -- -- BANNER DATA -- -------------------------------------------------------------------------------- --[[ -- Banner data consists of six fields: -- * text - the main protection text that appears at the top of protection -- banners. -- * explanation - the text that appears below the main protection text, used -- to explain the details of the protection. -- * tooltip - the tooltip text you see when you move the mouse over a small -- padlock icon. -- * link - the page that the small padlock icon links to. -- * alt - the alt text for the small padlock icon. This is also used as tooltip -- text for the large protection banners. -- * image - the padlock image used in both protection banners and small padlock -- icons. -- -- The module checks in three separate tables to find a value for each field. -- First it checks the banners table, which has values specific to the reason -- for the page being protected. Then the module checks the defaultBanners -- table, which has values specific to each protection level. Finally, the -- module checks the masterBanner table, which holds data for protection -- templates to use if no data has been found in the previous two tables. -- -- The values in the banner data can take parameters. These are specified -- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name -- enclosed in curly braces). -- -- Available parameters: -- -- ${CURRENTVERSION} - a link to the page history or the move log, with the -- display message "current-version-edit-display" or -- "current-version-move-display". -- -- ${EDITREQUEST} - a link to create an edit request for the current page. -- -- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes -- on the talk page; you may submit a request to ask an administrator to make -- an edit if it is minor or supported by consensus." -- -- ${IMAGELINK} - a link to set the image to, depending on the protection -- action and protection level. -- -- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry -- is set. E.g. "Editing of this page by new or unregistered users is currently -- disabled until dd Month YYYY." -- -- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation -- so that it can be used in run-on sentences. -- -- ${PAGETYPE} - the type of the page, e.g. "article" or "template". -- Defined in the cfg.pagetypes table. -- -- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g. -- "Editing of this page by new or unregistered users is currently disabled" -- -- ${PROTECTIONDATE} - the protection date, if it has been supplied to the -- template. -- -- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or -- "semi-protected". -- -- ${PROTECTIONLOG} - a link to the protection log or the pending changes log, -- depending on the protection action. -- -- ${TALKPAGE} - a link to the talk page. If a section is specified, links -- straight to that talk page section. -- -- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to -- create a blurb like "This template is semi-protected", or "This article is -- move-protected until DD Month YYYY". -- -- ${VANDAL} - links for the specified username (or the root page name) -- using Module:Vandal-m. -- -- Functions -- -- For advanced users, it is possible to use Lua functions instead of strings -- in the banner config tables. Using functions gives flexibility that is not -- possible just by using parameters. Functions take two arguments, the -- protection object and the template arguments, and they must output a string. -- -- For example: -- -- text = function (protectionObj, args) -- if protectionObj.level == 'autoconfirmed' then -- return 'foo' -- else -- return 'bar' -- end -- end -- -- Some protection object properties and methods that may be useful: -- protectionObj.action - the protection action -- protectionObj.level - the protection level -- protectionObj.reason - the protection reason -- protectionObj.expiry - the expiry. Nil if unset, the string "indef" if set -- to indefinite, and the protection time in unix time if temporary. -- protectionObj.protectionDate - the protection date in unix time, or nil if -- unspecified. -- protectionObj.bannerConfig - the banner config found by the module. Beware -- of editing the config field used by the function, as it could create an -- infinite loop. -- protectionObj:isProtected - returns a boolean showing whether the page is -- protected. -- protectionObj:isTemporary - returns a boolean showing whether the expiry is -- temporary. -- protectionObj:isIncorrect - returns a boolean showing whether the protection -- template is incorrect. --]] -- The master banner data, used if no values have been found in banners or -- defaultBanners. masterBanner = { text = '${INTROBLURB}', explanation = '${EXPLANATIONBLURB}', tooltip = '${TOOLTIPBLURB}', link = '${IMAGELINK}', alt = 'Page ${PROTECTIONLEVEL}' }, -- The default banner data. This holds banner data for different protection -- levels. -- *required* - this table needs edit, move, autoreview and upload subtables. defaultBanners = { edit = {}, move = {}, autoreview = { default = { alt = 'Page protected with pending changes', tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', image = 'Pending-protection-shackle.svg' } }, upload = {} }, -- The banner data. This holds banner data for different protection reasons. -- In fact, the reasons specified in this table control which reasons are -- valid inputs to the first positional parameter. -- -- There is also a non-standard "description" field that can be used for items -- in this table. This is a description of the protection reason for use in the -- module documentation. -- -- *required* - this table needs edit, move, autoreview and upload subtables. banners = { edit = { blp = { description = 'Fyrir síður sem eru verndaðar á grundvelli' .. 'reglna [[Wikipedia:Æviágrip lifandi fólks' .. '|æviágripa lifandi fólks]]', text = '${INTROFRAGMENT} vernduð á grundvelli' .. 'reglna [[Wikipedia:Æviágrip lifandi fólks' .. '|æviágripa lifandi fólks]]', tooltip = '${TOOLTIPFRAGMENT} vernduð á grundvelli reglna um' .. ' æviágrip lifandi fólks', }, dmca = { description = 'Fyrir síður sem eru verndaðar af Wikimedia Foundation' .. ' vegna [[Digital Millennium Copyright Act]]', explanation = function (protectionObj, args) local ret = 'Pursuant to a rights owner notice under the Digital' .. ' Millennium Copyright Act (DMCA) regarding some content' .. ' in this article, the Wikimedia Foundation acted under' .. ' applicable law and took down and restricted the content' .. ' in question.' if args.notice then ret = ret .. ' A copy of the received notice can be found here: ' .. args.notice .. '.' end ret = ret .. ' For more information, including websites discussing' .. ' how to file a counter-notice, please see' .. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}." .. "'''Do not remove this template from the article until the" .. " restrictions are withdrawn'''." return ret end, image = 'Office-protection-shackle.svg', }, dispute = { description = 'Fyrir síður sem eru verndaðar vegna breytingastríðs.', text = function (protectionObj, args) -- Find the value of "disputes". local display = 'disputes' local disputes if args.section then disputes = string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[protectionObj.title.namespace].talk.name, protectionObj.title.text, args.section, display ) else disputes = display end -- Make the blurb, depending on the expiry. local msg if type(protectionObj.expiry) == 'number' then msg = '${INTROFRAGMENT} or until editing %s have been resolved.' else msg = '${INTROFRAGMENT} until editing %s have been resolved.' end return string.format(msg, disputes) end, explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', }, ecp = { description = 'For articles in topic areas authorized by' .. ' [[Wikipedia:Arbitration Committee|ArbCom]] or' .. ' meets the criteria for community use', tooltip = 'This ${PAGETYPE} is extended-confirmed protected', alt = 'Extended-protected ${PAGETYPE}', }, mainpage = { description = 'Fyrir síður sem eru verndaðar fyrir að vera á [[Forsíða|Forsíðunni]]', text = 'This file is currently' .. ' [[Wikipedia:This page is protected|protected]] from' .. ' editing because it is currently or will soon be displayed' .. ' on the [[Main Page]].', explanation = 'Images on the Main Page are protected due to their high' .. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.' .. '<br /><span style="font-size:90%;">' .. "'''Administrators:''' Once this image is definitely off the Main Page," .. ' please unprotect this file, or reduce to semi-protection,' .. ' as appropriate.</span>', }, office = { description = 'Fyrir síður sem eru verndaðar af Wikimedia Foundation', text = function (protectionObj, args) local ret = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.' if protectionObj.protectionDate then ret = ret .. ' It has been protected since ${PROTECTIONDATE}.' end return ret end, explanation = "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this" .. " page unless you are authorized by the Wikimedia Foundation to do" .. " so.'''", image = 'Office-protection-shackle.svg', }, reset = { description = 'For pages protected by the Wikimedia Foundation and' .. ' "reset" to a bare-bones version', text = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.', explanation = function (protectionObj, args) local ret = '' if protectionObj.protectionDate then ret = ret .. 'On ${PROTECTIONDATE} this ${PAGETYPE} was' else ret = ret .. 'This ${PAGETYPE} has been' end ret = ret .. ' reduced to a' .. ' simplified, "bare bones" version so that it may be completely' .. ' rewritten to ensure it meets the policies of' .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].' .. ' Standard Wikipedia policies will apply to its rewriting—which' .. ' will eventually be open to all editors—and will be strictly' .. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while' .. ' it is being rebuilt.\n\n' .. 'Any insertion of material directly from' .. ' pre-protection revisions of the ${PAGETYPE} will be removed, as' .. ' will any material added to the ${PAGETYPE} that is not properly' .. ' sourced. The associated talk page(s) were also cleared on the' .. " same date.\n\n" .. "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not override" .. " this action, and do not remove protection from this page," .. " unless you are authorized by the Wikimedia Foundation" .. " to do so. No editor may remove this notice.'''" return ret end, image = 'Office-protection-shackle.svg', }, sock = { description = 'Fyrir síður sem eru verndaðar vegna' .. ' [[Wikipedia:Grímuleikir|grímuleikja]]', text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' .. ' [[Wikipedia:Blocking policy|blocked]] or' .. ' [[Wikipedia:Banning policy|banned users]]' .. ' from editing it.', tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' .. ' editing it', }, template = { description = 'For [[Wikipedia:High-risk templates|high-risk]]' .. ' templates and Lua modules', text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] or' .. ' [[Wikipedia:Template editor|template editor]] to make an edit if' .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by' .. ' [[Wikipedia:Consensus|consensus]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' .. ' to prevent vandalism', alt = 'Permanently protected ${PAGETYPE}', }, usertalk = { description = 'For pages protected against disruptive edits by a' .. ' particular user', text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,' .. ' such as abusing the' .. ' &#123;&#123;[[Template:unblock|unblock]]&#125;&#125; template.', explanation = 'If you cannot edit this user talk page and you need to' .. ' make a change or leave a message, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for edits to a protected page' .. '|request an edit]],' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]],' .. ' [[Special:Userlogin|log in]],' .. ' or [[Special:UserLogin/signup|create an account]].', }, vandalism = { description = 'Fyrir síður sem eru verndaðar vegna' .. ' [[Wikipedia:Skemmdarverk|skemmdarverka]]', text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].', explanation = function (protectionObj, args) local ret = '' if protectionObj.level == 'sysop' then ret = ret .. "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ' end return ret .. '${EXPLANATIONBLURB}' end, tooltip = '${TOOLTIPFRAGMENT} due to vandalism', } }, move = { dispute = { description = 'Fyrir síður sem eru verndaðar gegn færslu vegna' .. ' deilna um titil', explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', image = 'Move-protection-shackle.svg' }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism#Page-move vandalism' .. ' |page-move vandalism]]' } }, autoreview = {}, upload = {} }, -------------------------------------------------------------------------------- -- -- GENERAL DATA TABLES -- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Protection blurbs -------------------------------------------------------------------------------- -- This table produces the protection blurbs available with the -- ${PROTECTIONBLURB} parameter. It is sorted by protection action and -- protection level, and is checked by the module in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionBlurbs = { edit = { default = 'Þessi ${PAGETYPE} er [[Wikipedia:Verndun|' .. 'vernduð]] gegn breytingum', autoconfirmed = 'Breytingar á þessari ${PAGETYPE} af [[Wikipedia:Notendur#Réttindi' .. ' |óskráðum]] eða nýjum' .. ' notendum er [[Wikipedia:Verndun|óheimil]]', extendedconfirmed = 'This ${PAGETYPE} is currently under extended confirmed protection', }, move = { default = 'Þessi ${PAGETYPE} er [[Wikipedia:Verndun|vernduð]]' .. ' gegn [[Hjálp:Að færa síðu|flutningi síðu]]' }, autoreview = { default = 'All edits made to this ${PAGETYPE} by' .. ' [[Wikipedia:User access levels#New users|new]] or' .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]' .. ' users are currently' .. ' [[Wikipedia:Pending changes|subject to review]]' }, upload = { default = 'Þessi ${PAGETYPE} er vernduð gegn nýjum útgáfum af skránni' } }, -------------------------------------------------------------------------------- -- Explanation blurbs -------------------------------------------------------------------------------- -- This table produces the explanation blurbs available with the -- ${EXPLANATIONBLURB} parameter. It is sorted by protection action, -- protection level, and whether the page is a talk page or not. If the page is -- a talk page it will have a talk key of "talk"; otherwise it will have a talk -- key of "subject". The table is checked in the following order: -- 1. page's protection action, page's protection level, page's talk key -- 2. page's protection action, page's protection level, default talk key -- 3. page's protection action, default protection level, page's talk key -- 4. page's protection action, default protection level, default talk key -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. explanationBlurbs = { edit = { autoconfirmed = { subject = 'Sjá [[Wikipedia:Verndun|' .. 'verndunar reglur]] og ${PROTECTIONLOG} fyrir frekari upplýsingar. Ef þú' .. ' getur ekki breytt þessari ${PAGETYPE} og vilt breyta henni, þá getur þú' .. ' rætt breytinguna eða verndunina á ${TALKPAGE},' .. ' [[Special:Userlogin|skráð þig inn]], eða' .. ' [[Special:UserLogin/signup|búið til aðgang]].', default = 'Sjá [[Wikipedia:Verndun|' .. 'verndunar reeglur]] og ${PROTECTIONLOG} fyrir frekari upplýsingar. Ef þú' .. ' getur ekki breytt þessari ${PAGETYPE} og vilt breyta henni, þá getur þú' .. ' rætt breytinguna eða verndunina á ${TALKPAGE},' .. '[[Special:Userlogin|skráð þig inn]], eða' .. ' [[Special:UserLogin/signup|búið til aðgang]].', }, extendedconfirmed = { default = 'Extended confirmed protection prevents edits from all unregistered editors' .. ' and registered users with fewer than 30 days tenure and 500 edits.' .. ' The [[Wikipedia:Protection policy#extended|policy on community use]]' .. ' specifies that extended confirmed protection can be applied to combat' .. ' disruption, if semi-protection has proven to be ineffective.' .. ' Extended confirmed protection may also be applied to enforce' .. ' [[Wikipedia:Arbitration Committee|arbitration sanctions]].' .. ' Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask for uncontroversial changes supported by' .. ' [[Wikipedia:Consensus|consensus]].' }, default = { subject = 'Sjá [[Wikipedia:Verndun|' .. 'verndunar reglur]] og ${PROTECTIONLOG} fyrir frekari upplýsingar.' .. ' Ræddu allar breytingar á ${TALKPAGE}; ' .. ' til að biðja' .. ' [[Wikipedia:Möppudýr|stjórnanda]] til að framkvæma breytinguna ef' .. ' hún er óumdeild og til að aðrir notendur geti myndað meirihluta með eða á móti breytingunni.', default = 'Sjá [[Wikipedia:Verndun|' .. 'verndunar reglur]] og ${PROTECTIONLOG} fyrir frekari upplýsingar.' .. ' Ræddu annaðhvort breytinguna sem þú vilt gera eða' .. ' óskaðu eftir að verndun sé aflétt á ${TALKPAGE}.' } }, move = { default = { subject = 'Sjá [[Wikipedia:Verndun|' .. 'vendunar reglur]] og ${PROTECTIONLOG} fyrir frekari upplýsingar.' .. ' Hægt er að breyta síðunni en ekki er hægt að færa hana.' .. ' Ræddu allar fyrirhugaðan flutning á' .. ' ${TALKPAGE}. Þar getur þú einnig óskað eftir að verndun sé aflétt.', default = 'Sjá [[Wikipedia:Verndun|' .. 'verndunar reglur]] og ${PROTECTIONLOG} fyrir frekari upplýsingar.' .. ' Hægt er að breyta síðunni en ekki er hægt að færa hana.' .. ' Ræddu allar fyrirhugaðan flutning á' .. ' ${TALKPAGE}. Þar getur þú einnig óskað eftir að verndun sé aflétt.', } }, autoreview = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Edits to this ${PAGETYPE} by new and unregistered users' .. ' will not be visible to readers until they are accepted by' .. ' a reviewer. To avoid the need for your edits to be' .. ' reviewed, you may' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].' }, }, upload = { default = { default = 'Sjá [[Wikipedia:Verndun|' .. 'verndunar reglur]] og ${PROTECTIONLOG} fyrir frekari upplýsingar.' .. ' Hægt er að breyta síðunni en ekki hlaða inn nýjum útgáfum af skránni.' .. ' Þú getur óskað eftir að ný útgáfa af skránni sé hlaðin inn fyrir þig, eða' .. ' þú getur óskað eftir að skráin sé afvernduð. Hvort tveggja fer fram á ${TALKPAGE}.' } } }, -------------------------------------------------------------------------------- -- Protection levels -------------------------------------------------------------------------------- -- This table provides the data for the ${PROTECTIONLEVEL} parameter, which -- produces a short label for different protection levels. It is sorted by -- protection action and protection level, and is checked in the following -- order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionLevels = { edit = { default = 'protected', templateeditor = 'template-protected', extendedconfirmed = 'extended-protected', autoconfirmed = 'semi-protected', }, move = { default = 'move-protected' }, autoreview = { }, upload = { default = 'upload-protected' } }, -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- This table lists different padlock images for each protection action and -- protection level. It is used if an image is not specified in any of the -- banner data tables, and if the page does not satisfy the conditions for using -- the ['image-filename-indef'] image. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level images = { edit = { default = 'Full-protection-shackle.svg', templateeditor = 'Template-protection-shackle.svg', extendedconfirmed = 'Extended-protection-shackle.svg', autoconfirmed = 'Semi-protection-shackle.svg' }, move = { default = 'Move-protection-shackle.svg', }, autoreview = { default = 'Pending-protection-shackle.svg' }, upload = { default = 'Upload-protection-shackle.svg' } }, -- Pages with a reason specified in this table will show the special "indef" -- padlock, defined in the 'image-filename-indef' message, if no expiry is set. indefImageReasons = { template = true }, -------------------------------------------------------------------------------- -- Image links -------------------------------------------------------------------------------- -- This table provides the data for the ${IMAGELINK} parameter, which gets -- the image link for small padlock icons based on the page's protection action -- and protection level. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. imageLinks = { edit = { default = 'Wikipedia:Protection policy#full', templateeditor = 'Wikipedia:Protection policy#template', extendedconfirmed = 'Wikipedia:Protection policy#extended', autoconfirmed = 'Wikipedia:Protection policy#semi' }, move = { default = 'Wikipedia:Protection policy#move' }, autoreview = { default = 'Wikipedia:Protection policy#pending' }, upload = { default = 'Wikipedia:Protection policy#upload' } }, -------------------------------------------------------------------------------- -- Padlock indicator names -------------------------------------------------------------------------------- -- This table provides the "name" attribute for the <indicator> extension tag -- with which small padlock icons are generated. All indicator tags on a page -- are displayed in alphabetical order based on this attribute, and with -- indicator tags with duplicate names, the last tag on the page wins. -- The attribute is chosen based on the protection action; table keys must be a -- protection action name or the string "default". padlockIndicatorNames = { autoreview = 'pp-autoreview', default = 'pp-default' }, -------------------------------------------------------------------------------- -- Protection categories -------------------------------------------------------------------------------- --[[ -- The protection categories are stored in the protectionCategories table. -- Keys to this table are made up of the following strings: -- -- 1. the expiry date -- 2. the namespace -- 3. the protection reason (e.g. "dispute" or "vandalism") -- 4. the protection level (e.g. "sysop" or "autoconfirmed") -- 5. the action (e.g. "edit" or "move") -- -- When the module looks up a category in the table, first it will will check to -- see a key exists that corresponds to all five parameters. For example, a -- user page semi-protected from vandalism for two weeks would have the key -- "temp-user-vandalism-autoconfirmed-edit". If no match is found, the module -- changes the first part of the key to "all" and checks the table again. It -- keeps checking increasingly generic key combinations until it finds the -- field, or until it reaches the key "all-all-all-all-all". -- -- The module uses a binary matrix to determine the order in which to search. -- This is best demonstrated by a table. In this table, the "0" values -- represent "all", and the "1" values represent the original data (e.g. -- "indef" or "file" or "vandalism"). -- -- expiry namespace reason level action -- order -- 1 1 1 1 1 1 -- 2 0 1 1 1 1 -- 3 1 0 1 1 1 -- 4 0 0 1 1 1 -- 5 1 1 0 1 1 -- 6 0 1 0 1 1 -- 7 1 0 0 1 1 -- 8 0 0 0 1 1 -- 9 1 1 1 0 1 -- 10 0 1 1 0 1 -- 11 1 0 1 0 1 -- 12 0 0 1 0 1 -- 13 1 1 0 0 1 -- 14 0 1 0 0 1 -- 15 1 0 0 0 1 -- 16 0 0 0 0 1 -- 17 1 1 1 1 0 -- 18 0 1 1 1 0 -- 19 1 0 1 1 0 -- 20 0 0 1 1 0 -- 21 1 1 0 1 0 -- 22 0 1 0 1 0 -- 23 1 0 0 1 0 -- 24 0 0 0 1 0 -- 25 1 1 1 0 0 -- 26 0 1 1 0 0 -- 27 1 0 1 0 0 -- 28 0 0 1 0 0 -- 29 1 1 0 0 0 -- 30 0 1 0 0 0 -- 31 1 0 0 0 0 -- 32 0 0 0 0 0 -- -- In this scheme the action has the highest priority, as it is the last -- to change, and the expiry has the least priority, as it changes the most. -- The priorities of the expiry, the protection level and the action are -- fixed, but the priorities of the reason and the namespace can be swapped -- through the use of the cfg.bannerDataNamespaceHasPriority table. --]] -- If the reason specified to the template is listed in this table, -- namespace data will take priority over reason data in the protectionCategories -- table. reasonsWithNamespacePriority = { vandalism = true, }, -- The string to use as a namespace key for the protectionCategories table for each -- namespace number. categoryNamespaceKeys = { [ 2] = 'user', [ 3] = 'user', [ 4] = 'project', [ 6] = 'file', [ 8] = 'mediawiki', [ 10] = 'template', [ 12] = 'project', [ 14] = 'category', [100] = 'portal', [828] = 'module', }, protectionCategories = { ['all|all|all|all|all'] = 'Wikipedia fully protected pages', ['all|all|office|all|all'] = 'Wikipedia Office-protected pages', ['all|all|reset|all|all'] = 'Wikipedia Office-protected pages', ['all|all|dmca|all|all'] = 'Wikipedia Office-protected pages', ['all|all|mainpage|all|all'] = 'Wikipedia fully-protected main page files', ['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|template|all|all|edit'] = 'Wikipedia fully protected templates', ['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', ['indef|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected pages', ['all|all|blp|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living people', ['temp|all|blp|autoconfirmed|edit'] = 'Wikipedia temporarily semi-protected biographies of living people', ['all|all|dispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected due to dispute', ['all|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected from banned users', ['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism', ['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories', ['all|file|all|autoconfirmed|edit'] = 'Wikipedia semi-protected files', ['all|portal|all|autoconfirmed|edit'] = 'Wikipedia semi-protected portals', ['all|project|all|autoconfirmed|edit'] = 'Wikipedia semi-protected project pages', ['all|talk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected talk pages', ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', ['all|all|all|templateeditor|edit'] = 'Wikipedia template-protected pages other than templates and modules', ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected templates ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', ['all|category|all|sysop|edit'] = 'Wikipedia fully protected categories', ['all|file|all|sysop|edit'] = 'Wikipedia fully-protected files', ['all|project|all|sysop|edit'] = 'Wikipedia fully-protected project pages', ['all|talk|all|sysop|edit'] = 'Wikipedia fully-protected talk pages', ['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates', ['all|template|all|sysop|edit'] = 'Wikipedia fully protected templates', ['all|user|all|sysop|edit'] = 'Wikipedia fully protected user and user talk pages', ['all|module|all|all|edit'] = 'Wikipedia fully-protected modules', ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', ['all|module|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected modules', ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', ['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', ['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages', ['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages', ['all|template|all|sysop|move'] = 'Wikipedia move-protected templates', ['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages', ['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages', ['all|file|all|all|upload'] = 'Wikipedia upload-protected files', }, -------------------------------------------------------------------------------- -- Expiry category config -------------------------------------------------------------------------------- -- This table configures the expiry category behaviour for each protection -- action. -- * If set to true, setting that action will always categorise the page if -- an expiry parameter is not set. -- * If set to false, setting that action will never categorise the page. -- * If set to nil, the module will categorise the page if: -- 1) an expiry parameter is not set, and -- 2) a reason is provided, and -- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck -- table. expiryCheckActions = { edit = nil, move = false, autoreview = true, upload = false }, reasonsWithoutExpiryCheck = { blp = true, template = true, }, -------------------------------------------------------------------------------- -- Pagetypes -------------------------------------------------------------------------------- -- This table produces the page types available with the ${PAGETYPE} parameter. -- Keys are namespace numbers, or the string "default" for the default value. pagetypes = { [0] = 'grein', [6] = 'skrá', [10] = 'sniði', [14] = 'flokki', [828] = 'skriftu', default = 'síðu' }, -------------------------------------------------------------------------------- -- Strings marking indefinite protection -------------------------------------------------------------------------------- -- This table contains values passed to the expiry parameter that mean the page -- is protected indefinitely. indefStrings = { ['indef'] = true, ['indefinite'] = true, ['indefinitely'] = true, ['infinite'] = true, }, -------------------------------------------------------------------------------- -- Group hierarchy -------------------------------------------------------------------------------- -- This table maps each group to all groups that have a superset of the original -- group's page editing permissions. hierarchy = { sysop = {}, reviewer = {'sysop'}, filemover = {'sysop'}, templateeditor = {'sysop'}, extendedconfirmed = {'sysop'}, autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'}, user = {'autoconfirmed'}, ['*'] = {'user'} }, -------------------------------------------------------------------------------- -- Wrapper templates and their default arguments -------------------------------------------------------------------------------- -- This table contains wrapper templates used with the module, and their -- default arguments. Templates specified in this table should contain the -- following invocation, and no other template content: -- -- {{#invoke:Protection banner|main}} -- -- If other content is desired, it can be added between -- <noinclude>...</noinclude> tags. -- -- When a user calls one of these wrapper templates, they will use the -- default arguments automatically. However, users can override any of the -- arguments. wrappers = { ['Template:Pp'] = {}, ['Template:Pp-extended'] = {'ecp'}, ['Template:Pp-blp'] = {'blp'}, -- we don't need Template:Pp-create ['Template:Pp-dispute'] = {'dispute'}, ['Template:Pp-main-page'] = {'mainpage'}, ['Template:Pp-move'] = {action = 'move', catonly = 'yes'}, ['Template:Pp-move-dispute'] = {'dispute', action = 'move', catonly = 'yes'}, -- we don't need Template:Pp-move-indef ['Template:Pp-move-vandalism'] = {'vandalism', action = 'move', catonly = 'yes'}, ['Template:Pp-office'] = {'office'}, ['Template:Pp-office-dmca'] = {'dmca'}, ['Template:Pp-pc'] = {action = 'autoreview', small = true}, ['Template:Pp-pc1'] = {action = 'autoreview', small = true}, ['Template:Pp-reset'] = {'reset'}, ['Template:Pp-semi-indef'] = {small = true}, ['Template:Pp-sock'] = {'sock'}, ['Template:Pp-template'] = {'template', small = true}, ['Template:Pp-upload'] = {action = 'upload'}, ['Template:Pp-usertalk'] = {'usertalk'}, ['Template:Pp-vandalism'] = {'vandalism'}, }, -------------------------------------------------------------------------------- -- -- MESSAGES -- -------------------------------------------------------------------------------- msg = { -------------------------------------------------------------------------------- -- Intro blurb and intro fragment -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${INTROBLURB} and -- ${INTROFRAGMENT} parameters. If the protection is temporary they use the -- intro-blurb-expiry or intro-fragment-expiry, and if not they use -- intro-blurb-noexpiry or intro-fragment-noexpiry. -- It is possible to use banner parameters in these messages. ['intro-blurb-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY}.', ['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.', ['intro-fragment-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY},', ['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}', -------------------------------------------------------------------------------- -- Tooltip blurb -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${TOOLTIPBLURB} parameter. -- If the protection is temporary the tooltip-blurb-expiry message is used, and -- if not the tooltip-blurb-noexpiry message is used. -- It is possible to use banner parameters in these messages. ['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', ['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.', ['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},', ['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', -------------------------------------------------------------------------------- -- Special explanation blurb -------------------------------------------------------------------------------- -- An explanation blurb for pages that cannot be unprotected, e.g. for pages -- in the MediaWiki namespace. -- It is possible to use banner parameters in this message. ['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]].', -------------------------------------------------------------------------------- -- Protection log display values -------------------------------------------------------------------------------- -- These messages determine the display values for the protection log link -- or the pending changes log link produced by the ${PROTECTIONLOG} parameter. -- It is possible to use banner parameters in these messages. ['protection-log-display'] = 'verndunar skránna', ['pc-log-display'] = 'pending changes log', -------------------------------------------------------------------------------- -- Current version display values -------------------------------------------------------------------------------- -- These messages determine the display values for the page history link -- or the move log link produced by the ${CURRENTVERSION} parameter. -- It is possible to use banner parameters in these messages. ['current-version-move-display'] = 'current title', ['current-version-edit-display'] = 'current version', -------------------------------------------------------------------------------- -- Talk page -------------------------------------------------------------------------------- -- This message determines the display value of the talk page link produced -- with the ${TALKPAGE} parameter. -- It is possible to use banner parameters in this message. ['talk-page-link-display'] = 'spjallsíðunni', -------------------------------------------------------------------------------- -- Edit requests -------------------------------------------------------------------------------- -- This message determines the display value of the edit request link produced -- with the ${EDITREQUEST} parameter. -- It is possible to use banner parameters in this message. ['edit-request-display'] = 'submit an edit request', -------------------------------------------------------------------------------- -- Expiry date format -------------------------------------------------------------------------------- -- This is the format for the blurb expiry date. It should be valid input for -- the first parameter of the #time parser function. ['expiry-date-format'] = 'F j, Y "at" H:i e', -------------------------------------------------------------------------------- -- Tracking categories -------------------------------------------------------------------------------- -- These messages determine which tracking categories the module outputs. ['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates', ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- These are images that are not defined by their protection action and protection level. ['image-filename-indef'] = 'Full-protection-shackle.svg', ['image-filename-default'] = 'Transparent.gif', -------------------------------------------------------------------------------- -- End messages -------------------------------------------------------------------------------- } -------------------------------------------------------------------------------- -- End configuration -------------------------------------------------------------------------------- } nqv3df2o2paycngbrexlogscv9keil1 Stærstu deildarsigrar og töp íslenskra kvennaliða í knattspyrnu 0 169081 1975515 1972274 2026-08-15T18:11:36Z Friðþjófur 104929 /* B-deild */ 1975515 wikitext text/x-wiki '''Stærstu deildarsigrar og töp íslenskra kvennaliða í knattspyrnu''' er tafla yfir metsigra og -tapleiki íslenskra kvennaliða í knattspyrnu. Taldar eru viðureignir liðanna í deildarkeppni [[Íslenska knattspyrnusambandið|KSÍ]]. ==A-deild== === [[Mynd:Breidablik.png|30px]] [[Ungmennafélagið Breiðablik|Breiðablik]] === * Stærsti sigur: 18:0 gegn [[Mynd:UMFS.png|20px]] [[Ungmennafélag Selfoss|Selfossi]], [[2. deild kvenna í knattspyrnu 1988|B-deild 1988]] * Stærsta tap: 1:8 gegn [[Mynd:Ibv-logo.png|20px]] [[Íþróttabandalag Vestmannaeyja|ÍBV]], [[Landsbankadeild kvenna í knattspyrnu 2004|A-deild 2004]] === [[Mynd:Fimleikafelag_hafnafjordur.png|30px]] [[Fimleikafélag Hafnarfjarðar]] === * Stærsti sigur: 19:0 gegn [[Mynd:Stjarnan.png|20px]] [[Ungmennafélagið Stjarnan|Stjörnunni]], [[1. deild kvenna í knattspyrnu 1976|A-deild 1976]] * Stærsta tap: 0:15 gegn [[Mynd:Valur.png|20px]] [[Knattspyrnufélagið Valur|Val]], [[Landsbankadeild kvenna í knattspyrnu 2005|A-deild 2005]] === [[Mynd:Þróttur_R..png|30px]] [[Knattspyrnufélagið Þróttur]] === * Stærsti sigur: 16:0 gegn Draupni, [[1. deild kvenna í knattspyrnu 2010|B-deild 2010]] * Stærsta tap: 0:8 gegn [[Mynd:Fimleikafelag_hafnafjordur.png|20px]] [[Fimleikafélag Hafnarfjarðar|FH]], [[1. deild kvenna í knattspyrnu 1972|A-deild 1972]] === [[Mynd:Stjarnan.png|30px]] [[Ungmennafélagið Stjarnan|Stjarnan]] === * Stærsti sigur: 17:0 gegn [[Mynd:Knattspyrnufélagið-ægir.jpg|20px]] [[Knattspyrnufélagið Ægir|Ægi]], [[2. deild kvenna í knattspyrnu 1991|B-deild 1991]] * Stærsta tap: 0:19 gegn [[Mynd:Fimleikafelag_hafnafjordur.png|20px]] [[Fimleikafélag Hafnarfjarðar|FH]], [[1. deild kvenna í knattspyrnu 1978|A-deild 1978]] === [[Mynd:Knattspyrnufélagið Fram.png|30px]] [[Knattspyrnufélagið Fram]] === * Stærstu sigrar: 11:0 gegn Grundarfirði, [[2. deild kvenna í knattspyrnu 1987|B-deild 1987]] * Stærsta tap: 0:10 gegn [[Mynd:Valur.png|20px]] [[Knattspyrnufélagið Valur|Val]], [[1. deild kvenna í knattspyrnu 1988|A-deild 1988]] === [[Mynd:Knattspyrnufélagið_Víkingur.png|30px]] [[Knattspyrnufélagið Víkingur|Víkingur]] === * Stærsti sigur: 7:0 gegn Grundarfirði, [[2. deild kvenna í knattspyrnu 1985|B-deild 1985]] * Stærsta tap: 0:10 gegn [[Mynd:ÍA-Akranes.png|20px]] [[Knattspyrnufélag ÍA|ÍA]], [[1. deild kvenna í knattspyrnu 1981|A-deild 1981]] === [[Mynd:Valur.png|30px]] [[Knattspyrnufélagið Valur]] === * Stærstu sigrar: 15:0 gegn [[Mynd:Leiknir.svg|20px]] [[Íþróttafélagið Leiknir|Leikni]], [[1. deild kvenna í knattspyrnu 1981|A-deild 1981]] 15:0 gegn [[Mynd:Fimleikafelag_hafnafjordur.png|20px]] [[Fimleikafélag Hafnarfjarðar|FH]], [[Símadeild kvenna í knattspyrnu 2002|A-deild 2002]] * Stærsta tap: 0:9 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], [[Símadeild kvenna í knattspyrnu 2002|A-deild 2002]] === [[Mynd:Thorka-logo-rgb.jpg|30px]] [[Þór/KA]] === * Stærstu sigrar: 10:0 gegn [[Mynd:Leiftur.png|20px]] [[Íþróttafélagið Leiftur|Leiftri]], [[2. deild kvenna í knattspyrnu 1994|B-deild 1994]] 10:0 gegn [[Íþróttafélagið Leiftur|Leiftri]]/[[UMFS Dalvík|Dalvík]], [[1. deild kvenna í knattspyrnu 1999|B-deild 1999]] 10:0 gegn [[Íþróttafélagið Leiftur|Leiftri]]/[[UMFS Dalvík|Dalvík]], [[1. deild kvenna í knattspyrnu 1999|B-deild 1999]] * Stærsta tap: 0:9 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], [[Landssímadeild kvenna í knattspyrnu 2000|A-deild 2000]] === [[Mynd:Ibv-logo.png|30px]] [[Íþróttabandalag Vestmannaeyja]] === * Stærstu sigrar: 11:0 gegn [[Mynd:Stjarnan.png|20px]] [[Ungmennafélagið Stjarnan|Stjörnunni]], [[Landsbankadeild kvenna í knattspyrnu 2004|A-deild 2004]] 11:0 gegn Tindastóli/Neista, B-deild 2009 11:0 gegn [[Mynd:Höttur.svg|20px]] [[Höttur|Hetti]], [[1. deild kvenna í knattspyrnu 2010|B-deild 2010]] * Stærsta tap: 0:10 gegn [[Mynd:Breidablik.png|20px]] [[Ungmennafélagið Breiðablik|Breiðabliki]], [[Mizunodeild kvenna í knattspyrnu 1995|A-deild 1995]] === [[Mynd:UMFG,_Grindavík.png|30px]] [[Mynd:Njarðvík.jpg|30px]] [[Ungmennafélag Grindavíkur|Grindavík]] / [[Ungmennafélag Njarðvíkur|Njarðvík]] === * Stærsti sigur: 8:0 gegn [[Mynd:UMFA.png|20px]] [[Ungmennafélagið Afturelding|Aftureldingu]], B-deild 2025 * Stærsta tap: 0:5 gegn [[Mynd:Breidablik.png|20px]] [[Ungmennafélagið Breiðablik|Breiðabliki]], A-deild 2026 1:6 gegn [[Mynd:Fimleikafelag_hafnafjordur.png|20px]] [[Fimleikafélag Hafnarfjarðar|FH]], A-deild 2026 ==B-deild== === [[Mynd:UMF_Tindastoll.png|30px]] [[Ungmennafélagið Tindastóll|Tindastóll]] === * Stærstu sigrar: 10:1 gegn [[Íþróttafélagið Leiftur|Leiftri]]/[[UMFS Dalvík|Dalvík]], B-deild 2003 9:0 gegn [[Mynd:Leiknirf.jpg|20px]] [[Ungmennafélagið Leiknir|Leikni Fáskrúðsfirði]],B-deild 2002 * Stærsta tap: 0:10 gegn [[Mynd:Grótta.png|20px]] [[Íþróttafélagið Grótta|Gróttu]], B-deild 2026 === [[Mynd:Fjarðarbyggð.jpg|30px]][[Mynd:Höttur.svg|30px]][[Mynd:Leiknirf.jpg|30px]] [[Knattspyrnufélag Fjarðabyggðar|Fjarðabyggð]]/[[Höttur]]/[[Ungmennafélagið Leiknir|Leiknir]] === * Stærsti sigur: 24:0 gegn [[Knattspyrnufélagið Miðbær|KM]], C-deild 2021 * Stærsta tap: 1:9 gegn [[Mynd:Augnablik_félag.svg|20px]] [[Augnablik|Augnabliki]], C-deild 2018 0:8 gegn [[Mynd:UMF_Tindastoll.png|20px]] [[Ungmennafélagið Tindastóll|Tindastóli]], C-deild 2018 === [[Mynd:Fylkir.png|30px]] [[Íþróttafélagið Fylkir|Fylkir]] === * Stærsti sigur: 15:1 gegn [[Mynd:UMFA.png|20px]] [[Ungmennafélagið Afturelding|Aftureldingu]], [[2. deild kvenna í knattspyrnu 1982|B-deild 1982]] * Stærsta tap: 0:14 gegn [[Mynd:Valur.png|20px]] [[Knattspyrnufélagið Valur|Val]], [[Landsbankadeild kvenna í knattspyrnu 2006|A-deild 2006]] === [[Mynd:Keflavik ÍF.gif|30px]] [[Íþrótta- og ungmennafélag Keflavíkur|Keflavík]] === * Stærsti sigur: 22:0 gegn [[Mynd:Knattspyrnufélagið-ægir.jpg|20px]] [[Knattspyrnufélagið Ægir|Ægi]], B-deild 2004 * Stærstu töp: 1:12 gegn [[Mynd:ÍA-Akranes.png|20px]] [[Knattspyrnufélag ÍA|ÍA]], [[1. deild kvenna í knattspyrnu 1985|A-deild 1985]] 0:11 gegn [[Mynd:Valur.png|20px]] [[Knattspyrnufélagið Valur|Val]], [[Pepsideild kvenna í knattspyrnu 2009|A-deild 2009]] 0:11 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur]], B-deild 2013 === [[Mynd:UMFA.png|30px]] [[Ungmennafélagið Afturelding|Afturelding]] === * Stærsti sigur: 21:0 gegn [[Ungmennafélag Hveragerðis og Ölfuss|UMFH]], [[2. deild kvenna í knattspyrnu 1984|B-deild 1984]] * Stærsta tap: 1:15 gegn [[Mynd:Fylkir.png|20px]] [[Íþróttafélagið Fylkir|Fylki]], [[2. deild kvenna í knattspyrnu 1982|B-deild 1982]] === [[Mynd:KR Reykjavík.png|30px]] [[Knattspyrnufélag Reykjavíkur]] === * Stærsti sigur: 18:0 gegn [[Mynd:Knattspyrnufélagið_Haukar.png|20px]] [[Knattspyrnufélagið Haukar|Haukum]], [[1. deild kvenna í knattspyrnu 1994|A-deild 1994]] * Stærsta tap: 0:9 gegn [[Mynd:Breidablik.png|20px]] [[Ungmennafélagið Breiðablik|Breiðabliki]], [[1. deild kvenna í knattspyrnu 1992|A-deild 1992]] === [[Mynd:Knattspyrnufélagið_Haukar.png|30px]] [[Knattspyrnufélagið Haukar]] === * Stærsti sigur: 15:0 gegn [[Mynd:Knattspyrnufélagið-ægir.jpg|20px]] [[Knattspyrnufélagið Ægir|Ægi]], [[2. deild kvenna í knattspyrnu 1991|B-deild 1991]] * Stærsta tap: 0:18 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], [[1. deild kvenna í knattspyrnu 1994|A-deild 1994]] === [[Mynd:Grótta.png|30px]] [[Íþróttafélagið Grótta|Grótta]] === * Stærsti sigur: 10:0 gegn [[Mynd:Knattspyrnufélagið_Haukar.png|20px]] [[Knattspyrnufélagið Haukar|Haukum]], [[1. deild kvenna í knattspyrnu 1999|B-deild 1999]] 10:0 gegn [[Mynd:UMF_Tindastoll.png|30px]] [[Ungmennafélagið Tindastóll|Tindastóli]], B-deild 2026 * Stærsta tap: 0:14 gegn [[Mynd:Knattspyrnufélagið_Haukar.png|20px]] [[Knattspyrnufélagið Haukar|Haukum]], [[1. deild kvenna í knattspyrnu 2016|B-deild 2016]] === [[Mynd:HK-K.png|30px]] [[Handknattleiksfélag Kópavogs]] === * Stærsti sigur: 7:0 gegn [[Mynd:UMF_Sindri.jpg|20px]] [[UMF Sindri|Sindri, Höfn]], C-deild 2020 * Stærsta tap: 1:6 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], [[1. deild kvenna í knattspyrnu 2021|B-deild 2021]] === [[Mynd:ÍA-Akranes.png|30px]] [[Knattspyrnufélag ÍA|ÍA]] === * Stærsti sigur: 13:0 gegn [[Ungmennafélagið Hvöt (Blönduósi)|Hvöt]]/[[Ungmennafélagið Tindastóll|Tindastóli]], [[1. deild kvenna í knattspyrnu 2004|B-deild 2004]] * Stærsta tap: 0:11 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], [[Landssímadeild kvenna í knattspyrnu 2000|A-deild 2004]] ==C-deild== === [[Mynd:Fjölnir.png|30px]] [[Ungmennafélagið Fjölnir]] === * Stærsti sigur: 17:0 gegn [[Knattspyrnufélagið Miðbær Reykjavík|KM]], C-deild 2021 * Stærsta tap: 0:12 gegn [[Mynd:Knattspyrnufélagið_Haukar.png|20px]] [[Knattspyrnufélagið Haukar|Haukum]], [[2. deild kvenna í knattspyrnu 1993|B-deild 1993]] 0:12 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], [[Meistaradeild kvenna í knattspyrnu 1999|A-deild 1999]] 0:12 gegn [[Mynd:Valur.png|20px]] [[Knattspyrnufélagið Valur|Val]], [[Meistaradeild kvenna í knattspyrnu 1999|A-deild 1999]] === [[Mynd: ÍR.png|30px]] [[Íþróttafélag Reykjavíkur]] === * Stærsti sigur: 14:1 gegn [[Knattspyrnufélag Rangæinga|K.F.R.]]/[[Knattspyrnufélagið Ægir|Ægi]], [[1. deild kvenna í knattspyrnu 2006|B-deild 2006]] 13:0 gegn [[Mynd:Víðir.png|20px]] [[Knattspyrnufélagið Víðir|Víði]], [[1. deild kvenna í knattspyrnu 2005|B-deild 2005]] * Stærsta tap: 0:12 gegn [[Mynd:Þróttur_R..png|20px]] [[Knattspyrnufélagið Þróttur|Þrótti R.]], [[1. deild kvenna í knattspyrnu 2002|B-deild 2002]] === [[Mynd:Völsungur.gif|30px]] [[Íþróttafélagið Völsungur|Völsungur]] === * Stærsti sigur: 13:0 gegn [[Hamrarnir|Hömrunum]], [[2. deild kvenna í knattspyrnu 2007|B-deild 2007]] * Stærsta tap: 0:11 gegn [[Mynd:Þróttur_R..png|20px]] [[Knattspyrnufélagið Þróttur|Þrótti]], [[1. deild kvenna í knattspyrnu 2010|B-deild 2010]] === [[Mynd:UMFS.png|30px]] [[Ungmennafélag Selfoss|Selfoss]] === * Stærsti sigur: 16:0 gegn Smára, [[2. deild kvenna í knattspyrnu 2025|C-deild 2025]] * Stærsta tap: 0:18 gegn [[Mynd:Breidablik.png|20px]] [[Ungmennafélagið Breiðablik|Breiðabliki]], [[2. deild kvenna í knattspyrnu 1988|B-deild 1988]] === [[Mynd:Einherji.png|30px]] [[Ungmennafélagið Einherji|Einherji]] === * Stærsti sigur: 12:0 gegn [[Knattspyrnufélag Rangæinga|K.F.R.]], C-deild 2026 * Stærsta tap: 0:12 gegn [[Mynd:ÞrótturN.png|20px]] [[Þróttur Neskaupsstað|Þrótti Neskaupstað]], [[2. deild kvenna í knattspyrnu 1990|B-deild 1990]] === [[Mynd:UMF_Sindri.jpg|30px]] [[UMF Sindri|Sindri, Höfn]] === * Stærsti sigur: 13:0 gegn Neista Djúpavogi, B-deild 1995 * Stærsta tap: 0:15 gegn [[Mynd:Íþróttafélag_Hafnarfjarðar.JPG|20px]] [[Íþróttafélag Hafnarfjarðar|ÍH]], C-deild 2024 ==Lið sem hætt hafa starfsemi== === [[Mynd:Augnablik_félag.svg|30px]] [[Augnablik]] === * Stærstu sigrar: 9:1 gegn [[Mynd:Fjarðarbyggð.jpg|20px]][[Mynd:Höttur.svg|20px]][[Mynd:Leiknirf.jpg|20px]] [[Knattspyrnufélag Fjarðabyggðar|Fjarðabyggð]]/[[Höttur|Hetti]]/[[Ungmennafélagið Leiknir|Leikni]], C-deild 2018 8:0 gegn [[Mynd:Grótta.png|20px]] [[Íþróttafélagið Grótta|Gróttu]], B-deild 2016 8:0 gegn [[Hvíti riddarinn|Hvíta riddaranum]], B-deild 2017 * Stærstu töp: 0:7 [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], B-deild 2023 0:7 [[Mynd:UMFG,_Grindavík.png|30px]] [[Ungmennafélag Grindavíkur|Grindavík]], B-deild 2023 [[Flokkur:knattspyrna á Íslandi]] === [[Mynd:UMFG,_Grindavík.png|30px]] [[Ungmennafélag Grindavíkur|Grindavík]] === * Stærsti sigur: 21:0 gegn [[Hvíti riddarinn|Hvíta riddaranum]], [[1. deild kvenna í knattspyrnu 2015|B-deild 2015]] * Stærsta tap: 0:15 gegn [[Mynd:KR Reykjavík.png|20px]] [[Knattspyrnufélag Reykjavíkur|KR]], [[Meistaradeild kvenna í knattspyrnu 1999|A-deild 1999]] admot59rasd2caht8j8az5aqa0t5czf Module:Parameter names example 828 169485 1975465 1768203 2025-04-23T18:00:35Z en>MusikBot II 0 Changed protection settings for "[[Module:Parameter names example]]": [[Wikipedia:High-risk templates|High-risk template or module]]: 2500 transclusions ([[User:MusikBot II/TemplateProtector|more info]]) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite)) 1975465 Scribunto text/plain -- This module implements {{parameter names example}}. local p = {} local function makeParam(s) local lb = '&#123;' local rb = '&#125;' return lb:rep(3) .. s .. rb:rep(3) end local function italicize(s) return "''" .. s .. "''" end local function plain(s) return s end function p._main(args, frame) -- Find how we want to format the arguments to the template. local formatFunc if args._display == 'italics' or args._display == 'italic' then formatFunc = italicize elseif args._display == 'plain' then formatFunc = plain else formatFunc = makeParam end -- Build the table of template arguments. local targs = {} for k, v in pairs(args) do if type(k) == 'number' then targs[v] = formatFunc(v) elseif not k:find('^_') then targs[k] = v end end --targs['nocat'] = 'yes'; --targs['categories'] = 'no'; --targs['demo'] = 'yes'; -- Find the template name. local template if args._template then template = args._template else local currentTitle = mw.title.getCurrentTitle() if currentTitle.prefixedText:find('/sandbox$') then template = currentTitle.prefixedText else template = currentTitle.basePageTitle.prefixedText end end -- Call the template with the arguments. frame = frame or mw.getCurrentFrame() local success, result = pcall( frame.expandTemplate, frame, {title = template, args = targs} ) if success then return result else return '' end end function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { wrappers = 'Template:Parameter names example' }) return p._main(args, frame) end return p to0eolw8xx8fiql0ynvd8cfvp3ukqw4 1975466 1975465 2026-08-15T16:50:50Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Parameter_names_example]] 1975465 Scribunto text/plain -- This module implements {{parameter names example}}. local p = {} local function makeParam(s) local lb = '&#123;' local rb = '&#125;' return lb:rep(3) .. s .. rb:rep(3) end local function italicize(s) return "''" .. s .. "''" end local function plain(s) return s end function p._main(args, frame) -- Find how we want to format the arguments to the template. local formatFunc if args._display == 'italics' or args._display == 'italic' then formatFunc = italicize elseif args._display == 'plain' then formatFunc = plain else formatFunc = makeParam end -- Build the table of template arguments. local targs = {} for k, v in pairs(args) do if type(k) == 'number' then targs[v] = formatFunc(v) elseif not k:find('^_') then targs[k] = v end end --targs['nocat'] = 'yes'; --targs['categories'] = 'no'; --targs['demo'] = 'yes'; -- Find the template name. local template if args._template then template = args._template else local currentTitle = mw.title.getCurrentTitle() if currentTitle.prefixedText:find('/sandbox$') then template = currentTitle.prefixedText else template = currentTitle.basePageTitle.prefixedText end end -- Call the template with the arguments. frame = frame or mw.getCurrentFrame() local success, result = pcall( frame.expandTemplate, frame, {title = template, args = targs} ) if success then return result else return '' end end function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { wrappers = 'Template:Parameter names example' }) return p._main(args, frame) end return p to0eolw8xx8fiql0ynvd8cfvp3ukqw4 Snið:Parameter names example 10 169486 1975469 1825867 2025-04-23T18:00:14Z en>MusikBot II 0 Changed protection settings for "[[Template:Parameter names example]]": [[Wikipedia:High-risk templates|High-risk template or module]]: 2501 transclusions ([[User:MusikBot II/TemplateProtector|more info]]) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite)) 1975469 wikitext text/x-wiki <includeonly>{{#invoke:Parameter names example|main}}</includeonly><noinclude> {{documentation}}<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> </noinclude> 4dc1wzmglz31ir81jrn4ik3iy1v4jpt 1975470 1968856 2026-08-15T16:50:50Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Parameter_names_example]] 1968856 wikitext text/x-wiki <includeonly>{{#invoke:Parameter names example|main}}</includeonly><noinclude> {{Documentation}}</noinclude> gvpqzbbvf56ofahq037m01ntjdzzuo9 Module:Lua banner 828 169973 1975463 1791580 2024-04-05T02:45:24Z en>Uzume 0 protect against "mw.title.new()" returns "nil" 1975463 Scribunto text/plain -- This module implements the {{lua}} template. local yesno = require('Module:Yesno') local mList = require('Module:List') local mTableTools = require('Module:TableTools') local mMessageBox = require('Module:Message box') local p = {} function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('^%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end function p._main(args) local modules = mTableTools.compressSparseArray(args) local box = p.renderBox(modules) local trackingCategories = p.renderTrackingCategories(args, modules) return box .. trackingCategories end function p.renderBox(modules) local boxArgs = {} if #modules < 1 then boxArgs.text = '<strong class="error">Error: no modules specified</strong>' else local moduleLinks = {} for i, module in ipairs(modules) do moduleLinks[i] = string.format('[[:%s]]', module) local maybeSandbox = mw.title.new(module .. '/sandbox') if maybeSandbox and maybeSandbox.exists then moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|sandbox]])', maybeSandbox.fullText) end end local moduleList = mList.makeList('bulleted', moduleLinks) local title = mw.title.getCurrentTitle() if title.subpageText == "doc" then title = title.basePageTitle end if title.contentModel == "Scribunto" then boxArgs.text = 'This module depends on the following other modules:' .. moduleList else boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList end end boxArgs.type = 'notice' boxArgs.small = true boxArgs.image = '[[File:Lua-Logo.svg|30px|alt=|link=]]' return mMessageBox.main('mbox', boxArgs) end function p.renderTrackingCategories(args, modules, titleObj) if yesno(args.nocat) then return '' end local cats = {} -- Error category if #modules < 1 then cats[#cats + 1] = 'Lua templates with errors' end -- Lua templates category titleObj = titleObj or mw.title.getCurrentTitle() local subpageBlacklist = { doc = true, sandbox = true, sandbox2 = true, testcases = true } if not subpageBlacklist[titleObj.subpageText] then local protCatName if titleObj.namespace == 10 then local category = args.category if not category then local categories = { ['Module:String'] = 'Templates based on the String Lua module', ['Module:Math'] = 'Templates based on the Math Lua module', ['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module', ['Module:Citation/CS1'] = 'Templates based on the Citation/CS1 Lua module' } category = modules[1] and categories[modules[1]] category = category or 'Lua-based templates' end cats[#cats + 1] = category protCatName = "Templates using under-protected Lua modules" elseif titleObj.namespace == 828 then protCatName = "Modules depending on under-protected modules" end if not args.noprotcat and protCatName then local protLevels = { autoconfirmed = 1, extendedconfirmed = 2, templateeditor = 3, sysop = 4 } local currentProt if titleObj.id ~= 0 then -- id is 0 (page does not exist) if am previewing before creating a template. currentProt = titleObj.protectionLevels["edit"][1] end if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end for i, module in ipairs(modules) do if module ~= "WP:libraryUtil" then local moduleTitle = mw.title.new(module) local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"][1] if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end if moduleProt < currentProt then cats[#cats + 1] = protCatName break end end end end end for i, cat in ipairs(cats) do cats[i] = string.format('[[Category:%s]]', cat) end return table.concat(cats) end return p dq7qzq2ns8wqfpy25uvhp3np9z9bde7 1975464 1940973 2026-08-15T16:50:50Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Lua_banner]] 1940973 Scribunto text/plain -- This module implements the {{lua}} template. local yesno = require('Module:Yesno') local mList = require('Module:List') local mTableTools = require('Module:TableTools') local mMessageBox = require('Module:Message box/sandbox') -- temp local p = {} function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('^%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end function p._main(args) local modules = mTableTools.compressSparseArray(args) local box = p.renderBox(modules) local trackingCategories = p.renderTrackingCategories(args, modules) return box .. trackingCategories end function p.renderBox(modules) local boxArgs = {} if #modules < 1 then boxArgs.text = '<strong class="error">Villa: engar skriftur tilgreindar</strong>' else local moduleLinks = {} for i, module in ipairs(modules) do moduleLinks[i] = string.format('[[:%s]]', module) local maybeSandbox = mw.title.new(module .. '/sandbox') if maybeSandbox and maybeSandbox.exists then moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|sandkassi]])', maybeSandbox.fullText) end end local moduleList = mList.makeList('bulleted', moduleLinks) local title = mw.title.getCurrentTitle() if title.subpageText == "doc" then title = title.basePageTitle end if title.contentModel == "Scribunto" then boxArgs.text = 'Þessi skrifta notar eftirfarandi skriftur:' .. moduleList else boxArgs.text = 'Þetta snið notar [[:en:Wikipedia:Lua|Lua]]:\n' .. moduleList end end boxArgs.type = 'notice' boxArgs.small = true boxArgs.image = '[[File:Lua-Logo.svg|30px|alt=|link=]]' return mMessageBox.main('mbox', boxArgs) end function p.renderTrackingCategories(args, modules, titleObj) if yesno(args.nocat) then return '' end local cats = {} -- Error category if #modules < 1 then cats[#cats + 1] = 'Lua snið með villur' end -- Lua templates category titleObj = titleObj or mw.title.getCurrentTitle() local subpageBlacklist = { doc = true, sandbox = true, sandbox2 = true, testcases = true } if not subpageBlacklist[titleObj.subpageText] then local protCatName if titleObj.namespace == 10 then local category = args.category if not category then local categories = { ['Module:String'] = 'Snið sem byggjast á Lua skriftunni String', ['Module:Math'] = 'Snið sem byggjast á Lua skriftunni Math', ['Module:BaseConvert'] = 'Snið sem byggjast á Lua skriftunni BaseConvert', ['Module:Citation/CS1'] = 'Snið sem byggjast á Lua skriftunni Citation/CS1' } categories['Module:Citation/CS1'] = categories['Module:Citation'] category = modules[1] and categories[modules[1]] category = category or 'Lua snið' end cats[#cats + 1] = category protCatName = "Templates using under-protected Lua modules" elseif titleObj.namespace == 828 then protCatName = "Modules depending on under-protected modules" end if not args.noprotcat and protCatName then local protLevels = { autoconfirmed = 1, extendedconfirmed = 2, templateeditor = 3, sysop = 4 } local currentProt if titleObj.id ~= 0 then -- id is 0 (page does not exist) if am previewing before creating a template. currentProt = titleObj.protectionLevels["edit"][1] end if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end for i, module in ipairs(modules) do if module ~= "WP:libraryUtil" then local moduleTitle = mw.title.new(module) local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"] and moduleTitle.protectionLevels["edit"][1] if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end if moduleProt < currentProt then cats[#cats + 1] = protCatName break end end end end end for i, cat in ipairs(cats) do cats[i] = string.format('[[Flokkur:%s]]', cat) end return table.concat(cats) end return p ndjovx00th5yje6dazffmw6crlajal3 Snið:Lua 10 169974 1975467 1966662 2026-07-25T03:53:06Z en>Zackmann08 0 [[Wikipedia:Templates for discussion/Log/2026 July 24#Template:Lua]] closed as Withdrawn ([[WP:XFDC#4.0.16|XFDcloser]]) 1975467 wikitext text/x-wiki <includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> {{Lua|Module:Lua banner}} {{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> pnmjp3f3fl321yf2jpg5syebi412n7b 1975468 1975467 2026-08-15T16:50:50Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Lua]] 1975467 wikitext text/x-wiki <includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> {{Lua|Module:Lua banner}} {{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> pnmjp3f3fl321yf2jpg5syebi412n7b 1975512 1975468 2026-08-15T17:25:52Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975467|1975467]] frá notandanum [[:en:User:Zackmann08|en>Zackmann08]] 1975512 wikitext text/x-wiki <includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> {{Lua|Module:Lua banner}} {{documentation}} </noinclude> ei0srqer6n8b5nwaswm0z9g3s2c5vdz Snið:Left 10 171671 1975419 1790924 2025-08-13T00:32:37Z en>Pppery 0 Changed protection settings for "[[Template:Left]]" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) 1975419 wikitext text/x-wiki <includeonly>{{{{{|safesubst:}}}#ifeq:{{{1|a}}}|{{{1|b}}} |<div style="float:left;">{{{1|}}}</div> |style="text-align:left"{{{{{|safesubst:}}}!}} }}</includeonly><noinclude> {{Documentation}} <!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --> </noinclude> 17aqy3uqkgjyyv7v1ef4gt1am5icsk6 1975420 1975419 2026-08-15T16:50:47Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Left]] 1975419 wikitext text/x-wiki <includeonly>{{{{{|safesubst:}}}#ifeq:{{{1|a}}}|{{{1|b}}} |<div style="float:left;">{{{1|}}}</div> |style="text-align:left"{{{{{|safesubst:}}}!}} }}</includeonly><noinclude> {{Documentation}} <!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --> </noinclude> 17aqy3uqkgjyyv7v1ef4gt1am5icsk6 Snið:Start date 10 173088 1975423 1798481 2025-03-11T11:58:05Z en>Primefac 0 Undid revision [[Special:Diff/1279926643|1279926643]] by [[Special:Contributions/Primefac|Primefac]] ([[User talk:Primefac|talk]]) bloody hell, the two of us have a ridiculous ability to edit-conflict (module updated two minutes ago) 1975423 wikitext text/x-wiki <includeonly>{{#invoke:Date time|generate_date}}<!-- Tracking categories -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using start date with unknown parameters|_VALUE_]]}}|preview=Page using [[Template:Start date]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | 3 | 4 | 5 | 6 | 7 | df }}</includeonly><noinclude> {{documentation}} </noinclude> ryuirexkn63z8pry0gkvpkppv2541q9 1975424 1975423 2026-08-15T16:50:47Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Start_date]] 1975423 wikitext text/x-wiki <includeonly>{{#invoke:Date time|generate_date}}<!-- Tracking categories -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using start date with unknown parameters|_VALUE_]]}}|preview=Page using [[Template:Start date]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | 3 | 4 | 5 | 6 | 7 | df }}</includeonly><noinclude> {{documentation}} </noinclude> ryuirexkn63z8pry0gkvpkppv2541q9 1975518 1975424 2026-08-15T18:51:21Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975423|1975423]] frá notandanum [[:en:User:Primefac|en>Primefac]] 1975518 wikitext text/x-wiki #tilvísun[[Snið:Upphafsdagur]] e6m739wa8yrmug4irpmw1y1zxxk4114 Module:Percentage 828 176737 1975455 1832976 2026-07-17T14:25:23Z en>Bkell 0 convert ASCII hyphen-minus to a proper Unicode minus sign 1975455 Scribunto text/plain -- -- This module implements [[Template:Percentage]] -- local p = {} local math_module = require( "Module:Math" ) local precision = math_module._precision local sortkey = require( "Module:Sortkey" ) local function rnd(num, digits) -- This function implements {{rnd}} return math_module._precision_format(tostring(num), digits) end local function oom(num) -- This function implements {{order of magnitude}} return math_module._order(tostring(num)) end function _nonscinote(num) -- This function undoes scientific notation if mw.ustring.match(num or '', '^%s*(%d)%.(%d+)<span[^<>]*>×</span>10<sup>([%-−]*)(%d)</sup>%s*$') then local a,b,c,d = mw.ustring.match(num or '', '^%s*(%d)%.(%d+)<span[^<>]*>×</span>10<sup>([%-−]*)(%d)</sup>%s*$') d = tonumber(d) or 1 if c ~= '' then return '0.' .. mw.ustring.rep('0', d - 1) .. a .. b else return a .. mw.ustring.sub(b .. mw.ustring.rep('0', d ), 1, d) end end return num end local function fmtout(num,snote) if snote then return _nonscinote(num) else return num end end local function fixminus(s) -- Converts a leading ASCII hyphen-minus (U+002D) to a Unicode minus sign (U+2212), -- preserving any leading padding whitespace. Only the sign of the number is touched. return (mw.ustring.gsub(tostring(s), '^(%s*)%-', '%1−')) end function _percentage(n1, n2, prec, suffix, pad, sigfig, sn) local pct = 100*n1/n2 skey = '<span data-sort-value="' .. sortkey._sortKeyForNumber(pct) .. '♠" style="display:none"></span>' -- prec = math.floor(prec) if sigfig ~= '' then local out if pct ~= 0 then out = fmtout(rnd(pct, tonumber(sigfig) - oom(pct) - 1), sn) else out = fmtout(rnd(pct, tonumber(sigfig) - 3), sn) end return skey .. fixminus(out) .. suffix end if pad ~= '' then return skey .. fixminus(fmtout(rnd(pct, prec), sn)) .. suffix end prec = (prec < 0) and 0 or prec if pct ~= 0 then pct = ((pct < 0) and -1 or 1)*math.floor(math.abs(pct * 10^prec) + 0.5) / 10^prec end return skey .. fixminus(fmtout(pct, sn)) .. suffix end function p.main(frame) local args = frame.args[1] and frame.args or frame:getParent().args local yesno = require('Module:Yesno') return _percentage( math_module._cleanNumber(args[1] or 0, true) or 0, math_module._cleanNumber(args[2] or 100, true) or 100, tonumber(args[3]) or tonumber(args['pad']) or 0, args['%'] or '%', args['pad'] or '', args['sigfig'] or '', yesno(args['nonscinote'] or 'no') ) end return p buedtunkmjr1m885g5323ze5xnbqray 1975456 1975455 2026-08-15T16:50:49Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Percentage]] 1975455 Scribunto text/plain -- -- This module implements [[Template:Percentage]] -- local p = {} local math_module = require( "Module:Math" ) local precision = math_module._precision local sortkey = require( "Module:Sortkey" ) local function rnd(num, digits) -- This function implements {{rnd}} return math_module._precision_format(tostring(num), digits) end local function oom(num) -- This function implements {{order of magnitude}} return math_module._order(tostring(num)) end function _nonscinote(num) -- This function undoes scientific notation if mw.ustring.match(num or '', '^%s*(%d)%.(%d+)<span[^<>]*>×</span>10<sup>([%-−]*)(%d)</sup>%s*$') then local a,b,c,d = mw.ustring.match(num or '', '^%s*(%d)%.(%d+)<span[^<>]*>×</span>10<sup>([%-−]*)(%d)</sup>%s*$') d = tonumber(d) or 1 if c ~= '' then return '0.' .. mw.ustring.rep('0', d - 1) .. a .. b else return a .. mw.ustring.sub(b .. mw.ustring.rep('0', d ), 1, d) end end return num end local function fmtout(num,snote) if snote then return _nonscinote(num) else return num end end local function fixminus(s) -- Converts a leading ASCII hyphen-minus (U+002D) to a Unicode minus sign (U+2212), -- preserving any leading padding whitespace. Only the sign of the number is touched. return (mw.ustring.gsub(tostring(s), '^(%s*)%-', '%1−')) end function _percentage(n1, n2, prec, suffix, pad, sigfig, sn) local pct = 100*n1/n2 skey = '<span data-sort-value="' .. sortkey._sortKeyForNumber(pct) .. '♠" style="display:none"></span>' -- prec = math.floor(prec) if sigfig ~= '' then local out if pct ~= 0 then out = fmtout(rnd(pct, tonumber(sigfig) - oom(pct) - 1), sn) else out = fmtout(rnd(pct, tonumber(sigfig) - 3), sn) end return skey .. fixminus(out) .. suffix end if pad ~= '' then return skey .. fixminus(fmtout(rnd(pct, prec), sn)) .. suffix end prec = (prec < 0) and 0 or prec if pct ~= 0 then pct = ((pct < 0) and -1 or 1)*math.floor(math.abs(pct * 10^prec) + 0.5) / 10^prec end return skey .. fixminus(fmtout(pct, sn)) .. suffix end function p.main(frame) local args = frame.args[1] and frame.args or frame:getParent().args local yesno = require('Module:Yesno') return _percentage( math_module._cleanNumber(args[1] or 0, true) or 0, math_module._cleanNumber(args[2] or 100, true) or 100, tonumber(args[3]) or tonumber(args['pad']) or 0, args['%'] or '%', args['pad'] or '', args['sigfig'] or '', yesno(args['nonscinote'] or 'no') ) end return p buedtunkmjr1m885g5323ze5xnbqray Module:Sortkey 828 176738 1975417 2021-10-05T18:54:13Z en>Pppery 0 Fixed unintended global variable use 1975417 Scribunto text/plain local getArgs = require('Module:Arguments').getArgs local p = {} function p._encode(sortkey) -- Protect against sortkey nesting. -- Example: {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}} if string.find(sortkey, "sortkey") or string.find(sortkey, "data-sort-value") then return ""; end return mw.text.encode(sortkey) end function p.encode(frame) local args = getArgs(frame); return p._encode(args[1] or "") end local function valid_number(num) -- Return true if num is a valid number. -- In Scribunto (different from some standard Lua), when expressed as a string, -- overflow or other problems are indicated with text like "inf" or "nan" -- which are regarded as invalid here (each contains "n"). if type(num) == 'number' and tostring(num):find('n', 1, true) == nil then return true end end function p._sortKeyForNumber(value) local sortkey if not valid_number(value) then if value < 0 then sortkey = '1000000000000000000' else sortkey = '9000000000000000000' end elseif value == 0 then sortkey = '5000000000000000000' else local mag = math.floor(math.log10(math.abs(value)) + 1e-14) local prefix if value > 0 then prefix = 7000 + mag else prefix = 2999 - mag value = value + 10^(mag+1) end sortkey = string.format('%d', prefix) .. string.format('%015.0f', math.floor(value * 10^(math.min(28,14-mag)))) end return sortkey; end function p.sortKeyForNumber(frame) local args = getArgs(frame); return p._sortKeyForNumber(args[1] or "") end return p bf6nib86o701vban8cvux2j7z8q1z36 1975418 1832977 2026-08-15T16:50:47Z Bjarki S 9 1 breyting flutt inn frá [[:en:Module:Sortkey]] 1832977 Scribunto text/plain local getArgs = require('Module:Arguments').getArgs local p = {} function p._encode(sortkey) -- Protect against sortkey nesting. -- Example: {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}} if string.find(sortkey, "sortkey") or string.find(sortkey, "data-sort-value") then return ""; end return mw.text.encode(sortkey) end function p.encode(frame) local args = getArgs(frame); return p._encode(args[1] or "") end local function valid_number(num) -- Return true if num is a valid number. -- In Scribunto (different from some standard Lua), when expressed as a string, -- overflow or other problems are indicated with text like "inf" or "nan" -- which are regarded as invalid here (each contains "n"). if type(num) == 'number' and tostring(num):find('n', 1, true) == nil then return true end end function p._sortKeyForNumber(value) local sortkey if not valid_number(value) then if value < 0 then sortkey = '1000000000000000000' else sortkey = '9000000000000000000' end elseif value == 0 then sortkey = '5000000000000000000' else local mag = math.floor(math.log10(math.abs(value)) + 1e-14) local prefix if value > 0 then prefix = 7000 + mag else prefix = 2999 - mag value = value + 10^(mag+1) end sortkey = string.format('%d', prefix) .. string.format('%015.0f', math.floor(value * 10^(math.min(28,14-mag)))) end return sortkey; end function p.sortKeyForNumber(frame) local args = getArgs(frame); return p._sortKeyForNumber(args[1] or "") end return p bf6nib86o701vban8cvux2j7z8q1z36 Snið:Percentage 10 176742 1975453 1832982 2025-11-20T19:45:32Z en>Pppery 0 - 1975453 wikitext text/x-wiki <includeonly>{{safesubst:<noinclude/>#invoke:Percentage|main|{{{1|0}}}|{{{2|100}}}|{{{3|}}}|pad={{{pad|}}}|sigfig={{{sigfig|}}}|%={{{%|%}}}|nonscinote={{{nonscinote|}}} }}</includeonly><noinclude> {{documentation}} </noinclude> ma6gmcwg3uizk7es6a6xf2g18cjrxin 1975454 1975453 2026-08-15T16:50:49Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Percentage]] 1975453 wikitext text/x-wiki <includeonly>{{safesubst:<noinclude/>#invoke:Percentage|main|{{{1|0}}}|{{{2|100}}}|{{{3|}}}|pad={{{pad|}}}|sigfig={{{sigfig|}}}|%={{{%|%}}}|nonscinote={{{nonscinote|}}} }}</includeonly><noinclude> {{documentation}} </noinclude> ma6gmcwg3uizk7es6a6xf2g18cjrxin 1975516 1975454 2026-08-15T18:19:27Z Bjarki S 9 Afturkallaði innflutta útgáfu [[Special:Diff/1975453|1975453]] frá notandanum [[:en:User:Pppery|en>Pppery]] 1975516 wikitext text/x-wiki #tilvísun[[Snið:Prósenta]] b9nq1gmi3o5o4ltdvx1hb7t0oyw3hpt Olivia Rodrigo 0 178197 1975556 1845485 2026-08-16T08:35:11Z ~2026-44810-27 119616 /* */ 1975556 wikitext text/x-wiki {{Persóna | nafn = Olivia Rodrigo | mynd = {{Wikidata|property|raw|P18}} | mynd_texti = {{Wikidata|qualifier|P18|P2096}} | fæðingarnafn = Olivia Isabel Rodrigo | fæðingardagur = {{fæðingardagur og aldur|2003|2|20}} | fæðingarstaður = [[Murrieta]], [[Kalifornía]], [[Bandaríkin|BNA]] | starf = {{hlist|Söngvari|lagahöfundur|leikari}} | ár = 2015–í dag | vefsíða = {{URL|oliviarodrigo.com}} | undirskrift = Olivia Rodrigo signature.svg | module = {{Tónlistarfólk|embed=yes | stefna = {{flatlist| * [[Popptónlist|Popp]] * [[popp rokk]] }} | hljóðfæri = {{flatlist| * Rödd * gítar * píanó }} | útgefandi = {{flatlist| * [[Geffen Records|Geffen]] }}}} | module2 = {{Hlusta|pos=center|embed=yes|filename= Olivia Rodrigo speaks on youth vaccination.ogg|title=Rödd Olivia Rodrigo|type=speech|description=Rodrigo að gefa ræðu um [[bólusetning]]ar.<br/ >Tekið upp {{nowrap|14. júlí 2021}}}} }} '''Olivia Isabel Rodrigo''' (f. 20. febrúar 2003) er [[Bandaríkin|bandarísk]] söngkona og leikkona. Hún varð fyrst fræg fyrir að leika í [[Walt Disney-fyrirtækið|Disney]] þáttunum ''Bizaardvark'' og ''High School Musical: The Musical: The Series''. Eftir að hafa skrifað undir hjá [[Geffen Records]], gaf Rodrigo út fyrstu smáskífuna sína, „Drivers License“, sem setti ýmis met og varð eitt af vinsælustu lögum ársins 2021. Eftir á gaf hún út smáskífurnar „Deja Vu“ og „Good 4 U“ ásamt sinni fyrstu breiðskífu, ''Sour'' (2021). Platan hlaut lof gagnrýnenda og veitti henni mörg verðlaun, þar með talið þrjú [[Grammy-verðlaunin|Grammy-verðlaun]]. Önnur platan hennar, ''Guts'', kom út árið 2023 og var studd af smáskífunum „Vampire“, „Bad Idea Right?“, og „Get Him Back!“, sem komust á topp vinsældalista í nokkrum löndum. Önnur verðlaun sem hún hefur hlotið eru meðal annars [[American Music-verðlaunin|American Music-verðlaun]], [[Billboard Music-verðlaunin|''Billboard'' Music-verðlaun]], og [[MTV Video Music-verðlaunin|MTV Video Music-verðlaun]]. ''[[Time]]'' nefndi hana skemmtikraft ársins 2021 og ''[[Billboard]]'' nefndi hana konu ársins árið 2022. == Útgefið efni == === Breiðskífur === * ''Sour'' (2021) * ''Guts'' (2023) == Tenglar == * {{Opinber vefsíða}} * {{IMDb name}} {{stubbur|æviágrip|tónlist}} {{DEFAULTSORT:Rodrigo, Olivia}} {{f|2003}} [[Flokkur:Bandarískir leikarar]] [[Flokkur:Bandarískir söngvarar]] [[Flokkur:Bandarískir tónlistarmenn]] 8o2l7diaesgr7h0irlo9c5fngyro51i Snið:Space 10 180478 1975433 2023-02-14T01:26:39Z en>Xaosflux 0 shell params 1975433 wikitext text/x-wiki #REDIRECT [[Template:Spaces]] {{Rcat shell| {{R from modification}} {{R with history}} {{R from template shortcut}} }} d521813tbyim2j2dsy9kxikkaoo0jnt 1975434 1860864 2026-08-15T16:50:48Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Space]] 1860864 wikitext text/x-wiki #tilvísun[[Snið:Bil]] o610uomgnf1u5cy9grq2s91nj1pmcbe Vatnahverfi (Grænland) 0 184534 1975529 1973280 2026-08-15T20:36:50Z InternetArchiveBot 75347 Bætir við 1 bók til að [[Wikipedia:Sannreynanleikareglan|sannreyna]] (20260815sim)) #IABot (v2.0.9.5) ([[User:GreenC bot|GreenC bot]] 1975529 wikitext text/x-wiki '''Vatnahverfi''' var byggð í [[Eystribyggð]] norrænna manna á [[Grænland]]i. Fornleifafræðingar og sagnfræðingar telja að þetta hafi verið besta beitar- og heyskaparland í byggðum [[norrænir Grænlendingar|norrænna Grænlendinga]].<ref>{{cite book|chapter=Vikings in the West Atlantic: A Model of Norse Greenlandic Medieval Society|author=Keller, C.|title=The North Atlantic Frontier of Medieval Europe|year=2017|pages=25-46|publisher=Routledge|doi=10.4324/9781315238043-2}}</ref> Landnám norrænna mann í Vatnahverfi hófst í lok 10. aldar og þeir bjuggu þar í nærri 500 ár áður en þeir hurfu frá svæðinu og öllu Grænlandi, líklega einhvern tíma á síðari hluta 15. aldar. Vatnahverfi var á skaga sem teygir sig norðaustur frá [[Labradorhaf]]i inn að [[Jespersenjökull|Jespersenjökli]] um 60 km inn í land á milli [[Hrafnsfjörður|Hrafnsfjarðar]] (grænlenska: Alluitsup kangerlua) og [[Einarsfjörður|Einarsfjarðar]] (grænlenska: Igalikup kargerlua) og nær yfir um 500 km². Vatnahverfi er aðeins nefnt einu sinni í fornsögum, en samt er það eina norræna örnefnið sem notað er á nútímakortum. Eins og nafnið bendir til eru mörg stöðuvötn, ár og lækir á svæðinu og fjölmörgar rústir af norrænum uppruna. Landslagið er fjalllent, gróðurríkt meðfram ströndinni og inn til lands. Jespersenjökull er áberandi til norðurs. Á tímabilum herja þar suðaustan hvassviðri og fornleifarannsóknir hafa leitt í ljós að uppblástur var mikil kvöð fyrir bændur þar. ==Landnám== [[Mynd:Vantahverfi Norse Greenland.jpg|thumb|Kort af Vatnahverfi.]] Landnám Vatnahverfis hófst þegar fylgdarmenn [[Eiríkur rauði Þorvaldsson|Eiríks rauða]] frá Íslandi komu þangað árið [[985]]. Í ''[[Grænlendinga saga|Grænlendinga sögu]]'' segir svo frá: „Svo segja fróðir menn, að á því sama sumri, er Eiríkur rauði fór að byggja Grænland, þá fór hálfur þriðji tugur skipa úr Breiðafirði og Borgarfirði, en fjórtán komust út þangað. Sum rak aftur, en sum týndust. Það var fimmtán vetrum fyrr en kristni var lögtekin á Íslandi.“ Þar segir einnig að maður nefndur Hafgrímur hafi komið með Eiríki í þessari för og numið Hafgrímsfjörð og Vatnahverfi. Svipaða frásögn er að finna í ''[[Landnámabók]]''. C-14-aldursgreiningar á beinum af húsdýrum og mönnum, bæði í Eystribyggð og [[Vestribyggð]], styðja þessar frásagnir.<ref>{{cite book|chapter=The Demise of Norse Greenland|title=Vikings: The North Atlantic Saga|author=McGovern, T.H.|editor1=Fitzhugh, W. W.|editor2=Ward, E. I.|publisher=Smithsonian Institution Press|year=2000|url=https://archive.org/details/vikingsnorthatla00fitz}}</ref> Eiríkur og aðrir landnámsmenn reistu bæi sína fjarri Labradorhafi við innfirði þar sem veður var mildara og landið hæfði betur búskaparháttum þeirra. Þannig var byggðin að mestu í Vatnahverfi, þar sem meirihluti bæjanna var á norðurhelmingi skagans í 30 km fjarlægð eða meira frá hafinu. Vatnahverfi var ólíkt öðrum byggðarlögum að því leyti að fjölmörg bæjarstæði voru við vötn og ár frekar en við fjarðarstrendur, eins og oftast var í öðrum byggðum. Mörg bæjarstæði voru í 3-6 km fjarlægð frá ströndinni. Alls hafa fornleifafræðingar skráð 436 húsatóftir á 81 stöðum í Vatnahverfi. Af því er talið að 50 hafi verið bóndabæir.<ref>{{cite web|url=https://natmus.dk/organisation/forskning-samling-og-bevaring/nyere-tid-og-verdens-kulturer/etnografisk-samling/arktisk-forskning/previous-projects/vatnahverfi/|title=Norse settlement in Vatnahverfi, South Greenland|author=Jette Arneborg|website=Nationalmuseet|access-date=24.7.2026}}</ref> Mikið af þessum húsum hafa verið skemmur eða sel. Að meðaltali er álitið að 8 til 10 einstaklingar hafi búið á hverjum bæ; eða um það bil 500 alls þegar byggðin stóð í blóma. ==Sveitin== [[Mynd:Vatnahverfi Panoramio 3.jpg|thumb|Nútímabúskapur í Vatnahverfi.]] [[Garðar (Grænlandi)|Garðar]] voru félagsleg og efnahagsleg miðstöð svæðisins. Þar var [[dómkirkja]] og erlendir kaupmenn komu þar við þegar þeir heimsóttu Grænland. Leifar eldri kirkna við bæina undir Höfða í norðanverðu Vatnahverfi og Langaneskirkjan í suðurhlutanum benda til þess að stórbændur hafi haft mikil völd og reist kirkjur á búum sínum. Fyrir utan bæinn í Görðum voru bæirnir í Vatnahverfi meðalstórir eða litlir. [[Sauðfé]] og [[geitur]] voru mikilvægustu húsdýrin, en selveiðar og sjósókn talsverður þáttur í fæðuöflun. [[Ívar Bárðarson]] nefnir í Grænlandslýsingu sinni að mikil [[Silungur|silungaveiði]] sé í vötnunum í Vatnahverfi. Flesti bæir í Vatnahverfi voru á milli Hafgrímsfjarðar og Austfjarðar (sem sem skiptast út frá Einarsfirði) á norðvesturhluta skagans. Sjálfur hefur Hafgrímur sennilega sest að í þeim firði sem ber nafn hans, og þar sem enn má sjá rústir af stórum bæ. Við bæinn var einnig lítil kirkja sem norski rithöfundurinn [[Helge Ingstad]] taldi vera Langaneskirkjuna sem lýst er í ''[[Einars þáttur Sokkasonar|Einars þætti Sokkasonar]]''.<ref>{{Bókaheimild|titill=Land Under the Pole Star|höfundur=Helge Ingstad|útgefandi=St. Martin's|ár=1966|bls=245-248|url=https://archive.org/details/landunderpolesta0000ings}}</ref><ref>{{Bókaheimild|titill=Grænland í miðaldaritum|höfundur=Ólafur Halldórsson|útgefandi=Sögufélag|ár=1978}}</ref> Svæðið er kallað Eqaluit („laxastaðurinn“) af nútíma Grænlendingum. [[Mynd:Undir Hofda 10 church ruines Steentrup Vatnahverfi.jpg|thumb|Rústir af kirkjunni undir Höfða.]] Byggðin við Austurfjörð var einnig þéttbyggð, væntanlega vegna nálægðar við Garða, sem voru um 15 km frá í norðvestur. Þar var einnig lítil kirkja, kölluð „kirkjan undir Höfða“. Klumpur af brenndum og bráðnuðum leir og gleri sem fannst í rústum kirkjunnar bendir til þess að hún hafi brunnið. Bæirnir í Vatnahverfi virðast hafa verið frekar vel stæðir og hentugir til búskapar með fjölda húsdýra: nautgripi, sauðfé, geitur, svín, hesta og hunda. [[Frjókornagreining]] í Vatnahverfi sýndi að gróðurfar við landnám var mjög ólíkt í hlíðum og á undirlendi við firðina eða innar í landi. Fyrir landnám einkenndist gróður inni í landi af 20% kjarr- og skóglendistegundum: [[ilmbjörk]], [[fjalldrapi|fjalldrapa]] og [[Víðir (ættkvísl)|víðitegundum]]. Nær fjörðunum einkenndist gróður af grösum og öðrum jurtum. Aldirnar eftir landnám þar til byggðin fór í eyði minnkaði hlutfall frjókorna frá trjám og runnum mikið, en jókst frá grasi. Eins mátti sjá að stór svæði höfðu brunnið, líklega til að auka beit og heyöflun.<ref>{{cite journal|author1=Ledger, P. M.|author2=Edwards, K. J.|author3=Schofield, J. E.|year=2014|title=Vatnahverfi: a green and pleasant land? Palaeoecological reconstructions of environmental and land-use change|journal=Journal of the North Atlantic|year=2014|volume=Special Volume 6|pages=29-46|doi=10.3721/037.002.sp605}}</ref> ==Brottflutningur== [[Mynd:Crozier and ring of a Greenlandic bishop.tiff|thumb|Biskupsstafur ür rostungstönn og biskupshringur úr gulli, fundin í gröf á Görðum.]] Vatnahverfi fór í eyði um miðja 15. öld eða á síðari hluta þeirrar aldar, eins og allar byggðir norrænna manna á Grænlandi. Í páfabréfi [[Nikulás 5.|Nikulásar páfa 5.]] frá 1448 segir að enginn biskup hafi verið á Grænlandi síðustu 30 árin og í bréfi [[Alexander 6. páfi|Alexanders 6. páfa]] frá 1492 kemur fram að þangað hafi ekki komið sigling í 80 ár. Þrátt fyri að ekkert samband væri við Grænland hélt [[Rómversk-kaþólska kirkjan|kaþólska kirkjan]] áfram að útnefna Garðabiskupa. 18 biskupar voru skipaðir eftir að sambandið slitnaði, sá síðasti 1537. Enginn þeirra komst til biskupsdæmisins og aðeins einn þeirra, Mattías Knútsson biskup, hafði að sögn lýst yfir vilja til þess.<ref>{{cite journal|title=The Church In North America|author=Laurence Larson|journal=Catholic Historical Review|year=1919|page=193|volume=5|number=2/3}}</ref> Ýmsar tilgátur eru um hvers vegna Grænlendingar hurfu af sjónarsviðinu en engar þeirra hefur með nokkru móti verið hægt að sanna.<ref>{{vísindavefurinn|706|Hvenær og hvers vegna lagðist byggð norrænna manna á Grænlandi niður?|höfundur=Sverrir Jakobsson|dags=1.8.2000}}</ref> Árásir [[inúítar|Inúíta]], [[farsótt]]ir, [[sjórán|sjóræningjaárásir]] og jafnvel erfðafræðileg hrörnun eru meðal þess sem stungið hefur verið upp á, en ekkert í fornleifarannsóknum né [[DNA-samfella|DNA]]-rannsóknum styður slíkar kenningar. Engin af uppgröfnum rústum sýnir merki þess að íbúar hafa flúið í skelfingu, hvorki frá árásum né farsóttum. Engar vísbendingar eru um átök við Inúíta eða um vísvitandi skemmdir á húsum. Fyrir utan gullhring sem fannst á beinagrind biskups í gröf hans á Görðum og biskupsstaf hans úr rostungstönn, hafa engin raunveruleg verðmæti fundist í neinum norrænum rústum á Grænlandi.<ref>{{cite journal|title=Cultural adaptation, compounding vulnerabilities and conjunctures in Norse Greenland|url=https://archive.org/details/sim_proceedings-of-the-national-academy-of-sciences-usa_2012-03-06_109_10/page/3658|author1=Andrew J. Dugmore|author2=Thomas H. McGovern|author3=Orri Vesteinsson|author4=Jette Arneborg|author5=Richard Streeter|author6=Christian Keller|journal=Proceedings of the National Academy of Sciences|year=2012|volume=109|number=10|pages=3658-3663|doi=10.1073/pnas.1115292109}}</ref> Haft er eftir Jette Arneborg, Grænlandssérfræðingi á [[Þjóðminjasafn Danmerkur|Danska þjóðminjasafninu]] í Kaupmannahöfn, „Íbúarnir virðist hafa tekið alla dýrmæta muni, þar á meðal kirkjuklukkur, með sér og skilið eftir fyrirferðarmikla muni. Ég held að þeir hafi einfaldlega ákveðið að yfirgefa svæðið.“<ref>{{Bókaheimild|titill=Norse Greenland – research into abandonment. 40 years of medieval archaeology at Aarhus University.|höfundur=Jette Arneborg|útgefandi=Aarhus University|ár=2011|url=https://www.researchgate.net/publication/287645613_Norse_Greenland_-_research_into_abandonment}}</ref> == Tilvísanir == {{reflist}} {{Norrænir Grænlendingar}} [[Flokkur:Saga Grænlands| ]] c60yknu40d8k3l48urcx8s0rj3czdee Fulltrúaræði Breta í Persaflóa 0 192145 1975531 1972927 2026-08-15T21:01:44Z InternetArchiveBot 75347 Bætir við 1 bók til að [[Wikipedia:Sannreynanleikareglan|sannreyna]] (20260815sim)) #IABot (v2.0.9.5) ([[User:GreenC bot|GreenC bot]] 1975531 wikitext text/x-wiki [[Mynd:British_Residency_in_Bushire.png|thumb|Höll breska fulltrúans í Bushehr árið 1902.]] '''Fulltrúaræði Breta í Persaflóa''' var angi [[Breska heimsveldið|Breska heimsveldisins]] í [[Persaflói|Persaflóa]] sem var formlega stofnaður árið 1822 og heyrði þá undir [[landstjóri Bombay|landstjóra Bombay]]. Á þessum tíma fóru fulltrúar [[Bretland|Breta]] hjá stjórnum hinna ýmsu Persaflóaríkja með vaxandi pólitísk og efnahagsleg áhrif gegnum samninga, fjárfestingar og hernaðarviðveru. Bretar tóku yfir utanríkisstefnu þessara ríkja með því að gera samþykki Breta að skilyrði fyrir samningum við önnur ríki. Stjórn Breta var hvað mest yfir [[Sáttastrandarríkin|Sáttastrandarríkjunum]] (sem síðar urðu [[Sameinuðu arabísku furstadæmin]]), [[Katar]], [[Barein]], [[Kúveit]], [[Múskat og Óman]] og [[Bushehr]] (þar sem nú er [[Íran]]).<ref>{{cite journal|author=Onley, J.|year=2005|title=Britain’s Informal Empire in the Gulf|journal=Journal of Social Affairs|volum=22|number=87|pages=29-45}}</ref> Upphaf fulltrúaræðisins má rekja til þess að [[Breska Austur-Indíafélagið]] kom sér upp fulltrúa í [[Bushehr]] árið 1763 og fékk einkaleyfi á innflutningi á ullarklæði til Persíu. Nokkrum árum síðar komu Bretar sér líka upp fulltrúa í [[Basra]].<ref>{{cite web|url=https://www.nla.ae/en/our-history/historical-periods/british-era/|title=British Era|website=National Library & Archives - United Arab Emirates|access-date=21.7.2026}}</ref> Seinna á 18. öld notaði [[konunglegi breski flotinn]] Bushehr sem flotastöð og gerðu vináttusamning við Íranskeisara árið 1809.<ref>{{cite web|url=https://www.qdl.qa/en/anglo-persian-relations-british-military-mission-persia-1810-1815|title=Anglo-Persian Relations: The British Military Mission to Persia, 1810-1815|author=John Casey|date=17. desember 2021|website=Qatar Digital Library}}</ref> Þessi samningur varð fyrirmynd að fleiri samningum við ráðamenn Persaflóaríkja næstu áratugi. Árið 1819 sendu Bretar flota til að ráða niðurlögum [[sjórán|sjóræningja]] af [[Al Qasimi]]-ættbálknum við suðurströnd Persaflóa.<ref>{{cite book|author=Al-Qasimi, M.|year=1986|title=The myth of Arab piracy in the Gulf|publisher=Croom Helm}}</ref> Árið 1822 voru fulltrúarnir í Basra og Bushehr sameinaðir í eitt embætti yfirfulltrúa Breta í Persaflóa undir landstjóranum í Bombay og síðar (eftir 1873) undir [[landstjóri Indlands|landstjóra Indlands]]. Þegar [[Indland]] fékk sjálfstæði 1947 var embættið flutt undir [[breska utanríkisráðuneytið]]. Fulltrúar Breta í Persaflóa áttu í nánu samstarfi við stjórnendur ríkjanna og störfuðu sem ráðgjafar þeirra um leið og þeir gættu breskra hagsmuna.<ref>{{cite book|author=Hay, Rupert|year=1959|title=The Persian Gulf States. With a foreword by E. M. Eller|location=Washington DC|publisher=Middle East Institute}}</ref> Bretar brugðust við með því að senda herlið ef þessum ríkjum var ógnað. [[Indversk rúpía]] var í reynd sameiginlegur gjaldmiðill ríkjanna. Eftir [[fyrri heimsstyrjöld]] fór áhugi olíufyrirtækja á þessum löndum vaxandi og Bretar gátu stjórnað því hverjir fengju leyfi til olíuleitar og olíuvinnslu. Olíufyrirtækin gerðu því tvenns konar samninga; annars vegar við ráðamenn ríkjanna og hins vegar við bresku ríkisstjórnina. [[Resa Sja|Reza Pahlavi]] Íranskeisari reyndi að hrekja Breta frá olíuvinnslu í Íran, en mistókst. Bretar og Sovétmenn tryggðu sér enn frekari yfirráð yfir olíuvinnslunni eftir [[innrás bandamanna í Íran 1941]]. Bretar drógu sig út úr þessum ríkjum smám saman eftir því sem leið á 20. öldina.<ref>{{cite journal|author=Louis, W. R.|year=2003|title=The British withdrawal from the Gulf, 1967-71|url=https://archive.org/details/sim_journal-of-imperial-and-commonwealth-history_2003-01_31_1/page/83|journal=The Journal of Imperial & Commonwealth History|volume=31|number=1|pages=83-108|doi=10.1080/714002215}}</ref> Árið 1968 tilkynnti stjórn [[Harold Wilson]] að Bretar hygðust hverfa frá öllum löndum „austan Súes“.<ref>{{cite journal|author=McCourt, D. M.|year=2009|title=What was Britain’s “East of Suez Role”? Reassessing the Withdrawal, 1964–1968|journal=Diplomacy & Statecraft|volume=20|number=3|pages=453–472|doi=10.1080/09592290903293787}}</ref> Vegna innbyrðis deilna varð úr að Katar og Barein slitu sig frá hinum ríkjunum, sem mynduðu Sameinuðu arabísku furstadæmin.<ref>{{cite web|title=Historian Heard-Bey On Why the UAE is a Federation|url=https://nyuad.nyu.edu/en/news/latest-news/world-and-societies/2013/november/historian-heard-bey-on-why-the-uae-is-a-federation.html|date=29. október 2013|website=NYU Abu Dhabi}}</ref> == Tilvísanir == {{reflist}} {{stubbur}} [[Flokkur:Breska heimsveldið]] [[Flokkur:Breska Indland]] {{sa|1822|1971}} l65wj8gi0g24nk6gxulypwjv4e5azee Menningarfræði 0 192282 1975532 1974090 2026-08-15T21:10:09Z InternetArchiveBot 75347 Bætir við 1 bók til að [[Wikipedia:Sannreynanleikareglan|sannreyna]] (20260815sim)) #IABot (v2.0.9.5) ([[User:GreenC bot|GreenC bot]] 1975532 wikitext text/x-wiki '''Menningarfræði''' er [[vísindagrein]] sem fæst við rannsóknir á [[menning]]u (þar með talið [[dægurmenning]]u) út frá heimspekilegu, félagslegu, pólitísku og sögulegu samhengi. Menningarfræði skoðar hvernig menningarlegar athafnir tengjast [[vald]]akerfum. Meðal lykilhugtaka í menningarfræði eru [[hugmyndafræði]], [[stétt]], [[þjóðerni]], [[kynvitund]] og [[kynslóð]]ir. Menningarfræði lítur svo á að menningarsamfélög séu í sífelldri mótun, fremur en fastmótuð fyrirbæri.<ref>{{Cite news|url=https://www.britannica.com/topic/cultural-studies|title=cultural studies {{!}} interdisciplinary field|work=Encyclopædia Britannica|access-date=28 June 2017|language=en|archive-date=1 August 2017|archive-url=https://web.archive.org/web/20170801182053/https://www.britannica.com/topic/cultural-studies|url-status=live}}</ref> Upphaf menningarfræði má rekja til hóps breskra fræðimanna við [[Birmingham-háskóli|Birmingham-háskóla]] á 7. áratug 20. aldar, sérstaklega bókmenntafræðinganna [[Richard Hoggart]] og [[Stuart Hall]].<ref name=":0">{{cite book |last=Dworkin |first=Dennis |author-link=Dennis Dworkin |date=1997 |title=Cultural Marxism in Post-War Britain: History, the New Left, and the Origins of Cultural Studies |location=Durham |publisher=[[Duke University Press]] |page=116}}</ref> Hoggart stofnaði [[Centre for Contemporary Cultural Studies]] við Birmingham-háskóla árið 1964 og Hall tók við stjórn hennar árið 1971 þegar Hoggart varð aðstoðaraðalritari [[UNESCO]].<ref>{{cite journal |last=Davies |first=Ioan |author-link=Ioan Davies |title=British Cultural Marxism |url=https://archive.org/details/sim_international-journal-of-politics-culture-and-society_spring-1991_4_3/page/323 |year=1991 |volume=4 |issue=3 |journal=[[International Journal of Politics, Culture, and Society]] |pages=323–344 |doi=10.1007/BF01386507 |s2cid=143846218}}</ref> Birmingham-skólinn var nátengdur [[Breski verkamannaflokkurinn|Breska verkamannaflokknum]] og margir fræðimenn hans notuðust við [[marxismi|marxískar greiningar]]. Menningarfræði hafa meðal annars verið tengd við [[Frankfurt-skólinn|Frankfurt-skólann]] og [[viðtökufræði]]. Menningarfræði vöktu snemma athygli fyrir áhrifamiklar rannsóknir á viðtöku [[sjónvarpsþáttur|sjónvarpsþátta]]. Utan Bretlands hafa menningarfræði hins vegar tekið á sig ýmsar myndir og meðal annars tengst [[menntunarfræði]], [[fjölmiðlafræði]] og [[kynjafræði]], sem þverfaglegt rannsóknarsvið. Sérstakt nám í menningarfræði hófst við [[Háskóli Íslands|Háskóla Íslands]] árið 2004. == Tilvísanir == {{reflist}} {{stubbur}} [[Flokkur:Menningarfræði| ]] 59eaq7v8ybl2jhsy7yxu7r1es3zscfq 1. deild kvenna í knattspyrnu 2004 0 192414 1975355 1975315 2026-08-15T12:56:16Z Nipas2 54688 1975355 wikitext text/x-wiki {{Íþróttadeild | nafn = 1. deild kvenna 2004 | mynd = | ár = '''2004''' | Meistarar = '''{{Lið Keflavík}}''' | upp um deild = '''{{Lið Keflavík}}'''<br>'''{{Lið ÍA}}''' | spilaðir leikir = .. | mörk skoruð = ... (.... m/leik) | markahæstur = '''29 mörk'''<br>[[Anna Björg Björnsdóttir]] ({{Lið Þróttur R.}}) | haldið hreinu = | stærsti heimasigur = | stærsti útisigur = | tímabil = [[1. deild kvenna í knattspyrnu 2003|2003]] - [[1. deild kvenna í knattspyrnu 2005|2005]] |}} Leikar í '''1. deild kvenna í knattspyrnu''' hófust í 23. sinn árið '''2004'''. {{clear}} == A riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Álftanes}} | [[Garðabær]] | [[Bessastaðavöllur]] | | Ný tengsl |- |style="text-align: left;"|{{Lið Haukar}} | [[Hafnarfjörður]] | [[Ásvellir]] | | 6. sæti í A riðill |- |style="text-align: left;"|{{Lið HK/Víkingur}} | [[Reykjavík]] | [[Kópavogsvöllur]], [[Víkingsvöllur]], [[Fífan]] | | 4. sæti í A riðill |- |style="text-align: left;"|{{Lið Keflavík}} | [[Keflavík]] | [[Reykjaneshöllin]] | | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |- |style="text-align: left;"|{{Lið Ægir}} | [[Þorlákshöfn ]] | [[Þorlákshafnarvöllur]] | | Ný tengsl |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Keflavík|1}}"| ||'''{{Lið Keflavík}}''' ||12||11||1||0||133||7||126||'''34''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2||style="background:#{{Fótboltalitur|HK/Víkingur|1}}"| ||{{Lið HK/Víkingur}} ||12||8||1||3||77||15||62||'''25''' |- |3||style="background:#{{Fótboltalitur|Haukar|1}}"| ||{{Lið Haukar}} ||12||7||0||5||58||30||28||'''21''' |- |4||style="background:#{{Fótboltalitur|Álftanes|1}}"| ||{{Lið Álftanes}} ||12||1||2||9||11||102||-91||'''5''' |- |5||style="background:#{{Fótboltalitur|Ægir|1}}"| ||[[Knattspyrnufélagið Ægir|Ægir]] ||12||0||2||10||10||135||-125||'''2''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 1!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||1-2||0-6||0-10||3-2 |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||6-1||'''XXX'''||2-1||1-5||7-1 |- |align="left"|{{Lið HK/Víkingur}} ||3-0||3-1||'''XXX'''||0-7||16-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||19-0||10-0||1-0||'''XXX'''||17-1 |- |align="left"|{{Lið Ægir}} ||4-4||0-9||0-19||0-15||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 2!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||—||0-12||0-17||— |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||11-0||'''XXX'''||—||—||10-0 |- |align="left"|{{Lið HK/Víkingur}} ||—||3-1||'''XXX'''||—||11-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||—||5-2||3-3||'''XXX'''||— |- |align="left"|{{Lið Ægir}} ||2-2||—||—||0-22||'''XXX''' |} |} == B riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Fylkir}} | [[Reykjavík]] | [[Fylkisvöllur]] | | Ný tengsl |- |style="text-align: left;"|{{Lið Hvöt}}/{{Lið Tindastóll}} | [[Blönduós]] [[Sauðárkrókur|Sauðárkróki]] | [[Fylkisvöllur]] [[Sauðárkróksvöllur]] | | Ný tengsl |- |style="text-align: left;"|{{Lið ÍA}} | [[Akranes]] | [[Akraneshöllin]] | | Ný tengsl |- |style="text-align: left;"|{{Lið ÍR}} | [[Reykjavík]] | [[Hertz völlurinn]] | | 5. sæti í A riðill |- |style="text-align: left;"|{{Lið Þróttur R.}} | [[Reykjavík]] | [[Valbjarnarvöllur]] | | 8. s., [[Landsbankadeild kvenna í knattspyrnu 2003|Landsbankad.]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=overview&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|ÍA|1}}"| ||'''[[Knattspyrnufélag ÍA|ÍA]]''' ||12||12||0||0||79||13||66||'''36''' |align="center" rowspan=2|'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |-style="background:#D0F0C0;" |2||style="background:#{{Fótboltalitur|Þróttur_R.|1}}"| ||'''{{Lið Þróttur_R.}}''' ||12||9||0||3||72||19||53||'''27''' |- |3||style="background:#{{Fótboltalitur|ÍR|1}}"| ||[[ÍR]] ||12||5||0||7||33||41||-7||'''15''' |- |4||style="background:#{{Fótboltalitur|Fylkir|1}}"| ||[[Íþróttafélagið Fylkir|Fylkir]] ||12||4||0||8||31||56||-25||'''12''' |- |5||style="background:#{{Fótboltalitur|Hvöt|1}}"| ||{{Lið Hvöt}}/{{Lið Tindastóll}} ||12||0||0||12||4||90||-85||'''0''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 1!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||5-1||1-6||5-1||2-6 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||1-7||'''XXX'''||2-6||0-8||0-7 |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||8-0||10-0||'''XXX'''||8-0||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||5-3||7-0||2-6||'''XXX'''||0-1 |- |align="left"|{{Lið Þróttur R.}} ||13-2||11-0||2-3||6-1||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 2!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||—||0-4||—||2-8 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||0-2||'''XXX'''||—||0-3||— |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||—||13-0||'''XXX'''|||—||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||3-2||—||2-7||'''XXX'''||— |- |align="left"|{{Lið Þróttur R.}} ||—||11-0||—||3-1||'''XXX''' |} |} == C riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Einherji}} | [[Vopnafjörður|Vopnafirði]] | [[Vopnafjarðarvöllur]] | | 6. sæti, B riðill |- |style="text-align: left;"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] | [[Fjarðabyggð]] | [[Norðfjarðarvöllur]] [[Eskifjarðarvöllur]] | | 3. sæti, B riðill |- |style="text-align: left;"|[[Höttur]] | [[Seyðisfjörður]]<br/>[[Egilsstaðir]] | [[Vilhjálmsvöllur]] | | 4. sæti, B riðill |- |style="text-align: left;"|{{Lið Sindri}} | [[Höfn]] | [[Sindravellir]] | | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 12. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 C riðill|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=overview&toggle=rounds&round=12|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30| Sæti !width=50| !width=140|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !width=160|Athugasem |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Sindri|1}}"| ||'''{{Lið Sindri}}''' ||8||6||1||1||36||9||27||'''19''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2|| ||[[Höttur]] ||8||3||0||5||13||28||-15||'''9''' |- |3||| ||[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||8||2||1||5||14||26||-12||'''7''' |- | || ||[[Ungmennafélagið Einherji|Einherji]] ||0||0||0||0||0||0||0||'''0''' | align="center" | '''Vikið&nbsp;úr&nbsp;keppni''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-4||3-3 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||0-1||'''XXX'''||0-6 |- |align="left"|{{Lið Sindri}} ||5-1||4-0||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-1||1-4 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||4-2||'''XXX'''||4-3 |- |align="left"|{{Lið Sindri}} ||5-0||6-0||'''XXX''' |} |} == Úrslitakeppnin == === Undanúrslit === 1. umferð, ''21. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 1. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />14:00 [[GMT]] |lið1= {{Lið Þróttur R.}} |úrslit= 3 – 4 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=676319&banner-tab=report Leikskýrsla] |mörk1= <br>[[Anna Björg Björnsdóttir]] {{mark|32}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|55}}<nowiki></nowiki><br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|80}} |mörk2= <br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|8}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|20}}<nowiki></nowiki><br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|44}}<nowiki></nowiki><br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|44}} |leikvangur= [[Valbjarnarvöllur]] |áhorfendur= |dómari= [[Guðmundur Ævar Guðmundsson]] |}} {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið Sindri}} |úrslit= 0 – 8 |lið2= {{Lið ÍA}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=657965&banner-tab=report Leikskýrsla] |mörk1= <br> |mörk2= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|2}}<nowiki></nowiki>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|3}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|7}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki><br>[[Helga Sjöfn Jóhannesdóttir|H.S. Jóhannesdóttir]] {{mark|41}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|43}}<nowiki></nowiki><br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|58}}<nowiki></nowiki><br>[[Soffía Arnþrúður Gunnarsdóttir|S.A. Gunnarsdóttir]] ([[sjálfsmark|sm.]]) {{mark|59}} |leikvangur= [[Sindravellir]] |áhorfendur= |dómari= [[Magnús Ástþór Jónasson]] |}} 2. umferð, ''24. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 2. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=2||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />18:00 [[GMT]] |lið1= {{Lið Keflavík}} |úrslit= 2 – 2 |lið2= {{Lið Þróttur R.}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=629945&banner-tab=report Leikskýrsla] |mörk1= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|10}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|84}} |mörk2= <br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|26}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|68}} |leikvangur= [[Keflavíkurvöllur]] |áhorfendur= |dómari= [[Helgi Eiríksson]] |}} {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 7 – 0 |lið2= {{Lið Sindri}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=564226&banner-tab=report Leikskýrsla] |mörk1= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|50}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]]) {{mark|52}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|65}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|67}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|74}}<nowiki></nowiki><br>[[Berglind Magnúsdóttir|B. Magnúsdóttir]] {{mark|77}} |mörk2= <br> |leikvangur= [[Akranesvöllur]] |áhorfendur= |dómari= [[Ársæll Óskar Steinmóðsson]] |}} === Úrslit === Úrslit ''28. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - Úrslit 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=3||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 28. ágúst 2004<br />15:00 [[GMT]] |lið1={{Lið ÍA}} |úrslit= 1 – 2 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=680419&banner-tab=report Leikskýrsla] |mörk1= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|21}} |mörk2= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|33}}<nowiki></nowiki>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|84}} |leikvangur= [[Varmárvöllur]] |áhorfendur= |dómari= [[Ólafur Kjartansson]] |}} == Aukakeppni 1. deild == ''11. og 15 september 2004''.<ref>{{cite web|title=1. deild kvenna - Promotion/Relegation Playoff|url=https://www.rsssf.org/tablesi/ijs-wom03.html||website=www.rsssf.org|publisher=www.rsssf.org|accessdate=14. ágúst 2026}}</ref> Lau ''11. september 2004''. {{Knattspyrnuleikur |dagsetning= 11. september 2004<br /> [[GMT]] |lið1= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |úrslit= 1 – 6 |lið2= {{Lið ÍA}} |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>([[Sjálfsmark|sm.]]) {{mark|9}} |mörk2= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|11}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|24}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|43}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|45}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|73}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|86}} |leikvangur= [[Akureyrarvöllur]] |áhorfendur= |dómari= ? |}} Mið ''15. september 2004''. {{Knattspyrnuleikur |dagsetning= 15. september 2004<br /> [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 3 – 1 |lið2= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|63}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|70}}<nowiki></nowiki><br>[[Ásta Benediktsdóttir|Á. Benediktsdóttir]] ([[Vítaspyrnukeppni (knattspyrna)|vít.]]) {{mark|87}} |mörk2= <br>[[Guðrún Soffía Viðarsdóttir|G.S. Viðarsdóttir]] {{mark|77}} |leikvangur= [[Akraneshöllin]] |áhorfendur= |dómari= ? |}} {{1. deild kvenna í knattspyrnu}} {{röð | listi = [[1. deild kvenna í knattspyrnu|1. deild kvenna]] | fyrir = [[1. deild kvenna í knattspyrnu 2003|1. deild kvenna 2003]] | eftir = [[1. deild kvenna í knattspyrnu 2005|1.&nbsp;deild&nbsp;kvenna&nbsp;2005]] }} == Tilvísanir og heimildir == <div class="references-small"><references/></div> * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=187804&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 A riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=187854&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 B riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=matches-and-results&toggle=rounds&round=11|title=1. deild kvenna 2004 C riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 úrslit|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=http://www.icelandfootball.net/ladies-2004.html#W2D|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.rsssf.org/tablesi/ijs-wom03.html|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} {{Knattspyrna á Íslandi 2004}} [[Flokkur:1. deild kvenna í knattspyrnu á Íslandi]] [[Flokkur:Knattspyrna á Íslandi]] 6kwz2b3h61p0tspjoxy2w9wtsrqhq4h 1975360 1975355 2026-08-15T16:16:53Z Nipas2 54688 1975360 wikitext text/x-wiki {{Íþróttadeild | nafn = 1. deild kvenna 2004 | mynd = | ár = '''2004''' | Meistarar = '''{{Lið Keflavík}}''' | upp um deild = '''{{Lið Keflavík}}'''<br>'''{{Lið ÍA}}''' | spilaðir leikir = 77 | mörk skoruð = 600 (7.79 m/leik) | markahæstur = '''29 mörk'''<br>[[Anna Björg Björnsdóttir]] ({{Lið Þróttur R.}}) | haldið hreinu = | stærsti heimasigur = | stærsti útisigur = | tímabil = [[1. deild kvenna í knattspyrnu 2003|2003]] - [[1. deild kvenna í knattspyrnu 2005|2005]] |}} Leikar í '''1. deild kvenna í knattspyrnu''' hófust í 23. sinn árið '''2004'''. {{clear}} == A riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Álftanes}} | [[Garðabær]] | [[Bessastaðavöllur]] | [[Jón Brynjar Jónsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Haukar}} | [[Hafnarfjörður]] | [[Ásvellir]] | [[Birgir Örn Ólafsson]] | 6. sæti í A riðill |- |style="text-align: left;"|{{Lið HK/Víkingur}} | [[Reykjavík]] | [[Kópavogsvöllur]], [[Víkingsvöllur]], [[Fífan]] | [[Ólafur Ólafsson (þjálfari)|Ólafur Ólafsson]] | 4. sæti í A riðill |- |style="text-align: left;"|{{Lið Keflavík}} | [[Keflavík]] | [[Keflavíkurvöllur]] | [[Hannes Jón Jónsson]] (að) [[Gísli Rúnar Heiðarsson]] (að) | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |- |style="text-align: left;"|{{Lið Ægir}} | [[Þorlákshöfn ]] | [[Þorlákshafnarvöllur]] | [[Ásdís Hrönn Viðarsdóttir]] | Ný tengsl |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Keflavík|1}}"| ||'''{{Lið Keflavík}}''' ||12||11||1||0||133||7||126||'''34''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2||style="background:#{{Fótboltalitur|HK/Víkingur|1}}"| ||{{Lið HK/Víkingur}} ||12||8||1||3||77||15||62||'''25''' |- |3||style="background:#{{Fótboltalitur|Haukar|1}}"| ||{{Lið Haukar}} ||12||7||0||5||58||30||28||'''21''' |- |4||style="background:#{{Fótboltalitur|Álftanes|1}}"| ||{{Lið Álftanes}} ||12||1||2||9||11||102||-91||'''5''' |- |5||style="background:#{{Fótboltalitur|Ægir|1}}"| ||[[Knattspyrnufélagið Ægir|Ægir]] ||12||0||2||10||10||135||-125||'''2''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 1!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||1-2||0-6||0-10||3-2 |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||6-1||'''XXX'''||2-1||1-5||7-1 |- |align="left"|{{Lið HK/Víkingur}} ||3-0||3-1||'''XXX'''||0-7||16-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||19-0||10-0||1-0||'''XXX'''||17-1 |- |align="left"|{{Lið Ægir}} ||4-4||0-9||0-19||0-15||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 2!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||—||0-12||0-17||— |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||11-0||'''XXX'''||—||—||10-0 |- |align="left"|{{Lið HK/Víkingur}} ||—||3-1||'''XXX'''||—||11-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||—||5-2||3-3||'''XXX'''||— |- |align="left"|{{Lið Ægir}} ||2-2||—||—||0-22||'''XXX''' |} |} == B riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Fylkir}} | [[Reykjavík]] | [[Fylkisvöllur]] | [[Hafsteinn Steinsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Hvöt}}/{{Lið Tindastóll}} | [[Blönduós]] [[Sauðárkrókur|Sauðárkróki]] | [[Blönduósvöllur]] [[Sauðárkróksvöllur]] | [[Ólafur Sigfús Benediktsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍA}} | [[Akranes]] | [[Akranesvöllur]] | [[Sigurður Halldórsson (þjálfari)|Sigurður Halldórsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍR}} | [[Reykjavík]] | [[ÍR-völlur]] | [[Páll Þór Kristjánsson]] (að), [[Már Árnason]] (að) | 5. sæti í A riðill |- |style="text-align: left;"|{{Lið Þróttur R.}} | [[Reykjavík]] | [[Valbjarnarvöllur]] | [[Íris Björk Eysteinsdóttir]]], [[Guðrún Inga Sívertsen]] (að) | 8. s., [[Landsbankadeild kvenna í knattspyrnu 2003|Landsbankad.]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=overview&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|ÍA|1}}"| ||'''[[Knattspyrnufélag ÍA|ÍA]]''' ||12||12||0||0||79||13||66||'''36''' |align="center" rowspan=2|'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |-style="background:#D0F0C0;" |2||style="background:#{{Fótboltalitur|Þróttur_R.|1}}"| ||'''{{Lið Þróttur_R.}}''' ||12||9||0||3||72||19||53||'''27''' |- |3||style="background:#{{Fótboltalitur|ÍR|1}}"| ||[[ÍR]] ||12||5||0||7||33||41||-7||'''15''' |- |4||style="background:#{{Fótboltalitur|Fylkir|1}}"| ||[[Íþróttafélagið Fylkir|Fylkir]] ||12||4||0||8||31||56||-25||'''12''' |- |5||style="background:#{{Fótboltalitur|Hvöt|1}}"| ||{{Lið Hvöt}}/{{Lið Tindastóll}} ||12||0||0||12||4||90||-85||'''0''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 1!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||5-1||1-6||5-1||2-6 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||1-7||'''XXX'''||2-6||0-8||0-7 |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||8-0||10-0||'''XXX'''||8-0||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||5-3||7-0||2-6||'''XXX'''||0-1 |- |align="left"|{{Lið Þróttur R.}} ||13-2||11-0||2-3||6-1||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 2!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||—||0-4||—||2-8 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||0-2||'''XXX'''||—||0-3||— |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||—||13-0||'''XXX'''|||—||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||3-2||—||2-7||'''XXX'''||— |- |align="left"|{{Lið Þróttur R.}} ||—||11-0||—||3-1||'''XXX''' |} |} == C riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Einherji}} | [[Vopnafjörður|Vopnafirði]] | [[Vopnafjarðarvöllur]] | | 6. sæti, B riðill |- |style="text-align: left;"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] | [[Fjarðabyggð]] | [[Seyðisfjarðarvöllur]] [[Eskifjarðarvöllur]] | [[Jóhann Valgeir Davíðsson]] | 3. sæti, B riðill |- |style="text-align: left;"|[[Höttur]] | [[Seyðisfjörður]]<br/>[[Egilsstaðir]] | [[Vilhjálmsvöllur]] | [[Snorri Bergþórsson]] | 4. sæti, B riðill |- |style="text-align: left;"|{{Lið Sindri}} | [[Höfn]] | [[Sindravellir]] | Hajrudin Cardaklija | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 12. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 C riðill|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=overview&toggle=rounds&round=12|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30| Sæti !width=50| !width=140|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !width=160|Athugasem |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Sindri|1}}"| ||'''{{Lið Sindri}}''' ||8||6||1||1||36||9||27||'''19''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2|| ||[[Höttur]] ||8||3||0||5||13||28||-15||'''9''' |- |3||| ||[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||8||2||1||5||14||26||-12||'''7''' |- | || ||[[Ungmennafélagið Einherji|Einherji]] ||0||0||0||0||0||0||0||'''0''' | align="center" | '''Vikið&nbsp;úr&nbsp;keppni''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-4||3-3 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||0-1||'''XXX'''||0-6 |- |align="left"|{{Lið Sindri}} ||5-1||4-0||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-1||1-4 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||4-2||'''XXX'''||4-3 |- |align="left"|{{Lið Sindri}} ||5-0||6-0||'''XXX''' |} |} == Úrslitakeppnin == === Undanúrslit === 1. umferð, ''21. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 1. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />14:00 [[GMT]] |lið1= {{Lið Þróttur R.}} |úrslit= 3 – 4 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=676319&banner-tab=report Leikskýrsla] |mörk1= <br>[[Anna Björg Björnsdóttir]] {{mark|32}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|55}}<nowiki></nowiki><br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|80}} |mörk2= <br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|8}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|20}}<nowiki></nowiki><br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|44}}<nowiki></nowiki><br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|44}} |leikvangur= [[Valbjarnarvöllur]] |áhorfendur= |dómari= [[Guðmundur Ævar Guðmundsson]] |}} {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið Sindri}} |úrslit= 0 – 8 |lið2= {{Lið ÍA}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=657965&banner-tab=report Leikskýrsla] |mörk1= <br> |mörk2= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|2}}<nowiki></nowiki>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|3}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|7}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki><br>[[Helga Sjöfn Jóhannesdóttir|H.S. Jóhannesdóttir]] {{mark|41}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|43}}<nowiki></nowiki><br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|58}}<nowiki></nowiki><br>[[Soffía Arnþrúður Gunnarsdóttir|S.A. Gunnarsdóttir]] ([[sjálfsmark|sm.]]) {{mark|59}} |leikvangur= [[Sindravellir]] |áhorfendur= |dómari= [[Magnús Ástþór Jónasson]] |}} 2. umferð, ''24. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 2. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=2||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />18:00 [[GMT]] |lið1= {{Lið Keflavík}} |úrslit= 2 – 2 |lið2= {{Lið Þróttur R.}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=629945&banner-tab=report Leikskýrsla] |mörk1= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|10}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|84}} |mörk2= <br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|26}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|68}} |leikvangur= [[Keflavíkurvöllur]] |áhorfendur= |dómari= [[Helgi Eiríksson]] |}} {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 7 – 0 |lið2= {{Lið Sindri}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=564226&banner-tab=report Leikskýrsla] |mörk1= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|50}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]]) {{mark|52}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|65}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|67}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|74}}<nowiki></nowiki><br>[[Berglind Magnúsdóttir|B. Magnúsdóttir]] {{mark|77}} |mörk2= <br> |leikvangur= [[Akranesvöllur]] |áhorfendur= |dómari= [[Ársæll Óskar Steinmóðsson]] |}} === Úrslit === Úrslit ''28. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - Úrslit 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=3||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 28. ágúst 2004<br />15:00 [[GMT]] |lið1={{Lið ÍA}} |úrslit= 1 – 2 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=680419&banner-tab=report Leikskýrsla] |mörk1= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|21}} |mörk2= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|33}}<nowiki></nowiki>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|84}} |leikvangur= [[Varmárvöllur]] |áhorfendur= |dómari= [[Ólafur Kjartansson]] |}} == Aukakeppni 1. deild == ''11. og 15 september 2004''.<ref>{{cite web|title=1. deild kvenna - Promotion/Relegation Playoff|url=https://www.rsssf.org/tablesi/ijs-wom03.html||website=www.rsssf.org|publisher=www.rsssf.org|accessdate=14. ágúst 2026}}</ref> Lau ''11. september 2004''. {{Knattspyrnuleikur |dagsetning= 11. september 2004<br /> [[GMT]] |lið1= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |úrslit= 1 – 6 |lið2= {{Lið ÍA}} |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>([[Sjálfsmark|sm.]]) {{mark|9}} |mörk2= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|11}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|24}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|43}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|45}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|73}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|86}} |leikvangur= [[Akureyrarvöllur]] |áhorfendur= |dómari= ? |}} Mið ''15. september 2004''. {{Knattspyrnuleikur |dagsetning= 15. september 2004<br /> [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 3 – 1 |lið2= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|63}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|70}}<nowiki></nowiki><br>[[Ásta Benediktsdóttir|Á. Benediktsdóttir]] ([[Vítaspyrnukeppni (knattspyrna)|vít.]]) {{mark|87}} |mörk2= <br>[[Guðrún Soffía Viðarsdóttir|G.S. Viðarsdóttir]] {{mark|77}} |leikvangur= [[Akraneshöllin]] |áhorfendur= |dómari= ? |}} == Markahæstu leikmenn == {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=340|Nafn !width=120|Félag !width=90|Mörk !width=30|Víti !width=90|Leikir |-style="background:#FFD700;" | '''1''' | '''[[Anna Björg Björnsdóttir]]''' | {{Lið Þróttur R.}} | 28 + 1 | 0 | 10 + 2 |-style="background:#C0C0C0;" | '''2''' | '''[[Guðný Petrína Þórðardóttir]]''' | {{Lið Keflavík}} | 24 + 3 | 0 | 12 + 3 |-style="background:#CD7F32;" | '''3''' | '''[[Ólöf Helga Pálsdóttir]]''' | {{Lið Keflavík}} | 19 + 5 | 0 | 12 + 3 |- | '''4''' | [[Tatjana Safranj]] | [[Reynir Sandgerði|R]][[Íþrótta- og ungmennafélag Keflavíkur|K]][[Knattspyrnufélagið Víðir Garði|V]] | 20 | 0 | 10 |- | '''5''' | [[Áslaug Ragna Ákadóttir]] | {{Lið ÍA}} | 12+6+2 | 0 | 9+3+2 |- | '''6''' | [[Hrefna Magnea Guðmundsdóttir]] | {{Lið Keflavík}} | 18 | 0 | 12 |} {{1. deild kvenna í knattspyrnu}} {{röð | listi = [[1. deild kvenna í knattspyrnu|1. deild kvenna]] | fyrir = [[1. deild kvenna í knattspyrnu 2003|1. deild kvenna 2003]] | eftir = [[1. deild kvenna í knattspyrnu 2005|1.&nbsp;deild&nbsp;kvenna&nbsp;2005]] }} == Tilvísanir og heimildir == <div class="references-small"><references/></div> * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 A riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 B riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 C riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 úrslit|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=http://www.icelandfootball.net/ladies-2004.html#W2D|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.rsssf.org/tablesi/ijs-wom03.html|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} {{Knattspyrna á Íslandi 2004}} [[Flokkur:1. deild kvenna í knattspyrnu á Íslandi]] [[Flokkur:Knattspyrna á Íslandi]] h0ybuov3xrsggt9tjxmhqmz99aakfi7 1975508 1975360 2026-08-15T16:57:10Z Nipas2 54688 /* Tilvísanir og heimildir */ 1975508 wikitext text/x-wiki {{Íþróttadeild | nafn = 1. deild kvenna 2004 | mynd = | ár = '''2004''' | Meistarar = '''{{Lið Keflavík}}''' | upp um deild = '''{{Lið Keflavík}}'''<br>'''{{Lið ÍA}}''' | spilaðir leikir = 77 | mörk skoruð = 600 (7.79 m/leik) | markahæstur = '''29 mörk'''<br>[[Anna Björg Björnsdóttir]] ({{Lið Þróttur R.}}) | haldið hreinu = | stærsti heimasigur = | stærsti útisigur = | tímabil = [[1. deild kvenna í knattspyrnu 2003|2003]] - [[1. deild kvenna í knattspyrnu 2005|2005]] |}} Leikar í '''1. deild kvenna í knattspyrnu''' hófust í 23. sinn árið '''2004'''. {{clear}} == A riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Álftanes}} | [[Garðabær]] | [[Bessastaðavöllur]] | [[Jón Brynjar Jónsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Haukar}} | [[Hafnarfjörður]] | [[Ásvellir]] | [[Birgir Örn Ólafsson]] | 6. sæti í A riðill |- |style="text-align: left;"|{{Lið HK/Víkingur}} | [[Reykjavík]] | [[Kópavogsvöllur]], [[Víkingsvöllur]], [[Fífan]] | [[Ólafur Ólafsson (þjálfari)|Ólafur Ólafsson]] | 4. sæti í A riðill |- |style="text-align: left;"|{{Lið Keflavík}} | [[Keflavík]] | [[Keflavíkurvöllur]] | [[Hannes Jón Jónsson]] (að) [[Gísli Rúnar Heiðarsson]] (að) | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |- |style="text-align: left;"|{{Lið Ægir}} | [[Þorlákshöfn ]] | [[Þorlákshafnarvöllur]] | [[Ásdís Hrönn Viðarsdóttir]] | Ný tengsl |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Keflavík|1}}"| ||'''{{Lið Keflavík}}''' ||12||11||1||0||133||7||126||'''34''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2||style="background:#{{Fótboltalitur|HK/Víkingur|1}}"| ||{{Lið HK/Víkingur}} ||12||8||1||3||77||15||62||'''25''' |- |3||style="background:#{{Fótboltalitur|Haukar|1}}"| ||{{Lið Haukar}} ||12||7||0||5||58||30||28||'''21''' |- |4||style="background:#{{Fótboltalitur|Álftanes|1}}"| ||{{Lið Álftanes}} ||12||1||2||9||11||102||-91||'''5''' |- |5||style="background:#{{Fótboltalitur|Ægir|1}}"| ||[[Knattspyrnufélagið Ægir|Ægir]] ||12||0||2||10||10||135||-125||'''2''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 1!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||1-2||0-6||0-10||3-2 |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||6-1||'''XXX'''||2-1||1-5||7-1 |- |align="left"|{{Lið HK/Víkingur}} ||3-0||3-1||'''XXX'''||0-7||16-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||19-0||10-0||1-0||'''XXX'''||17-1 |- |align="left"|{{Lið Ægir}} ||4-4||0-9||0-19||0-15||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 2!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||—||0-12||0-17||— |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||11-0||'''XXX'''||—||—||10-0 |- |align="left"|{{Lið HK/Víkingur}} ||—||3-1||'''XXX'''||—||11-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||—||5-2||3-3||'''XXX'''||— |- |align="left"|{{Lið Ægir}} ||2-2||—||—||0-22||'''XXX''' |} |} == B riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Fylkir}} | [[Reykjavík]] | [[Fylkisvöllur]] | [[Hafsteinn Steinsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Hvöt}}/{{Lið Tindastóll}} | [[Blönduós]] [[Sauðárkrókur|Sauðárkróki]] | [[Blönduósvöllur]] [[Sauðárkróksvöllur]] | [[Ólafur Sigfús Benediktsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍA}} | [[Akranes]] | [[Akranesvöllur]] | [[Sigurður Halldórsson (þjálfari)|Sigurður Halldórsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍR}} | [[Reykjavík]] | [[ÍR-völlur]] | [[Páll Þór Kristjánsson]] (að), [[Már Árnason]] (að) | 5. sæti í A riðill |- |style="text-align: left;"|{{Lið Þróttur R.}} | [[Reykjavík]] | [[Valbjarnarvöllur]] | [[Íris Björk Eysteinsdóttir]]], [[Guðrún Inga Sívertsen]] (að) | 8. s., [[Landsbankadeild kvenna í knattspyrnu 2003|Landsbankad.]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=overview&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|ÍA|1}}"| ||'''[[Knattspyrnufélag ÍA|ÍA]]''' ||12||12||0||0||79||13||66||'''36''' |align="center" rowspan=2|'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |-style="background:#D0F0C0;" |2||style="background:#{{Fótboltalitur|Þróttur_R.|1}}"| ||'''{{Lið Þróttur_R.}}''' ||12||9||0||3||72||19||53||'''27''' |- |3||style="background:#{{Fótboltalitur|ÍR|1}}"| ||[[ÍR]] ||12||5||0||7||33||41||-7||'''15''' |- |4||style="background:#{{Fótboltalitur|Fylkir|1}}"| ||[[Íþróttafélagið Fylkir|Fylkir]] ||12||4||0||8||31||56||-25||'''12''' |- |5||style="background:#{{Fótboltalitur|Hvöt|1}}"| ||{{Lið Hvöt}}/{{Lið Tindastóll}} ||12||0||0||12||4||90||-85||'''0''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 1!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||5-1||1-6||5-1||2-6 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||1-7||'''XXX'''||2-6||0-8||0-7 |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||8-0||10-0||'''XXX'''||8-0||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||5-3||7-0||2-6||'''XXX'''||0-1 |- |align="left"|{{Lið Þróttur R.}} ||13-2||11-0||2-3||6-1||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 2!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||—||0-4||—||2-8 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||0-2||'''XXX'''||—||0-3||— |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||—||13-0||'''XXX'''|||—||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||3-2||—||2-7||'''XXX'''||— |- |align="left"|{{Lið Þróttur R.}} ||—||11-0||—||3-1||'''XXX''' |} |} == C riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Einherji}} | [[Vopnafjörður|Vopnafirði]] | [[Vopnafjarðarvöllur]] | | 6. sæti, B riðill |- |style="text-align: left;"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] | [[Fjarðabyggð]] | [[Seyðisfjarðarvöllur]] [[Eskifjarðarvöllur]] | [[Jóhann Valgeir Davíðsson]] | 3. sæti, B riðill |- |style="text-align: left;"|[[Höttur]] | [[Seyðisfjörður]]<br/>[[Egilsstaðir]] | [[Vilhjálmsvöllur]] | [[Snorri Bergþórsson]] | 4. sæti, B riðill |- |style="text-align: left;"|{{Lið Sindri}} | [[Höfn]] | [[Sindravellir]] | Hajrudin Cardaklija | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 12. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 C riðill|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=overview&toggle=rounds&round=12|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30| Sæti !width=50| !width=140|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !width=160|Athugasem |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Sindri|1}}"| ||'''{{Lið Sindri}}''' ||8||6||1||1||36||9||27||'''19''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2|| ||[[Höttur]] ||8||3||0||5||13||28||-15||'''9''' |- |3||| ||[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||8||2||1||5||14||26||-12||'''7''' |- | || ||[[Ungmennafélagið Einherji|Einherji]] ||0||0||0||0||0||0||0||'''0''' | align="center" | '''Vikið&nbsp;úr&nbsp;keppni''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-4||3-3 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||0-1||'''XXX'''||0-6 |- |align="left"|{{Lið Sindri}} ||5-1||4-0||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-1||1-4 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||4-2||'''XXX'''||4-3 |- |align="left"|{{Lið Sindri}} ||5-0||6-0||'''XXX''' |} |} == Úrslitakeppnin == === Undanúrslit === 1. umferð, ''21. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 1. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />14:00 [[GMT]] |lið1= {{Lið Þróttur R.}} |úrslit= 3 – 4 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=676319&banner-tab=report Leikskýrsla] |mörk1= <br>[[Anna Björg Björnsdóttir]] {{mark|32}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|55}}<nowiki></nowiki><br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|80}} |mörk2= <br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|8}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|20}}<nowiki></nowiki><br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|44}}<nowiki></nowiki><br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|44}} |leikvangur= [[Valbjarnarvöllur]] |áhorfendur= |dómari= [[Guðmundur Ævar Guðmundsson]] |}} {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið Sindri}} |úrslit= 0 – 8 |lið2= {{Lið ÍA}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=657965&banner-tab=report Leikskýrsla] |mörk1= <br> |mörk2= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|2}}<nowiki></nowiki>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|3}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|7}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki><br>[[Helga Sjöfn Jóhannesdóttir|H.S. Jóhannesdóttir]] {{mark|41}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|43}}<nowiki></nowiki><br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|58}}<nowiki></nowiki><br>[[Soffía Arnþrúður Gunnarsdóttir|S.A. Gunnarsdóttir]] ([[sjálfsmark|sm.]]) {{mark|59}} |leikvangur= [[Sindravellir]] |áhorfendur= |dómari= [[Magnús Ástþór Jónasson]] |}} 2. umferð, ''24. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 2. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=2||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />18:00 [[GMT]] |lið1= {{Lið Keflavík}} |úrslit= 2 – 2 |lið2= {{Lið Þróttur R.}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=629945&banner-tab=report Leikskýrsla] |mörk1= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|10}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|84}} |mörk2= <br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|26}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|68}} |leikvangur= [[Keflavíkurvöllur]] |áhorfendur= |dómari= [[Helgi Eiríksson]] |}} {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 7 – 0 |lið2= {{Lið Sindri}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=564226&banner-tab=report Leikskýrsla] |mörk1= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|50}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]]) {{mark|52}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|65}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|67}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|74}}<nowiki></nowiki><br>[[Berglind Magnúsdóttir|B. Magnúsdóttir]] {{mark|77}} |mörk2= <br> |leikvangur= [[Akranesvöllur]] |áhorfendur= |dómari= [[Ársæll Óskar Steinmóðsson]] |}} === Úrslit === Úrslit ''28. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - Úrslit 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=3||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 28. ágúst 2004<br />15:00 [[GMT]] |lið1={{Lið ÍA}} |úrslit= 1 – 2 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=680419&banner-tab=report Leikskýrsla] |mörk1= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|21}} |mörk2= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|33}}<nowiki></nowiki>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|84}} |leikvangur= [[Varmárvöllur]] |áhorfendur= |dómari= [[Ólafur Kjartansson]] |}} == Aukakeppni 1. deild == ''11. og 15 september 2004''.<ref>{{cite web|title=1. deild kvenna - Promotion/Relegation Playoff|url=https://www.rsssf.org/tablesi/ijs-wom03.html||website=www.rsssf.org|publisher=www.rsssf.org|accessdate=14. ágúst 2026}}</ref> Lau ''11. september 2004''. {{Knattspyrnuleikur |dagsetning= 11. september 2004<br /> [[GMT]] |lið1= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |úrslit= 1 – 6 |lið2= {{Lið ÍA}} |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>([[Sjálfsmark|sm.]]) {{mark|9}} |mörk2= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|11}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|24}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|43}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|45}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|73}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|86}} |leikvangur= [[Akureyrarvöllur]] |áhorfendur= |dómari= ? |}} Mið ''15. september 2004''. {{Knattspyrnuleikur |dagsetning= 15. september 2004<br /> [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 3 – 1 |lið2= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|63}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|70}}<nowiki></nowiki><br>[[Ásta Benediktsdóttir|Á. Benediktsdóttir]] ([[Vítaspyrnukeppni (knattspyrna)|vít.]]) {{mark|87}} |mörk2= <br>[[Guðrún Soffía Viðarsdóttir|G.S. Viðarsdóttir]] {{mark|77}} |leikvangur= [[Akraneshöllin]] |áhorfendur= |dómari= ? |}} == Markahæstu leikmenn == {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=340|Nafn !width=120|Félag !width=90|Mörk !width=30|Víti !width=90|Leikir |-style="background:#FFD700;" | '''1''' | '''[[Anna Björg Björnsdóttir]]''' | {{Lið Þróttur R.}} | 28 + 1 | 0 | 10 + 2 |-style="background:#C0C0C0;" | '''2''' | '''[[Guðný Petrína Þórðardóttir]]''' | {{Lið Keflavík}} | 24 + 3 | 0 | 12 + 3 |-style="background:#CD7F32;" | '''3''' | '''[[Ólöf Helga Pálsdóttir]]''' | {{Lið Keflavík}} | 19 + 5 | 0 | 12 + 3 |- | '''4''' | [[Tatjana Safranj]] | [[Reynir Sandgerði|R]][[Íþrótta- og ungmennafélag Keflavíkur|K]][[Knattspyrnufélagið Víðir Garði|V]] | 20 | 0 | 10 |- | '''5''' | [[Áslaug Ragna Ákadóttir]] | {{Lið ÍA}} | 12+6+2 | 0 | 9+3+2 |- | '''6''' | [[Hrefna Magnea Guðmundsdóttir]] | {{Lið Keflavík}} | 18 | 0 | 12 |} {{1. deild kvenna í knattspyrnu}} {{röð | listi = [[1. deild kvenna í knattspyrnu|1. deild kvenna]] | fyrir = [[1. deild kvenna í knattspyrnu 2003|1. deild kvenna 2003]] | eftir = [[1. deild kvenna í knattspyrnu 2005|1.&nbsp;deild&nbsp;kvenna&nbsp;2005]] }} == Tilvísanir og heimildir == <div class="references-small"><references/></div> * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 A riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 B riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 C riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 úrslit|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=http://www.icelandfootball.net/ladies-2004.html#W2D|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.rsssf.org/tablesi/ijs-wom04.html|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} {{Knattspyrna á Íslandi 2004}} [[Flokkur:1. deild kvenna í knattspyrnu á Íslandi]] [[Flokkur:Knattspyrna á Íslandi]] rwohvxblyql9xnq9si8u1nnirhsk4fd 1975509 1975508 2026-08-15T16:57:57Z Nipas2 54688 /* Aukakeppni 1. deild */ 1975509 wikitext text/x-wiki {{Íþróttadeild | nafn = 1. deild kvenna 2004 | mynd = | ár = '''2004''' | Meistarar = '''{{Lið Keflavík}}''' | upp um deild = '''{{Lið Keflavík}}'''<br>'''{{Lið ÍA}}''' | spilaðir leikir = 77 | mörk skoruð = 600 (7.79 m/leik) | markahæstur = '''29 mörk'''<br>[[Anna Björg Björnsdóttir]] ({{Lið Þróttur R.}}) | haldið hreinu = | stærsti heimasigur = | stærsti útisigur = | tímabil = [[1. deild kvenna í knattspyrnu 2003|2003]] - [[1. deild kvenna í knattspyrnu 2005|2005]] |}} Leikar í '''1. deild kvenna í knattspyrnu''' hófust í 23. sinn árið '''2004'''. {{clear}} == A riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Álftanes}} | [[Garðabær]] | [[Bessastaðavöllur]] | [[Jón Brynjar Jónsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Haukar}} | [[Hafnarfjörður]] | [[Ásvellir]] | [[Birgir Örn Ólafsson]] | 6. sæti í A riðill |- |style="text-align: left;"|{{Lið HK/Víkingur}} | [[Reykjavík]] | [[Kópavogsvöllur]], [[Víkingsvöllur]], [[Fífan]] | [[Ólafur Ólafsson (þjálfari)|Ólafur Ólafsson]] | 4. sæti í A riðill |- |style="text-align: left;"|{{Lið Keflavík}} | [[Keflavík]] | [[Keflavíkurvöllur]] | [[Hannes Jón Jónsson]] (að) [[Gísli Rúnar Heiðarsson]] (að) | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |- |style="text-align: left;"|{{Lið Ægir}} | [[Þorlákshöfn ]] | [[Þorlákshafnarvöllur]] | [[Ásdís Hrönn Viðarsdóttir]] | Ný tengsl |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Keflavík|1}}"| ||'''{{Lið Keflavík}}''' ||12||11||1||0||133||7||126||'''34''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2||style="background:#{{Fótboltalitur|HK/Víkingur|1}}"| ||{{Lið HK/Víkingur}} ||12||8||1||3||77||15||62||'''25''' |- |3||style="background:#{{Fótboltalitur|Haukar|1}}"| ||{{Lið Haukar}} ||12||7||0||5||58||30||28||'''21''' |- |4||style="background:#{{Fótboltalitur|Álftanes|1}}"| ||{{Lið Álftanes}} ||12||1||2||9||11||102||-91||'''5''' |- |5||style="background:#{{Fótboltalitur|Ægir|1}}"| ||[[Knattspyrnufélagið Ægir|Ægir]] ||12||0||2||10||10||135||-125||'''2''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 1!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||1-2||0-6||0-10||3-2 |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||6-1||'''XXX'''||2-1||1-5||7-1 |- |align="left"|{{Lið HK/Víkingur}} ||3-0||3-1||'''XXX'''||0-7||16-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||19-0||10-0||1-0||'''XXX'''||17-1 |- |align="left"|{{Lið Ægir}} ||4-4||0-9||0-19||0-15||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 2!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||—||0-12||0-17||— |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||11-0||'''XXX'''||—||—||10-0 |- |align="left"|{{Lið HK/Víkingur}} ||—||3-1||'''XXX'''||—||11-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||—||5-2||3-3||'''XXX'''||— |- |align="left"|{{Lið Ægir}} ||2-2||—||—||0-22||'''XXX''' |} |} == B riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Fylkir}} | [[Reykjavík]] | [[Fylkisvöllur]] | [[Hafsteinn Steinsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Hvöt}}/{{Lið Tindastóll}} | [[Blönduós]] [[Sauðárkrókur|Sauðárkróki]] | [[Blönduósvöllur]] [[Sauðárkróksvöllur]] | [[Ólafur Sigfús Benediktsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍA}} | [[Akranes]] | [[Akranesvöllur]] | [[Sigurður Halldórsson (þjálfari)|Sigurður Halldórsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍR}} | [[Reykjavík]] | [[ÍR-völlur]] | [[Páll Þór Kristjánsson]] (að), [[Már Árnason]] (að) | 5. sæti í A riðill |- |style="text-align: left;"|{{Lið Þróttur R.}} | [[Reykjavík]] | [[Valbjarnarvöllur]] | [[Íris Björk Eysteinsdóttir]]], [[Guðrún Inga Sívertsen]] (að) | 8. s., [[Landsbankadeild kvenna í knattspyrnu 2003|Landsbankad.]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=overview&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|ÍA|1}}"| ||'''[[Knattspyrnufélag ÍA|ÍA]]''' ||12||12||0||0||79||13||66||'''36''' |align="center" rowspan=2|'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |-style="background:#D0F0C0;" |2||style="background:#{{Fótboltalitur|Þróttur_R.|1}}"| ||'''{{Lið Þróttur_R.}}''' ||12||9||0||3||72||19||53||'''27''' |- |3||style="background:#{{Fótboltalitur|ÍR|1}}"| ||[[ÍR]] ||12||5||0||7||33||41||-7||'''15''' |- |4||style="background:#{{Fótboltalitur|Fylkir|1}}"| ||[[Íþróttafélagið Fylkir|Fylkir]] ||12||4||0||8||31||56||-25||'''12''' |- |5||style="background:#{{Fótboltalitur|Hvöt|1}}"| ||{{Lið Hvöt}}/{{Lið Tindastóll}} ||12||0||0||12||4||90||-85||'''0''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 1!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||5-1||1-6||5-1||2-6 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||1-7||'''XXX'''||2-6||0-8||0-7 |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||8-0||10-0||'''XXX'''||8-0||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||5-3||7-0||2-6||'''XXX'''||0-1 |- |align="left"|{{Lið Þróttur R.}} ||13-2||11-0||2-3||6-1||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 2!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||—||0-4||—||2-8 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||0-2||'''XXX'''||—||0-3||— |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||—||13-0||'''XXX'''|||—||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||3-2||—||2-7||'''XXX'''||— |- |align="left"|{{Lið Þróttur R.}} ||—||11-0||—||3-1||'''XXX''' |} |} == C riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Einherji}} | [[Vopnafjörður|Vopnafirði]] | [[Vopnafjarðarvöllur]] | | 6. sæti, B riðill |- |style="text-align: left;"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] | [[Fjarðabyggð]] | [[Seyðisfjarðarvöllur]] [[Eskifjarðarvöllur]] | [[Jóhann Valgeir Davíðsson]] | 3. sæti, B riðill |- |style="text-align: left;"|[[Höttur]] | [[Seyðisfjörður]]<br/>[[Egilsstaðir]] | [[Vilhjálmsvöllur]] | [[Snorri Bergþórsson]] | 4. sæti, B riðill |- |style="text-align: left;"|{{Lið Sindri}} | [[Höfn]] | [[Sindravellir]] | Hajrudin Cardaklija | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 12. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 C riðill|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=overview&toggle=rounds&round=12|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30| Sæti !width=50| !width=140|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !width=160|Athugasem |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Sindri|1}}"| ||'''{{Lið Sindri}}''' ||8||6||1||1||36||9||27||'''19''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2|| ||[[Höttur]] ||8||3||0||5||13||28||-15||'''9''' |- |3||| ||[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||8||2||1||5||14||26||-12||'''7''' |- | || ||[[Ungmennafélagið Einherji|Einherji]] ||0||0||0||0||0||0||0||'''0''' | align="center" | '''Vikið&nbsp;úr&nbsp;keppni''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-4||3-3 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||0-1||'''XXX'''||0-6 |- |align="left"|{{Lið Sindri}} ||5-1||4-0||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-1||1-4 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||4-2||'''XXX'''||4-3 |- |align="left"|{{Lið Sindri}} ||5-0||6-0||'''XXX''' |} |} == Úrslitakeppnin == === Undanúrslit === 1. umferð, ''21. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 1. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />14:00 [[GMT]] |lið1= {{Lið Þróttur R.}} |úrslit= 3 – 4 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=676319&banner-tab=report Leikskýrsla] |mörk1= <br>[[Anna Björg Björnsdóttir]] {{mark|32}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|55}}<nowiki></nowiki><br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|80}} |mörk2= <br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|8}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|20}}<nowiki></nowiki><br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|44}}<nowiki></nowiki><br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|44}} |leikvangur= [[Valbjarnarvöllur]] |áhorfendur= |dómari= [[Guðmundur Ævar Guðmundsson]] |}} {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið Sindri}} |úrslit= 0 – 8 |lið2= {{Lið ÍA}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=657965&banner-tab=report Leikskýrsla] |mörk1= <br> |mörk2= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|2}}<nowiki></nowiki>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|3}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|7}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki><br>[[Helga Sjöfn Jóhannesdóttir|H.S. Jóhannesdóttir]] {{mark|41}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|43}}<nowiki></nowiki><br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|58}}<nowiki></nowiki><br>[[Soffía Arnþrúður Gunnarsdóttir|S.A. Gunnarsdóttir]] ([[sjálfsmark|sm.]]) {{mark|59}} |leikvangur= [[Sindravellir]] |áhorfendur= |dómari= [[Magnús Ástþór Jónasson]] |}} 2. umferð, ''24. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 2. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=2||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />18:00 [[GMT]] |lið1= {{Lið Keflavík}} |úrslit= 2 – 2 |lið2= {{Lið Þróttur R.}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=629945&banner-tab=report Leikskýrsla] |mörk1= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|10}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|84}} |mörk2= <br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|26}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|68}} |leikvangur= [[Keflavíkurvöllur]] |áhorfendur= |dómari= [[Helgi Eiríksson]] |}} {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 7 – 0 |lið2= {{Lið Sindri}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=564226&banner-tab=report Leikskýrsla] |mörk1= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|50}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]]) {{mark|52}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|65}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|67}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|74}}<nowiki></nowiki><br>[[Berglind Magnúsdóttir|B. Magnúsdóttir]] {{mark|77}} |mörk2= <br> |leikvangur= [[Akranesvöllur]] |áhorfendur= |dómari= [[Ársæll Óskar Steinmóðsson]] |}} === Úrslit === Úrslit ''28. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - Úrslit 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=3||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 28. ágúst 2004<br />15:00 [[GMT]] |lið1={{Lið ÍA}} |úrslit= 1 – 2 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=680419&banner-tab=report Leikskýrsla] |mörk1= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|21}} |mörk2= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|33}}<nowiki></nowiki>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|84}} |leikvangur= [[Varmárvöllur]] |áhorfendur= |dómari= [[Ólafur Kjartansson]] |}} == Aukakeppni 1. deild == ''11. og 15 september 2004''.<ref>{{cite web|title=1. deild kvenna - Promotion/Relegation Playoff|url=https://www.rsssf.org/tablesi/ijs-wom04.html||website=www.rsssf.org|publisher=www.rsssf.org|accessdate=14. ágúst 2026}}</ref> Lau ''11. september 2004''. {{Knattspyrnuleikur |dagsetning= 11. september 2004<br /> [[GMT]] |lið1= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |úrslit= 1 – 6 |lið2= {{Lið ÍA}} |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>([[Sjálfsmark|sm.]]) {{mark|9}} |mörk2= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|11}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|24}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|43}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|45}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|73}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|86}} |leikvangur= [[Akureyrarvöllur]] |áhorfendur= |dómari= ? |}} Mið ''15. september 2004''. {{Knattspyrnuleikur |dagsetning= 15. september 2004<br /> [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 3 – 1 |lið2= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|63}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|70}}<nowiki></nowiki><br>[[Ásta Benediktsdóttir|Á. Benediktsdóttir]] ([[Vítaspyrnukeppni (knattspyrna)|vít.]]) {{mark|87}} |mörk2= <br>[[Guðrún Soffía Viðarsdóttir|G.S. Viðarsdóttir]] {{mark|77}} |leikvangur= [[Akraneshöllin]] |áhorfendur= |dómari= ? |}} == Markahæstu leikmenn == {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=340|Nafn !width=120|Félag !width=90|Mörk !width=30|Víti !width=90|Leikir |-style="background:#FFD700;" | '''1''' | '''[[Anna Björg Björnsdóttir]]''' | {{Lið Þróttur R.}} | 28 + 1 | 0 | 10 + 2 |-style="background:#C0C0C0;" | '''2''' | '''[[Guðný Petrína Þórðardóttir]]''' | {{Lið Keflavík}} | 24 + 3 | 0 | 12 + 3 |-style="background:#CD7F32;" | '''3''' | '''[[Ólöf Helga Pálsdóttir]]''' | {{Lið Keflavík}} | 19 + 5 | 0 | 12 + 3 |- | '''4''' | [[Tatjana Safranj]] | [[Reynir Sandgerði|R]][[Íþrótta- og ungmennafélag Keflavíkur|K]][[Knattspyrnufélagið Víðir Garði|V]] | 20 | 0 | 10 |- | '''5''' | [[Áslaug Ragna Ákadóttir]] | {{Lið ÍA}} | 12+6+2 | 0 | 9+3+2 |- | '''6''' | [[Hrefna Magnea Guðmundsdóttir]] | {{Lið Keflavík}} | 18 | 0 | 12 |} {{1. deild kvenna í knattspyrnu}} {{röð | listi = [[1. deild kvenna í knattspyrnu|1. deild kvenna]] | fyrir = [[1. deild kvenna í knattspyrnu 2003|1. deild kvenna 2003]] | eftir = [[1. deild kvenna í knattspyrnu 2005|1.&nbsp;deild&nbsp;kvenna&nbsp;2005]] }} == Tilvísanir og heimildir == <div class="references-small"><references/></div> * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 A riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 B riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 C riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 úrslit|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=http://www.icelandfootball.net/ladies-2004.html#W2D|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.rsssf.org/tablesi/ijs-wom04.html|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} {{Knattspyrna á Íslandi 2004}} [[Flokkur:1. deild kvenna í knattspyrnu á Íslandi]] [[Flokkur:Knattspyrna á Íslandi]] d3kt3hjoaafre28muc2z5gdqoz59z5e 1975510 1975509 2026-08-15T16:58:47Z Nipas2 54688 /* Stigatafla */ 1975510 wikitext text/x-wiki {{Íþróttadeild | nafn = 1. deild kvenna 2004 | mynd = | ár = '''2004''' | Meistarar = '''{{Lið Keflavík}}''' | upp um deild = '''{{Lið Keflavík}}'''<br>'''{{Lið ÍA}}''' | spilaðir leikir = 77 | mörk skoruð = 600 (7.79 m/leik) | markahæstur = '''29 mörk'''<br>[[Anna Björg Björnsdóttir]] ({{Lið Þróttur R.}}) | haldið hreinu = | stærsti heimasigur = | stærsti útisigur = | tímabil = [[1. deild kvenna í knattspyrnu 2003|2003]] - [[1. deild kvenna í knattspyrnu 2005|2005]] |}} Leikar í '''1. deild kvenna í knattspyrnu''' hófust í 23. sinn árið '''2004'''. {{clear}} == A riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Álftanes}} | [[Garðabær]] | [[Bessastaðavöllur]] | [[Jón Brynjar Jónsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Haukar}} | [[Hafnarfjörður]] | [[Ásvellir]] | [[Birgir Örn Ólafsson]] | 6. sæti í A riðill |- |style="text-align: left;"|{{Lið HK/Víkingur}} | [[Reykjavík]] | [[Kópavogsvöllur]], [[Víkingsvöllur]], [[Fífan]] | [[Ólafur Ólafsson (þjálfari)|Ólafur Ólafsson]] | 4. sæti í A riðill |- |style="text-align: left;"|{{Lið Keflavík}} | [[Keflavík]] | [[Keflavíkurvöllur]] | [[Hannes Jón Jónsson]] (að) [[Gísli Rúnar Heiðarsson]] (að) | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |- |style="text-align: left;"|{{Lið Ægir}} | [[Þorlákshöfn ]] | [[Þorlákshafnarvöllur]] | [[Ásdís Hrönn Viðarsdóttir]] | Ný tengsl |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Keflavík|1}}"| ||'''{{Lið Keflavík}}''' ||12||11||1||0||133||7||126||'''34''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2||style="background:#{{Fótboltalitur|HK/Víkingur|1}}"| ||{{Lið HK/Víkingur}} ||12||8||1||3||77||15||62||'''25''' |- |3||style="background:#{{Fótboltalitur|Haukar|1}}"| ||{{Lið Haukar}} ||12||7||0||5||58||30||28||'''21''' |- |4||style="background:#{{Fótboltalitur|Álftanes|1}}"| ||{{Lið Álftanes}} ||12||1||2||9||11||102||-91||'''5''' |- |5||style="background:#{{Fótboltalitur|Ægir|1}}"| ||[[Knattspyrnufélagið Ægir|Ægir]] ||12||0||2||10||10||135||-125||'''2''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 1!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||1-2||0-6||0-10||3-2 |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||6-1||'''XXX'''||2-1||1-5||7-1 |- |align="left"|{{Lið HK/Víkingur}} ||3-0||3-1||'''XXX'''||0-7||16-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||19-0||10-0||1-0||'''XXX'''||17-1 |- |align="left"|{{Lið Ægir}} ||4-4||0-9||0-19||0-15||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|A riðill 2!!Álf!!Hau!!HK/V!!Kef!!Ægi |- |list2 = |align="left"|{{Lið Álftanes}} ||'''XXX'''||—||0-12||0-17||— |-! style="background:#F0F0F0;" |align="left"|{{Lið Haukar}} ||11-0||'''XXX'''||—||—||10-0 |- |align="left"|{{Lið HK/Víkingur}} ||—||3-1||'''XXX'''||—||11-0 |-! style="background:#F0F0F0;" |align="left"|{{Lið Keflavík}} ||—||5-2||3-3||'''XXX'''||— |- |align="left"|{{Lið Ægir}} ||2-2||—||—||0-22||'''XXX''' |} |} == B riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Fylkir}} | [[Reykjavík]] | [[Fylkisvöllur]] | [[Hafsteinn Steinsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið Hvöt}}/{{Lið Tindastóll}} | [[Blönduós]] [[Sauðárkrókur|Sauðárkróki]] | [[Blönduósvöllur]] [[Sauðárkróksvöllur]] | [[Ólafur Sigfús Benediktsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍA}} | [[Akranes]] | [[Akranesvöllur]] | [[Sigurður Halldórsson (þjálfari)|Sigurður Halldórsson]] | Ný tengsl |- |style="text-align: left;"|{{Lið ÍR}} | [[Reykjavík]] | [[ÍR-völlur]] | [[Páll Þór Kristjánsson]] (að), [[Már Árnason]] (að) | 5. sæti í A riðill |- |style="text-align: left;"|{{Lið Þróttur R.}} | [[Reykjavík]] | [[Valbjarnarvöllur]] | [[Íris Björk Eysteinsdóttir]]], [[Guðrún Inga Sívertsen]] (að) | 8. s., [[Landsbankadeild kvenna í knattspyrnu 2003|Landsbankad.]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 B riðill|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=overview&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|ÍA|1}}"| ||'''[[Knattspyrnufélag ÍA|ÍA]]''' ||12||12||0||0||79||13||66||'''36''' |align="center" rowspan=2|'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |-style="background:#D0F0C0;" |2||style="background:#{{Fótboltalitur|Þróttur_R.|1}}"| ||'''{{Lið Þróttur_R.}}''' ||12||9||0||3||72||19||53||'''27''' |- |3||style="background:#{{Fótboltalitur|ÍR|1}}"| ||[[ÍR]] ||12||5||0||7||33||41||-7||'''15''' |- |4||style="background:#{{Fótboltalitur|Fylkir|1}}"| ||[[Íþróttafélagið Fylkir|Fylkir]] ||12||4||0||8||31||56||-25||'''12''' |- |5||style="background:#{{Fótboltalitur|Hvöt|1}}"| ||{{Lið Hvöt}}/{{Lið Tindastóll}} ||12||0||0||12||4||90||-85||'''0''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 1!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||5-1||1-6||5-1||2-6 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||1-7||'''XXX'''||2-6||0-8||0-7 |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||8-0||10-0||'''XXX'''||8-0||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||5-3||7-0||2-6||'''XXX'''||0-1 |- |align="left"|{{Lið Þróttur R.}} ||13-2||11-0||2-3||6-1||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 2!!Fyl!!H/T!!&nbsp;ÍA&nbsp;!!&nbsp;ÍR&nbsp;!!Þró |- |list2 = |align="left"|[[Íþróttafélagið Fylkir|Fylkir]] ||'''XXX'''||—||0-4||—||2-8 |-! style="background:#F0F0F0;" |align="left"|{{Lið Hvöt}}/{{Lið Tindastóll}} ||0-2||'''XXX'''||—||0-3||— |- |align="left"|[[Knattspyrnufélag ÍA|ÍA]] ||—||13-0||'''XXX'''|||—||4-2 |-! style="background:#F0F0F0;" |align="left"|[[ÍR]] ||3-2||—||2-7||'''XXX'''||— |- |align="left"|{{Lið Þróttur R.}} ||—||11-0||—||3-1||'''XXX''' |} |} == C riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=160| Lið !width=100| Bær !width=120| Leikvangur !width=360| Þjálfari og aðstoðarþjálfari (aðs) !width=200| Staðan [[1. deild kvenna í knattspyrnu 2003|2003]] |- |style="text-align: left;"|{{Lið Einherji}} | [[Vopnafjörður|Vopnafirði]] | [[Vopnafjarðarvöllur]] | | 6. sæti, B riðill |- |style="text-align: left;"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] | [[Fjarðabyggð]] | [[Seyðisfjarðarvöllur]] [[Eskifjarðarvöllur]] | [[Jóhann Valgeir Davíðsson]] | 3. sæti, B riðill |- |style="text-align: left;"|[[Höttur]] | [[Seyðisfjörður]]<br/>[[Egilsstaðir]] | [[Vilhjálmsvöllur]] | [[Snorri Bergþórsson]] | 4. sæti, B riðill |- |style="text-align: left;"|{{Lið Sindri}} | [[Höfn]] | [[Sindravellir]] | Hajrudin Cardaklija | [[1._deild_kvenna_í_knattspyrnu_2002#Úrslitakeppnin|Úrslitakeppnin]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 12. umferð, Þri 14. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna 2004 C riðill|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=overview&toggle=rounds&round=12|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30| Sæti !width=50| !width=140|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !width=160|Athugasem |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Sindri|1}}"| ||'''{{Lið Sindri}}''' ||8||6||1||1||36||9||27||'''19''' |align="center" |'''[[1. deild kvenna í knattspyrnu 2004#Úrslitakeppnin|Úrslitakeppnin]]''' |- |2|| ||[[Höttur]] ||8||3||0||5||13||28||-15||'''9''' |- |3||| ||[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||8||2||1||5||14||26||-12||'''7''' |- | || ||[[Ungmennafélagið Einherji|Einherji]] ||0||0||0||0||0||0||0||'''0''' | align="center" | '''Vikið&nbsp;úr&nbsp;keppni''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-4||3-3 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||0-1||'''XXX'''||0-6 |- |align="left"|{{Lið Sindri}} ||5-1||4-0||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!FKK!!Höt!!Sin |- |list2 = |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||'''XXX'''||3-1||1-4 |-! style="background:#F0F0F0;" |align="left"|[[Höttur]] ||4-2||'''XXX'''||4-3 |- |align="left"|{{Lið Sindri}} ||5-0||6-0||'''XXX''' |} |} == Úrslitakeppnin == === Undanúrslit === 1. umferð, ''21. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 1. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />14:00 [[GMT]] |lið1= {{Lið Þróttur R.}} |úrslit= 3 – 4 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=676319&banner-tab=report Leikskýrsla] |mörk1= <br>[[Anna Björg Björnsdóttir]] {{mark|32}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|55}}<nowiki></nowiki><br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|80}} |mörk2= <br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|8}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|20}}<nowiki></nowiki><br>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|44}}<nowiki></nowiki><br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|44}} |leikvangur= [[Valbjarnarvöllur]] |áhorfendur= |dómari= [[Guðmundur Ævar Guðmundsson]] |}} {{Knattspyrnuleikur |dagsetning= 21. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið Sindri}} |úrslit= 0 – 8 |lið2= {{Lið ÍA}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=657965&banner-tab=report Leikskýrsla] |mörk1= <br> |mörk2= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|2}}<nowiki></nowiki>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|3}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|7}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki><br>[[Helga Sjöfn Jóhannesdóttir|H.S. Jóhannesdóttir]] {{mark|41}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|43}}<nowiki></nowiki><br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|58}}<nowiki></nowiki><br>[[Soffía Arnþrúður Gunnarsdóttir|S.A. Gunnarsdóttir]] ([[sjálfsmark|sm.]]) {{mark|59}} |leikvangur= [[Sindravellir]] |áhorfendur= |dómari= [[Magnús Ástþór Jónasson]] |}} 2. umferð, ''24. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - 2. umferð 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=2||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />18:00 [[GMT]] |lið1= {{Lið Keflavík}} |úrslit= 2 – 2 |lið2= {{Lið Þróttur R.}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=629945&banner-tab=report Leikskýrsla] |mörk1= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|10}}<nowiki></nowiki>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|84}} |mörk2= <br>[[Fjóla Dröfn Friðriksdóttir]] {{mark|26}}<nowiki></nowiki>[[Tinna Rúnarsdóttir]] (vítaspyrna) {{mark|68}} |leikvangur= [[Keflavíkurvöllur]] |áhorfendur= |dómari= [[Helgi Eiríksson]] |}} {{Knattspyrnuleikur |dagsetning= 24. ágúst 2004<br />12:00 [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 7 – 0 |lið2= {{Lið Sindri}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=564226&banner-tab=report Leikskýrsla] |mörk1= <br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|14}}<nowiki></nowiki>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|50}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]]) {{mark|52}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|65}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|67}}<nowiki></nowiki><br>[[Jónína Halla Víglundsdóttir|J.H. Víglundsdóttir]] {{mark|74}}<nowiki></nowiki><br>[[Berglind Magnúsdóttir|B. Magnúsdóttir]] {{mark|77}} |mörk2= <br> |leikvangur= [[Akranesvöllur]] |áhorfendur= |dómari= [[Ársæll Óskar Steinmóðsson]] |}} === Úrslit === Úrslit ''28. ágúst 2004''.<ref>{{cite web|title=1. deild kvenna - Úrslit 2004|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=3||website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=14. ágúst 2026}}</ref> {{Knattspyrnuleikur |dagsetning= 28. ágúst 2004<br />15:00 [[GMT]] |lið1={{Lið ÍA}} |úrslit= 1 – 2 |lið2= {{Lið Keflavík}} |skýrsla= [https://www.ksi.is/leikir-og-urslit/felagslid/leikur?id=680419&banner-tab=report Leikskýrsla] |mörk1= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|21}} |mörk2= <br>[[Ólöf Helga Pálsdóttir|Ó.H. Pálsdóttir]] {{mark|33}}<nowiki></nowiki>[[Guðný Petrína Þórðardóttir|G.P. Þórðardóttir]] {{mark|84}} |leikvangur= [[Varmárvöllur]] |áhorfendur= |dómari= [[Ólafur Kjartansson]] |}} == Aukakeppni 1. deild == ''11. og 15 september 2004''.<ref>{{cite web|title=1. deild kvenna - Promotion/Relegation Playoff|url=https://www.rsssf.org/tablesi/ijs-wom04.html||website=www.rsssf.org|publisher=www.rsssf.org|accessdate=14. ágúst 2026}}</ref> Lau ''11. september 2004''. {{Knattspyrnuleikur |dagsetning= 11. september 2004<br /> [[GMT]] |lið1= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |úrslit= 1 – 6 |lið2= {{Lið ÍA}} |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>([[Sjálfsmark|sm.]]) {{mark|9}} |mörk2= <br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|11}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|24}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|43}}<nowiki></nowiki><br>[[Hallbera Guðný Gísladóttir|H.G. Gísladóttir]] {{mark|45}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|73}}<nowiki></nowiki><br>[[Áslaug Ragna Ákadóttir|Á.R. Ákadóttir]] {{mark|86}} |leikvangur= [[Akureyrarvöllur]] |áhorfendur= |dómari= ? |}} Mið ''15. september 2004''. {{Knattspyrnuleikur |dagsetning= 15. september 2004<br /> [[GMT]] |lið1= {{Lið ÍA}} |úrslit= 3 – 1 |lið2= [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] |skýrsla= [https://www.rsssf.org/tablesi/ijs-wom04.html Leikskýrsla] |mörk1= <br>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|63}}<nowiki></nowiki>[[Magnea Guðlaugsdóttir|M. Guðlaugsdóttir]] {{mark|70}}<nowiki></nowiki><br>[[Ásta Benediktsdóttir|Á. Benediktsdóttir]] ([[Vítaspyrnukeppni (knattspyrna)|vít.]]) {{mark|87}} |mörk2= <br>[[Guðrún Soffía Viðarsdóttir|G.S. Viðarsdóttir]] {{mark|77}} |leikvangur= [[Akraneshöllin]] |áhorfendur= |dómari= ? |}} == Markahæstu leikmenn == {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=340|Nafn !width=120|Félag !width=90|Mörk !width=30|Víti !width=90|Leikir |-style="background:#FFD700;" | '''1''' | '''[[Anna Björg Björnsdóttir]]''' | {{Lið Þróttur R.}} | 28 + 1 | 0 | 10 + 2 |-style="background:#C0C0C0;" | '''2''' | '''[[Guðný Petrína Þórðardóttir]]''' | {{Lið Keflavík}} | 24 + 3 | 0 | 12 + 3 |-style="background:#CD7F32;" | '''3''' | '''[[Ólöf Helga Pálsdóttir]]''' | {{Lið Keflavík}} | 19 + 5 | 0 | 12 + 3 |- | '''4''' | [[Tatjana Safranj]] | [[Reynir Sandgerði|R]][[Íþrótta- og ungmennafélag Keflavíkur|K]][[Knattspyrnufélagið Víðir Garði|V]] | 20 | 0 | 10 |- | '''5''' | [[Áslaug Ragna Ákadóttir]] | {{Lið ÍA}} | 12+6+2 | 0 | 9+3+2 |- | '''6''' | [[Hrefna Magnea Guðmundsdóttir]] | {{Lið Keflavík}} | 18 | 0 | 12 |} {{1. deild kvenna í knattspyrnu}} {{röð | listi = [[1. deild kvenna í knattspyrnu|1. deild kvenna]] | fyrir = [[1. deild kvenna í knattspyrnu 2003|1. deild kvenna 2003]] | eftir = [[1. deild kvenna í knattspyrnu 2005|1.&nbsp;deild&nbsp;kvenna&nbsp;2005]] }} == Tilvísanir og heimildir == <div class="references-small"><references/></div> * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188083&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 A riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188044&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 B riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188084&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 C riðill|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188041&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2004 úrslit|work=KSÍ|accessdate=14. ágúst 2026}} * {{cite web|url=http://www.icelandfootball.net/ladies-2004.html#W2D|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} * {{cite web|url=https://www.rsssf.org/tablesi/ijs-wom04.html|title=Second Level 2004 - 1. deild kvenna)|accessdate=14. ágúst 2026}} {{Knattspyrna á Íslandi 2004}} [[Flokkur:1. deild kvenna í knattspyrnu á Íslandi]] [[Flokkur:Knattspyrna á Íslandi]] kr0s2mzf6leeae6jxuv5jxudp6q809z Flores 0 192419 1975351 2026-08-15T12:14:46Z Berserkur 10188 Berserkur færði [[Flores]] á [[Flores (Asóreyjum)]]: Aðgreining 1975351 wikitext text/x-wiki #tilvísun [[Flores (Asóreyjum)]] shcqpjyssgitwkq18eo6z4pzft98xmg 1975352 1975351 2026-08-15T12:16:24Z Berserkur 10188 Fjarlægði endurbeiningu á [[Flores (Asóreyjum)]] 1975352 wikitext text/x-wiki '''Flores''' getur átt við: *[[Flores (Asóreyjum)|Flores]], eyju á Asóreyjum. *[[Flores (Indónesíu)|Flores]], eyju í Indónesíu dzqx6i31wn1ovdcl9ufzxvcvky306a9 1975353 1975352 2026-08-15T12:16:48Z Berserkur 10188 1975353 wikitext text/x-wiki '''Flores''' getur átt við: *[[Flores (Asóreyjum)|Flores]], eyju á Asóreyjum. *[[Flores (Indónesíu)|Flores]], eyju í Indónesíu. [[Flokkur:Aðgreiningarsíður]] b51ev4lodqkotnzhrhl2nim7tydnfft Kvarnsteinn 0 192420 1975357 2026-08-15T13:56:13Z MyraMidnight 41218 Tilvísun á [[Kvörn]] 1975357 wikitext text/x-wiki #tilvísun [[kvörn]] 6a6irsizy511t6h8xovi6ay85641k76 Myllusteinn 0 192421 1975358 2026-08-15T13:56:54Z MyraMidnight 41218 Tilvísun á [[Kvörn]] 1975358 wikitext text/x-wiki #tilvísun [[kvörn]] 6a6irsizy511t6h8xovi6ay85641k76 Jarðabókin 0 192422 1975359 2026-08-15T14:31:27Z MyraMidnight 41218 Tilvísun á [[Jarðabók Árna Magnússonar og Páls Vídalíns]] 1975359 wikitext text/x-wiki #tilvísun [[Jarðabók Árna Magnússonar og Páls Vídalíns]] mofc5niv5y2d1ayh9rr49agog1owdgi Snið:Þjóðaratkvæðagreiðsla 10 192423 1975361 2026-06-22T22:44:43Z en>Nosferattus 0 revert self 1975361 wikitext text/x-wiki <includeonly>{{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Rr]eferendum}}|true|{{#if:{{Has short description}}|<!--Do nothing-->|{{short description|{{#if:{{#invoke:string|match|{{PAGENAME}}|[Rr]eferendum|ignore_errors = true}}|none|{{#if:{{#invoke:string|match|{{{date|}}}|%d%d%d%d|ignore_errors = true}}|{{#invoke:string|match|{{{date|}}}|%d%d%d%d|ignore_errors = true}} referendum|Referendum}}}}|noreplace}}}}}} {{infobox | child = {{{child|{{{embed|}}}}}} | templatestyles = Infobox referendum/styles.css | bodystyle = width:24em | headerstyle = background:#efefef; color:inherit; | title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{name|}}}|<div style="background-color:#ddd; color:inherit; font-size:120%; font-weight:bold">{{{name}}}</div>}}|{{{name|{{PAGENAME}}}}}}} | subheader1 = {{#if:{{{flag_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}}{{If mobile||<hr>}} |{{#if:{{{country|}}} |{{flag decoration|{{{country}}}|variant={{{flag_year|}}}|size=50px|noredlink={{main other||yes}}}}{{If mobile||<hr>}} }} }} | subheader2 = {{#if:{{{previous_year|}}}{{{date|}}}{{{next_year|}}}| {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%; | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_referendum|}}}|[[{{{previous_referendum}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}} | center = {{#if:{{{date|}}}|'''{{{date}}}'''}} | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_referendum|}}}|[[{{{next_referendum}}}|{{{next_year}}}]]|{{{next_year}}}}}}} }} }} | subheader3 = {{#if:{{{title|{{{question|}}}}}}|{{box|{{{title|{{{question|}}}}}}|color=var( --background-color-neutral-subtle, #f8f9fa )|border color=var( --border-color-base, #A2A9B1 )|text color=inherit|border size=2px|width=calc(100% - 16px)|max-width=24em}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | imagestyle = border-bottom: 1px solid #A2A9B1 | label1 = Voting system | data1 = {{{voting_system|}}} | label3 = {{#if:{{{votes_counted|}}}|Votes&nbsp;counted|{{#if:{{{reporting|}}}|Reporting|{{#if:{{{declared|}}}|Declared}}}}}} | data3 = {{#if:{{{votes_counted|}}}{{{reporting|}}}{{{declared|}}}|{{center|{{Percentage bar|{{#if:{{{votes_counted|}}}|{{{votes_counted}}}|{{#if:{{{reporting|}}}|{{{reporting}}}|{{#if:{{{declared|}}}|{{{declared}}}}}}}}}|c=#1BCE0E}}}}}} {{#if:{{{last_update|}}}|as of '''{{{last_update}}} {{#if:{{{time_zone|}}}|{{{time_zone}}}}}'''}} |label4 = Outcome |data4 = {{{outcome|}}} |label5 = Website |data5 = {{{website|}}} |header6 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|Results}} | data7 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }} }} | header8 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Results|}}}}} | data9 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color| #47729E}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice2|{{{part1_choice2|}}}}}}|{{{choice2_color|{{{part1_choice2_color| #8B8B54}}}}}}|{{{percentage2|{{{part1_percentage2|}}}}}}}} {{#if:{{{choice3|{{{part1_choice3|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice3|{{{part1_choice3|}}}}}}|{{{choice3_color|{{{part1_choice3_color|red}}}}}}|{{{percentage3|{{{part1_percentage3|}}}}}}}}}} {{#if:{{{choice4|{{{part1_choice4|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice4|{{{part1_choice4|}}}}}}|{{{choice4_color|{{{part1_choice4_color|orange}}}}}}|{{{percentage4|{{{part1_percentage4|}}}}}}}}}} {{#if:{{{choice5|{{{part1_choice5|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice5|{{{part1_choice5|}}}}}}|{{{choice5_color|{{{part1_choice5_color|teal}}}}}}|{{{percentage5|{{{part1_percentage5|}}}}}}}}}} | caption = {{{results_caption|{{{results1_caption|{{{part1_caption|}}}}}}}}} }}|}} | header10 = {{{part2_subject|}}} | data11 = {{#if:{{{part2_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|#47729E}}}|{{{part2_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice2|}}}|{{{part2_choice2_color| #8B8B54}}}|{{{part2_percentage2|}}}}} {{#if:{{{part2_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice3|}}}|{{{part2_choice3_color|red}}}|{{{part2_percentage3|}}}}}}} {{#if:{{{part2_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice4|}}}|{{{part2_choice4_color|orange}}}|{{{part2_percentage4|}}}}}}} {{#if:{{{part2_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice5|}}}|{{{part2_choice5_color|teal}}}|{{{part2_percentage5|}}}}}}} | caption = {{{results2_caption|{{{part2_caption|}}}}}} }}|}} | header12 = {{{part3_subject|}}} | data13 = {{#if:{{{part3_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color| #47729E}}}|{{{part3_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice2|}}}|{{{part3_choice2_color|#8B8B54}}}|{{{part3_percentage2|}}}}} {{#if:{{{part3_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice3|}}}|{{{part3_choice3_color|red}}}|{{{part3_percentage3|}}}}}}} {{#if:{{{part3_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice4|}}}|{{{part3_choice4_color|orange}}}|{{{part3_percentage4|}}}}}}} {{#if:{{{part3_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice5|}}}|{{{part3_choice5_color|teal}}}|{{{part3_percentage5|}}}}}}} | caption = {{{results3_caption|{{{part3_caption|}}}}}} }}|}} | header14 = {{{part4_subject|}}} | data15 = {{#if:{{{part4_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color| #47729E}}}|{{{part4_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice2|}}}|{{{part4_choice2_color| #8B8B54}}}|{{{part4_percentage2|}}}}} {{#if:{{{part4_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice3|}}}|{{{part4_choice3_color|red}}}|{{{part4_percentage3|}}}}}}} {{#if:{{{part4_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice4|}}}|{{{part4_choice4_color|orange}}}|{{{part4_percentage4|}}}}}}} {{#if:{{{part4_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice5|}}}|{{{part4_choice5_color|teal}}}|{{{part4_percentage5|}}}}}}} | caption = {{{results4_caption|{{{part4_caption|}}}}}} }}|}} | header16 = {{{part5_subject|}}} | data17 = {{#if:{{{part5_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice1|}}}|{{{part5_choice1_color| #47729E}}}|{{{part5_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice2|}}}|{{{part5_choice2_color| #8B8B54}}}|{{{part5_percentage2|}}}}} {{#if:{{{part5_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice3|}}}|{{{part5_choice3_color|red}}}|{{{part5_percentage3|}}}}}}} {{#if:{{{part5_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice4|}}}|{{{part5_choice4_color|orange}}}|{{{part5_percentage4|}}}}}}} {{#if:{{{part5_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice5|}}}|{{{part5_choice5_color|teal}}}|{{{part5_percentage5|}}}}}}} | caption = {{{results5_caption|{{{part5_caption|}}}}}} }}|}} | data18 = {{#if:{{{map|}}}|{{If mobile||<hr>}}}} | header19 = {{#if:{{{map_heading|}}}|{{{map_heading|}}}}} | data20 = {{#if:{{{map|}}}|{{#if:{{{map|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=300px|alt={{{map_alt|}}}}} |{{{map}}} }}<div>{{#if:{{{mapcaption|{{{map_caption|}}}}}}|{{{mapcaption|{{{map_caption|}}}}}}|Results by {{#if:{{{mapdivision|{{{map_division|}}}}}}|{{{mapdivision|{{{map_division|}}}}}}|county}}}}</div> }} | data21 = {{#if:{{{map2|}}}|{{If mobile||<hr>}}}} | header22 = {{#if:{{{map_heading2|}}}|{{{map_heading2|}}}}} | data23 = {{#if:{{{map2|}}}|{{#if:{{{map2|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map2|}}}|size={{{map_size2|}}}|sizedefault=260px|alt={{{map_alt2|}}}}} |{{{map2}}} }}<div>{{#if:{{{mapcaption2|{{{map_caption2|}}}}}}|{{{mapcaption2|{{{map_caption2|}}}}}}|Results by {{#if:{{{mapdivision2|{{{map_division2|}}}}}}|{{{mapdivision2|{{{map_division2|}}}}}}|county}}}}</div> }} | data24 = {{#if:{{{map3|}}}|{{If mobile||<hr>}}}} | header25 = {{#if:{{{map_heading3|}}}|{{{map_heading3|}}}}} | data26 = {{#if:{{{map3|}}}|{{#if:{{{map3|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map3|}}}|size={{{map_size3|}}}|sizedefault=260px|alt={{{map_alt3|}}}}} |{{{map3}}} }}<div>{{#if:{{{mapcaption3|{{{map_caption3|}}}}}}|{{{mapcaption3|{{{map_caption3|}}}}}}|Results by {{#if:{{{mapdivision3|{{{map_division3|}}}}}}|{{{mapdivision3|{{{map_division3|}}}}}}|county}}}}</div> }} | data27 = {{#if:{{{map4|}}}|{{If mobile||<hr>}}}} | header28 = {{#if:{{{map_heading4|}}}|{{{map_heading4|}}}}} | data29 = {{#if:{{{map4|}}}|{{#if:{{{map4|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map4|}}}|size={{{map_size4|}}}|sizedefault=260px|alt={{{map_alt4|}}}}} |{{{map4}}} }}<div>{{#if:{{{mapcaption4|{{{map_caption4|}}}}}}|{{{mapcaption4|{{{map_caption4|}}}}}}|Results by {{#if:{{{mapdivision4|{{{map_division4|}}}}}}|{{{mapdivision4|{{{map_division4|}}}}}}|county}}}}</div> }} | data30 = {{{module|}}} | belowstyle = text-align:left; background:#fafafa; color:inherit; border-top: #aaa 1px solid; padding:0.2em; | below = {{#if:{{{notes|}}}|{{{notes}}}}} }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox referendum with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox referendum]] with unknown parameter "_VALUE_"|ignoreblank=y| barwidth | blank | blanktype | caption | child | choice1 | choice1_color | choice2 | choice2_color | choice3 | choice3_color | choice4 | choice4_color | choice5 | choice5_color | country | date | declared | electorate | embed | flag_image | flag_year | image | image_alt | image_width | invalid | last_update | map | map_alt | map_alt2 | map_alt3 | map_alt4 | map_caption | map_caption2 | map_caption3 | map_caption4 | map_division | map_division2 | map_division3 | map_division4 | map_heading | map_heading2 | map_heading3 | map_heading4 | map_size | map_size2 | map_size3 | map_size4 | map2 | map3 | map4 | mapcaption | mapcaption2 | mapcaption3 | mapcaption4 | mapdivision | mapdivision2 | mapdivision3 | mapdivision4 | module | name | next_referendum | next_year | no | no_text | notes | other | othertype | outcome | part1_caption | part1_subject | part2_caption | part2_subject | part3_caption | part3_subject | part4_caption | part4_subject | part5_caption | part5_subject | part1_choice1 | part1_choice1_color | part1_choice2 | part1_choice2_color | part1_choice3 | part1_choice3_color | part1_choice4 | part1_choice4_color | part1_choice5 | part1_choice5_color | part1_percentage1 | part1_percentage2 | part1_percentage3 | part1_percentage4 | part1_percentage5 | part2_choice1 | part2_choice1_color | part2_choice2 | part2_choice2_color | part2_choice3 | part2_choice3_color | part2_choice4 | part2_choice4_color | part2_choice5 | part2_choice5_color | part2_percentage1 | part2_percentage2 | part2_percentage3 | part2_percentage4 | part2_percentage5 | part3_choice1 | part3_choice1_color | part3_choice2 | part3_choice2_color | part3_choice3 | part3_choice3_color | part3_choice4 | part3_choice4_color | part3_choice5 | part3_choice5_color | part3_percentage1 | part3_percentage2 | part3_percentage3 | part3_percentage4 | part3_percentage5 | part4_choice1 | part4_choice1_color | part4_choice2 | part4_choice2_color | part4_choice3 | part4_choice3_color | part4_choice4 | part4_choice4_color | part4_choice5 | part4_choice5_color | part4_percentage1 | part4_percentage2 | part4_percentage3 | part4_percentage4 | part4_percentage5 | part5_choice1 | part5_choice1_color | part5_choice2 | part5_choice2_color | part5_choice3 | part5_choice3_color | part5_choice4 | part5_choice4_color | part5_choice5 | part5_choice5_color | part5_percentage1 | part5_percentage2 | part5_percentage3 | part5_percentage4 | part5_percentage5 | percentage1 | percentage2 | percentage3 | percentage4 | percentage5 | previous_referendum | previous_year | question | reporting | results_caption | results1_caption | results2_caption | results3_caption | results4_caption | results5_caption | time_zone | title | total | totalref | turnoutpct | voter_registration | votes_counted | voting_system | website | width | yes | yes_text }}</includeonly><noinclude> {{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> t4ftcb2njxilmqdkakcw8ltw51279up 1975362 1975361 2026-08-15T16:50:43Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Infobox_referendum]] 1975361 wikitext text/x-wiki <includeonly>{{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Rr]eferendum}}|true|{{#if:{{Has short description}}|<!--Do nothing-->|{{short description|{{#if:{{#invoke:string|match|{{PAGENAME}}|[Rr]eferendum|ignore_errors = true}}|none|{{#if:{{#invoke:string|match|{{{date|}}}|%d%d%d%d|ignore_errors = true}}|{{#invoke:string|match|{{{date|}}}|%d%d%d%d|ignore_errors = true}} referendum|Referendum}}}}|noreplace}}}}}} {{infobox | child = {{{child|{{{embed|}}}}}} | templatestyles = Infobox referendum/styles.css | bodystyle = width:24em | headerstyle = background:#efefef; color:inherit; | title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{name|}}}|<div style="background-color:#ddd; color:inherit; font-size:120%; font-weight:bold">{{{name}}}</div>}}|{{{name|{{PAGENAME}}}}}}} | subheader1 = {{#if:{{{flag_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}}{{If mobile||<hr>}} |{{#if:{{{country|}}} |{{flag decoration|{{{country}}}|variant={{{flag_year|}}}|size=50px|noredlink={{main other||yes}}}}{{If mobile||<hr>}} }} }} | subheader2 = {{#if:{{{previous_year|}}}{{{date|}}}{{{next_year|}}}| {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%; | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_referendum|}}}|[[{{{previous_referendum}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}} | center = {{#if:{{{date|}}}|'''{{{date}}}'''}} | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_referendum|}}}|[[{{{next_referendum}}}|{{{next_year}}}]]|{{{next_year}}}}}}} }} }} | subheader3 = {{#if:{{{title|{{{question|}}}}}}|{{box|{{{title|{{{question|}}}}}}|color=var( --background-color-neutral-subtle, #f8f9fa )|border color=var( --border-color-base, #A2A9B1 )|text color=inherit|border size=2px|width=calc(100% - 16px)|max-width=24em}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | imagestyle = border-bottom: 1px solid #A2A9B1 | label1 = Voting system | data1 = {{{voting_system|}}} | label3 = {{#if:{{{votes_counted|}}}|Votes&nbsp;counted|{{#if:{{{reporting|}}}|Reporting|{{#if:{{{declared|}}}|Declared}}}}}} | data3 = {{#if:{{{votes_counted|}}}{{{reporting|}}}{{{declared|}}}|{{center|{{Percentage bar|{{#if:{{{votes_counted|}}}|{{{votes_counted}}}|{{#if:{{{reporting|}}}|{{{reporting}}}|{{#if:{{{declared|}}}|{{{declared}}}}}}}}}|c=#1BCE0E}}}}}} {{#if:{{{last_update|}}}|as of '''{{{last_update}}} {{#if:{{{time_zone|}}}|{{{time_zone}}}}}'''}} |label4 = Outcome |data4 = {{{outcome|}}} |label5 = Website |data5 = {{{website|}}} |header6 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|Results}} | data7 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }} }} | header8 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Results|}}}}} | data9 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color| #47729E}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice2|{{{part1_choice2|}}}}}}|{{{choice2_color|{{{part1_choice2_color| #8B8B54}}}}}}|{{{percentage2|{{{part1_percentage2|}}}}}}}} {{#if:{{{choice3|{{{part1_choice3|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice3|{{{part1_choice3|}}}}}}|{{{choice3_color|{{{part1_choice3_color|red}}}}}}|{{{percentage3|{{{part1_percentage3|}}}}}}}}}} {{#if:{{{choice4|{{{part1_choice4|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice4|{{{part1_choice4|}}}}}}|{{{choice4_color|{{{part1_choice4_color|orange}}}}}}|{{{percentage4|{{{part1_percentage4|}}}}}}}}}} {{#if:{{{choice5|{{{part1_choice5|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice5|{{{part1_choice5|}}}}}}|{{{choice5_color|{{{part1_choice5_color|teal}}}}}}|{{{percentage5|{{{part1_percentage5|}}}}}}}}}} | caption = {{{results_caption|{{{results1_caption|{{{part1_caption|}}}}}}}}} }}|}} | header10 = {{{part2_subject|}}} | data11 = {{#if:{{{part2_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|#47729E}}}|{{{part2_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice2|}}}|{{{part2_choice2_color| #8B8B54}}}|{{{part2_percentage2|}}}}} {{#if:{{{part2_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice3|}}}|{{{part2_choice3_color|red}}}|{{{part2_percentage3|}}}}}}} {{#if:{{{part2_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice4|}}}|{{{part2_choice4_color|orange}}}|{{{part2_percentage4|}}}}}}} {{#if:{{{part2_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice5|}}}|{{{part2_choice5_color|teal}}}|{{{part2_percentage5|}}}}}}} | caption = {{{results2_caption|{{{part2_caption|}}}}}} }}|}} | header12 = {{{part3_subject|}}} | data13 = {{#if:{{{part3_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color| #47729E}}}|{{{part3_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice2|}}}|{{{part3_choice2_color|#8B8B54}}}|{{{part3_percentage2|}}}}} {{#if:{{{part3_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice3|}}}|{{{part3_choice3_color|red}}}|{{{part3_percentage3|}}}}}}} {{#if:{{{part3_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice4|}}}|{{{part3_choice4_color|orange}}}|{{{part3_percentage4|}}}}}}} {{#if:{{{part3_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice5|}}}|{{{part3_choice5_color|teal}}}|{{{part3_percentage5|}}}}}}} | caption = {{{results3_caption|{{{part3_caption|}}}}}} }}|}} | header14 = {{{part4_subject|}}} | data15 = {{#if:{{{part4_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color| #47729E}}}|{{{part4_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice2|}}}|{{{part4_choice2_color| #8B8B54}}}|{{{part4_percentage2|}}}}} {{#if:{{{part4_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice3|}}}|{{{part4_choice3_color|red}}}|{{{part4_percentage3|}}}}}}} {{#if:{{{part4_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice4|}}}|{{{part4_choice4_color|orange}}}|{{{part4_percentage4|}}}}}}} {{#if:{{{part4_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice5|}}}|{{{part4_choice5_color|teal}}}|{{{part4_percentage5|}}}}}}} | caption = {{{results4_caption|{{{part4_caption|}}}}}} }}|}} | header16 = {{{part5_subject|}}} | data17 = {{#if:{{{part5_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice1|}}}|{{{part5_choice1_color| #47729E}}}|{{{part5_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice2|}}}|{{{part5_choice2_color| #8B8B54}}}|{{{part5_percentage2|}}}}} {{#if:{{{part5_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice3|}}}|{{{part5_choice3_color|red}}}|{{{part5_percentage3|}}}}}}} {{#if:{{{part5_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice4|}}}|{{{part5_choice4_color|orange}}}|{{{part5_percentage4|}}}}}}} {{#if:{{{part5_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice5|}}}|{{{part5_choice5_color|teal}}}|{{{part5_percentage5|}}}}}}} | caption = {{{results5_caption|{{{part5_caption|}}}}}} }}|}} | data18 = {{#if:{{{map|}}}|{{If mobile||<hr>}}}} | header19 = {{#if:{{{map_heading|}}}|{{{map_heading|}}}}} | data20 = {{#if:{{{map|}}}|{{#if:{{{map|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=300px|alt={{{map_alt|}}}}} |{{{map}}} }}<div>{{#if:{{{mapcaption|{{{map_caption|}}}}}}|{{{mapcaption|{{{map_caption|}}}}}}|Results by {{#if:{{{mapdivision|{{{map_division|}}}}}}|{{{mapdivision|{{{map_division|}}}}}}|county}}}}</div> }} | data21 = {{#if:{{{map2|}}}|{{If mobile||<hr>}}}} | header22 = {{#if:{{{map_heading2|}}}|{{{map_heading2|}}}}} | data23 = {{#if:{{{map2|}}}|{{#if:{{{map2|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map2|}}}|size={{{map_size2|}}}|sizedefault=260px|alt={{{map_alt2|}}}}} |{{{map2}}} }}<div>{{#if:{{{mapcaption2|{{{map_caption2|}}}}}}|{{{mapcaption2|{{{map_caption2|}}}}}}|Results by {{#if:{{{mapdivision2|{{{map_division2|}}}}}}|{{{mapdivision2|{{{map_division2|}}}}}}|county}}}}</div> }} | data24 = {{#if:{{{map3|}}}|{{If mobile||<hr>}}}} | header25 = {{#if:{{{map_heading3|}}}|{{{map_heading3|}}}}} | data26 = {{#if:{{{map3|}}}|{{#if:{{{map3|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map3|}}}|size={{{map_size3|}}}|sizedefault=260px|alt={{{map_alt3|}}}}} |{{{map3}}} }}<div>{{#if:{{{mapcaption3|{{{map_caption3|}}}}}}|{{{mapcaption3|{{{map_caption3|}}}}}}|Results by {{#if:{{{mapdivision3|{{{map_division3|}}}}}}|{{{mapdivision3|{{{map_division3|}}}}}}|county}}}}</div> }} | data27 = {{#if:{{{map4|}}}|{{If mobile||<hr>}}}} | header28 = {{#if:{{{map_heading4|}}}|{{{map_heading4|}}}}} | data29 = {{#if:{{{map4|}}}|{{#if:{{{map4|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map4|}}}|size={{{map_size4|}}}|sizedefault=260px|alt={{{map_alt4|}}}}} |{{{map4}}} }}<div>{{#if:{{{mapcaption4|{{{map_caption4|}}}}}}|{{{mapcaption4|{{{map_caption4|}}}}}}|Results by {{#if:{{{mapdivision4|{{{map_division4|}}}}}}|{{{mapdivision4|{{{map_division4|}}}}}}|county}}}}</div> }} | data30 = {{{module|}}} | belowstyle = text-align:left; background:#fafafa; color:inherit; border-top: #aaa 1px solid; padding:0.2em; | below = {{#if:{{{notes|}}}|{{{notes}}}}} }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox referendum with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox referendum]] with unknown parameter "_VALUE_"|ignoreblank=y| barwidth | blank | blanktype | caption | child | choice1 | choice1_color | choice2 | choice2_color | choice3 | choice3_color | choice4 | choice4_color | choice5 | choice5_color | country | date | declared | electorate | embed | flag_image | flag_year | image | image_alt | image_width | invalid | last_update | map | map_alt | map_alt2 | map_alt3 | map_alt4 | map_caption | map_caption2 | map_caption3 | map_caption4 | map_division | map_division2 | map_division3 | map_division4 | map_heading | map_heading2 | map_heading3 | map_heading4 | map_size | map_size2 | map_size3 | map_size4 | map2 | map3 | map4 | mapcaption | mapcaption2 | mapcaption3 | mapcaption4 | mapdivision | mapdivision2 | mapdivision3 | mapdivision4 | module | name | next_referendum | next_year | no | no_text | notes | other | othertype | outcome | part1_caption | part1_subject | part2_caption | part2_subject | part3_caption | part3_subject | part4_caption | part4_subject | part5_caption | part5_subject | part1_choice1 | part1_choice1_color | part1_choice2 | part1_choice2_color | part1_choice3 | part1_choice3_color | part1_choice4 | part1_choice4_color | part1_choice5 | part1_choice5_color | part1_percentage1 | part1_percentage2 | part1_percentage3 | part1_percentage4 | part1_percentage5 | part2_choice1 | part2_choice1_color | part2_choice2 | part2_choice2_color | part2_choice3 | part2_choice3_color | part2_choice4 | part2_choice4_color | part2_choice5 | part2_choice5_color | part2_percentage1 | part2_percentage2 | part2_percentage3 | part2_percentage4 | part2_percentage5 | part3_choice1 | part3_choice1_color | part3_choice2 | part3_choice2_color | part3_choice3 | part3_choice3_color | part3_choice4 | part3_choice4_color | part3_choice5 | part3_choice5_color | part3_percentage1 | part3_percentage2 | part3_percentage3 | part3_percentage4 | part3_percentage5 | part4_choice1 | part4_choice1_color | part4_choice2 | part4_choice2_color | part4_choice3 | part4_choice3_color | part4_choice4 | part4_choice4_color | part4_choice5 | part4_choice5_color | part4_percentage1 | part4_percentage2 | part4_percentage3 | part4_percentage4 | part4_percentage5 | part5_choice1 | part5_choice1_color | part5_choice2 | part5_choice2_color | part5_choice3 | part5_choice3_color | part5_choice4 | part5_choice4_color | part5_choice5 | part5_choice5_color | part5_percentage1 | part5_percentage2 | part5_percentage3 | part5_percentage4 | part5_percentage5 | percentage1 | percentage2 | percentage3 | percentage4 | percentage5 | previous_referendum | previous_year | question | reporting | results_caption | results1_caption | results2_caption | results3_caption | results4_caption | results5_caption | time_zone | title | total | totalref | turnoutpct | voter_registration | votes_counted | voting_system | website | width | yes | yes_text }}</includeonly><noinclude> {{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> t4ftcb2njxilmqdkakcw8ltw51279up 1975535 1975362 2026-08-15T21:17:20Z Bjarki S 9 Bjarki S færði [[Snið:Infobox referendum]] á [[Snið:Þjóðaratkvæðagreiðsla]] 1975361 wikitext text/x-wiki <includeonly>{{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Rr]eferendum}}|true|{{#if:{{Has short description}}|<!--Do nothing-->|{{short description|{{#if:{{#invoke:string|match|{{PAGENAME}}|[Rr]eferendum|ignore_errors = true}}|none|{{#if:{{#invoke:string|match|{{{date|}}}|%d%d%d%d|ignore_errors = true}}|{{#invoke:string|match|{{{date|}}}|%d%d%d%d|ignore_errors = true}} referendum|Referendum}}}}|noreplace}}}}}} {{infobox | child = {{{child|{{{embed|}}}}}} | templatestyles = Infobox referendum/styles.css | bodystyle = width:24em | headerstyle = background:#efefef; color:inherit; | title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{name|}}}|<div style="background-color:#ddd; color:inherit; font-size:120%; font-weight:bold">{{{name}}}</div>}}|{{{name|{{PAGENAME}}}}}}} | subheader1 = {{#if:{{{flag_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}}{{If mobile||<hr>}} |{{#if:{{{country|}}} |{{flag decoration|{{{country}}}|variant={{{flag_year|}}}|size=50px|noredlink={{main other||yes}}}}{{If mobile||<hr>}} }} }} | subheader2 = {{#if:{{{previous_year|}}}{{{date|}}}{{{next_year|}}}| {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%; | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_referendum|}}}|[[{{{previous_referendum}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}} | center = {{#if:{{{date|}}}|'''{{{date}}}'''}} | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_referendum|}}}|[[{{{next_referendum}}}|{{{next_year}}}]]|{{{next_year}}}}}}} }} }} | subheader3 = {{#if:{{{title|{{{question|}}}}}}|{{box|{{{title|{{{question|}}}}}}|color=var( --background-color-neutral-subtle, #f8f9fa )|border color=var( --border-color-base, #A2A9B1 )|text color=inherit|border size=2px|width=calc(100% - 16px)|max-width=24em}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | imagestyle = border-bottom: 1px solid #A2A9B1 | label1 = Voting system | data1 = {{{voting_system|}}} | label3 = {{#if:{{{votes_counted|}}}|Votes&nbsp;counted|{{#if:{{{reporting|}}}|Reporting|{{#if:{{{declared|}}}|Declared}}}}}} | data3 = {{#if:{{{votes_counted|}}}{{{reporting|}}}{{{declared|}}}|{{center|{{Percentage bar|{{#if:{{{votes_counted|}}}|{{{votes_counted}}}|{{#if:{{{reporting|}}}|{{{reporting}}}|{{#if:{{{declared|}}}|{{{declared}}}}}}}}}|c=#1BCE0E}}}}}} {{#if:{{{last_update|}}}|as of '''{{{last_update}}} {{#if:{{{time_zone|}}}|{{{time_zone}}}}}'''}} |label4 = Outcome |data4 = {{{outcome|}}} |label5 = Website |data5 = {{{website|}}} |header6 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|Results}} | data7 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }} }} | header8 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Results|}}}}} | data9 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color| #47729E}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice2|{{{part1_choice2|}}}}}}|{{{choice2_color|{{{part1_choice2_color| #8B8B54}}}}}}|{{{percentage2|{{{part1_percentage2|}}}}}}}} {{#if:{{{choice3|{{{part1_choice3|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice3|{{{part1_choice3|}}}}}}|{{{choice3_color|{{{part1_choice3_color|red}}}}}}|{{{percentage3|{{{part1_percentage3|}}}}}}}}}} {{#if:{{{choice4|{{{part1_choice4|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice4|{{{part1_choice4|}}}}}}|{{{choice4_color|{{{part1_choice4_color|orange}}}}}}|{{{percentage4|{{{part1_percentage4|}}}}}}}}}} {{#if:{{{choice5|{{{part1_choice5|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice5|{{{part1_choice5|}}}}}}|{{{choice5_color|{{{part1_choice5_color|teal}}}}}}|{{{percentage5|{{{part1_percentage5|}}}}}}}}}} | caption = {{{results_caption|{{{results1_caption|{{{part1_caption|}}}}}}}}} }}|}} | header10 = {{{part2_subject|}}} | data11 = {{#if:{{{part2_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|#47729E}}}|{{{part2_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice2|}}}|{{{part2_choice2_color| #8B8B54}}}|{{{part2_percentage2|}}}}} {{#if:{{{part2_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice3|}}}|{{{part2_choice3_color|red}}}|{{{part2_percentage3|}}}}}}} {{#if:{{{part2_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice4|}}}|{{{part2_choice4_color|orange}}}|{{{part2_percentage4|}}}}}}} {{#if:{{{part2_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice5|}}}|{{{part2_choice5_color|teal}}}|{{{part2_percentage5|}}}}}}} | caption = {{{results2_caption|{{{part2_caption|}}}}}} }}|}} | header12 = {{{part3_subject|}}} | data13 = {{#if:{{{part3_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color| #47729E}}}|{{{part3_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice2|}}}|{{{part3_choice2_color|#8B8B54}}}|{{{part3_percentage2|}}}}} {{#if:{{{part3_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice3|}}}|{{{part3_choice3_color|red}}}|{{{part3_percentage3|}}}}}}} {{#if:{{{part3_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice4|}}}|{{{part3_choice4_color|orange}}}|{{{part3_percentage4|}}}}}}} {{#if:{{{part3_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice5|}}}|{{{part3_choice5_color|teal}}}|{{{part3_percentage5|}}}}}}} | caption = {{{results3_caption|{{{part3_caption|}}}}}} }}|}} | header14 = {{{part4_subject|}}} | data15 = {{#if:{{{part4_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color| #47729E}}}|{{{part4_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice2|}}}|{{{part4_choice2_color| #8B8B54}}}|{{{part4_percentage2|}}}}} {{#if:{{{part4_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice3|}}}|{{{part4_choice3_color|red}}}|{{{part4_percentage3|}}}}}}} {{#if:{{{part4_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice4|}}}|{{{part4_choice4_color|orange}}}|{{{part4_percentage4|}}}}}}} {{#if:{{{part4_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice5|}}}|{{{part4_choice5_color|teal}}}|{{{part4_percentage5|}}}}}}} | caption = {{{results4_caption|{{{part4_caption|}}}}}} }}|}} | header16 = {{{part5_subject|}}} | data17 = {{#if:{{{part5_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice1|}}}|{{{part5_choice1_color| #47729E}}}|{{{part5_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice2|}}}|{{{part5_choice2_color| #8B8B54}}}|{{{part5_percentage2|}}}}} {{#if:{{{part5_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice3|}}}|{{{part5_choice3_color|red}}}|{{{part5_percentage3|}}}}}}} {{#if:{{{part5_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice4|}}}|{{{part5_choice4_color|orange}}}|{{{part5_percentage4|}}}}}}} {{#if:{{{part5_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice5|}}}|{{{part5_choice5_color|teal}}}|{{{part5_percentage5|}}}}}}} | caption = {{{results5_caption|{{{part5_caption|}}}}}} }}|}} | data18 = {{#if:{{{map|}}}|{{If mobile||<hr>}}}} | header19 = {{#if:{{{map_heading|}}}|{{{map_heading|}}}}} | data20 = {{#if:{{{map|}}}|{{#if:{{{map|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=300px|alt={{{map_alt|}}}}} |{{{map}}} }}<div>{{#if:{{{mapcaption|{{{map_caption|}}}}}}|{{{mapcaption|{{{map_caption|}}}}}}|Results by {{#if:{{{mapdivision|{{{map_division|}}}}}}|{{{mapdivision|{{{map_division|}}}}}}|county}}}}</div> }} | data21 = {{#if:{{{map2|}}}|{{If mobile||<hr>}}}} | header22 = {{#if:{{{map_heading2|}}}|{{{map_heading2|}}}}} | data23 = {{#if:{{{map2|}}}|{{#if:{{{map2|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map2|}}}|size={{{map_size2|}}}|sizedefault=260px|alt={{{map_alt2|}}}}} |{{{map2}}} }}<div>{{#if:{{{mapcaption2|{{{map_caption2|}}}}}}|{{{mapcaption2|{{{map_caption2|}}}}}}|Results by {{#if:{{{mapdivision2|{{{map_division2|}}}}}}|{{{mapdivision2|{{{map_division2|}}}}}}|county}}}}</div> }} | data24 = {{#if:{{{map3|}}}|{{If mobile||<hr>}}}} | header25 = {{#if:{{{map_heading3|}}}|{{{map_heading3|}}}}} | data26 = {{#if:{{{map3|}}}|{{#if:{{{map3|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map3|}}}|size={{{map_size3|}}}|sizedefault=260px|alt={{{map_alt3|}}}}} |{{{map3}}} }}<div>{{#if:{{{mapcaption3|{{{map_caption3|}}}}}}|{{{mapcaption3|{{{map_caption3|}}}}}}|Results by {{#if:{{{mapdivision3|{{{map_division3|}}}}}}|{{{mapdivision3|{{{map_division3|}}}}}}|county}}}}</div> }} | data27 = {{#if:{{{map4|}}}|{{If mobile||<hr>}}}} | header28 = {{#if:{{{map_heading4|}}}|{{{map_heading4|}}}}} | data29 = {{#if:{{{map4|}}}|{{#if:{{{map4|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map4|}}}|size={{{map_size4|}}}|sizedefault=260px|alt={{{map_alt4|}}}}} |{{{map4}}} }}<div>{{#if:{{{mapcaption4|{{{map_caption4|}}}}}}|{{{mapcaption4|{{{map_caption4|}}}}}}|Results by {{#if:{{{mapdivision4|{{{map_division4|}}}}}}|{{{mapdivision4|{{{map_division4|}}}}}}|county}}}}</div> }} | data30 = {{{module|}}} | belowstyle = text-align:left; background:#fafafa; color:inherit; border-top: #aaa 1px solid; padding:0.2em; | below = {{#if:{{{notes|}}}|{{{notes}}}}} }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox referendum with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox referendum]] with unknown parameter "_VALUE_"|ignoreblank=y| barwidth | blank | blanktype | caption | child | choice1 | choice1_color | choice2 | choice2_color | choice3 | choice3_color | choice4 | choice4_color | choice5 | choice5_color | country | date | declared | electorate | embed | flag_image | flag_year | image | image_alt | image_width | invalid | last_update | map | map_alt | map_alt2 | map_alt3 | map_alt4 | map_caption | map_caption2 | map_caption3 | map_caption4 | map_division | map_division2 | map_division3 | map_division4 | map_heading | map_heading2 | map_heading3 | map_heading4 | map_size | map_size2 | map_size3 | map_size4 | map2 | map3 | map4 | mapcaption | mapcaption2 | mapcaption3 | mapcaption4 | mapdivision | mapdivision2 | mapdivision3 | mapdivision4 | module | name | next_referendum | next_year | no | no_text | notes | other | othertype | outcome | part1_caption | part1_subject | part2_caption | part2_subject | part3_caption | part3_subject | part4_caption | part4_subject | part5_caption | part5_subject | part1_choice1 | part1_choice1_color | part1_choice2 | part1_choice2_color | part1_choice3 | part1_choice3_color | part1_choice4 | part1_choice4_color | part1_choice5 | part1_choice5_color | part1_percentage1 | part1_percentage2 | part1_percentage3 | part1_percentage4 | part1_percentage5 | part2_choice1 | part2_choice1_color | part2_choice2 | part2_choice2_color | part2_choice3 | part2_choice3_color | part2_choice4 | part2_choice4_color | part2_choice5 | part2_choice5_color | part2_percentage1 | part2_percentage2 | part2_percentage3 | part2_percentage4 | part2_percentage5 | part3_choice1 | part3_choice1_color | part3_choice2 | part3_choice2_color | part3_choice3 | part3_choice3_color | part3_choice4 | part3_choice4_color | part3_choice5 | part3_choice5_color | part3_percentage1 | part3_percentage2 | part3_percentage3 | part3_percentage4 | part3_percentage5 | part4_choice1 | part4_choice1_color | part4_choice2 | part4_choice2_color | part4_choice3 | part4_choice3_color | part4_choice4 | part4_choice4_color | part4_choice5 | part4_choice5_color | part4_percentage1 | part4_percentage2 | part4_percentage3 | part4_percentage4 | part4_percentage5 | part5_choice1 | part5_choice1_color | part5_choice2 | part5_choice2_color | part5_choice3 | part5_choice3_color | part5_choice4 | part5_choice4_color | part5_choice5 | part5_choice5_color | part5_percentage1 | part5_percentage2 | part5_percentage3 | part5_percentage4 | part5_percentage5 | percentage1 | percentage2 | percentage3 | percentage4 | percentage5 | previous_referendum | previous_year | question | reporting | results_caption | results1_caption | results2_caption | results3_caption | results4_caption | results5_caption | time_zone | title | total | totalref | turnoutpct | voter_registration | votes_counted | voting_system | website | width | yes | yes_text }}</includeonly><noinclude> {{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> t4ftcb2njxilmqdkakcw8ltw51279up 1975542 1975535 2026-08-15T21:22:45Z Bjarki S 9 1975542 wikitext text/x-wiki <includeonly> {{infobox | child = {{{child|{{{embed|}}}}}} | templatestyles = Þjóðaratkvæðagreiðsla/styles.css | bodystyle = width:24em | headerstyle = background:#efefef; color:inherit; | title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{name|}}}|<div style="background-color:#ddd; color:inherit; font-size:120%; font-weight:bold">{{{name}}}</div>}}|{{{name|{{PAGENAME}}}}}}} | subheader1 = {{#if:{{{flag_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}} |{{#if:{{{country|}}} |{{flag decoration|{{{country}}}|variant={{{flag_year|}}}|size=50px|noredlink={{main other||yes}}}} }} }} | subheader2 = {{#if:{{{previous_year|}}}{{{date|}}}{{{next_year|}}}| {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%; | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_referendum|}}}|[[{{{previous_referendum}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}} | center = {{#if:{{{date|}}}|'''{{{date}}}'''}} | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_referendum|}}}|[[{{{next_referendum}}}|{{{next_year}}}]]|{{{next_year}}}}}}} }} }} | subheader3 = {{#if:{{{title|{{{question|}}}}}}|{{box|{{{title|{{{question|}}}}}}|color=var( --background-color-neutral-subtle, #f8f9fa )|border color=var( --border-color-base, #A2A9B1 )|text color=inherit|border size=2px|width=calc(100% - 16px)|max-width=24em}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | imagestyle = border-bottom: 1px solid #A2A9B1 | label1 = Voting system | data1 = {{{voting_system|}}} | label3 = {{#if:{{{votes_counted|}}}|Votes&nbsp;counted|{{#if:{{{reporting|}}}|Reporting|{{#if:{{{declared|}}}|Declared}}}}}} | data3 = {{#if:{{{votes_counted|}}}{{{reporting|}}}{{{declared|}}}|{{center|{{Percentage bar|{{#if:{{{votes_counted|}}}|{{{votes_counted}}}|{{#if:{{{reporting|}}}|{{{reporting}}}|{{#if:{{{declared|}}}|{{{declared}}}}}}}}}|c=#1BCE0E}}}}}} {{#if:{{{last_update|}}}|as of '''{{{last_update}}} {{#if:{{{time_zone|}}}|{{{time_zone}}}}}'''}} |label4 = Outcome |data4 = {{{outcome|}}} |label5 = Website |data5 = {{{website|}}} |header6 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|Results}} | data7 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }} }} | header8 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Results|}}}}} | data9 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color| #47729E}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice2|{{{part1_choice2|}}}}}}|{{{choice2_color|{{{part1_choice2_color| #8B8B54}}}}}}|{{{percentage2|{{{part1_percentage2|}}}}}}}} {{#if:{{{choice3|{{{part1_choice3|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice3|{{{part1_choice3|}}}}}}|{{{choice3_color|{{{part1_choice3_color|red}}}}}}|{{{percentage3|{{{part1_percentage3|}}}}}}}}}} {{#if:{{{choice4|{{{part1_choice4|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice4|{{{part1_choice4|}}}}}}|{{{choice4_color|{{{part1_choice4_color|orange}}}}}}|{{{percentage4|{{{part1_percentage4|}}}}}}}}}} {{#if:{{{choice5|{{{part1_choice5|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice5|{{{part1_choice5|}}}}}}|{{{choice5_color|{{{part1_choice5_color|teal}}}}}}|{{{percentage5|{{{part1_percentage5|}}}}}}}}}} | caption = {{{results_caption|{{{results1_caption|{{{part1_caption|}}}}}}}}} }}|}} | header10 = {{{part2_subject|}}} | data11 = {{#if:{{{part2_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|#47729E}}}|{{{part2_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice2|}}}|{{{part2_choice2_color| #8B8B54}}}|{{{part2_percentage2|}}}}} {{#if:{{{part2_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice3|}}}|{{{part2_choice3_color|red}}}|{{{part2_percentage3|}}}}}}} {{#if:{{{part2_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice4|}}}|{{{part2_choice4_color|orange}}}|{{{part2_percentage4|}}}}}}} {{#if:{{{part2_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice5|}}}|{{{part2_choice5_color|teal}}}|{{{part2_percentage5|}}}}}}} | caption = {{{results2_caption|{{{part2_caption|}}}}}} }}|}} | header12 = {{{part3_subject|}}} | data13 = {{#if:{{{part3_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color| #47729E}}}|{{{part3_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice2|}}}|{{{part3_choice2_color|#8B8B54}}}|{{{part3_percentage2|}}}}} {{#if:{{{part3_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice3|}}}|{{{part3_choice3_color|red}}}|{{{part3_percentage3|}}}}}}} {{#if:{{{part3_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice4|}}}|{{{part3_choice4_color|orange}}}|{{{part3_percentage4|}}}}}}} {{#if:{{{part3_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice5|}}}|{{{part3_choice5_color|teal}}}|{{{part3_percentage5|}}}}}}} | caption = {{{results3_caption|{{{part3_caption|}}}}}} }}|}} | header14 = {{{part4_subject|}}} | data15 = {{#if:{{{part4_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color| #47729E}}}|{{{part4_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice2|}}}|{{{part4_choice2_color| #8B8B54}}}|{{{part4_percentage2|}}}}} {{#if:{{{part4_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice3|}}}|{{{part4_choice3_color|red}}}|{{{part4_percentage3|}}}}}}} {{#if:{{{part4_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice4|}}}|{{{part4_choice4_color|orange}}}|{{{part4_percentage4|}}}}}}} {{#if:{{{part4_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice5|}}}|{{{part4_choice5_color|teal}}}|{{{part4_percentage5|}}}}}}} | caption = {{{results4_caption|{{{part4_caption|}}}}}} }}|}} | header16 = {{{part5_subject|}}} | data17 = {{#if:{{{part5_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice1|}}}|{{{part5_choice1_color| #47729E}}}|{{{part5_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice2|}}}|{{{part5_choice2_color| #8B8B54}}}|{{{part5_percentage2|}}}}} {{#if:{{{part5_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice3|}}}|{{{part5_choice3_color|red}}}|{{{part5_percentage3|}}}}}}} {{#if:{{{part5_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice4|}}}|{{{part5_choice4_color|orange}}}|{{{part5_percentage4|}}}}}}} {{#if:{{{part5_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice5|}}}|{{{part5_choice5_color|teal}}}|{{{part5_percentage5|}}}}}}} | caption = {{{results5_caption|{{{part5_caption|}}}}}} }}|}} | data18 = {{#if:{{{map|}}}|{{If mobile||<hr>}}}} | header19 = {{#if:{{{map_heading|}}}|{{{map_heading|}}}}} | data20 = {{#if:{{{map|}}}|{{#if:{{{map|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=300px|alt={{{map_alt|}}}}} |{{{map}}} }}<div>{{#if:{{{mapcaption|{{{map_caption|}}}}}}|{{{mapcaption|{{{map_caption|}}}}}}|Results by {{#if:{{{mapdivision|{{{map_division|}}}}}}|{{{mapdivision|{{{map_division|}}}}}}|county}}}}</div> }} | data21 = {{#if:{{{map2|}}}|{{If mobile||<hr>}}}} | header22 = {{#if:{{{map_heading2|}}}|{{{map_heading2|}}}}} | data23 = {{#if:{{{map2|}}}|{{#if:{{{map2|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map2|}}}|size={{{map_size2|}}}|sizedefault=260px|alt={{{map_alt2|}}}}} |{{{map2}}} }}<div>{{#if:{{{mapcaption2|{{{map_caption2|}}}}}}|{{{mapcaption2|{{{map_caption2|}}}}}}|Results by {{#if:{{{mapdivision2|{{{map_division2|}}}}}}|{{{mapdivision2|{{{map_division2|}}}}}}|county}}}}</div> }} | data24 = {{#if:{{{map3|}}}|{{If mobile||<hr>}}}} | header25 = {{#if:{{{map_heading3|}}}|{{{map_heading3|}}}}} | data26 = {{#if:{{{map3|}}}|{{#if:{{{map3|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map3|}}}|size={{{map_size3|}}}|sizedefault=260px|alt={{{map_alt3|}}}}} |{{{map3}}} }}<div>{{#if:{{{mapcaption3|{{{map_caption3|}}}}}}|{{{mapcaption3|{{{map_caption3|}}}}}}|Results by {{#if:{{{mapdivision3|{{{map_division3|}}}}}}|{{{mapdivision3|{{{map_division3|}}}}}}|county}}}}</div> }} | data27 = {{#if:{{{map4|}}}|{{If mobile||<hr>}}}} | header28 = {{#if:{{{map_heading4|}}}|{{{map_heading4|}}}}} | data29 = {{#if:{{{map4|}}}|{{#if:{{{map4|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map4|}}}|size={{{map_size4|}}}|sizedefault=260px|alt={{{map_alt4|}}}}} |{{{map4}}} }}<div>{{#if:{{{mapcaption4|{{{map_caption4|}}}}}}|{{{mapcaption4|{{{map_caption4|}}}}}}|Results by {{#if:{{{mapdivision4|{{{map_division4|}}}}}}|{{{mapdivision4|{{{map_division4|}}}}}}|county}}}}</div> }} | data30 = {{{module|}}} | belowstyle = text-align:left; background:#fafafa; color:inherit; border-top: #aaa 1px solid; padding:0.2em; | below = {{#if:{{{notes|}}}|{{{notes}}}}} }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox referendum with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox referendum]] with unknown parameter "_VALUE_"|ignoreblank=y| barwidth | blank | blanktype | caption | child | choice1 | choice1_color | choice2 | choice2_color | choice3 | choice3_color | choice4 | choice4_color | choice5 | choice5_color | country | date | declared | electorate | embed | flag_image | flag_year | image | image_alt | image_width | invalid | last_update | map | map_alt | map_alt2 | map_alt3 | map_alt4 | map_caption | map_caption2 | map_caption3 | map_caption4 | map_division | map_division2 | map_division3 | map_division4 | map_heading | map_heading2 | map_heading3 | map_heading4 | map_size | map_size2 | map_size3 | map_size4 | map2 | map3 | map4 | mapcaption | mapcaption2 | mapcaption3 | mapcaption4 | mapdivision | mapdivision2 | mapdivision3 | mapdivision4 | module | name | next_referendum | next_year | no | no_text | notes | other | othertype | outcome | part1_caption | part1_subject | part2_caption | part2_subject | part3_caption | part3_subject | part4_caption | part4_subject | part5_caption | part5_subject | part1_choice1 | part1_choice1_color | part1_choice2 | part1_choice2_color | part1_choice3 | part1_choice3_color | part1_choice4 | part1_choice4_color | part1_choice5 | part1_choice5_color | part1_percentage1 | part1_percentage2 | part1_percentage3 | part1_percentage4 | part1_percentage5 | part2_choice1 | part2_choice1_color | part2_choice2 | part2_choice2_color | part2_choice3 | part2_choice3_color | part2_choice4 | part2_choice4_color | part2_choice5 | part2_choice5_color | part2_percentage1 | part2_percentage2 | part2_percentage3 | part2_percentage4 | part2_percentage5 | part3_choice1 | part3_choice1_color | part3_choice2 | part3_choice2_color | part3_choice3 | part3_choice3_color | part3_choice4 | part3_choice4_color | part3_choice5 | part3_choice5_color | part3_percentage1 | part3_percentage2 | part3_percentage3 | part3_percentage4 | part3_percentage5 | part4_choice1 | part4_choice1_color | part4_choice2 | part4_choice2_color | part4_choice3 | part4_choice3_color | part4_choice4 | part4_choice4_color | part4_choice5 | part4_choice5_color | part4_percentage1 | part4_percentage2 | part4_percentage3 | part4_percentage4 | part4_percentage5 | part5_choice1 | part5_choice1_color | part5_choice2 | part5_choice2_color | part5_choice3 | part5_choice3_color | part5_choice4 | part5_choice4_color | part5_choice5 | part5_choice5_color | part5_percentage1 | part5_percentage2 | part5_percentage3 | part5_percentage4 | part5_percentage5 | percentage1 | percentage2 | percentage3 | percentage4 | percentage5 | previous_referendum | previous_year | question | reporting | results_caption | results1_caption | results2_caption | results3_caption | results4_caption | results5_caption | time_zone | title | total | totalref | turnoutpct | voter_registration | votes_counted | voting_system | website | width | yes | yes_text }}</includeonly><noinclude> {{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> rposaauwv4dxpx9qlhvmwxacdfwffv2 1975545 1975542 2026-08-15T21:39:33Z Bjarki S 9 1975545 wikitext text/x-wiki <includeonly> {{infobox | child = {{{child|{{{embed|}}}}}} | templatestyles = Þjóðaratkvæðagreiðsla/styles.css | bodystyle = width:24em | headerstyle = background:#efefef; color:inherit; | title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{name|}}}|<div style="background-color:#ddd; color:inherit; font-size:120%; font-weight:bold">{{{name}}}</div>}}|{{{name|{{PAGENAME}}}}}}} | subheader1 = {{#if:{{{country|}}}|{{#ifexist:Template:Country data {{{country}}}|{{flagicon|{{{country}}}|variant={{{flag_year|}}}|size=50px}}<hr />|<span class="ib-legis-elect-error">Unknown: {{{country}}}</span> }} }} | subheader2 = {{#if:{{{previous_year|}}}{{{date|}}}{{{next_year|}}}| {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%; | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_referendum|}}}|[[{{{previous_referendum}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}} | center = {{#if:{{{date|}}}|'''{{{date}}}'''}} | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_referendum|}}}|[[{{{next_referendum}}}|{{{next_year}}}]]|{{{next_year}}}}}}} }} }} | subheader3 = {{#if:{{{title|{{{question|}}}}}}|{{box|{{{title|{{{question|}}}}}}|color=var( --background-color-neutral-subtle, #f8f9fa )|border color=var( --border-color-base, #A2A9B1 )|text color=inherit|border size=2px|width=calc(100% - 16px)|max-width=24em}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | imagestyle = border-bottom: 1px solid #A2A9B1 | label1 = Voting system | data1 = {{{voting_system|}}} | label3 = {{#if:{{{votes_counted|}}}|Votes&nbsp;counted|{{#if:{{{reporting|}}}|Reporting|{{#if:{{{declared|}}}|Declared}}}}}} | data3 = {{#if:{{{votes_counted|}}}{{{reporting|}}}{{{declared|}}}|{{center|{{Percentage bar|{{#if:{{{votes_counted|}}}|{{{votes_counted}}}|{{#if:{{{reporting|}}}|{{{reporting}}}|{{#if:{{{declared|}}}|{{{declared}}}}}}}}}|c=#1BCE0E}}}}}} {{#if:{{{last_update|}}}|as of '''{{{last_update}}} {{#if:{{{time_zone|}}}|{{{time_zone}}}}}'''}} |label4 = Outcome |data4 = {{{outcome|}}} |label5 = Website |data5 = {{{website|}}} |header6 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|Results}} | data7 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }} }} | header8 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Results|}}}}} | data9 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color| #47729E}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice2|{{{part1_choice2|}}}}}}|{{{choice2_color|{{{part1_choice2_color| #8B8B54}}}}}}|{{{percentage2|{{{part1_percentage2|}}}}}}}} {{#if:{{{choice3|{{{part1_choice3|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice3|{{{part1_choice3|}}}}}}|{{{choice3_color|{{{part1_choice3_color|red}}}}}}|{{{percentage3|{{{part1_percentage3|}}}}}}}}}} {{#if:{{{choice4|{{{part1_choice4|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice4|{{{part1_choice4|}}}}}}|{{{choice4_color|{{{part1_choice4_color|orange}}}}}}|{{{percentage4|{{{part1_percentage4|}}}}}}}}}} {{#if:{{{choice5|{{{part1_choice5|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice5|{{{part1_choice5|}}}}}}|{{{choice5_color|{{{part1_choice5_color|teal}}}}}}|{{{percentage5|{{{part1_percentage5|}}}}}}}}}} | caption = {{{results_caption|{{{results1_caption|{{{part1_caption|}}}}}}}}} }}|}} | header10 = {{{part2_subject|}}} | data11 = {{#if:{{{part2_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|#47729E}}}|{{{part2_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice2|}}}|{{{part2_choice2_color| #8B8B54}}}|{{{part2_percentage2|}}}}} {{#if:{{{part2_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice3|}}}|{{{part2_choice3_color|red}}}|{{{part2_percentage3|}}}}}}} {{#if:{{{part2_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice4|}}}|{{{part2_choice4_color|orange}}}|{{{part2_percentage4|}}}}}}} {{#if:{{{part2_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice5|}}}|{{{part2_choice5_color|teal}}}|{{{part2_percentage5|}}}}}}} | caption = {{{results2_caption|{{{part2_caption|}}}}}} }}|}} | header12 = {{{part3_subject|}}} | data13 = {{#if:{{{part3_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color| #47729E}}}|{{{part3_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice2|}}}|{{{part3_choice2_color|#8B8B54}}}|{{{part3_percentage2|}}}}} {{#if:{{{part3_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice3|}}}|{{{part3_choice3_color|red}}}|{{{part3_percentage3|}}}}}}} {{#if:{{{part3_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice4|}}}|{{{part3_choice4_color|orange}}}|{{{part3_percentage4|}}}}}}} {{#if:{{{part3_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice5|}}}|{{{part3_choice5_color|teal}}}|{{{part3_percentage5|}}}}}}} | caption = {{{results3_caption|{{{part3_caption|}}}}}} }}|}} | header14 = {{{part4_subject|}}} | data15 = {{#if:{{{part4_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color| #47729E}}}|{{{part4_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice2|}}}|{{{part4_choice2_color| #8B8B54}}}|{{{part4_percentage2|}}}}} {{#if:{{{part4_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice3|}}}|{{{part4_choice3_color|red}}}|{{{part4_percentage3|}}}}}}} {{#if:{{{part4_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice4|}}}|{{{part4_choice4_color|orange}}}|{{{part4_percentage4|}}}}}}} {{#if:{{{part4_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice5|}}}|{{{part4_choice5_color|teal}}}|{{{part4_percentage5|}}}}}}} | caption = {{{results4_caption|{{{part4_caption|}}}}}} }}|}} | header16 = {{{part5_subject|}}} | data17 = {{#if:{{{part5_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice1|}}}|{{{part5_choice1_color| #47729E}}}|{{{part5_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice2|}}}|{{{part5_choice2_color| #8B8B54}}}|{{{part5_percentage2|}}}}} {{#if:{{{part5_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice3|}}}|{{{part5_choice3_color|red}}}|{{{part5_percentage3|}}}}}}} {{#if:{{{part5_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice4|}}}|{{{part5_choice4_color|orange}}}|{{{part5_percentage4|}}}}}}} {{#if:{{{part5_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice5|}}}|{{{part5_choice5_color|teal}}}|{{{part5_percentage5|}}}}}}} | caption = {{{results5_caption|{{{part5_caption|}}}}}} }}|}} | data18 = {{#if:{{{map|}}}|{{If mobile||<hr>}}}} | header19 = {{#if:{{{map_heading|}}}|{{{map_heading|}}}}} | data20 = {{#if:{{{map|}}}|{{#if:{{{map|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=300px|alt={{{map_alt|}}}}} |{{{map}}} }}<div>{{#if:{{{mapcaption|{{{map_caption|}}}}}}|{{{mapcaption|{{{map_caption|}}}}}}|Results by {{#if:{{{mapdivision|{{{map_division|}}}}}}|{{{mapdivision|{{{map_division|}}}}}}|county}}}}</div> }} | data21 = {{#if:{{{map2|}}}|{{If mobile||<hr>}}}} | header22 = {{#if:{{{map_heading2|}}}|{{{map_heading2|}}}}} | data23 = {{#if:{{{map2|}}}|{{#if:{{{map2|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map2|}}}|size={{{map_size2|}}}|sizedefault=260px|alt={{{map_alt2|}}}}} |{{{map2}}} }}<div>{{#if:{{{mapcaption2|{{{map_caption2|}}}}}}|{{{mapcaption2|{{{map_caption2|}}}}}}|Results by {{#if:{{{mapdivision2|{{{map_division2|}}}}}}|{{{mapdivision2|{{{map_division2|}}}}}}|county}}}}</div> }} | data24 = {{#if:{{{map3|}}}|{{If mobile||<hr>}}}} | header25 = {{#if:{{{map_heading3|}}}|{{{map_heading3|}}}}} | data26 = {{#if:{{{map3|}}}|{{#if:{{{map3|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map3|}}}|size={{{map_size3|}}}|sizedefault=260px|alt={{{map_alt3|}}}}} |{{{map3}}} }}<div>{{#if:{{{mapcaption3|{{{map_caption3|}}}}}}|{{{mapcaption3|{{{map_caption3|}}}}}}|Results by {{#if:{{{mapdivision3|{{{map_division3|}}}}}}|{{{mapdivision3|{{{map_division3|}}}}}}|county}}}}</div> }} | data27 = {{#if:{{{map4|}}}|{{If mobile||<hr>}}}} | header28 = {{#if:{{{map_heading4|}}}|{{{map_heading4|}}}}} | data29 = {{#if:{{{map4|}}}|{{#if:{{{map4|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map4|}}}|size={{{map_size4|}}}|sizedefault=260px|alt={{{map_alt4|}}}}} |{{{map4}}} }}<div>{{#if:{{{mapcaption4|{{{map_caption4|}}}}}}|{{{mapcaption4|{{{map_caption4|}}}}}}|Results by {{#if:{{{mapdivision4|{{{map_division4|}}}}}}|{{{mapdivision4|{{{map_division4|}}}}}}|county}}}}</div> }} | data30 = {{{module|}}} | belowstyle = text-align:left; background:#fafafa; color:inherit; border-top: #aaa 1px solid; padding:0.2em; | below = {{#if:{{{notes|}}}|{{{notes}}}}} }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox referendum with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox referendum]] with unknown parameter "_VALUE_"|ignoreblank=y| barwidth | blank | blanktype | caption | child | choice1 | choice1_color | choice2 | choice2_color | choice3 | choice3_color | choice4 | choice4_color | choice5 | choice5_color | country | date | declared | electorate | embed | flag_image | flag_year | image | image_alt | image_width | invalid | last_update | map | map_alt | map_alt2 | map_alt3 | map_alt4 | map_caption | map_caption2 | map_caption3 | map_caption4 | map_division | map_division2 | map_division3 | map_division4 | map_heading | map_heading2 | map_heading3 | map_heading4 | map_size | map_size2 | map_size3 | map_size4 | map2 | map3 | map4 | mapcaption | mapcaption2 | mapcaption3 | mapcaption4 | mapdivision | mapdivision2 | mapdivision3 | mapdivision4 | module | name | next_referendum | next_year | no | no_text | notes | other | othertype | outcome | part1_caption | part1_subject | part2_caption | part2_subject | part3_caption | part3_subject | part4_caption | part4_subject | part5_caption | part5_subject | part1_choice1 | part1_choice1_color | part1_choice2 | part1_choice2_color | part1_choice3 | part1_choice3_color | part1_choice4 | part1_choice4_color | part1_choice5 | part1_choice5_color | part1_percentage1 | part1_percentage2 | part1_percentage3 | part1_percentage4 | part1_percentage5 | part2_choice1 | part2_choice1_color | part2_choice2 | part2_choice2_color | part2_choice3 | part2_choice3_color | part2_choice4 | part2_choice4_color | part2_choice5 | part2_choice5_color | part2_percentage1 | part2_percentage2 | part2_percentage3 | part2_percentage4 | part2_percentage5 | part3_choice1 | part3_choice1_color | part3_choice2 | part3_choice2_color | part3_choice3 | part3_choice3_color | part3_choice4 | part3_choice4_color | part3_choice5 | part3_choice5_color | part3_percentage1 | part3_percentage2 | part3_percentage3 | part3_percentage4 | part3_percentage5 | part4_choice1 | part4_choice1_color | part4_choice2 | part4_choice2_color | part4_choice3 | part4_choice3_color | part4_choice4 | part4_choice4_color | part4_choice5 | part4_choice5_color | part4_percentage1 | part4_percentage2 | part4_percentage3 | part4_percentage4 | part4_percentage5 | part5_choice1 | part5_choice1_color | part5_choice2 | part5_choice2_color | part5_choice3 | part5_choice3_color | part5_choice4 | part5_choice4_color | part5_choice5 | part5_choice5_color | part5_percentage1 | part5_percentage2 | part5_percentage3 | part5_percentage4 | part5_percentage5 | percentage1 | percentage2 | percentage3 | percentage4 | percentage5 | previous_referendum | previous_year | question | reporting | results_caption | results1_caption | results2_caption | results3_caption | results4_caption | results5_caption | time_zone | title | total | totalref | turnoutpct | voter_registration | votes_counted | voting_system | website | width | yes | yes_text }}</includeonly><noinclude> {{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> 1xa8ob2fjg0b0r6flzx4fdwla07p34i 1975546 1975545 2026-08-15T21:57:09Z Bjarki S 9 1975546 wikitext text/x-wiki <includeonly> {{infobox | child = {{{child|{{{embed|}}}}}} | templatestyles = Þjóðaratkvæðagreiðsla/styles.css | bodystyle = width:24em | headerstyle = background:#efefef; color:inherit; | title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{name|}}}|<div style="background-color:#ddd; color:inherit; font-size:120%; font-weight:bold">{{{name}}}</div>}}|{{{name|{{PAGENAME}}}}}}} | subheader1 = {{#if:{{{country|}}}|{{#ifexist:Template:Country data {{{country}}}|{{flagicon|{{{country}}}|variant={{{flag_year|}}}|size=50px}}<hr />|<span class="ib-legis-elect-error">Unknown: {{{country}}}</span> }} }} | subheader2 = {{#if:{{{previous_year|}}}{{{date|}}}{{{next_year|}}}| {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%; | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_referendum|}}}|[[{{{previous_referendum}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}} | center = {{#if:{{{date|}}}|'''{{{date}}}'''}} | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_referendum|}}}|[[{{{next_referendum}}}|{{{next_year}}}]]|{{{next_year}}}}}}} }} }} | subheader3 = {{#if:{{{title|{{{question|}}}}}}|{{box|{{{title|{{{question|}}}}}}|color=var( --background-color-neutral-subtle, #f8f9fa )|border color=var( --border-color-base, #A2A9B1 )|text color=inherit|border size=2px|width=calc(100% - 16px)|max-width=24em}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|240px}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | imagestyle = border-bottom: 1px solid #A2A9B1 | label1 = Kosningakerfi | data1 = {{{voting_system|}}} | label3 = {{#if:{{{votes_counted|}}}|Talin&nbsp;atkvæði|{{#if:{{{reporting|}}}|Reporting|{{#if:{{{declared|}}}|Declared}}}}}} | data3 = {{#if:{{{votes_counted|}}}{{{reporting|}}}{{{declared|}}}|{{center|{{Percentage bar|{{#if:{{{votes_counted|}}}|{{{votes_counted}}}|{{#if:{{{reporting|}}}|{{{reporting}}}|{{#if:{{{declared|}}}|{{{declared}}}}}}}}}|c=#1BCE0E}}}}}} {{#if:{{{last_update|}}}|as of '''{{{last_update}}} {{#if:{{{time_zone|}}}|{{{time_zone}}}}}'''}} |label4 = Útkoma |data4 = {{{outcome|}}} |label5 = Vefslóð |data5 = {{{website|}}} |header6 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|Úrslit}} | data7 = {{#if:{{{yes|}}}{{{no|}}}{{{blank|}}}{{{other|}}}{{{total|}}}|{{Infobox referendum/results| yes_text = {{{yes_text|}}}| yes = {{{yes|}}}| no_text = {{{no_text|}}}| no = {{{no|}}}| blanktype = {{{blanktype|}}} |blank = {{{blank|}}}| othertype = {{{othertype|}}} | other = {{{other|}}} | {{#ifeq:{{{invalid|Ø}}}|Ø|Ø|invalid}} = {{{invalid|}}} | total= {{{total|}}}| totalref= {{{totalref|}}} | turnoutpct = {{{turnoutpct|}}}| electorate = {{{electorate|}}}| voter_registration = {{{voter_registration|}}} }} }} | header8 = {{{part1_subject|{{#if:{{{choice1|}}}{{{part1_choice1|}}}|Úrslit|}}}}} | data9 = {{#if:{{{part1_subject|}}}{{{choice1|}}}{{{part1_choice1|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice1|{{{part1_choice1|}}}}}}|{{{choice1_color|{{{part1_choice1_color| #47729E}}}}}}|{{{percentage1|{{{part1_percentage1|}}}}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{choice2|{{{part1_choice2|}}}}}}|{{{choice2_color|{{{part1_choice2_color| #8B8B54}}}}}}|{{{percentage2|{{{part1_percentage2|}}}}}}}} {{#if:{{{choice3|{{{part1_choice3|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice3|{{{part1_choice3|}}}}}}|{{{choice3_color|{{{part1_choice3_color|red}}}}}}|{{{percentage3|{{{part1_percentage3|}}}}}}}}}} {{#if:{{{choice4|{{{part1_choice4|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice4|{{{part1_choice4|}}}}}}|{{{choice4_color|{{{part1_choice4_color|orange}}}}}}|{{{percentage4|{{{part1_percentage4|}}}}}}}}}} {{#if:{{{choice5|{{{part1_choice5|}}}}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{choice5|{{{part1_choice5|}}}}}}|{{{choice5_color|{{{part1_choice5_color|teal}}}}}}|{{{percentage5|{{{part1_percentage5|}}}}}}}}}} | caption = {{{results_caption|{{{results1_caption|{{{part1_caption|}}}}}}}}} }}|}} | header10 = {{{part2_subject|}}} | data11 = {{#if:{{{part2_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice1|}}}|{{{part2_choice1_color|#47729E}}}|{{{part2_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice2|}}}|{{{part2_choice2_color| #8B8B54}}}|{{{part2_percentage2|}}}}} {{#if:{{{part2_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice3|}}}|{{{part2_choice3_color|red}}}|{{{part2_percentage3|}}}}}}} {{#if:{{{part2_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice4|}}}|{{{part2_choice4_color|orange}}}|{{{part2_percentage4|}}}}}}} {{#if:{{{part2_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part2_choice5|}}}|{{{part2_choice5_color|teal}}}|{{{part2_percentage5|}}}}}}} | caption = {{{results2_caption|{{{part2_caption|}}}}}} }}|}} | header12 = {{{part3_subject|}}} | data13 = {{#if:{{{part3_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice1|}}}|{{{part3_choice1_color| #47729E}}}|{{{part3_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice2|}}}|{{{part3_choice2_color|#8B8B54}}}|{{{part3_percentage2|}}}}} {{#if:{{{part3_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice3|}}}|{{{part3_choice3_color|red}}}|{{{part3_percentage3|}}}}}}} {{#if:{{{part3_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice4|}}}|{{{part3_choice4_color|orange}}}|{{{part3_percentage4|}}}}}}} {{#if:{{{part3_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part3_choice5|}}}|{{{part3_choice5_color|teal}}}|{{{part3_percentage5|}}}}}}} | caption = {{{results3_caption|{{{part3_caption|}}}}}} }}|}} | header14 = {{{part4_subject|}}} | data15 = {{#if:{{{part4_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice1|}}}|{{{part4_choice1_color| #47729E}}}|{{{part4_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice2|}}}|{{{part4_choice2_color| #8B8B54}}}|{{{part4_percentage2|}}}}} {{#if:{{{part4_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice3|}}}|{{{part4_choice3_color|red}}}|{{{part4_percentage3|}}}}}}} {{#if:{{{part4_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice4|}}}|{{{part4_choice4_color|orange}}}|{{{part4_percentage4|}}}}}}} {{#if:{{{part4_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part4_choice5|}}}|{{{part4_choice5_color|teal}}}|{{{part4_percentage5|}}}}}}} | caption = {{{results4_caption|{{{part4_caption|}}}}}} }}|}} | header16 = {{{part5_subject|}}} | data17 = {{#if:{{{part5_subject|}}}|{{bar box | border_width = 0 | background-color = transparent; color:inherit; | width = {{{width|300px}}} | barwidth = {{{barwidth|80px}}} | bars= {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice1|}}}|{{{part5_choice1_color| #47729E}}}|{{{part5_percentage1|}}}}} {{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice2|}}}|{{{part5_choice2_color| #8B8B54}}}|{{{part5_percentage2|}}}}} {{#if:{{{part5_choice3|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice3|}}}|{{{part5_choice3_color|red}}}|{{{part5_percentage3|}}}}}}} {{#if:{{{part5_choice4|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice4|}}}|{{{part5_choice4_color|orange}}}|{{{part5_percentage4|}}}}}}} {{#if:{{{part5_choice5|}}}|{{bar percent|barwidth={{{barwidth|180px}}}|{{{part5_choice5|}}}|{{{part5_choice5_color|teal}}}|{{{part5_percentage5|}}}}}}} | caption = {{{results5_caption|{{{part5_caption|}}}}}} }}|}} | data18 = {{#if:{{{map|}}}|{{If mobile||<hr>}}}} | header19 = {{#if:{{{map_heading|}}}|{{{map_heading|}}}}} | data20 = {{#if:{{{map|}}}|{{#if:{{{map|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=300px|alt={{{map_alt|}}}}} |{{{map}}} }}<div>{{#if:{{{mapcaption|{{{map_caption|}}}}}}|{{{mapcaption|{{{map_caption|}}}}}}|Results by {{#if:{{{mapdivision|{{{map_division|}}}}}}|{{{mapdivision|{{{map_division|}}}}}}|county}}}}</div> }} | data21 = {{#if:{{{map2|}}}|{{If mobile||<hr>}}}} | header22 = {{#if:{{{map_heading2|}}}|{{{map_heading2|}}}}} | data23 = {{#if:{{{map2|}}}|{{#if:{{{map2|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map2|}}}|size={{{map_size2|}}}|sizedefault=260px|alt={{{map_alt2|}}}}} |{{{map2}}} }}<div>{{#if:{{{mapcaption2|{{{map_caption2|}}}}}}|{{{mapcaption2|{{{map_caption2|}}}}}}|Results by {{#if:{{{mapdivision2|{{{map_division2|}}}}}}|{{{mapdivision2|{{{map_division2|}}}}}}|county}}}}</div> }} | data24 = {{#if:{{{map3|}}}|{{If mobile||<hr>}}}} | header25 = {{#if:{{{map_heading3|}}}|{{{map_heading3|}}}}} | data26 = {{#if:{{{map3|}}}|{{#if:{{{map3|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map3|}}}|size={{{map_size3|}}}|sizedefault=260px|alt={{{map_alt3|}}}}} |{{{map3}}} }}<div>{{#if:{{{mapcaption3|{{{map_caption3|}}}}}}|{{{mapcaption3|{{{map_caption3|}}}}}}|Results by {{#if:{{{mapdivision3|{{{map_division3|}}}}}}|{{{mapdivision3|{{{map_division3|}}}}}}|county}}}}</div> }} | data27 = {{#if:{{{map4|}}}|{{If mobile||<hr>}}}} | header28 = {{#if:{{{map_heading4|}}}|{{{map_heading4|}}}}} | data29 = {{#if:{{{map4|}}}|{{#if:{{{map4|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map4|}}}|size={{{map_size4|}}}|sizedefault=260px|alt={{{map_alt4|}}}}} |{{{map4}}} }}<div>{{#if:{{{mapcaption4|{{{map_caption4|}}}}}}|{{{mapcaption4|{{{map_caption4|}}}}}}|Results by {{#if:{{{mapdivision4|{{{map_division4|}}}}}}|{{{mapdivision4|{{{map_division4|}}}}}}|county}}}}</div> }} | data30 = {{{module|}}} | belowstyle = text-align:left; background:#fafafa; color:inherit; border-top: #aaa 1px solid; padding:0.2em; | below = {{#if:{{{notes|}}}|{{{notes}}}}} }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox referendum with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox referendum]] with unknown parameter "_VALUE_"|ignoreblank=y| barwidth | blank | blanktype | caption | child | choice1 | choice1_color | choice2 | choice2_color | choice3 | choice3_color | choice4 | choice4_color | choice5 | choice5_color | country | date | declared | electorate | embed | flag_image | flag_year | image | image_alt | image_width | invalid | last_update | map | map_alt | map_alt2 | map_alt3 | map_alt4 | map_caption | map_caption2 | map_caption3 | map_caption4 | map_division | map_division2 | map_division3 | map_division4 | map_heading | map_heading2 | map_heading3 | map_heading4 | map_size | map_size2 | map_size3 | map_size4 | map2 | map3 | map4 | mapcaption | mapcaption2 | mapcaption3 | mapcaption4 | mapdivision | mapdivision2 | mapdivision3 | mapdivision4 | module | name | next_referendum | next_year | no | no_text | notes | other | othertype | outcome | part1_caption | part1_subject | part2_caption | part2_subject | part3_caption | part3_subject | part4_caption | part4_subject | part5_caption | part5_subject | part1_choice1 | part1_choice1_color | part1_choice2 | part1_choice2_color | part1_choice3 | part1_choice3_color | part1_choice4 | part1_choice4_color | part1_choice5 | part1_choice5_color | part1_percentage1 | part1_percentage2 | part1_percentage3 | part1_percentage4 | part1_percentage5 | part2_choice1 | part2_choice1_color | part2_choice2 | part2_choice2_color | part2_choice3 | part2_choice3_color | part2_choice4 | part2_choice4_color | part2_choice5 | part2_choice5_color | part2_percentage1 | part2_percentage2 | part2_percentage3 | part2_percentage4 | part2_percentage5 | part3_choice1 | part3_choice1_color | part3_choice2 | part3_choice2_color | part3_choice3 | part3_choice3_color | part3_choice4 | part3_choice4_color | part3_choice5 | part3_choice5_color | part3_percentage1 | part3_percentage2 | part3_percentage3 | part3_percentage4 | part3_percentage5 | part4_choice1 | part4_choice1_color | part4_choice2 | part4_choice2_color | part4_choice3 | part4_choice3_color | part4_choice4 | part4_choice4_color | part4_choice5 | part4_choice5_color | part4_percentage1 | part4_percentage2 | part4_percentage3 | part4_percentage4 | part4_percentage5 | part5_choice1 | part5_choice1_color | part5_choice2 | part5_choice2_color | part5_choice3 | part5_choice3_color | part5_choice4 | part5_choice4_color | part5_choice5 | part5_choice5_color | part5_percentage1 | part5_percentage2 | part5_percentage3 | part5_percentage4 | part5_percentage5 | percentage1 | percentage2 | percentage3 | percentage4 | percentage5 | previous_referendum | previous_year | question | reporting | results_caption | results1_caption | results2_caption | results3_caption | results4_caption | results5_caption | time_zone | title | total | totalref | turnoutpct | voter_registration | votes_counted | voting_system | website | width | yes | yes_text }}</includeonly><noinclude> {{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> sov4wgws0wge6s94dcz3sa9spdwxf4v Snið:Box 10 192430 1975445 2026-06-26T04:46:34Z en>Zackmann08 0 Fixing for functionality in dark mode per edit request 1975445 wikitext text/x-wiki <includeonly>{{#ifeq:{{{align|}}}|center|<div class="center" style="width:auto; margin-left:auto; margin-right:auto;>}}{{#if:{{{span|}}}|<span style="|<div style="}}<!-- -->display:{{{box type|{{#if:{{{wide|}}}|block|{{#if:{{{inline|}}}|inline|inline-block}}}}}}};<!-- -->border-style: {{{style|solid}}};<!-- -->padding: {{{padding|{{#if:{{{inline|}}}|1px|3px}}}}};<!-- -->{{#if:{{{top padding|}}}|padding-top: {{{top padding|}}};}}<!-- -->{{#if:{{{bottom padding|}}}|padding-botton: {{{bottom padding|}}};}}<!-- -->{{#if:{{{left padding|}}}|padding-left: {{{left padding|}}};}}<!-- -->{{#if:{{{right padding|}}}|padding-right: {{{right padding|}}};}}<!-- -->border-color: {{{border color|{{#switch:{{{type}}}|black=black|white=white|transparent=transparent||#default=var(--border-color-emphasized, #000000)}}}}};<!-- -->border-width: {{{border size|{{#switch:{{{type}}}|black|white|transparent=0px|#default=2px}}}}};<!-- -->background-color: {{{color|{{{background|{{#switch:{{{type}}}|black=black|white=white|transparent=transparent|#default=var(--color-inverted, #ffffff)}}}}}}}};<!-- -->color: {{{text color|{{#switch:{{{type}}}|black=white|white=black|transparent|#default=var(--color-base, #000000)}}}}};<!-- -->{{#if:{{{text align|}}}|text-align: {{{text align|}}};}}<!-- -->{{#if:{{{spacing|}}}|letter-spacing: {{{spacing|}}};}}<!-- -->{{#if:{{{font|}}}|font-family: {{{font|}}};}}<!-- -->{{#if:{{{font size|{{{text size|}}}}}}|font-size: {{{font size|{{{text size|}}}}}};}}<!-- -->margin: {{{margin|3px}}};<!-- -->{{#if:{{{top margin|}}}|margin-top: {{{top margin|}}};}}<!-- -->{{#if:{{{bottom margin|}}}|margin-botton: {{{bottom margin|}}};}}<!-- -->{{#if:{{{left margin|}}}|margin-left: {{{left margin|}}};}}<!-- -->{{#if:{{{right margin|}}}|margin-right: {{{right margin|}}};}}<!-- -->{{#if:{{{height|}}}|height: {{{height|}}};}}<!-- -->{{#if:{{{min-height|}}}|min-height: {{{min-height|}}};}}<!-- -->{{#if:{{{max-height|}}}|max-height: {{{max-height|}}};}}<!-- -->{{#if:{{{width|}}}|width: {{{width|}}};}}<!-- -->{{#if:{{{min-width|}}}|min-width: {{{min-width|}}};}}<!-- -->{{#if:{{{max-width|}}}|max-width: {{{max-width|}}};}}<!-- -->{{#if:{{{align|}}}|float: {{{align|}}};}}<!-- -->{{#if:{{{radius|}}}|border-radius:{{{radius|}}};}}<!-- -->{{#if:{{{shadow|}}}|box-shadow: 0.1em 0.1em 0.5em rgba(0,0,0,0.75);}}<!-- -->{{{CSS|}}}" {{#if:{{{class|}}}|class="{{{class}}}"}}><!-- -->{{#ifeq:{{{header|}}}|||<u>'''{{{header}}}'''</u><br>}}{{#ifeq:{{NAMESPACE}}|Template|{{{1|Sample Text}}}|{{{1|}}}}}{{#if:{{{span|}}}|</span>|</div>}}{{#ifeq:{{{align|}}}|center|</div>}}<!-- -->{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using box with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | align | background | border color | border size | bottom margin | bottom padding | box type | color | CSS | class | font | font size | header | height | min-height | max-height | inline | left margin | left padding | margin | padding | radius | right margin | right padding | shadow | spacing | span | style | text align | text color | text size | top margin | top padding | type | wide | width | min-width | max-width}}</includeonly><noinclude> <!--categories and Template Data in the documentation please-->{{documentation}} </noinclude> 1bxx13ejskcz5s2xabfiej3ged2ewpz 1975446 1975445 2026-08-15T16:50:49Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Box]] 1975445 wikitext text/x-wiki <includeonly>{{#ifeq:{{{align|}}}|center|<div class="center" style="width:auto; margin-left:auto; margin-right:auto;>}}{{#if:{{{span|}}}|<span style="|<div style="}}<!-- -->display:{{{box type|{{#if:{{{wide|}}}|block|{{#if:{{{inline|}}}|inline|inline-block}}}}}}};<!-- -->border-style: {{{style|solid}}};<!-- -->padding: {{{padding|{{#if:{{{inline|}}}|1px|3px}}}}};<!-- -->{{#if:{{{top padding|}}}|padding-top: {{{top padding|}}};}}<!-- -->{{#if:{{{bottom padding|}}}|padding-botton: {{{bottom padding|}}};}}<!-- -->{{#if:{{{left padding|}}}|padding-left: {{{left padding|}}};}}<!-- -->{{#if:{{{right padding|}}}|padding-right: {{{right padding|}}};}}<!-- -->border-color: {{{border color|{{#switch:{{{type}}}|black=black|white=white|transparent=transparent||#default=var(--border-color-emphasized, #000000)}}}}};<!-- -->border-width: {{{border size|{{#switch:{{{type}}}|black|white|transparent=0px|#default=2px}}}}};<!-- -->background-color: {{{color|{{{background|{{#switch:{{{type}}}|black=black|white=white|transparent=transparent|#default=var(--color-inverted, #ffffff)}}}}}}}};<!-- -->color: {{{text color|{{#switch:{{{type}}}|black=white|white=black|transparent|#default=var(--color-base, #000000)}}}}};<!-- -->{{#if:{{{text align|}}}|text-align: {{{text align|}}};}}<!-- -->{{#if:{{{spacing|}}}|letter-spacing: {{{spacing|}}};}}<!-- -->{{#if:{{{font|}}}|font-family: {{{font|}}};}}<!-- -->{{#if:{{{font size|{{{text size|}}}}}}|font-size: {{{font size|{{{text size|}}}}}};}}<!-- -->margin: {{{margin|3px}}};<!-- -->{{#if:{{{top margin|}}}|margin-top: {{{top margin|}}};}}<!-- -->{{#if:{{{bottom margin|}}}|margin-botton: {{{bottom margin|}}};}}<!-- -->{{#if:{{{left margin|}}}|margin-left: {{{left margin|}}};}}<!-- -->{{#if:{{{right margin|}}}|margin-right: {{{right margin|}}};}}<!-- -->{{#if:{{{height|}}}|height: {{{height|}}};}}<!-- -->{{#if:{{{min-height|}}}|min-height: {{{min-height|}}};}}<!-- -->{{#if:{{{max-height|}}}|max-height: {{{max-height|}}};}}<!-- -->{{#if:{{{width|}}}|width: {{{width|}}};}}<!-- -->{{#if:{{{min-width|}}}|min-width: {{{min-width|}}};}}<!-- -->{{#if:{{{max-width|}}}|max-width: {{{max-width|}}};}}<!-- -->{{#if:{{{align|}}}|float: {{{align|}}};}}<!-- -->{{#if:{{{radius|}}}|border-radius:{{{radius|}}};}}<!-- -->{{#if:{{{shadow|}}}|box-shadow: 0.1em 0.1em 0.5em rgba(0,0,0,0.75);}}<!-- -->{{{CSS|}}}" {{#if:{{{class|}}}|class="{{{class}}}"}}><!-- -->{{#ifeq:{{{header|}}}|||<u>'''{{{header}}}'''</u><br>}}{{#ifeq:{{NAMESPACE}}|Template|{{{1|Sample Text}}}|{{{1|}}}}}{{#if:{{{span|}}}|</span>|</div>}}{{#ifeq:{{{align|}}}|center|</div>}}<!-- -->{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using box with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | align | background | border color | border size | bottom margin | bottom padding | box type | color | CSS | class | font | font size | header | height | min-height | max-height | inline | left margin | left padding | margin | padding | radius | right margin | right padding | shadow | spacing | span | style | text align | text color | text size | top margin | top padding | type | wide | width | min-width | max-width}}</includeonly><noinclude> <!--categories and Template Data in the documentation please-->{{documentation}} </noinclude> 1bxx13ejskcz5s2xabfiej3ged2ewpz Snið:Þjóðaratkvæðagreiðsla/results 10 192435 1975473 2026-06-22T22:55:09Z en>Nosferattus 0 Removing bolding behavior for now per talk page. Needs a threshold system to prevent improper bolding. 1975473 wikitext text/x-wiki {| class="wikitable" style="margin:0 auto;" |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{yes|}}} | ! style="width: 50%; {{!}} {{left|Choice}} ! scope="col" style="width: 25%" {{!}} Votes ! scope="col" style="width: 25%" {{!}} % {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{yes_text|}}}|{{{yes_text}}}|[[File:Check-71-128-204-brightblue.svg |14px|link=|alt=]] Yes}} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{formatnum: {{formatnum:{{{yes}}}|R}} }} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{percentage| {{formatnum:{{{yes}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{no_text|}}}|{{{no_text}}}| [[File:Light brown x.svg |14px|link=|alt=]] No}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{no}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{no}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{#if:{{{blank|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{blanktype|}}}|{{{blanktype}}}|Blank votes}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{blank}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{blank}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- {{#if:{{{other|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{othertype|}}}|{{{othertype}}}|Other}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{other}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{other}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{total|}}}{{{invalid|}}} | {{#if:{{{invalid|Ø}}}| {{!}} style="text-align: left" {{!}} Valid votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | pad = {{{pct_prec|2}}} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} Invalid {{#ifeq:{{{othertype|}}}|Blank votes| |{{#if:{{{blank|}}}| |or blank}} }} votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}}|R}} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{{pct_prec|2}}} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} '''Total votes'''{{{totalref|}}} {{!}} style="text-align: right;" {{!}} '''{{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}} }}''' {{!}} style="text-align: right;" {{!}} '''100.00%''' }}| {{!}}- {{!}} colspan="3" {{unk|Result not yet known}} }} |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{both|{{{electorate|}}}|{{{total|}}}{{{invalid|}}}}}{{{turnoutpct|}}} | {{!}} style="text-align: left" {{!}} {{nowrap|{{#ifeq:{{{voter_registration|}}}|no|Eligible to vote|Registered voters}}/turnout}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{electorate}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{#if:{{{turnoutpct|}}}|{{{turnoutpct}}}%|{{percentage| {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{formatnum:{{{electorate}}}|R}} | 2 }}}} }} |}<noinclude> {{documentation}} </noinclude> 5n1w3t7ht3yfh0r33zrt5bpddc90yxw 1975474 1975473 2026-08-15T16:50:50Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Infobox_referendum/results]] 1975473 wikitext text/x-wiki {| class="wikitable" style="margin:0 auto;" |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{yes|}}} | ! style="width: 50%; {{!}} {{left|Choice}} ! scope="col" style="width: 25%" {{!}} Votes ! scope="col" style="width: 25%" {{!}} % {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{yes_text|}}}|{{{yes_text}}}|[[File:Check-71-128-204-brightblue.svg |14px|link=|alt=]] Yes}} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{formatnum: {{formatnum:{{{yes}}}|R}} }} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{percentage| {{formatnum:{{{yes}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{no_text|}}}|{{{no_text}}}| [[File:Light brown x.svg |14px|link=|alt=]] No}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{no}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{no}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{#if:{{{blank|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{blanktype|}}}|{{{blanktype}}}|Blank votes}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{blank}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{blank}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- {{#if:{{{other|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{othertype|}}}|{{{othertype}}}|Other}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{other}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{other}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{total|}}}{{{invalid|}}} | {{#if:{{{invalid|Ø}}}| {{!}} style="text-align: left" {{!}} Valid votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | pad = {{{pct_prec|2}}} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} Invalid {{#ifeq:{{{othertype|}}}|Blank votes| |{{#if:{{{blank|}}}| |or blank}} }} votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}}|R}} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{{pct_prec|2}}} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} '''Total votes'''{{{totalref|}}} {{!}} style="text-align: right;" {{!}} '''{{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}} }}''' {{!}} style="text-align: right;" {{!}} '''100.00%''' }}| {{!}}- {{!}} colspan="3" {{unk|Result not yet known}} }} |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{both|{{{electorate|}}}|{{{total|}}}{{{invalid|}}}}}{{{turnoutpct|}}} | {{!}} style="text-align: left" {{!}} {{nowrap|{{#ifeq:{{{voter_registration|}}}|no|Eligible to vote|Registered voters}}/turnout}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{electorate}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{#if:{{{turnoutpct|}}}|{{{turnoutpct}}}%|{{percentage| {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{formatnum:{{{electorate}}}|R}} | 2 }}}} }} |}<noinclude> {{documentation}} </noinclude> 5n1w3t7ht3yfh0r33zrt5bpddc90yxw 1975539 1975474 2026-08-15T21:17:20Z Bjarki S 9 Bjarki S færði [[Snið:Infobox referendum/results]] á [[Snið:Þjóðaratkvæðagreiðsla/results]] 1975473 wikitext text/x-wiki {| class="wikitable" style="margin:0 auto;" |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{yes|}}} | ! style="width: 50%; {{!}} {{left|Choice}} ! scope="col" style="width: 25%" {{!}} Votes ! scope="col" style="width: 25%" {{!}} % {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{yes_text|}}}|{{{yes_text}}}|[[File:Check-71-128-204-brightblue.svg |14px|link=|alt=]] Yes}} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{formatnum: {{formatnum:{{{yes}}}|R}} }} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{percentage| {{formatnum:{{{yes}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{no_text|}}}|{{{no_text}}}| [[File:Light brown x.svg |14px|link=|alt=]] No}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{no}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{no}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{#if:{{{blank|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{blanktype|}}}|{{{blanktype}}}|Blank votes}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{blank}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{blank}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- {{#if:{{{other|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{othertype|}}}|{{{othertype}}}|Other}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{other}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{other}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{total|}}}{{{invalid|}}} | {{#if:{{{invalid|Ø}}}| {{!}} style="text-align: left" {{!}} Valid votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | pad = {{{pct_prec|2}}} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} Invalid {{#ifeq:{{{othertype|}}}|Blank votes| |{{#if:{{{blank|}}}| |or blank}} }} votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}}|R}} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{{pct_prec|2}}} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} '''Total votes'''{{{totalref|}}} {{!}} style="text-align: right;" {{!}} '''{{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}} }}''' {{!}} style="text-align: right;" {{!}} '''100.00%''' }}| {{!}}- {{!}} colspan="3" {{unk|Result not yet known}} }} |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{both|{{{electorate|}}}|{{{total|}}}{{{invalid|}}}}}{{{turnoutpct|}}} | {{!}} style="text-align: left" {{!}} {{nowrap|{{#ifeq:{{{voter_registration|}}}|no|Eligible to vote|Registered voters}}/turnout}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{electorate}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{#if:{{{turnoutpct|}}}|{{{turnoutpct}}}%|{{percentage| {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{formatnum:{{{electorate}}}|R}} | 2 }}}} }} |}<noinclude> {{documentation}} </noinclude> 5n1w3t7ht3yfh0r33zrt5bpddc90yxw 1975547 1975539 2026-08-15T22:00:43Z Bjarki S 9 1975547 wikitext text/x-wiki {| class="wikitable" style="margin:0 auto;" |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{yes|}}} | ! style="width: 50%; {{!}} {{left|Choice}} ! scope="col" style="width: 25%" {{!}} Votes ! scope="col" style="width: 25%" {{!}} % {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{yes_text|}}}|{{{yes_text}}}|[[File:Check-71-128-204-brightblue.svg |14px|link=|alt=]] Já}} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{formatnum: {{formatnum:{{{yes}}}|R}} }} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{percentage| {{formatnum:{{{yes}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{no_text|}}}|{{{no_text}}}| [[File:Light brown x.svg |14px|link=|alt=]] Nei}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{no}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{no}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{#if:{{{blank|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{blanktype|}}}|{{{blanktype}}}|Auð atkvæði}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{blank}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{blank}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- {{#if:{{{other|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{othertype|}}}|{{{othertype}}}|Annað}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{other}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{other}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{total|}}}{{{invalid|}}} | {{#if:{{{invalid|Ø}}}| {{!}} style="text-align: left" {{!}} Gild atkvæði {{!}} style="text-align: right;" {{!}} {{formatnum: {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | pad = {{{pct_prec|2}}} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} Invalid {{#ifeq:{{{othertype|}}}|Auð atkvæði| |{{#if:{{{blank|}}}| |eða auð}} }} votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}}|R}} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{{pct_prec|2}}} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} '''Greidd atkvæði'''{{{totalref|}}} {{!}} style="text-align: right;" {{!}} '''{{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}} }}''' {{!}} style="text-align: right;" {{!}} '''100.00%''' }}| {{!}}- {{!}} colspan="3" {{unk|Result not yet known}} }} |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{both|{{{electorate|}}}|{{{total|}}}{{{invalid|}}}}}{{{turnoutpct|}}} | {{!}} style="text-align: left" {{!}} {{nowrap|{{#ifeq:{{{voter_registration|}}}|no|Eligible to vote|Kjósendur á kjörskrá}}/turnout}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{electorate}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{#if:{{{turnoutpct|}}}|{{{turnoutpct}}}%|{{percentage| {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{formatnum:{{{electorate}}}|R}} | 2 }}}} }} |}<noinclude> {{documentation}} </noinclude> s4rfijtsf66uvel33h98zp6uvh4pakn 1975548 1975547 2026-08-15T22:04:24Z Bjarki S 9 1975548 wikitext text/x-wiki {| class="wikitable" style="margin:0 auto;" |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{yes|}}} | ! style="width: 50%; {{!}} {{left|Valkostur}} ! scope="col" style="width: 25%" {{!}} Atkvæði ! scope="col" style="width: 25%" {{!}} % {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{yes_text|}}}|{{{yes_text}}}|[[File:Check-71-128-204-brightblue.svg |14px|link=|alt=]] Já}} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{formatnum: {{formatnum:{{{yes}}}|R}} }} {{!}} style="text-align: right;margin-right: 0.5em" {{!}} {{percentage| {{formatnum:{{{yes}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{!}} style="text-align: left;" {{!}} {{#if:{{{no_text|}}}|{{{no_text}}}| [[File:Light brown x.svg |14px|link=|alt=]] Nei}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{no}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{no}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} {{!}}- {{#if:{{{blank|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{blanktype|}}}|{{{blanktype}}}|Auð atkvæði}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{blank}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{blank}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- {{#if:{{{other|}}}| {{!}} style="text-align: left;" {{!}} {{#if:{{{othertype|}}}|{{{othertype}}}|Annað}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum:{{{other}}}|R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{other}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{{total|}}}{{{invalid|}}} | {{#if:{{{invalid|Ø}}}| {{!}} style="text-align: left" {{!}} Gild atkvæði {{!}} style="text-align: right;" {{!}} {{formatnum: {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | pad = {{{pct_prec|2}}} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} Invalid {{#ifeq:{{{othertype|}}}|Auð atkvæði| |{{#if:{{{blank|}}}| |eða auð}} }} votes {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{percentage| {{formatnum:{{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}}|R}} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{{pct_prec|2}}} | pad = {{{pct_prec|2}}} }} }} {{!}}- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{!}} style="text-align: left" {{!}} '''Greidd atkvæði'''{{{totalref|}}} {{!}} style="text-align: right;" {{!}} '''{{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}} }}''' {{!}} style="text-align: right;" {{!}} '''100.00%''' }}| {{!}}- {{!}} colspan="3" {{unk|Result not yet known}} }} |- style="background-color: var( --background-color-neutral, #eaecf0 ); color: var( --color-base, #202122 )" {{#if: {{both|{{{electorate|}}}|{{{total|}}}{{{invalid|}}}}}{{{turnoutpct|}}} | {{!}} style="text-align: left" {{!}} {{nowrap|{{#ifeq:{{{voter_registration|}}}|no|Eligible to vote|Kjósendur á kjörskrá}}/turnout}} {{!}} style="text-align: right;" {{!}} {{formatnum: {{formatnum: {{{electorate}}} |R}} }} {{!}} style="text-align: right;" {{!}} {{#if:{{{turnoutpct|}}}|{{{turnoutpct}}}%|{{percentage| {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{formatnum:{{{electorate}}}|R}} | 2 }}}} }} |}<noinclude> {{documentation}} </noinclude> irfv37kpziglsud3qv67fv9co64vbtr Snið:Þjóðaratkvæðagreiðsla/doc 10 192440 1975487 2026-06-22T21:45:50Z en>Zackmann08 0 /* See also */ 1975487 wikitext text/x-wiki {{Documentation subpage}} {{Auto short description}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} {{Uses TemplateStyles|Template:Infobox referendum/styles.css}} == Basic usage == {{Parameter names example | name = {{{name}}} | country = Country | flag_year = | flag_image = | date = {{Start date|2000|01|01}} <!-- Details --> | question = {{{question}}} | image = | image_width = | image_alt = | caption = | voting_system = {{{voting_system}}} | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = {{{outcome}}} | website = {{{website}}} <!-- Results table --> | yes_text = {{{yes_text}}} | yes = 1 | no_text = {{{no_text}}} | no = 1 | blanktype = {{{blanktype}}} | blank = 1 | othertype = {{{othertype}}} | other = 1 | invalid = 1 | total = {{{total}}} | totalref = {{{totalref}}} | electorate = {{{electorate}}} | voter_registration = {{{voter_registration}}} | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = {{{map_division}}} | map_caption = {{{map_caption}}} | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = {{{notes}}} }} This template is meant to work for referendums with [[polar question]]s as well as non-polar questions. This template can handle up to four subjects. Please note the following: * All numbers must be specified as plain numbers, without additional comments or references, or else the template will display improperly. The template uses the [[mw:Help:Magic word|magic word]] <code><nowiki>{{formatnum}}</nowiki></code> to insert commas for display. * All percentages are calculated by the template, as well as the number of valid votes, invalid and blank votes, and voter turnout. Therefore, it is not necessary to find or have this data. * The template figures out by itself whether the majority of voters approved or rejected the referendum based on the data it is fed. Therefore, it is not necessary to specify this. Furthermore, this cannot be overridden. The order the <code>yes</code> and <code>no</code> parameters are listed in does not affect which is displayed first. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = | country = | flag_year = | flag_image = | date = <!-- {{Start date|YYYY|MM|DD}} or {{Date_range|YYYY|MM|DD|YYYY|MM|DD}} --> <!-- Details --> | question = <!-- or | title = --> | image = | image_width = | image_alt = | caption = | voting_system = | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = | website = <!-- use {{URL}} --> <!-- Results table --> | yes_text = | yes = | no_text = | no = | blanktype = | blank = | othertype = | other = | invalid = | total = | totalref = | electorate = | voter_registration = | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = <!-- name of the political subdivisions shown in the map, defaults to "county" --> | map_caption = <!-- overrides the default caption --> | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = <!-- e.g. Source: [URL] --> }} </syntaxhighlight> == Examples == Below are examples of single-choice polar questions, as well as a non-polar example with multiple options. === Before an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} Use the model code below before an election for a referendum is held. [[Oregon Ballot Measure 56 (2008)]] is used as an example to the right. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} </syntaxhighlight> Keep in mind that, though the parameters <code>yes</code>, <code>no</code>, <code>total</code>, <code>electorate</code>, and <code>mapdivision</code> are blank, they ''should not'' be deleted. This makes it inconvenient to add data later. {{clear}} === During the election === Once election day arrives, the image can be changed to '''File:Oregon election results-PENDING.svg'''. After the polls have closed and start announcing returns, start putting the data into the template, updating as often as reasonable. Use the <code>notes</code> parameter to cite the source of the election-night returns. {{clear right}} === After an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} The following code produces the table to the right: <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} </syntaxhighlight> The parameters <code>yes</code>, <code>no</code>, <code>total</code>, and <code>electorate</code> take only values '''without commas'''. The template automatically formats the numbers when displayed by inserting commas. {{clear}} ===Multichoice referendums=== {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | image = | caption = The results in the United Kingdom by constituency | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 }} <syntaxhighlight lang="wikitext" style="overflow: auto"><nowiki> {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 {{clear}} </nowiki></syntaxhighlight> == Parameters == ;name :The name of the referendum, such as ''Measure 56'' or ''Proposition 1A''. ;question {{nobold|or}} title :The official ballot question or title. ;location :The administrative division (or country for a nationwide vote) where the referendum was held. ;date :When the referendum was held. ;yes :The number of votes approving the referendum. ;no :The number of votes rejecting the referendum. ;total :The total number of votes cast in the election. :(''This includes all counted votes as well as invalid or blank votes.'') ;electorate :The number of people eligible to vote in the election (in some countries this means the number of people ''registered'' to vote). :(''This includes people who did not cast a vote on the referendum.'') ;voter registration : Whether voter registration determines the number of eligible voters. If no, the term "eligible to vote" is used for the electorate parameter. Else, the term "registered voters" will be used. ;map :The map of election results. ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;map2 :A supplementary map for election results, like population density ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;outcome :Outcome of the election (e.g. Not passed due to insufficient turnout). ;notes :Any notes, such as the source of the data. === Additional parameters === ;other :The total number of valid votes which were not yes or no (e.g., informal votes) ;othertype :Label to use for the "other votes" statistics, where those are part of the valid votes (e.g., Informal votes or Blank votes). If "Blank votes" is used here, the text "Invalid or blank votes" is also changed to "Invalid votes" ;invalid :The total number of invalid votes. This may be used as an alternative to <code>total</code>, in which case the total number of votes is computed as the sum of <code>yes</code>, <code>no</code>, and <code>invalid</code>. If both <code>invalid</code> and <code>total</code> are specified, the <code>total</code> parameter will be used for computing the total number of votes. :To suppress the inclusion of invalid votes, specify <code>invalid</code>, but leave the value blank ;totalref :A citation for the total number of votes ;turnoutpct :The percentage of the electorate who voted in the referendum. Note that this is automatically computed from the value of <code>electorate</code> and the total number of votes, if <code>electorate</code> is specified. ;mapcaption :Use this parameter to override the default legend caption used for the map. == Region-specific information == === United States === ==== California ==== The [[California Secretary of State]]'s [https://www.sos.ca.gov/elections website] prominently displays results for the latest election. Results are also available as far back as June 1990 on [https://www.sos.ca.gov/elections/prior-elections another page] at the website. Before 2000, results are listed in a single document, both the ''statement of vote'' (which is brief) and the ''supplement to the statement of vote'' (which is highly detailed). Starting in 2000, results are organized into a table of contents. ==== Oregon ==== The [[Oregon Secretary of State]]'s [https://sos.oregon.gov/voting-elections/Pages/default.aspx website] maintains an online record of detailed election results going back to {{#formatdate:1995-12-05}}. Results by county for each ballot measure since then are included. Statistics on voter registration (fitting the <code>electorate</code> parameter) and participation/turnout (the <code>total</code> parameter) is available alongside the official results for each election. Basic data (i.e., without results by county) on all ballot measures in Oregon history can also be found in the [https://sos.oregon.gov/blue-book/Pages/state/elections/history.aspx online edition] of the ''[[Oregon Blue Book]]''. Voter registration information going back to 1950 is also provided. The following images can be used in place of an election results map when none can be made: <gallery> File:Oregon election results-ELECTION NOT YET.svg|The election has not been held yet File:Oregon election results-PENDING.svg|The votes are being counted File:Oregon election results-DATA MISSING.svg|The needed data has not been found </gallery> {{clear}} == Tracking category == {{Infobox tracking cats}} ==See also== * {{tl2|bar_box}} <includeonly>{{Sandbox other|| [[Category:Election and referendum infobox templates|referendum]] }}</includeonly> 5dajcts42t3enpgrjwlu2ccp00a7mcu 1975488 1975487 2026-08-15T16:50:51Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Infobox_referendum/doc]] 1975487 wikitext text/x-wiki {{Documentation subpage}} {{Auto short description}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} {{Uses TemplateStyles|Template:Infobox referendum/styles.css}} == Basic usage == {{Parameter names example | name = {{{name}}} | country = Country | flag_year = | flag_image = | date = {{Start date|2000|01|01}} <!-- Details --> | question = {{{question}}} | image = | image_width = | image_alt = | caption = | voting_system = {{{voting_system}}} | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = {{{outcome}}} | website = {{{website}}} <!-- Results table --> | yes_text = {{{yes_text}}} | yes = 1 | no_text = {{{no_text}}} | no = 1 | blanktype = {{{blanktype}}} | blank = 1 | othertype = {{{othertype}}} | other = 1 | invalid = 1 | total = {{{total}}} | totalref = {{{totalref}}} | electorate = {{{electorate}}} | voter_registration = {{{voter_registration}}} | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = {{{map_division}}} | map_caption = {{{map_caption}}} | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = {{{notes}}} }} This template is meant to work for referendums with [[polar question]]s as well as non-polar questions. This template can handle up to four subjects. Please note the following: * All numbers must be specified as plain numbers, without additional comments or references, or else the template will display improperly. The template uses the [[mw:Help:Magic word|magic word]] <code><nowiki>{{formatnum}}</nowiki></code> to insert commas for display. * All percentages are calculated by the template, as well as the number of valid votes, invalid and blank votes, and voter turnout. Therefore, it is not necessary to find or have this data. * The template figures out by itself whether the majority of voters approved or rejected the referendum based on the data it is fed. Therefore, it is not necessary to specify this. Furthermore, this cannot be overridden. The order the <code>yes</code> and <code>no</code> parameters are listed in does not affect which is displayed first. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = | country = | flag_year = | flag_image = | date = <!-- {{Start date|YYYY|MM|DD}} or {{Date_range|YYYY|MM|DD|YYYY|MM|DD}} --> <!-- Details --> | question = <!-- or | title = --> | image = | image_width = | image_alt = | caption = | voting_system = | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = | website = <!-- use {{URL}} --> <!-- Results table --> | yes_text = | yes = | no_text = | no = | blanktype = | blank = | othertype = | other = | invalid = | total = | totalref = | electorate = | voter_registration = | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = <!-- name of the political subdivisions shown in the map, defaults to "county" --> | map_caption = <!-- overrides the default caption --> | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = <!-- e.g. Source: [URL] --> }} </syntaxhighlight> == Examples == Below are examples of single-choice polar questions, as well as a non-polar example with multiple options. === Before an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} Use the model code below before an election for a referendum is held. [[Oregon Ballot Measure 56 (2008)]] is used as an example to the right. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} </syntaxhighlight> Keep in mind that, though the parameters <code>yes</code>, <code>no</code>, <code>total</code>, <code>electorate</code>, and <code>mapdivision</code> are blank, they ''should not'' be deleted. This makes it inconvenient to add data later. {{clear}} === During the election === Once election day arrives, the image can be changed to '''File:Oregon election results-PENDING.svg'''. After the polls have closed and start announcing returns, start putting the data into the template, updating as often as reasonable. Use the <code>notes</code> parameter to cite the source of the election-night returns. {{clear right}} === After an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} The following code produces the table to the right: <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} </syntaxhighlight> The parameters <code>yes</code>, <code>no</code>, <code>total</code>, and <code>electorate</code> take only values '''without commas'''. The template automatically formats the numbers when displayed by inserting commas. {{clear}} ===Multichoice referendums=== {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | image = | caption = The results in the United Kingdom by constituency | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 }} <syntaxhighlight lang="wikitext" style="overflow: auto"><nowiki> {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 {{clear}} </nowiki></syntaxhighlight> == Parameters == ;name :The name of the referendum, such as ''Measure 56'' or ''Proposition 1A''. ;question {{nobold|or}} title :The official ballot question or title. ;location :The administrative division (or country for a nationwide vote) where the referendum was held. ;date :When the referendum was held. ;yes :The number of votes approving the referendum. ;no :The number of votes rejecting the referendum. ;total :The total number of votes cast in the election. :(''This includes all counted votes as well as invalid or blank votes.'') ;electorate :The number of people eligible to vote in the election (in some countries this means the number of people ''registered'' to vote). :(''This includes people who did not cast a vote on the referendum.'') ;voter registration : Whether voter registration determines the number of eligible voters. If no, the term "eligible to vote" is used for the electorate parameter. Else, the term "registered voters" will be used. ;map :The map of election results. ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;map2 :A supplementary map for election results, like population density ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;outcome :Outcome of the election (e.g. Not passed due to insufficient turnout). ;notes :Any notes, such as the source of the data. === Additional parameters === ;other :The total number of valid votes which were not yes or no (e.g., informal votes) ;othertype :Label to use for the "other votes" statistics, where those are part of the valid votes (e.g., Informal votes or Blank votes). If "Blank votes" is used here, the text "Invalid or blank votes" is also changed to "Invalid votes" ;invalid :The total number of invalid votes. This may be used as an alternative to <code>total</code>, in which case the total number of votes is computed as the sum of <code>yes</code>, <code>no</code>, and <code>invalid</code>. If both <code>invalid</code> and <code>total</code> are specified, the <code>total</code> parameter will be used for computing the total number of votes. :To suppress the inclusion of invalid votes, specify <code>invalid</code>, but leave the value blank ;totalref :A citation for the total number of votes ;turnoutpct :The percentage of the electorate who voted in the referendum. Note that this is automatically computed from the value of <code>electorate</code> and the total number of votes, if <code>electorate</code> is specified. ;mapcaption :Use this parameter to override the default legend caption used for the map. == Region-specific information == === United States === ==== California ==== The [[California Secretary of State]]'s [https://www.sos.ca.gov/elections website] prominently displays results for the latest election. Results are also available as far back as June 1990 on [https://www.sos.ca.gov/elections/prior-elections another page] at the website. Before 2000, results are listed in a single document, both the ''statement of vote'' (which is brief) and the ''supplement to the statement of vote'' (which is highly detailed). Starting in 2000, results are organized into a table of contents. ==== Oregon ==== The [[Oregon Secretary of State]]'s [https://sos.oregon.gov/voting-elections/Pages/default.aspx website] maintains an online record of detailed election results going back to {{#formatdate:1995-12-05}}. Results by county for each ballot measure since then are included. Statistics on voter registration (fitting the <code>electorate</code> parameter) and participation/turnout (the <code>total</code> parameter) is available alongside the official results for each election. Basic data (i.e., without results by county) on all ballot measures in Oregon history can also be found in the [https://sos.oregon.gov/blue-book/Pages/state/elections/history.aspx online edition] of the ''[[Oregon Blue Book]]''. Voter registration information going back to 1950 is also provided. The following images can be used in place of an election results map when none can be made: <gallery> File:Oregon election results-ELECTION NOT YET.svg|The election has not been held yet File:Oregon election results-PENDING.svg|The votes are being counted File:Oregon election results-DATA MISSING.svg|The needed data has not been found </gallery> {{clear}} == Tracking category == {{Infobox tracking cats}} ==See also== * {{tl2|bar_box}} <includeonly>{{Sandbox other|| [[Category:Election and referendum infobox templates|referendum]] }}</includeonly> 5dajcts42t3enpgrjwlu2ccp00a7mcu 1975537 1975488 2026-08-15T21:17:20Z Bjarki S 9 Bjarki S færði [[Snið:Infobox referendum/doc]] á [[Snið:Þjóðaratkvæðagreiðsla/doc]] 1975487 wikitext text/x-wiki {{Documentation subpage}} {{Auto short description}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} {{Uses TemplateStyles|Template:Infobox referendum/styles.css}} == Basic usage == {{Parameter names example | name = {{{name}}} | country = Country | flag_year = | flag_image = | date = {{Start date|2000|01|01}} <!-- Details --> | question = {{{question}}} | image = | image_width = | image_alt = | caption = | voting_system = {{{voting_system}}} | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = {{{outcome}}} | website = {{{website}}} <!-- Results table --> | yes_text = {{{yes_text}}} | yes = 1 | no_text = {{{no_text}}} | no = 1 | blanktype = {{{blanktype}}} | blank = 1 | othertype = {{{othertype}}} | other = 1 | invalid = 1 | total = {{{total}}} | totalref = {{{totalref}}} | electorate = {{{electorate}}} | voter_registration = {{{voter_registration}}} | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = {{{map_division}}} | map_caption = {{{map_caption}}} | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = {{{notes}}} }} This template is meant to work for referendums with [[polar question]]s as well as non-polar questions. This template can handle up to four subjects. Please note the following: * All numbers must be specified as plain numbers, without additional comments or references, or else the template will display improperly. The template uses the [[mw:Help:Magic word|magic word]] <code><nowiki>{{formatnum}}</nowiki></code> to insert commas for display. * All percentages are calculated by the template, as well as the number of valid votes, invalid and blank votes, and voter turnout. Therefore, it is not necessary to find or have this data. * The template figures out by itself whether the majority of voters approved or rejected the referendum based on the data it is fed. Therefore, it is not necessary to specify this. Furthermore, this cannot be overridden. The order the <code>yes</code> and <code>no</code> parameters are listed in does not affect which is displayed first. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = | country = | flag_year = | flag_image = | date = <!-- {{Start date|YYYY|MM|DD}} or {{Date_range|YYYY|MM|DD|YYYY|MM|DD}} --> <!-- Details --> | question = <!-- or | title = --> | image = | image_width = | image_alt = | caption = | voting_system = | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = | website = <!-- use {{URL}} --> <!-- Results table --> | yes_text = | yes = | no_text = | no = | blanktype = | blank = | othertype = | other = | invalid = | total = | totalref = | electorate = | voter_registration = | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = <!-- name of the political subdivisions shown in the map, defaults to "county" --> | map_caption = <!-- overrides the default caption --> | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = <!-- e.g. Source: [URL] --> }} </syntaxhighlight> == Examples == Below are examples of single-choice polar questions, as well as a non-polar example with multiple options. === Before an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} Use the model code below before an election for a referendum is held. [[Oregon Ballot Measure 56 (2008)]] is used as an example to the right. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} </syntaxhighlight> Keep in mind that, though the parameters <code>yes</code>, <code>no</code>, <code>total</code>, <code>electorate</code>, and <code>mapdivision</code> are blank, they ''should not'' be deleted. This makes it inconvenient to add data later. {{clear}} === During the election === Once election day arrives, the image can be changed to '''File:Oregon election results-PENDING.svg'''. After the polls have closed and start announcing returns, start putting the data into the template, updating as often as reasonable. Use the <code>notes</code> parameter to cite the source of the election-night returns. {{clear right}} === After an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} The following code produces the table to the right: <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} </syntaxhighlight> The parameters <code>yes</code>, <code>no</code>, <code>total</code>, and <code>electorate</code> take only values '''without commas'''. The template automatically formats the numbers when displayed by inserting commas. {{clear}} ===Multichoice referendums=== {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | image = | caption = The results in the United Kingdom by constituency | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 }} <syntaxhighlight lang="wikitext" style="overflow: auto"><nowiki> {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 {{clear}} </nowiki></syntaxhighlight> == Parameters == ;name :The name of the referendum, such as ''Measure 56'' or ''Proposition 1A''. ;question {{nobold|or}} title :The official ballot question or title. ;location :The administrative division (or country for a nationwide vote) where the referendum was held. ;date :When the referendum was held. ;yes :The number of votes approving the referendum. ;no :The number of votes rejecting the referendum. ;total :The total number of votes cast in the election. :(''This includes all counted votes as well as invalid or blank votes.'') ;electorate :The number of people eligible to vote in the election (in some countries this means the number of people ''registered'' to vote). :(''This includes people who did not cast a vote on the referendum.'') ;voter registration : Whether voter registration determines the number of eligible voters. If no, the term "eligible to vote" is used for the electorate parameter. Else, the term "registered voters" will be used. ;map :The map of election results. ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;map2 :A supplementary map for election results, like population density ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;outcome :Outcome of the election (e.g. Not passed due to insufficient turnout). ;notes :Any notes, such as the source of the data. === Additional parameters === ;other :The total number of valid votes which were not yes or no (e.g., informal votes) ;othertype :Label to use for the "other votes" statistics, where those are part of the valid votes (e.g., Informal votes or Blank votes). If "Blank votes" is used here, the text "Invalid or blank votes" is also changed to "Invalid votes" ;invalid :The total number of invalid votes. This may be used as an alternative to <code>total</code>, in which case the total number of votes is computed as the sum of <code>yes</code>, <code>no</code>, and <code>invalid</code>. If both <code>invalid</code> and <code>total</code> are specified, the <code>total</code> parameter will be used for computing the total number of votes. :To suppress the inclusion of invalid votes, specify <code>invalid</code>, but leave the value blank ;totalref :A citation for the total number of votes ;turnoutpct :The percentage of the electorate who voted in the referendum. Note that this is automatically computed from the value of <code>electorate</code> and the total number of votes, if <code>electorate</code> is specified. ;mapcaption :Use this parameter to override the default legend caption used for the map. == Region-specific information == === United States === ==== California ==== The [[California Secretary of State]]'s [https://www.sos.ca.gov/elections website] prominently displays results for the latest election. Results are also available as far back as June 1990 on [https://www.sos.ca.gov/elections/prior-elections another page] at the website. Before 2000, results are listed in a single document, both the ''statement of vote'' (which is brief) and the ''supplement to the statement of vote'' (which is highly detailed). Starting in 2000, results are organized into a table of contents. ==== Oregon ==== The [[Oregon Secretary of State]]'s [https://sos.oregon.gov/voting-elections/Pages/default.aspx website] maintains an online record of detailed election results going back to {{#formatdate:1995-12-05}}. Results by county for each ballot measure since then are included. Statistics on voter registration (fitting the <code>electorate</code> parameter) and participation/turnout (the <code>total</code> parameter) is available alongside the official results for each election. Basic data (i.e., without results by county) on all ballot measures in Oregon history can also be found in the [https://sos.oregon.gov/blue-book/Pages/state/elections/history.aspx online edition] of the ''[[Oregon Blue Book]]''. Voter registration information going back to 1950 is also provided. The following images can be used in place of an election results map when none can be made: <gallery> File:Oregon election results-ELECTION NOT YET.svg|The election has not been held yet File:Oregon election results-PENDING.svg|The votes are being counted File:Oregon election results-DATA MISSING.svg|The needed data has not been found </gallery> {{clear}} == Tracking category == {{Infobox tracking cats}} ==See also== * {{tl2|bar_box}} <includeonly>{{Sandbox other|| [[Category:Election and referendum infobox templates|referendum]] }}</includeonly> 5dajcts42t3enpgrjwlu2ccp00a7mcu 1975543 1975537 2026-08-15T21:24:18Z Bjarki S 9 1975543 wikitext text/x-wiki {{Documentation subpage}} {{Auto short description}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} {{Uses TemplateStyles|Snið:Þjóðaratkvæðagreiðsla/styles.css}} == Basic usage == {{Parameter names example | name = {{{name}}} | country = Country | flag_year = | flag_image = | date = {{Start date|2000|01|01}} <!-- Details --> | question = {{{question}}} | image = | image_width = | image_alt = | caption = | voting_system = {{{voting_system}}} | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = {{{outcome}}} | website = {{{website}}} <!-- Results table --> | yes_text = {{{yes_text}}} | yes = 1 | no_text = {{{no_text}}} | no = 1 | blanktype = {{{blanktype}}} | blank = 1 | othertype = {{{othertype}}} | other = 1 | invalid = 1 | total = {{{total}}} | totalref = {{{totalref}}} | electorate = {{{electorate}}} | voter_registration = {{{voter_registration}}} | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = {{{map_division}}} | map_caption = {{{map_caption}}} | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = {{{notes}}} }} This template is meant to work for referendums with [[polar question]]s as well as non-polar questions. This template can handle up to four subjects. Please note the following: * All numbers must be specified as plain numbers, without additional comments or references, or else the template will display improperly. The template uses the [[mw:Help:Magic word|magic word]] <code><nowiki>{{formatnum}}</nowiki></code> to insert commas for display. * All percentages are calculated by the template, as well as the number of valid votes, invalid and blank votes, and voter turnout. Therefore, it is not necessary to find or have this data. * The template figures out by itself whether the majority of voters approved or rejected the referendum based on the data it is fed. Therefore, it is not necessary to specify this. Furthermore, this cannot be overridden. The order the <code>yes</code> and <code>no</code> parameters are listed in does not affect which is displayed first. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = | country = | flag_year = | flag_image = | date = <!-- {{Start date|YYYY|MM|DD}} or {{Date_range|YYYY|MM|DD|YYYY|MM|DD}} --> <!-- Details --> | question = <!-- or | title = --> | image = | image_width = | image_alt = | caption = | voting_system = | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = | website = <!-- use {{URL}} --> <!-- Results table --> | yes_text = | yes = | no_text = | no = | blanktype = | blank = | othertype = | other = | invalid = | total = | totalref = | electorate = | voter_registration = | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = <!-- name of the political subdivisions shown in the map, defaults to "county" --> | map_caption = <!-- overrides the default caption --> | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = <!-- e.g. Source: [URL] --> }} </syntaxhighlight> == Examples == Below are examples of single-choice polar questions, as well as a non-polar example with multiple options. === Before an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} Use the model code below before an election for a referendum is held. [[Oregon Ballot Measure 56 (2008)]] is used as an example to the right. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} </syntaxhighlight> Keep in mind that, though the parameters <code>yes</code>, <code>no</code>, <code>total</code>, <code>electorate</code>, and <code>mapdivision</code> are blank, they ''should not'' be deleted. This makes it inconvenient to add data later. {{clear}} === During the election === Once election day arrives, the image can be changed to '''File:Oregon election results-PENDING.svg'''. After the polls have closed and start announcing returns, start putting the data into the template, updating as often as reasonable. Use the <code>notes</code> parameter to cite the source of the election-night returns. {{clear right}} === After an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} The following code produces the table to the right: <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} </syntaxhighlight> The parameters <code>yes</code>, <code>no</code>, <code>total</code>, and <code>electorate</code> take only values '''without commas'''. The template automatically formats the numbers when displayed by inserting commas. {{clear}} ===Multichoice referendums=== {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | image = | caption = The results in the United Kingdom by constituency | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 }} <syntaxhighlight lang="wikitext" style="overflow: auto"><nowiki> {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 {{clear}} </nowiki></syntaxhighlight> == Parameters == ;name :The name of the referendum, such as ''Measure 56'' or ''Proposition 1A''. ;question {{nobold|or}} title :The official ballot question or title. ;location :The administrative division (or country for a nationwide vote) where the referendum was held. ;date :When the referendum was held. ;yes :The number of votes approving the referendum. ;no :The number of votes rejecting the referendum. ;total :The total number of votes cast in the election. :(''This includes all counted votes as well as invalid or blank votes.'') ;electorate :The number of people eligible to vote in the election (in some countries this means the number of people ''registered'' to vote). :(''This includes people who did not cast a vote on the referendum.'') ;voter registration : Whether voter registration determines the number of eligible voters. If no, the term "eligible to vote" is used for the electorate parameter. Else, the term "registered voters" will be used. ;map :The map of election results. ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;map2 :A supplementary map for election results, like population density ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;outcome :Outcome of the election (e.g. Not passed due to insufficient turnout). ;notes :Any notes, such as the source of the data. === Additional parameters === ;other :The total number of valid votes which were not yes or no (e.g., informal votes) ;othertype :Label to use for the "other votes" statistics, where those are part of the valid votes (e.g., Informal votes or Blank votes). If "Blank votes" is used here, the text "Invalid or blank votes" is also changed to "Invalid votes" ;invalid :The total number of invalid votes. This may be used as an alternative to <code>total</code>, in which case the total number of votes is computed as the sum of <code>yes</code>, <code>no</code>, and <code>invalid</code>. If both <code>invalid</code> and <code>total</code> are specified, the <code>total</code> parameter will be used for computing the total number of votes. :To suppress the inclusion of invalid votes, specify <code>invalid</code>, but leave the value blank ;totalref :A citation for the total number of votes ;turnoutpct :The percentage of the electorate who voted in the referendum. Note that this is automatically computed from the value of <code>electorate</code> and the total number of votes, if <code>electorate</code> is specified. ;mapcaption :Use this parameter to override the default legend caption used for the map. == Region-specific information == === United States === ==== California ==== The [[California Secretary of State]]'s [https://www.sos.ca.gov/elections website] prominently displays results for the latest election. Results are also available as far back as June 1990 on [https://www.sos.ca.gov/elections/prior-elections another page] at the website. Before 2000, results are listed in a single document, both the ''statement of vote'' (which is brief) and the ''supplement to the statement of vote'' (which is highly detailed). Starting in 2000, results are organized into a table of contents. ==== Oregon ==== The [[Oregon Secretary of State]]'s [https://sos.oregon.gov/voting-elections/Pages/default.aspx website] maintains an online record of detailed election results going back to {{#formatdate:1995-12-05}}. Results by county for each ballot measure since then are included. Statistics on voter registration (fitting the <code>electorate</code> parameter) and participation/turnout (the <code>total</code> parameter) is available alongside the official results for each election. Basic data (i.e., without results by county) on all ballot measures in Oregon history can also be found in the [https://sos.oregon.gov/blue-book/Pages/state/elections/history.aspx online edition] of the ''[[Oregon Blue Book]]''. Voter registration information going back to 1950 is also provided. The following images can be used in place of an election results map when none can be made: <gallery> File:Oregon election results-ELECTION NOT YET.svg|The election has not been held yet File:Oregon election results-PENDING.svg|The votes are being counted File:Oregon election results-DATA MISSING.svg|The needed data has not been found </gallery> {{clear}} == Tracking category == {{Infobox tracking cats}} ==See also== * {{tl2|bar_box}} <includeonly>{{Sandbox other|| [[Category:Election and referendum infobox templates|referendum]] }}</includeonly> c5ej72sef8f1kz3s5x1e4czay1kp205 1975544 1975543 2026-08-15T21:30:08Z Bjarki S 9 1975544 wikitext text/x-wiki {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} {{Uses TemplateStyles|Snið:Þjóðaratkvæðagreiðsla/styles.css}} == Basic usage == {{Parameter names example | name = {{{name}}} | country = Country | flag_year = | flag_image = | date = {{Start date|2000|01|01}} <!-- Details --> | question = {{{question}}} | image = | image_width = | image_alt = | caption = | voting_system = {{{voting_system}}} | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = {{{outcome}}} | website = {{{website}}} <!-- Results table --> | yes_text = {{{yes_text}}} | yes = 1 | no_text = {{{no_text}}} | no = 1 | blanktype = {{{blanktype}}} | blank = 1 | othertype = {{{othertype}}} | other = 1 | invalid = 1 | total = {{{total}}} | totalref = {{{totalref}}} | electorate = {{{electorate}}} | voter_registration = {{{voter_registration}}} | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = {{{map_division}}} | map_caption = {{{map_caption}}} | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = {{{notes}}} }} This template is meant to work for referendums with [[polar question]]s as well as non-polar questions. This template can handle up to four subjects. Please note the following: * All numbers must be specified as plain numbers, without additional comments or references, or else the template will display improperly. The template uses the [[mw:Help:Magic word|magic word]] <code><nowiki>{{formatnum}}</nowiki></code> to insert commas for display. * All percentages are calculated by the template, as well as the number of valid votes, invalid and blank votes, and voter turnout. Therefore, it is not necessary to find or have this data. * The template figures out by itself whether the majority of voters approved or rejected the referendum based on the data it is fed. Therefore, it is not necessary to specify this. Furthermore, this cannot be overridden. The order the <code>yes</code> and <code>no</code> parameters are listed in does not affect which is displayed first. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = | country = | flag_year = | flag_image = | date = <!-- {{Start date|YYYY|MM|DD}} or {{Date_range|YYYY|MM|DD|YYYY|MM|DD}} --> <!-- Details --> | question = <!-- or | title = --> | image = | image_width = | image_alt = | caption = | voting_system = | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = | website = <!-- use {{URL}} --> <!-- Results table --> | yes_text = | yes = | no_text = | no = | blanktype = | blank = | othertype = | other = | invalid = | total = | totalref = | electorate = | voter_registration = | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = <!-- name of the political subdivisions shown in the map, defaults to "county" --> | map_caption = <!-- overrides the default caption --> | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = <!-- e.g. Source: [URL] --> }} </syntaxhighlight> == Examples == Below are examples of single-choice polar questions, as well as a non-polar example with multiple options. === Before an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} Use the model code below before an election for a referendum is held. [[Oregon Ballot Measure 56 (2008)]] is used as an example to the right. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | location = | date = {{Start date|2018|11|04|df=y}} | yes = | no = | total = | electorate = | map = Oregon election results-ELECTION NOT YET.svg | mapdivision = | notes = }} </syntaxhighlight> Keep in mind that, though the parameters <code>yes</code>, <code>no</code>, <code>total</code>, <code>electorate</code>, and <code>mapdivision</code> are blank, they ''should not'' be deleted. This makes it inconvenient to add data later. {{clear}} === During the election === Once election day arrives, the image can be changed to '''File:Oregon election results-PENDING.svg'''. After the polls have closed and start announcing returns, start putting the data into the template, updating as often as reasonable. Use the <code>notes</code> parameter to cite the source of the election-night returns. {{clear right}} === After an election === {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} The following code produces the table to the right: <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = Measure 56 | title = Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | yes = 959118 | no = 735500 | total = 1845251 | electorate = 2153914 | map = File:Oregon 2008 Measure 56.svg | mapdivision = | notes = Source: [[Oregon Secretary of State]] }} </syntaxhighlight> The parameters <code>yes</code>, <code>no</code>, <code>total</code>, and <code>electorate</code> take only values '''without commas'''. The template automatically formats the numbers when displayed by inserting commas. {{clear}} ===Multichoice referendums=== {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | image = | caption = The results in the United Kingdom by constituency | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 }} <syntaxhighlight lang="wikitext" style="overflow: auto"><nowiki> {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 {{clear}} </nowiki></syntaxhighlight> == Parameters == ;name :The name of the referendum, such as ''Measure 56'' or ''Proposition 1A''. ;question {{nobold|or}} title :The official ballot question or title. ;location :The administrative division (or country for a nationwide vote) where the referendum was held. ;date :When the referendum was held. ;yes :The number of votes approving the referendum. ;no :The number of votes rejecting the referendum. ;total :The total number of votes cast in the election. :(''This includes all counted votes as well as invalid or blank votes.'') ;electorate :The number of people eligible to vote in the election (in some countries this means the number of people ''registered'' to vote). :(''This includes people who did not cast a vote on the referendum.'') ;voter registration : Whether voter registration determines the number of eligible voters. If no, the term "eligible to vote" is used for the electorate parameter. Else, the term "registered voters" will be used. ;map :The map of election results. ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;map2 :A supplementary map for election results, like population density ;mapdivision :The name of the political subdivisions shown in the map, such as ''county'', ''parish'', or ''canton''. :(''If no value is given, the default is '''county'''. Give any value to override this.'') ;outcome :Outcome of the election (e.g. Not passed due to insufficient turnout). ;notes :Any notes, such as the source of the data. === Additional parameters === ;other :The total number of valid votes which were not yes or no (e.g., informal votes) ;othertype :Label to use for the "other votes" statistics, where those are part of the valid votes (e.g., Informal votes or Blank votes). If "Blank votes" is used here, the text "Invalid or blank votes" is also changed to "Invalid votes" ;invalid :The total number of invalid votes. This may be used as an alternative to <code>total</code>, in which case the total number of votes is computed as the sum of <code>yes</code>, <code>no</code>, and <code>invalid</code>. If both <code>invalid</code> and <code>total</code> are specified, the <code>total</code> parameter will be used for computing the total number of votes. :To suppress the inclusion of invalid votes, specify <code>invalid</code>, but leave the value blank ;totalref :A citation for the total number of votes ;turnoutpct :The percentage of the electorate who voted in the referendum. Note that this is automatically computed from the value of <code>electorate</code> and the total number of votes, if <code>electorate</code> is specified. ;mapcaption :Use this parameter to override the default legend caption used for the map. == Region-specific information == === United States === ==== California ==== The [[California Secretary of State]]'s [https://www.sos.ca.gov/elections website] prominently displays results for the latest election. Results are also available as far back as June 1990 on [https://www.sos.ca.gov/elections/prior-elections another page] at the website. Before 2000, results are listed in a single document, both the ''statement of vote'' (which is brief) and the ''supplement to the statement of vote'' (which is highly detailed). Starting in 2000, results are organized into a table of contents. ==== Oregon ==== The [[Oregon Secretary of State]]'s [https://sos.oregon.gov/voting-elections/Pages/default.aspx website] maintains an online record of detailed election results going back to {{#formatdate:1995-12-05}}. Results by county for each ballot measure since then are included. Statistics on voter registration (fitting the <code>electorate</code> parameter) and participation/turnout (the <code>total</code> parameter) is available alongside the official results for each election. Basic data (i.e., without results by county) on all ballot measures in Oregon history can also be found in the [https://sos.oregon.gov/blue-book/Pages/state/elections/history.aspx online edition] of the ''[[Oregon Blue Book]]''. Voter registration information going back to 1950 is also provided. The following images can be used in place of an election results map when none can be made: <gallery> File:Oregon election results-ELECTION NOT YET.svg|The election has not been held yet File:Oregon election results-PENDING.svg|The votes are being counted File:Oregon election results-DATA MISSING.svg|The needed data has not been found </gallery> {{clear}} == Tracking category == {{Infobox tracking cats}} ==See also== * {{tl2|bar_box}} <includeonly>{{Sandbox other|| [[Category:Election and referendum infobox templates|referendum]] }}</includeonly> oac737pj225rdxc8x3l8lb4ixo9s3t0 Snið:Þjóðaratkvæðagreiðsla/styles.css 10 192442 1975491 2023-06-10T13:04:09Z en>Pppery 0 1975491 sanitized-css text/css /* {{pp-template}} */ body.skin-minerva .infobox-full-data > table { display: table; } body.skin-minerva .infobox-full-data { width: calc(100% - 20px); overflow: auto; } body.skin-minerva .infobox caption { display: table-caption; } c3ydmx4i0bchrup4efpkpvd94am2tuk 1975492 1975491 2026-08-15T16:50:52Z Bjarki S 9 1 breyting flutt inn frá [[:en:Template:Infobox_referendum/styles.css]] 1975491 sanitized-css text/css /* {{pp-template}} */ body.skin-minerva .infobox-full-data > table { display: table; } body.skin-minerva .infobox-full-data { width: calc(100% - 20px); overflow: auto; } body.skin-minerva .infobox caption { display: table-caption; } c3ydmx4i0bchrup4efpkpvd94am2tuk 1975541 1975492 2026-08-15T21:17:21Z Bjarki S 9 Bjarki S færði [[Snið:Infobox referendum/styles.css]] á [[Snið:Þjóðaratkvæðagreiðsla/styles.css]] án þess að skilja eftir tilvísun 1975491 sanitized-css text/css /* {{pp-template}} */ body.skin-minerva .infobox-full-data > table { display: table; } body.skin-minerva .infobox-full-data { width: calc(100% - 20px); overflow: auto; } body.skin-minerva .infobox caption { display: table-caption; } c3ydmx4i0bchrup4efpkpvd94am2tuk 1. deild kvenna í knattspyrnu 2005 0 192450 1975533 2026-08-15T21:12:01Z Nipas2 54688 Bjó til síðu með „{{Íþróttadeild | nafn = 1. deild kvenna 2005 | mynd = | ár = '''2005''' | Meistarar = '''{{Lið Fylkir}}''' | upp um deild = '''{{Lið Fylkir}}'''<br>'''[[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]]''' | spilaðir leikir = 77 | mörk skoruð = 436 (5.66 m/leik) | markahæstur = '''29 mörk'''<br>[[Rakel Hönnudóttir]] ([[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/...“ 1975533 wikitext text/x-wiki {{Íþróttadeild | nafn = 1. deild kvenna 2005 | mynd = | ár = '''2005''' | Meistarar = '''{{Lið Fylkir}}''' | upp um deild = '''{{Lið Fylkir}}'''<br>'''[[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]]''' | spilaðir leikir = 77 | mörk skoruð = 436 (5.66 m/leik) | markahæstur = '''29 mörk'''<br>[[Rakel Hönnudóttir]] ([[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]]) | haldið hreinu = | stærsti heimasigur = | stærsti útisigur = | tímabil = [[1. deild kvenna í knattspyrnu 2004|2004]] - [[1. deild kvenna í knattspyrnu 2006|2006]] |}} Leikar í '''1. deild kvenna í knattspyrnu''' hófust í 24. sinn árið '''2005'''. {{clear}} == A riðill == ==Liðin== {| class="wikitable" style="text-align: center;" !width=180| Lið !width=100| Bær !width=220| Leikvangur !width=540| Þjálfari !width=240| Staðan [[Landsbankadeild kvenna í knattspyrnu 2004|2004]] |- |style="text-align: left;"|{{Lið Fjölnir}} | [[Reykjavík]] | [[Fjölnisvöllur]] | | 8. s., [[Landsbankadeild kvenna í knattspyrnu 2004|Landsbanka d.]] |- |style="text-align: left;"|{{Lið Fylkir}} | [[Reykjavík]] | [[Fylkisvöllur]] | | 4. sæti í A riðill |- |style="text-align: left;"|{{Lið Haukar}} | [[Hafnarfjörður]] | [[Ásvellir]] | | 3. sæti í A riðill |- |style="text-align: left;"|{{Lið HK/Víkingur}} | [[Reykjavík]] | [[Kópavogsvöllur]], [[Víkingsvöllur]], [[Fífan]] | | 2. sæti í A riðill |- |style="text-align: left;"|{{Lið ÍR}} | [[Reykjavík]] | [[ÍR-völlur]] | | 3. sæti í B riðill |- |style="text-align: left;"|{{Lið Víðir}} | [[Garði]] | [[Garðsvöllur]] | | [[1._deild_kvenna_í_knattspyrnu_2003#Úrslitakeppnin|Úrslit. 2003]] |- |style="text-align: left;"|{{Lið Þróttur R.}} | [[Reykjavík]] | [[Valbjarnarvöllur]] | | [[1._deild_kvenna_í_knattspyrnu_2004#Úrslitakeppnin|Úrslitakeppnin]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 14. umferð, 20. ágúst 2005''.<ref>{{cite web|title=1. deild kvenna 2005 A riðill|url=https://www.ksi.is/oll-mot/mot?id=188193&banner-tab=matches-and-results&toggle=rounds&round=14|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=15. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||style="background:#{{Fótboltalitur|Keflavík|1}}"| ||'''{{Lið Fylkir}}''' ||12||9||1||2||53||20||33||'''28''' |align="center" rowspan=2|'''[[1. deild kvenna í knattspyrnu 2005#Úrslitakeppnin|Úrslitakeppnin]]''' |-style="background:#D0F0C0;" |2||style="background:#{{Fótboltalitur|Þróttur_R.|1}}"| ||'''{{Lið Haukar}}''' ||12||8||2||2||37||18||-19||'''26''' |- |3||style="background:#{{Fótboltalitur|Fjölnir|1}}"| ||{{Lið Fjölnir}} ||12||8||1||3||54||12||42||'''25''' |- |4||style="background:#{{Fótboltalitur|ÍR|1}}"| ||[[ÍR]] ||12||6||1||5||44||24||20||'''19''' |- |5||style="background:#{{Fótboltalitur|HK/Víkingur|1}}"| ||{{Lið HK/Víkingur}} ||12||6||1||5||26||15||11||'''19''' |- |6||style="background:#{{Fótboltalitur|Þróttur_R.|1}}"| ||{{Lið Þróttur_R.}} ||12||2||0||10||16||47||-31||'''6''' |- |7||style="background:#{{Fótboltalitur|Víðir|1}}"| ||{{Lið Víðir}} ||12||0||0||12||7||101||-94||'''0''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|&nbsp;&nbsp;!!Fjö!!Fyl!!Hau!!HK/V!!&nbsp;ÍR&nbsp;!!Víð!!Þró |- |list2 = |-style="background:#F0F0F0;" |- |list2 = |align="left"|{{Lið Fjölnir}} ||'''XXX'''||-||-||-||-||-||- |-! style="background:#F0F0F0;" |align="left"|{{Lið Fylkir}} ||-||'''XXX'''||-||-||-||-||- |- |align="left"|{{Lið Haukar}} ||-||-||'''XXX'''||-||-||-||- |-! style="background:#F0F0F0;" |align="left"|{{Lið HK/Víkingur}} ||-||-||-||'''XXX'''||-||-||- |- |align="left"|[[ÍR]] ||-||-||-||-||'''XXX'''||-||- |-! style="background:#F0F0F0;" |align="left"|{{Lið Víðir}} ||-||-||-||-||-||'''XXX'''||- |- |align="left"|{{Lið Þróttur_R.}} ||-||-||-||-||-||-||'''XXX''' |} == B riðill == ===Liðin === {| class="wikitable" style="text-align: center;" !width=120| Lið !width=100| Bær !width=200| Leikvangur !width=540| Þjálfari !width=240| Staðan [[1. deild kvenna í knattspyrnu 2004|2004]] |- |- |style="text-align: left;"|[[Höttur]] | [[Seyðisfjörður]]<br/>[[Egilsstaðir]] | [[Vilhjálmsvöllur]] | | 2. sæti, C riðill |- |style="text-align: left;"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] | [[Fjarðabyggð]] | [[Seyðisfjarðarvöllur]] [[Eskifjarðarvöllur]] | | 3. sæti, C riðill |- |style="text-align: left;"|[[Ungmennafélagið Leiknir Fáskrúðsfirði|Leiknir F.]] | [[Fáskrúðsfjörður]] | [[Búðagrund]] | | 7. sæti í [[1. deild kvenna í knattspyrnu 2003#B riðill|B riðill]] |- |style="text-align: left;"|{{Lið Sindri}} | [[Höfn]] | [[Sindravellir]] | | [[1._deild_kvenna_í_knattspyrnu_2004#Úrslitakeppnin|Úrslitakeppnin]] |- |style="text-align: left;"| [[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] | [[Akureyri]] | [[Akureyrarvöllur]] | | 2. s. í [[1. deild kvenna í knattspyrnu 2004#Aukakeppni 1. deild|Aukakeppni]] |} === Staðan í deildinni === ==== Stigatafla ==== ''Staðan fyrir 15. umferð, 21. ágúst 2005''.<ref>{{cite web|title=1. deild kvenna 2005 B riðill|url=https://www.ksi.is/oll-mot/mot?id=188194&banner-tab=matches-and-results&toggle=rounds&round=15|website=www.ksi.is|publisher=Knattspyrnusamband Íslands|accessdate=15. ágúst 2026}}</ref> {| class="wikitable" style="text-align: center;" !width=30|Sæti !width=40| !style="max-width:80px"|Félag !width=30|L !width=30|U !width=30|J !width=30|T !width=30|Sk !width=30|Fe !width=30|Mm !width=30|Stig !style="max-width:300px"|Athugasemdir |-style="background:#D0F0C0;" |1||||'''[[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]]''' ||12||12||0||0||79||5||74||'''36''' |align="center" rowspan=2|'''[[1. deild kvenna í knattspyrnu 2005#Úrslitakeppnin|Úrslitakeppnin]]''' |-style="background:#D0F0C0;" |2|| ||'''[[Höttur]]''' ||12||7||0||5||30||33||-3||'''21''' |- |3||| ||[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||12||5||1||6||31||34||-3||'''16''' |- |4||style="background:#{{Fótboltalitur|Sindri|1}}"| ||{{Lið Sindri}} ||12||5||0||7||19||43||-24||'''15''' |- |5|| ||[[Ungmennafélagið Leiknir Fáskrúðsfirði|Leiknir F.]] ||12||0||1||11||9||53||-44||'''1''' |} <small> ''Útskýringar: L = Leikir spilaðir, U = Leikir sigraðir, J = Leikir sem lauk með jafntefli, T = Tapaðir leikir, Sk = Mörk skorðuð, Fe = Mörk fengin á sig, Mm = Markamunur''.</small> ==== Töfluyfirlit ==== {| |valign="top" width="48%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 1!!Höt!!KFF!!Lei!!Sin!!ÞKK |- |list2 = |align="left"|{{Lið Höttur}} ||'''XXX'''||3-1||2-1||5-2||0-6 |-! style="background:#F0F0F0;" |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||2-0||'''XXX'''||7-1||1-3||0-3 |- |align="left"|[[Ungmennafélagið Leiknir Fáskrúðsfirði|Leiknir F.]] ||3-1||1-3||'''XXX'''||1-2||1-8 |-! style="background:#F0F0F0;" |align="left"|{{Lið Sindri}} ||0-5||2-0||2-0||'''XXX'''||0-6 |- |align="left"|{[[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] ||6-0||8-4||7-0||8-0||'''XXX''' |} |valign="top" width="4%"| &nbsp;&nbsp; |valign="top" width="47%"| {| align="center" cellspacing="0" cellpadding="3" style="background-color: #f9f9f9; font-size: 90%; text-align: center" class="wikitable" !align="left"|B riðill 1!!Höt!!KFF!!Lei!!Sin!!ÞKK |- |list2 = |align="left"|{{Lið Höttur}} ||'''XXX'''||3-5||—||—||0-5 |-! style="background:#F0F0F0;" |align="left"|[[Knattspyrnufélag Fjarðabyggðar|KFF]] ||—||'''XXX'''||—||6-1||0-7 |- |align="left"|[[Ungmennafélagið Leiknir Fáskrúðsfirði|Leiknir F.]] ||1-5||2-2||'''XXX'''||—||— |-! style="background:#F0F0F0;" |align="left"|{{Lið Sindri}} ||3-4||—||4-0||'''XXX'''||— |- |align="left"|{[[Íþróttafélagið Þór|Þór]]/[[Knattspyrnufélag Akureyrar|KA]]/[[Knattspyrnufélag Siglufjarðar|KS]] ||—||—||8-0||7-0||'''XXX''' |} |} == Úrslitakeppnin == === Undanúrslit === === Úrslit === == Aukakeppni 1. deild == == Markahæstu leikmenn == {{1. deild kvenna í knattspyrnu}} {{röð | listi = [[1. deild kvenna í knattspyrnu|1. deild kvenna]] | fyrir = [[1. deild kvenna í knattspyrnu 2004|1. deild kvenna 2004]] | eftir = [[1. deild kvenna í knattspyrnu 2006|1.&nbsp;deild&nbsp;kvenna&nbsp;2006]] }} == Tilvísanir og heimildir == <div class="references-small"><references/></div> * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188193&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2005 A riðill|work=KSÍ|accessdate=15. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188194&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2005 B riðill|work=KSÍ|accessdate=15. ágúst 2026}} * {{cite web|url=https://www.ksi.is/oll-mot/mot?id=188195&banner-tab=matches-and-results&toggle=rounds&round=1|title=1. deild kvenna 2005 úrslit|work=KSÍ|accessdate=15. ágúst 2026}} * {{cite web|url=http://www.icelandfootball.net/ladies-2005.html#W2D|title=Second Level 2005 - 1. deild kvenna)|accessdate=15. ágúst 2026}} * {{cite web|url=https://www.rsssf.org/tablesi/ijs-wom05.html|title=Second Level 2005 - 1. deild kvenna)|accessdate=15. ágúst 2026}} {{Knattspyrna á Íslandi 2005}} [[Flokkur:1. deild kvenna í knattspyrnu á Íslandi]] [[Flokkur:Knattspyrna á Íslandi]] qlwyl34rbq4foc3rtzyrsc0naxvedy2 Snið:Infobox referendum 10 192451 1975536 2026-08-15T21:17:20Z Bjarki S 9 Bjarki S færði [[Snið:Infobox referendum]] á [[Snið:Þjóðaratkvæðagreiðsla]] 1975536 wikitext text/x-wiki #tilvísun [[Snið:Þjóðaratkvæðagreiðsla]] 9mmlmgqztofb5aq07rkemwi8t6wo1o7 Snið:Infobox referendum/doc 10 192452 1975538 2026-08-15T21:17:20Z Bjarki S 9 Bjarki S færði [[Snið:Infobox referendum/doc]] á [[Snið:Þjóðaratkvæðagreiðsla/doc]] 1975538 wikitext text/x-wiki #tilvísun [[Snið:Þjóðaratkvæðagreiðsla/doc]] 24u3hxbjfvtp78xiw162wgxnyqa1ljw Snið:Infobox referendum/results 10 192453 1975540 2026-08-15T21:17:20Z Bjarki S 9 Bjarki S færði [[Snið:Infobox referendum/results]] á [[Snið:Þjóðaratkvæðagreiðsla/results]] 1975540 wikitext text/x-wiki #tilvísun [[Snið:Þjóðaratkvæðagreiðsla/results]] rx8fjfx5w2khbjlyuabp0etlz18ra29 Sigríður Ó. Candi 0 192454 1975563 2026-08-16T10:57:21Z Wikm456 119617 Bjó til síðu með „Sigríður Ólafsdóttir Candi (1930–2018) var íslenskur myndlistarmður, fædd í Reykjavík. Hún útskrifaðist frá Myndlistar- og handíðaskólanum árið 1952 og starfaði lengi við kennslu á framhaldsskólastigi. Hún nam einnig við Kennaraháskóla Íslands og erlendis, þar á meðal í Frakklandi, Sviss, Kanada og Bandaríkjunum. Hún hélt einkasýningar og tók þátt í samsýningum á Íslandi og erlendis. Meðal þekktari verka hennar m...“ 1975563 wikitext text/x-wiki Sigríður Ólafsdóttir Candi (1930–2018) var íslenskur myndlistarmður, fædd í Reykjavík. Hún útskrifaðist frá Myndlistar- og handíðaskólanum árið 1952 og starfaði lengi við kennslu á framhaldsskólastigi. Hún nam einnig við Kennaraháskóla Íslands og erlendis, þar á meðal í Frakklandi, Sviss, Kanada og Bandaríkjunum. Hún hélt einkasýningar og tók þátt í samsýningum á Íslandi og erlendis. Meðal þekktari verka hennar má nefna Gullna hliðið (1976), Krosstákn (1983) og Geimsinfónía (1989). 4q6stud29vmbjqr2hwp73ll0c0edmb7 1975564 1975563 2026-08-16T11:12:31Z Wikm456 119617 1975564 wikitext text/x-wiki Sigríður Ólafsdóttir fæddist 10. desember 1930 í Reykjavík og hneigðist allt frá barnsaldri til myndlistar. Stóran hluta unglingsárana var hún berklasjúklingur, og dvaldi langtímum saman á spítala bæði á Íslandi og í Danmörku.  Myndverkin frá þessum tíma bera þó afgerandi yfirbragð glaðværðar og hugsanlega voru þau leið út úr hinum dapra og tilbreytingarlausa raunveruleika sem Sigríður lifði oft við á sínum mótunarárum. Myndlistinn var ævintýraheimur þar sem allt var mögulegt, og litir og form spruttu upp úr hugskoti listamannsins fremur en úr raunheimi. Það er einmitt þessi eiginleiki sem er svo merkjanlegur á öllum listferli Sigríðar. Fyrstu verk Sigríðar sem urðu til á unglingsárum hennar og námsárunum í Myndlista- og handíðaskóla Íslands bera keim af þeim straumum myndlistar sem bárust frá Evrópu á fyrri hluta tuttugusta aldar. Áhrif kúbismans með sín tvívíðu form, og afgerandi notkun lita sem einkenndi fauvisma sjást greinilega í verkunum á þessum árum. Myndheimur þessara greinarhefða þar sem nýr raunveruleiki er skapaður af ímyndunnarafli listamannsins fremur en efnislegra fyrirmynda átti strax samhljóm hjá Sigríði. “Vitsmunaleg skynjun forma og lita. Markmiðið var fremur að byggja upp frá grunni en stæla það sem fyrir var, að sýna það sem vitað var um hlutinn fremur en það sem sást, og hluturinn sýndur frá mörgum hliðum samtímis. Picasso sagði: "Ég mála hluti eins og ég hugsa þá og ekki eins og þeir sýnast." Hefðbundinni þrívídd var hafnað og öll myndatriðin höfð jafn nálæg. Bakgrunnur er þess vegna enginn.” (Lýsing Sigríðar á kúbisma í kennsluefni sem hún útbjó fyrir listasögu 20. aldar.) Á áttunda áratugi 20. aldar talaði Sigríður um sjálfa sig sem abstraktlistamann. Hún hélt upp á Paul Klee og djarfa meðferð hans á litum, og sum verk hennar minna einmitt á verk hans.  Á meðan fyrri verk hennar eru nokkuð lágstemmd og tilraunakennd, báru þau nú vitni um aukið sjálfsöryggi. Meðferð forma og lita er frjálsleg og rásföst, og verkin verða að óheftari tjáleið tilfinninga í anda abstrakt expressionisma. Á þessum tíma bjó Sigríður í Kanada og þegar horft er yfir myndverkin sem urðu til á þessum árum virðast rúmfræðilegu formin sem einkenndu verk Sigríðar fyrr í ferlinum verða mýkri og blæða hvert inn í annað. Litirnir fá að leita út fyrir útlínurnar sem dregnar eru með bleki, oft sem hringform en einnig sem hyrndir fletir. Sigríður talaði um að það ætti ekki að útskýra myndverk, þau töluðu sínu eigin máli og ættu að vekja tilfinningar. Þegar hún hélt sýningu á abstraktlistaverkum sínum í Toronto árið 1972 gaf hún ekki út yfirlýsingu um verkin, eins og hún gerði fyrir síðari sýningar, en hún gaf verkunum frumleg heiti svo sem “Some times there are waves, some times not”, “The elements know each other”, “The tip of your toe fits on the top of my mountain”, “The night had a dream and the day destroyed it”, og “The sound of your shoes in my house”. Um miðjan áttunda áratugin fór Sigríður að vinna með textíl, sem markaði bæði þáttaskil en þó framhald á þemu áranna er á undan gengu. Hin flæðandi og dýnamísku form abstraktmálverkanna spruttu nú út úr hinum tvívíða myndfleti. Þau urðu að mjúkum skúlptúr með grófa og afgerandi efniskennd.  Á seinni stigum þessa tímabils verða verkin þó fíngerðari og tvívíðari.  Eins og að form og litir hafi aðeins þurft að stiga fram, eigna sér sitt eigið rými, en horfað svo aftur inn í myndfletin.  Eins og sjálfsörugg heimferð  þess sem hefur ferðast.   „Verkin sem standa upp úr fyrir mér alveg frá því ég var barn eru veflistaverk Sigríðar, sem hún vann í lok sjöunda áratugarins. Kannski er það vegna þess að ég sá vefstólinn sem barn, og kannski er það vegna þess að ég fékk að snerta verkin með fingurgómunum. Kannski er það vegna þess að litadýrðin var svo mikil í verkunum, og áferðin svo sérstök. Það var ýmist loðin áferð, hörð áferð, holur í myndverkinu, tákn og líkingarmál og litasamsetningin og þessi hlýja sem stóð af teppinu á veggnum var eitthvað eitthvað svo traustvekjandi.“ (Anja Stella Ólafsdóttir, listfræðingur og listmálari, bróðurdóttir Sigríðar.) Í umfjöllun sinni fyrir Morgunblaðið lýsti Valtýr Pétursson, listmálari, sýningu Sigríðar í FÍM salnum haustið 1978 á þessa leið: „Þetta er falleg sýning hjá Sigríði, hún notar efni og liti af djörfung og mikilli leikni. Hún hefur auðsjáanlega haft augun opin fyrir þeirri vakningu, sem átt hefur sér stað í vefnaði á seinustu árum.  Þar hefur orðið mikil breyting, og ekki hvað síst hvað efnismeðferð snertir.  Nú eru notaðir grófari aðgerðir, ef svo mætti kalla það. Hrjúft efnið er látið spila sem andstæða og til áherslu.  Allt er leyfilegt. Eitt ef verkum Sigríðar heitir HRINGSJÁ og er að mínum dómi eitt af frumlegustu verkunum á þessari sýningu. Einnig verður að benda á nokkur önnur verk, sem mér finnst hafa heppnast með ágætum hjá Sigríði: Fúga, Sónata í D-dúr, Landslag, Tvö tré og einnig Þrjú tré. Heildarsvipur þessarar sýningar er hreinn og litirnir verka sterkt og óhikað. Ég hafði mikla ánægju af þessari sýningu Sigríðar Candi, og ég held að óhætt sé að stefna fólki til að sjá þessi teppi.  Þau eru lífleg og fyrst og fremst  án tildurs og yfirborðsmennsku. Tónninn í þessari sýningu er hreinn.  Og má ég spyrja? Getur nokkur fengið betri hól en einmitt það.“ (Valtýr Pétursson, Morgunblaðið, 226. Tölublað) Á fyrri hluta níunda áratugarins færði Sigríður sig frá textílverkunum og að blýantsteikningum.  Það er áberandi að stórgerð og afgerandi efnistök myndvefnaðaráranna sem á undan gengu fengu nú að víkja fyrir fíngerðum og öguðum myndfletum.  Flæðandi landslög, þó draumkennd og óstaðbundin, komu nú í stað abstraktverka. Ein af ástæðum fyrir því að Sigríður færði sig á nýjan miðil er að á þessum árum þjáðist hún af brjósklosi og átti erfiðara með að sitja við vefstólinn löngum tímum.  Þá hentaði betur hið smágerðara snið og hljóðlátari myndheimur blýantsteikninga betur.  Tímabil býantsteikninganna er þó fremur stutt tímabil, og mætti líta á það sem hljóðláta hvíld þegar einbeitingin og líkamlegt þrek gáfu örlítið eftir. Andardráttur þar sem Sigríður gaf sér næði til að horfa aðeins inn á við, safna kröftum og endurmeta. Þótt þetta tímabil í ferli Sigríðar sé styst og hugsanlega fyrirferðarminna en önnur, þá var það á þessum tíma sem hún gerði fyrst tilraunir til að fanga í senn hið efnislega og hið óefnislega. Hér eftir áttu myndverk Sigríðar augljósa tilvísun í raunheimi, án þess þó að hverfa að fullu frá hinum flæðandi litafletum abstraktmyndanna.   Á lengsta og yfirgripsmesta tímabili í ferli sínum málaði Sigríður skýjamyndir á striga. Umtalsverður fjöldi þessara málverka varð til á tveggja ára tímabili þegar hún dvaldist í Venesúela og gat helgað sig listsköpun sinni að fullu. Myndirnar eru enn á sinn hátt abrstraktsjónir―einföldun og formgerð hins raunverulega.  Hún valdi ský sem viðfangsefni, ský sem eru óáþreifanleg og síbreytileg í eðli sínu.  Hún frysti augnablik hins síbreytilega í djörfum litum og flæðandi formum, þannig að hér er enn áberandi tilvísun í þá nálgun sem Sigríður heillaðist af á móturnarárunum.   Á árunum 2000-2002 dvaldi Sigríður í Valais-dalnum í Sviss og vann áfram með akrýlliti á striga. Á þessum árum sjáum við í auknu mæli að fjöllin og hafið rísa upp til móts við skýjabólstra himinsins. Má auðveldlega geta sér til um það að stórbrotinn fjallahringurinn í Valais hafi haft sín áhrif á verkin. Þó er enn ljóst að verkin eru aldrei endursögn þess sem birtist listamanninum í raunheimi, heldur táknræn vísun í það sem er kyrrstætt og jarðneskt.  Myndverkið er eins og dæmisaga.  Tímalaus einföldun á hinu raunverulega.  Skýringarmynd af innri sýn listamannsins fremur en náttúrufræðileg endursögn. 05g2935bv9w6lelrocv6p0wwqxo8n7e 1975565 1975564 2026-08-16T11:39:03Z Berserkur 10188 Hreingera o.fl. 1975565 wikitext text/x-wiki {{Hreingera}} {{Hagsmunaárekstur}} {{Heimildir}} Sigríður Ólafsdóttir fæddist 10. desember 1930 í Reykjavík og hneigðist allt frá barnsaldri til myndlistar. Stóran hluta unglingsárana var hún berklasjúklingur, og dvaldi langtímum saman á spítala bæði á Íslandi og í Danmörku.  Myndverkin frá þessum tíma bera þó afgerandi yfirbragð glaðværðar og hugsanlega voru þau leið út úr hinum dapra og tilbreytingarlausa raunveruleika sem Sigríður lifði oft við á sínum mótunarárum. Myndlistinn var ævintýraheimur þar sem allt var mögulegt, og litir og form spruttu upp úr hugskoti listamannsins fremur en úr raunheimi. Það er einmitt þessi eiginleiki sem er svo merkjanlegur á öllum listferli Sigríðar. Fyrstu verk Sigríðar sem urðu til á unglingsárum hennar og námsárunum í Myndlista- og handíðaskóla Íslands bera keim af þeim straumum myndlistar sem bárust frá Evrópu á fyrri hluta tuttugusta aldar. Áhrif kúbismans með sín tvívíðu form, og afgerandi notkun lita sem einkenndi fauvisma sjást greinilega í verkunum á þessum árum. Myndheimur þessara greinarhefða þar sem nýr raunveruleiki er skapaður af ímyndunnarafli listamannsins fremur en efnislegra fyrirmynda átti strax samhljóm hjá Sigríði. “Vitsmunaleg skynjun forma og lita. Markmiðið var fremur að byggja upp frá grunni en stæla það sem fyrir var, að sýna það sem vitað var um hlutinn fremur en það sem sást, og hluturinn sýndur frá mörgum hliðum samtímis. Picasso sagði: "Ég mála hluti eins og ég hugsa þá og ekki eins og þeir sýnast." Hefðbundinni þrívídd var hafnað og öll myndatriðin höfð jafn nálæg. Bakgrunnur er þess vegna enginn.” (Lýsing Sigríðar á kúbisma í kennsluefni sem hún útbjó fyrir listasögu 20. aldar.) Á áttunda áratugi 20. aldar talaði Sigríður um sjálfa sig sem abstraktlistamann. Hún hélt upp á Paul Klee og djarfa meðferð hans á litum, og sum verk hennar minna einmitt á verk hans.  Á meðan fyrri verk hennar eru nokkuð lágstemmd og tilraunakennd, báru þau nú vitni um aukið sjálfsöryggi. Meðferð forma og lita er frjálsleg og rásföst, og verkin verða að óheftari tjáleið tilfinninga í anda abstrakt expressionisma. Á þessum tíma bjó Sigríður í Kanada og þegar horft er yfir myndverkin sem urðu til á þessum árum virðast rúmfræðilegu formin sem einkenndu verk Sigríðar fyrr í ferlinum verða mýkri og blæða hvert inn í annað. Litirnir fá að leita út fyrir útlínurnar sem dregnar eru með bleki, oft sem hringform en einnig sem hyrndir fletir. Sigríður talaði um að það ætti ekki að útskýra myndverk, þau töluðu sínu eigin máli og ættu að vekja tilfinningar. Þegar hún hélt sýningu á abstraktlistaverkum sínum í Toronto árið 1972 gaf hún ekki út yfirlýsingu um verkin, eins og hún gerði fyrir síðari sýningar, en hún gaf verkunum frumleg heiti svo sem “Some times there are waves, some times not”, “The elements know each other”, “The tip of your toe fits on the top of my mountain”, “The night had a dream and the day destroyed it”, og “The sound of your shoes in my house”. Um miðjan áttunda áratugin fór Sigríður að vinna með textíl, sem markaði bæði þáttaskil en þó framhald á þemu áranna er á undan gengu. Hin flæðandi og dýnamísku form abstraktmálverkanna spruttu nú út úr hinum tvívíða myndfleti. Þau urðu að mjúkum skúlptúr með grófa og afgerandi efniskennd.  Á seinni stigum þessa tímabils verða verkin þó fíngerðari og tvívíðari.  Eins og að form og litir hafi aðeins þurft að stiga fram, eigna sér sitt eigið rými, en horfað svo aftur inn í myndfletin.  Eins og sjálfsörugg heimferð  þess sem hefur ferðast.   „Verkin sem standa upp úr fyrir mér alveg frá því ég var barn eru veflistaverk Sigríðar, sem hún vann í lok sjöunda áratugarins. Kannski er það vegna þess að ég sá vefstólinn sem barn, og kannski er það vegna þess að ég fékk að snerta verkin með fingurgómunum. Kannski er það vegna þess að litadýrðin var svo mikil í verkunum, og áferðin svo sérstök. Það var ýmist loðin áferð, hörð áferð, holur í myndverkinu, tákn og líkingarmál og litasamsetningin og þessi hlýja sem stóð af teppinu á veggnum var eitthvað eitthvað svo traustvekjandi.“ (Anja Stella Ólafsdóttir, listfræðingur og listmálari, bróðurdóttir Sigríðar.) Í umfjöllun sinni fyrir Morgunblaðið lýsti Valtýr Pétursson, listmálari, sýningu Sigríðar í FÍM salnum haustið 1978 á þessa leið: „Þetta er falleg sýning hjá Sigríði, hún notar efni og liti af djörfung og mikilli leikni. Hún hefur auðsjáanlega haft augun opin fyrir þeirri vakningu, sem átt hefur sér stað í vefnaði á seinustu árum.  Þar hefur orðið mikil breyting, og ekki hvað síst hvað efnismeðferð snertir.  Nú eru notaðir grófari aðgerðir, ef svo mætti kalla það. Hrjúft efnið er látið spila sem andstæða og til áherslu.  Allt er leyfilegt. Eitt ef verkum Sigríðar heitir HRINGSJÁ og er að mínum dómi eitt af frumlegustu verkunum á þessari sýningu. Einnig verður að benda á nokkur önnur verk, sem mér finnst hafa heppnast með ágætum hjá Sigríði: Fúga, Sónata í D-dúr, Landslag, Tvö tré og einnig Þrjú tré. Heildarsvipur þessarar sýningar er hreinn og litirnir verka sterkt og óhikað. Ég hafði mikla ánægju af þessari sýningu Sigríðar Candi, og ég held að óhætt sé að stefna fólki til að sjá þessi teppi.  Þau eru lífleg og fyrst og fremst  án tildurs og yfirborðsmennsku. Tónninn í þessari sýningu er hreinn.  Og má ég spyrja? Getur nokkur fengið betri hól en einmitt það.“ (Valtýr Pétursson, Morgunblaðið, 226. Tölublað) Á fyrri hluta níunda áratugarins færði Sigríður sig frá textílverkunum og að blýantsteikningum.  Það er áberandi að stórgerð og afgerandi efnistök myndvefnaðaráranna sem á undan gengu fengu nú að víkja fyrir fíngerðum og öguðum myndfletum.  Flæðandi landslög, þó draumkennd og óstaðbundin, komu nú í stað abstraktverka. Ein af ástæðum fyrir því að Sigríður færði sig á nýjan miðil er að á þessum árum þjáðist hún af brjósklosi og átti erfiðara með að sitja við vefstólinn löngum tímum.  Þá hentaði betur hið smágerðara snið og hljóðlátari myndheimur blýantsteikninga betur.  Tímabil býantsteikninganna er þó fremur stutt tímabil, og mætti líta á það sem hljóðláta hvíld þegar einbeitingin og líkamlegt þrek gáfu örlítið eftir. Andardráttur þar sem Sigríður gaf sér næði til að horfa aðeins inn á við, safna kröftum og endurmeta. Þótt þetta tímabil í ferli Sigríðar sé styst og hugsanlega fyrirferðarminna en önnur, þá var það á þessum tíma sem hún gerði fyrst tilraunir til að fanga í senn hið efnislega og hið óefnislega. Hér eftir áttu myndverk Sigríðar augljósa tilvísun í raunheimi, án þess þó að hverfa að fullu frá hinum flæðandi litafletum abstraktmyndanna.   Á lengsta og yfirgripsmesta tímabili í ferli sínum málaði Sigríður skýjamyndir á striga. Umtalsverður fjöldi þessara málverka varð til á tveggja ára tímabili þegar hún dvaldist í Venesúela og gat helgað sig listsköpun sinni að fullu. Myndirnar eru enn á sinn hátt abrstraktsjónir―einföldun og formgerð hins raunverulega.  Hún valdi ský sem viðfangsefni, ský sem eru óáþreifanleg og síbreytileg í eðli sínu.  Hún frysti augnablik hins síbreytilega í djörfum litum og flæðandi formum, þannig að hér er enn áberandi tilvísun í þá nálgun sem Sigríður heillaðist af á móturnarárunum.   Á árunum 2000-2002 dvaldi Sigríður í Valais-dalnum í Sviss og vann áfram með akrýlliti á striga. Á þessum árum sjáum við í auknu mæli að fjöllin og hafið rísa upp til móts við skýjabólstra himinsins. Má auðveldlega geta sér til um það að stórbrotinn fjallahringurinn í Valais hafi haft sín áhrif á verkin. Þó er enn ljóst að verkin eru aldrei endursögn þess sem birtist listamanninum í raunheimi, heldur táknræn vísun í það sem er kyrrstætt og jarðneskt.  Myndverkið er eins og dæmisaga.  Tímalaus einföldun á hinu raunverulega.  Skýringarmynd af innri sýn listamannsins fremur en náttúrufræðileg endursögn. npsjt1gz37i1hy6zrj8k9ggypq3unzz