विकिपीडिया
bhwiki
https://bh.wikipedia.org/wiki/%E0%A4%AE%E0%A5%81%E0%A4%96%E0%A5%8D%E0%A4%AF_%E0%A4%AA%E0%A4%A8%E0%A5%8D%E0%A4%A8%E0%A4%BE
MediaWiki 1.48.0-wmf.4
first-letter
मीडिया
विशेष
वार्तालाप
प्रयोगकर्ता
प्रयोगकर्ता वार्ता
विकिपीडिया
विकिपीडिया वार्ता
चित्र
चित्र वार्ता
मीडियाविकि
मीडियाविकि वार्ता
टेम्पलेट
टेम्पलेट वार्ता
मदद
मदद वार्ता
श्रेणी
श्रेणी वार्ता
TimedText
TimedText talk
Module
Module talk
Event
Event talk
उत्तर प्रदेश
0
4349
815174
809713
2026-11-12T15:17:38Z
SM7Bot
7808
/* शिक्षा */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815174
wikitext
text/x-wiki
{{Infobox state
| name = उत्तर प्रदेश
| official_name =
| type = [[भारत के राज्य अउरी संघ राज्यक्षेत्र|राज्य]]
| image_skyline = {{Photomontage
| photo1a = Taj Mahal (105136313).jpeg
| photo2a = PremMandirSideViewFromCanteen.jpg
| photo2b = 62 Fatehpur Sikrí 11.jpg
| photo3a = India-5163 - Flickr - archer10 (Dennis).jpg
| photo3b = Manikarnika Cremation Ghat, Varanasi.jpg
| photo4a = On the banks of New Yamuna bridge, Allahabad.jpg
| spacing = 1
| color_border = black
| color = black
| size = 260
| foot_montage = From top, left to right:<br />[[Taj Mahal]], Prem Mandir in [[Vrindavan]], [[Fatehpur Sikri]], [[Sarnath]], [[Manikarnika Ghat]], [[New Yamuna Bridge]]
}}
| image_shield = Seal of Uttar Pradesh.png
| image_caption = बीच में: [[बनारस]] क मुंशी घाट; ऊपर से घड़ी के दिसा में: [[ताज महल]]; [[काशी विश्वनाथ मंदिर]]; बुलंद दरवाजा; एत्मादुदौला के मकबरा; [[इलाहाबाद]] में [[नया यमुना पुल]]; [[सारनाथ]] में धम्मेक स्तूप; प्रेम मंदिर, मथुरा; [[इलाहाबाद विश्वविद्यालय]]
| seal_alt =
| image_map = India UP.svg
| image_map1 = India_Uttar_Pradesh_location_map.svg
| map_caption = भारत में लोकेशन
| coordinates = {{coord|26.85|80.91|region:IN-UP_type:adm1st|display=inline,title}}
| coor_pinpoint =
| coordinates_footnotes =
| subdivision_type = देस
| subdivision_name = {{flag|भारत}}
| established_title = राज्य के दर्जा
| established_date = 26 जनवरी 1950
{{hidden end}}
| parts_type = [[उत्तर प्रदेश के जिला सभ के लिस्ट|जिला]]
| parts_style = para
| p1 = [[उत्तर प्रदेश के जिला सभ के लिस्ट|75]]<ref name="GOI_2011" />
| seat_type = राजधानी
| seat = [[लखनऊ]]
| government_footnotes =
| governing_body = उत्तर प्रदेश सरकार
| leader_title = राज्यपाल
| leader_name = [[आनंदी बेन पटेल]]<ref>{{cite news|title=Anandiben Patel sworn-in as UP governor|url=https://economictimes.indiatimes.com/news/politics-and-nation/anandiben-patel-sworn-in-as-up-governor/articleshow/70431152.cms|accessdate=3 अगस्त 2019|agency=पीटीआइ|publisher=दि इकोनामिक टाइम्स|date=29 जुलाई 2019}}</ref>
| leader_title1 = मुख्यमंत्री
| leader_name1 = [[आदित्यनाथ|योगी आदित्यनाथ]] ([[भारतीय जनता पार्टी|भाजपा]])
| leader_title2 = [[उत्तर प्रदेश बिधानसभा|बिधानसभा]]
| leader_name2 = {{Plainlist|
* दू सदनी
* [[उत्तर प्रदेश बिधानपरिषद|बिधानपरिषद]] 100
* [[उत्तर प्रदेश बिधानसभा|बिधानसभा]] 404
}}
| leader_title3 = [[भारतीय संसद|संसद सीट]]
| leader_name3 = {{Plainlist|
* [[राज्यसभा]] 31
* [[लोकसभा]] 80
}}
| leader_title4 = हाइकोर्ट
| leader_name4 = [[इलाहाबाद हाइकोर्ट]]
| unit_pref = Metric<!-- or US or UK -->
| area_footnotes =
| area_total_km2 = 240928
| area_note =
| area_rank = [[रकबा के आधार पर भारत के राज्य अउरी संघ राज्यक्षेत्र|4था]]
| elevation_footnotes =
| elevation_m =
| population_footnotes = <ref name="GOI_2011">{{cite web|title=Statistics of Uttar Pradesh|url=http://upgov.nic.in/upstateglance.aspx|work=Census of India 2011|publisher=UP Government|date=1 मार्च 2011|accessdate=31 जुलाई 2012|archive-date=2012-04-26|archive-url=https://web.archive.org/web/20120426235914/http://upgov.nic.in/upstateglance.aspx|url-status=dead}}</ref>
| population_total = 199281477
| population_as_of = 2011
| population_rank = 1
| population_density_km2 = auto
| population_note =
| population_demonym =
| demographics_type1 = भाषा
| demographics1_title1 = ऑफिशियल
| demographics1_info1 = [[हिंदी भाषा|हिंदी]]
| demographics1_title2 = दूसर ऑफिशियल
| demographics1_info2 = [[उर्दू]]
| demographics1_title3 = अन्य लोकल
| demographics1_info3 = [[भोजपुरी]], अवधी
| timezone1 = [[भारतीय मानक समय|आइएसटी]]
| utc_offset1 = +05:30
| blank_name_sec1 = एचडीआइ
| blank_info_sec1 = {{increase}} 0.5415 (<span style="color:#FFA500;">medium</span>)
| blank1_name_sec1 = एचडीआइ रैंक
| blank1_info_sec1 = 18<sup>वाँ</sup> (2007-08)
| blank_name_sec2 = साक्षरता
| blank_info_sec2 = {{Plainlist|
* 69.72%
* 79.24% (पुरुष)
* 59.26% (महिला)
}}
| area_code_type = UN/LOCODE
| area_code = IN-UP
| registration_plate = UP 01—XX
| website = [http://www.up.gov.in/ www.up.gov.in]
| footnotes =
}}
'''उत्तर प्रदेश''' [[भारत]] क सभसे ढेर जनसंख्या वाला राज्य आ दुनिया में सभसे ढेर जनसंख्या वाला देस-उपबिभाग बाटे। भारतीय उपमहादीप के [[उत्तर भारत|उत्तरी]]-बिचला इलाक में पड़े वाला एह राज्य के कुल आबादी लगभग 200 मिलियन (20 करोड़)बाटे। [[लखनऊ]] एह राज्य के राजधानी हवे।
ब्रिटिश शासन के दौरान 1 अप्रैल 1937 के यूनाइटेड प्रोविंस के नाँव से ई प्रदेश के रूप में बनावल गइल आ आजादी के बाद 1950 में एकर नाँव बदल के '''उत्तर प्रदेश''' रखाइल। 9 नवंबर 2000 के एह राज्य से उत्तरी पहाड़ी इलाका के अलग क के [[उत्तराखंड|उत्तरांचल]] (अब उत्तराखंड) राज्य बनल। वर्तमान में, प्रशासन खातिर ई अठारह गो मंडल आ 75 जिला में बिभाजित कइल गइल बा।
भूगोलीय रूप से ई राज्य [[सिंधु गंगा के मैदान|गंगा के मैदान]] के सपाट हिस्सा में स्थित बा आ इहाँ उष्णकटिबंधीय मानसूनी जलवायु पावल जाले। राज्य के पछिम ओर [[राजस्थान]]; उत्तर-पच्छिम में [[हरियाणा]], [[दिल्ली]] आ [[हिमाचल प्रदेश]]; उत्तर में [[उत्तराखंड]] आ [[नेपाल]]; पूरुब ओर [[बिहार]] आ दक्खिन ओर [[मध्य प्रदेश]] बाड़ें; जबकि एकदम दक्खिन-पूरुब के छोर पर एकर कुछ सीमा [[झारखंड]] आ [[छत्तीसगढ़]] के साथ भी सटल बा। कुल 243,290 बर्ग किलोमीटर (93,933 बर्गमील) रकबा वाला ई राज्य भारत के 7.33% भाग हवे आ चउथा सबसे बड़ राज्य भी हवे।
अर्थब्यवस्था के आकार के मामिला में ई भारत के तीसरा सभसे बड़ राज्य बा जहाँ जीडीपी ₹9,763 बिलियन (US$150 बिलियन) बाटे। खेती आ सर्विस क्षेत्र प्रमुख आर्थिक कामकाज बाड़ें; सर्विस सेक्टर में परिवहन, पर्यटन, होटल, अचल संपत्ति, इंशोरेंस आ फाइनेंस संबंधी चीज सामिल बाटे। [[गाजियाबाद, उत्तर प्रदेश|गाजियाबाद]], [[बुलंदशहर]], [[कानपुर]], [[गोरखपुर]], [[इलाहाबाद]], [[भदोही]], [[रायबरेली]], [[मुरादाबाद]], [[बरेली]], [[अलीगढ़]], [[सोनभद्र]], आ [[बनारस]] एह राज्य में औद्योगिक रूप से महत्व वाला शहर बाने।
प्राचीन आ मध्य्कालीन दौर में उत्तर प्रदेश ताकतवर राज सभ के भूमि रहल बा। इहाँ प्राकृतिक आ इतिहासी पर्यटन के कई जगह बा जइसे की [[आगरा]], बनारस, [[कौशांबी]], [[बलियाँ]], श्रावस्ती, गोरखपुर, [[कुशीनगर]], लखनऊ, इलाहाबाद वगैरह। धार्मिक रूप से [[हिंदू धर्म]] के सबसे प्रमुख शाखा वैष्णव मत के दू गो अवतार [[राम]] आ [[कृष्ण]] एही राज्य में पैदा भइल बतावल जालें आ [[अजोध्या]] आ [[मथुरा]] प्रसिद्ध धार्मिक तीर्थ हवें। गंगा के तीरे बसल बनारस आ गंगा आ यमुना नदी के संगम पर मौजूद इलाहाबाद के हिंदू धरम में बहुत महत्व बा। दूर उत्तर-पूरुब कोना पर मौजूद गोरखपुर नाथ सम्प्रदाय के संस्थापक [[गोरखनाथ]] के भूमि मानल जाले।
== इतिहास ==
=== आदिकाल ===
शिकार आ भोजन संग्रह करे वाला आदिम मनुष्य लोग के उपस्थिति एह इलाका में रहल जहाँ आज के उत्तर प्रदेश बा<ref>{{cite book|url=https://books.google.com/books?id=gMoJj-0Z94UC&pg=PA69|page=69|title=Recent Advances in Indo-Pacific Prehistory: proceedings of the international symposium held at Poona |author=Virendra N. Misra, Peter Bellwood|isbn=90-04-07512-7|accessdate=23 July 2012|year=1985}}</ref><ref>{{cite book|url=https://books.google.com/books?id=r4s-YsP6vcIC&pg=PA58|page=58|title=The Rise of Civilization in India and Pakistan|author=Bridget Allchin, Frank Raymond Allchin|publisher=Cambridge University Press|isbn=0-521-28550-X|accessdate=23 July 2012|date=29 July 1982}}</ref><ref>{{cite book |author1=Hasmukhlal Dhirajlal Sankalia |author2=Shantaram Bhalchandra Deo |author3=Madhukar Keshav Dhavalikar |date=1985 |title=Studies in Indian Archaeology: Professor H.D. Sankalia Felicitation Volume |url=https://books.google.com/books?id=35DP1Z-2dnYC&pg=PA96 |publisher=Popular Prakashan |page=96 |isbn=978-0-86132-088-2}}</ref> आ अनुमान बा की ई लोग<ref>Confidence limits for the age are 85 (±11) and 72 (±8) thousand years ago.</ref> 85,000 से 72,000 साल पहिले इहाँ रहे। इहाँ से पुरापाषाणकाल के चीज भी मिलल बा जे 21,000–31,000 साल पुरान बतावल गइल बा<ref>{{cite journal|last1=Gibling|first1=Sinha|last2=Sinha|first2=Roy|last3=Roy|first3=Tandon|last4=Tandon|first4=Jain|last5=Jain|first5=M|title=Quaternary fluvial and eolian deposits on the Belan river, India: paleoclimatic setting of Paleolithic to Neolithic archeological sites over the past 85,000 years|journal=Quaternary Science Reviews|volume=27|page=391|year=2008|doi=10.1016/j.quascirev.2007.11.001|issue=3–4|ref=harv}}</ref> आ मेसोलिथिक/माइक्रोलिथिक जमाना के आदिम लोग के 10550–9550 ईसा पूर्व के बस्ती के अवशेष [[प्रतापगढ़ जिला]] से मिलल बा जेह में पालतू मवेशी, बकरी आ भेड़ पाले आ खेती के सुरुआत के प्रमाण कम से कम 6000 ईसा पूर्व तक ले के मिलल बा जे धीरे-धीरे c. 4000 से 1500 ईसापूर्व ले बिकसित भइल; सिंधु घाटी सभ्यता आ हड़प्पा संस्कृति के दौर से होत वैदिक काल आ लोहा के जुग ले आइल।<ref>{{cite book|url=https://books.google.com/books?id=W6zQHNavWlsC&pg=PA263|publisher=University of Michigan Press|year= 2000|isbn=0-472-11013-6|page=263|title=God-apes and Fossil Men|author=Kenneth A. R. Kennedy|accessdate=23 July 2012}}</ref><ref>{{cite book|url=https://books.google.com/books?id=r4s-YsP6vcIC&pg=PA119|page=119|publisher=Cambridge University Press|isbn=0-521-28550-X|year=1982|title=The Rise of Civilization in India and Pakistan|author=Bridget Allchin, Frank Raymond Allchin|accessdate=23 July 2012}}</ref><ref>{{cite web|url=http://www.ias.ac.in/jbiosci/nov2001/491.pdf |title=Prehistoric human colonization of India |format=PDF |accessdate=5 April 2012}}</ref>
===प्राचीन जुग===
[[File:Rama in forest.jpg|thumb|upright|left|alt=राम क पेंटिंग, बगल में सीता आ लक्ष्मन भी बाने|राम के बनगमन के दृश्य, सीता आ लछमन के साथ।]]
महाजनपद काल में कोसल राज्य के बिस्तार ओही इलाका में रहे जवन आज के जमाना के उत्तर प्रदेश के सीमा के भीतर आवे ला।<ref name="Sen1999">{{cite book|author=Sailendra Nath Sen|title=Ancient Indian History And Civilization|url=https://books.google.com/books?id=Wk4_ICH_g1EC&pg=PA105|accessdate=1 अक्टूबर 2012|date=1 जनवरी 1999|publisher=New Age International|isbn=978-81-224-1198-0|pages=105–106}}</ref> हिंदू कथा के मोताबिक अवतारी पुरुष राम अजोध्या के राजा रहलन जे कोसल के राजधानी रहे।<ref name="Buck2000">{{cite book|author=William Buck|title=Ramayana|url=https://books.google.com/books?id=vvuIp2kqIkMC|accessdate=1 अक्टूबर 2012|date=1 January 2000|publisher=Motilal Banarsidass Publ.|isbn=978-81-208-1720-3}}</ref> [[कृष्ण]], हिंदू कथा के अन्य पात्र, जिनके महाभारत में प्रमुख भूमिका रहल आ जिनके [[बिष्णु]] के अवतार मानल जाला, उत्तर प्रदेश के मथुरा में पैदा भइल बतावल जालें।<ref name="Sen1999"/> महाभारत के लड़ाई ऊपरी दुआबा आ दिल्ली के आसपास के इलाका में भइल रहल जहाँ कुरु महाजनपद रहल आ पांडव लोग के शासन भइल। इतिहास के हिसाब से कुरु जनपद के काल उहे हवे जे करिया आ लाल माटी के बर्तन वाला जुग हवे, यानि उत्तरी-पच्छिमी भारत में लोहा जुग के सुरुआत, लगभग 1000 ईसा पूर्व के समय।<ref name="Sen1999"/>
दक्खिन भारत पर हमला करे वाला ज्यादातर लोग गंगा के मैदान के इलाका से जरूर गुजरल जेकरा आज के उत्तर प्रदेश कहल जाला। एह इलाका पर कंट्रोल कइल सगरी भारतीय साम्राज्य सभ खातिर बहुत महत्व के चीज रहल बा आ अपना स्थायित्व आ बिकास खातिर सगरी बड़हन साम्राज्य सभ एह इलाका के महत्व दिहले बाने, एह में [[मौर्य साम्राज्य|मौर्य]] (320–200 BC), कुषाण (CE 100–250), गुप्त (350–600), आ गुर्जर-प्रतिहार (650–1036) साम्राज्य के नाँव गिनावल जा सकत बाटे।<ref name="White2010">{{cite book|author=Richard White|title=The Middle Ground: Indians, Empires, and Republics in the Great Lakes Region, 1650-1815|url=https://books.google.com/books?id=fHLfiOZVzmMC|accessdate=1 अक्टूबर 2012|date=8 November 2010|publisher=Cambridge University Press|isbn=978-1-107-00562-4}}</ref> गुप्त साम्राज्य के तूर देवे वाला हूण आक्रमण के पाछे-पाछे गंगा के मैदान के एह इलाका में कन्नौज के उदय भइल।<ref name="Corporation2007">{{cite book|author=Marshall Cavendish Corporation|title=World and Its Peoples: Eastern and Southern Asia|url=https://books.google.com/books?id=V1pQkwIXTG0C&pg=PA331|accessdate=1 अक्टूबर 2012|date=September 2007|publisher=Marshall Cavendish|isbn=978-0-7614-7631-3|pages=331–335}}</ref> हर्षवर्धन (590–647) के राज में कन्नौज के राजघराना अपना चरम पर पहुँच गइल।<ref name="Corporation2007"/> एह समय ई पंजाब से लेके गुजरात ले आ पूरुब में बंगाल से उड़ीसा ले बिस्तार लिहले रहल।<ref name="Sen1999"/> एह में मध्य भारत के कुछ अइसन इलाका भी शामिल रहल जे [[नर्मदा नदी]] के दक्खिन के इलाका रहल, पूरा गंगा-जमुना मैदान टेम्पलेट एकर भाग रहबे कइल।<ref name="Chopra2003"/> वर्तमान भारत में कई समुदाय बाने जे अपना के एह कन्नौज के राज से फइलल लोग के बंसज बतावे ला।<ref name="Bowman2000"/> हर्ष के मउअति के बाद उनके ई साम्राज्य कई राजघराना सभ में टूट गइल, इनहन पर गुर्जर-प्रतिहार लोग आक्रमण कइल आ शासन कइल, एकरा बाद ई लोग के बंगाल के पाल बंस के भी चुनौती दिहल।<ref name="Chopra2003">{{cite book|author=Pran Nath Chopra|title=A Comprehensive History of Ancient India|url=https://books.google.com/books?id=gE7udqBkACwC&pg=PA196|accessdate=1 अक्टूबर 2012|date=1 दिसंबर 2003|publisher=Sterling Publishers Pvt. Ltd|isbn=978-81-207-2503-4|page=196}}</ref> कन्नौज पर दक्खिनी भारत के राष्ट्रकूट बंस के लोग द्वारा आठवी से दसवीं सदी के बीच भी कई गो आक्रमण भइल।<ref>The History of India by Kenneth Pletcher p.102</ref><ref>The City in South Asia by James Heitzman p.37</ref>
===मध्यकाल आ सुरुआती आधुनिक जुग===
16वीं सदी में, फरगाना घाटी (आधुनिक उजबेकिस्तान) के रहे वाला आ तैमूर आ चंगेज खान के बंसज, [[बाबर]] द्वारा खैबर दर्रा से हो के दक्खिनी एशिया में आक्रमण कइल गइल आ [[मुग़ल साम्राज्य]] के स्थापना भइल जेह में वर्तमान समय के अफगानिस्तान, पाकिस्तान, उत्तर भारत आ बांग्लादेश के हिस्सा आवे लें।<ref>[http://www.ucalgary.ca/applied_history/tutor/islam/empires/mughals/ The Islamic World to 1600: Rise of the Great Islamic Empires (The Mughal Empire)] {{webarchive |url=https://web.archive.org/web/20110927121217/http://www.ucalgary.ca/applied_history/tutor/islam/empires/mughals/ |date=27 September 2011 }}</ref> मुग़ल लोग मध्य एशिया के तुर्क लोग के बंसज रहे आ इनहन लोग के बंस में मंगोल पूर्वज लोग के भी मिलावट रहे। मुग़ल काल में उत्तर प्रदेश के इलाका साम्राज्य के हिरदय (हार्टलैंड) नियर बन गइल।<ref name="Bowman2000">{{cite book|author=John Stewart Bowman|title=Columbia Chronologies of Asian History and Culture|url=https://books.google.com/books?id=cYoHOqC7Yx4C&pg=PA273|accessdate=2 अगस्त 2012|year=2000|publisher=Columbia University Press|isbn=978-0-231-11004-4|page=273}}</ref> मुग़ल शासक बाबर आ हुमायूँ [[दिल्ली]] से शासन कइल।<ref name="Schimmel2004">{{cite book|author=Annemarie Schimmel|title=The Empire of the Great Mughals: History, Art and Culture|url=https://books.google.com/books?id=N7sewQQzOHUC|accessdate=1 अक्टूबर 2012|date=5 February 2004|publisher=Reaktion Books|isbn=978-1-86189-185-3}}</ref><ref name="Hindustan)Hiro2006">{{cite book|author1=Babur (Emperor of Hindustan)|author2=Dilip Hiro|title=Babur Nama: Journal of Emperor Babur|url=https://books.google.com/books?id=VW2HJL689wgC|accessdate=1 अक्टूबर 2012|date=1 मार्च 2006|publisher=Penguin Books India|isbn=978-0-14-400149-1}}</ref> साल 1540 में अफगान योद्धा, [[शेर शाह सूरी]] द्वारा मुग़ल बादशाह हुमायूँ के हरा के उत्तर प्रदेश पर अधिकार जमा लिहल गइल।<ref name="Ramirez-Faria2007">{{cite book|author=Carlos Ramirez-Faria|title=Concise Encyclopeida Of World History|url=https://books.google.com/books?id=gGKsS-9h4BYC&pg=PA171|accessdate=2 अगस्त 2012|date=1 January 2007|publisher=Atlantic Publishers & Dist|isbn=978-81-269-0775-5|page=171}}</ref> शेर शाह आ उनके लड़िका इस्लाम शाह द्वारा उत्तर प्रदेश पर ग्वालियर से शासन कइल गइल।<ref name=hindustan>{{cite book|last=Stronge|first=Susan|title=Mughal Hindustan is renowned for its opulence|date=16 अक्टूबर 2012|publisher=The Arts of the Sikh Kingdoms (V&A 1999)|location=London|page=255|url=https://books.google.com/books?id=PVrSYgEACAAJ&dq=hindustan+by+mughal|accessdate=23 July 2012|isbn=9788174366962}}</ref> इस्लाम शाह के मौत के बाद उनके परधानमंत्री हेमू उत्तर प्रदेश के ''डि फैक्टो'' शासक बन गइल अ एह राज में बिहार, मध्य प्रदेश, आ बंगाल के पच्छिमी हिस्सा भी शामिल रहल। हेमू आपन टाइटिल ''हेमचंद्र विक्रमादित्य'' रखलें आ उनके औपचारिक राज्यारोहण दिल्ली के पुराना किला में 7 अक्टूबर 1556 के भइल। पानीपत के दूसरा जुद्ध में हेमू के निधन भइल आ उत्तर प्रदेश पर [[अकबर]] क शासन स्थापित भइल।<ref name="Agrawal1983">{{cite book|author=Ashvini Agrawal|title=Studies In Mughal History|url=https://books.google.com/books?id=AZdCrUxFAHEC&pg=PA30|accessdate=27 July 2012|date=1 January 1983|publisher=Motilal Banarsidass Publ.|isbn=978-81-208-2326-6|pages=30–46}}</ref> अकबर द्वारा [[आगरा]] आ फतेहपुर सीकरी से शासन चलावल गइल।<ref>Fergus Nicoll, ''Shah Jahan: The Rise and Fall of the Mughal Emperor'' (2009)</ref> 18वीं सदी में मुगल साम्राज्य के पतन के बाद खाली जगह के मराठा साम्राज्य द्वारा भरल गइल आ मराठा लोग उत्तर प्रदेश पर हमला कइल जेह में रोहिल्ला लोग हार गइल आ रुहेलखण्ड पर रघुनाथ राव आ मल्हाराव होलकर के शासन हो गइल। मराठा आ रोहिल्ला लोग के बिचा में संघर्ष के अंत भइल 18{{nbsp}}दिसंबर 1788 के, जब नजीबुद्दौला के पोता गुलाम कादिर के महादजी सिंधिया द्वारा हरा के गिरफ्तार क लिहल गइल। 1803 में दूसरा आंग्ल-मराठा जुद्ध के बाद ब्रिटिश ईस्ट इंडिया कंपनी द्वारा मराठा लोग के हरा दिहल गइल आ उत्तर प्रदेश पर [[ब्रिटिश राज|अंग्रेजी राज]] स्थापित हो गइल।<ref>{{cite book
|last = Mayaram
|first = Shail
|title = Against history, against state: counterperspectives from the margins Cultures of history
|year = 2003
|url = https://archive.org/details/againsthistoryag0000maya
|publisher = Columbia University Press, 2003
|isbn = 978-0-231-12731-8}}</ref>
====ब्रिटिश राज में====
{{Infobox
| above = उत्तर प्रदेश के नाँव बदलाव आ क्षेत्र बदलाव के समयरेखा<ref>{{Cite web |url=http://www.hindustantimes.com/lucknow/uttar-pradesh-day-how-the-state-was-born-67-years-back/story-Y2JhCTBIo2UuQYvQSTBNgN.html |title=आर्काइव कॉपी के बा |access-date=2017-06-27 |archive-date=2017-05-03 |archive-url=https://web.archive.org/web/20170503114407/http://www.hindustantimes.com/lucknow/uttar-pradesh-day-how-the-state-was-born-67-years-back/story-Y2JhCTBIo2UuQYvQSTBNgN.html |url-status=dead }}</ref>
| label2 = 1807 | data2 = सीडेड एंड कॉन्कर्ड प्रोविंस
| label3 = 14 नवं 1834 | data3 = आगरा प्रेसिडेंसी
| label4 = 1 जन 1836 | data4 = नार्थ-वेस्टर्न प्रोविंस
| label5 = 3 अप्रै 1858 | data5 = ब्रिटिश अवध अलग भइल, दिल्ली के नार्थ-वेस्टर्न प्रोविंस से बिलगा के पंजाब में सामिल कइल गइल
| label6 = 1 अप्रै 1871 | data6 = अजमेर, मेवाड़ आ केकरी के अलग कमिश्नर-शिप में डालल गइल
| label7 = 15 फर 1877 | data7 = नार्थ वेस्टर्न प्रोविंस में अवध के शामिल कइल गइल
| label8 = 22 मार्च 1902 | data8 = 'आगरा अवध संजुक्त प्रांत' नाँव कइल गइल
| label9 = 3 जन 1921 | data9 = 'ब्रिटिश भारत के संजुक्त प्रांत' नाँव कइल गइल
| label10 = 1 अप्रै 1937 | data10 = 'संजुक्त प्रान्त (यूनाइटेड प्रोविंस)' नाँव कइल गइल
| label11 = 1 अप्रै 1946 | data11 = खुद शासन के स्वीकार कइल गइल
| label12 = 15 अग 1947 | data12 = आजाद भारत के राज्य
| label13 = 24 जन 1950 | data13 = नाँव बदल के 'उत्तर प्रदेश' कइल गइल
| label14 = 9 नवं 2000 | data14 = वर्तमान [[उत्तराखंड]] के 'उत्तरांचल' के नाँव से अलग राज्य बनावल गइल।
}}
18वीं सदी के दूसरा हिस्सा में उत्तर भारत में कई गो लड़ाई, बंगाल से सुरू हो के पच्छिम के ओर बढ़त क्रम में, भइल आ इलाका धीरे-धीरे ब्रिटिश ईस्ट इंडिया कंपनी के शासन में आ गइल।<ref name="Kudaisya2006">{{cite book |author=Gyanesh Kudaisya |title=Region, nation, "heartland": Uttar Pradesh in India's body-politic |year=1994 |publisher=LIT Verlag Münster |isbn=978-3-8258-2097-8 |pages=126–376}}</ref> [[अजमेर]] आ [[जयपुर]] के राजघराना एही कंपनी राज में नार्थ-वेस्टर्न टेरीटरी (उत्तर-पच्छिमी इलाका) में शामिल कइल गइल रहल आ एकर नाँव तब "नार्थ-वेस्टर्न प्रोविंस" (आगरा के) रखल गइल रहे। बाद में यूपी भारत के पाँचवाँ सभसे बड़ राज्य बनल, बाकिर ई तबो ब्रिटिश भारत के सभसे छोट राज्य रहे।<ref name="Sivaramakrishnan1999">{{cite book|author=K. Sivaramakrishnan|title=Modern Forests: Statemaking and Environmental Change in Colonial Eastern India|url=https://books.google.com/books?id=TM7oYBG4M04C&pg=PA240|accessdate=26 July 2012|date=3 December 1999|publisher=Stanford University Press|isbn=978-0-8047-4556-7|pages=240–276}}</ref> एकर राजधानी दू बेर आगरा आ इलाहाबाद के बीच एहर-ओहर कइल गइल।<ref>{{cite book |title=Town Planning Regeneration of Cities|author=Ashutosh Joshi|publisher=New India Publishing|date= 1 जनवरी 2008|isbn=8189422820 |page=237 |url=https://books.google.com/books?id=UFaGME0XDBkC&pg=PA151&dq=Naini&hl=en&sa=X&ei=CN7OUsznI8yTrgeDwYDgCw&ved=0CDEQ6AEwATgU#v=onepage&q=Allahabad%20capital&f=false }}</ref>
ब्रिटिश शासन से गम्हिराहे असंतोख के चलते बंगाल रेजीमेंट के सिपाही लोग जे मेरठ में तैनात रहल, बिद्रोह क दिहल। एह घटना में उत्तर प्रदेश के [[मंगल पांडे]] के बिद्रोह के सुरुआत करे के श्रेय दिहल जाला।<ref name="Mukherjee2005">{{cite book|author=Rudrangshu Mukherjee|title=Mangal Pandey: brave martyr or accidental hero?|url=https://books.google.com/books?id=-SluAAAAMAAJ|accessdate=1 अक्टूबर 2012|date=1 जून 2005|publisher=पेंगुइन बुक्स|isbn=978-0-14-303256-4}}</ref> एकरे बाद क्रम से बिद्रोह के बिस्तार होत गइल आ इतिहास में ई [[1857 के बिद्रोह]] भा भारत के पहिली आजादी के लड़ाई के रूप में देखल जाला। कानपुर में नाना साहेब, तात्यां टोपे, आ अजीमुल्ला, लखनऊ में बेगम हजरत महल, झाँसी में रानी लक्ष्मीबाई, बरेली में खान बहादुर खान, फैजाबाद में मौलवी अहमदुल्लाह, कालपी में ताँत्या टोपे, इलाहाबाद में लियाकत अली, मेरठ में कदम सिंह आ मथुरा में देवी सिंह एह बिद्रोह के अगुआई कइल लोग। कुछ दिन बाद जब ब्रिटिश सासन दोबारा आपन सत्ता कायम क लिहलस, 1 नवंबर 1958 के इलाहाबाद में दरबार के आयोजन कइल गइल आ लार्ड कैनिंग महारानी के घोषणापत्र पढ़लें आ एकरे बाद भारत के सत्ता ईस्ट इंडिया कंपनी के हाथ से सीधे इंग्लैंड के महारानी के हाथ में चल गइल। बिद्रोह के बिफलता के बाद के राजीनीतिक स्थिति में अंग्रेज लोग आपन स्थिति अउरी पोढ़ करे खाती बिद्रोही प्रदेश सभ के बाँट के नया तरीका से राजनीतिक बिभाजन कइल। नार्थ-वेस्ट प्रोविंस के दिल्ली इलाका के पंजाब के संघे बिलय क दिहल गइल, अजमेर आ मारवाड़ के राजपुताना में बिलय कइल गइल, अवध के नया राज्य के रूप में स्थापित कइल गइल आ एकर नाँव 'नार्थ वेस्टर्न प्रोविंस ऑफ आगरा एंड अवध' रखल गइल, जेकरा के 1902 में 'यूनाइटेड प्रोविंस ऑफ आगरा एंड अवध' क दिहल गइल।<ref name="(India)Drake-Brockman1934">{{cite book|author1=United Provinces of Agra and Oudh (India)|author2=D.L. Drake-Brockman|title=District Gazetteers of the United Provinces of Agra and Oudh: supp.D.Pilibhit District|url=https://books.google.com/books?id=VUNuAAAAMAAJ|accessdate=1 अक्टूबर 2012|year=1934|publisher=Supdt., Government Press, United Provinces}}</ref> आमतौर पर एकरा के यूनाइटेड प्रोविंस भा यूपी कहल जाए लागल।<ref name="Chakrabarti1997">{{cite book|author=Dilip K. Chakrabarti|title=Colonial Indology: sociopolitics of the ancient Indian past|url=https://books.google.com/books?id=ADZuAAAAMAAJ|accessdate=26 जुलाई 2012|date=1 जून 1997|publisher=Munshiram Manoharlal Publishers Pvt. Ltd.|location=Michigan|isbn=978-81-215-0750-9|page=257}}</ref><ref name="Cohn1996">{{cite book|author=Bernard S. Cohn|title=Colonialism and Its Forms of Knowledge: The British in India|url=https://books.google.com/books?id=uIalYaenrTkC|accessdate=26 जुलाई 2012|date=19 अगस्त 1996|publisher=प्रिंसटन यूनिवर्सिटी प्रेस|isbn=978-0-691-00043-5|page=189}}</ref>
1920 में राजधानी के इलाहाबाद से लखनऊ ले जाइल गइल। हाईकोर्ट के इलाहाबादे में रहे दिहल गइल बाकी एगो बेंच के स्थापना लखनउओ में कइल गइल। इलाहाबाद आज भी बिबिध प्रशासनिक आ सरकारी बिभागन के मुख्यालय बा आ महत्व के शहर हवे।<ref name="Nair2004">{{cite book|author=K. Balasankaran Nair|title=Law Of Contempt Of Court In India|url=https://books.google.com/books?id=gujNYPcNETMC|accessdate=26 जुलाई 2012|date=1 जनवरी 2004|publisher=अटलांटिक पब्लिशर्स & डिस्ट्री॰|isbn=978-81-269-0359-7|page=320}}</ref> उत्तर प्रदेश भारत के राजनीति में आपन केंद्रीय महत्व बाद में भी कायम रखले रहल आ भारत के आजादी के लड़ाई में ई इलाका बहुत गरमागरमी वाला रहल। एही दौर में उत्तर प्रदेश में बनारस हिंदू विश्वविद्यालय, अलीगढ़ मुस्लिम विश्वविद्यालय, आ दारुल-उलूम देवबंद जइसन आधुनिक शिक्षा के केंद्र सभ के स्थापना भइल। क्रांतिकारी लोग में राम प्रसाद बिस्मिल आ चंद्रशेखर आजाद नियर लोग आ मोतीलाल नेहरू, जवाहरलाल नेहरू, मदन मोहन मालवीय, गोबिंद बल्लभ पंत नियर लोग उत्तर प्रदेश के रहल जे भारत के आजादी के आंदोलन में राष्ट्रीय स्तर पर सक्रिय रहल आ एकर अगुआई कइल। कांग्रेस के लखनऊ सत्र में 11 अप्रैल 1936 के आल इंडिया किसान सभा के स्थापना भइल आ परसिद्ध राष्ट्रवादी स्वामी सहजानंद सरस्वती के पहिला अध्यक्ष बनावल गइल,<ref>{{cite book
| first = Bandyopādhyāya
| last = Śekhara
| title = From Plassey to Partition: A History of Modern India
| publisher = Orient Longman
| year = 2004
| isbn = 978-81-250-2596-2
| page = 407
}}</ref> एकर मकसद ढेर दिना से चल आइल रहल खेतिहर लोग के असंतोख के दूर कइल आ जमींदारी ब्यवस्था के तहत बड़हन भूस्वामी लोग के द्वारा खेतिहर लोगग के जमीन अधिकार पर हमला के खिलाफ खेतिहर लोग के आगे कइल आ भारत में किसान आंदोलन के सुरुआत कइल भी एकर उद्देश्य रहल।<ref>{{cite book
| first = Śekhara
| last = Bandyopādhyāya
| title = From Plassey to Partition: A History of Modern India
| publisher = Orient Longman
| year = 2004
| isbn = 978-81-250-2596-2
| page = 406
}}</ref> सन 1942 के भारत छोड़ो आंदोलन में, [[बलियाँ]] जिला में चित्तू पांडे के अगुआई में ब्रिटिश राज के कुछ दिन खातिर खतम क दिहल गइल रहे। बलियाँ के, एकरे आजादी के लड़ाई में उग्र योगदान खातिर "बागी बलियाँ" के नाँव से जानल जाला।<ref name="Chatterji2006">{{cite book|author=Bankim Chandra Chatterji|title=Anandamath|url=https://books.google.com/books?id=7Gmjn63ogDUC|accessdate=26 July 2012|date=15 जनवरी 2006|publisher=Orient Paperbacks|isbn=978-81-222-0130-7|page=168}}</ref>
====आजादी के बाद====
भारत के आजादी के बाद, यूनाइटेड प्रोविंस के नाँव बदल के "उत्तर प्रदेश" कइल गइल, एकर छोट नाँव यूपी के ओही तरे रखे खातिर,<ref>{{cite web|title=Uttar Pradesh - States and Union Territories |url=http://www.archive.india.gov.in/knowindia/state_uts.php?id=28 |website=Know India: National Portal of India |accessdate=14 जुलाई 2015}}</ref><ref>{{cite web |title=Uttar Pradesh |url=http://www.whatisindia.com/issues/uttarpra/uttar_general.html |publisher=What is India |accessdate=8 अक्टूबर 2016 |date=22 अगस्त 2007}}</ref> एकरा संबंधी नोटिफिकेशन के संघ के गजट में 24 जनवरी 1950 के छापल गइल।<ref>{{Cite web |last=archive |first=From our online |date=2017-05-02 |title=Uttar Pradesh introduces new transfer policy |url=https://www.newindianexpress.com/nation/2017/May/02/uttar-pradesh-introduces-new-transfer-policy-1600219.html |access-date=2026-01-13 |website=The New Indian Express |language=en}}</ref> ई राज्य से अबले आठ गो भारतीय परधानमंत्री हो चुकल बा लोग आ संसद में लोकसभा में सभसे ढेर हिस्सेदारी एही राज्य के बा। एकरा बावजूद भी, राजीनीतिक रूप से एतना महत्व वाला ई राज्य अपराध आ भ्रष्टाचार के चलते आर्थिक आ सामाजिक रूप से पिछड़पन के सिकार बा। जातीय आ सामुदायिक हिंसा से कई बेर परभावित भइल बा।<ref>{{cite news|title=Communal violence|url=http://www.business-standard.com/article/current-affairs/uttar-pradesh-tops-home-ministry-list-on-communal-violence-114080601639_1.html |accessdate=25 अगस्त 2014 |work=[[बिजनेस स्टैंडर्ड]] |agency=कोटक महिंद्रा बैंक |publisher=आनंद प्रकाशन |date=6 अगस्त 2014}}</ref> 1992 में अजोध्या में बाबरी महजिद के ध्वस्त करे के घटना के बाद राज्य में आ भारत भर में हिंसा भइल।<ref name="communal violence">{{cite news|last=communal violence|first=in uttar pradesh|title=Communal conflicts in state|url=http://www.tehelka.com/what-led-to-the-muzaffarnagar-communal-riots/|accessdate=12 January 2014|newspaper=Tehalka|archive-date=12 January 2014|archive-url=https://web.archive.org/web/20140112232933/http://www.tehelka.com/what-led-to-the-muzaffarnagar-communal-riots/|url-status=dead}}</ref> साल 2000 एकर उत्तरी पहाड़ी भाग के बिलगा के अलग राज्य [[उत्तराखंड]] बनावल गइल।<ref name=separation>{{cite book |author1=J. C. Aggarwal |author2=S. P. Agrawal |date=1995 |title=Uttarakhand: Past, Present, and Future |url=https://books.google.com/books?id=alRh51xE_v0C&pg=PA391 |publisher=Concept Publishing Company of India |page=391 |isbn=978-81-7022-572-0}}</ref>
== भूगोल ==
<!-- {{Main article|उत्तर प्रदेश के भूगोल}} -->
[[File:Indo-Gangetic Plain.jpg|thumb|alt="photograph"|गंगा के मैदान के हिस्सा]]
उत्तर प्रदेश के कुल रकबा 2,43,290 बर्ग किलोमीटर बा, आ एह मायने में ई भारत के चउथा सभसे बड़हन राज्य बा। ई भारत के उत्तरी भाग में स्थित बा आ एकर अंतरराष्ट्रीय चौहद्दी नेपाल के साथ बा। एह राज्य के उत्तर में हिमालय परबत शुरू हो जाला,<ref name=land>{{cite web|title=Most critical factors|url=http://upenvis.nic.in/Database/Land_830.aspx|publisher=Uttar Pradesh climate department|accessdate=22 जुलाई 2012}}</ref> बाकी प्रदेश के ज्यादातर इलाका मैदानी बा आ ई मैदान हिमालय के पहाड़ी इलाका के तुलना में एकदम्मे अलग चीज बाड़ें।<ref name=Geography>{{cite web|title=Uttar Pradesh Geography|url=http://www.uponline.in/About/Profile/Geography/index.html|publisher=Uttar Pradesh State Profile|accessdate=22 July 2012|archive-date=23 July 2012|archive-url=https://web.archive.org/web/20120723070728/http://www.uponline.in/About/Profile/geography/index.html|url-status=dead}}</ref> मैदानी इलाका के भी कई भाग में बाँटल जाला: ऊपरी गंगा मैदान, गंगा-जमुना दुआबा, घाघरा मैदान, आ तराई के मैदान।<ref name=Terai>{{cite web|title=The larger Gangetic Plain|url=http://www.gecafs.org/publications/Publications/IGP_Paper.pdf|publisher=Gecafs|accessdate=22 July 2012|archive-date=26 December 2013|archive-url=https://web.archive.org/web/20131226202743/http://www.gecafs.org/publications/Publications/IGP_Paper.pdf|url-status=dead}}</ref> प्रदेश के दक्खिनी इलाका में [[बिंध्य परबत श्रेणी|बिंध्य परबत]] के पठारी हिस्सा बा।<ref name=autogenerated8>{{cite web|title=Gangetic Plains and Vindhya Hills and plateau. |url=http://zeenews.india.com/state-elections-2012/up/profile.html/2 |publisher=[[Zee news]] |accessdate=22 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120406104938/http://zeenews.india.com/state-elections-2012/up/profile.html/2 |archivedate=6 April 2012 }}</ref> ई दक्खिनी हिस्सा में मुख्य रूप से कड़ेर चट्टानी इलाका, पहाड़ी आ पठार आ मैदानी घाटी पावल जालीं। मैदान के उत्तरी हिस्सा में भाबर आ तराई के इलाका पावल जाला, तराई में दलदली जमीन, जंगल आ लमहर हाथी घास पावल जाले।<ref name="BhargavaBhatt2005"/> भाबर के इलाका में नदी सभ के पानी काफी हद तक जमीन के नीचे (अंडरग्राउंड) बहे ला आ तराई के समानांतर ई पातर पट्टी के रूप में बा।<ref name="BhargavaBhatt2005"/> मुख्य मैदानी इलाका के तीन हिस्सा में बाँटल जाला: पूरबी उत्तर प्रदेश, जेह में 14 गो जिला सामिल बाने, अक्सर सूखा या बाढ़ के स्थिति पैदा हो जाले, बहुत घन आबादी होखे के कारण प्रति बेकती जमीन के रकबा कम बा आ बिपन्नता के इलाका मानल जाला; बिचला उत्तर प्रदेश आ पच्छिमी उत्तर प्रदेश के स्थिति कुछ बेहतर बा आ नहर इत्यादी के बिकास के कारण सिंचनी के सुबिधान बा।<ref name="BhargavaBhatt2005"/> उत्तर प्रदेश के कई इलाका सभ में जलजमाव (वाटरलॉगिंग) या फिर ऊसर जमीन के टुकड़ा भी पावल जालें।<ref name="BhargavaBhatt2005">{{cite book|author1=Gopal K. Bhargava|author2=Shankarlal C. Bhatt|title=Land and people of Indian states and union territories. 28. Uttar Pradesh|url=https://books.google.com/books?id=FCG5hGZ-hJsC&pg=PA31|accessdate=5 अक्टूबर 2012|year=2005|publisher=Gyan Publishing House|isbn=978-81-7835-384-5|pages=31–33}}</ref> एकरे अलावा, राज्य के बहुत सारा हिस्सा सूखा वाला इलाका भी बा। राज्य में कुल 32 गो गिनावे लायक छोट-बड़ नदी बाड़ी जिनहन में गंगा, यमुना, सरजू, बेतवा वगैरह के हिंदू धरम में भी महत्व बाटे।<ref name=rivers>{{cite news|title=Rivers of Uttar Pradesh|url=http://economictimes.indiatimes.com/topiclist/Rivers-of-Uttar-Pradesh|publisher=[[The Economic Times]]|accessdate=22 July 2012}}</ref>
उत्तर परदेश में गहन खेती होला।<ref name=glossary>{{cite web|title=The Glossary of Meteorology |url=http://amsglossary.allenpress.com/glossary/preface2 |publisher=Allen Press Inc. |accessdate=23 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20121005143046/http://amsglossary.allenpress.com/glossary/preface2 |archivedate=5 अक्टूबर 2012 }}</ref> मैदानी हिस्सा के निचला इलाका सभ में बहुत उपजाऊँ जमीन बा। कुछ पहाड़ी ढाल सभ पर भी गहन खेती होले हालाँकि ई सिंचनी के सुबिधा पर निर्भर होला।<ref name=Irrigation>{{cite web|title=Potential Creation and Utilisation|url=http://irrigation.up.nic.in/aboutus_irrigation_potential.htm|publisher=Irrigation department U.P|accessdate=22 July 2012|archive-date=13 February 2012|archive-url=https://web.archive.org/web/20120213084300/http://irrigation.up.nic.in/aboutus_irrigation_potential.htm|url-status=dead}}</ref> शिवालिक के पहाड़ी ढाल, जे एह प्रदेश के सभसे उत्तरी हिस्सा में बाने, के बाद तुरंते नीचे दक्खिन के ओर "भाबर" के इलाका हवे जहाँ हिमालयी नदी सभ द्वारा ले आइल बोल्डर आ मोट बालू के बनल जमीन हवे।<ref name=Preface>{{cite web|title=Purports to define every important meteorological term likely to be found in the literature today. |url=http://amsglossary.allenpress.com/glossary/preface1 |publisher=Allen Press,Inc. |accessdate=22 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120712214139/http://amsglossary.allenpress.com/glossary/preface1 |archivedate=12 July 2012 }}</ref> तराई आ भाबर के एह पातर पट्टी में इतिहासी रूप से घन [[बन]] रहल हवें, अभिन ले भी कुछ इलाका में बन मिले लें।<ref name="Singh1998">{{cite book|author=Vir Singh|title=Mountain Ecosystems: A Scenario of Unsustainability|url=https://books.google.com/books?id=SX7ML4-0oGQC&pg=PA102|accessdate=27 July 2012|publisher=Indus Publishing|isbn=978-81-7387-081-1|pages=102–264}}</ref>
===जलवायु===
<!-- {{main article|उत्तर प्रदेश के जलवायु}} -->
[[File:Monsoon clouds Lucknow.JPG|thumb|alt=refer to adjacent text|लखनऊ शहर के ऊपर मानसून के बादर।]]
उत्तर प्रदेश में [[नम उपोष्णकटिबंधी जलवायु]] होले आ साल में चार गो [[सीजन]] होला।<ref name="Board2008" /> दिसंबर से फरवरी के बीच जाड़ा, आ मार्च से मई ले गरमी के सीजन होला। एकरे बाद [[मानसून]] के सीजन आवे ला जून से सितंबर ले रहे ला।<ref name=Climate>{{cite web|title=Climate change impacts|url=http://upenvis.nic.in/Database/Climate_861.aspx|publisher=Uttar Pradesh climate department|accessdate=22 July 2012}}</ref> गर्मी के सीजन बहुत ढेर अतिमान वाला होला जब अधिकतम तापमान 48 °C से ऊपर ले चहुँप जाला।<ref name=climate009>{{cite web|title=Climate|url=http://www.webindia123.com/uttar/index.htm|publisher=Uttar Prades:Land. Suni System (P) Ltd.|accessdate=5 अगस्त 2012}}</ref> गंगा के मैदान में जलवायु उप-आर्द्र से ले के अर्द्ध-शुष्क के बीच पावल जाले।<ref name=Climate/> राज्य के औसत सालाना बरखा 650 मिमी होले जबकि उत्तरी-पूरबी कोने के जिला सभ में ई 1000 मिमी होले,<ref name=rainfall>{{cite web|last=Government of Uttar Pradesh, Lucknow|first=Irrigation Department Uttar Pradesh|title=Average rainfall pattern of Uttar Pradesh|url=http://idup.gov.in/wps/portal/!ut/p/c0/04_SB8K8xLLM9MSSzPy8xBz9CP0os3ifUEcnYzdTEwMLVy8TA89gU38XT-8AIwM3A_2CbEdFAHA_W1g!|publisher=Irrigation Department Uttar Pradesh|accessdate=22 July 2012|archive-date=24 August 2012|archive-url=https://web.archive.org/web/20120824174636/http://idup.gov.in/wps/portal/!ut/p/c0/04_SB8K8xLLM9MSSzPy8xBz9CP0os3ifUEcnYzdTEwMLVy8TA89gU38XT-8AIwM3A_2CbEdFAHA_W1g!|url-status=dead}}</ref> क्रम से पच्छिम के ओर बरखा के मात्रा में कमी आवत जाले। इहाँ ज्यादातर बरखा मानसून के बंगाल के खाड़ी वाली शाखा से होला। जाड़ा के सीजन में भी कुछ बरखा होले जे पच्छिमी डिस्टर्बेंस के कारण होले आ चक्रवाती प्रकार के होले।<ref name="Board2008">{{cite book|author=Upkar Prakashan - Editorial Board|title=Uttar Pradesh General Knowledge|url=https://books.google.com/books?id=_ce8FpJzR-4C&pg=PA26|accessdate=9 मार्च 2011|year=2008|publisher=Upkar Prakashan|isbn=978-81-7482-408-0|pages=26–}}</ref><ref name=WesDist>{{cite news|last=Sethi|first=Nitin|title=Met dept blames it on 'western disturbance'|url=http://articles.timesofindia.indiatimes.com/2007-02-13/india/27887812_1_met-dept-disturbance-rains|accessdate=9 मार्च 2011|newspaper=दि टाइम्स ऑफ इंडिया|date=13 February 2007|archive-date=2011-08-11|archive-url=https://web.archive.org/web/20110811031649/http://articles.timesofindia.indiatimes.com/2007-02-13/india/27887812_1_met-dept-disturbance-rains|url-status=dead}}</ref>
{{Weather box
|location = उत्तर प्रदेश
|metric first = yes
|single line = yes
|Jan high C = 29.9
|Feb high C = 31.9
|Mar high C = 35.4
|Apr high C = 37.7
|May high C = 36.9
|Jun high C = 31.7
|Jul high C = 28.4
|Aug high C = 27.4
|Sep high C = 29.4
|Oct high C = 31.4
|Nov high C = 30.1
|Dec high C = 28.9
|year high C =
|Jan low C = 11.0
|Feb low C = 12.1
|Mar low C = 15.8
|Apr low C = 19.9
|May low C = 22.4
|Jun low C = 22.9
|Jul low C = 22.2
|Aug low C = 21.6
|Sep low C = 20.8
|Oct low C = 18.5
|Nov low C = 14.4
|Dec low C = 11.5
|year low C =
|precipitation colour = green
|Jan precipitation mm = 0
|Feb precipitation mm = 3
|Mar precipitation mm = 2
|Apr precipitation mm = 11
|May precipitation mm = 40
|Jun precipitation mm = 138
|Jul precipitation mm = 163
|Aug precipitation mm = 129
|Sep precipitation mm = 155
|Oct precipitation mm = 68
|Nov precipitation mm = 28
|Dec precipitation mm = 4
|year precipitation mm =
|Jan precipitation days = 0.1
|Feb precipitation days = 0.3
|Mar precipitation days = 0.3
|Apr precipitation days = 1.1
|May precipitation days = 3.3
|Jun precipitation days = 10.9
|Jul precipitation days = 17.0
|Aug precipitation days = 16.2
|Sep precipitation days = 10.9
|Oct precipitation days = 5.0
|Nov precipitation days = 2.4
|Dec precipitation days = 0.3
|Jan sun = 291.4
|Feb sun = 282.8
|Mar sun = 300.7
|Apr sun = 303.0
|May sun = 316.2
|Jun sun = 186.0
|Jul sun = 120.9
|Aug sun = 111.6
|Sep sun = 177.0
|Oct sun = 248.44
|Nov sun = 270.0
|Dec sun = 288.3
|year sun =
|source 1 =<ref>{{cite web|url=http://125.21.185.44/citywx/city_weather1.php?id=42369 |title=Local Weather Report |publisher=Local Weather Report and Forecast Department |date=21 May 2012 |accessdate=18 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120501134209/http://125.21.185.44/citywx/city_weather1.php?id=42369 |archivedate=1 May 2012 }}</ref>||date=जून 2012
}}
<!-- [[File:Anandabodhi.jpg|thumb|alt=refer to adjacent text|Anandabodhi tree in Jetavana Monastery, [[Sravasti]]]]
[[File:Tropaeolum majus.jpg|thumb|right|alt=Tropaeolum majus|A hybrid nasturtium (''[[Tropaeolum majus]]'') showing nectar spur, found mainly in [[Hardoi district]]]]
-->
<center>
{| class="wikitable" style="text-align:center"
| colspan="13" style="text-align:center;font-size:120%;background:#E8EAFA;"|उत्तर प्रदेश के बिबिध शहर सभ के औसत ऊपरी आ निचला तापमान
|- style="background:#e5afaa; color:#000"
| '''शहर'''
| '''जन'''
| '''फर'''
| '''मार्च'''
| '''अप्रै'''
| '''मई'''
| '''जून'''
| '''जुल'''
| '''अग'''
| '''सित'''
| '''अक्टू'''
| '''नवं'''
| '''दिसं'''
|- style="background:#f8f3ca; color:#000"
|[[लखनऊ]]<ref name=lucknowweather>{{cite web|title=Weather Report & Forecast for Lucknow |url=http://www.imd.gov.in/section/climate/lucknow.htm |publisher=India Meteorological Department |accessdate=5 अक्टूबर 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20130208074134/http://www.imd.gov.in/section/climate/lucknow.htm |archivedate= 8 February 2013 |df= }}</ref>
| 73/44
| 79/49
| 90/58
| 101/69
| 105/76
| 102/81
| 92/79
| 90/78
| 92/76
| 91/66
| 79/53
| 75/45
|- style="background:#c5dfe1; color:#000"
| [[कानपुर]]<ref name=kanpurweather>{{cite web|title=Weather Report & Forecast for Kanpur |url=http://www.imd.gov.in/section/climate/kannur2.htm |publisher=India Meteorological Department |accessdate=5 अक्टूबर 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20140202134824/http://www.imd.gov.in/section/climate/kannur2.htm |archivedate=2 February 2014 }}</ref>
| 91/71
| 92/72
| 92/75
| 93/78
| 92/78
| 85/74
| 84/73
| 84/72
| 88/78
| 88/74
| 89/74
| 90/71
|- style="background:#f8f3ca; color:#000"
| [[गाजियाबाद]]<ref name=ghazForecast>{{cite web|title=Weather Report & Forecast for Ghaziabad |url=http://www.weather.com/weather/wxclimatology/monthly/INXX0051 |publisher=India Meteorological Department |accessdate=24 September 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20131113174957/http://www.weather.com/weather/wxclimatology/monthly/INXX0051 |archivedate=13 November 2013 }}</ref>
| 70/45
| 73/50
| 84/59
| 97/70
| 102/79
| 100/82
| 93/81
| 91/79
| 93/75
| 91/66
| 82/55
| 73/46
|- style="background:#c5dfe1; color:#000"
| [[इलाहाबाद]]<ref name=AllahabadForecast>{{cite web|title=Weather Report & Forecast for Allahabaad |url=http://www.imd.gov.in/section/climate/allahabad2.htm |publisher=India Meteorological Department |accessdate=24 September 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20121031015105/http://www.imd.gov.in/section/climate/allahabad2.htm |archivedate=31 अक्टूबर 2012 }}</ref>
| 74/47
| 81/52
| 92/62
| 103/73
| 108/80
| 104/83
| 93/79
| 91/78
| 92/77
| 92/69
| 86/57
| 77/49
|- style="background:#f8f3ca; color:#000"
| [[आगरा]]<ref name=agraweather>{{cite web|title=Weather Report & Forecast for Agra |url=http://www.imd.gov.in/section/climate/agra2.htm |publisher=India Meteorological Department |accessdate=5 अक्टूबर 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20140202135110/http://www.imd.gov.in/section/climate/agra2.htm |archivedate=2 February 2014 }}</ref>
| 72/45
| 75/51
| 90/60
| 101/72
| 107/80
| 105/84
| 95/79
| 91/78
| 93/76
| 93/67
| 85/55
| 75/47
|- style="background:#c5dfe1; color:#000"
| [[बनारस]]<ref name=varaweather>{{cite web|title=Weather Report & Forecast for Varanasi |url=http://www.imd.gov.in/section/climate/varanasi2.htm |publisher=India Meteorological Department |accessdate=5 अक्टूबर 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120709160100/http://www.imd.gov.in/section/climate/varanasi2.htm |archivedate=9 July 2012 }}</ref>
| 74/47
| 80/52
| 92/61
| 102/72
| 106/80
| 102/83
| 92/79
| 91/794
| 91/77
| 90/69
| 85/57
| 76/49
|- style="background:#f8f3ca; color:#000"
| [[गोरखपुर]]<ref name=gorweather>{{cite web|title=Weather Report & Forecast for Gorakhpur |url=http://www.imd.gov.in/section/climate/gorakhpur2.htm |publisher=India Meteorological Department |accessdate=5 अक्टूबर 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20100109193600/http://www.imd.gov.in/section/climate/gorakhpur2.htm |archivedate=9 January 2010 }}</ref>
| 74/49
| 80/53
| 91/72
| 103/77
| 99/79
| 92/78
| 91/78
| 91/76
| 91/70
| 85/59
| 76/51
| 76/49
|- style="background:#c5dfe1; color:#000"
| [[बरेली]]<ref name=bareiweather>{{cite web|title=Weather Report & Forecast for Bareilly |url=http://www.imd.gov.in/section/climate/bareilly2.htm |publisher=India Meteorological Department |accessdate=5 अक्टूबर 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120603055234/http://www.imd.gov.in/section/climate/bareilly2.htm |archivedate=3 जून 2012 }}</ref>
| 71/47
| 77/57
| 88/60
| 99/70
| 105/77
| 102/81
| 93/79
| 91/78
| 92/76
| 90/67
| 83/56
| 74/48
|}</center>
==बनस्पति आ जियाजंतु==
{| class="toccolours" style="margin:1em; float:right; width:25%;"
|+ '''उत्तर प्रदेश के राजकीय चीन्हा'''<ref>{{cite web |url=http://www.pannatigerreserve.in/kids/state.htm |title=State Animal, Bird, Tree and Flower |website=Panna Tiger Reserve |accessdate=29 अगस्त 2014 |archive-date=2014-10-13 |archive-url=https://web.archive.org/web/20141013002319/http://www.pannatigerreserve.in/kids/state.htm |url-status=dead }}</ref><ref name="dance">{{cite web |title=Music & Dance |url=http://uptourism.gov.in/pages/top/experience/top-experience-music-and-dance |website=uptourism.gov.in |publisher=''Uttar Pradesh Tourism'' |accessdate=3 मार्च 2017 |archive-date=2017-01-23 |archive-url=https://web.archive.org/web/20170123210405/http://www.uptourism.gov.in/pages/top/experience/top-experience-music-and-dance |url-status=dead }}</ref>
|-
| '''राजकीय पशु'''
| बारहसिंगा || [[File:The barasingha.jpg|50px]]
|-
| '''राजकीय पक्षी'''
| [[सारस]] || [[File:Grus antigone Luc viatour.jpg|50px]]
|-
| '''राजकीय वृक्ष'''
| अशोक || [[File:Ashoka (Polyalthia longifolia) flowers W IMG 7050.jpg|50px]]
|-
| '''राजकीय फूल'''
| पलाश || [[File:STS 001 Butea monosperma.jpg|50px]]
|-
| '''राजकीय नाच'''
| कत्थक || [[File:Kathak 3511900193 986f6440f6 b retouched.jpg|50px]]
|-
| '''राजकीय खेल'''
| हाकी || [[File:Field hockey.jpg|50px]]
|}
{{Multiple image
| align = left
| direction = vertical
| header =
| header_align = left/right/center
| header_background =
| footer =
| footer_align = left/right/center
| footer_background =
| width = 220
| image1 = Ganges calling.jpg|thumb
| width1 =
| alt1 =
| caption1 = [[तराई]] के इलाका
| image2 = Gavialis gangeticus, ZOO Praha 045.jpg|thumb
| width2 =
| alt2 =
| caption2 =[[घड़ियाल]] (''Gavialis gangeticus'') [[गंगा नदी]] में पावल जाला
}}
राज्य में प्राकृतिक संसाधन पर्याप्त रूप से मौजूद बा।<ref name=Flora>{{cite web|title=Uttar Pradesh Forest Corporation |url=http://www.upforestcorporation.in/Default.aspx |publisher=Forest department uttar pradesh |accessdate=23 जुलाई 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20130120145111/http://www.upforestcorporation.in/Default.aspx |archivedate=20 January 2013 |df= }}</ref> साल 2011 में राज्य में कुल दर्ज कइल गइल बन क्षेत्र {{convert|16583|km2|sqmi|abbr=on}} रहे जे राज्य के कुल भूगोली रकबा के 6.88% इलाका पर बिस्तार लिहले रहल।<ref name="fsiwbforest">{{cite web|url=http://www.fsi.org.in/cover_2011/uttarapradesh.pdf|format=PDF|title=Forest and tree resources in states and union territories: Uttar Pradesh|work=India state of forest report 2009|publisher=Forest Survey of India, Ministry of Environment & Forests, Government of India|accessdate=4 मार्च 2012|archive-date=2013-11-07|archive-url=https://web.archive.org/web/20131107201030/http://www.fsi.org.in/cover_2011/uttarapradesh.pdf|url-status=dead}}</ref> तेजी से बनकटाई आ जानवरन के शिकार के बावजूद अभिन ले राज्य में बनस्पति आ जियाजंतु के मामिला में भरपूर बिबिधता देखे के मिले ला। कई प्रकार के फेड़न के प्रजाति, बिबिध छोट-बड़ मैमल, रेप्टाइल आ कीड़ा-मकोड़ा के प्रजाति ऊपरी समशीतोष्ण जंगली इलाका में पावल जालीं। कई प्रकार के पौधा जंगली रूप से पावल जालें जे जड़ी-बूटी के तौर पर इस्तेमाल होलें<ref>{{cite web|url=http://bsienvis.nic.in/medi.htm#Balanites |title=Aegyptica |publisher=Bsienvis.nic.in |accessdate=21 September 2009 |url-status=dead |archiveurl=https://web.archive.org/web/20090506192204/http://bsienvis.nic.in/medi.htm |archivedate=6 May 2009 }}</ref> आ एह तरह के दवा-बीरो वाला पौधा सभ के ब्यापारिक रूप से भी उपजावल जाला। तराई-दुआर इलाका में चारा के रूप में इस्तेमाल होखे वाली घास भी मिले ले आ कागज उद्योग में इस्तेमाल होखे वाली घास भी। नम-पतझड़ वाला फेड़ सभ गंगा के मैदान में नदी के किनारे वाला इलाका में पावल जालें। ई मैदान बिबिध प्रकार के कीरा-बिच्छी आ अन्य रेंगे वाला जंतु सभ के आवास भी हवे। गंगा आ अन्य नद्दी सभ में बिबिध प्रजाति के मछरी आ खेखड़ा, झींगा, डोंका वगैरह भी मिले लें। बिंध्य इलाका आ पठारी भाग में बब्बुर आ औरी अइसने सूखा इलाका के फेड़ मिले लें। चिंकारा पुराना समय में बहुत पावल जाय आ नीलगाय अभिन भी बहुत संख्या में मिले लीं।<ref name=animals>{{cite web|title=Bird Sanctuary |url=http://www.up-tourism.com/destination/wild_life/wild_life.htm |publisher=U.P tourism |accessdate=23 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120704191031/http://www.up-tourism.com/destination/wild_life/wild_life.htm |archivedate=4 July 2012 }}</ref><ref name=Predominant>{{cite web|title=Sanctuary Park in U.P |url=http://www.up-tourism.com/destination/wild_life/places_of_interest.htm#Suhelva |publisher=U.P tourism |accessdate=23 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120718025605/http://www.up-tourism.com/destination/wild_life/places_of_interest.htm |archivedate=18 July 2012 }}</ref>
पूरा मैदानी इलाका में उष्णकटिबंधीय पतझड़ वाली बनस्पति मिले ले आ जमीन ले भरपूर घाम के पहुँच के चलते घास आ झाड़ीदार पौधा भी खूब पावल जालें।<ref name="Vegetation and Flora">{{cite web|title=Few patches of natural forest|url=http://upgov.nic.in/upwealth.aspx|publisher=State government of Uttar Pradesh|accessdate=22 July 2012|archive-date=20 May 2012|archive-url=https://web.archive.org/web/20120520140217/http://upgov.nic.in/upwealth.aspx|url-status=dead}}</ref> खेती बदे, प्राचीन समय में मैदानी इलाका के जंगल सभ के साफ़ कइल गइल आ अब कहीं-कहीं कुछ टुकड़ा बचल बाने जहाँ प्राकृतिक जंगल होखे। दक्खिनी हिस्सा में पठारी भाग में अइसन कुछ इलाका बचल बाने जहाँ कांटेदार पौधा आ सूखा इलाका वाली झाडी के इलाका पथरीला जमीन होखे के कारण साफ़ नइखे कइल गइल।<ref name="Thorny Forest">{{cite web|last=The Forests and biodiversity|first=in UP are important in many ways|title=Miscellaneous Statistics|url=http://upenvis.nic.in/Database/Forest_838.aspx|publisher= Ministry of Environment and Forests|accessdate=22 July 2012}}</ref> अइसन जंगल कम बरखा वाला क्षेत्र (50–70 सेमी), आ औसत तापमान 25-27 °C आ कम नमी वाला क्षेत्र में बाने।
उत्तर प्रदेश में चिरई सभ के बिबिध प्रजाति मिले लीं।<ref name=Avifauna>{{cite web|title=Conservation of the Avifauna|url=http://ww.orientalbirdclub.org/publications/forktail/14pdfs/Javed-Dudwa.pdf|publisher=[[Dudhwa National Park]]|accessdate=20 July 2012}}{{Dead link|date=November 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> प्रमुख प्रजाति में [[घरेलू गौरइया]], मैना, गंगा मैना, पंडुक, कबूतर, मोर, सुग्गा, कोयल, बुलबुल, चोंचा, मछरेंगा, कठफोड़वे, आ अउरी कई चिरई गिनावल जा सके लीं। राज्य में बखीरा, चंबल, चंद्रप्रभा, हस्तिनापुर, कैमूर आ सुरहा ताल नियर कई गो पक्षी-बिहार स्थापित कइल गइल बाने।<ref name="sanctuaries">{{cite web|title=Major wildlife sanctuaries and reserves of Uttar Pradesh|url=https://sites.google.com/site/viveklpm/wild-and-zoo-animal-care-and-management/major-wildlife-sanctuaries-and-reserves-in-india/major-wildlife-sanctuaries-and-reserves-of-uttar-pradesh|publisher=''sites.google.com''|accessdate=4 February 2017}}</ref><ref name="Bakhira">{{cite web |title= Bakhira Bird Sanctuary |url= http://upforest.gov.in/StaticPages/bakhirabird_Home.aspx |website= upforest.gov.in |publisher= ''UP Forest and Wildlife Department'' |accessdate= 4 February 2017 |archive-date= 4 February 2017 |archive-url= https://web.archive.org/web/20170204170352/http://upforest.gov.in/StaticPages/bakhirabird_Home.aspx |url-status= dead }}</ref><ref name="Chambal Gharial">{{cite web|title=National Chambal Gharial Wildlife Sanctuary|url=http://nationalchambalsanctuary.in/|publisher=''National Chambal Sanctuary''|accessdate=4 February 2017|archive-date=1 January 2017|archive-url=https://web.archive.org/web/20170101110955/http://www.nationalchambalsanctuary.in/|url-status=dead}}</ref><ref name="Chandra Prabha">{{cite web |title=Chandra Prabha Wildlife Sanctuary And Picnic Spots |url=http://www.uptourism.gov.in/pages/top/explore/top-explore-chandra-prabha |website=uptourism.gov.in |publisher=''Uttar Pradesh Tourism'' |accessdate=4 February 2017 |archive-date=4 February 2017 |archive-url=https://web.archive.org/web/20170204170953/http://www.uptourism.gov.in/pages/top/explore/top-explore-chandra-prabha |url-status=dead }}</ref><ref name="Hastinapur Wild Life">{{cite web |title= Hastinapur Wild Life Sanctuary |url= http://upforest.gov.in/STATICpages/hastinapurwild_Home.aspx |website= upforest.gov.in |publisher= ''P Forest and Wildlife Department'' |accessdate= 4 February 2017 |archive-date= 4 February 2017 |archive-url= https://web.archive.org/web/20170204170724/http://upforest.gov.in/STATICpages/hastinapurwild_Home.aspx |url-status= dead }}</ref><ref name="Kaimoor Wild Life">{{cite web |title= Kaimoor Wild Life Sanctuary |url= http://upforest.gov.in/StaticPages/kaimoorwildlife_Home.aspx |website= upforest.gov.in |publisher= ''Forest and Wildlife Department Uttar Pradesh'' |accessdate= 4 February 2017 |archive-date= 4 February 2017 |archive-url= https://web.archive.org/web/20170204171033/http://upforest.gov.in/StaticPages/kaimoorwildlife_Home.aspx |url-status= dead }}</ref><ref>{{cite web |title= Inside Okhla Bird Sanctuary |url= http://upforest.gov.in/STATICpages/okhlabird_Home.aspx |website= upforest.gov.in |publisher= ''UP Forest and Wildlife Department'' |accessdate= 4 February 2017 |archive-date= 4 February 2017 |archive-url= https://web.archive.org/web/20170204171135/http://upforest.gov.in/STATICpages/okhlabird_Home.aspx |url-status= dead }}</ref>
रेप्टाइल, यानी रेंगे वाला जीव में बिस्तुइया, गिरगिट, गोह, कोबरा (गहुअन), करइत, धामिन, घड़ियाल वगैरह पावल जाला। महसीर, टेंगना आ ट्राउट मछरी पावल जालीं। कई जियाजंतु सभ जे पहिले इहाँ पावल जायँ अब बिलुप्त भी हो चुकल बाने आ कई खतरा में भी बाने।<ref name="S.k.agarwal">{{cite book|author=S. K. Agarwal|title=Environment Biotechnology|url=https://books.google.com/books?id=0UeDTX6HEK8C&pg=PA61|accessdate=25 July 2012|publisher=APH Publishing|isbn=978-81-313-0294-1|page=61}}</ref> सरकार के कोसिस के बावजूद कई तरह के जानवरन के शिकार से भी खतरा बा।<ref name=fauna>{{cite web|title=Processing of manuscripts of Fauna |url=http://zsi.gov.in/right_menu/Annual%20Meeting/Annual%20Meeting%202011-12/HQ/Fauna.pdf |publisher=Indian Government |accessdate=22 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20130505093620/http://zsi.gov.in/right_menu/Annual%20Meeting/Annual%20Meeting%202011-12/HQ/Fauna.pdf |archivedate=5 May 2013 }}</ref>
=={{anchor|Constituent regions}}{{anchor|Regions and cities}}प्रशासनिक बिभाजन आ शहर==
[[File:Uttar Pradesh administrative divisions.svg|right|thumb|200px|alt="Administrative Divisions"|[[उत्तर प्रदेश के मंडल सभ]]]]
{{Main article|उत्तर प्रदेश के मंडल सभ|उत्तर प्रदेश के जिला सभ के लिस्ट}}
उत्तर प्रदेश के प्रशासनिक रूप से कुल 75 गो जिला में बाँटल गइल बा आ ई जिला 18 गो मंडल में ब्यवस्थित बाने।<ref name=divisions>{{cite web|title=State division of Uttar Pradesh |url=http://india.gov.in/knowindia/districts/andhra1.php?stateid=UP |publisher=Government of India |accessdate=22 जुलाई 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120510202421/http://india.gov.in/knowindia/districts/andhra1.php?stateid=UP |archivedate=10 मई 2012 }}</ref> हर जिला के प्रशासन जिलाधिकारी के हाथ में होला जे एगो आईएएस अधिकारी होलें। मंडल यानि कमिशनरी के मुखिया कमिश्नर (मंडलायुक्त) होलें।
हर एक जिला के कई गो तहसील में बाँटल गइल बा। तहसील के प्रशासन के काम डिप्टी कलक्टर (एसडीएम) के जिम्मे होला आ ऊ लोग जिलाधिकारी (डीएम) के रिपोट करे ला। तहसील के नीचे ब्लॉक होलें, हालाँकि ई प्रशासनिक स्तर न हवें बलुक पंचायती राज आ बिकास के कामकाज खातिर बनावल इकाई हऽ। ब्लाक यानि बिकासखंड स्तर पर बीडीओ राज्य के अधिकारी आ ब्लाक प्रमुख जनता के प्रतिनिधि होलें। हर ब्लाक के ग्रामपंचायत में बाँटल गइल बा, एकर मुखिया जनता द्वारा चुनल प्रतिनिधि - ग्राम परधान होलें। एक ठो ग्राम पंचायत में कई गो गाँव सामिल हो सके लें।<ref name=blocks>{{cite web|title=Directory of district, sub division, panchayat samiti/ block and gram panchayats in Uttar Pradesh|url=http://panchayatiraj.up.nic.in/Acts%20And%20Rules%20Pdfs/Panchayat%20Raj%20Act_1947_ch6.57-70.pdf|work=Panchayati Raj Department|accessdate=5 अक्टूबर 2012}}</ref> ब्लाक में शहरी इलाका भी हो सके लें, जइसे छोट जनगणना कस्बा (''सेंसस टाउन'')<ref name=panchayat>{{cite web|title=Administration of block|url=http://panchayatiraj.up.nic.in/Acts%20And%20Rules%20Pdfs/Panchayat%20Raj%20Act_1947_ch4.38-50.pdf|work=Panchayati Raj Department|accessdate=5 अक्टूबर 2012}}</ref> जबकि बड़हन नगर सभ में अलग से नगर पंचायत के गठन होला।
उत्तर प्रदेश में सभसे बड़हन प्रशासनिक बिभाग, 18 गो मंडल सभ के लिस्ट नीचे दिहल बा:
{| style="margin-left:30px"
{{col-begin}}
{{col-break|width=57%}}
{{ordered list|start=1
|[[सहारनपुर मंडल|सहारनपुर]]
|[[मुरादाबाद मंडल|मुरादाबाद]]
|[[बरेली मंडल|बरेली]]
|[[लखनऊ मंडल|लखनऊ]]
|[[देवीपाटन मंडल|देवीपाटन]]
|[[बस्ती मंडल|बस्ती]]
|[[गोरखपुर मंडल|गोरखपुर]]
|[[मेरठ मंडल|मेरठ]]
|[[अलीगढ़ मंडल|अलीगढ़]]
}}
{{col-break}}
{{ordered list|start=10
|[[आगरा मंडल|आगरा]]
|[[कानपुर मंडल|कानपुर]]
|[[फैजाबाद मंडल|फैजाबाद]]
|[[आजमगढ़ मंडल|आजमगढ़]]
|[[झाँसी मंडल|झाँसी]]
|[[चित्रकूट मंडल|चित्रकूट]]
|[[इलाहाबाद मंडल|इलाहाबाद]]
|[[वाराणसी मंडल|वाराणसी]]
|[[मिर्जापुर मंडल|मिर्जापुर]]|
}}
{{Col-end}}
|}
नीचे उत्तर प्रदेश के सभसे ढेर जनसंख्या वाला छह गो जिला आ भारत के जिला सभ में इनहन के रैंक दिहल गइल बा:<ref name=districts1>{{cite web|title=Indian Districts by population|url=http://www.census2011.co.in/district.php|work=2011 Census of India|accessdate=5 अक्टूबर 2012}}</ref>
{| class="sortable wikitable"
|- style="background:#ccc; text-align:center;"
! रैंक (भारत में) !! जिला !! जनसंख्या !! बढ़ती दर (%) !! लिंगानुपात (औरत, प्रति 1000 पुरुष पर) !! साक्षरता (%)
|- style="vertical-align: middle; text-align: center;"
| 13 || [[इलाहाबाद जिला|इलाहाबाद]] || 5,954,391 || 20.63 || 901 || 72.32
|- style="vertical-align: middle; text-align: center;"
| 26 || [[मुरादाबाद जिला|मुरादाबाद]] || 4,772,006 || 25.22 || 906 || 56.77
|- style="vertical-align: middle; text-align: center;"
| 27 || [[गाजियाबाद जिला|गाजियाबाद]] || 4,681,645 || 42.27 || 881 || 78.07
|- style="vertical-align: middle; text-align: center;"
| 30 || [[आजमगढ़ जिला|आजमगढ़]] || 4,613,913 || 17.11 || 1019 || 70.93
|- style="vertical-align: middle; text-align: center;"
| 31 || [[लखनऊ जिला|लखनऊ]] || 4,589,838 || 25.82 || 917 || 77.29
|- style="vertical-align: middle; text-align: center;"
| 32 || [[कानपुर नगर जिला|कानपुर नगर]] || 4,581,268 || 9.92 || 862 || 79.65
|}
{| class="infobox" style="text-align:center; width:; margin-right:8px; font-size:90%"
! colspan=1 |
! colspan="6" style="padding:0.6em 0; line-height:1.1em;" | [[जनसंख्या अनुसार उत्तर प्रदेश के शहरन के लिस्ट|उत्तर प्रदेश के दसलाखी शहर]] (2011 के जनगणना)
! colspan=1 |
|-
! style="text-align:left;background:#f5f5f5;" | नाँव
! style="text-align:left;background:#f5f5f5;" | जनसंख्या
! style="text-align:center;background:#f5f5f5;" |
! style="text-align:center;background:#f5f5f5;" |
! style="text-align:left;background:#f5f5f5;" | नाँव
! style="text-align:left;background:#f5f5f5;" | जनसंख्या
! rowspan=11 |
<!-- Please do not change population numbers for individual metro areas. These numbers are all from the 2011 census and are all for CMA's (census metropolitan areas). Using different definitions of metro area or population estimates from different years or sources depending on the city provides a poor basis for comparison and ranking of the cities. You can find the census population data at http://censusindia.gov.in/2011-prov-results/prov_data_products_up.htmlLANG=Eng&T=201&S=3&O=D&RPP=150 -->
|-
| style="text-align:left;background:#f0f0f0;" | [[कानपुर]] || 2,920,067 || ||||style="text-align:left;background:#f0f0f0;"|[[लखनऊ]] || 2,901,474
|-
| style="text-align:left;background:#f0f0f0;" | [[गाजियाबाद]] || 2,358,525 || ||||style="text-align:left;background:#f0f0f0;" |[[आगरा]] || 1,746,467
|-
| style="text-align:left;background:#f0f0f0;" | [[बनारस]] || 1,435,113 || ||||style="text-align:left;background:#f0f0f0;" | [[मेरठ]] || 1,424,908
|-
| style="text-align:left;background:#f0f0f0;" | [[इलाहाबाद]] || 1,216,719 || ||||style="text-align:left;background:#f0f0f0;" |[[बरेली]] || 979,933
|}
अन्य राज्य सभ के तुलना में, उत्तर प्रदेश में [[जनसंख्या अनुसार उत्तर प्रदेश के शहरन के लिस्ट|सभसे ढेर मेट्रो शहर]] बाने।<ref name="metropolitan cities">{{cite news|title=Development of 13 metropolitan cities in Uttar Pradesh|url=http://www.indianexpress.com/news/panels-to-draft-development-plans-for-13-cities/674326/|accessdate=13 जुलाई 2012|newspaper=The Indian Express|date=30 अगस्त 2010}}</ref><ref name="Metro cities">{{cite web|title=The area and density of metropolitan cities |url=http://urbanindia.nic.in/theministry/subordinateoff/tcpo/AREA_POP/CHAPTER-4.PDF |publisher=The Ministry of Urban Development |accessdate=22 जुलाई 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20121015142027/http://urbanindia.nic.in/theministry/subordinateoff/tcpo/AREA_POP/CHAPTER-4.PDF |archivedate=15 अक्टूबर 2012 |df= }}</ref> राज्य के कुल वास्तविक शहरी जनसंख्या 44.4 मिलियन रहल, ई भारत के कुल शहरी जनसंख्या के 11.8% बा आ एह तरीका से अन्य राज्यन के तुलना में उत्तर प्रदेश दूसरा स्थान पर बा।<ref name="Population info">{{cite web|title=Provisional population totals, Census of India 2011 |url=http://censusindia.gov.in/2011-prov-results/paper2/data_files/india/Rural_Urban_2011.pdf |publisher=Census of India 2011 |format=PDF |page=19 |accessdate=14 मार्च 2012}}</ref> जनगणना 2011 के अनुसार, कुल 15 गो शहरी संकुल अइसन रहलें जिनहन के जनसंख्या 5,00,000 से ढेर रहल।<ref name=Datasheet>{{cite web|title=Provisional population totals paper 1 of 2011 : Uttar Pradesh|url=http://censusindia.gov.in/2011-prov-results/prov_data_products_up.html|publisher=Census of India 2011|accessdate=23 July 2012 }}</ref> कुल 14 गो नगर निगम रहलें, आ नोएडा अलग से एगो बिधिक संस्था द्वारा प्रशासित कइल जाला।<ref name="GENERAL AMENDMENT">{{cite web |title=The Uttar Pradesh municipal corporation |url=http://sec.up.nic.in/acts_rules/MUNICIPAL%20CORPORATION_1959_eng/Municipal_Corp_Act_1959_chap1.pdf |publisher=Municipal corporation of Uttar Pradesh |url-status=dead |archiveurl=https://web.archive.org/web/20120324141206/http://sec.up.nic.in/acts_rules/MUNICIPAL%20CORPORATION_1959_eng/Municipal_Corp_Act_1959_chap1.pdf |archivedate=24 मार्च 2012 |accessdate=22 जुलाई 2012}}</ref>
साल 2011 में, मायावती के मुख्यमंत्री काल में कैबिनेट मंत्री लोग ई निश्चय कइल कि उत्तर प्रदेश के चार गो राज्यन में बाँट दिहल जाय - पूर्वांचल, बुंदेलखंड, अवध प्रदेश आ पच्छिम प्रदेश। इनहन में क्रम से अठाईस, सात, तेईस, आ सत्रह गो जिला शामिल कइल जाए वाला रहलें। 2012 के चुनाव में जीत पावे वाली समाजवादी पार्टी के अखिलेश सरकार एह प्रस्ताव के नकार दिहलस।<ref>{{cite web | url=http://www.thehindu.com/todays-paper/article2631472.ece | title=Maya splits U.P. poll scene wide open | publisher=[[दि हिंदू]] | date=16 नवंबर 2011 | accessdate=15 जून 2013 | author=Khan, Atiq | location=Lucknow | archive-url=https://web.archive.org/web/20140112191630/http://www.thehindu.com/todays-paper/article2631472.ece | archive-date=2014-01-12 | url-status=dead}}</ref>
==जनसांख्यिकी==
{{main article|उत्तर प्रदेश के जनसांख्यिकी}}
{{IndiaCensusPop
| title= जनसंख्या बढ़ती
| 1951= 60274000
| 1961= 70144000
| 1971= 83849000
| 1981= 105137000
| 1991= 132062000
| 2001= 166198000
| 2011= 199581477
| estimate=
| estyear=
| estref=
| footnote=स्रोत:भारत के जनगणना
}}
{{Pie chart
|thumb = right
|caption = उत्तर प्रदेश में धर्म (2011)<ref name=census2011>{{cite web
|publisher= Office of the Registrar General and Census Commissioner, India | url=http://www.census2011.co.in/data/religion/state/9-uttar-pradesh.html | title=Uttar Pradesh Religion Census 2011 |accessdate=2011-12-04}}</ref>
|label1 = [[हिंदू धर्म|हिंदू]]
|color1 = Orange
|value1 = 79.73
|label2 = [[इस्लाम]]
|color2 = Green
|value2 = 19.26
|label3 = [[सिख धर्म|सिख]]
|color3 = DarkKhaki
|value3 = 0.32
|label4 = [[ईसाई धर्म|इसाई]]
|color4 = DodgerBlue
|value4 = 0.18
|label5 = [[जैन धर्म|जैन]]
|color5 = red
|value5 = 0.11
|label6 = अन्य धर्म
|color6 = Gray
|value6 = 0.51
}}
उत्तर प्रदेश बिसाल जनसंख्या आ तेज जनसंख्या बढ़ती दर वाला राज्य बा। 1991 से 2001 के बीच प्रदेश के जनसंख्या में 26% के बढ़ती भइल।<ref name=population>{{cite web|title=The density of population in U.P. |url=http://upenvis.nic.in/Database/Overview_847.aspx |publisher=Environment and Related Issues Department U.P|accessdate=23 जुलाई 2012}}</ref> ई भारत के सभसे ढेर जनसंख्या वाला राज्य हवे, जहाँ 1 मार्च 2011 के कुल 199,581,477 निवासी लोग रहल।<ref name=autogenerated7>{{cite web|title=Provisional population totals|url=http://censusindia.gov.in/2011-prov-results/paper2/data_files/UP/7-pop-12-22.pdf|publisher=Census of India 2011|accessdate=23 जुलाई 2012}}</ref> एह तरीका से भारत देस के कुल जनसंख्या में उत्तर प्रदेश के हिस्सा 16.16% रहल। भले उत्तर प्रदेश भारत के चउथा सभसे बड़हन रकबा वाला राज्य होखे, एतना बिसाल जनसंख्या के कारण इहाँ के जनघनत्व 828 ब्यक्ति प्रति वर्गकिलोमीटर बा आ ई देस के सभसे घन बसल राज्यन में से एक बा।
2011 में, उत्तर प्रदेश में मानव लिंगानुपात 908 रहल (यानी 1000 मरदाना पर 908 जनाना), जे पूरा देस के औसत लिंगानुपात 933 के तुलना में कम रहल।<ref name="GOI_2011">{{cite web|title=Statistics of Uttar Pradesh|url=http://upgov.nic.in/upstateglance.aspx|work=Census of India 2011|publisher=UP Government|date=1 मार्च 2011|accessdate=31 जुलाई 2012|archive-date=2012-04-26|archive-url=https://web.archive.org/web/20120426235914/http://upgov.nic.in/upstateglance.aspx|url-status=dead}}</ref> 2001–2011 के बीच दशकीय बृद्धि दर (उत्तराखंड के सामिल क के) 20.09% रहल जे देस भर के औसत 17.64% से ढेर रहल।<ref name=Decennial>{{cite web|title=Decennil growth of population by census|url=http://www.cwc.nic.in/Water_Data_Pocket_Book_2006/t9.01final.pdf|work=Census of India (2011)|accessdate=5 अक्टूबर 2011|archive-date=2009-04-10|archive-url=https://web.archive.org/web/20090410021912/http://www.cwc.nic.in/Water_Data_Pocket_Book_2006/t9.01final.pdf|url-status=dead}}</ref><ref name=decennialgrowth>{{cite web|title=Decennial growth rate and density for 2011 at a glance for Uttar Pradesh and the districts: provisional population totals paper 1 of 2011 |url=http://www.censusindia.gov.in/2011-prov-results/prov_data_products_up.html|work=Census of India(2011)|accessdate=5 अक्टूबर 2011}}</ref> उत्तर प्रदेश में गरीबी रेखा से नीचे जीवन बितावे वाला लोग के भी भारी जनसंख्या बाटे।<ref name=poverty/> योजना आयोग के रिलीज कइल अनुमान के मोताबिक राज्य में कुल 59 मिलियन (5.9 करोड़) लोग गरीबी रेखा से नीचे रहल जे पूरा भारत के अउरी कवनो भी राज्य के तुलना में ढेर रहल।<ref name=poverty>{{cite web |title=The state with large no. of peoples living below poverty line|url=http://pib.nic.in/newsite/erelease.aspx?relid=49731 |work=Government of India|publisher=Press Information Bureau|accessdate=5 अक्टूबर 2012}}</ref><ref name=commission>{{cite web |url=http://planningcommission.nic.in/news/pre_pov2307.pdf |title=Press Note on Poverty Estimates, 2011-12 |website=योजना आयोग |publisher=भारत सरकार |accessdate=11 अगस्त 2014}}</ref>
2011 के जनगणना के अनुसार, भारत के सभसे ढेर जनसंख्या वाला उत्तर प्रदेश, कुल हिंदू आ मुसलमान जनसंख्या के मामिला में भी सभसे ऊपर रहल।<ref>{{cite web|url=http://www.deccanherald.com/content/497347/muslim-population-grew-faster-census.html|title=Muslim population grew faster: Census}}</ref> धरम के आधार पर, साल 2011 के जनसंख्या में 79.73% हिंदू, 19.26% मुसलमान, 0.32% सिख, 0.18% ईसाई, 0.11% जैन, 0.10% बौद्ध, आ 0.30% अन्य दूसर धरम माने वाला लोग रहल।<ref>[http://www.censusindia.gov.in/2011census/C-01/DDW09C-01%20MDDS.XLS C1 - Population by religious community, Uttar Pradesh.] भारत के जनगणना, 2011. पहुँचतिथि 10 सितंबर 2011.</ref>
राज्य में 2011 के आँकड़ा अनुसार साक्षारता दर 67.7% रहल, जे राष्ट्रीय औसत 74% से कमे रहल।<ref name="Literacy rate">{{cite web|title=Uttar Pradesh Profile |url=http://censusindia.gov.in/2011census/censusinfodashboard/stock/profiles/en/IND009_Uttar%20Pradesh.pdf|publisher=Census of India 2011|accessdate=16 अक्टूबर 2010}}</ref><ref name="literacy rates">{{cite web |title= A comparison of the literacy rates |url= http://censusmp.gov.in/censusmp/All-PDF/6Literacy21.12.pdf |publisher= censusmp.gov.in |accessdate= 16 अक्टूबर 2010 |archive-date= 2012-04-17 |archive-url= https://web.archive.org/web/20120417110338/http://censusmp.gov.in/censusmp/All-PDF/6Literacy21.12.pdf |url-status= dead }}</ref> पुरुष साक्षारता 79% आ औरतन के साक्षरता दर 59% रहल। एकरे पहिले, 2001 के जनगणना में कुल साक्षरता दर 56.27%, पुरुष साक्षरता 67% आ औरतन के साक्षरता दर 43% दर्ज कइल गइल रहल।<ref name=Literacy>{{cite web |title=Literacy rate in Uttar Pradesh |url= http://www.census2011.co.in/census/state/uttar+pradesh.html |publisher= Census of India 2011 |accessdate= 16 अक्टूबर 2010}}</ref>
[[हिंदी भाषा|हिंदी]]इहाँ के प्रमुख भाषा हवे आ आँकड़ा के मोताबिक (91.32%) लोग<ref name="2011lang">{{cite web|url=http://nclm.nic.in/shared/linkimages/NCLM50thReport.pdf |title=Report of the Commissioner for linguistic minorities: 50th report (July 2012 to जून 2013) |publisher=Commissioner for Linguistic Minorities, Ministry of Minority Affairs, Government of India |format=PDF |accessdate=4 दिसंबर 2016 |url-status=dead |archiveurl=https://web.archive.org/web/20160708012438/http://nclm.nic.in/shared/linkimages/NCLM50thReport.pdf |archivedate= 8 जुलाई 2016 |df= }}</ref> अपना के हिंदी भाषी बतावल। [[उर्दू]] दुसरही भाषा हवे जे राजकाज में इस्तेमाल होले।<ref name="2011lang"/> [[भोजपुरी]] अन्य प्रमुख भाषा बा जे पूर्वांचल में बिसाल जनसंख्या द्वारा बोलल जाले हालाँकि, भारत सरकार एकरा के हिंदी के बोली माने ले जवना कारण भोजपुरी आ हिंदी दूनो के वास्तविक बोले वाला लोग के संख्या के अंजाद लगावल कठिन बा।
==सरकार आ प्रशासन==
{{Main article|उत्तर प्रदेश सरकार}}
[[File:Vidhan Sabha (at day).jpg|thumb|alt=उत्तर प्रदेश के बिधान सभा के बिल्डिंग|उत्तर प्रदेश बिधानसभा, ई उत्तर प्रदेश के बिधायिका के निचला सदन हवे|453x453px]]
राज्य कसे शासन प्रातिनिधिक लोकतंत्र के संसदीय सिस्टम से चले ला। उत्तर प्रदेश भारत के सात गो अइसन राज्य सभ में से एक बा जहाँ दू सदन वाली विधायिका बाटे: निचला सदन के बिधान सभा आ ऊपरी सदन के बिधान परिषद कहल जाला।<ref name="vidhan parishad">{{cite web|title=UP vidhan parishad|url=http://legislativebodiesinindia.nic.in/UttarPradesh-LC.htm|publisher=Government of India|accessdate=22 July 2012}}</ref><ref name="Vidhan Sabha">{{cite web|title=UP vidhan sabha structure|url=http://legislativebodiesinindia.nic.in/UTTAR%20PRADESH.htm|publisher=Government of India|accessdate=22 July 2012}}</ref> उत्तर प्रदेश बिधान सभा में कुल 404 सीट बा इनहन खातिर जनता सीधे आपन प्रतिनिधि चुने ले जे लोग के बिधायक कहल जाला। बिधान सभा के सदस्य, यानी ई बिधायक लोग पाँच बरिस खातिर चुनल जाला। उत्तर प्रदेश के बिधान परिषद, यानी ऊपरी सदन, 100 सदस्य वाला एगो परमानेंट सदन हवे आ दू तिहाई सदस्य (33 गो) हर दूसरा साल चुनल जाला। चूँकि, भारतीय संसद में उत्तर प्रदेश के सभसे ढेर लेजिस्लेटर (सांसद) लोग जाला, ई राज्य देस के राजनीति मेंभी बहुत महत्व के मानल जाला।<ref name="elections">{{cite web|last=Four other states seen as barometer of support for federal government.|title=Legislative elections in Uttar Pradesh|url=http://www.aljazeera.com/news/asia/2012/02/2012286478579763.html|publisher=Al Jazeera|accessdate=8 फरवरी 2012}}</ref> भारतीय संसद में 80 गो लोक सभा सदस्य आ 31 गो राज्यसभा सदस्य उत्तरे प्रदेश के होला लोग।<ref>{{cite web|url=http://164.100.47.5/Newmembers/memberstatewise.aspx |title=Statewise List |publisher=164.100.47.5 |date= |accessdate=29 जुलाई 2015}}</ref><ref>{{cite web|url=http://rajyasabha.nic.in/rsnew/faq/freaq1.asp |title=Rajya Sabha |publisher=Rajya Sabha |date= |accessdate=29 जुलाई 2015}}</ref><ref name="Grover1989">{{cite book|author=Verinder Grover|title=Legislative Council in State Legislatures|url=https://books.google.com/books?id=fRqrO0Hx0Y0C&pg=PA37|accessdate=27 जुलाई 2012|publisher=Deep & Deep Publications|isbn=978-81-7100-193-4|pages=37–255}}</ref><ref>{{cite web |url= http://rajyasabha.nic.in/rsnew/rsat_work/chapter-2.pdf|format=PDF|title=राज्य सभा के संघटन |work=राज्य सभा |publisher=राज्य सभा सेक्रेट्रीयेट |location=नई दिल्ली |pages=24–25 |accessdate=15 फरवरी 2012}}</ref>
उत्तर प्रदेश में लोकतांत्रिक रूप से शासन के संबैधानिक मुखिया राज्यपाल (गवर्नर) होलें जिनके नियुक्ति राष्ट्रपति द्वारा कइल जाला। राज्यपाल के कार्यकाल पाँच साल होला।<ref>{{cite web |title=Role of The Governor |url= http://upgovernor.gov.in/upgovernor.gov.in/roleofgov.htm |website= upgovernor.gov.in |publisher=''Raj Bhavan Uttar Pradesh''|accessdate=17 मार्च 2017}}</ref> बिधान सभा में मेजारिटी के दल भा गठबंधन के नेता के राज्यपाल द्वारा मुख्यमंत्री नियुक्त कइल जाला आ इनके सलाह अनुसार बाकी मंत्रिमंडल के भी नियुक्ति राज्यपाले करे लें। प्रतीकात्मक रूप से सरकार के मुखिया राज्यपाल होलें आ रोजमर्रा के सरकारी कामकाज के जिम्मेदारी मुख्यमंत्री आ उनके मंत्रिमंडल के होला।
हर जिला के प्रशासन जिलाधिकारी (डीएम) के हाथे होला जे भारतीय प्रशासनिक सेवा (आइएएस) अधिकारी होलें आ इनके मातहत राज्य सेवा के अधिकारी लोग होला।<ref name=judiciary>{{cite web |title= Judiciary in the state |url= http://www.allahabadnagarnigam.in/Hindi/download_hindifont_hin.htm |publisher= इलाहाबाद नगर निगम |accessdate= 17 फरवरी 2011 |archive-date= 2012-08-01 |archive-url= https://web.archive.org/web/20120801195906/http://www.allahabadnagarnigam.in/hindi/download_hindifont_hin.htm |url-status= dead }}</ref> पुलिस कप्तान ({{abbr|एसपी|सुपरिंटेंडेंट ऑफ पुलिस}}), भारतीय पुलिस सेवा (आइपीएस) अधिकारी होलें आ इनके सहायता में राज्य पुलिस के अधिकारी लोग होला।<ref name="BhargavaBhatt2005"/> न्यायपालिका में इहाँ सभसे ऊपर [[इलाहाबाद हाइकोर्ट]] बा जेकर एगो बेंच लखनऊ में भी बा। एकरे नीचे हर जिला में जिला न्यायालय आ सत्र न्यायालय बाने आ तहसील स्तर पर भी कुछ मुकदमा के सुनवाई होला।<ref name=courts/> हाइकोर्ट के मुख्य न्यायाधीस के नियुक्ती राष्ट्रपति द्वारा, सुप्रीम कोर्ट के मुख्य न्यायाधीस के सलाह पर होले।<ref name="BhargavaBhatt2005"/> बाकी जज लोग के नियुक्ति इहाँ के मुख्य न्यायाधीश के सलाह पर राष्ट्रपति द्वारा होले।<ref name=courts>{{cite web |title= Uttar Pradesh judiciary |url= http://www.mapsofindia.com/uttar-pradesh/local-government/judiciary.html |publisher= Maps of India |accessdate=19 September 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120904072538/http://www.mapsofindia.com/uttar-pradesh/local-government/judiciary.html |archivedate=4 September 2012 }}</ref><ref name=Constitution>{{cite web|title=Constitutional setup|url=http://www.upgov.nic.in/upconstitution.aspx|publisher=[[उत्तर प्रदेश सरकार]]|accessdate=19 सितंबर 2012|archive-date=2012-09-25|archive-url=https://web.archive.org/web/20120925090047/http://www.upgov.nic.in/upconstitution.aspx|url-status=dead}}</ref> निचली अदालत सभ, दू हिस्सा में बिभाजित होलीं: उत्तर प्रदेश सिविल न्यायिक सेवा आ उत्तर प्रदेश उच्च न्यायिक सेवा।<ref name="BhargavaBhatt2005"/> जहाँ सिविल जूडीशियल सर्विस में सिविल जज (जूनियर डिवीजन)/चीफ जूडीशियल मजिस्ट्रेट ओही जे, उत्तर प्रदेश के हायर जूडीशियल सेवा में सिविल आ सेशन (सत्र) जज लोग होला।<ref name="BhargavaBhatt2005"/><ref name="Civil Judiciary">{{cite web|title=Subordinate Civil Judiciary in Uttar Pradesh|url=http://www.allahabadhighcourt.in/event/TheHistoryRoleSubordinateJudiciaryBBPrasad.pdf|publisher=[[इलाहाबाद हाईकोर्ट]]|accessdate=19 सितंबर 2012}}</ref>
उत्तर प्रदेश के राजनीति में भारतीय राष्ट्रीय कांग्रेस, समाजवादी पार्टी, बहुजन समाज पार्टी आ भारतीय जनता पार्टी नियर चार गो राजनीतिक दल के मुख्य भूमिका बाटे। उत्तर प्रदेश के राजनीतिग्य लोग भारत के राष्ट्रीय राजनीति में भी प्रमुख भूमिका अदा कइले बा, कुछ लोग काफी ऊँच पद तक ले चहुँपल बा, जइसे कि परधानमंत्री। एह मामिला में उत्तर प्रदेश के ''अंडर अचीवर'' भी मानल जाला कि देस के आठ गो परधानमंत्री देवे के बावजूद भी ई राज्य अभिन ले गरीब राज्य बा।<ref name="politically crucial state">{{cite web|title=UP: the nerve centre of politics|url=http://zeenews.india.com/state-elections-2012/up/issues.html|publisher=[[जी न्यूज]]|accessdate=22 जुलाई 2012}}</ref>
{{clear}}
==अर्थब्यवस्था==
[[File:A Busy road in Main Market.JPG|thumb|left|alt=सड़क के किनारे लागल दुकान|सड़क के किनारे लागल दुकान सभ। उत्तर प्रदेश में भारी जनसंख्या गैर-औपचारिक सेक्टर में रोजगार पावे ले।]]
{| class="wikitable" cellspacing="1" style="float:right; width:260px; margin:0 0 1em 1em; background:#f4f5f6; border:#c6c7c8 solid; font-size:90%;"
| colspan="2" style="background:#c2d6e5; text-align:center;"| '''राज्य के नेट घरेलू उत्पाद, फैक्टर लागत पर आ चालू कीमत पर (2004–05 आधार)<ref name=rbinsdpstat>{{cite web
|url=http://www.rbi.org.in/scripts/PublicationsView.aspx?id=13592
|title=Net state domestic product at factor cost—state-wise (at current prices)
|date=15 सितंबर 2011
|accessdate=7 फरवरी 2012
|work=Handbook of statistics on Indian economy
|publisher=[[भारतीय रिजर्व बैंक]]
|url-status=dead
|archiveurl=https://web.archive.org/web/20120309001542/http://rbi.org.in/scripts/PublicationsView.aspx?id=13592
|archivedate=9 मार्च 2012
|df=dmy
}}</ref>'''
आँकड़ा करोड़ रुपिया में
|-
! साल || नेट घरेलू उत्पाद
|-
| 2004–2005 || 229,074
|-
| 2005–2006 || 256,699
|-
| 2006–2007 || 294,031
|-
| 2007–2008|| 332,352
|-
| 2008–2009 || 384,718
|-
| 2009–2010 || 453,020
|}
अगर [[नेट घरेलू उत्पाद|राज्य के नेट घरेलू उत्पाद]] (NSDP) के हिसाब से देखल जाय, महाराष्ट्र के बाद उत्तर प्रदेश भारत के दुसरा सभसे बड़ अर्थब्यवस्था हवे, जहाँ NSDP {{INRConvert|14.46|lc}} बा,<ref name=":0" /> आ एह तरीका से भारत के अर्थब्यवस्था में एकर जोगदान 8.406 % के बा। खेतीबारी एह राज्य के लोग के मुख्य पेशा हवे।<ref name=resources>{{cite web|title=The state profile |url=http://www.phdcci.in/admin/userfiles/file/Research-Bureau/Uttar-Pradesh.pdf |publisher=PHD Chember |accessdate=20 September 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20121224141248/http://www.phdcci.in/admin/userfiles/file/Research-Bureau/Uttar-Pradesh.pdf |archivedate=24 दिसंबर 2012 }}</ref> इंडिया ब्रांड इक्विटी फाउंडेशन के रपट के मोताबिक, साल 2014–15 में देस के कुल खाद्यान उत्पादन में उत्तर प्रदेश के 19% सझियाई रहल। साल 2014–15 में खाद्यान्न उत्पादन 47,773.4 हजार टन रहल। इहाँ गोहूँ मुख्य खाद्यान फसल हवे आ [[ऊखि]] प्रमुख आमदनी वाली फसल ह।<ref name="Policy">{{cite web|url=http://www.lexuniverse.com/industrial-policy/india/uttar-pradesh/uttar-pradesh2.html|title=Industrial policy of Uttar Pradesh|publisher=Lex Universe|accessdate=20 September 2012|archive-date=1 May 2012|archive-url=https://web.archive.org/web/20120501052825/http://www.lexuniverse.com/industrial-policy/india/uttar-pradesh/uttar-pradesh2.html|url-status=dead}}</ref> भारतीय चीनी मिल एसोसिएशन (ISMA) के रपट के मोताबिक, भारत में कुल ऊख के उत्पादन साल 2015 के सितंबर महीना में खतम होखे वाला बित्त बरिस में 28.3 मिलियन टन रहल जेह में से 10.47 मिलियन टन महाराष्ट्र में आ 7.35 मिलियन टन उत्तर प्रदेश से रहल।<ref>{{Cite web|url=http://www.indiansugar.com/NewsDetails.aspx?nid=4584|title=Indian sugar mills association|website=www.indiansugar.com|access-date=2016-08-08|archive-date=2016-08-26|archive-url=https://web.archive.org/web/20160826083928/http://www.indiansugar.com/NewsDetails.aspx?nid=4584|url-status=dead}}</ref>
राज्य में उद्योग सभ के संकेद्रण कई टुकड़ा में बा। मुख्य उद्योग क्षेत्र में कानपुर आ नोएडा गिनावल जा सके ला। पूर्वांचल में भी कुछ उद्योग लागल बाने। बनारस-मुग़लसराय इलाका में रेलवे से संबंधित उद्योग लागल बाने जइसे मंडुआडीह में डीजल लोकोमोटिव कारखाना बा। इलाहाबाद के उपनगरी इलाका के रूप में नैनी में भी उद्योग क्षेत्र बा, आ जौनपुर में सतहरिया उद्योग क्षेत्र बिकसित कइल जा रहल बा। उत्तर प्रदेश में मुख्य उद्योग सभ में इंजीनियरी उत्पाद, इलेक्ट्रानिक्स, इलेक्ट्रिक सामान, केबिल, स्टील, चमड़ा से बनल सामान, कपड़ा उद्योग, गहना, ऑटोमोबाइल, रेल डिब्बा वगैरह बाने। छोटहन साइज के उद्योग सभ के संख्या उत्तर प्रदेश में सगरी राज्यन के तुलना में सभसे ढेर बा; कुल भारत के 23 लाख अइसन छोट इकाई सभ के लगभग 12 हिस्सा इहँवे उत्तरे प्रदेश में बा।<ref name="resources" /> With 359 manufacturing clusters, cement is the top sector of [[Ministry of Micro, Small and Medium Enterprises|SMEs]] in UP.<ref name="ET-20130620-SMEs">{{cite web | url=http://economictimes.indiatimes.com/news/emerging-businesses/sme-policy-trends/smes-employ-close-to-40-of-indias-workforce-but-contribute-only-17-to-gdp/articleshow/20496337.cms?curpg=2 | title=SMEs employ close to 40% of India's workforce, but contribute only 17% to GDP | work=The Economic TImes| date=9 Jun 2013<!-- , 05.00AM IST -->| accessdate=20 जून 2013 | author=Malini Goyal}}</ref>
==शिक्षा==
{{Main article|उत्तर प्रदेश में शिक्षा}}
{{See also|उत्तर प्रदेश में उच्चशिक्षा संस्थान सभ के लिस्ट}}
[[File:JRHU - Main Building.jpg|thumb|left|alt=दुनिया के पहिला बिकलांग बिस्वबिद्यालय |[[जगद्गुरु रामभद्राचार्य बिकलांग विश्वविद्यालय|जेआरएचयू]] दुनिया के पहिला बिकलांग शिक्षा केंद्र हवे]]
उत्तर प्रदेश में शिक्षा के बहुत पुरान परंपरा चल आइल बा भले ई इतिहासी दौर में उच्चबर्ग आ धार्मिक बिद्यालयन ले सीमित रहल होखे।<ref name=schools>{{cite news|title=Islamic religious schools|url=http://articles.timesofindia.indiatimes.com/keyword/madrassas|archive-url=https://archive.is/20130103081247/http://articles.timesofindia.indiatimes.com/keyword/madrassas|url-status=|archive-date=3 जनवरी 2013|publisher=[[दि टाइम्स ऑफ इंडिया]]|accessdate=25 अप्रैल 2003}}</ref> संस्कृत-आधारित शिक्षा इहाँ [[बैदिक काल]] से ले के [[गुप्त साम्राज्य|गुप्त काल]] ले रहल आ एकरे बाद संस्कृति के बिकासक्रम में, पाली, फ़ारसी, आ अरबी बिद्या के चलन आइल। हिंदू-बौद्ध-मुसलमानी बिद्या के सामूहिक रूप तब तक ले इहाँ के बिसेसता रहल जबले ब्रिटिश राज के उदय ना भइल। वर्तमान इस्कूल-से-इन्वर्सिटी वाला सिस्टम बाकी भारत के साथे-साथ इहाँ भी स्थापित भइल आ एह सिस्टम के बिकास में ब्रिटिश राज आ ईसाई मिशनरी सभ के योगदान हवे।<ref name="Education System">{{cite web|title=British colonial administration system in state education system|url=http://www.upeducation.net/|publisher=State Education Board|accessdate=25 अप्रैल 2003|archive-date=2003-04-21|archive-url=https://web.archive.org/web/20030421195013/http://upeducation.net/|url-status=dead}}</ref> राज्य में इस्कूल सभ या त सरकार द्वारा चलावल जालें या फिर प्राइवेट संस्था (ट्रस्ट) द्वारा। ज्यादातर इस्कूल सभ में पढ़ाई के माध्यम के रूप में हिंदी के इस्तेमाल होला; एकरे अलावा इंग्लिश-मीडियम इस्कूल भी बाने आ संस्कृत पाठशाला आ मदरसा भी जहाँ क्रम से अंग्रेजी, संस्कृत आ उर्दू माध्यम में पढ़ाई होला। सीबीएससी आ आइसीएससी बोर्ड से जुड़ल इस्कूल सभ में अंग्रेजी माध्यम से पढ़ाई होला।<ref name=Facts>{{cite web|title=Uttar Pradesh Facts & Figures|url=http://www.upeducation.net/Facts/|publisher=Uttar Pradesh education department|accessdate=16 अक्टूबर 2010|archive-date=2011-04-03|archive-url=https://web.archive.org/web/20110403071219/http://www.upeducation.net/facts/|url-status=dead}}</ref>
[[File:Chattar Manzil 2005.jpg|thumb|270px|alt=Central Drug Research Institute|सेंट्रल ड्रग रिसर्च इंस्टीट्यूट के बिल्डिंग]]
उत्तर प्रदेश में कुल 45 गो विश्वविद्यालय बाने,<ref name=universities>{{cite web|title=List of universities|url=http://www.educationinfoindia.com/Universities/U-up.htm|publisher=Education department of india|accessdate=16 अक्टूबर 2010|archive-date=2017-04-11|archive-url=https://web.archive.org/web/20170411015723/http://www.educationinfoindia.com/Universities/U-up.htm|url-status=dead}}</ref> जेह में 5 गो केंद्रीय विश्वविद्यालय, 28 गो राज्य विश्वविद्यालय, 8 डीम्ड विश्वविद्यालय, 2 गो आइआइटी, 1 ठो आइआइएम (लखनऊ), 1 ठो एनआइटी (इलाहाबाद), आ 2 गो ट्रिपल आइटी, 1 ठो नेशनल लॉ कॉलेज आ कई सारा इंजीनियरिंग कालेज आ पॉलिटेकनिक कॉलेज अउरी आइटीआई बाने।<ref name=Universities>{{cite web|title=List of Universities in Uttar Pradesh|url=http://www.upeducation.net/universities/|publisher=Education department of U.P|accessdate=27 जून 2012|archive-date=2012-06-21|archive-url=https://web.archive.org/web/20120621081900/http://www.upeducation.net/universities/|url-status=dead}}</ref> उत्तर प्रदेश के प्रतिष्ठित विश्वविद्यालय आ उच्च शिक्षा संस्थान सभ में <!-- अच्छर क्रम में -->अलीगढ़ मुस्लिम विश्वविद्यालय, आईआईटी कानपुर, आईआईएम लखनऊ, इलाहाबाद विश्वविद्यालय, किंग जार्ज मेडिकल कॉलेज (केजीएमसी), बनारस हिंदू यूनिवर्सिटी (बीएचयू), मोतीलाल नेहरू नेशनल इंस्टीट्यूट ऑफ टेक्नोलॉजी (एमएनआईटी), संजय गाँधी पीजीआई प्रमुख बाने।<ref name=IIT>{{cite news|title=Kanpur schools welcome IIT Council formula|url=http://timesofindia.indiatimes.com/topic/IIT-Kanpur|publisher=[[दि टाइम्स ऑफ इंडिया]]|accessdate=27 जून 2012}}</ref><ref name=IIM>{{cite web|title=Official Website of IIM Lucknow|url=http://www.iiml.ac.in/|publisher=IIM Lucknow|accessdate=11 अप्रैल 2012|archive-date=2012-04-13|archive-url=https://web.archive.org/web/20120413144029/http://www.iiml.ac.in/|url-status=dead}}</ref>
==पर्यटन==
{{Main article|उत्तर प्रदेश में पर्यटन}}
[[File:Kumbh Mela 2013 Sangam, Allahabd.jpg|thumb|right|alt= कुंभ मेला सभसे बिसाल मेला हवे| इलाहाबाद के संगम पर 2013 के कुंभ मेला।]]
घरेलू पर्यटन के हिसाब से देखल जाय त उत्तर प्रदेश में सभसे ढेर पर्यटक लोग आवे ला, ई संख्या 71 मिलियन (7.1 करोड़) बा,<ref name="Board2010">{{cite book|author=Upkar Prakashan - Editorial Board|title=Uttar Pradesh General Knowledge|url=https://books.google.com/books?id=_ce8FpJzR-4C&pg=PA46|accessdate=26 July 2012|date=1 September 2010|publisher=Upkar Prakashan|isbn=978-81-7482-408-0|pages=46–287}}</ref><ref name=Tourism>{{cite web|title=Performance of Tourist Centres in Uttar Pradesh|url=http://journal.asci.org.in/Vol.40(2010–11)/40_1_Masood%20H%20Siddiqui.pdf|publisher=Uttar Pradesh Tourist Department|date=8 July 2012}}{{Dead link|date=October 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> जेकर वजह इहाँ के बिबिधता वाला भूगोल, संस्कृति, तिहुआर, स्मारक, प्राचीन पूजा अस्थान आ बौद्ध बिहार वगैरह के मौजूदगी बा। हर साल अकेले इलाहाबाद में माघ मेलवे में लाखन गो श्रद्धालू लोग नहान करे आवे ला।<ref name="MacLean2008">{{cite book|author=Kama MacLean|title=Pilgrimage and Power: The Kumbh Mela in Allahabad, 1765-1954|url=https://books.google.com/books?id=MALacgnsroMC|accessdate=25 July 2012|date=29 अगस्त 2008|publisher=Oxford University Press|isbn=978-0-19-533894-2}}</ref> इहे मेला हर 12वाँ बरिस अउरी बिसाल पैमाना पर आयोजित होला आ कुंभ मेला कहाला, एह समय लगभग एक करोड़ लोग एह गंगा-जमुना के संगम पर एकट्ठा हो जाला आ ई लोगन के दुनिया में सभसे बड़ समागम बन जाला।<ref name="Magh Mela">{{cite news|title=Hindus gather for the Kumbh Mela at the Ganges in India and Maha Shivaratri in Allahabad|url=http://www.telegraph.co.uk/news/picturegalleries/worldnews/7222387/pictures-Hindus-gather-for-the-Kumbh-Mela-in-India-and-Maha-Shivaratri-in-Nepal.html|publisher=The Daily Telegraph|accessdate=25 January 2011|date=12 February 2010}}</ref>
इतिहासी रूप से महत्त्व के जगह बनारस खुद भी बा आ एकरे लगे सारनाथ भी बा<ref name=SARNATH>{{cite web|title=SARNATH GENERAL INFORMATION|url=http://varanasi.nic.in/tourist/tourist7.html|publisher=Tourism department of Varanasi|accessdate=8 July 2012}}</ref> जहाँ गौतम बुद्ध आपन पहिला उपदेस दिहले रहलें; एकरे उत्तर में गोरखपुर के आगे कुशीनगर भी बौद्ध धरम के लोग खातिर महत्व के अस्थान बा जहाँ बुद्ध के निधन भइल। सारनाथ में मौजूद [[अशोक स्तंभ|अशोक के खम्हा]] आ एकर सिंह मुकुट दुनो राष्ट्रीय महत्त्व के चीज बा। बनारस से लगभग 80 किमी के दूरी पर मौजूद [[गाजीपुर]] अपना गंगा घाट खातिर भी मशहूर बा आ हेइजे लार्ड कार्नवालिस के निधन भइल रहल आ उनुके मकबरा मौजूद बा।<ref name="Joon">{{cite book|author=Sanjeev Joon|title=Complete Guide for SSC|url=https://books.google.com/books?id=E9YfW2709psC&pg=RA2-PA93|accessdate=25 July 2012|publisher=Tata McGraw-Hill Education|isbn=978-0-07-070645-3|page=255}}</ref> राज्य में कई गो पक्षी बिहार भी बाने, जइसे एटा में, समसपुर में, आ [[बलियाँ]] में [[सुरहा ताल]]।
राजधानी लखनऊ में भी कई सारा इतिहासी धरोहर भवन मौजूद बाने।<ref name=Monuments>{{cite web|title=List of Monuments - Uttar Pradesh|url=http://asi.nic.in/asi_monu_alphalist_uttarpradesh_lucknow.asp|publisher=Archaeological Survey of India|date=8 July 2012}}</ref><ref name="Bara Imambara">{{cite web|title=The historical monument called Bara Imambara of Lucknow that is also known as Asfi Imambara|url=http://www.lucknow.org.uk/tourist-attractions/bara-imambara.html|publisher=Lucknow online news|accessdate=8 July 2012|archive-date=3 February 2012|archive-url=https://web.archive.org/web/20120203233602/http://www.lucknow.org.uk/tourist-attractions/bara-imambara.html|url-status=dead}}</ref> इहाँ अवध काल के ब्रिटिश रेजीडेंसी के भवन अबहिन ले संरक्षित बा आ एकर जीर्णोद्धार भी कइल गइल बा। बड़ा आ छोटा इमामबाड़ा आ अउरी कई गो भवन बाने जिनहन के देखे लोग आवे ला। उत्तर प्रदेश में आगरा आ एकरे नजदीक में तीन गो [[बिस्व धरोहर स्थल|बिस्व धरोहर अस्थान]] बाने: [[ताज महल]], आगरा के किला आ फतेहपुर सीकरी।
पर्यटन के बढ़ावा देवे खातिर इहाँ 1972 में पर्यटन डाइरेक्टरेट के स्थापना कइल गइल जेकर मुखिया एगो आइएएस अफसर होलें। एकरे बाद 1974 में उत्तर प्रदेश राज्य पर्यटन निगम के स्थापना कइल गइल जे पर्यटन से जुड़ल बानिज्यिक क्रियाकलाप के देखरेख करे ला।<ref name=autogenerated10>{{cite web|title=The Tourism Development Policy |url=http://www.up-tourism.com/about_tourism.htm |publisher=Department of Tourism, Uttar Pradesh |accessdate=8 जुलाई 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120614064428/http://www.up-tourism.com/about_tourism.htm |archivedate=14 जून 2012 }}</ref>
==सेहत आ सेहत सुबिधा==
[[File:District Hospital.jpg|thumb|right|कानपुर देहात के जिला अस्पताल]]
उत्तर प्रदेश में सरकारी आ निजी क्षेत्र मिला के बड़हन पैमाना पर स्वास्थ्य सुबिधा खातिर [[इंफ्रास्ट्रक्चर]] के बिकास भइल बा बाकी सेहत के अलग-अलग पैरामीटर पर अन्य राज्य सभ से तुलना कइल जाय त इहाँ के परफारमेंस बहुत उत्साहजनक नइखे। भले पब्लिक आ प्राइवेट सेक्टर में स्वास्थ्य सुबिधा के लमहर-चाकर इन्फ्रास्ट्रक्चर मौजूद होखे, इहँवा के बिसाल जनसंख्या के कारण ई जरूरत भर के ना बाटे आ अइसन सेवा सभ के डिमांड पूरा ना क पावे ला।
पछिला 15 साल में, उत्तर प्रदेश के जनसंख्या में लगभग 25 प्रतिशत से अधिका के बढ़ती भइल बा। जबकि, सरकारी स्वास्थ्य केंद्र, जवन पब्लिक सेक्टर के सभसे अगिला मोर्चा के स्वास्थ्य सुबिधा बा, इनहन के संख्या में आठ प्रतिशत के गिरावट आइल बा।<ref name="health"/> छोटहन उपकेंद्र सभ, जहाँ जनता के पहिला संपर्क एह सुबिधा सभ से होला, इनहन के संख्या में बस 2 प्रतिशत के बढती भइल बा अगर 2015 के पहिले के 25 साल में भइल बदलाव के देखल जाय, जबकि एही समय में राज्य के जनसँख्या में 51 परसेंट से ढेर के बढ़ती भइल बा।<ref name="health"/> एगो नया पैदा भइल बच्चा के जिए के आशा के तुलना कइल जाय त बिहार के तुलना में ओकर जीवन प्रत्याशा चार बरिस कम, हरियाणा के तुलना में पाँच साल कम, आ हिमाचल प्रदेश के तुलना में सात बरिस कम रहे ला। भारत के स्तर पर, सगरी छुआछूत से फइले वाली भा गैर-छुआछूत वाली बेमारी सभ में उत्तर प्रदेश लगभग सभन में सभसे ढेर केस वाला रहल, एह में टाईफाइड से होखे वाला मउअत के 48 परसेंट (2014); 17 परसेंट कैंसर से होखे वाला मौत आ 18 परसेंट टीबी से होखे वाला मउअत (2015) उत्तर प्रदेश से रहल।<ref name="health"/> महतारी मउअत दर के मामिला में आसाम के बाद उत्तर प्रदेश भारत में दूसरा नमर प बाटे आ इहाँ हर एक लाख जचगी करे वाली औरतन में से 285 के मौत के एभरेज (2013) बाटे, आ सौ में 62 गर्भवती औरतन के जचगी के बाद जवन कमसेकम स्वास्थ्य-सुबिधा मिले के चाहीं ऊ ना उपलब्ध हो पावे ला।<ref name="health">{{cite web|title=Factsheet- Uttar Pradesh|url=http://www.censusindia.gov.in/vital_statistics/AHSBulletins/AHS_Factsheets_2012-13/FACTSHEET-UTTAR_PRADESH.pdf|website=censusindia.gov.in|publisher=''Ministry of Home Affairs''|accessdate=14 अगस्त 2017|ref=health}}</ref>
अभिन भी राज्य में 42 प्रतिशत औरत, संख्या में ई 15 लाख से ढेर होखी, घरहीं जचगी करे लीं। अइसन जचगी सभ में से लगभग दू तिहाई हिस्सा (61 प्रतिशत) सुरक्षित ना होला।<ref name="Health and Family">{{cite web|title=State of Health in Uttar Pradesh- Urban Health Resource Center|url=http://www.uhrc.in/downloads/Reports/up.pdf|website=uhrc.in|publisher=''Ministry of Health and Family Welfare''|accessdate=14 अगस्त 2017}}</ref> शिशु मौत दर के आँकड़ा उत्तर प्रदेश में हाई बाटे, नवजात मौत दर (NNMR) से पाँच बरिस के भीतर मरे वाला बच्चा सभ के इंडिकेटर देखल जाय त हर 1000 जनमल बच्चा सभ में से 64 गो मर जालें, एह में से 35 गो महीना के भीतरे मर जालें आ 50 गो साल भर के उमिर पूरा ना का पावे लें।<ref name="Rural">{{cite web|title=Rural Health Statistics|url=http://wcd.nic.in/sites/default/files/RHS_1.pdf|website=wcd.nic.in|publisher=''Ministry of Health and Family Welfare Statistics Division''|accessdate=14 अगस्त 2017}}</ref> अगर भारत के मानक के हिसाब से देखल जाय, प्रदेश के लगभग एक तिहाई हिस्सा ग्रामीण जनसंख्या मूलभूत स्वास्थ्य सुबिधा से बंचित बाटे।<ref name="Delivery">{{cite web|title=Public Private Partnership in Uttar Pradesh Health Care Delivery System|url=http://www.cehat.org/go/uploads/PPP/bibisratpaper.pdf|website=cehat.org|publisher=''UPHSDP''|accessdate=14 अगस्त 2017|archive-date=2017-03-29|archive-url=https://web.archive.org/web/20170329140924/http://www.cehat.org/go/uploads/PPP/bibisratpaper.pdf|url-status=dead}}</ref> हाल में, [[गोरखपुर]] में 60 ढेर बच्चन के अस्पताल में मौत हो गइल, एकर कारण उहाँ ऑक्सीजन के सप्लाई में कमी होखल बतावल गइल।<ref name="oxygen">{{cite news|title=India to Investigate 64 Children’s Deaths at Hospital in Uttar Pradesh|url=https://www.wsj.com/articles/indian-province-to-investigate-64-childrens-deaths-at-hospital-1502628951|agency=Wall Street Journal}}</ref>
==संस्कृति==
===भाषा आ साहित्य===
{{Main article|उत्तर प्रदेश के भाषा}}
[[File:Kurukshetra.jpg|thumb|230px|alt=एगो हाथ से लिखल पोथी|कुरुक्षेत्र के जुद्ध, महाभारत]]
बहुत सारा वैदिक मंत्र सभ के रचना प्राचीन काल में एह इलाका में भइल जे आज उत्तर प्रदेश के अंदर पड़े ला। महर्षि व्यास, जे परंपरागत रूप से वेद सभ के बिभाजन करे वाला मानल जालें आ पुराणन आ महाभारत के रचइता मानल जालें आ जिनके समर्पित तिहुआर गुरु पूर्णिमा आज भी एह क्षेत्र में मनावल जाला, उत्तर परदेस के कालपी के नजदीक जमुना नदी के एगो दीप पर जनमल बतावल जालें।<ref>[https://books.google.com/books?id=KnCxH85Vra4C&pg=PA205&lpg=PA205&dq=vyasa+born+yamuna&source=bl&ots=aX4O103DiT&sig=1pMtLNI3Ajf8Bz56WirIu2leukM&hl=en&sa=X&ei=E-jyU7eVBpaPuAS46YGIBw&ved=0CDcQ6AEwBA#v=onepage&q=vyasa%20born%20yamuna&f=false Essays on the Mahābhārata], Arvind Sharma, Motilal Banarsidass Publisher, p. 205</ref><ref name=ci>{{cite book|title=Awakening Indians to India|url=https://books.google.com/books?id=AIU4LzftaPAC&pg=PA167&dq=%22Guru+Purnima%22+-inpublisher:icon&cd=8#v=onepage&q=%22Guru%20Purnima%22%20-inpublisher%3Aicon&f=false|year=2008|publisher=Chinmaya Mission|isbn=81-7597-434-6|page=167|accessdate=5 अगस्त 2012}}{{Dead link|date=September 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> बाद के समय में, [[हिंदी साहित्य]] आ लोक साहित्य में एह प्रदेश के बहुत योगदान रहल बा आ [[तुलसीदास]], [[सूरदास]] आ [[कबीरदास]] नियर लोग एही राज्य से रहल बा। बनारस पुराना समय से शिक्षा आ साहित्य के केंद्र रहल चल आइल बा। आधुनिक समय (19वीं आ 20वीं-सदी) के [[हिंदी भाषा]] के साहित्य में भी बहुत सारा लोग के नाँव गिनावल जा सके ला जइसे कि [[भारतेंदु हरिश्चंद्र]], [[जयशंकर प्रसाद]], [[मैथिलीशरण गुप्त]], [[मुंशी प्रेमचंद]], [[महादेवी वर्मा]], [[सुभद्राकुमारी चौहान]], [[निराला|सूर्यकांत त्रिपाठी 'निराला']], बाबू गुलाबराय, [[अज्ञेय]], [[हरिवंश राय बच्चन]], [[हजारी प्रसाद द्विवेदी]],<ref name=authors>{{cite web|title=The Indus Valley Civilization|url=http://www.hindunet.org/hindu_history/ancient/indus/indus_civ.html|publisher=The Hindu universe|accessdate=8 July 2012}}</ref> [[शिवप्रसाद सिंह]] आ [[काशीनाथ सिंह]] वगैरह।
राज्य के कबो-कबो ''हिंदी हार्टलैंड'' (मने कि, हिंदी हृदय प्रदेश) भी कहल जाला।<ref>{{cite web|url=http://www.newkerala.com/topstory-fullnews-67268.html |title=Three indian children to attend J8 summit in Rome.:. newkerala.com Online News |publisher=New kerala |accessdate=21 September 2009 |url-status=dead |archiveurl=https://web.archive.org/web/20110614094016/http://www.newkerala.com/topstory-fullnews-67268.html |archivedate=14 जून 2011 }}</ref> [[हिंदी भाषा]] राज्य के प्रशासन के ऑफिशियल भाषा 1951 के उत्तर प्रदेश ऑफिशियल भाषा अधिनियम से बनल आ 1989 में एह अधिनियम में सुधार कइल गइल आ [[उर्दू]] के अतिरिक्त भाषा के दर्जा दिहल गइल।<ref>{{cite web|url=http://uplegassembly.nic.in/UPLL.HTML |title=Uttar Pradesh Legislature |publisher=U.P assembly |accessdate=21 September 2009 |url-status=dead |archiveurl=https://web.archive.org/web/20090619093010/http://www.uplegassembly.nic.in/UPLL.HTML |archivedate=19 जून 2009 }}</ref> भाषा बिज्ञान के हिसाब से राज्य के बिस्तार [[हिंदी पट्टी]] के पच्छिमी, मध्य आ पूरबी हिंदी तीनो के कुछ इलाका कभर करे ला। मुख्य भाषा आ बोली सभ में अवधी, [[भोजपुरी]], ब्रजभाषा, बुन्देली, कनौजी, बघेली आ कड़ी बोली गिनावल जाली सऽ।<ref>{{cite web|url=http://www.ethnologue.com/show_language.asp?code=bfy |title=Ethnologue report for language code: bfy |publisher=Ethnologue|accessdate=21 September 2009}}</ref>
===संगीत आ नाच===
उत्तर प्रदेश से आवे वाला संगीत के क्षेत्र के हस्ती लोग में अनूप जलोटा, गिरिजा देवी, किशन महराज, विकास महराज,<ref>{{cite web |url=http://www.varanasi.nic.in/ |title=Official Website Of Varanasi District |publisher=Varanasi.nic.in |date= |accessdate=2015-07-29 |archive-date=2019-08-02 |archive-url=https://web.archive.org/web/20190802010349/http://www.varanasi.nic.in/ |url-status=dead }}</ref> नौशाद अली, रविशंकर, शुबहा मुद्गल, सिद्धेश्वरी देवी, तलत महमूद आ उस्ताद [[बिस्मिल्ला ख़ाँ|बिस्मिल्ला खान]] के नाँव प्रमुख बा। परसिद्ध गजल गायिका बेगम अख्तर उत्तरे परदेश के रहली। लोक संगीत के भी इहाँ बहुत धनी परंपरा बा आ ब्रज क्षेत्र के रसिया आ होरी कृष्ण भक्ति के संगीत हवे। अन्य लोग संगीत के रूप में फगुआ, कजरी, चैती, सोहर, ठुमरी, बिरहा, आ सोरठी बाटे। लखनऊ में भातखंडे संगीत संस्थान आ इलाहाबाद में प्रयाग संगीत समीति इहाँ के प्रमुख संगीत शिक्षा के संस्थान बाड़ें।<ref name=Institute>{{cite web|title=Bhatkhande music institute|url=http://www.upeducation.net/universities/Bhatkhande_Music_Institute/|publisher=Uttar Pradesh Education Department|accessdate=25 July 2012|archive-date=10 January 2012|archive-url=https://web.archive.org/web/20120110184217/http://www.upeducation.net/universities/Bhatkhande_Music_Institute/|url-status=dead}}</ref>
शाश्त्रीय नाच के बिधा [[कथक]] के पैदाइश उत्तरे प्रदेश में भइल।<ref name="dance"/> तबला आ पखावज के साथ एह नाच के प्रस्तुति उत्तर भारतीय संगीत पर आधारित होले।<ref>{{cite web|title=North Indian: Kathak|url=http://www.worldartswest.org/plm/guide/printablepages/kathak.pdf|publisher=Dance style loacator|accessdate=23 जून 2012|archive-date=2013-05-08|archive-url=https://web.archive.org/web/20130508154646/http://www.worldartswest.org/plm/guide/printablepages/kathak.pdf|url-status=dead}}</ref> शास्त्रीय नाच के चार गो घराना प्रमुख बाने: लखनऊ घराना, अज्राड़ा घराना, फर्रूखाबाद घराना आ बनारस घराना।<ref name=gharana>{{cite web|title=Lucknow gharana, developed with Kathak. |url=http://www.hindustaniclassical.com/lucknow.asp |publisher=Hindustani classical music |accessdate=23 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20100605174519/http://www.hindustaniclassical.com/lucknow.asp |archivedate=5 जून 2010 }}</ref><ref name="benaras gharna">{{cite web|title=Benaras Gharana, traditional style and way of teaching and performing Indian classical music. |url=http://www.benaresmusicacademy.com/page-1|publisher=Benares music academy|accessdate=23 जून 2012}}</ref> [[पूर्वांचल]] के लोक नाच में धोबिअऊ आ कहरऊ नाच के ख़ास अस्थान बा।
===मेला आ परब-तिहुआर===
[[File:India - Varanasi sun greet - 0270.jpg|thumb|230px|alt=संझा आरती|[[बनारस]] में घाट पर गंगा आरती करत हिंदू पुजारी]]
[[दिपावली]], [[होली]] आ [[रामनवमी]] उत्तर प्रदेश के बहुत प्रमुख तिहुआर हवें। इलाहाबाद के [[कुंभ मेला]] सभसे बड़हन मेला हवे।<ref name=Mela>{{cite web|title=Kumbh Mela - India|url=https://www.youtube.com/watch?v=WqvzEjgYTFA|publisher=[[YouTube]]|accessdate=18 July 2012}}</ref> बरसाना आ मथुरा में होली के पहिले लट्ठमार होली एक ठो परसिद्ध तिहुआर हवे। [[बुद्ध पूर्णिमा]], जहिया [[गौतम बुद्ध]] के जनम, ज्ञान, आ निर्वाण तीनो भइल, बौद्ध लोग आ हिंदू लोग के पावन परब हवे। अन्य तिहुआर सभ में ईद-उल-फ़ित्र, बकरीद, बिजयदसिमी, खिचड़ी, बसंत पंचिमी, सतुआन, जन्माष्टमी, देव दीपावली, गंगा दसहरा, छठ पूजा, महावीर जयंती, मोहर्रम, आ हनुमान जयंती प्रमुख बाने।<ref name=traditions>{{cite web|title=The glorious traditions and mythological legacy |url=http://www.up-tourism.com/destination/varanasi/fair_festival.htm |publisher=Department of tourism U.P |accessdate=18 July 2012 |url-status=dead |archiveurl=https://web.archive.org/web/20120629052417/http://www.up-tourism.com/destination/varanasi/fair_festival.htm |archivedate=29 जून 2012 }}</ref> आगरा के [[ताज महोत्सव]], आधुनिक समय के चीज हवे आ संस्कृति के बिबिध रंगीन रूप देखे के मिले ला।<ref name="Braj Holi">{{cite news|title=The Braj Holi: Legend in real life |url=http://www.hindustantimes.com/News-Feed/lifestyle/The-Braj-Holi-Legend-in-real-life/Article1-675341.aspx |accessdate=13 जुलाई 2012 |work=[[हिन्दुस्तान टाइम्स]] |date=19 मार्च 2011 |url-status=dead |archiveurl=https://web.archive.org/web/20110322041343/http://www.hindustantimes.com/News-Feed/lifestyle/The-Braj-Holi-Legend-in-real-life/Article1-675341.aspx |archivedate=22 मार्च 2011 }}</ref> इलाहाबाद में, त्रिवेणी महोत्सव भी मनावल जाला।
===खानपान===
{{Main article|उत्तर प्रदेश के खाना}}
[[File:Vegetarian Curry.jpeg|alt=photograph|thumb|230px|उत्तर प्रदेशी थाली, नान, दाल, रायता, आ शाही पनीर के संघे।]]
[[File:Paan, (betel leaves) being served with silver foil, India.jpg|thumb|230px|चानी के वरक लागल पान।]]
रोज-रोज खाइल जाए वाला खाना में, उत्तर भारत के बाकी इलाका नियर, उत्तर प्रदेश में भी थाली में [[रोटी]], दाल, सब्जी आ चावल (भात) प्रमुख भोजन हवे। एकरे संघे, चटनी, रायता, [[अँचार]] आ पापड़ नियर चीज चटकार करे खातिर भोजन के सहजोगी आइटम हवें सऽ। खास मोका महाले, रोटी के जगह पूड़ी खाइल जाला। अइसन मोका सभ पर कड़ाही में छान के बनावल पकवान सभ के प्रमुखता हो जाला, इनहन के पक्का खाना कहल जाला। पूड़ी, कचउड़ी, सब्जी, पोलाव, पापड़, रायता आ मीठा आइटम में खीर (तस्मई) भा सेवई खाइल जाला। पेय (पियल जाए वाला) चीज सभ में छाछ (भा माँठा) अभिन भी बहुत सारा लोग पसंद करे ला। भोजन के बाद पान खाए-खियावे के चलन भी हवे।
बहुत सारा समुदाय-बिरादरी सभ के आपन ख़ास पकवान भी होला। जैन, कायस्थ आ मुसलमान लोग के अपना तरीका के भोजन होला। एही तरीका से एह बड़हन राज्य में क्षेत्र के अनुसार भी बिबिधता देखे के मिले ला। अवधी खाना, लखनऊ के परभाव में कबाब, बिरियानी, कीमा आ निहारी नियर पकवान सभ खातिर बहुत परसिद्ध हवे। मिठाई के आइटम में, खुरचन, बरफी, पेड़ा, गुलाबजामुन, पेठा, राबड़ी नियर चीज बहुत चलन में बाड़ी आ हिंदू लोग के भोजन में इनहन के बहुत प्रमुख अस्थान बाटे। लखनऊ के चाट आ बनारस के पान अपना सवाद आ सामग्री खाती पुरा दुनिया में मशहूर हवे।<ref name=paan>{{cite news|title=Banarasi paan or tobacco|url=http://timesofindia.indiatimes.com/topic/Banarasi-paan-or-tobacco|accessdate=14 July 2012|work=[[दि टाइम्स ऑफ इंडिया]]|date=28 अप्रैल 2012}}</ref>
अवधी खानपान पर मुख्य रूप से लखनऊ क परभाव देखल जाला। नबाब लोग के शासन काल में, मुगलई पकवान के इहाँ चलन बहुत बढ़ल आ एही कारण इहाँ के भोजन भी काश्मीर, मध्य एशिया, पंजाब आ हैदराबादी पकवान सभ से परभावित भइल; आज शहर के अपना नबाबी खाना खातिर जानल जाला।<ref name="books.google.nl">{{cite book|url=https://books.google.com/books?id=v-2TyjzZhZEC&pg=PA10&lpg=PA10&dq=central+asian+influence+on+mughal+cuisine|title=Royal Mughal Ladies and Their Contributions|accessdate=1 जून 2014|isbn=9788121207607|author1=Mukherjee|first1=Soma|year=2001}}</ref>
लखनऊ के बावर्ची आ रकाबदार लोग इहाँ खास 'दम पुख्त' स्टाइल शुरू कइल (जेह में कई तरह के "दम" शामिल बाने, इनहन के मद्धिम आँच पर देरी ले पकावल जाला) आ अब ई लखनऊ के खास चीन्हा बन चुकल बा। एही स्टाइल के बिस्तार के रूप में, कबाब, कोरमा, बिरियानी, कलिया, कुलचा, जरदा, शीरमाल, रूमाली रोटी, आ वरकी पराठा भी लखनऊ के खास चीज मानल जाला। अवध के खाना खाली भर बिबिधते के मामिला में धनी नइखे, पकवान बनावे में इस्तेमाल होखे वाला सामान में भी बहुत चीज शामिल कइल जाला जेह में इलायची, केसर आ जाफरान नियर खुशबूदार मसाला वगैरह गिनावल जा सके लें।
पूरबी उत्तर प्रदेश के खाना, जहाँ भोजपुरी संस्कृति बा, कुछ अलगे किसिम के होला। आम उत्तर परदेशी थाली इहाँ ओइसने होले जइसन बाकी उत्तर भारत में, बाकी पूरुब बढ़े पर भात के महत्त्व आ मछरी के महत्व बढ़त जाला। खास परब तिहुआरन पर पूड़ी कचौड़ी के साथ कढ़ी-बरी वगैरह के महत्व भी बढ़ जाला। भउरी-चोखा ([[लिट्टी]]-चोखा), सतुआ आ दही-चिउड़ा एह इलाका में काफी चलन में रहल बा। तराई के इलाका में मछरी के परभाव बढ़त देखल जाला।
===पहिनावा===
उत्तर प्रदेश के लोग के पहिनावा में परंपरागत पहिनावा आ पच्छिमी स्टाइल के पहिनावा, दुनों सामिल बा।<ref name=Costumes>{{cite web|title=Costumes of Uttar Pradesh|url=http://www.indfy.com/uttar-pradesh/dresses.html|publisher=Indify|accessdate=1 अक्टूबर 2012}}</ref> परंपरागत रूप से एह इलाका में धोती-कुरता भा पैजामा-कुरता मरदाना लोग के पोशाक हवे आ औरतन के पोशाक [[साड़ी]] आ सलवार-कमीज हवे।<ref name=Costumes/> नया जमाना के लोग अब पैंट-बुशट, जींस-टीशर्ट भी पहिरत बा। टोपी आ पगड़ी पुरुष लोग के पोशाक के हिस्सा हवे।<ref name=Costumes/> शेरवानी आ चूड़ीदार पैजामा, मर्दाना लोग बिसेस मोका-महाले पहिरे ला जइसे कि शादी बियाह भा तिहुआर के समय पर।{{r|Costumes}}
==मीडिया==
उत्तर प्रदेश से कई गो अंग्रेजी, हिंदी आ उर्दू अखबार आ पत्रिका सभ के प्रकाशन होला। अंग्रेजी के ''पायनियर'' के अस्थापना 1865 में जार्ज एलेन द्वारा इलाहाबाद में कइल गइल।<ref name=dasgupta>{{cite journal|doi=10.1017/S0026749X00015092|author=Das Gupta, Uma|year= 1977|title=The Indian Press 1870–1880: A Small World of Journalism|url=http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid=2701888|journal=Modern Asian Studies|volume=11|issue=2|pages=213–235|format=see pages 233–234|jstor=311549|ref=harv}}</ref> ''[[अमर उजाला]]'', ''[[दैनिक जागरण]]'', ''[[हिंदुस्तान (अखबार)|हिन्दुस्तान]]'' वगैरह के भारी सर्कुलेशन बा आ इनहन के लोकल संस्करण कई जगह से छपे ला। इहाँ छपे आ बिकाये वाला प्रमुख अंग्रेजी अखबार सभ में ''[[दि टेलीग्राफ (कलकत्ता)|दि टेलीग्राफ]]'', ''[[दि टाइम्स ऑफ इंडिया]]'', ''[[हिंदुस्तान टाइम्स]]'', ''[[दि हिंदू]]'', ''[[दि स्टेट्समैन]]'', ''[[दि इंडियन एक्सप्रेस]]'', आ ''[[एशियन एज]]'' बाड़ें। अर्थजगत आ फाइनेंस से जुड़ल प्रमुख अखबार ''[[दि इकोनॉमिक टाइम्स]]'', ''[[दि फाइनेंशियल एक्सप्रेस (भारत)|दि फाइनेंशियल एक्सप्रेस]]'', ''[[बिजनेस लाइन]]'', आ ''[[बिजनेस स्टैंडर्ड ]]'' के सर्कुलेशन उल्लेख जोग बा। देसी भाषा सभ में भी कई गो अखबार बिकालें जेह में नेपाली, गुजराती, पंजाबी, बंगाली, ओडिया आ उर्दू भाषा के अखबार शामिल बाड़ें, हालाँकि इनहन के पाठक लोग के संख्या गिनल चुनल बा।
दूरदर्शन राज्य द्वारा चलावल जाये वाला टीवी चैनल हवे। एकरे अलावा बिबिध हिंदी, अंग्रेजी आ क्षेत्रीय भाषा सभ के चैनल केबिल प्रसारण आ डिश द्वारा उपलब्ध बाने। 24 घंटा समाचार प्रसारण वाला चैनल में ''[[एनडीटीवी इंडिया]]'', ''[[डीडी न्यूज]]'', ''जी न्यूज'', ''जन टीवी'', ''आइबीएन-7'', ''आज तक'' आ ''एबीपी न्यूज'' प्रमुख बाने। आल इंडिया रेडियो (आकाशवाणी) राज्य के रेडियो चैनल हवे। एकरे अलावा 32 गो प्राइवेट फ्रीक्वेंसी वाला एफएम चैनल के प्रसारण उत्तर प्रदेश के अलग-अलग शहर सभ में हो रहल बा।<ref name="RADIO STATIONS">{{cite web|title=Radio Stations in Uttar Pradesh, India|url=http://www.asiawaves.net/india/uttar-pradesh-radio.htm|publisher=Asiawaves|accessdate=14 July 2012}}</ref><ref name="FM Stations">{{cite web|title=Indian FM Stations Statewise|url=http://fmstations.bharatiyamobile.com/Indian-FM-Stations-Statewise.php?state=Uttar+Pradesh&location=Aligarh|publisher=Bharatiya mobile|accessdate=14 July 2012}}</ref> सेलफोन नेटवर्क सभ में राज्य के मालिकाना वाला बीएसएनएल बा आ प्राइवेट में वोडाफोन, रिलायंस, एयरटेल, एयरसेल, टेलिनोर, टाटा इंडीकॉम, आइडिया सेलुलर आ टाटा डूकोमो बाने। कुछ चुनल शहर सभ में ब्राडबैंड के सुबिधा उपलब्ध बा जे बीएसएनएल आ कुछ प्राइवेट कंपनी सभ द्वारा उपलब्ध करावल जाले।<ref name=cellular>{{cite web|title=Uttar Pradesh (East)|url=http://www.india-cellular.com/UPE-page.html|publisher=India cellular phone industry|accessdate=14 July 2012}}</ref> बीएसएनएल आ अन्य प्रदाता सभ द्वारा डायल-अप सेवा भी उपलब्ध करावल जाले।<ref name="dial up">{{cite web|title=Internet Service Provider|url=http://www.datainfocom.in/services/isp.htm|publisher=Data Infocom Limited|accessdate=14 July 2012|archive-date=25 July 2012|archive-url=https://web.archive.org/web/20120725111443/http://datainfocom.in/services/isp.htm|url-status=dead}}</ref>
==संदर्भ==
{{Reflist|35em}}
{{भारत के राज्य अउरी संघ राज्यक्षेत्र}}
{{उत्तर प्रदेश}}
{{Uttar Pradesh topics}}
[[श्रेणी:उत्तर प्रदेश| ]]
[[श्रेणी:भारत के राज्य अउरी संघ राज्यक्षेत्र]]
[[श्रेणी:भारत के राज्य]]
hnvwzl4mpnvd3pofmxk065y243zfq79
काठमांडो
0
4506
815163
810054
2026-11-12T14:15:18Z
SM7Bot
7808
सफाई, replaced: |dead-url=yes → |url-status= (2) using [[Project:AWB|AWB]]
815163
wikitext
text/x-wiki
{{Infobox settlement
|name = काठमांडो
|official_name = काठमाडौं महानगरपालिका
|settlement_type = [[शहर|मेट्रो]]
|image_skyline =
|imagesize =
|image_caption =
|motto = ''जिगु पौरख, जिगु गौरव, जिगु येँ देय्''
|pushpin_map = Nepal
|pushpin_label_position = <!-- the position of the pushpin label: left, right, top, bottom, none -->
|pushpin_mapsize = 300
<!-- Location -->
|pushpin_map_caption = नेपाल में लोकेशन
|pushpin_relief = 1
|coordinates = {{coord|27|42|41|N|85|18|31|E|type:city_region:NP|display=inline,title}}
|subdivision_type = देस
|subdivision_name = {{झंडा|नेपाल}}<!-- the name of the country, not the flag -->
|subdivision_type1 = [[नेपाल के प्रांत|प्रांत]]
|subdivision_type2 = [[नेपाल के अंचल|अंचल]]
|subdivision_type3 = [[नेपाल के जिला|जिला]]
|subdivision_name1 =[[कोशी प्रदेश]]
|subdivision_name2 = [[बाघमती अंचल]]
|subdivision_name3 = [[काठमांडो जिला|काठमांडो]]
<!-- Area -->
|government_footnotes =
|unit_pref = <!--Enter: Imperial, if Imperial (metric) is desired-->
|area_footnotes =
|area_total_km2 = 49.45
|area_note = ''[[काठमांडो जिला]]'': 395'' वर्ग किलोमीटर''<br />''[[काठमांडो घाटी]]'': 642'' वर्ग किलोमीटर''
<!-- Population -->
|elevation_footnotes =
|elevation_m = 1400
<!-- Area/postal codes and others -->
|population_total =
|population_as_of = 2011
|population_footnotes =
|population_density_km2 =
|population_metro = 1003285 <ref>{{cite web |title = Statistical Year Book of Nepal – 2011 |url = http://cbs.gov.np/image/data/Publication/Statistical%20Year%20book%202013_SS/Statistical-Year-book-2013_SS.pdf |quote = Kathmandu Metro |access-date = 2017-12-28 |archive-date = 2016-03-26 |archive-url = https://web.archive.org/web/20160326122642/http://cbs.gov.np/image/data/Publication/Statistical%20Year%20book%202013_SS/Statistical-Year-book-2013_SS.pdf |url-status = dead }}</ref><br />''Male: ''533127'' Female: ''470158
|population_density_metro_km2 =20288.88
|population_note = ''[[काठमांडो जिला]]'': 1,744,240<br />''[[काठमांडो घाटी]]'': 2,517,023
|demographics_type1 = भाषा
|demographics1_title1 = चलन में
|demographics1_info1 = नेपाली, नेपाल भाषा, शेरपा, तमांग आ लिंबू वगैरह
|demographics1_title2 = ऑफिशियल
|demographics1_info2 = [[नेपाली भाषा|नेपाल]], [[नेपाल भाषा]]
|postal_code_type = डाक कोड
|postal_code = 44600 (GPO), 44601, 44602, 44604, 44605, 44606, 44608, 44609, 44610, 44611, 44613, 44614, 44615, 44616, 44617, 44618, 44619, 44620, 44621
|area_code = 01
|blank1_name_sec1 = एचडीआई
|blank1_info_sec1 = {{increase}} 0.710 <span style="color:#fc5;"> हाई</span> <ref>{{cite web|url=http://www.internal-displacement.org/8025708F004CE90B/(httpDocuments)/0865FF03B159B9C1C1257980002F2D30/$file/Nepal_Central_Region_Overview_Paper.pdf |archive-url=https://web.archive.org/web/20120202202326/http://www.internal-displacement.org/8025708F004CE90B/%28httpDocuments%29/0865FF03B159B9C1C1257980002F2D30/%24file/Nepal_Central_Region_Overview_Paper.pdf |url-status= |archive-date= 2 February 2012 |title=An Overview of the Central Development Region (CR) |publisher=Internal-displacement.org |format=PDF |accessdate=25 November 2013 |df= }}</ref>
|website = {{Official website}}
|footnotes =
|blank3_name_sec1 = साक्षरता
|blank3_info_sec1 = {{increase}} 78%<span style="color:#fc5;"> हाई</span>
<!-- General information -->
|timezone = [[नेपाली मानक समय|एनएसटी]]
|utc_offset = +5:45
}}
'''काठमांडो''' हिमालयी देस [[नेपाल]] के राजधानी आ इहाँ के सभसे बड़ सहर हवे। ई [[हिमालय|हिमालय क्षेत्र]] में भी सभसे बड़हन सहर हवे आ इहाँ के कुल जनसंख्या लगभग 20 लाख बा आ अगर [[काठमांडो घाटी]] में मौजूद अन्य उपनगर सभ के शामिल कइल जाय तब जनसंख्या 60 लाख बाटे; एह में [[ललितपुर, नेपाल|ललितपुर]], कीर्तिपुर, मध्यपुर थीमी आ भक्तपुर नियर कस्बा सामिल कइल जालें।
शहर बिचला नेपाल के कटोरीनुमा काठमांडो घाटी में समुंद्र तल से {{convert|1400|m|ft|lk=out|abbr=off}} के ऊँचाई पर बसल बा। घाटी के इतिहासी रूप से "नेपाल सदर" के नाँव से जानल जाला। ई नेवार लोग के मूल अस्थान हवे। काठमांडो, नेपाली राजघराना के राजधानी रहल हवे आ कई गो पबित्र धार्मिक अस्थान एह घाटी में बाड़ें। इहाँ दक्खिन एशियाई देसन के संगठन सार्क के मुख्यालय भी 1985 से अस्थापित बा। वर्तमान में ई शहर, साल 2008 में अस्थापित नेपाली गणराज्य के राजधानी भी बा आ ई [[नेपाल के प्रशासनिक विभाजन|नेपाल के प्रशासनिक बिभाजन]] अनुसार [[बागमती अंचल]] आ [[प्रदेश संख्या ३|प्रदेश संख्या 3]] के अंतगर्त आवे ला।
पुराना समय से काठमांडो नेपाल के इतिहास, कला, संस्कृति आ अर्थब्यवस्था के केंद्र रहल बा। इहाँ के जनसंख्या भी कई किसिम के [[नृजातीय समूह|जातीयता]] वाली बा आ धार्मिक आधार पर देखल जाय तऽ हिंदू आ बौद्ध लोग के बहुलता बाटे। धार्मिक आ सांस्कृतिक तिहुआर सभ इहाँ के आम जनजीवन के अभिन्न अंग बाड़ें। शहर के आर्थिक आधार के रूप में पर्यटन के बिसेस महत्व बा। धार्मिक तीर्थ यात्रा के अलावा पहाड़ घूमे आ अन्य एडवेंचर करे खाती भी लोग इहाँ आवे ला आ इहाँ सात गो कसीनों भी बाने। 2015 में आइल भूडोल में शहर के काफी नोकसान भइल रहे। नेपाली आ नेपाल भाषा इहाँ आम चलन में बा आ अंग्रेजी आ हिंदी भी लोग बुझे ला।
== भूगोल ==
काठमांडो शहर, [[काठमांडो घाटी]] के उत्तरी पच्छिमी हिस्सा में, बागमती नदी के उत्तर में स्थित बा आ लगभग {{convert|50.7|km2|1|abbr=on}} क्षेत्रफल पर एकर बिस्तार बाटे। समुंद्र तल से औसत ऊँचाई {{convert|1400|m|ft|sigfig=2}} बाटे।<ref name="KTM intro">{{cite web|url=http://www.kathmandu.gov.np/Page_Introduction_1 |archive-url=https://web.archive.org/web/20120623003237/http://www.kathmandu.gov.np/Page_Introduction_1 |url-status= |archive-date=23 June 2012 |title=Kathmandu Metropolitan City Office – Introduction |accessdate=14 August 2014 |publisher=Kathmandu Metropolitan City Office |df= }}</ref> शहर के इर्द-गिर्द कई गो अन्य नगरपालिका सभ भी बाड़ी: बागमती नदी के दक्खिन में पाटन (ललितपुर) बा जेकरे साथे रिंग रोड जुड़े ला, दक्खिन पच्छिम में कीर्तिपुर बा आ पूरुब में मध्यपुर थिमि बाटे। उत्तर में ई शहर कई गाँव बिकास समीति सभ ले बिस्तार लिहले बा। हालाँकि, शहर के नगरीय संकुल (एग्लोमरेशन) अउरी बिस्तार वाला बा आ एह में भक्तपुर नियर नगरपालिका आ लगभग पूरे काठमांडो घाटी आ जाले।
{{Geographic location
|Centre = काठमांडो मेट्रो शहर
|North = [[तोखा]] / [[बुढनीलकंठ]]
|Northeast = गोकर्नेश्वर
|East = कागेश्वरी मनोहरा
|Southeast = मध्यपुर थिमि
|South = ''[[बाघमती नदी]]''<br>[[ललितपुर, नेपाल|ललितपुर]]
|Southwest = [[कीर्तिपुर]]
|West = नागार्जुन
|Northwest = तारकेश्वर
}}
काठमांडो घाटी में कुल छोट-बड़ आठ्गो नदी गुजरे लीं, इनहन में घाटी के मुख्य नदी, [[बाघमती नदी|बाघमती]] आ एकर सहायिका नदी सभ शामिल बाड़ी, बिष्णुमती, ढोबी खोला, मनोहरा खोला, हनुमंते खोला आ टुकुचा खोला एह सहायिका सभ में प्रमुख बाड़ी सऽ। जवना पहाड़ सभ से ई नदी निकसे लीं उनहन के ऊँचाई लगभग {{convert|1500|-|3000|m|ft}} के बीच बा, आ एह में कई को काठी (दर्रा) सभ बाने जिनहन से हिमालय के अन्य घाटी सभ से एह घाटी के जुड़ाव आ रस्ता बा।<ref name=facts>{{cite web |url = http://www.kathmandu.gov.np/index.php?cid=2&pr_id=2 |title = Kathmandu Facts |accessdate = 12 दिसंबर 2009 |publisher = Kathmandu Metropolitan City Council, Government of Nepal }}</ref><ref name=Geography>{{cite web |url = http://www.kathmandu.gov.np/index.php?cid=3&pr_id=3 |title = Geography |accessdate = 12 दिसंबर 2009 |publisher = Kathmandu Metropolitan City }}</ref><ref name="Shreshta S.H.">{{Cite book |last = Shreshta |title = Nepal in Maps |page = |work = Kathmandu valley |pages = 102–14 |publisher = Educational Publishing House |location = Kathmandu |year = 2005 |first = S.H }}</ref> बहुत पुराना जमाना के एगो नहर नागार्जुन पहाड़ी से निकल के बलाजू होखत काठमांडो चहुँपे, हालाँकि अब ई नहर बिलुप्त हो चुकल बाटे।
काठमांडो घाटी के बनस्पति क्षेत्र ''मानसूनी पतझड़ वाला बन'' के श्रेणी में आवे ला (ऊँचाई {{convert|1200|-|2100|m|ft}}) जे नेपाल के पाँच गो बनस्पति क्षेत्र सभ में एक हवे। ओक, एल्म, बीच आ मैपल वगैरह पे फेड़ सभ के बहुतायत बा आ ऊँच ढाल सभ पर कोणधारी बन भी मिले लें।<ref>Shrestha S.H. p. 35</ref>
<gallery mode="packed">
File:2015-03-08 Swayambhunath, Katmandu, Nepal.jpg|काठमांडो में नगरी बिस्तार(मार्च 2015)
File:Kathmandu, Nepal.JPG|काठमांडो घाटी के चारो ओर के परबती ढालन प भरपूर हरियरी बा जेकरे बीचा में ई मेट्रो सहर स्थित बा, आसपास रिजर्व क्षेत्र आ राष्ट्रीय पार्क भी बाने
File:Kathmandu City during monsoon.jpg|आसमान में घन बादर आ काठमांडो के हाइवे
File:New Road-kathmandu-07.jpg|नई सड़क, शॉपिंग वाला इलाका आ बिजनेस डिस्ट्रिक्ट हवे
</gallery>
=== काठमांडो प्रशासन ===
काठमांडो आ आसपास के नगरीय इलाका सभ कई गो आवासीय क्षेत्र सभ में बिभाजित बाने, लोकल लोग आम बेहवार में एही मोहल्ला सभ के नाँव के इस्तेमाल ढेर करे ला। हालाँकि, प्रशासन के हिसाब से काठमांडो के बिभाजन 35 गो वार्ड सभ में कइल गइल बा। इनहन के नाँव नंबरिंग के आधार पर हवे, मने की वार्ड नं. 1 से ले के वार्ड नं. 35 तक।<ref>[https://web.archive.org/web/20120622031755/http://www.kathmandu.gov.np/Page_Ward%2BNo.%2B16_31]</ref>
=== काठमांडो नगरीय समूह ===
काठमांडो नगरीय समूह (एग्लोमेरेशन) कौनों प्रशासनिक इकाई ना घोषित हवे। काठमांडो घाटी के शहरी इलाका सभ तीन गो जिला सभ में बिभाजित बाने जे लगभग पूरा तौर पर एह घाटी के भितरे मौजूद बाने सिवाय दक्खिनी हिस्सा के छोड़ के जे एह घाटी के बहरे ले फइलल बाटे। एह जिला सभ के जनसंख्या घनत्व पूरा नेपाल में सभसे ढेर बा, मने की ई नेपाल के सभसे ढेर घन बसल जिला सभ में टॉप पर बाने। एह तीन जिला सभ में 3 कई गाँव बिकास समीति, 20 गो नगरपालिका आ 2 दू गो मेट्रो (महानगरपालिका): काठमांडो आ लातितपुर) सामिल बाने। नीचे एह जिला सभ के आँकड़ा दिहल गइल बा जे काठमांडो नगरीय संकुल के हिस्सा मानल जालें:
{| class="wikitable" style="text-align:right;"
|-
! जिला
! रकबा (किमी<sup>2</sup>)
! जनसंख्या (2001 जनगणना)
! जनसंख्या (2011 जनगणना)
! जनघनत्व (/किमी<sup>2</sup>)
|-
| style="text-align:left;"| [[काठमांडो जिला]]
| 395
| 1,081,845
| 1,740,977
| 4408
|-
| style="text-align:left;"| [[ललितपुर जिला (नेपाल)|ललितपुर जिला]]
| 385
| 337,785
| 466,784
| 1212
|-
| style="text-align:left;"| [[भक्तपुर जिला]]
| 119
| 225,461
| 303,027
| 2546
|-
| style="text-align:left;"| '''काठमांडो नगरी समूह'''
| '''899'''
| '''1,645,091'''
| '''2,510,788'''
| '''2793'''
|}
==संदर्भ==
{{Reflist|35em}}
{{Nepal topics}}
[[श्रेणी:काठमांडो| ]]
[[श्रेणी:नेपाल के शहर| ]]
[[श्रेणी:एशिया के शहर]]
[[श्रेणी:नेपाल| ]]
n2ky1zg9fl9g19zq232r3415mgtjoh8
ऊटा
0
4937
815152
814523
2026-11-12T14:14:19Z
SM7Bot
7808
/* top */ सफाई using [[Project:AWB|AWB]]
815152
wikitext
text/x-wiki
{{Infobox U.S. state
|Name = Utah
|Fullname = State of Utah
|Flag = Flag of Utah.svg
|Flaglink = [[Flag of Utah|Flag]]
|Seal = Seal of Utah.svg
|Map = Utah_in_United_States.svg
|Nickname = Beehive State (official), The Mormon State, Deseret
|StateAnthem = [[Utah, This is the Place]]
|Demonym = Utahn or Utahan<ref>{{citation |title= Utah |edition= Online Dictionary |url= http://www.merriam-webster.com/dictionary/Utah |website= Merriam-Webster.com |publisher= [[Merriam-Webster]] |archive-url= https://web.archive.org/web/20141104192514/http://www.merriam-webster.com/dictionary/utah |archive-date= November 4, 2014 |deadurl= no }}</ref>
|Motto = Industry
|Former = Utah Territory
|Capital = [[Salt Lake City]]
|LargestCity = capital
|LargestCounty = [[Salt Lake County, Utah|Salt Lake County]]
|LargestMetro = [[Salt Lake City metropolitan area|Salt Lake City]]
|Governor = [[Gary Herbert]] ([[Republican Party (United States)|R]])
|Lieutenant Governor = [[Spencer Cox (politician)|Spencer J. Cox]] (R)
|President of the Senate = [[Wayne Niederhauser]]
|Speaker of the House = [[Greg Hughes]]
|Legislature = [[Utah State Legislature|State Legislature]]
|Upperhouse = [[Utah State Senate|State Senate]]
|Lowerhouse = [[Utah House of Representatives|House of Representatives]]
|Senators = [[Orrin Hatch]] (R)<br />[[Mike Lee (Utah politician)|Mike Lee]] (R)
|Representative =
*[[Utah's 1st congressional district|1]]: [[Rob Bishop]] (R)
*[[Utah's 2nd congressional district|2]]: [[Chris Stewart (politician)|Chris Stewart]] (R)
*[[Utah's 3rd congressional district|3]]: [[John Curtis (American politician)|John Curtis]] (R)
*[[Utah's 4th congressional district|4]]: [[Mia Love]] (R)
|PostalAbbreviation = UT
|TradAbbreviation = Ut.
|OfficialLang = English
|AreaRank = 13th
|TotalAreaUS = 84,899
|TotalArea = 219,887
|LandAreaUS = 82,144
|LandArea = 212,761
|WaterAreaUA = 2,755
|WaterArea = 7,136
|PCWater = 3.25
|PopRank = 31st
|2010Pop = 3,101,833 (2017 est.)<ref name=PopHousingEst>{{cite web|url=https://www.census.gov/programs-surveys/popest.html|title=Population and Housing Unit Estimates |date=जून 22, 2017 |accessdate=जून 22, 2017|publisher=[[U.S. Census Bureau]]}}</ref>
|DensityRank = 41st
|2000DensityUS = 36.53
|2000Density = 14.12
|MedianHouseholdIncome = $66,258<ref>{{cite web|url=http://kff.org/other/state-indicator/median-annual-income/?currentTimeframe=0|website=The Henry J. Kaiser Family Foundation|title=Median Annual Household Income|accessdate=दिसंबर 9, 2016}}</ref>
|IncomeRank = 11th
|AdmittanceOrder = 45th
|AdmittanceDate = January 4, 1896
|TimeZone = [[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC]] [[Mountain Standard Time|−7]]/[[Mountain Daylight Time|−6]]
|Longitude = 109° 3′ W to 114° 3′ W
|Latitude = [[37th parallel north|37° N]] to [[42nd parallel north|42° N]]
|WidthUS = 270
|Width = 435
|LengthUS = 350
|Length = 560
|HighestPoint = [[Kings Peak (Utah)|Kings Peak]]<ref>{{cite ngs |id= LO1058 |designation= Kings Peak Target |accessdate= October 24, 2011 }}</ref><ref name= USGS>{{cite web |url= http://egsc.usgs.gov/isb/pubs/booklets/elvadist/elvadist.html |title= Elevations and Distances in the United States |publisher= [[United States Geological Survey]] |year= 2001 |accessdate = October 24, 2011 |archive-url= https://web.archive.org/web/20131109183109/http://egsc.usgs.gov/isb//pubs/booklets/elvadist/elvadist.html |archive-date= November 9, 2013 |dead-url= yes }}</ref><ref name=NAVD88>Elevation adjusted to [[North American Vertical Datum of 1988]].</ref>
|HighestElevUS = 13,534
|HighestElev = 4,120.3
|MeanElevUS = 6,100
|MeanElev = 1,860
|LowestPoint = [[Beaver Dam Wash]] at {{nobreak|[[Arizona]] border}}<ref name=USGS/><ref name=NAVD88/><ref>{{cite news |last=Arave |first=Lynn |title=Utah's basement—Beaver Dam Wash is state's lowest elevation |newspaper=Deseret Morning News |date=अगस्त 31, 2006 |url=http://www.deseretnews.com/article/645197370/Utahs-basement--Beaver-Dam-Wash-is-states-lowest-elevation.html |archive-url=https://web.archive.org/web/20150122192400/http://www.deseretnews.com/ |archivedate=जनवरी 22, 2015 |url-status=dead |df=mdy-all }}</ref>
|LowestElevUS = 2,180
|LowestElev = 664.4
|ISOCode = US-UT
|Website = utah.gov
}}
{{PAGENAME}} [[संयुक्त राज्य अमेरिका]] का एक [[राज्य (प्रांत)|राज्य]] बा|
{{अमेरिका}}
{{यूएस-भू-आधार}}
[[श्रेणी:यूनाइटेड स्टेट्स ऑफ अमेरिका के प्रांत]]
56jnswmduvjfm7bvpffms4flt776wgr
815178
815152
2026-11-12T15:20:27Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url= yes → |url-status= using [[Project:AWB|AWB]]
815178
wikitext
text/x-wiki
{{Infobox U.S. state
|Name = Utah
|Fullname = State of Utah
|Flag = Flag of Utah.svg
|Flaglink = [[Flag of Utah|Flag]]
|Seal = Seal of Utah.svg
|Map = Utah_in_United_States.svg
|Nickname = Beehive State (official), The Mormon State, Deseret
|StateAnthem = [[Utah, This is the Place]]
|Demonym = Utahn or Utahan<ref>{{citation |title= Utah |edition= Online Dictionary |url= http://www.merriam-webster.com/dictionary/Utah |website= Merriam-Webster.com |publisher= [[Merriam-Webster]] |archive-url= https://web.archive.org/web/20141104192514/http://www.merriam-webster.com/dictionary/utah |archive-date= November 4, 2014 |deadurl= no }}</ref>
|Motto = Industry
|Former = Utah Territory
|Capital = [[Salt Lake City]]
|LargestCity = capital
|LargestCounty = [[Salt Lake County, Utah|Salt Lake County]]
|LargestMetro = [[Salt Lake City metropolitan area|Salt Lake City]]
|Governor = [[Gary Herbert]] ([[Republican Party (United States)|R]])
|Lieutenant Governor = [[Spencer Cox (politician)|Spencer J. Cox]] (R)
|President of the Senate = [[Wayne Niederhauser]]
|Speaker of the House = [[Greg Hughes]]
|Legislature = [[Utah State Legislature|State Legislature]]
|Upperhouse = [[Utah State Senate|State Senate]]
|Lowerhouse = [[Utah House of Representatives|House of Representatives]]
|Senators = [[Orrin Hatch]] (R)<br />[[Mike Lee (Utah politician)|Mike Lee]] (R)
|Representative =
*[[Utah's 1st congressional district|1]]: [[Rob Bishop]] (R)
*[[Utah's 2nd congressional district|2]]: [[Chris Stewart (politician)|Chris Stewart]] (R)
*[[Utah's 3rd congressional district|3]]: [[John Curtis (American politician)|John Curtis]] (R)
*[[Utah's 4th congressional district|4]]: [[Mia Love]] (R)
|PostalAbbreviation = UT
|TradAbbreviation = Ut.
|OfficialLang = English
|AreaRank = 13th
|TotalAreaUS = 84,899
|TotalArea = 219,887
|LandAreaUS = 82,144
|LandArea = 212,761
|WaterAreaUA = 2,755
|WaterArea = 7,136
|PCWater = 3.25
|PopRank = 31st
|2010Pop = 3,101,833 (2017 est.)<ref name=PopHousingEst>{{cite web|url=https://www.census.gov/programs-surveys/popest.html|title=Population and Housing Unit Estimates |date=जून 22, 2017 |accessdate=जून 22, 2017|publisher=[[U.S. Census Bureau]]}}</ref>
|DensityRank = 41st
|2000DensityUS = 36.53
|2000Density = 14.12
|MedianHouseholdIncome = $66,258<ref>{{cite web|url=http://kff.org/other/state-indicator/median-annual-income/?currentTimeframe=0|website=The Henry J. Kaiser Family Foundation|title=Median Annual Household Income|accessdate=दिसंबर 9, 2016}}</ref>
|IncomeRank = 11th
|AdmittanceOrder = 45th
|AdmittanceDate = January 4, 1896
|TimeZone = [[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC]] [[Mountain Standard Time|−7]]/[[Mountain Daylight Time|−6]]
|Longitude = 109° 3′ W to 114° 3′ W
|Latitude = [[37th parallel north|37° N]] to [[42nd parallel north|42° N]]
|WidthUS = 270
|Width = 435
|LengthUS = 350
|Length = 560
|HighestPoint = [[Kings Peak (Utah)|Kings Peak]]<ref>{{cite ngs |id= LO1058 |designation= Kings Peak Target |accessdate= October 24, 2011 }}</ref><ref name= USGS>{{cite web |url= http://egsc.usgs.gov/isb/pubs/booklets/elvadist/elvadist.html |title= Elevations and Distances in the United States |publisher= [[United States Geological Survey]] |year= 2001 |accessdate = October 24, 2011 |archive-url= https://web.archive.org/web/20131109183109/http://egsc.usgs.gov/isb//pubs/booklets/elvadist/elvadist.html |archive-date= November 9, 2013 |url-status= }}</ref><ref name=NAVD88>Elevation adjusted to [[North American Vertical Datum of 1988]].</ref>
|HighestElevUS = 13,534
|HighestElev = 4,120.3
|MeanElevUS = 6,100
|MeanElev = 1,860
|LowestPoint = [[Beaver Dam Wash]] at {{nobreak|[[Arizona]] border}}<ref name=USGS/><ref name=NAVD88/><ref>{{cite news |last=Arave |first=Lynn |title=Utah's basement—Beaver Dam Wash is state's lowest elevation |newspaper=Deseret Morning News |date=अगस्त 31, 2006 |url=http://www.deseretnews.com/article/645197370/Utahs-basement--Beaver-Dam-Wash-is-states-lowest-elevation.html |archive-url=https://web.archive.org/web/20150122192400/http://www.deseretnews.com/ |archivedate=जनवरी 22, 2015 |url-status=dead |df=mdy-all }}</ref>
|LowestElevUS = 2,180
|LowestElev = 664.4
|ISOCode = US-UT
|Website = utah.gov
}}
{{PAGENAME}} [[संयुक्त राज्य अमेरिका]] का एक [[राज्य (प्रांत)|राज्य]] बा|
{{अमेरिका}}
{{यूएस-भू-आधार}}
[[श्रेणी:यूनाइटेड स्टेट्स ऑफ अमेरिका के प्रांत]]
fvfoqzygu4w2h3wdfsrguz8x3u0bldk
पाकिस्तान
0
5179
815169
814822
2026-11-12T14:15:46Z
SM7Bot
7808
/* अर्थब्यवस्था */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815169
wikitext
text/x-wiki
{{Infobox country
| conventional_long_name = पाकिस्तान इस्लामिक रिपब्लिक
| common_name = पाकिस्तान
| native_name = {{native name|ur|{{nobold|{{Nastaliq|اسلامی جمہوریہ پاكستان}}}}|italics=off}}<br />{{small|{{transl|Urdu|ALA-LC|''इस्लामी जम्हूरिया पाकिस्तान''}}}}<ref name="LatinSpelling">{{cite book |author=James Minahan |title=The Complete Guide to National Symbols and Emblems [2 Volumes] |date=23 December 2009 |publisher=ABC-CLIO |isbn=978-0-313-34497-8 |page=141}}</ref>
| image_flag = Flag of Pakistan.svg
| image_coat = Coat of arms of Pakistan.svg
| symbol_type = चीन्हा
| national_motto = {{Transl|ur|''ईमान, इत्तहाद, नज़्म''}}<br />{{native name|ur|{{Nastaliq|ایمان، اتحاد، نظم}}|italics=off|nolink=on}}<br />{{small|"ईमान, एकता, अनुशासन"}} {{lower|0.2em|<ref name="The State Emblem">{{cite web |title=The State Emblem |url=http://www.infopak.gov.pk/Eemblem.aspx |archiveurl=https://web.archive.org/web/20070701023430/http://www.infopak.gov.pk/Eemblem.aspx |archivedate=1 July 2007 |publisher=Ministry of Information and Broadcasting, Government of Pakistan. |access-date=18 दिसंबर 2013}}</ref><!--end lower:-->}}
| national_anthem = {{transl|ur|ALA-LC|''क़ौमी तराना''}}<br />{{lang|ur|{{Nastaliq|قومی ترانہ}}}}<br /><center>{{small|"राष्ट्र गान"}}<ref>{{cite web |title=National Symbols and Things of Pakistan |url=http://www.pakistan.gov.pk/gop/index.php?q=aHR0cDovLzE5Mi4xNjguNzAuMTM2L2dvcC8uL2ZybURldGFpbHMuYXNweD9vcHQ9bWlzY2xpbmtzJmlkPTQx |work=Government of Pakistan |access-date=27 May 2014 |url-status=dead |archiveurl=https://web.archive.org/web/20140413153310/http://www.pakistan.gov.pk/gop/index.php?q=aHR0cDovLzE5Mi4xNjguNzAuMTM2L2dvcC8uL2ZybURldGFpbHMuYXNweD9vcHQ9bWlzY2xpbmtzJmlkPTQx |archivedate=13 April 2014}}</ref><br />[[File:Pakistan anthem - United States Navy Band.ogg]]</center>
| image_map = Pakistan (orthographic projection).svg
| map_width = 220px
| map_caption = पाकिस्तान के शासन वाला इलाका गहिरा हरियर; दावेदारी वाला इलाका हल्का हरियर
| capital = [[इस्लामाबाद]]
| coordinates = {{Coord|33|40|N|73|10|E|type:city}}
| largest_city = [[कराची]]<br />{{small|{{coord|24|51|36|N|67|00|36|E|display=inline}}}}
<!--
**************** भाषा ************************************
-->
| official_languages = {{hlist |[[उर्दू]]|अंग्रेजी<ref>{{cite web |title=SC orders immediate implementation of Urdu as official language |url=http://tribune.com.pk/story/952913/sc-orders-implementation-of-urdu-as-official-language/ |publisher=[[The Express Tribune]] |date=7 September 2015|access-date=8 September 2015}}</ref><ref>{{cite web |title=Pakistan to replace English with Urdu as official language |url=http://tribune.com.pk/story/928480/pakistan-to-replace-english-with-urdu-as-official-language/ |publisher=[[The Express Tribune]] |date=29 July 2015|access-date=8 September 2015}}</ref><ref>{{cite web |url=http://dunyanews.tv/index.php/en/Pakistan/288574-PM-approves-implementation-of-Urdu-language-in-gov |title=PM approves implementation of Urdu language in govt departments – Pakistan – Dunya News |work=dunyanews.tv}}</ref><ref>{{cite web |url=http://www.dawn.com/news/1193624 |title=PM, president to deliver speeches in Urdu on foreign trips, SC told |author=Irfan Haider |work=dawn.com}}</ref><ref>{{cite web |url=http://www.thenewsteller.com/pakistan/govt-submits-plan-to-supreme-court-to-promote-urdu-as-official-language/19569/ |title=Govt. submits plan to Supreme Court to promote Urdu as official language |work=The News Teller |access-date=2017-12-23 |archive-date=2018-12-26 |archive-url=https://web.archive.org/web/20181226143037/https://www.thenewsteller.com/pakistan/govt-submits-plan-to-supreme-court-to-promote-urdu-as-official-language/19569/ |url-status=dead }}</ref>}}
| regional_languages = {{collapsible list
|titlestyle = background:transparent;text-align:left;font-weight:normal;font-size:100%;
|title = प्रांतीय स्तर पर
|[[पंजाबी भाषा|पंजाबी]]{{dot}} [[पश्तो भाषा|पश्तो]]{{dot}}[[सिंधी भाषा|सिंधी]]{{dot}} [[बलूची भाषा|बलूची]]{{dot}}[[सारायकी भाषा|सारायकी]]{{dot}}[[काश्मीरी भाषा|काश्मीरी]]{{dot}}[[ब्रहुई भाषा|ब्राहुई]]{{dot}}[[हिंदको भाषा|हिंदको]]{{dot}}[[शीना भाषा|शीना]]{{dot}}[[बालती भाषा|बालती]]{{dot}}[[खोवार भाषा|खोवार]]{{dot}}[[बुरुशाकी]]{{dot}}[[कोहिस्तानी भाषा|कोहिस्तानी]]{{dot}}[[वाखी भाषा|वाखी]]{{dot}}[[यिदघा भाषा|यिदघा]]{{dot}}[[दामेली भाषा|दामेली]]{{dot}}[[कालशा भाषा|कालशा]]{{dot}}[[गवार-बाती भाषा|गवार-बाती]]{{dot}}[[डोमाकी भाषा|डोमाकी]]<ref>{{cite web |title=Population by Mother Tongue |url=https://www.census.gov.pk/MotherTongue.htm |publisher=Population Census Organization, Government of Pakistan |access-date=28 December 2011 |url-status=dead |archiveurl=https://web.archive.org/web/20110912021653/http://www.census.gov.pk/MotherTongue.htm |archivedate=12 सितंबर 2011}}</ref><ref name="state.gov" />
}}
| languages_type = राष्ट्रीय भाषा
| languages = [[उर्दू]]<ref name="National language" /><ref name="yasmeen" />
| ethnic_groups = 44.68% [[पंजाबी लोग]]<br />15.42% [[पख्तून लोग]]<br />14.1% [[सिंधी लोग]]<br />8.38% [[सारायकी लोग|सारायकी]]<br />7.57% [[मुहाजिर लोग|मोहाजिर]]<br />3.57% [[बलूच लोग|बलूच]]<br />6.28% अन्य<ref name="cia">[https://www.cia.gov/library/publications/the-world-factbook/geos/pk.html "Pakistan"] {{Webarchive|url=https://web.archive.org/web/20200517030017/https://www.cia.gov/library/publications/the-world-factbook/geos/pk.html |date=2020-05-17 }} The World Factbook — Central Intelligence Agency.</ref>
| ethnic_groups_year = 2016
| demonym = [[पाकिस्तानी लोग|पाकिस्तानी]]
<!--
*********************** सरकार ********************************
-->
| government_type = फेडरल संसदीय संबैधानिक रिपब्लिक
| leader_title1 = राष्ट्रपति
| leader_name1 = [[ममनून हसन]]
| leader_title2 = प्रधानमंत्री
| leader_name2 = [[इमरान ख़ान]]
<!-- removed -->
| legislature = ''संसद''
| upper_house = सीनेट
| lower_house = नेशनल असेंबली
| sovereignty_type = आजादी
| sovereignty_note = [[यूके]] से
| established_event4 = डोमिनियन
| established_date4 = 14 अगस्त 1947
| established_event5 = इसलामी रिपब्लिक
| established_date5 = 23 मार्च 1956
| established_event6 = वर्तमान संबिधान
| established_date6 = 14 अगस्त 1973
<!--
***************** भूगोल ***************************
-->
| area_km2 = 881,913
| area_footnote = {{efn|"Includes data for Pakistani territories of Kashmir; [[Azad Kashmir]] ({{convert|13297|km2|sqmi|disp=or|abbr=on}}) and [[Gilgit–Baltistan]] ({{convert|72520|km2|sqmi|disp=or|abbr=on}}).<ref>{{cite web |url=http://www.geohive.com/cntry/pakistan.aspx |title=Pakistan statistics |publisher=Geohive |access-date=20 April 2013 |url-status=dead |archiveurl=https://web.archive.org/web/20130406012611/http://www.geohive.com/cntry/pakistan.aspx |archivedate=6 April 2013}}</ref> Excluding these territories would produce an area figure of {{convert|796,095|km2|sqmi|abbr=on}}."}}<ref>{{cite web |url=http://www.worldatlas.com/as/pk/where-is-pakistan.html |title=Where is Pakistan? |author= |date= |work=worldatlas.com}}</ref>
| area_rank = 33वाँ
| area_sq_mi = 307,374
| percent_water = 2.86
| population_density_km2 = 244.4
| population_density_sq_mi = 633
| population_density_rank = 56वाँ
| population_census = 209,970,000<ref name=census>{{cite web |url=http://www.pbscensus.gov.pk/ |title=http://www.pbscensus.gov.pk/content/provisional-summary-results-5th-population-and-housing-census-2017-0 |website=www.pbscensus.gov.pk |access-date=2017-12-23 |archive-date=2017-10-15 |archive-url=https://web.archive.org/web/20171015113737/http://www.pbscensus.gov.pk/ |url-status=dead }}</ref> ([[List of countries and dependencies by population|5th]])
| population_census_year = 2017
<!--
-->
| GDP_PPP = {{nowrap|$1.060 trillion<ref name="imf2">{{cite web |url=https://www.imf.org/external/pubs/ft/weo/2017/01/weodata/weorept.aspx?pr.x=52&pr.y=11&sy=2016&ey=2020&scsm=1&ssd=1&sort=country&ds=.&br=1&c=564&s=NGDPD%2CNGDPDPC%2CPPPGDP%2CPPPPC&grp=0&a= |title=Pakistan |publisher=International Monetary Fund | access-date=15 January 2017}}</ref>}}
| GDP_PPP_year = 2017
| GDP_PPP_rank = 25वाँ
| GDP_PPP_per_capita = $5,374<ref name="imf2" />
| GDP_PPP_per_capita_rank = 137वाँ
| GDP_nominal = {{nowrap|$304.4 billion<ref>{{cite news |url=https://tribune.com.pk/story/1412545/pakistan-now-300-billion-economy-gdp-growth-5-3/ |title=Pakistan is now a $300-billion economy |work=The Express Tribune |date=18 May 2017 |accessdate=18 May 2017}}</ref>}}
| GDP_nominal_year = 2017
| GDP_nominal_rank = 42वाँ
| GDP_nominal_per_capita = $1,629 <ref>{{Cite web |url=http://www.finance.gov.pk/survey/chapters_17/Economic_Indicators.pdf |title=आर्काइव कॉपी के बा |access-date=2017-12-23 |archive-date=2019-04-11 |archive-url=https://web.archive.org/web/20190411211445/http://www.finance.gov.pk/survey/chapters_17/Economic_Indicators.pdf |url-status=dead }}</ref>
| GDP_nominal_per_capita_rank = 145वाँ
| Gini = 30.7 <!--number only-->
| Gini_year = 2013
| Gini_change = <!--increase/decrease/steady-->
| Gini_ref = <ref name="wb-gini">{{cite web |url=http://data.worldbank.org/indicator/SI.POV.GINI?end=2013&locations=PK&start=1987&view=chart |title=GINI index (World Bank estimate) |publisher=World Bank |access-date=28 February 2017 |archive-date=26 December 2018 |archive-url=https://web.archive.org/web/20181226143016/https://data.worldbank.org/indicator/SI.POV.GINI?end=2013&locations=PK&start=1987&view=chart%20 |url-status=dead }}</ref>
| Gini_rank =
| HDI = 0.550 <!--number only-->
| HDI_year = 2015<!-- Please use the year to which the data refers, not the publication year-->
| HDI_change = स्थिर<!--increase/decrease/steady-->
| HDI_ref = <ref name="HDI">{{cite web |url=http://hdr.undp.org/sites/default/files/2016_human_development_report.pdf |title=Human Development Report 2016 |date=2016 |access-date=26 मार्च 2017 |publisher=United Nations Development Programme}}</ref>
| HDI_rank = 147वाँ
| currency = [[पाकिस्तानी रुपिया]] (₨)
| currency_code = PKR
<!--
-->
| time_zone = [[पाकिस्तानी मानक समय|पीएसटी]]
| utc_offset = +5{{sup|b}}
| drives_on = बाएँ
| calling_code = +92
| cctld = [[.pk]]
| official_website = {{URL|http://www.pakistan.gov.pk/}}
| footnote_a = देखल जाय [[पाकिस्तानी अंग्रेजी]].:{{note|Alpha|α}}
| footnote_b =
| religion = 96.4% [[इस्लाम]] {{small|(ऑफिशियल)}}<ref name="Article_2" /><br />3.6% अन्य<ref name="cia" />
| area_magnitude =
}}
'''पाकिस्तान''' चाहे '''पाकिस्तान इस्लामी गणतंत्र''' [[दक्खिन एशिया]] में एगो देस बा। 14 अगस्त 1947 के बँटवारा के बाद पाकिस्तान के जन्म भइल। ई से पहिले पाकिस्तान [[भारत]] के हिस्सा रहल। पाकिस्तान एगो [[मुस्लिम]] प्रधान [[देश]] ह। पाकिस्तान के राजधानी [[इस्लामाबाद]] ह आ अहिजा के अधिकारिक भाषा [[उर्दू]] ह।
==इतिहास==
{{मुख्य|पाकिस्तान के इतिहास}}
{{खाली खंड}}
==भूगोल==
{{मुख्य|पाकिस्तान के भूगोल}}
===लोकेशन आ बिस्तार===
पाकिस्तान भारत के उत्तर-दक्षिण कोन पर स्थित बा। पाकिस्तान से भारत के सटल राज्य बाने: [[जम्मू अउरी कश्मीर|जम्मु कश्मीर]], [[पंजाब]], [[राजस्थान]] आ [[गुजरात]]। पाकिस्तान के दक्षिण में [[अरब सागर]] आ उत्तर में [[अफ़ग़ानिस्तान|अफगानिस्तान]] स्थित बा। कुछ मामला में पाकिस्तान के विवादित क्षेत्र (जे पर भारत अधिकार जनावेला) से [[चीन]] भी सटल बा।
==सरकार आ प्रशासन==
===प्रशासनिक बिभाजन===
{{खाली खंड}}
==अर्थब्यवस्था==
पाकिस्तान के बिकाससील देस मानल जाला<ref name="gulfmedia">{{cite web |author=Faryal Leghari |url=http://www.grc.ae/?frm_module=contents&frm_action=detail_book&sec=Contents&override=Articles%20%3E%20GCC%20Investments%20in%20Pakistan%20and%20Future%20Trends&book_id=25458&op_lang=en |title=GCC investments in Pakistan and future trends |publisher=Gulf Research Center |date=3 January 2007 |access-date=12 February 2008 |archive-url=https://web.archive.org/web/20120111131042/http://www.grc.ae/?frm_module=contents&frm_action=detail_book&sec=Contents&override=Articles%20%3E%20GCC%20Investments%20in%20Pakistan%20and%20Future%20Trends&book_id=25458&op_lang=en |archive-date=11 January 2012 |url-status= }}</ref><ref>{{cite book |title=Contextualizing Entrepreneurship in Emerging Economies and Developing Countries |date=2017 |publisher=Edward Elgar Publishing |isbn=978-1-78536-753-3 |page=133 |url=https://books.google.com/books?id=j3pHDgAAQBAJ&pg=PA133}}</ref> आ ई, ब्रिक देस सभ के साथे, अगिला इगारह गो देस सभ में आ जाई अइसन संभावना बा जे इगारह देस सभसे 21वीं सदी में सभसे धनी देस होखिहें, मने कि बड़ अर्थव्यवस्था होखिहें।<ref>{{cite news |author=Tavia Grant |title=On 10th birthday, BRICs poised for more growth |url=https://www.theglobeandmail.com/report-on-business/economy/economy-lab/daily-mix/on-10th-birthday-brics-poised-for-more-growth/article2264208/|access-date=4 January 2012 |newspaper=The Globe and Mail |date=8 December 2011 |location=Toronto}}</ref>
हाले के सालन में, लगभग एक दशक के सामाजिक उठा-पटक के बाद, {{As of|2013|lc=y}}, कई किसिम के मैक्रोइकोनामिक डिसबैलेंस के बाद, कुछ सेक्टर में बढ़ियां पर्पार्मेंस रहल बा जइसे कि रेलवे परिवहन आ बिजली के उत्पादन एह में गिनावल जा सके लें।<ref name="NYT51813">{{cite news |title=Pakistan, Rusting in Its Tracks |url=https://www.nytimes.com/2013/05/19/world/asia/pakistans-railroads-sum-up-nations-woes.html|access-date=19 May 2013 |newspaper=The New York Times |date=18 May 2013 |author=Declan Walsh |quote=natural disasters and entrenched insurgencies, abject poverty and feudal kleptocrats, and an economy near meltdown}}</ref> अर्थब्यवस्था के सेमी-इंडस्ट्रियलाइज कटेगरी में गिनल जाला, जबकि कई गो इंडस्ट्रियल केंद्र सभ सिंधु नदी के सहारे अस्थापित बाड़ें।<ref>{{Cite journal |last1=Henneberry |first1=S. |doi=10.1016/S0169-5150(99)00041-9 |title=An analysis of industrial–agricultural interactions: A case study in Pakistan |journal=Agricultural Economics |volume=22 |pages=17–27 |year=2000}}</ref><ref name="siteresources.worldbank.org">{{cite web |url=http://siteresources.worldbank.org/PAKISTANEXTN/Resources/293051-1241610364594/6097548-1257441952102/balochistaneconomicreportvol2.pdf |title=World Bank Document |format=PDF |year=2008 |page=14|access-date=2 January 2010}}</ref><ref name="raid" /> कराची के आ पंजाब के शहरी केंद्र सभ में बिबिध किसिम के इंडस्ट्री के बिकास भइल बाटे जबकि बलूचिस्तान नियर कम बिकसित इलाका सभ में उद्योग सभ के बिकास बहुते कम भइल बा।<ref name="siteresources.worldbank.org" /> इकोनामिक काम्प्लेक्सिटी इंडेक्स के मोताबिक, पाकिस्तान 67वाँ-सभसे बड़ अर्थब्यवस्था बा एक्सपोर्ट इकोनामी के रूप में, जबकि काम्प्लेक्स इकोनामी के हिसाब से एकर अस्थान 106वाँ बाटे।<ref>{{cite web |title=Pakistan |url=http://atlas.media.mit.edu/en/profile/country/pak/ |website=atlas.media.mit.edu |access-date=4 March 2017 |archive-url=https://web.archive.org/web/20170318001324/http://atlas.media.mit.edu/en/profile/country/pak/ |archive-date=18 March 2017 |url-status=dead}}</ref> बित्तीय साल 2015–16 में, पाकिस्तान के एक्सपोर्ट US$20.81 बिलियन रहल आ आयात US$44.76 बिलियन दर्ज कइल गइल, मने कि कुल ब्यापार बैलेंस नकारात्मक रहल US$23.96 बिलियन के बरोबर।<ref>{{cite news |last1=Hamza |first1=Abrar |title=Pakistan's trade deficit widens to 35-year high in FY16 |url=http://dailytimes.com.pk/business/16-Jul-16/pakistans-trade-deficit-widens-to-35-year-high-in-fy16 |access-date=14 February 2017 |work=[[Daily Times (Pakistan)]] |date=16 July 2016 |archive-date=15 February 2017 |archive-url=https://web.archive.org/web/20170215150131/http://dailytimes.com.pk/business/16-Jul-16/pakistans-trade-deficit-widens-to-35-year-high-in-fy16 |url-status=dead }}</ref>
==समाज आ संस्कृति==
पाकिस्तान में सिविल सोसाइटी बहुत हद तक कई स्तर में बँटल बा आ लोकल सांस्कृतिक तहजीब आ परंपरागत [[इस्लाम|इस्लामी]] रिवाज द्वारा निजी आ सामाजिक-राजनीतिक जिनगी निर्धारित होला। परिवार के मूलभूत इकाई [[संजुक्त परिवार]] होलें, हालाँकि बदलत सामाजिक-आर्थिक कारण से अब [[एकल परिवार]] के ओर बढ़ती के रुझान देखल जा रहल बाटे। लोगन के परंपरागत पहिनावा सलवार-कमीज रहे आ ट्राउजर, [[जींस]], शर्ट आ टीशर्ट मरदाना लोग में पापुलर बा। हाल के दशक में, मिडिल क्लास में बढती भइल बा आ एह बर्ग के लोगन के संख्या ३५ मिलियन के करीब हो गइल बा जबकि ऊपरी आ ऊपरी-मिडिल क्लास के संख्या लगभग १७ मिलियन बा, पावर अब देहाती जमींदार लोग से हट के शहरी उच्चबर्ग के लोग में आ रहल बा। पाकिस्तानी तिहुआर सभ में [[ईद-उल-फ़ित्र]], [[ईद-उल-अजहा]], [[रमजान]], [[क्रिसमस]], [[ईस्टर]], [[होली]], [[दिपावली]] वगैरह धार्मिक तिहुआर प्रमुख बाने।
{{clear}}
==नोट==
<references group="नोट"/>
==संदर्भ==
{{reflist|33em}}
[[श्रेणी:पाकिस्तान]]
[[श्रेणी:एशिया के देस]]
[[श्रेणी:यूनाइटेड नेशंस के सदस्य देस]]
[[श्रेणी:इस्लामी देश]]
[[श्रेणी:भारत के पड़ोसी देश]]
39nz9tvwurxgfhv8iggfkzk09ad2aej
मध्य प्रदेश
0
5266
815150
784067
2026-11-12T14:14:01Z
SM7Bot
7808
सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815150
wikitext
text/x-wiki
{{Infobox state
| name = मध्य प्रदेश
| native_name =
| settlement_type = [[राज्य आ केंद्र शाशित राज्य|राज्य]]
| image_skyline =
| image_caption = [[Jain]] temples at [[Kundalpur]]
| blank_emblem_type = Seal
| image_map = India MP.svg
| map_caption = Location of Madhya Pradesh in [[भारत]]
| coordinates = {{coord|23.25|77.417|region:IN-MP_type:adm1st|display=inline,title}}
| subdivision_type = देस
| subdivision_name = {{flag|India}}
| subdivision_type1 = Region
| subdivision_name1 = [[Malwa]], [[Bundelkhand]], [[Baghelkhand]], [[Nimar]], [[Mahakoshal]] and [[Gird, India|Gird]] (Gird region also includes [[Chambal Division|Chambal]] division)
| established_title = बसल
| established_date = 1 November 1956
| parts_type = [[List of Indian districts|Districts]]
| parts_style = para
| parts = [[List of districts of Madhya Pradesh|51]]
| seat_type = राजधानी
| seat = [[भोपाल]]
| seat1_type = बड़ शहर
| seat1 = [[इन्दौर]]
| unit_pref = Metric
| area_total_km2 = 308252
| area_rank = [[List of states and territories of India by area|2nd]]
| population_footnotes =<ref name="2011_censusindia_gov_in">{{cite web|url=http://censusindia.gov.in/2011-prov-results/data_files/mp/01Content.pdf|title=2011 Census of India|publisher=}}</ref>
| population_total = 72,626,809
| population_as_of = 2011
| population_rank = [[List of states and union territories of India by population|5th]]
| population_density_km2 = 236
| population_urban_footnotes =
| population_urban = 20,059,666
| population_density_urban_km2 =
| population_rural_footnotes =
| population_rural = 52,537,899
| population_density_rural_km2 =
| population_note =
| timezone1 = [[भारतीय मानक समय|आइएसटी]]
| utc_offset1 = +05:30
| iso_code = [[ISO 3166-2:IN|IN-MP]]
| postal_code_type = [[Postal Index Number|PIN]]
| postal_code = 45xxxx-46xxxx-47xxxx-48xxxx
| area_code_type = [[ISD codes|ISD code]]
| area_code = 91-07xxx
| demographics_type1 = GDP {{nobold|(2018–19)}}
| demographics1_footnotes = <ref name=":3">{{cite web|url=http://www.prsindia.org/uploads/media/State%20Budget%202018-19/MP%20Budget%20Analysis%2018-19.pdf|title=Madhya Pradesh Budget Analysis 2018–19|last=|first=|date=|website=PRS Legislative Research|archive-url=https://web.archive.org/web/20180325021643/http://www.prsindia.org/uploads/media/State%20Budget%202018-19/MP%20Budget%20Analysis%2018-19.pdf|archive-date=2018-03-25|dead-url=|accessdate=5 मार्च 2018|url-status=dead}}</ref>
| demographics1_title1 = Total
| demographics1_info1 = {{INRConvert|8.26|lc}}
| demographics1_title2 = Per capita
| demographics1_info2 = {{INRConvert|59052}}
| blank_name_sec1 = [[Human Development Index|HDI]]
| blank_info_sec1 = {{increase}} 0.556 (<span style="color:#fc0">medium</span>)
| blank1_name_sec1 = HDI rank
| blank2_name_sec1 = [[Literacy in India|Literacy]]
| blank2_info_sec1 = 72.6% (2011)<ref name="2011_censusindia_gov_in"/>
| blank1_name_sec2 = Sex ratio
| blank1_info_sec2 = 931 (2011)<ref>[[List of Indian states by sex ratio]]</ref>
| blank2_name_sec2 = {{nowrap|[[Official language]]}}
| blank2_info_sec2 = [[Hindi]]<ref name="langoff">{{cite web |url=http://nclm.nic.in/shared/linkimages/NCLM47thReport.pdf |title=Report of the Commissioner for linguistic minorities: 47th report (July 2008 to जून 2010) |pages=122–126 |publisher=Commissioner for Linguistic Minorities, Ministry of Minority Affairs, Government of India |accessdate=16 February 2012 |archive-url=https://web.archive.org/web/20120513161847/http://nclm.nic.in/shared/linkimages/NCLM47thReport.pdf |archive-date=13 May 2012 |url-status= |df=dmy-all }}</ref><!--PLEASE DO NOT ADD "ENGLISH" HERE WITHOUT A REFERENCE, ELSE IT WILL BE REMOVED-->
| website = {{URL|mp.gov.in}}
| footnotes =
}}
<!---->
{{Infobox region symbols
| state = मध्यप्रदेश
| country = भारत
| emblem =
| language = हिंदी
| song = [[मध्यप्रदेश गान]]
| animal = [[बारहसिंघा]]
| bird = [[साह बुलबुल]]
| fish = [[महसीर]]<ref>{{cite web|url=http://www.deccanherald.com/content/196180/mp-declares-endangered-mahasheer-breed.html|title=MP declares endangered 'Mahasheer' breed as state fish|newspaper=Deccan Herald}}</ref>
| flower = [[उजर लिली]]
| fruit = [[आम]]
| tree = [[बरगज]]
| Dance = [[माँच]]
| Drama =
}}
'''मध्य प्रदेश''' भारत देश का एक राज्य हैं , इसकी राजधानी [[भोपाल जिला|भोपाल]] है। क्षेत्रफल के हिसाब से मध्य प्रदेश 1 नवंबर 2000 तक सबसे बड़ा राज्य था। आज के दिन मध्य प्रदेश राज्य से 16 जिला के अलग करके छत्तीसगढ़ राज्य के गठन किया गया। मध्य प्रदेश के सीमा पांच राज्य के सीमा से लगती हैं । इसके उत्तर में उत्तर प्रदेश, पूरब में छत्तीसगढ़, दक्खिन में महाराष्ट्र, पश्चिम में गुजरात, आ उत्तर-पच्छिम में राजस्थान है।
{{clear}}
==संदर्भ==
{{Reflist}}
{{भारत के राज्य अउरी संघ राज्यक्षेत्र}}
{{Authority control}}
{{भारत-आधार}}
[[श्रेणी:भारत के राज्य अउरी संघ राज्यक्षेत्र]]
[[श्रेणी:मध्य प्रदेश| ]]
[[श्रेणी:भारत के राज्य]]
n8qflprs9ficf5zv5kzh4x43ccj00gf
815302
815150
2026-11-12T16:46:20Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815302
wikitext
text/x-wiki
{{Infobox state
| name = मध्य प्रदेश
| native_name =
| settlement_type = [[राज्य आ केंद्र शाशित राज्य|राज्य]]
| image_skyline =
| image_caption = [[Jain]] temples at [[Kundalpur]]
| blank_emblem_type = Seal
| image_map = India MP.svg
| map_caption = Location of Madhya Pradesh in [[भारत]]
| coordinates = {{coord|23.25|77.417|region:IN-MP_type:adm1st|display=inline,title}}
| subdivision_type = देस
| subdivision_name = {{flag|India}}
| subdivision_type1 = Region
| subdivision_name1 = [[Malwa]], [[Bundelkhand]], [[Baghelkhand]], [[Nimar]], [[Mahakoshal]] and [[Gird, India|Gird]] (Gird region also includes [[Chambal Division|Chambal]] division)
| established_title = बसल
| established_date = 1 November 1956
| parts_type = [[List of Indian districts|Districts]]
| parts_style = para
| parts = [[List of districts of Madhya Pradesh|51]]
| seat_type = राजधानी
| seat = [[भोपाल]]
| seat1_type = बड़ शहर
| seat1 = [[इन्दौर]]
| unit_pref = Metric
| area_total_km2 = 308252
| area_rank = [[List of states and territories of India by area|2nd]]
| population_footnotes =<ref name="2011_censusindia_gov_in">{{cite web|url=http://censusindia.gov.in/2011-prov-results/data_files/mp/01Content.pdf|title=2011 Census of India|publisher=}}</ref>
| population_total = 72,626,809
| population_as_of = 2011
| population_rank = [[List of states and union territories of India by population|5th]]
| population_density_km2 = 236
| population_urban_footnotes =
| population_urban = 20,059,666
| population_density_urban_km2 =
| population_rural_footnotes =
| population_rural = 52,537,899
| population_density_rural_km2 =
| population_note =
| timezone1 = [[भारतीय मानक समय|आइएसटी]]
| utc_offset1 = +05:30
| iso_code = [[ISO 3166-2:IN|IN-MP]]
| postal_code_type = [[Postal Index Number|PIN]]
| postal_code = 45xxxx-46xxxx-47xxxx-48xxxx
| area_code_type = [[ISD codes|ISD code]]
| area_code = 91-07xxx
| demographics_type1 = GDP {{nobold|(2018–19)}}
| demographics1_footnotes = <ref name=":3">{{cite web|url=http://www.prsindia.org/uploads/media/State%20Budget%202018-19/MP%20Budget%20Analysis%2018-19.pdf|title=Madhya Pradesh Budget Analysis 2018–19|last=|first=|date=|website=PRS Legislative Research|archive-url=https://web.archive.org/web/20180325021643/http://www.prsindia.org/uploads/media/State%20Budget%202018-19/MP%20Budget%20Analysis%2018-19.pdf|archive-date=2018-03-25|url-status=|accessdate=5 मार्च 2018|url-status=dead}}</ref>
| demographics1_title1 = Total
| demographics1_info1 = {{INRConvert|8.26|lc}}
| demographics1_title2 = Per capita
| demographics1_info2 = {{INRConvert|59052}}
| blank_name_sec1 = [[Human Development Index|HDI]]
| blank_info_sec1 = {{increase}} 0.556 (<span style="color:#fc0">medium</span>)
| blank1_name_sec1 = HDI rank
| blank2_name_sec1 = [[Literacy in India|Literacy]]
| blank2_info_sec1 = 72.6% (2011)<ref name="2011_censusindia_gov_in"/>
| blank1_name_sec2 = Sex ratio
| blank1_info_sec2 = 931 (2011)<ref>[[List of Indian states by sex ratio]]</ref>
| blank2_name_sec2 = {{nowrap|[[Official language]]}}
| blank2_info_sec2 = [[Hindi]]<ref name="langoff">{{cite web |url=http://nclm.nic.in/shared/linkimages/NCLM47thReport.pdf |title=Report of the Commissioner for linguistic minorities: 47th report (July 2008 to जून 2010) |pages=122–126 |publisher=Commissioner for Linguistic Minorities, Ministry of Minority Affairs, Government of India |accessdate=16 February 2012 |archive-url=https://web.archive.org/web/20120513161847/http://nclm.nic.in/shared/linkimages/NCLM47thReport.pdf |archive-date=13 May 2012 |url-status= |df=dmy-all }}</ref><!--PLEASE DO NOT ADD "ENGLISH" HERE WITHOUT A REFERENCE, ELSE IT WILL BE REMOVED-->
| website = {{URL|mp.gov.in}}
| footnotes =
}}
<!---->
{{Infobox region symbols
| state = मध्यप्रदेश
| country = भारत
| emblem =
| language = हिंदी
| song = [[मध्यप्रदेश गान]]
| animal = [[बारहसिंघा]]
| bird = [[साह बुलबुल]]
| fish = [[महसीर]]<ref>{{cite web|url=http://www.deccanherald.com/content/196180/mp-declares-endangered-mahasheer-breed.html|title=MP declares endangered 'Mahasheer' breed as state fish|newspaper=Deccan Herald}}</ref>
| flower = [[उजर लिली]]
| fruit = [[आम]]
| tree = [[बरगज]]
| Dance = [[माँच]]
| Drama =
}}
'''मध्य प्रदेश''' भारत देश का एक राज्य हैं , इसकी राजधानी [[भोपाल जिला|भोपाल]] है। क्षेत्रफल के हिसाब से मध्य प्रदेश 1 नवंबर 2000 तक सबसे बड़ा राज्य था। आज के दिन मध्य प्रदेश राज्य से 16 जिला के अलग करके छत्तीसगढ़ राज्य के गठन किया गया। मध्य प्रदेश के सीमा पांच राज्य के सीमा से लगती हैं । इसके उत्तर में उत्तर प्रदेश, पूरब में छत्तीसगढ़, दक्खिन में महाराष्ट्र, पश्चिम में गुजरात, आ उत्तर-पच्छिम में राजस्थान है।
{{clear}}
==संदर्भ==
{{Reflist}}
{{भारत के राज्य अउरी संघ राज्यक्षेत्र}}
{{Authority control}}
{{भारत-आधार}}
[[श्रेणी:भारत के राज्य अउरी संघ राज्यक्षेत्र]]
[[श्रेणी:मध्य प्रदेश| ]]
[[श्रेणी:भारत के राज्य]]
pws4j3z74g3i7d0mepxpr4gajzutx4u
रबींद्रनाथ ठाकुर
0
8658
815330
813396
2026-11-12T17:29:32Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:नोबेल पुरस्कार विजेता]] हटावल गइल; [[श्रेणी:साहित्य में नोबेल लॉरिएट]] जोड़ल गइल
815330
wikitext
text/x-wiki
{{Infobox writer
| name = रबींद्रनाथ ठाकुर
| native_name = রবীন্দ্রনাথ ঠাকুর
| image = Tagore3.jpg
| image_size = 225
| alt = Late-middle-aged bearded man in white robes looks to the left with serene composure.
| caption = रबींद्रनाथ ठाकुर (c.1915)
| birth_name = Rabindranath Thakur
| birth_date = {{Birth date|df=yes|1861|05|07}}
| birth_place = [[कलकत्ता]], [[बंगाल प्रेसीडेंसी]], [[ब्रिटिश भारत]]
| death_date = {{Death date and age|df=yes|1941|08|07|1861|05|07}}
| death_place = कलकत्ता
| occupation = कवि, लेखक, चित्रकार, संगीतकार
| language = [[बंगाली भाषा|बंगाली]], अंग्रेजी
| education =
| alma_mater =
| period =
| genre =
| subject =
| notableworks = ''[[गीतांजलि]]'', ''[[गोरा (उपन्यास)|गोरा]]'', ''[[घरे-बाहिरे]]'', ''[[जन गण मन]]'', ''[[रबींद्र संगीत]]'', ''[[आमार सोनार बांग्ला]]''
| influences =
| spouse = {{marriage|मृणालिनी देवी|1883|1902}}
| children = पाँच गो संतान, दू के बचपन में मउत हो गइल
| relatives =
| awards = {{awd|[[साहित्य के नोबल पुरस्कार]]|1913}}<!-- do not add image icons such as nobel peace, see [[:Template:Infobox writer]] -->
| signature = Rabindranath Tagore Signature.svg
| signature_alt = Close-up on a Bengali word handwritten with angular, jaunty letters.
}}
'''रबींद्रनाथ ठाकुर''' ({{Langx|bn|রবীন্দ্রনাথ ঠাকুর}}, ''रोबिंद्रोनाथ ठाकुर''; {{Langx|en|Rabindranath Tagore}}, ''रबींद्रनाथ टैगोर'') (7 मई 1861 — 7 अगस्त 1941) के '''रबींद्रनाथ टैगोर''' आ '''गुरुदेव''' के नाम से भी जानल जाला। रबींद्रनाथ दुनिया क जानल मानल कवि, साहित्यकार, दार्शनिक आ भारतीय साहित्य क एकमात्र [[नोबल पुरस्कार]] बिजेता हउवन। ई [[एशिया]] के पहिला [[नोबेल पुरस्कार]] सम्मानित व्यक्ति रहलें। ई एकलौता कवि बाटें जिनकर दू गो रचना दू गो देशन क राष्ट्रगान बा — [[भारत]] क राष्ट्रगान ''[[जन गण मन]]'' आ [[बाँग्लादेश]] क राष्ट्रीय गान ''[[आमार सोनार बाँग्ला]]'' ठाकुरे क रचना बाड़ीं।
रबींद्रनाथ ठाकुर 19वीं सदी के आखिरी दौर आ 20वीं सदी के सुरुआती दौर में प्रासंगिक आधुनिकतावाद (कॉन्टेक्स्चुअल मॉडर्निज्म) के माध्यम से [[बंगाली साहित्य]], संगीत आ [[भारतीय कला]] के नया रूप दिहलें। ऊ [[गीतांजलि]] में शामिल बेहद "संवेदनशील, ताजगी से भरल आ सुंदर कविता" सभ के रचयिता रहलें। टैगोर के काव्यगीत सभ के आध्यात्मिक आ बदलत एहसास वाला मानल जाला, जबकि उनकर सुघर गद्य आ जादुई कविता पूरा भारतीय उपमहाद्वीप में बहुते लोकप्रिय भइल। ऊ [[रॉयल एशियाटिक सोसाइटी]] के फेलो भी रहलें। "बंगाल के बार्ड" कहल जाए वाला टैगोर गुरुदेव, कबिगुरु आ विश्वकवि जइसन उपनामन से जानल जालें।
[[कलकत्ता]] के एगो बंगाली ब्राह्मण परिवार में जनमल टैगोर के पुश्तैनी जड़ जेसोर आ बर्द्धमान जिला के जमींदार परिवार से जुड़ल रहे। ऊ आठे बरिस के उमिरि से कविता लिखे लगलें। सोलह बरिस के उमिर में ऊ ''भानुसिंह'' (मतलब "सिंह रुपी सुरुज") नाम से आपन पहिली महत्वपूर्ण कविता सभ के संकलन छपवलें, जवना के साहित्य के जानकार लोग शुरू में कवनो बहुत पुरान आ खो गइल क्लासिक रचना बूझ लिहल। 1877 तक ऊ अपना असली नाम से आपन पहिली लघुकथा आ नाटको प्रकाशित करा चुकल रहलें। मानवतावादी, सार्वभौमिक विचार वाला, अंतरराष्ट्रीय नजरिया रखे वाला आ राष्ट्रवाद के प्रबल समालोचक होखे के नाते, ऊ [[ब्रिटिश राज]] के बिरोध कइलें आ ब्रिटेन से आजादी के समर्थन कइलें। [[बंगाल पुनर्जागरण]] के एगो प्रमुख हस्ती के रूप में ऊ चित्रकला, रेखाचित्र, स्केच, सैकड़न लेखन आ करीब दू हजार गीतन के एगो बड़हन साहित्यिक-सांस्कृतिक धरोहर छोड़ गइलें। उनकर विरासत आजो [[विश्व-भारती यूनिवर्सिटी]] के अस्थापना के रूप में जिंदा बा।
टैगोर परंपरागत आ कठोर साहित्यिक नियमन के छाड़ि आ भाषा पर लगावल गइल बंधनन के बिरोध कइ के बंगाली साहित्य आ कला के एगो आधुनिक (मॉडर्न) रूप दिहलें। उनकर उपन्यास, कहानी, गीत, नृत्य-नाटक आ निबंध राजनीतिक आ निजी, दुनो किसिम के बिसयन पर आधारित रहलें। ''[[गीतांजलि]]'' (गीत के अर्पण), ''[[गोरा (उपन्यास)|गोरा]]'' आ ''[[घरे-बाइरे]]'' (घर आ दुनिया) उनकर सबसे प्रसिद्ध रचना सभ में गिनल जालीं। उनकर कविता, लघुकथा (कहानी) आ उपन्यास के एक ओर उनकर गीतात्मक शैली, बोलचाल के भाषा, स्वाभाविकता आ दार्शनिक आत्मचिंतन खातिर बहुत सराहल गइल, त दुसरा ओर एह खासियतन के लेके आलोचनो भइल। उनकर रचल गीत सभ में से दू गो देश अपना राष्ट्रीय गान के रूप में अपनवले बा—भारत के "जन गण मन" आ बांग्लादेश के "आमार सोनार बांग्ला"। इहे ना, [[श्री लंका|श्रीलंको]] के राष्ट्रगान उनुकरे रचना से प्रेरित हवे। उनकर गीत "[[बांग्लार माटी बांग्लार जोल]]" (बंगाल के माटी आ बंगाल के पानी) के भारतीय राज्य [[पच्छिम बंगाल]] के राजकीय गान के रूप में अपनावल गइल बाटे।
== जिनगी ==
=== सुरुआती जिनगी: 1861–1878 ===
13 गो जीवित संतानन में सबसे छोट रवींद्रनाथ टैगोर (घर में जिनका के "रबी" कहल जाय) के जनम 7 मई 1861 के [[कलकत्ता]] के जोड़ासाँको ठाकुरबाड़ी में भइल रहे। ऊ [[देबेंद्रनाथ ठाकुर]] (1817–1905) आ शारदा देवी (1830–1875) के बेटा रहलें।
ठाकुर के लालन-पालन मुख्य रूप से घर के नौकरे-चाकर लोग कइल। जब ऊ छोटे रहलें, तबे उनकर माई के निधन हो गइल रहे, जबकि उनकर बाबूजी अक्सर यात्रे पर रहत रहलें। टैगोर परिवार [[बंगाल पुनर्जागरण]] के अगिला पाँत में रहे। खुद एह परिवारे से एगो साहित्यिक पत्रिका प्रकाशित होखे, आ एहिजा बंगाली आ [[पच्छिमी शास्त्रीय संगीत]] के नाटक, संगीत गोष्ठी आ प्रस्तुति नियमित रूप से आयोजित होखल करे। टैगोर के बाबूजी कई गो पेशेवर [[ध्रुपद गायन|ध्रुपद गायकन]] के घरहीं बोला के रखले रहलें, जवना से कि ऊ परिवार के लइकन के [[भारतीय शास्त्रीय संगीत]] सिखा सकस।
टैगोर के सबसे बड़ भाई [[द्विजेंद्रनाथ ठाकुर]] दार्शनिक आ कवि रहलें। दुसरा भाई [[सत्येंद्रनाथ ठाकुर]] भारतीय सिविल सेवा (इंडियन सिविल सर्विस) में नियुक्त होखे वाला पहिला भारतीय रहलें। एगो अउरी भाई ज्योतिरिंद्रनाथ टैगोर संगीतकार, संगीत रचयिता आ [[नाटककार]] रहलें। उनकर बहिन [[स्वर्णकुमारी देवी]] एगो [[उपन्यासकार]] रहली। ज्योतिरिंद्रनाथ के पत्नी कादंबरी देवी, जे टैगोर से कुछे बरिस जेठ रहली, उनकर बहुते करीबी सखी आ जीवन पर गहिर असर डाले वाली व्यक्ति रहली। 1884 में, टैगोर के बियाह होखला के कुछे समय बाद, कादंबरी देवी अचानक आत्महत्या क लिहली। एह घटना से टैगोर कई बरिस तक गहिर सदमा में रहलें।
टैगोर के इस्कूली पढ़ाई में कौनो बहुत खास रुचि ना रहे। ऊ कलास में जाए के बजाय अपना हवेली में भा लगे के बोलपुर आ पानीहाटी में घूमे-फिरे के बेसी पस'न करत रहलें, जहाँ उनकर परिवार अक्सर जाइल करे। उनकर भाई हेमेंद्रनाथ टैगोर उनकर पढ़ाई-लिखाई के साथे शारीरिक ट्रेनिंग के जिम्मा सँम्हरले रहलें। ऊ ठाकुर के गंगा में पँवरवावें, पहाड़ पर चढ़वावें, जिम्नास्टिक करवावें, आ जूडो आ कुश्ती के अभ्यासो भी करवावें। एह दौरान टैगोर पेंटिंग (चित्रकला), शरीर रचना विज्ञान (एनाटमी), भूगोल, इतिहास, साहित्य, गणित, संस्कृत आ अंग्रेजी पढ़लें। अंग्रेजी उनकर सबसे कम पसंद के विषय रहे। टैगोर औपचारिक शिक्षा से लगभग नफरते करत रहलें। लोकल [[प्रेसिडेंसी कॉलेज]] में उनकर पढ़ाई बस एके दिन चलल। कई बरिस बाद ऊ लिखलें कि सही शिक्षा खाली बात समझावे के नाम ना ह, बल्कि जिज्ञासा जगावे के नाम ह।
इगारह बरिस के उमिर में जनेव (उपनयन संस्कार) होखला के बाद, फरवरी 1873 में टैगोर अपना बाबूजी के साथे कई महीना के भारत-भ्रमण पर निकरलें। एह यात्रा में ऊ पहिलहीं अपना बाबूजी के शांतिनिकेतन स्थित आश्रम गइलें, ओकरा बाद अमृतसर घूमलें आ आखिर में हिमालय के पहाड़ी नगर [[डलहौजी]] पहुँचलें। एह यात्रा के दौरान टैगोर जीवनी पढ़लें, इतिहास, खगोल विज्ञान, आधुनिक विज्ञान आ संस्कृत के अध्ययन कइलें, आ कालिदास के शास्त्रीय कविता सभ के भी गहिराई से पढ़लें। 1873 में [[अमृतसर]] में करीबन एक महिन्ना रहला के दौरान [[स्वर्ण मंदिर]] में गावल जाए वाला गुरबानी आ नानक बानी से ऊ गहिर रूप से प्रभावित भइलें। टैगोर आ उनकर बाबूजी स्वर्ण मंदिर में रेगुलर जाइल करे।
{{clear}}
== बाहरी कड़ी ==
* [http://www.nobel.se/literature/laureates/1913/tagore-bio.html रबींद्रनाथ, जीवनी, Nobel Foundation]
* [http://www.nobel.se/literature/laureates/1913/press.html Nobel Prize in Literature Presentation Speech from the official website of Nobel Foundation]
{{Authority control}}
[[श्रेणी:1961 में जनम]]
[[श्रेणी:1941 में निधन]]
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:साहित्यकार]]
[[श्रेणी:बांग्ला साहित्यकार]]
[[श्रेणी:नोबेल पुरस्कार सम्मानित भारतीय]]
[[श्रेणी:लेखक]]
[[श्रेणी:भारत के लोग]]
[[श्रेणी:अंग्रेजी-भाषा के भारतीय कवि]]
{{poet-stub}}
93qae8yinl703e435nn29i7cc4t575i
श्रेणी:नोबेल पुरस्कार विजेता
14
8899
815326
562132
2026-11-12T17:28:03Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:नोबेल पुरस्कार]] हटावल गइल; [[श्रेणी:नोबेल प्राइज]] जोड़ल गइल
815326
wikitext
text/x-wiki
ई श्रेणी [[नोबेल पुरस्कार]] के विजेता लोगन के सूचीबद्ध करे बदे बाटे।
[[श्रेणी:नोबेल प्राइज]]
r8youldcj5k5pes6qvk87idy2op9gye
श्रेणी:नोबेल पुरस्कार सम्मानित भारतीय
14
8901
815327
562134
2026-11-12T17:28:20Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:नोबेल पुरस्कार]] हटावल गइल; [[श्रेणी:नोबेल प्राइज]] जोड़ल गइल
815327
wikitext
text/x-wiki
ई श्रेणी [[भारत]] के ऊ लोगन के सूचीबद्ध करे खातिर बाटे जे कि [[नोबेल पुरस्कार]] जीतले होखे।
[[श्रेणी:नोबेल प्राइज]]
mc9hvl9u2hd51y75ifhoiv6zon6t49u
श्रीनगर
0
9333
815149
736124
2026-11-12T14:13:32Z
SM7Bot
7808
/* संदर्भ */ सफाई using [[Project:AWB|AWB]]
815149
wikitext
text/x-wiki
{{Infobox settlement
| name = {{raise|0.2em|Srinagar}}
| native_name = <!-- Please do not add any Indic script in this infobox, per WP:INDICSCRIPT policy. -->
| settlement_type = [[City]]
| image_skyline = Srinagar pano.jpg
| imagesize = 250px
| image_alt = Panorama of city in green area near a river and lakes
| image_caption = View of Srinagar and [[Dal Lake]]
| map_caption =
| pushpin_map = India Jammu and Kashmir#India
| pushpin_label_position = right
| pushpin_map_caption = Location in [[Jammu and Kashmir]]
| coordinates = {{coord|34|5|24|N|74|47|24|E|display=inline,title}}
| subdivision_type = Country
| subdivision_name = [[India]]
| subdivision_type1 = [[States and territories of India|State]]
| subdivision_name1 = [[Jammu and Kashmir]]
| subdivision_type2 = [[List of districts of India|District]]
| subdivision_name2 = [[Srinagar district|Srinagar]]
| leader_title1 =
| leader_name1 =
| unit_pref = Metric
| area_total_km2 = 294
| elevation_footnotes =
| elevation_m = 1585
| population_footnotes = <ref>{{cite web
|url = http://www.censusindia.gov.in/pca/SearchDetails.aspx?Id=3415
|title = Srinagar Municipal Corporation Demographics 2011
|work = [[2011 Census of India]]
|publisher = [[Government of India]]
|accessdate = 2016-05-24
}}</ref>
| population_total = 1180570
| population_as_of = 2011
| population_rank = [[List of most populous cities in India|34th]]
| population_density_km2 = auto
| population_metro = 1273312<ref>{{Cite web |url=http://censusindia.gov.in/2011-prov-results/paper2/data_files/India2/Table_3_PR_UA_Citiees_1Lakh_and_Above.pdf |title=2011 census of India |access-date=31 May 2015 |archive-url=https://web.archive.org/web/20131017153124/http://censusindia.gov.in/2011-prov-results/paper2/data_files/India2/Table_3_PR_UA_Citiees_1Lakh_and_Above.pdf |archive-date=17 October 2013 |dead-url=no |df=dmy-all }}</ref>
| population_blank1_title = Metro Rank
| population_blank1 = [[List of million-plus urban agglomerations in India|38th]]
| demographics_type1 = Languages
| demographics1_title1 = Official
| demographics1_info1 = [[Urdu]]<ref name="Ethnologue">{{cite web|url = http://www.ethnologue.com/show_language.asp?code=kas|title = Kashmiri: A language of India|publisher = Ethnologue|accessdate = 2008-05-14|archive-url = https://web.archive.org/web/20120111080322/http://www.ethnologue.com/show_language.asp?code=kas|archive-date = 11 January 2012|dead-url = no|df = dmy-all}}</ref>
| demographics1_title2 = Other Spoken languages
| demographics1_info2 = [[Kashmiri language|Kashmiri]]
| timezone1 = [[भारतीय मानक समय|आइएसटी]]
| utc_offset1 = +5:30
| postal_code_type = [[Postal Index Number|PIN]]
| postal_code = 190001
| area_code_type = Telephone code
| area_code = 0194
| registration_plate = JK 01
| blank1_name_sec1 = [[Human sex ratio|Sex ratio]]
| blank1_info_sec1 = 888 [[female|♀]]/ 1000 [[male|♂]]
| blank2_name_sec1 = Literacy
| blank2_info_sec1 = 69.15%
| blank3_name_sec1 = Distance from Delhi
| blank3_info_sec1 = {{convert|876|km|mi}} NW
| blank4_name_sec1 = Distance from Mumbai
| blank4_info_sec1 = {{convert|2275|km|mi}} NE ([[Indian highways|land]])
| blank1_name_sec2 = [[Köppen climate classification|Climate]]
| blank1_info_sec2 = [[Humid subtropical climate|Cfa]]
| blank2_name_sec2 = [[Precipitation (meteorology)|Precipitation]]
| blank2_info_sec2 = {{convert|710|mm|in}}
| blank3_name_sec2 = Avg. summer temperature
| blank3_info_sec2 = {{convert|23.3|°C|°F}}
| blank4_name_sec2 = Avg. winter temperature
| blank4_info_sec2 = {{convert|3.2|°C|°F}}
| website = {{URL|https://srinagar.nic.in}}
| official_name =
}}
'''श्रीनगर ''' भारत की [[जम्मू काश्मीर]] प्रान्त क राजधानी ह।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:भारत के शहर आ कस्बा]]
[[श्रेणी:काश्मीर]]
ioqo1nchddwmi759imhcsq743jy5chv
815175
815149
2026-11-12T15:20:12Z
SM7Bot
7808
सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815175
wikitext
text/x-wiki
{{Infobox settlement
| name = {{raise|0.2em|Srinagar}}
| native_name = <!-- Please do not add any Indic script in this infobox, per WP:INDICSCRIPT policy. -->
| settlement_type = [[City]]
| image_skyline = Srinagar pano.jpg
| imagesize = 250px
| image_alt = Panorama of city in green area near a river and lakes
| image_caption = View of Srinagar and [[Dal Lake]]
| map_caption =
| pushpin_map = India Jammu and Kashmir#India
| pushpin_label_position = right
| pushpin_map_caption = Location in [[Jammu and Kashmir]]
| coordinates = {{coord|34|5|24|N|74|47|24|E|display=inline,title}}
| subdivision_type = Country
| subdivision_name = [[India]]
| subdivision_type1 = [[States and territories of India|State]]
| subdivision_name1 = [[Jammu and Kashmir]]
| subdivision_type2 = [[List of districts of India|District]]
| subdivision_name2 = [[Srinagar district|Srinagar]]
| leader_title1 =
| leader_name1 =
| unit_pref = Metric
| area_total_km2 = 294
| elevation_footnotes =
| elevation_m = 1585
| population_footnotes = <ref>{{cite web
|url = http://www.censusindia.gov.in/pca/SearchDetails.aspx?Id=3415
|title = Srinagar Municipal Corporation Demographics 2011
|work = [[2011 Census of India]]
|publisher = [[Government of India]]
|accessdate = 2016-05-24
}}</ref>
| population_total = 1180570
| population_as_of = 2011
| population_rank = [[List of most populous cities in India|34th]]
| population_density_km2 = auto
| population_metro = 1273312<ref>{{Cite web |url=http://censusindia.gov.in/2011-prov-results/paper2/data_files/India2/Table_3_PR_UA_Citiees_1Lakh_and_Above.pdf |title=2011 census of India |access-date=31 May 2015 |archive-url=https://web.archive.org/web/20131017153124/http://censusindia.gov.in/2011-prov-results/paper2/data_files/India2/Table_3_PR_UA_Citiees_1Lakh_and_Above.pdf |archive-date=17 October 2013 |url-status=live |df=dmy-all }}</ref>
| population_blank1_title = Metro Rank
| population_blank1 = [[List of million-plus urban agglomerations in India|38th]]
| demographics_type1 = Languages
| demographics1_title1 = Official
| demographics1_info1 = [[Urdu]]<ref name="Ethnologue">{{cite web|url = http://www.ethnologue.com/show_language.asp?code=kas|title = Kashmiri: A language of India|publisher = Ethnologue|accessdate = 2008-05-14|archive-url = https://web.archive.org/web/20120111080322/http://www.ethnologue.com/show_language.asp?code=kas|archive-date = 11 January 2012|dead-url = no|df = dmy-all}}</ref>
| demographics1_title2 = Other Spoken languages
| demographics1_info2 = [[Kashmiri language|Kashmiri]]
| timezone1 = [[भारतीय मानक समय|आइएसटी]]
| utc_offset1 = +5:30
| postal_code_type = [[Postal Index Number|PIN]]
| postal_code = 190001
| area_code_type = Telephone code
| area_code = 0194
| registration_plate = JK 01
| blank1_name_sec1 = [[Human sex ratio|Sex ratio]]
| blank1_info_sec1 = 888 [[female|♀]]/ 1000 [[male|♂]]
| blank2_name_sec1 = Literacy
| blank2_info_sec1 = 69.15%
| blank3_name_sec1 = Distance from Delhi
| blank3_info_sec1 = {{convert|876|km|mi}} NW
| blank4_name_sec1 = Distance from Mumbai
| blank4_info_sec1 = {{convert|2275|km|mi}} NE ([[Indian highways|land]])
| blank1_name_sec2 = [[Köppen climate classification|Climate]]
| blank1_info_sec2 = [[Humid subtropical climate|Cfa]]
| blank2_name_sec2 = [[Precipitation (meteorology)|Precipitation]]
| blank2_info_sec2 = {{convert|710|mm|in}}
| blank3_name_sec2 = Avg. summer temperature
| blank3_info_sec2 = {{convert|23.3|°C|°F}}
| blank4_name_sec2 = Avg. winter temperature
| blank4_info_sec2 = {{convert|3.2|°C|°F}}
| website = {{URL|https://srinagar.nic.in}}
| official_name =
}}
'''श्रीनगर ''' भारत की [[जम्मू काश्मीर]] प्रान्त क राजधानी ह।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:भारत के शहर आ कस्बा]]
[[श्रेणी:काश्मीर]]
jcda9sb4l6zal4irnkka6730dryr5s0
815189
815175
2026-11-12T15:22:43Z
SM7Bot
7808
/* top */ सफाई, replaced: dead-url = no → url-status=live using [[Project:AWB|AWB]]
815189
wikitext
text/x-wiki
{{Infobox settlement
| name = {{raise|0.2em|Srinagar}}
| native_name = <!-- Please do not add any Indic script in this infobox, per WP:INDICSCRIPT policy. -->
| settlement_type = [[City]]
| image_skyline = Srinagar pano.jpg
| imagesize = 250px
| image_alt = Panorama of city in green area near a river and lakes
| image_caption = View of Srinagar and [[Dal Lake]]
| map_caption =
| pushpin_map = India Jammu and Kashmir#India
| pushpin_label_position = right
| pushpin_map_caption = Location in [[Jammu and Kashmir]]
| coordinates = {{coord|34|5|24|N|74|47|24|E|display=inline,title}}
| subdivision_type = Country
| subdivision_name = [[India]]
| subdivision_type1 = [[States and territories of India|State]]
| subdivision_name1 = [[Jammu and Kashmir]]
| subdivision_type2 = [[List of districts of India|District]]
| subdivision_name2 = [[Srinagar district|Srinagar]]
| leader_title1 =
| leader_name1 =
| unit_pref = Metric
| area_total_km2 = 294
| elevation_footnotes =
| elevation_m = 1585
| population_footnotes = <ref>{{cite web
|url = http://www.censusindia.gov.in/pca/SearchDetails.aspx?Id=3415
|title = Srinagar Municipal Corporation Demographics 2011
|work = [[2011 Census of India]]
|publisher = [[Government of India]]
|accessdate = 2016-05-24
}}</ref>
| population_total = 1180570
| population_as_of = 2011
| population_rank = [[List of most populous cities in India|34th]]
| population_density_km2 = auto
| population_metro = 1273312<ref>{{Cite web |url=http://censusindia.gov.in/2011-prov-results/paper2/data_files/India2/Table_3_PR_UA_Citiees_1Lakh_and_Above.pdf |title=2011 census of India |access-date=31 May 2015 |archive-url=https://web.archive.org/web/20131017153124/http://censusindia.gov.in/2011-prov-results/paper2/data_files/India2/Table_3_PR_UA_Citiees_1Lakh_and_Above.pdf |archive-date=17 October 2013 |url-status=live |df=dmy-all }}</ref>
| population_blank1_title = Metro Rank
| population_blank1 = [[List of million-plus urban agglomerations in India|38th]]
| demographics_type1 = Languages
| demographics1_title1 = Official
| demographics1_info1 = [[Urdu]]<ref name="Ethnologue">{{cite web|url = http://www.ethnologue.com/show_language.asp?code=kas|title = Kashmiri: A language of India|publisher = Ethnologue|accessdate = 2008-05-14|archive-url = https://web.archive.org/web/20120111080322/http://www.ethnologue.com/show_language.asp?code=kas|archive-date = 11 January 2012|url-status=live|df = dmy-all}}</ref>
| demographics1_title2 = Other Spoken languages
| demographics1_info2 = [[Kashmiri language|Kashmiri]]
| timezone1 = [[भारतीय मानक समय|आइएसटी]]
| utc_offset1 = +5:30
| postal_code_type = [[Postal Index Number|PIN]]
| postal_code = 190001
| area_code_type = Telephone code
| area_code = 0194
| registration_plate = JK 01
| blank1_name_sec1 = [[Human sex ratio|Sex ratio]]
| blank1_info_sec1 = 888 [[female|♀]]/ 1000 [[male|♂]]
| blank2_name_sec1 = Literacy
| blank2_info_sec1 = 69.15%
| blank3_name_sec1 = Distance from Delhi
| blank3_info_sec1 = {{convert|876|km|mi}} NW
| blank4_name_sec1 = Distance from Mumbai
| blank4_info_sec1 = {{convert|2275|km|mi}} NE ([[Indian highways|land]])
| blank1_name_sec2 = [[Köppen climate classification|Climate]]
| blank1_info_sec2 = [[Humid subtropical climate|Cfa]]
| blank2_name_sec2 = [[Precipitation (meteorology)|Precipitation]]
| blank2_info_sec2 = {{convert|710|mm|in}}
| blank3_name_sec2 = Avg. summer temperature
| blank3_info_sec2 = {{convert|23.3|°C|°F}}
| blank4_name_sec2 = Avg. winter temperature
| blank4_info_sec2 = {{convert|3.2|°C|°F}}
| website = {{URL|https://srinagar.nic.in}}
| official_name =
}}
'''श्रीनगर ''' भारत की [[जम्मू काश्मीर]] प्रान्त क राजधानी ह।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:भारत के शहर आ कस्बा]]
[[श्रेणी:काश्मीर]]
emuh0vv0x5b2bdprfrruf6ysv15igm8
नाइजर
0
11272
815157
805120
2026-11-12T14:14:44Z
SM7Bot
7808
सफाई using [[Project:AWB|AWB]]
815157
wikitext
text/x-wiki
{{Coord|16|N|8|E|display=title}}
{{Infobox country
| conventional_long_name = नाइजर रिपब्लिक
| native_name = {{unbulleted list |{{native name|fr|République du Niger}} }}
| common_name = नाइजर
| image_flag = Flag of Niger.svg
| image_coat = Coat of Arms of Niger.svg
| symbol_width = 125px
| image_map = Niger_(orthographic_projection).svg
| map_caption = {{map caption |countryprefix= |location_color=dark green}}
| image_map2 = Niger - Location Map (2011) - NER - UNOCHA.svg
| national_motto = {{unbulleted list |{{native phrase|fr|"Fraternité, Travail, Progrès"|italics=off}} |{{small|"Fraternity, Work, Progress"}}}}
| national_anthem = ''[[La Nigérienne]]''<br/>
| official_languages = [[French language|French]]
| languages_type = [[National language]]s<ref name="axl.cefan.ulaval.ca">[http://www.axl.cefan.ulaval.ca/afrique/niger-loi-2001-037-LNG.htm République du Niger, "Loi n° 2001-037 du 31 décembre 2001 fixant les modalités de promotion et de développement des langues nationales." L'aménagement linguistique dans le monde] {{Webarchive|url=https://web.archive.org/web/20181019123028/http://www.axl.cefan.ulaval.ca/afrique/niger-loi-2001-037-LNG.htm |date=2018-10-19 }} (accessed 21 September 2016)</ref>
| languages = {{hlist |[[Arabic language|Arabic]] |[[Buduma language|Buduma]]}} {{hlist |[[Fula language|Fulfulde]]}} {{hlist |[[Gurma language|Gourmanchéma]]}} {{hlist |[[Hausa language|Hausa]] |[[Kanuri language|Kanuri]]}} {{hlist |[[Songhay languages|Zarma & Songhai]] |[[Tuareg languages|Tamasheq]] |[[Tasawaq language|Tassawaq]] |[[Tebu languages|Tebu]]}}
| demonym = [[Demographics of Niger|Nigerien]] {{IPAc-en|n|iː|ˈ|ʒ|ɛr|i|ən}} {{lower|0.4em|<ref>{{cite web|url=https://en.oxforddictionaries.com/definition/nigerien|title=Nigerien – definition of Nigerien in English from the Oxford Dictionaries|publisher=|accessdate=1 मार्च 2018|archive-date=2018-03-01|archive-url=https://web.archive.org/web/20180301230120/https://en.oxforddictionaries.com/definition/nigerien|url-status=dead}}</ref><!--end lower:-->}}
| capital = [[नियामे]]
| coordinates = {{Coord|13|32|N|2|05|E|type:city}}
| largest_city = capital
| government_type = [[Unitary state|Unitary]] [[Semi-presidential system|semi-presidential]] [[republic]]
| legislature = [[National Assembly of Niger|National Assembly]]
| area_rank = 21st
| area_magnitude = 1 E12
| area_km2 = 1,267,000
| area_sq_mi = 489,678
| percent_water = 0.02
| population_estimate = {{UN_Population|Niger}}
| population_estimate_rank = 61st
| population_estimate_year = {{UN_Population|Year}}
| population_census = 17,138,707
| population_census_year = 2012
| population_density_km2 = 12.1
| population_density_sq_mi = 31.2
| population_density_rank =
| GDP_PPP = $21.655 billion<ref name="imf">{{cite web|url=https://www.imf.org/external/pubs/ft/weo/2017/02/weodata/weorept.aspx?pr.x=43&pr.y=19&sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&c=512%2C672%2C914%2C946%2C612%2C137%2C614%2C546%2C311%2C962%2C213%2C674%2C911%2C676%2C193%2C548%2C122%2C556%2C912%2C678%2C313%2C181%2C419%2C867%2C513%2C682%2C316%2C684%2C913%2C273%2C124%2C868%2C339%2C921%2C638%2C948%2C514%2C943%2C218%2C686%2C963%2C688%2C616%2C518%2C223%2C728%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C199%2C646%2C733%2C648%2C184%2C915%2C524%2C134%2C361%2C652%2C362%2C174%2C364%2C328%2C732%2C258%2C366%2C656%2C734%2C654%2C144%2C336%2C146%2C263%2C463%2C268%2C528%2C532%2C923%2C944%2C738%2C176%2C578%2C534%2C537%2C536%2C742%2C429%2C866%2C433%2C369%2C178%2C744%2C436%2C186%2C136%2C925%2C343%2C869%2C158%2C746%2C439%2C926%2C916%2C466%2C664%2C112%2C826%2C111%2C542%2C298%2C967%2C927%2C443%2C846%2C917%2C299%2C544%2C582%2C941%2C474%2C446%2C754%2C666%2C698%2C668&s=PPPGDP&grp=0&a=|title=Report for Selected Country Groups and Subjects (PPP valuation of country GDP)|publisher=IMF|accessdate=24 अक्टूबर 2017}}
</ref>
| GDP_PPP_rank = 142nd
| GDP_PPP_year = 2017
| GDP_PPP_per_capita = $1,153<ref name="IMF 2017">[http://www.imf.org/external/pubs/ft/weo/2017/02/weodata/weorept.aspx?sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&pr1.x=55&pr1.y=9&c=512%2C946%2C914%2C137%2C612%2C546%2C614%2C962%2C311%2C674%2C213%2C676%2C911%2C548%2C193%2C556%2C122%2C678%2C912%2C181%2C313%2C867%2C419%2C682%2C513%2C684%2C316%2C273%2C913%2C868%2C124%2C921%2C339%2C948%2C638%2C943%2C514%2C686%2C218%2C688%2C963%2C518%2C616%2C728%2C223%2C836%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C726%2C646%2C199%2C648%2C733%2C915%2C184%2C134%2C524%2C652%2C361%2C174%2C362%2C328%2C364%2C258%2C732%2C656%2C366%2C654%2C734%2C336%2C144%2C263%2C146%2C268%2C463%2C532%2C528%2C944%2C923%2C176%2C738%2C534%2C578%2C536%2C537%2C429%2C742%2C433%2C866%2C178%2C369%2C436%2C744%2C136%2C186%2C343%2C925%2C158%2C869%2C439%2C746%2C916%2C926%2C664%2C466%2C826%2C112%2C542%2C111%2C967%2C298%2C443%2C927%2C917%2C846%2C544%2C299%2C941%2C582%2C446%2C474%2C666%2C754%2C668%2C698%2C672&s=PPPPC&grp=0&a= World Economic Outlook Database, January 2018], [http://www.imf.org/external/ns/cs.aspx?id=28 International Monetary Fund]. Database updated on 12 April 2017. Accessed on 21 April 2017.</ref>
| GDP_PPP_per_capita_rank = 183rd
| GDP_nominal = $7.892 billion<ref name="GDP IMF">{{cite web|url=http://www.imf.org/external/pubs/ft/weo/2018/01/weodata/weorept.aspx?sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&c=512%2C946%2C914%2C137%2C612%2C546%2C614%2C962%2C311%2C674%2C213%2C676%2C911%2C548%2C193%2C556%2C122%2C678%2C912%2C181%2C313%2C867%2C419%2C682%2C513%2C684%2C316%2C273%2C913%2C868%2C124%2C921%2C339%2C948%2C638%2C943%2C514%2C686%2C218%2C688%2C963%2C518%2C616%2C728%2C223%2C836%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C726%2C646%2C199%2C648%2C733%2C915%2C184%2C134%2C524%2C652%2C361%2C174%2C362%2C328%2C364%2C258%2C732%2C656%2C366%2C654%2C734%2C336%2C144%2C263%2C146%2C268%2C463%2C532%2C528%2C944%2C923%2C176%2C738%2C534%2C578%2C536%2C537%2C429%2C742%2C433%2C866%2C178%2C369%2C436%2C744%2C136%2C186%2C343%2C925%2C158%2C869%2C439%2C746%2C916%2C926%2C664%2C466%2C826%2C112%2C542%2C111%2C967%2C298%2C443%2C927%2C917%2C846%2C544%2C299%2C941%2C582%2C446%2C474%2C666%2C754%2C668%2C698%2C672&s=NGDPD&grp=0&a=&pr.x=45&pr.y=14|title=World Economic Outlook Database|last=|first=|date=17 April 2018|website=|publisher=[[International Monetary Fund]]|archive-url=|archive-date=|dead-url=|access-date=}}</ref>
| GDP_nominal_rank = 144th
| GDP_nominal_year = 2017
| GDP_nominal_per_capita = $440<ref>[http://www.imf.org/external/pubs/ft/weo/2018/01/weodata/weorept.aspx?pr.x=62&pr.y=9&sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&c=512%2C946%2C914%2C137%2C612%2C546%2C614%2C962%2C311%2C674%2C213%2C676%2C911%2C548%2C193%2C556%2C122%2C678%2C912%2C181%2C313%2C867%2C419%2C682%2C513%2C684%2C316%2C273%2C913%2C868%2C124%2C921%2C339%2C948%2C638%2C943%2C514%2C686%2C218%2C688%2C963%2C518%2C616%2C728%2C223%2C836%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C726%2C646%2C199%2C648%2C733%2C915%2C184%2C134%2C524%2C652%2C361%2C174%2C362%2C328%2C364%2C258%2C732%2C656%2C366%2C654%2C734%2C336%2C144%2C263%2C146%2C268%2C463%2C532%2C528%2C944%2C923%2C176%2C738%2C534%2C578%2C536%2C537%2C429%2C742%2C433%2C866%2C178%2C369%2C436%2C744%2C136%2C186%2C343%2C925%2C158%2C869%2C439%2C746%2C916%2C926%2C664%2C466%2C826%2C112%2C542%2C111%2C967%2C298%2C443%2C927%2C917%2C846%2C544%2C299%2C941%2C582%2C446%2C474%2C666%2C754%2C668%2C698%2C672&s=NGDPDPC&grp=0&a= World Economic Outlook Database, April 2018], [[International Monetary Fund]]. Accessed on 17 April 2018.</ref>
| GDP_nominal_per_capita_rank = 182nd
| sovereignty_type = [[History of Niger|Independence]]
| sovereignty_note = from France
| established_event1 = Declared
| established_date1 = 3 August 1960
| Gini_year = 2011
| Gini_change = <!--increase/decrease/steady-->
| Gini = 31.5 <!--number only-->
| Gini_ref = <ref>[http://data.worldbank.org/indicator/SI.POV.GINI/ World Bank GINI index], accessed on January 21, 2016.</ref>
| Gini_rank =
| HDI_year = 2015<!-- Please use the year to which the data refers, not the publication year-->
| HDI_change = increase<!--increase/decrease/steady-->
| HDI = 0.353 <!--number only-->
| HDI_ref = <ref name="HDI">{{cite web |url=http://hdr.undp.org/sites/default/files/HDR2016_EN_Overview_Web.pdf |title=Human Development Report 2016 |date=2016 |accessdate=4 January 2018 |publisher=United Nations Development Programme | page=25}}</ref>
| HDI_rank = 187th
| currency = [[West African CFA franc]]
| currency_code = XOF
| country_code = NER
| time_zone = [[West Africa Time|WAT]]
| utc_offset = +1
| time_zone_DST =
| utc_offset_DST =
| drives_on = right<ref>[http://www.brianlucas.ca/roadside/ Which side of the road do they drive on?] Brian Lucas. अगस्त 2005. Retrieved 28 January 2009.</ref>
| calling_code = [[+227]]
| cctld = [[.ne]]
| footnote_a = Lowest ranked.
}}
'''नाइजर''' [[अफिरका महादीप]] में एगो देस बा। एकर राजधानी [[नियामे]] हवे।
{{clear}}
==संदर्भ==
{{Reflist}}
{{अफिरका-भू-आधार}}
[[श्रेणी:अफिरका के देस]]
[[श्रेणी:यूनाइटेड नेशंस के सदस्य देस]]
[[श्रेणी:सहारा क्षेत्र के देस]]
mbwqe7hrlbdprmifg82duv9io76mwj7
815305
815157
2026-11-12T16:46:36Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815305
wikitext
text/x-wiki
{{Coord|16|N|8|E|display=title}}
{{Infobox country
| conventional_long_name = नाइजर रिपब्लिक
| native_name = {{unbulleted list |{{native name|fr|République du Niger}} }}
| common_name = नाइजर
| image_flag = Flag of Niger.svg
| image_coat = Coat of Arms of Niger.svg
| symbol_width = 125px
| image_map = Niger_(orthographic_projection).svg
| map_caption = {{map caption |countryprefix= |location_color=dark green}}
| image_map2 = Niger - Location Map (2011) - NER - UNOCHA.svg
| national_motto = {{unbulleted list |{{native phrase|fr|"Fraternité, Travail, Progrès"|italics=off}} |{{small|"Fraternity, Work, Progress"}}}}
| national_anthem = ''[[La Nigérienne]]''<br/>
| official_languages = [[French language|French]]
| languages_type = [[National language]]s<ref name="axl.cefan.ulaval.ca">[http://www.axl.cefan.ulaval.ca/afrique/niger-loi-2001-037-LNG.htm République du Niger, "Loi n° 2001-037 du 31 décembre 2001 fixant les modalités de promotion et de développement des langues nationales." L'aménagement linguistique dans le monde] {{Webarchive|url=https://web.archive.org/web/20181019123028/http://www.axl.cefan.ulaval.ca/afrique/niger-loi-2001-037-LNG.htm |date=2018-10-19 }} (accessed 21 September 2016)</ref>
| languages = {{hlist |[[Arabic language|Arabic]] |[[Buduma language|Buduma]]}} {{hlist |[[Fula language|Fulfulde]]}} {{hlist |[[Gurma language|Gourmanchéma]]}} {{hlist |[[Hausa language|Hausa]] |[[Kanuri language|Kanuri]]}} {{hlist |[[Songhay languages|Zarma & Songhai]] |[[Tuareg languages|Tamasheq]] |[[Tasawaq language|Tassawaq]] |[[Tebu languages|Tebu]]}}
| demonym = [[Demographics of Niger|Nigerien]] {{IPAc-en|n|iː|ˈ|ʒ|ɛr|i|ən}} {{lower|0.4em|<ref>{{cite web|url=https://en.oxforddictionaries.com/definition/nigerien|title=Nigerien – definition of Nigerien in English from the Oxford Dictionaries|publisher=|accessdate=1 मार्च 2018|archive-date=2018-03-01|archive-url=https://web.archive.org/web/20180301230120/https://en.oxforddictionaries.com/definition/nigerien|url-status=dead}}</ref><!--end lower:-->}}
| capital = [[नियामे]]
| coordinates = {{Coord|13|32|N|2|05|E|type:city}}
| largest_city = capital
| government_type = [[Unitary state|Unitary]] [[Semi-presidential system|semi-presidential]] [[republic]]
| legislature = [[National Assembly of Niger|National Assembly]]
| area_rank = 21st
| area_magnitude = 1 E12
| area_km2 = 1,267,000
| area_sq_mi = 489,678
| percent_water = 0.02
| population_estimate = {{UN_Population|Niger}}
| population_estimate_rank = 61st
| population_estimate_year = {{UN_Population|Year}}
| population_census = 17,138,707
| population_census_year = 2012
| population_density_km2 = 12.1
| population_density_sq_mi = 31.2
| population_density_rank =
| GDP_PPP = $21.655 billion<ref name="imf">{{cite web|url=https://www.imf.org/external/pubs/ft/weo/2017/02/weodata/weorept.aspx?pr.x=43&pr.y=19&sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&c=512%2C672%2C914%2C946%2C612%2C137%2C614%2C546%2C311%2C962%2C213%2C674%2C911%2C676%2C193%2C548%2C122%2C556%2C912%2C678%2C313%2C181%2C419%2C867%2C513%2C682%2C316%2C684%2C913%2C273%2C124%2C868%2C339%2C921%2C638%2C948%2C514%2C943%2C218%2C686%2C963%2C688%2C616%2C518%2C223%2C728%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C199%2C646%2C733%2C648%2C184%2C915%2C524%2C134%2C361%2C652%2C362%2C174%2C364%2C328%2C732%2C258%2C366%2C656%2C734%2C654%2C144%2C336%2C146%2C263%2C463%2C268%2C528%2C532%2C923%2C944%2C738%2C176%2C578%2C534%2C537%2C536%2C742%2C429%2C866%2C433%2C369%2C178%2C744%2C436%2C186%2C136%2C925%2C343%2C869%2C158%2C746%2C439%2C926%2C916%2C466%2C664%2C112%2C826%2C111%2C542%2C298%2C967%2C927%2C443%2C846%2C917%2C299%2C544%2C582%2C941%2C474%2C446%2C754%2C666%2C698%2C668&s=PPPGDP&grp=0&a=|title=Report for Selected Country Groups and Subjects (PPP valuation of country GDP)|publisher=IMF|accessdate=24 अक्टूबर 2017}}
</ref>
| GDP_PPP_rank = 142nd
| GDP_PPP_year = 2017
| GDP_PPP_per_capita = $1,153<ref name="IMF 2017">[http://www.imf.org/external/pubs/ft/weo/2017/02/weodata/weorept.aspx?sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&pr1.x=55&pr1.y=9&c=512%2C946%2C914%2C137%2C612%2C546%2C614%2C962%2C311%2C674%2C213%2C676%2C911%2C548%2C193%2C556%2C122%2C678%2C912%2C181%2C313%2C867%2C419%2C682%2C513%2C684%2C316%2C273%2C913%2C868%2C124%2C921%2C339%2C948%2C638%2C943%2C514%2C686%2C218%2C688%2C963%2C518%2C616%2C728%2C223%2C836%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C726%2C646%2C199%2C648%2C733%2C915%2C184%2C134%2C524%2C652%2C361%2C174%2C362%2C328%2C364%2C258%2C732%2C656%2C366%2C654%2C734%2C336%2C144%2C263%2C146%2C268%2C463%2C532%2C528%2C944%2C923%2C176%2C738%2C534%2C578%2C536%2C537%2C429%2C742%2C433%2C866%2C178%2C369%2C436%2C744%2C136%2C186%2C343%2C925%2C158%2C869%2C439%2C746%2C916%2C926%2C664%2C466%2C826%2C112%2C542%2C111%2C967%2C298%2C443%2C927%2C917%2C846%2C544%2C299%2C941%2C582%2C446%2C474%2C666%2C754%2C668%2C698%2C672&s=PPPPC&grp=0&a= World Economic Outlook Database, January 2018], [http://www.imf.org/external/ns/cs.aspx?id=28 International Monetary Fund]. Database updated on 12 April 2017. Accessed on 21 April 2017.</ref>
| GDP_PPP_per_capita_rank = 183rd
| GDP_nominal = $7.892 billion<ref name="GDP IMF">{{cite web|url=http://www.imf.org/external/pubs/ft/weo/2018/01/weodata/weorept.aspx?sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&c=512%2C946%2C914%2C137%2C612%2C546%2C614%2C962%2C311%2C674%2C213%2C676%2C911%2C548%2C193%2C556%2C122%2C678%2C912%2C181%2C313%2C867%2C419%2C682%2C513%2C684%2C316%2C273%2C913%2C868%2C124%2C921%2C339%2C948%2C638%2C943%2C514%2C686%2C218%2C688%2C963%2C518%2C616%2C728%2C223%2C836%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C726%2C646%2C199%2C648%2C733%2C915%2C184%2C134%2C524%2C652%2C361%2C174%2C362%2C328%2C364%2C258%2C732%2C656%2C366%2C654%2C734%2C336%2C144%2C263%2C146%2C268%2C463%2C532%2C528%2C944%2C923%2C176%2C738%2C534%2C578%2C536%2C537%2C429%2C742%2C433%2C866%2C178%2C369%2C436%2C744%2C136%2C186%2C343%2C925%2C158%2C869%2C439%2C746%2C916%2C926%2C664%2C466%2C826%2C112%2C542%2C111%2C967%2C298%2C443%2C927%2C917%2C846%2C544%2C299%2C941%2C582%2C446%2C474%2C666%2C754%2C668%2C698%2C672&s=NGDPD&grp=0&a=&pr.x=45&pr.y=14|title=World Economic Outlook Database|last=|first=|date=17 April 2018|website=|publisher=[[International Monetary Fund]]|archive-url=|archive-date=|url-status=|access-date=}}</ref>
| GDP_nominal_rank = 144th
| GDP_nominal_year = 2017
| GDP_nominal_per_capita = $440<ref>[http://www.imf.org/external/pubs/ft/weo/2018/01/weodata/weorept.aspx?pr.x=62&pr.y=9&sy=2017&ey=2017&scsm=1&ssd=1&sort=country&ds=.&br=1&c=512%2C946%2C914%2C137%2C612%2C546%2C614%2C962%2C311%2C674%2C213%2C676%2C911%2C548%2C193%2C556%2C122%2C678%2C912%2C181%2C313%2C867%2C419%2C682%2C513%2C684%2C316%2C273%2C913%2C868%2C124%2C921%2C339%2C948%2C638%2C943%2C514%2C686%2C218%2C688%2C963%2C518%2C616%2C728%2C223%2C836%2C516%2C558%2C918%2C138%2C748%2C196%2C618%2C278%2C624%2C692%2C522%2C694%2C622%2C142%2C156%2C449%2C626%2C564%2C628%2C565%2C228%2C283%2C924%2C853%2C233%2C288%2C632%2C293%2C636%2C566%2C634%2C964%2C238%2C182%2C662%2C359%2C960%2C453%2C423%2C968%2C935%2C922%2C128%2C714%2C611%2C862%2C321%2C135%2C243%2C716%2C248%2C456%2C469%2C722%2C253%2C942%2C642%2C718%2C643%2C724%2C939%2C576%2C644%2C936%2C819%2C961%2C172%2C813%2C132%2C726%2C646%2C199%2C648%2C733%2C915%2C184%2C134%2C524%2C652%2C361%2C174%2C362%2C328%2C364%2C258%2C732%2C656%2C366%2C654%2C734%2C336%2C144%2C263%2C146%2C268%2C463%2C532%2C528%2C944%2C923%2C176%2C738%2C534%2C578%2C536%2C537%2C429%2C742%2C433%2C866%2C178%2C369%2C436%2C744%2C136%2C186%2C343%2C925%2C158%2C869%2C439%2C746%2C916%2C926%2C664%2C466%2C826%2C112%2C542%2C111%2C967%2C298%2C443%2C927%2C917%2C846%2C544%2C299%2C941%2C582%2C446%2C474%2C666%2C754%2C668%2C698%2C672&s=NGDPDPC&grp=0&a= World Economic Outlook Database, April 2018], [[International Monetary Fund]]. Accessed on 17 April 2018.</ref>
| GDP_nominal_per_capita_rank = 182nd
| sovereignty_type = [[History of Niger|Independence]]
| sovereignty_note = from France
| established_event1 = Declared
| established_date1 = 3 August 1960
| Gini_year = 2011
| Gini_change = <!--increase/decrease/steady-->
| Gini = 31.5 <!--number only-->
| Gini_ref = <ref>[http://data.worldbank.org/indicator/SI.POV.GINI/ World Bank GINI index], accessed on January 21, 2016.</ref>
| Gini_rank =
| HDI_year = 2015<!-- Please use the year to which the data refers, not the publication year-->
| HDI_change = increase<!--increase/decrease/steady-->
| HDI = 0.353 <!--number only-->
| HDI_ref = <ref name="HDI">{{cite web |url=http://hdr.undp.org/sites/default/files/HDR2016_EN_Overview_Web.pdf |title=Human Development Report 2016 |date=2016 |accessdate=4 January 2018 |publisher=United Nations Development Programme | page=25}}</ref>
| HDI_rank = 187th
| currency = [[West African CFA franc]]
| currency_code = XOF
| country_code = NER
| time_zone = [[West Africa Time|WAT]]
| utc_offset = +1
| time_zone_DST =
| utc_offset_DST =
| drives_on = right<ref>[http://www.brianlucas.ca/roadside/ Which side of the road do they drive on?] Brian Lucas. अगस्त 2005. Retrieved 28 January 2009.</ref>
| calling_code = [[+227]]
| cctld = [[.ne]]
| footnote_a = Lowest ranked.
}}
'''नाइजर''' [[अफिरका महादीप]] में एगो देस बा। एकर राजधानी [[नियामे]] हवे।
{{clear}}
==संदर्भ==
{{Reflist}}
{{अफिरका-भू-आधार}}
[[श्रेणी:अफिरका के देस]]
[[श्रेणी:यूनाइटेड नेशंस के सदस्य देस]]
[[श्रेणी:सहारा क्षेत्र के देस]]
2sr8qmqbraxf84v0p22nxpprmubn3ut
औरत
0
11430
815335
809936
2026-11-13T04:20:21Z
SM7
3953
फोटो जोड़ल गइल
815335
wikitext
text/x-wiki
[[चित्र:Three Generations of Navajos.jpg|thumb|एगो परिवार में औरतन के तीन पीढ़ी]]
'''औरत''', '''स्त्री''', '''नारी''' चाहे '''महिला''' ({{Langx|en|woman}}) [[मनुष्य]]न में उमिरदार (वयस्क भा एडल्ट) [[मादा]] (फीमेल) के कहल जाला; कम उमिर के मानव मादा के [[लड़िकी]] भा [[लइकी]] कहल जाला। हालाँकि, एह शब्दन के कई बेर खास अरथ (सेंस) में इस्तेमाल हो सके ला - जइसे कि 'औरत' आ 'स्त्री' शब्द के इस्तेमाल कई बेर '[[मेहरारू]]' (पत्नी) के अरथ में हो सके ला; 'महिला' शब्द आमतौर प आदर के संघे कवनो संभ्रांत आ कुलीन औरत (अंग्रेजी के [[लेडी]] के अरथ में) खातिर कइल जाला। 'नारी' आ 'स्त्री' शब्दन के इस्तेमाल फेमिनिज्म से जुड़ल कांसेप्ट सभ में होला - जइसे कि ''नारी अधिकार'', ''नारी सशक्तिकरण'' आ खुद ''नारीवाद'' भा ''स्त्रीवाद'' (फेमिनिज्म खातिर)।
अपना मूल अरथ में, पुरहर उमिर के मानव मादा, जे संतान पैदा करे में सक्षम होखे। आमतौर पर औरत के पास एक्स (X) क्रोमोसोम के एगो जोड़ा होला, जवना में एकहक क्रोमोसोम माता आ पिता से मिलल होला। औरत (मादा) भ्रूण के लैंगिक विकास मुख्य रूप से एह कारण होला कि ओकरा लैंगिक गुणसूत्रन में सक्रिय SRY जीन मौजूद ना रहेला। औरतन के शारीरिक बनावट पुरुष से मुख्य रूप से औरतन वाला प्रजनन तंत्र के चलते अलग किसिम के होला। एह औरतन के प्रजनन तंत्र (बच्चा पैदा करे वाला सिस्टम आ अंग) में अंडाशय, अंडवाहिनी (फैलोपियन ट्यूब), गर्भाशय, योनि आ भग शामिल बाड़ें। सामान्य रूप से महिला के श्रोणि (पेल्विस) बेसी चाकर, कूल्हा बेसी विकसित आ स्तन पुरुष के तुलना में बड़हन होखे लें। ई सगरी बिसेसता सभ गर्भधारण, जचगी आ संतान के दूध पियावे में मददगार होलें। औरतन में आमतौर पर चेहरा आ शरीर पर बाल कम होले, शरीर में वसा (बॉडी फैट) के रेशियो बेसी होखे ला, आ औसतन ऊ पुरुषन के तुलना में हाईट में कम लमहर आ कम मांसल होखे लीं। सेहत के नजरिया से महिलन में कुछ रोगन, जइसे स्तन कैंसर, के रिस्क बेसी हो सकेला, जबकि कुछ दूसर रोगन, जइसे फेफड़ा के कैंसर, के जोखिम पुरुषन के तुलना में अपेक्षाकृत कम देखल जाला।
मानव इतिहास के अधिकांश काल में पितृसत्तात्मक सामाजिक व्यवस्था आ पारंपरिक लैंगिक भूमिकन के कारण औरतन के खातिर बिबिध किसिम के अवसर (मोका भा अपार्चुनिटी) अक्सर सीमित रहल बा। हालाँकि, 20वीं सदी के दौरान अनेक समाजन में एह किसिम के रोकटोक आ प्रतिबंधन में कमी आइल, जवना के परिणामस्वरूप औरतन के शिक्षा, रोजगार आ सार्वजनिक जीवन में बेसी मोका मिले सुरू भइल। औरतन के खिलाफ होखे वाली हिंसा के अधिकांश घटना पुरुषन द्वारा कइल जाले। आजुओ कुछ देशन में महिलन के प्रजनन (संतान पैदा करे) के अधिकार आ अन्य नारी अधिकार पूरा रूप से प्राप्त नइखे। कई धर्म आ सरकार औरतन के जीवन, व्यवहार आ सामाजिक भूमिका से जुड़ल कुछ विशेष नियम आ मानदंड (पैमाना) भी निर्धारित करे लें। नारीवादी आंदोलन (फेमिनिस्ट आंदोलन) के प्रमुख उद्देश्य औरत आ पुरुष के बीच समान अधिकार, समान अवसर आ लैंगिक समानता स्थापित कइल बाटे।
[[श्रेणी:मनुष्य]]
[[श्रेणी:औरत| ]]
[[श्रेणी:मादा]]
{{Society-stub}}
b8roua9o4wfk01pq961r4oox0qb779u
815336
815335
2026-11-13T04:22:16Z
SM7
3953
सुधार कइल गइल
815336
wikitext
text/x-wiki
[[चित्र:Three Generations of Navajos.jpg|thumb|एगो परिवार में औरतन के तीन पीढ़ी]]
'''औरत''', '''स्त्री''', '''नारी''' चाहे '''महिला'''{{efn|एह शब्दन के कई बेर खास अरथ (सेंस) में इस्तेमाल हो सके ला - जइसे कि 'औरत' आ 'स्त्री' शब्द के इस्तेमाल कई बेर '[[मेहरारू]]' (पत्नी) के अरथ में हो सके ला; 'महिला' शब्द आमतौर प आदर के संघे कवनो संभ्रांत आ कुलीन औरत (अंग्रेजी के [[लेडी]] के अरथ में) खातिर कइल जाला। 'नारी' आ 'स्त्री' शब्दन के इस्तेमाल फेमिनिज्म से जुड़ल कांसेप्ट सभ में होला - जइसे कि ''नारी अधिकार'', ''नारी सशक्तिकरण'' आ खुद ''नारीवाद'' भा ''स्त्रीवाद'' (फेमिनिज्म खातिर)।}} ({{Langx|en|woman}}) [[मनुष्य]]न में उमिरदार (वयस्क भा एडल्ट) [[मादा]] (फीमेल) के कहल जाला; कम उमिर के मानव मादा के [[लड़िकी]] भा [[लइकी]] कहल जाला।
अपना मूल अरथ में, पुरहर उमिर के मानव मादा, जे संतान पैदा करे में सक्षम होखे। आमतौर पर औरत के पास एक्स (X) क्रोमोसोम के एगो जोड़ा होला, जवना में एकहक क्रोमोसोम माता आ पिता से मिलल होला। औरत (मादा) भ्रूण के लैंगिक विकास मुख्य रूप से एह कारण होला कि ओकरा लैंगिक गुणसूत्रन में सक्रिय SRY जीन मौजूद ना रहेला। औरतन के शारीरिक बनावट पुरुष से मुख्य रूप से औरतन वाला प्रजनन तंत्र के चलते अलग किसिम के होला। एह औरतन के प्रजनन तंत्र (बच्चा पैदा करे वाला सिस्टम आ अंग) में अंडाशय, अंडवाहिनी (फैलोपियन ट्यूब), गर्भाशय, योनि आ भग शामिल बाड़ें। सामान्य रूप से महिला के श्रोणि (पेल्विस) बेसी चाकर, कूल्हा बेसी विकसित आ स्तन पुरुष के तुलना में बड़हन होखे लें। ई सगरी बिसेसता सभ गर्भधारण, जचगी आ संतान के दूध पियावे में मददगार होलें। औरतन में आमतौर पर चेहरा आ शरीर पर बाल कम होले, शरीर में वसा (बॉडी फैट) के रेशियो बेसी होखे ला, आ औसतन ऊ पुरुषन के तुलना में हाईट में कम लमहर आ कम मांसल होखे लीं। सेहत के नजरिया से महिलन में कुछ रोगन, जइसे स्तन कैंसर, के रिस्क बेसी हो सकेला, जबकि कुछ दूसर रोगन, जइसे फेफड़ा के कैंसर, के जोखिम पुरुषन के तुलना में अपेक्षाकृत कम देखल जाला।
मानव इतिहास के अधिकांश काल में पितृसत्तात्मक सामाजिक व्यवस्था आ पारंपरिक लैंगिक भूमिकन के कारण औरतन के खातिर बिबिध किसिम के अवसर (मोका भा अपार्चुनिटी) अक्सर सीमित रहल बा। हालाँकि, 20वीं सदी के दौरान अनेक समाजन में एह किसिम के रोकटोक आ प्रतिबंधन में कमी आइल, जवना के परिणामस्वरूप औरतन के शिक्षा, रोजगार आ सार्वजनिक जीवन में बेसी मोका मिले सुरू भइल। औरतन के खिलाफ होखे वाली हिंसा के अधिकांश घटना पुरुषन द्वारा कइल जाले। आजुओ कुछ देशन में महिलन के प्रजनन (संतान पैदा करे) के अधिकार आ अन्य नारी अधिकार पूरा रूप से प्राप्त नइखे। कई धर्म आ सरकार औरतन के जीवन, व्यवहार आ सामाजिक भूमिका से जुड़ल कुछ विशेष नियम आ मानदंड (पैमाना) भी निर्धारित करे लें। नारीवादी आंदोलन (फेमिनिस्ट आंदोलन) के प्रमुख उद्देश्य औरत आ पुरुष के बीच समान अधिकार, समान अवसर आ लैंगिक समानता स्थापित कइल बाटे।
{{clear}}
== नोट ==
{{notelist|group=नोट}}
[[श्रेणी:मनुष्य]]
[[श्रेणी:औरत| ]]
[[श्रेणी:मादा]]
{{Society-stub}}
n8eacliry8lwtmmupbs1n3stfc65jq2
पर्थ
0
13641
815156
766516
2026-11-12T14:14:38Z
SM7Bot
7808
सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815156
wikitext
text/x-wiki
{{Infobox Australian place
| type = city
| name = Perth
| state = WA
| image = Elizabeth Quay February 2016 (cropped).jpg
| caption = <small>Perth's skyline viewed from [[Elizabeth Quay]], 2016</small>
| coordinates = {{coord|31|57|8|S|115|51|32|E|display=inline,title}}
| force_national_map = yes
| pop = 2022044 <!--NOTE: UPDATES TO POPULATION NUMBER REQUIRE A RELIABLE SOURCE (usually from Australian Bureau of Statistics)-->
| pop_year = 2016
| pop_footnotes =<ref name=ABSERP16>{{cite web |publisher=[[Australian Bureau of Statistics]]|title=3218.0 – Regional Population Growth, Australia, 2015–16|url=http://www.abs.gov.au/AUSSTATS/abs@.nsf/mf/3218.0|date=28 July 2017|accessdate=31 अक्टूबर 2017}} ERP at 30 जून 2016.</ref>
| poprank = 4th
| density =
| density_footnotes =
| est = 1829
| area = 6417.9
| area_footnotes = (GCCSA)<ref name=ABSGCCSAXLS>{{cite web|url=http://www.censusdata.abs.gov.au/CensusOutput/copsub.NSF/All%20docs%20by%20catNo/2011~Community%20Profile~5GPER/$File/BCP_5GPER.zip?OpenElement|title=Greater Perth: Basic Community Profile|publisher=[[Australian Bureau of Statistics]]|work=2011 Census Community Profiles|date=28 मार्च 2013|format=xls|accessdate=9 April 2014|archive-date=1 May 2022|archive-url=https://web.archive.org/web/20220501105423/https://www.censusdata.abs.gov.au/CensusOutput/copsub.NSF/All%20docs%20by%20catNo/2011~Community%20Profile~5GPER/$File/BCP_5GPER.zip?OpenElement|url-status=dead}}</ref>
| timezone = [[Australian Western Standard Time|AWST]]
| utc = +8
| dist1 = 2130
| location1 = [[Adelaide]]<ref>{{cite web|url=http://www.ga.gov.au/cocky/cgi/run/distancedraw2?rec1=163285&placename=adelaide&placetype=0&state=SA+&place1=PERTH&place1long=115.858612&place1lat=-31.951941|title=Great Circle Distance between PERTH and ADELAIDE|publisher=Geoscience Australia|date=मार्च 2004}}</ref>
| dist2 = 2652
| location2 = [[Darwin, Northern Territory|Darwin]]<ref>{{cite web|url=http://www.ga.gov.au/cocky/cgi/run/distancedraw2?rec1=113272&placename=darwin&placetype=0&state=NT+&place1=PERTH&place1long=115.858612&place1lat=-31.951941|title=Great Circle Distance between PERTH and DARWIN CITY|publisher=Geoscience Australia|date=मार्च 2004}}</ref>
| dist3 = 2721
| location3 = [[Melbourne]]<ref>{{cite web|url=http://www.ga.gov.au/cocky/cgi/run/distancedraw2?rec1=248650&placename=melbourne&placetype=0&state=VIC&place1=PERTH&place1long=115.858612&place1lat=-31.951941|title=Great Circle Distance between PERTH and MELBOURNE|publisher=Geoscience Australia|date=मार्च 2004}}</ref>
| dist4 = 3288
| location4 = [[Sydney]]<ref>{{cite web|url=http://www.ga.gov.au/cocky/cgi/run/distancedraw2?rec1=106743&placename=sydney&placetype=0&state=NSW&place1=PERTH&place1long=115.858612&place1lat=-31.951941|title=Great Circle Distance between PERTH and SYDNEY|publisher=Geoscience Australia|date=मार्च 2004}}</ref>
| stategov = [[Electoral district of Perth|Perth]] (and 41 others)<ref>{{cite web |url=http://www.boundaries.wa.gov.au/2011/Final/QuickLinks/ |archive-url=https://web.archive.org/web/20130227041615/http://www.boundaries.wa.gov.au/2011/Final/QuickLinks/ |url-status= |archive-date=27 February 2013 |title=2011 Electoral Boundaries |accessdate=20 February 2014 |year=2014 |publisher=State of Western Australia – Office of the Electoral Distribution Commissioners |df=dmy-all }}</ref>
| fedgov = [[Division of Perth|Perth]] (and 10 others)
| maxtemp = 24.6
| mintemp = 12.7
| rainfall = 850.0
}}
'''पर्थ''' [[ऑस्ट्रेलिया]] में एगो शहर बाटे।
==संदर्भ==
{{reflist}}
{{Commonscat|Perth, Western Australia}}
{{भूगोल-आधार}}
[[श्रेणी:ऑस्ट्रेलिया]]
[[श्रेणी:ऑस्ट्रेलिया क शहर]]
g5f1ay1j88t7gjculed275tlsb11xhr
वेलिंग्टन
0
13657
815154
786948
2026-11-12T14:14:29Z
SM7Bot
7808
सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815154
wikitext
text/x-wiki
{{Infobox settlement
<!-- Basic info --------------->
|name = Wellington
|native_name = {{small|{{native name|mi|Te Whanganui-a-Tara}}}}
|native_name_lang= Māori
|settlement_type = [[Capital of New Zealand]]
|image_skyline = Wellington montage 2.jpg
|imagesize = 250px
|image_caption = Clockwise from top: Waterfront along [[Wellington Harbour]], [[New Zealand Parliament Buildings|Parliament Buildings]], [[The Bucket Fountain]], [[National Library of New Zealand|National Library]], [[Wellington Cable Car]]
|image_flag =
|image_shield =
|image_blank_emblem = Wellington city council.jpg
|nickname =Windy Wellington, [[Wellywood]]
| pushpin_map = New Zealand#Pacific Ocean
| pushpin_map_caption = Location in [[New Zealand]] & [[Pacific Ocean]]
|pushpin_relief = yes
<!-- Location ------------------>
|coordinates = {{coord|41|17|20|S|174|46|38|E|region:NZ|display=inline}}
|subdivision_type = Country
|subdivision_name = {{NZ}}
|subdivision_type1 = [[Regions of New Zealand|Region]]
|subdivision_type2 = [[Territorial authorities of New Zealand|Territorial authorities]]
|subdivision_name1 = [[Wellington Region|Wellington]]
|subdivision_name2 = [[Wellington City]]<br>[[Lower Hutt|Lower Hutt City]]<br>[[Upper Hutt|Upper Hutt City]]<br>[[Porirua|Porirua City]]
<!-- Politics ----------------->
|established_title1 = Settled by Europeans
|established_date1 = 1839
<!-- Area --------------------->
| founder =
| named_for = [[Arthur Wellesley, 1st Duke of Wellington|A. Wellesley, 1st Duke of Wellington]]
|government_footnotes =
|government_type =
|leader_title = [[Mayor of Wellington City|Mayor]]
|leader_name = [[Justin Lester (politician)|Justin Lester]] ([[New Zealand Labour Party|Labour]])
|total_type = <!-- to set a non-standard label for total area and population rows -->
|area_footnotes =<ref>{{cite web |url=http://www.wellington.govt.nz/aboutwgtn/glance/index.html |title=About Wellington – Facts & Figures |accessdate=5 August 2008 |publisher=Wellington City Council |url-status=dead |archiveurl=https://www.webcitation.org/61A47Z80n?url=http://www.wellington.govt.nz/aboutwgtn/glance/index.html |archivedate=23 August 2011 |df=dmy-all }}</ref>
|area_land_km2 =
|area_water_km2 =
|area_urban_km2 = 442
|area_metro_km2 = 1388
|area_blank1_sq_mi =
<!-- Elevation -------------------------->
|elevation_footnotes = <!--for references: use tags-->
|elevation_m =
|elevation_ft =
|elevation_max_m = 495
|elevation_min_m = 0
|elevation_min_ft =
<!-- Population ----------------------->
|population_as_of = {{NZ population data|||y}}
|population_footnotes =<ref>{{cite web |url=http://www.wellington.govt.nz/plans/annualplan/0708/pdfs/03snapshot.pdf |title=Wellington City Council Annual Plan 2007–2008|accessdate=5 August 2008|archivedate=9 February 2013 |archiveurl=https://web.archive.org/web/20130209140342/http://wellington.govt.nz/plans/annualplan/0708/pdfs/03snapshot.pdf|url-status=}}</ref><ref name="NZ_population_data"/>
|population_urban = {{formatnum:{{NZ population data||y}}|R}}
|population_density_urban_km2 = auto
|population_metro = {{Decimals|{{formatnum:{{NZ population data|Wellington City|y}}|R}}+{{formatnum:{{NZ population data|Porirua City|y}}|R}}+{{formatnum:{{NZ population data|Lower Hutt City|y}}|R}}+{{formatnum:{{NZ population data|Upper Hutt City|y}}|R}}|0}}
|population_density_metro_km2 = auto
|population_blank1_title = [[Demonym]]
|population_blank1 = Wellingtonian
<!-- General information --------------->
|population_note =
|postal_code_type = Postcode(s)
|postal_code = 5010, 5011, 5012, 5013, 5014, 5016, 5018, 5019, 5022, 5024, 5026, 5028, 6011, 6012, 6021, 6022, 6023, 6035, 6037
|area_code = 04
|website = [http://www.wellingtonnz.com/ www.wellingtonnz.com]
|footnotes =
|timezone = [[Time in New Zealand|NZST]]
|utc_offset = +12
|timezone_DST = NZDT
|utc_offset_DST = +13
|coor_type =
|blank_name =Local [[iwi]]
|blank_info =Ngāti Toa Rangatira, [[Ngāti Raukawa]], [[Te Āti Awa]]
}}
'''वेलिंग्टन''' [[न्यूजीलैंड]] में एगो शहर बाटे।
{{clear}}
== संदर्भ ==
{{reflist}}
{{Commonscat|Wellington}}
{{भूगोल-आधार}}
[[श्रेणी:न्यूजीलैंड]]
[[श्रेणी:न्यूजीलैंड क शहर]]
5tvx8adrtjdo0y9i949p40ji0kioi2s
लंदन
0
17922
815162
804266
2026-11-12T14:15:13Z
SM7Bot
7808
सफाई using [[Project:AWB|AWB]]
815162
wikitext
text/x-wiki
{{Infobox settlement
| name = लंदन
<!-- NOTE: Do not add or change images without consensus. -->
|image_skyline = <center><imagemap>
File:London Montage L.jpg|275px|alt=London montage. Clicking on an image in the picture causes the browser to load the appropriate article.
rect 217 123 282 330 [[हेरन टावर]]
rect 322 123 380 330 [[टावर 42]]
rect 441 154 498 330 [[30 सेंट मैरी एक्स]]
rect 505 87 572 330 [[लीडेनहाल बिल्डिंग]]
rect 638 208 699 251 [[विलिस बिल्डिंग (लंदन)|विलिस बिल्डिंग]]
rect 596 251 715 332 [[लायड्स बिल्डिंग]]
rect 740 217 851 275 [[कनारी वार्फ]]
rect 888 168 940 330 [[20 फेंचर्च गली]]
rect 0 330 1200 450 [[लंदन सिटी]]
rect 0 460 330 1420 [[लंदन अंडरग्राउंड]]
rect 330 460 622 1420 [[एलिजाबेथ टावर]]
rect 632 460 1200 951 [[ट्राफल्गर स्क्वायर]]
rect 632 961 1200 1420 [[लंदन आई]]
rect 0 1429 1200 1765 [[टावर ब्रिज]]
rect 0 1765 1200 1809 [[टेम्स नदी]]
</imagemap></center>
| image_caption = '''ऊपर से घड़ी के दिसा में:''' [[सिटी ऑफ लंदन]] आकाशरेखा, [[ट्राफल्गर स्क्वायर]], [[लंदन आई]], [[टावर ब्रिज]] आ एक ठो [[लंदन अंडरग्राउंड]] के आर्च [[एलिजाबेथ टावर]] के सोझा
<!-- maps and coordinates -->
<!--
FIXME remove this later
| image_map = <center>{{Image label begin|image=SVG locator map of England in the United Kingdom (location map scheme).svg|width=180}}{{Image label small|x=0.61|y=1.48|scale=180|text=London [[File:Red pog.svg|link=|6px]]}}{{Image label end}}</center>
-->
| map_caption = यूनाइटेड किंगडम में लंदन के लोकेशन
| coordinates = {{coord|51|30|26|N|0|7|39|W|region:GB|display=inline,title}}
| pushpin_map = United Kingdom#Europe#UK England Southeast <!-- #UK England -->
| subdivision_type = संप्रभु राज्य
| subdivision_name = {{flag|यूनाइटेड किंगडम}}
| subdivision_type1 = देस
| subdivision_type2 = क्षेत्र
| subdivision_name1 = {{flag|इंग्लैंड}}
| subdivision_name2 = ग्रेटर लंदन
| total_type = ग्रेटर लंदन
| area_footnotes =
| area_total_km2 = 1572
| area_metro_km2 =
| area_blank1_title = ग्रेटर लंदन
| area_blank1_km2 = 1737.9
| area_blank2_title = मेट्रो
| area_blank2_km2 = 8382
| elevation_footnotes =<ref name = Elevation>
{{Cite journal
|url = http://www.wunderground.com/cgi-bin/findweather/getForecast?query=pws:IGREATER13
|title = London, United Kingdom Forecast : Weather Underground (weather and elevation at Bloomsbury)
|publisher=The Weather Underground, Inc.
|accessdate =22 August 2014
|format = online
|ref = harv}}</ref>
| elevation_m = 35
| population_total = 8,673,713
| population_as_of = 2015
| population_footnotes =
| population_density_km2 = 5,518
| population_blank1_title = ग्रेटर लंदन
| population_blank1 = 9,787,426
| population_blank2_title = [[लंदन मेट्रो क्षेत्र|मेट्रो]] <ref name="appsso.eurostat.ec.europa.eu show">{{cite web |url= http://appsso.eurostat.ec.europa.eu/nui/show.do?dataset=met_pjanaggr3&lang=en |title= Metropolitan Area Populations |publisher=Eurostat |date= 15 April 2015 |accessdate=8 July 2015}}</ref>
| population_blank2 = 13,879,757
| population_demonym =
| demographics_type1 = जीडीपी/जीवीए{{nobold|(2016)}}
| demographics1_footnotes = <ref>[http://researchbriefings.files.parliament.uk/documents/SN05795/SN05795.pdf Regional and local economic growth statistics], UK Parliament. Retrieved 24 December 2016.</ref><ref>{{cite web|url=http://money.cnn.com/2016/02/26/news/economy/london-rich-europe/index.html|title=This pocket of London is the richest place in Europe... by far|first=Alanna|last=Petroff|date=26 February 2016|publisher=|accessdate=19 January 2017|archive-date=2 February 2017|archive-url=https://web.archive.org/web/20170202000813/http://money.cnn.com/2016/02/26/news/economy/london-rich-europe/index.html|url-status=dead}}</ref><ref>https://www.london.gov.uk/what-we-do/research-and-analysis/economy-and-employment/monitoring-londons-economy</ref>
| demographics1_title1 = कुल
| demographics1_info1 = £890 बिलियन/ $1.2 ट्रिलियन
| demographics1_title2 = प्रति ब्यक्ति
| demographics1_info2 = £119,300 / $162,200
| postal_code_type =
| postal_code =
| area_code =
| blank_name_sec2 = GeoTLD
| blank_info_sec2 = .london
| website = [https://london.gov.uk/ London.gov.uk]
| timezone = [[ग्रीनिच मीन टाइम]]
| utc_offset = ±00:00{{!}}यूटीसी
| timezone_DST = [[ब्रिटिश समर टाइम]]
| utc_offset_DST = +1
| blank_name =
| blank_info =
| blank1_name =
| blank1_info =
}}
'''लंदन''' दुनिया के एक ठो प्रमुख शहर, [[इंग्लैंड]] आ [[यूनाइटेड किंगडम]] के राजधानी आ इहाँ के सभसे ढेर जनसंख्या वाला शहर हवे।<ref>{{cite web |url= http://www.collinsdictionary.com/dictionary/english/london?showCookiePolicy=true |title=London |accessdate=23 September 2014 |publisher=Collins Dictionary |date=n.d.}}</ref><ref>{{cite web |url= https://www.cia.gov/library/publications/the-world-factbook/geos/uk.html |title= The World Factbook |date= 1 February 2014 |publisher= [[सीआइए]] |accessdate= 23 February 2014 |archive-date= 2 January 2021 |archive-url= https://web.archive.org/web/20210102141059/https://www.cia.gov/library/publications/the-world-factbook/geos/uk.html |url-status= dead }}</ref> ग्रेट ब्रिटेन के दक्खिन-पूरबी हिस्सा में टेम्स नदी के तीरे बसल ई शहर लगभग दू हजार साल से प्रमुख बस्ती के रूप में मौजूद बा। रोमन साम्राज्य के लोग द्वारा ई शहर ''लंडनियम'' के नाँव से बसावल गइल रहल।<ref name=london_001>{{cite web|url=http://www.museumoflondon.org.uk/English/EventsExhibitions/Permanent/RomanLondon.htm |date=n.d. |archiveurl=https://web.archive.org/web/20080322235536/http://www.museumoflondon.org.uk/English/EventsExhibitions/Permanent/RomanLondon.htm |title=Roman London |publisher=Museum of London |archivedate=22 मार्च 2008 |url-status=dead}}</ref> लंदन के पुराना मूल क्षेत्र, जेकरा सिटी ऑफ लंदन कहल जाला, लगभग {{convert|1.12|sqmi|adj=on}} बिस्तार के आपन मध्य जुग के इलाका बरकरार रखले बा जे एकरे चारदेवारी में आवे। कम से कम 19वीं सदी के बाद से एह मूल लंदन शहर के इर्द-गिर्द बड़ा साइज के मेट्रो शहर के बिस्तार के "लंदन" नाँव से जानल जाए लागल; एह में मिडिलसेक्स, एस्सेक्स, सर्रे, केंट आ हर्थफोर्डशायर के शामिल कइल जाला,<ref>{{cite news |url= http://www.bbc.co.uk/news/uk-england-23518687 |title= London Government Act: Essex, Kent, Surrey and Middlesex 50 years on |work=BBC News |author= Joshua Fowler |date=5 July 2013}}</ref><ref>{{cite news |url= http://www.bromleytimes.co.uk/news/the_big_debate_is_bromley_in_london_or_kent_1_2266055 |title= The big debate: Is Bromley in London or Kent? |work= Bromley Times |author= Laurence Cawley |date= 1 August 2013 |access-date= 4 June 2017 |archive-date= 19 April 2016 |archive-url= https://web.archive.org/web/20160419220222/http://www.bromleytimes.co.uk/news/the_big_debate_is_bromley_in_london_or_kent_1_2266055 |url-status= dead }}</ref><ref>{{cite news |url= http://www.croydonadvertiser.co.uk/Croydon-London-Croydon-Surrey/story-15224175-detail/story.html |archive-url= https://web.archive.org/web/20140714212138/http://www.croydonadvertiser.co.uk/Croydon-London-Croydon-Surrey/story-15224175-detail/story.html |dead-url= yes |archive-date= 14 July 2014 |title=
Croydon, London or Croydon, Surrey? |work=Croydon Advertiser |author= Joanna Till |date=14 February 2012}}</ref> जेवना सभ से आज के ग्रेटर लंदन बनल बा,<ref name="region">{{cite web|url=http://www.gos.gov.uk/gol/factgol/London/?a=42496 |title=Government Offices for the English Regions, Fact Files: London |publisher=Office for National Statistics |accessdate=4 May 2008 |url-status=dead |archiveurl=https://web.archive.org/web/20080124102915/http://www.gos.gov.uk/gol/factgol/London/?a=42496 |archivedate=24 January 2008 }}</ref><ref name="elcock">{{Cite book |last= Elcock |first=Howard |title=Local Government: Policy and Management in Local Authorities |url= https://archive.org/details/localgovernmentp0000elco |publisher=Routledge |location= London |year=1994 |isbn=978-0-415-10167-7|page=368|ref=harv}}</ref> लंदन के मेयर आ लंदन असेम्बली द्वारा जेकर शासन चले ला।<ref name="politics_uk">{{Cite book |last1=Jones |first1=Bill |last2=Kavanagh |first2=Dennis |last3=Moran |first3=Michael |last4=Norton |first4=Philip |title=Politics UK |url=https://archive.org/details/politicsuk0000unse |publisher=Pearson Education |year=2007 |isbn=978-1-4058-2411-8 |page=[https://archive.org/details/politicsuk0000unse/page/868 868] |ref=harv |location=Harlow}}</ref><ref group="note">The London Mayor is not to be confused with the "Lord Mayor of London" who heads the City of London Corporation, which administers the City of London.</ref><ref>Lieutenancies Act 1997</ref>
{{clear}}
==नोट==
<references group="note"/>
==संदर्भ==
{{Reflist|33em}}
{{भूगोल-आधार}}
{{यूरोप-भू-आधार}}
[[श्रेणी:शहर]]
[[श्रेणी:यूरोप के शहर]]
[[श्रेणी:लंदन]]
9193zbycxzv1pxv46rygkd23rq24h47
815183
815162
2026-11-12T15:20:58Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url= yes → |url-status= using [[Project:AWB|AWB]]
815183
wikitext
text/x-wiki
{{Infobox settlement
| name = लंदन
<!-- NOTE: Do not add or change images without consensus. -->
|image_skyline = <center><imagemap>
File:London Montage L.jpg|275px|alt=London montage. Clicking on an image in the picture causes the browser to load the appropriate article.
rect 217 123 282 330 [[हेरन टावर]]
rect 322 123 380 330 [[टावर 42]]
rect 441 154 498 330 [[30 सेंट मैरी एक्स]]
rect 505 87 572 330 [[लीडेनहाल बिल्डिंग]]
rect 638 208 699 251 [[विलिस बिल्डिंग (लंदन)|विलिस बिल्डिंग]]
rect 596 251 715 332 [[लायड्स बिल्डिंग]]
rect 740 217 851 275 [[कनारी वार्फ]]
rect 888 168 940 330 [[20 फेंचर्च गली]]
rect 0 330 1200 450 [[लंदन सिटी]]
rect 0 460 330 1420 [[लंदन अंडरग्राउंड]]
rect 330 460 622 1420 [[एलिजाबेथ टावर]]
rect 632 460 1200 951 [[ट्राफल्गर स्क्वायर]]
rect 632 961 1200 1420 [[लंदन आई]]
rect 0 1429 1200 1765 [[टावर ब्रिज]]
rect 0 1765 1200 1809 [[टेम्स नदी]]
</imagemap></center>
| image_caption = '''ऊपर से घड़ी के दिसा में:''' [[सिटी ऑफ लंदन]] आकाशरेखा, [[ट्राफल्गर स्क्वायर]], [[लंदन आई]], [[टावर ब्रिज]] आ एक ठो [[लंदन अंडरग्राउंड]] के आर्च [[एलिजाबेथ टावर]] के सोझा
<!-- maps and coordinates -->
<!--
FIXME remove this later
| image_map = <center>{{Image label begin|image=SVG locator map of England in the United Kingdom (location map scheme).svg|width=180}}{{Image label small|x=0.61|y=1.48|scale=180|text=London [[File:Red pog.svg|link=|6px]]}}{{Image label end}}</center>
-->
| map_caption = यूनाइटेड किंगडम में लंदन के लोकेशन
| coordinates = {{coord|51|30|26|N|0|7|39|W|region:GB|display=inline,title}}
| pushpin_map = United Kingdom#Europe#UK England Southeast <!-- #UK England -->
| subdivision_type = संप्रभु राज्य
| subdivision_name = {{flag|यूनाइटेड किंगडम}}
| subdivision_type1 = देस
| subdivision_type2 = क्षेत्र
| subdivision_name1 = {{flag|इंग्लैंड}}
| subdivision_name2 = ग्रेटर लंदन
| total_type = ग्रेटर लंदन
| area_footnotes =
| area_total_km2 = 1572
| area_metro_km2 =
| area_blank1_title = ग्रेटर लंदन
| area_blank1_km2 = 1737.9
| area_blank2_title = मेट्रो
| area_blank2_km2 = 8382
| elevation_footnotes =<ref name = Elevation>
{{Cite journal
|url = http://www.wunderground.com/cgi-bin/findweather/getForecast?query=pws:IGREATER13
|title = London, United Kingdom Forecast : Weather Underground (weather and elevation at Bloomsbury)
|publisher=The Weather Underground, Inc.
|accessdate =22 August 2014
|format = online
|ref = harv}}</ref>
| elevation_m = 35
| population_total = 8,673,713
| population_as_of = 2015
| population_footnotes =
| population_density_km2 = 5,518
| population_blank1_title = ग्रेटर लंदन
| population_blank1 = 9,787,426
| population_blank2_title = [[लंदन मेट्रो क्षेत्र|मेट्रो]] <ref name="appsso.eurostat.ec.europa.eu show">{{cite web |url= http://appsso.eurostat.ec.europa.eu/nui/show.do?dataset=met_pjanaggr3&lang=en |title= Metropolitan Area Populations |publisher=Eurostat |date= 15 April 2015 |accessdate=8 July 2015}}</ref>
| population_blank2 = 13,879,757
| population_demonym =
| demographics_type1 = जीडीपी/जीवीए{{nobold|(2016)}}
| demographics1_footnotes = <ref>[http://researchbriefings.files.parliament.uk/documents/SN05795/SN05795.pdf Regional and local economic growth statistics], UK Parliament. Retrieved 24 December 2016.</ref><ref>{{cite web|url=http://money.cnn.com/2016/02/26/news/economy/london-rich-europe/index.html|title=This pocket of London is the richest place in Europe... by far|first=Alanna|last=Petroff|date=26 February 2016|publisher=|accessdate=19 January 2017|archive-date=2 February 2017|archive-url=https://web.archive.org/web/20170202000813/http://money.cnn.com/2016/02/26/news/economy/london-rich-europe/index.html|url-status=dead}}</ref><ref>https://www.london.gov.uk/what-we-do/research-and-analysis/economy-and-employment/monitoring-londons-economy</ref>
| demographics1_title1 = कुल
| demographics1_info1 = £890 बिलियन/ $1.2 ट्रिलियन
| demographics1_title2 = प्रति ब्यक्ति
| demographics1_info2 = £119,300 / $162,200
| postal_code_type =
| postal_code =
| area_code =
| blank_name_sec2 = GeoTLD
| blank_info_sec2 = .london
| website = [https://london.gov.uk/ London.gov.uk]
| timezone = [[ग्रीनिच मीन टाइम]]
| utc_offset = ±00:00{{!}}यूटीसी
| timezone_DST = [[ब्रिटिश समर टाइम]]
| utc_offset_DST = +1
| blank_name =
| blank_info =
| blank1_name =
| blank1_info =
}}
'''लंदन''' दुनिया के एक ठो प्रमुख शहर, [[इंग्लैंड]] आ [[यूनाइटेड किंगडम]] के राजधानी आ इहाँ के सभसे ढेर जनसंख्या वाला शहर हवे।<ref>{{cite web |url= http://www.collinsdictionary.com/dictionary/english/london?showCookiePolicy=true |title=London |accessdate=23 September 2014 |publisher=Collins Dictionary |date=n.d.}}</ref><ref>{{cite web |url= https://www.cia.gov/library/publications/the-world-factbook/geos/uk.html |title= The World Factbook |date= 1 February 2014 |publisher= [[सीआइए]] |accessdate= 23 February 2014 |archive-date= 2 January 2021 |archive-url= https://web.archive.org/web/20210102141059/https://www.cia.gov/library/publications/the-world-factbook/geos/uk.html |url-status= dead }}</ref> ग्रेट ब्रिटेन के दक्खिन-पूरबी हिस्सा में टेम्स नदी के तीरे बसल ई शहर लगभग दू हजार साल से प्रमुख बस्ती के रूप में मौजूद बा। रोमन साम्राज्य के लोग द्वारा ई शहर ''लंडनियम'' के नाँव से बसावल गइल रहल।<ref name=london_001>{{cite web|url=http://www.museumoflondon.org.uk/English/EventsExhibitions/Permanent/RomanLondon.htm |date=n.d. |archiveurl=https://web.archive.org/web/20080322235536/http://www.museumoflondon.org.uk/English/EventsExhibitions/Permanent/RomanLondon.htm |title=Roman London |publisher=Museum of London |archivedate=22 मार्च 2008 |url-status=dead}}</ref> लंदन के पुराना मूल क्षेत्र, जेकरा सिटी ऑफ लंदन कहल जाला, लगभग {{convert|1.12|sqmi|adj=on}} बिस्तार के आपन मध्य जुग के इलाका बरकरार रखले बा जे एकरे चारदेवारी में आवे। कम से कम 19वीं सदी के बाद से एह मूल लंदन शहर के इर्द-गिर्द बड़ा साइज के मेट्रो शहर के बिस्तार के "लंदन" नाँव से जानल जाए लागल; एह में मिडिलसेक्स, एस्सेक्स, सर्रे, केंट आ हर्थफोर्डशायर के शामिल कइल जाला,<ref>{{cite news |url= http://www.bbc.co.uk/news/uk-england-23518687 |title= London Government Act: Essex, Kent, Surrey and Middlesex 50 years on |work=BBC News |author= Joshua Fowler |date=5 July 2013}}</ref><ref>{{cite news |url= http://www.bromleytimes.co.uk/news/the_big_debate_is_bromley_in_london_or_kent_1_2266055 |title= The big debate: Is Bromley in London or Kent? |work= Bromley Times |author= Laurence Cawley |date= 1 August 2013 |access-date= 4 June 2017 |archive-date= 19 April 2016 |archive-url= https://web.archive.org/web/20160419220222/http://www.bromleytimes.co.uk/news/the_big_debate_is_bromley_in_london_or_kent_1_2266055 |url-status= dead }}</ref><ref>{{cite news |url= http://www.croydonadvertiser.co.uk/Croydon-London-Croydon-Surrey/story-15224175-detail/story.html |archive-url= https://web.archive.org/web/20140714212138/http://www.croydonadvertiser.co.uk/Croydon-London-Croydon-Surrey/story-15224175-detail/story.html |url-status= |archive-date= 14 July 2014 |title=
Croydon, London or Croydon, Surrey? |work=Croydon Advertiser |author= Joanna Till |date=14 February 2012}}</ref> जेवना सभ से आज के ग्रेटर लंदन बनल बा,<ref name="region">{{cite web|url=http://www.gos.gov.uk/gol/factgol/London/?a=42496 |title=Government Offices for the English Regions, Fact Files: London |publisher=Office for National Statistics |accessdate=4 May 2008 |url-status=dead |archiveurl=https://web.archive.org/web/20080124102915/http://www.gos.gov.uk/gol/factgol/London/?a=42496 |archivedate=24 January 2008 }}</ref><ref name="elcock">{{Cite book |last= Elcock |first=Howard |title=Local Government: Policy and Management in Local Authorities |url= https://archive.org/details/localgovernmentp0000elco |publisher=Routledge |location= London |year=1994 |isbn=978-0-415-10167-7|page=368|ref=harv}}</ref> लंदन के मेयर आ लंदन असेम्बली द्वारा जेकर शासन चले ला।<ref name="politics_uk">{{Cite book |last1=Jones |first1=Bill |last2=Kavanagh |first2=Dennis |last3=Moran |first3=Michael |last4=Norton |first4=Philip |title=Politics UK |url=https://archive.org/details/politicsuk0000unse |publisher=Pearson Education |year=2007 |isbn=978-1-4058-2411-8 |page=[https://archive.org/details/politicsuk0000unse/page/868 868] |ref=harv |location=Harlow}}</ref><ref group="note">The London Mayor is not to be confused with the "Lord Mayor of London" who heads the City of London Corporation, which administers the City of London.</ref><ref>Lieutenancies Act 1997</ref>
{{clear}}
==नोट==
<references group="note"/>
==संदर्भ==
{{Reflist|33em}}
{{भूगोल-आधार}}
{{यूरोप-भू-आधार}}
[[श्रेणी:शहर]]
[[श्रेणी:यूरोप के शहर]]
[[श्रेणी:लंदन]]
2e0v9vfwdktkoipugmffwf3clkqjlk6
कनाडा
0
17978
815171
784851
2026-11-12T15:17:16Z
SM7Bot
7808
/* संदर्भ */ सफाई using [[Project:AWB|AWB]]
815171
wikitext
text/x-wiki
{{Infobox country
| common_name = कनाडा
| native_name = Canada
| image_flag = Flag of Canada (Pantone).svg
| alt_flag = Vertical triband (red, white, red) with a red maple leaf in the centre
| image_coat = Royal Coat of arms of Canada.svg
| symbol_type = Royal coat of arms
| national_motto = {{native phrase|la|[[A Mari Usque Ad Mare]]|italics=on}}<br />{{small|(भोजपुरी: "समुंदर से समुंदर ले")}}
| national_anthem = "ओ कनाडा"<br /> <div style="display:inline-block;margin-top:0.4em;">[[File:Fr-Ô Canada.ogg]]</div>
----
| royal_anthem = "गॉड सेव दि क्वीन"<ref>{{cite book|author=D. Michael Jackson|title=The Crown and Canadian Federalism|url=https://books.google.com/books?id=ZcIf46DzpfUC&pg=PA199|date=2013|publisher=Dundurn|isbn=978-1-4597-0989-8|page=199|url-status=live|archiveurl=https://web.archive.org/web/20160412152332/https://books.google.com/books?id=ZcIf46DzpfUC&pg=PA199|archivedate=अप्रैल 12, 2016}}</ref>
| image_map = CAN orthographic.svg
| map_width = 220px
| alt_map = उत्तर अमेरिका के नक्शा पर कनाडा हरियर रंग से
| capital = [[ओटावा]]
| coordinates = {{Coord|45|24|N|75|40|W|type:city}}
| largest_city = [[टोरंटो]]
| official_languages = {{hlist |अंग्रेजी|फ्रेंच}}
| ethnic_groups = {{Collapsible list
| titlestyle = background:transparent;text-align:left;font-weight:normal;font-size:100%;
| title = जातीय जनसांख्यिकी| 74.3% यूरोपियन | 14.5% एशियाई | 5.1% मूल निवासी | 3.4% कैरीबियाई आ लैटिन अमेरिकी | 2.9% अफ़्रीकी | 0.2% ओशेनियाई <ref name=autogenerated1>{{Cite web|url=http://www12.statcan.gc.ca/census-recensement/2016/dp-pd/dt-td/Rp-eng.cfm?LANG=E&APATH=3&DETAIL=0&DIM=0&FL=A&FREE=0&GC=0&GID=0&GK=0&GRP=1&PID=110528&PRID=10&PTYPE=109445&S=0&SHOWALL=0&SUB=0&Temporal=2017&THEME=120&VID=0&VNAMEE=&VNAMEF=|title=2016 Census of Population, Statistics Canada Catalogue no. 98-400-X2016187. "Ethnic Origin (279), Single and Multiple Ethnic Origin Responses (3), Generation Status (4), Age (12) and Sex (3) for the Population in Private Households of Canada, Provinces and Territories, Census Metropolitan Areas and Census Agglomerations, 2016 Census - 25% Sample Data"|last=|first=|date=नवंबर 22, 2017|website=Statistics Canada|archive-url=|archive-date=|dead-url=|access-date=|quote=Data is an aggregate of single and multiple responses. Total ethnic origin responses are the sum of single and multiple responses for each ethnic origin. Total response counts indicate the number of persons who reported a specified ethnic origin, either as their only origin or in addition to one or more other ethnic origins. The sum of all ethnic origin responses is greater than the total population estimate due to the reporting of multiple origins.}}</ref> }}
| government_type = संघीय संसदीय संबैधानिक राजतंत्र
| leader_title1 = राजा (मोनार्क)
| leader_name1 = [[चार्ल्स III]] <br />({{nowrap|[[:en: Charles III]]}})
| leader_title2 = गवर्नर जनरल
| leader_name2 = मैरी सिमोन
| leader_title3 = प्रधानमंत्री
| leader_name3 = [[मार्क कार्नी]] <br /> ({{nowrap|[[:en:Mark Carney]]}})
| leader_title4 =
| leader_name4 =
| legislature =
| upper_house =
| lower_house =
| sovereignty_type = आजादी
| sovereignty_note = [[यूनाइटेड किंगडम]] से
| established_event1 = कन्फेडरेशन
| established_date1 = 1 जुलाई 1867
| established_event2 = वेस्टमिन्स्टर स्तैट्यूट
| established_date2 = 11 दिसंबर 1931
| established_event3 = अलगाव
| established_date3 = 17 अप्रैल 1982
| area_km2 = 9,984,670
| area_label = कुल रकबा
| area_rank = 2सरा
| area_sq_mi = 3,854,085 <!--Do not remove per [[WP:MOSNUM]]-->
| percent_water = 8.92
| area_label2 = कुल जमीनी
| area_data2 = {{convert|9093507|km2|sqmi|abbr=on}}
| population_census = 35,151,728<ref>{{cite web |author=Statistics Canada |title=Population size and growth in Canada: Key results from the 2016 Census |date=February 8, 2017 |url=http://www.statcan.gc.ca/daily-quotidien/170208/dq170208a-eng.htm |accessdate=February 8, 2017 |url-status=live |archiveurl=https://web.archive.org/web/20170210133245/http://www.statcan.gc.ca/daily-quotidien/170208/dq170208a-eng.htm |archivedate=February 10, 2017}}</ref>
| population_census_year = 2016
| population_census_rank = 38वाँ
| population_density_km2 = 3.92
| population_density_sq_mi = 10.15 <!--Do not remove per [[WP:MOSNUM]]-->
| population_density_rank = 228वाँ
| GDP_PPP = {{increase}} {{nowrap|$2.027 trillion<!--end nowrap:-->}}<ref name="IMFWEOCA">{{cite web |date=October 2021 |title=World Economic Outlook Database |url=https://www.imf.org/en/Publications/WEO/weo-database/2021/October/weo-report?c=156,&s=NGDP_RPCH,NGDPD,PPPGDP,NGDPRPPPPC,NGDPDPC,PPPPC,&sy=2015&ey=2026&ssm=0&scsm=1&scc=0&ssd=1&ssc=0&sic=0&sort=country&ds=.&br=1 |access-date=April 6, 2020 |publisher=[[International Monetary Fund]]}}</ref>
| GDP_PPP_year = 2021
| GDP_PPP_rank = 15वाँ
| GDP_PPP_per_capita = {{increase}} $53,089<ref name="IMFWEOCA" />
| GDP_PPP_per_capita_rank = 24th
| GDP_nominal = {{increase}} {{nowrap|$2.016{{nbsp}}trillion}}<ref name="IMFWEOCA" />
| GDP_nominal_year = 2021
| GDP_nominal_rank = 9वाँ
| GDP_nominal_per_capita = {{increase}} $52,791<ref name="IMFWEOCA" />
| GDP_nominal_per_capita_rank = 15वाँ
| Gini = 30.3 <!--number only-->
| Gini_year = 2018
| Gini_change = decrease<!--increase/decrease/steady-->
| Gini_ref = <ref>{{cite web |title=Income inequality |url=https://data.oecd.org/chart/5OdN |access-date=July 16, 2021 |publisher=[[OECD]] |archive-date=February 6, 2020 |archive-url=https://web.archive.org/web/20200206153745/https://data.oecd.org/chart/5OdN |url-status=dead }}</ref>
| HDI = 0.929 <!--number only-->
| HDI_year = 2019<!-- Please use the year to which the data refers, not the publication year-->
| HDI_change = increase<!--increase/decrease/steady-->
| HDI_ref = <ref name="UNHDR">{{cite web |year=2020 |title=Human Development Report 2020 |url=http://hdr.undp.org/sites/default/files/hdr2020.pdf |publisher=[[United Nations Development Programme]] |language=en |access-date=December 15, 2020}}</ref>
| HDI_rank = 16वाँ
| currency = कनाडाई डालर ($)
| currency_code = CAD
| utc_offset = −3.5 to −8
| utc_offset_DST = −2.5 to −7
| date_format = yyyy-mm-dd ([[Anno Domini|AD]])<ref>[[ISO 8601]] is the official date format of the Government of Canada: {{cite book|last1=Translation Bureau|first1=[[Public Works and Government Services Canada]]|title=The Canadian style: A guide to writing and editing|date=1997|publisher=Dundurn Press|location=Toronto|isbn=978-1-55002-276-6|edition=Rev.|chapter=5.14: Dates|page=97|url=http://www.btb.termiumplus.gc.ca/tcdnstyl-chap?lang=eng&lettr=chapsect5&info0=5.14}} The dd/mm/yy and mm/dd/yy formats also remain in common use; see [[Date and time notation in Canada]].</ref>
| drives_on = दहिने
| calling_code = +1
| cctld = .ca
| area_magnitude = 1 E12
}}
'''कनाडा''' या '''कैनेडा''' (अंग्रेजी:Canada) [[उत्तर अमेरिका]] [[महादीप]] में सभसे बड़हन आ बिस्व के दुसरा सभसे बड़ा देस बाटे। एकर दस गो प्रांत आ तीन गो राज्यक्षेत्र [[अटलांटिक महासागर]] से ले के [[प्रशांत महासागर]] ले आ उत्तर ओर [[आर्कटिक महासागर]] ले बिस्तार लिहले बाड़ें; ई कुल {{convert|9.98|e6km2|e6sqmi|2|abbr=off}} क्षेत्रफल के हिसाब से दुनिया के दुसरा सभसे बड़ देस बाटे। [[अमेरिका]] के साथे एकर दक्खिनी आ पच्छिमी सीमा 8,891 किलोमीटर (5,525 मील) के बाटे आ दुनिया के सभसे लमहर द्वि-राष्ट्रीय जमीनी सीमा बाटे। कनाडा के राजधानी [[ओटावा]] बाटे आ एकर तीन गो सभसे बड़ महानगरीय इलाका [[टोरंटो]], [[मॉन्ट्रियल]] आ [[वैंकूवर]] बाड़ें।
हजारन साल से जवना इलाका में अब कनाडा बा, आदिवासी लोग (इंडीजिनस लोग) लगातार बसल रहल बा। 16वीं सदी से शुरू हो के ब्रिटिश आ फ्रांसीसी अभियान सभ एह इलाका में खोज कइल आ बाद में अटलांटिक तट के किनारे बस गइल। बिबिध सशस्त्र संघर्ष सभ के परिणाम के रूप में फ्रांस 1763 में उत्तरी अमेरिका में आपन लगभग सगरी उपनिवेश सभ के सौंप दिहलस। 1867 में, कन्फेडरेशन के माध्यम से तीन गो ब्रिटिश उत्तरी अमेरिकी उपनिवेश सभ के मिलन के साथ, कनाडा के गठन चार गो प्रांत सभ के संघीय डोमिनियन के रूप में भइल। एकरे बाद प्रांत आ इलाका सभ के बढ़ती आ [[यूनाइटेड किंगडम]] से स्वायत्तता बढ़ावे के प्रक्रिया शुरू भइल। एह बिस्तार वाला स्वायत्तता के वेस्टमिंस्टर के बिधान 1931 द्वारा रेखांकित कइल गइल आ एकर पराकाष्ठा कनाडा एक्ट 1982 में भइल जेह में यूनाइटेड किंगडम के संसद पर बचल-खुचल कानूनी निर्भरता के अवशेष के समाप्त क दिहल गइल।
कनाडा एगो संसदीय लोकतंत्र हवे आ वेस्टमिंस्टर परंपरा में एगो संवैधानिक राजतंत्र हवे। देश के सरकार के मुखिया प्रधानमंत्री होलें - जे चुनल गइल हाउस ऑफ कॉमन्स के बिस्वास हासिल करे के बाद, कमान संभाले के क्षमता के कारण एह पद पर नियुक्त होखे लें - आ इनहन लोग के नियुक्ति गवर्नर जनरल द्वारा कइल जाला, जे राजा के प्रतिनिधित्व करे लें, जे राज्य के मुखिया के रूप में काम करे लें। ई देश राष्ट्रमंडल क्षेत्र हवे आ संघीय स्तर पर आधिकारिक तौर पर दुभाषी (अंग्रेजी-फ्रेंच) बा। सरकारी पारदर्शिता, नागरिक स्वतंत्रता, जीवन के गुणवत्ता, आर्थिक स्वतंत्रता, आ शिक्षा के अंतर्राष्ट्रीय माप में ई सभसे ऊपर के कटेगरी में आवे ला। ई दुनिया के सभसे जातीय रूप से बिबिधता वाला आ बहुसांस्कृतिक देस सभ में से एक हवे, ई कई अन्य देस सभ से बड़हन पैमाना पर आप्रवासन के उपज हवे। अमेरिका के साथे कनाडा के लंबा आ जटिल संबंध के ओकर अर्थव्यवस्था आ संस्कृति पर काफी असर पड़ल बा|
एगो बहुत बिकसित देस, कनाडा के बिस्व स्तर पर 24वाँ सभसे ढेर नॉमिनल प्रति ब्यक्ति आय रैंकिंग, आ [[मानव बिकास सूचकांक]] में सोलहवाँ सभसे ढेर रैंकिंग बाटे। एकर उन्नत अर्थब्यवस्था दुनिया के आठवाँ सभसे बड़ अर्थब्यवस्था बाटे आ मुख्य रूप से एकरे भरपूर प्राकृतिक संसाधन आ बिकसित अंतर्राष्ट्रीय ब्यापार नेटवर्क सभ पर निर्भर बाटे। कनाडा कई गो प्रमुख अंतर्राष्ट्रीय आ अंतरसरकारी संस्थान भा समूह सभ के हिस्सा हवे जेह में [[संयुक्त राष्ट्र]], [[नाटो]], जी-7, दस के समूह, जी-20, आर्थिक सहयोग आ बिकास खातिर संगठन (OECD), बिस्व व्यापार संगठन (WTO) सामिल बाड़ें। इनहन के अलावा ई राष्ट्रमंडल, आर्कटिक परिषद, संगठन इंटरनेशनल डे ला फ्रेंकोफोनी, एशिया-प्रशांत आर्थिक सहयोग मंच, आ अमेरिकी राज्यन के संगठन के हिस्सा बाटे।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{भूगोल-आधार}}
[[श्रेणी:उत्तर अमेरिका के देस]]
[[श्रेणी:कनाडा| ]]
[[श्रेणी:यूनाइटेड नेशंस के सदस्य देस]]
[[श्रेणी:नाटो के सदस्य देश]]
736ibp06a4pv0o2mapevx2qmyvbtn4n
815315
815171
2026-11-12T16:47:11Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815315
wikitext
text/x-wiki
{{Infobox country
| common_name = कनाडा
| native_name = Canada
| image_flag = Flag of Canada (Pantone).svg
| alt_flag = Vertical triband (red, white, red) with a red maple leaf in the centre
| image_coat = Royal Coat of arms of Canada.svg
| symbol_type = Royal coat of arms
| national_motto = {{native phrase|la|[[A Mari Usque Ad Mare]]|italics=on}}<br />{{small|(भोजपुरी: "समुंदर से समुंदर ले")}}
| national_anthem = "ओ कनाडा"<br /> <div style="display:inline-block;margin-top:0.4em;">[[File:Fr-Ô Canada.ogg]]</div>
----
| royal_anthem = "गॉड सेव दि क्वीन"<ref>{{cite book|author=D. Michael Jackson|title=The Crown and Canadian Federalism|url=https://books.google.com/books?id=ZcIf46DzpfUC&pg=PA199|date=2013|publisher=Dundurn|isbn=978-1-4597-0989-8|page=199|url-status=live|archiveurl=https://web.archive.org/web/20160412152332/https://books.google.com/books?id=ZcIf46DzpfUC&pg=PA199|archivedate=अप्रैल 12, 2016}}</ref>
| image_map = CAN orthographic.svg
| map_width = 220px
| alt_map = उत्तर अमेरिका के नक्शा पर कनाडा हरियर रंग से
| capital = [[ओटावा]]
| coordinates = {{Coord|45|24|N|75|40|W|type:city}}
| largest_city = [[टोरंटो]]
| official_languages = {{hlist |अंग्रेजी|फ्रेंच}}
| ethnic_groups = {{Collapsible list
| titlestyle = background:transparent;text-align:left;font-weight:normal;font-size:100%;
| title = जातीय जनसांख्यिकी| 74.3% यूरोपियन | 14.5% एशियाई | 5.1% मूल निवासी | 3.4% कैरीबियाई आ लैटिन अमेरिकी | 2.9% अफ़्रीकी | 0.2% ओशेनियाई <ref name=autogenerated1>{{Cite web|url=http://www12.statcan.gc.ca/census-recensement/2016/dp-pd/dt-td/Rp-eng.cfm?LANG=E&APATH=3&DETAIL=0&DIM=0&FL=A&FREE=0&GC=0&GID=0&GK=0&GRP=1&PID=110528&PRID=10&PTYPE=109445&S=0&SHOWALL=0&SUB=0&Temporal=2017&THEME=120&VID=0&VNAMEE=&VNAMEF=|title=2016 Census of Population, Statistics Canada Catalogue no. 98-400-X2016187. "Ethnic Origin (279), Single and Multiple Ethnic Origin Responses (3), Generation Status (4), Age (12) and Sex (3) for the Population in Private Households of Canada, Provinces and Territories, Census Metropolitan Areas and Census Agglomerations, 2016 Census - 25% Sample Data"|last=|first=|date=नवंबर 22, 2017|website=Statistics Canada|archive-url=|archive-date=|url-status=|access-date=|quote=Data is an aggregate of single and multiple responses. Total ethnic origin responses are the sum of single and multiple responses for each ethnic origin. Total response counts indicate the number of persons who reported a specified ethnic origin, either as their only origin or in addition to one or more other ethnic origins. The sum of all ethnic origin responses is greater than the total population estimate due to the reporting of multiple origins.}}</ref> }}
| government_type = संघीय संसदीय संबैधानिक राजतंत्र
| leader_title1 = राजा (मोनार्क)
| leader_name1 = [[चार्ल्स III]] <br />({{nowrap|[[:en: Charles III]]}})
| leader_title2 = गवर्नर जनरल
| leader_name2 = मैरी सिमोन
| leader_title3 = प्रधानमंत्री
| leader_name3 = [[मार्क कार्नी]] <br /> ({{nowrap|[[:en:Mark Carney]]}})
| leader_title4 =
| leader_name4 =
| legislature =
| upper_house =
| lower_house =
| sovereignty_type = आजादी
| sovereignty_note = [[यूनाइटेड किंगडम]] से
| established_event1 = कन्फेडरेशन
| established_date1 = 1 जुलाई 1867
| established_event2 = वेस्टमिन्स्टर स्तैट्यूट
| established_date2 = 11 दिसंबर 1931
| established_event3 = अलगाव
| established_date3 = 17 अप्रैल 1982
| area_km2 = 9,984,670
| area_label = कुल रकबा
| area_rank = 2सरा
| area_sq_mi = 3,854,085 <!--Do not remove per [[WP:MOSNUM]]-->
| percent_water = 8.92
| area_label2 = कुल जमीनी
| area_data2 = {{convert|9093507|km2|sqmi|abbr=on}}
| population_census = 35,151,728<ref>{{cite web |author=Statistics Canada |title=Population size and growth in Canada: Key results from the 2016 Census |date=February 8, 2017 |url=http://www.statcan.gc.ca/daily-quotidien/170208/dq170208a-eng.htm |accessdate=February 8, 2017 |url-status=live |archiveurl=https://web.archive.org/web/20170210133245/http://www.statcan.gc.ca/daily-quotidien/170208/dq170208a-eng.htm |archivedate=February 10, 2017}}</ref>
| population_census_year = 2016
| population_census_rank = 38वाँ
| population_density_km2 = 3.92
| population_density_sq_mi = 10.15 <!--Do not remove per [[WP:MOSNUM]]-->
| population_density_rank = 228वाँ
| GDP_PPP = {{increase}} {{nowrap|$2.027 trillion<!--end nowrap:-->}}<ref name="IMFWEOCA">{{cite web |date=October 2021 |title=World Economic Outlook Database |url=https://www.imf.org/en/Publications/WEO/weo-database/2021/October/weo-report?c=156,&s=NGDP_RPCH,NGDPD,PPPGDP,NGDPRPPPPC,NGDPDPC,PPPPC,&sy=2015&ey=2026&ssm=0&scsm=1&scc=0&ssd=1&ssc=0&sic=0&sort=country&ds=.&br=1 |access-date=April 6, 2020 |publisher=[[International Monetary Fund]]}}</ref>
| GDP_PPP_year = 2021
| GDP_PPP_rank = 15वाँ
| GDP_PPP_per_capita = {{increase}} $53,089<ref name="IMFWEOCA" />
| GDP_PPP_per_capita_rank = 24th
| GDP_nominal = {{increase}} {{nowrap|$2.016{{nbsp}}trillion}}<ref name="IMFWEOCA" />
| GDP_nominal_year = 2021
| GDP_nominal_rank = 9वाँ
| GDP_nominal_per_capita = {{increase}} $52,791<ref name="IMFWEOCA" />
| GDP_nominal_per_capita_rank = 15वाँ
| Gini = 30.3 <!--number only-->
| Gini_year = 2018
| Gini_change = decrease<!--increase/decrease/steady-->
| Gini_ref = <ref>{{cite web |title=Income inequality |url=https://data.oecd.org/chart/5OdN |access-date=July 16, 2021 |publisher=[[OECD]] |archive-date=February 6, 2020 |archive-url=https://web.archive.org/web/20200206153745/https://data.oecd.org/chart/5OdN |url-status=dead }}</ref>
| HDI = 0.929 <!--number only-->
| HDI_year = 2019<!-- Please use the year to which the data refers, not the publication year-->
| HDI_change = increase<!--increase/decrease/steady-->
| HDI_ref = <ref name="UNHDR">{{cite web |year=2020 |title=Human Development Report 2020 |url=http://hdr.undp.org/sites/default/files/hdr2020.pdf |publisher=[[United Nations Development Programme]] |language=en |access-date=December 15, 2020}}</ref>
| HDI_rank = 16वाँ
| currency = कनाडाई डालर ($)
| currency_code = CAD
| utc_offset = −3.5 to −8
| utc_offset_DST = −2.5 to −7
| date_format = yyyy-mm-dd ([[Anno Domini|AD]])<ref>[[ISO 8601]] is the official date format of the Government of Canada: {{cite book|last1=Translation Bureau|first1=[[Public Works and Government Services Canada]]|title=The Canadian style: A guide to writing and editing|date=1997|publisher=Dundurn Press|location=Toronto|isbn=978-1-55002-276-6|edition=Rev.|chapter=5.14: Dates|page=97|url=http://www.btb.termiumplus.gc.ca/tcdnstyl-chap?lang=eng&lettr=chapsect5&info0=5.14}} The dd/mm/yy and mm/dd/yy formats also remain in common use; see [[Date and time notation in Canada]].</ref>
| drives_on = दहिने
| calling_code = +1
| cctld = .ca
| area_magnitude = 1 E12
}}
'''कनाडा''' या '''कैनेडा''' (अंग्रेजी:Canada) [[उत्तर अमेरिका]] [[महादीप]] में सभसे बड़हन आ बिस्व के दुसरा सभसे बड़ा देस बाटे। एकर दस गो प्रांत आ तीन गो राज्यक्षेत्र [[अटलांटिक महासागर]] से ले के [[प्रशांत महासागर]] ले आ उत्तर ओर [[आर्कटिक महासागर]] ले बिस्तार लिहले बाड़ें; ई कुल {{convert|9.98|e6km2|e6sqmi|2|abbr=off}} क्षेत्रफल के हिसाब से दुनिया के दुसरा सभसे बड़ देस बाटे। [[अमेरिका]] के साथे एकर दक्खिनी आ पच्छिमी सीमा 8,891 किलोमीटर (5,525 मील) के बाटे आ दुनिया के सभसे लमहर द्वि-राष्ट्रीय जमीनी सीमा बाटे। कनाडा के राजधानी [[ओटावा]] बाटे आ एकर तीन गो सभसे बड़ महानगरीय इलाका [[टोरंटो]], [[मॉन्ट्रियल]] आ [[वैंकूवर]] बाड़ें।
हजारन साल से जवना इलाका में अब कनाडा बा, आदिवासी लोग (इंडीजिनस लोग) लगातार बसल रहल बा। 16वीं सदी से शुरू हो के ब्रिटिश आ फ्रांसीसी अभियान सभ एह इलाका में खोज कइल आ बाद में अटलांटिक तट के किनारे बस गइल। बिबिध सशस्त्र संघर्ष सभ के परिणाम के रूप में फ्रांस 1763 में उत्तरी अमेरिका में आपन लगभग सगरी उपनिवेश सभ के सौंप दिहलस। 1867 में, कन्फेडरेशन के माध्यम से तीन गो ब्रिटिश उत्तरी अमेरिकी उपनिवेश सभ के मिलन के साथ, कनाडा के गठन चार गो प्रांत सभ के संघीय डोमिनियन के रूप में भइल। एकरे बाद प्रांत आ इलाका सभ के बढ़ती आ [[यूनाइटेड किंगडम]] से स्वायत्तता बढ़ावे के प्रक्रिया शुरू भइल। एह बिस्तार वाला स्वायत्तता के वेस्टमिंस्टर के बिधान 1931 द्वारा रेखांकित कइल गइल आ एकर पराकाष्ठा कनाडा एक्ट 1982 में भइल जेह में यूनाइटेड किंगडम के संसद पर बचल-खुचल कानूनी निर्भरता के अवशेष के समाप्त क दिहल गइल।
कनाडा एगो संसदीय लोकतंत्र हवे आ वेस्टमिंस्टर परंपरा में एगो संवैधानिक राजतंत्र हवे। देश के सरकार के मुखिया प्रधानमंत्री होलें - जे चुनल गइल हाउस ऑफ कॉमन्स के बिस्वास हासिल करे के बाद, कमान संभाले के क्षमता के कारण एह पद पर नियुक्त होखे लें - आ इनहन लोग के नियुक्ति गवर्नर जनरल द्वारा कइल जाला, जे राजा के प्रतिनिधित्व करे लें, जे राज्य के मुखिया के रूप में काम करे लें। ई देश राष्ट्रमंडल क्षेत्र हवे आ संघीय स्तर पर आधिकारिक तौर पर दुभाषी (अंग्रेजी-फ्रेंच) बा। सरकारी पारदर्शिता, नागरिक स्वतंत्रता, जीवन के गुणवत्ता, आर्थिक स्वतंत्रता, आ शिक्षा के अंतर्राष्ट्रीय माप में ई सभसे ऊपर के कटेगरी में आवे ला। ई दुनिया के सभसे जातीय रूप से बिबिधता वाला आ बहुसांस्कृतिक देस सभ में से एक हवे, ई कई अन्य देस सभ से बड़हन पैमाना पर आप्रवासन के उपज हवे। अमेरिका के साथे कनाडा के लंबा आ जटिल संबंध के ओकर अर्थव्यवस्था आ संस्कृति पर काफी असर पड़ल बा|
एगो बहुत बिकसित देस, कनाडा के बिस्व स्तर पर 24वाँ सभसे ढेर नॉमिनल प्रति ब्यक्ति आय रैंकिंग, आ [[मानव बिकास सूचकांक]] में सोलहवाँ सभसे ढेर रैंकिंग बाटे। एकर उन्नत अर्थब्यवस्था दुनिया के आठवाँ सभसे बड़ अर्थब्यवस्था बाटे आ मुख्य रूप से एकरे भरपूर प्राकृतिक संसाधन आ बिकसित अंतर्राष्ट्रीय ब्यापार नेटवर्क सभ पर निर्भर बाटे। कनाडा कई गो प्रमुख अंतर्राष्ट्रीय आ अंतरसरकारी संस्थान भा समूह सभ के हिस्सा हवे जेह में [[संयुक्त राष्ट्र]], [[नाटो]], जी-7, दस के समूह, जी-20, आर्थिक सहयोग आ बिकास खातिर संगठन (OECD), बिस्व व्यापार संगठन (WTO) सामिल बाड़ें। इनहन के अलावा ई राष्ट्रमंडल, आर्कटिक परिषद, संगठन इंटरनेशनल डे ला फ्रेंकोफोनी, एशिया-प्रशांत आर्थिक सहयोग मंच, आ अमेरिकी राज्यन के संगठन के हिस्सा बाटे।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{भूगोल-आधार}}
[[श्रेणी:उत्तर अमेरिका के देस]]
[[श्रेणी:कनाडा| ]]
[[श्रेणी:यूनाइटेड नेशंस के सदस्य देस]]
[[श्रेणी:नाटो के सदस्य देश]]
1yktq0gg6hlcrfs6e92aqgfu3gq4voz
फिलिम
0
22659
815340
814250
2026-11-13T05:06:18Z
Khushwaha
41300
/* growthexperiments-addlink-summary-summary:2|0|0 */
815340
wikitext
text/x-wiki
'''फिलिम''' <small>''({{Lang|en|[[:en:Film|Film]]}})''</small> हिंदी में "चलचित्र" या "सिनेमा", अंग्रेजी में "मूवी" <small>("Moovies")</small> एगो अइसन चीज बा जेवन एक की बाद एक खींचल कय गो फोटो के हाली-हाली देखावे के चलते मूल दृश्य के दोबारा चलत-फिरत रूप में देखावे के काम करे ले। फ़िल्म (Film) वास्तव में उ रील के कहल जाला जवना पर कवनो चित्र चाहे चलचित्र अंकित होला, ई [[कैमरा]] में प्रयोग करे खाती प्रकाश के प्रति संबेदनशील [[पायस]] आदि पोतल कार्बन प्लास्टिक आदि के समिश्रण से बनल पातर लचकदार पट्टी नियन होला जवना प चित्र चाहे चलचित्र कैमरा से अंकित कइल जाला। एकरा पर तेज प्रकाश के किरण परला प चित्र आगे परदा प दिखाई देला। यदि एक निमेष (आदमी के एक बार आंखि झपके के समय) में 50 गो से ज्यादा चित्र एक साथ देखावल जाय त चित्र में चित्रित चरित्र गतिमान लउके लागि लोग [[मनोरंजन]] खाती एकरा के देखे जात रहन आ सामान्य बोल चाल के भाषा में फिलिम कहे लागले।
==फिलिम के इतिहास==
{{मुख्य|फिलिम के इतिहास}}
[[File:Muybridge race horse animated.gif|left|thumb|300px|कबो कबो 1878 में बनावल ''[[:en:Sallie Gardner at a Gallop|Sallie Gardner at a Gallop]]'' from 1878 के पहिला फिलिम मानल जाला]]
आदम काल में मानव आपन छाया जल में देखि के समय बितावत रहे. कबो अपना चेहरा पर फेंड के पतई मिस के हरियर रग पोतत रहे त कबो जरल पतई के करिखा पोत के अपना के जल में निहारत रहे आ मनोरंजन करत रहे। आपन चेहरा देखे के चाहत आदमी के "सीसा" के खोज करे खाती प्रेरित कइलस।बतावल जाला की सीसा के खोज 2500 बरीस ई. पु. मेसोपोटामिया में बनल रहे लेकिन ई सब सीसा छोट आकर के रहे जवना के सीसा बनावे के प्रयास मात्र कहल जा सकत रहे। बाद में लगभग 1500 बरीस ई. पु. मिश्र में सीसा बने लागल रहे। फ़ोटो छवि बनावे में सक्षम पहिला हाली कैमरा से पहले ई 1827 में एगो करिआ कपडा ओढ़ाके एगो [[लकड़ी]] के डिब्बा के तल में एक फोटोग्राफिक प्लेट डाल के प्रयोग कइले रहन जवन Nicephore Niepce द्वारा आविष्कार कइल गइल रहे। एह प्रकार स्थिर चित्र खिचे के सुरुआत भइल रहे। बाद में एहि प्रक़र के कैमरा में डोरा बंधी के दौड़त घोडा के चित्र खिचे के प्रयाश कइल गइल ई प्रयास सफल भइल बाद में 1867 ई में अमेरिका में चलचित्र खिचे वाली मशीन जवना के नाम "जूपराक्सीस्कोप" रहे से गतिमान चित्र खिचल गइल रहे ओकरा बाद बहुत तेजी से यह क्षेत्र में बिकाश भइल जापान जर्मनी चाइना भारत चारु ओर बिभिन्न प्रकार के चलचित्र कैमरा और चलचित्र बनावे वाली कंपनी बाजार में आगइलस |1862 ई में सीसा के टुकड़ा प फोटो सटा के लेंस के सामने से चले वाला छोट मशीन बन गइल रहे। लोग हर पार्टी आदि में एकरा के देखत आ मनोरंजन करत रहे एकरा के "जादू के लालटेन "कहल जात रहे | John Ayrton एगो Thaumatrope नाम के यंत्र बनवले रहन जेकरा में घोडा आ धुड़सवार के चलत चित्र लउकत रहे। सन् 1885 में दू आदमी George-Eastman आ William H. Walker फिलिम के पहिला रील के बिकास कइले ई जिलेटिन पायस पायस के बनल रहे। बाद में स. 1902 में एहि रील के प्रयोग कईके "चन्द्र यात्रा " के फिलिम बनल रहे। फेन 1903 ई में निर्देशक तथा कैमरामैन Edwin S. Porter एगो ट्रेन डकैती के सच्चा घटना प आधारित 10 मिनट के चलचित्र बनवले रहन जवना के नाम रहे "ग्रेट ट्रैन रॉबरी"। 1905 में पहिला ब्यवसायिक फिलिम बनल जवना के नाम रहे 5 सेंट मूवीज़ थियेटर। एकरा बाद 1907 से बहुत अंग्रेजी फिलिम बनली स। भारत में सं 1896 में पहिला Lumiere Brothers से बम्बई नाम के कला चित्रण भइल रहे। भारतीय सिनेमा में दादा साहेब (देवराम सखाराम भटवडेकर ) के प्रयास के अग्रगण्य मानल जाला। आज भी सिनेमा जगत में दादा एगो सम्मान के शब्द मानल जाला। सं 1897 में हीरालाल सेन द्वारा निर्देशित फिलिम "फारस के फूल " बहुत सफल मानल गइल।
==प्रभाव==
'''फिलिम के महत्व'''
* नैतिक शिक्षा खाती
* स्वस्थ मनोरंज खाती
* कला के बिकाश खाती
* देश के अर्थ ब्यवस्था में उठान खाती
* बिदेशी मुद्रा के अध्यागमन खाती
* समाज में उचित सन्देश खाती
* इतिहास खाती
'''फिलिम के दुष्प्रभाव'''
* अनावश्यक फैसन प्रसार
* असामाजिक हत्या अपराध आदि के प्रसार
* नवयुवक में गलत शिक्षा के प्रसार
==बाहरी कड़ी==
* [http://www.allmovie.com Allmovie] – Information on films: actors, directors, biographies, reviews, cast and production credits, box office sales, and other movie data.
* [http://www.filmsite.org Film Site] – Reviews of classic films
* {{dmoz|Arts/Movies/|Movies}}
* [http://www.rottentomatoes.com Rottentomatoes.com] – Movie reviews, previews, forums, photos, cast info, and more.
* [http://imdb.com/ The Internet Movie Database (IMDb)] – Information on current and historical films and cast listings.
<!--NEW LINKS SHOULD NOT BE ADDED WITHOUT PRIOR DISCUSSION ON TALK PAGE AND WILL BE DELETED OTHERWISE-->
{{Authority control}}
[[श्रेणी:कला मीडिया]]
[[श्रेणी:सिनेमा]]
ath3zze5wu5yjkb0zqs8jhwqe5ari5x
टेम्पलेट:Taxobox/species
10
23712
815295
562739
2026-11-12T15:39:50Z
SM7
3953
सुधार कइल गइल
815295
wikitext
text/x-wiki
{{#if:{{{2|}}}|
! colspan = 2 {{!}} <div style = "text-align: center">[[संरक्षण स्थिति]]</div>
{{!}}-
{{!}} colspan = 2 {{!}} <div style = "text-align: center">{{#if:{{{1|}}}|{{#switch:{{{1}}}<!--
*************
* IUCN2.3 *
*************
--> | iucn2.3
| IUCN2.3 = {{#switch:{{{2}}}
| EX
| ex = [[file:Status iucn2.3 EX.svg|frameless|link=|alt=]]<br />[[बिलुप्त प्रजाति|बिलुप्त]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट बिलुप्त प्रजाति]] | }}
| EW
| ew = [[file:Status iucn2.3 EW.svg|frameless|link=|alt=]]<br />[[बन में से बिलुप्त प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट बन में से बिलुप्त प्रजाति]] | }}
| CR
| cr = [[file:Status iucn2.3 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति|चिंताजनक रूप से खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] | }}
| EN
| en = [[file:Status iucn2.3 EN.svg|frameless|link=|alt=]]<br />[[खतरा में प्रजाति|खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट खतरा में प्रजाति]] | }}
| VU
| vu = [[file:Status iucn2.3 VU.svg|frameless|link=|alt=]]<br />[[कुछ खतरा में प्रजाति|कुछ खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट कुछ खतरा में प्रजाति]] | }}
| LR
| lr = [[file:Status iucn2.3 blank.svg|link = |alt = ]]<br />Lower risk {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:अवैध संरक्षण स्थिति]] | }}
| CD
| cd
| LR/CD
| lr/CD
| LR/cd
| lr/cd = [[file:Status iucn2.3 CD.svg|frameless|link=|alt=]]<br />[[संरक्षण पर निर्भर प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट संरक्षण पर निर्भर प्रजाति]] | }}
| NT
| nt
| LR/NT
| lr/NT
| LR/nt
| lr/nt = [[file:Status iucn2.3 NT.svg|frameless|link=|alt=]]<br />[[खतरा के आशंका वाली प्रजाति|खतरा के आशंका]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट खतरा के आशंका वाली प्रजाति]] | }}
| LC
| lc
| LR/LC
| lr/LC
| LR/lc
| lr/lc = [[file:Status iucn2.3 LC.svg|frameless|link=|alt=]]<br />[[चिंता मुक्त प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट चिंता मुक्त प्रजाति]] | }}
| DD
| dd = [[file:Status iucn2.3 blank.svg|frameless|link=|alt=]]<br />[[संरक्षण आँकड़ा के कमी वाली प्रजाति|संरक्षण आँकड़ा आभाव]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट आँकड़ा के कमी वाली प्रजाति]] | }}
| NE
| ne = ''Not evaluated''
| NR
| nr = ''Not recognized''
| PE
| pe = [[file:Status iucn2.3 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति]], बिलुप्त के संभावना {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] |}}
| PEW
| pew = [[file:Status iucn2.3 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति]], बन में से बिलुप्त के संभावना{{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] | }}
| '''''अवैध स्थिति''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:अवैध संरक्षण स्थिति]] | }}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[आइयूसीएन लाल लिस्ट|आइ॰यू॰सी॰एन॰ २.३]]}}){{{3|}}}</small></div><!--
*************
* IUCN3.1 *
*************
-->| iucn
| IUCN
| iucn3.1
| IUCN3.1 = {{#switch:{{{2}}}
| EX
| ex = [[file:Status iucn3.1 EX.svg|frameless|link=|alt=]]<br />[[बिलुप्त प्रजाति|बिलुप्त]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट बिलुप्त प्रजाति]] | }}
| EW
| ew = [[file:Status iucn3.1 EW.svg|frameless|link=|alt=]]<br />[[बन में से बिलुप्त प्रजाति|बन में से बिलुप्त]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट बन में से बिलुप्त प्रजाति]] | }}
| CR
| cr = [[file:Status iucn3.1 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति|चिंताजनक रूप से खतरा में ]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] |}}
| EN
| en = [[file:Status iucn3.1 EN.svg|frameless|link=|alt=]]<br />[[खतरा में प्रजाति|खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट कुछ खतरा में प्रजाति]] | }}
| VU
| vu = [[file:Status iucn3.1 VU.svg|frameless|link=|alt=]]<br />[[कुछ खतरा में प्रजाति|कुछ खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट कुछ खतरा में प्रजाति]] |}}
| NT
| nt = [[file:Status iucn3.1 NT.svg|frameless|link=|alt=]]<br />[[खतरा के आशंका वाली प्रजाति|खतरा के आशंका]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट खतरा के आशंका वाली प्रजाति]] | }}
| LC
| lc = [[file:Status iucn3.1 LC bh.svg|frameless|link=|alt=]]<br />[[चिंता मुक्त प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट चिंता मुक्त प्रजाति]] |}}
| DD
| dd = [[file:Status iucn3.1 blank.svg|frameless|link=|alt=]]<br/>[[संरक्षण आँकड़ा के कमी वाली प्रजाति|संरक्षण आंकड़ा अभाव]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट संरक्षण आँकड़ा के कमी वाली प्रजाति]] |}}
| NE
| ne = ''Not evaluated''
| NR
| nr = ''Not recognized''
| PE
| pe = [[file:Status iucn3.1 CR.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] |}}
| PEW
| pew = [[file:Status iucn3.1 CR.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct in the wild {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]]|}}
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[आइयूसीएन लाल लिस्ट|आइ॰यू॰सी॰एन॰ ३.१]]}}){{{3|}}}</small></div><!--
*************
* EPBC *
*************
-->| epbc
| EPBC = {{#switch:{{{2}}}
| EX
| ex = [[file:Status EPBC EX.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act extinct biota]] |}}
| EW
| ew = [[file:Status EPBC EW.svg|frameless|link=|alt=]]<br />[[Extinct in the Wild]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act extinct in the wild biota]]|}}
| CR
| cr = [[file:Status EPBC CR.svg|frameless|link=|alt=]]<br />[[Critically endangered species|Critically endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act critically endangered biota]] |}}
| EN
| en = [[file:Status EPBC EN.svg|frameless|link=|alt=]]<br />[[Endangered species|Endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act endangered biota]]|}}
| VU
| vu = [[file:Status EPBC VU.svg|frameless|link=|alt=]]<br />[[Vulnerable species|Vulnerable]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act vulnerable biota]] |}}
| CD
| cd = [[file:Status EPBC CD.svg|frameless|link=|alt=]]<br />[[Conservation Dependent]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act conservation dependent biota]] |}}
| DL
| dl
| Delisted = [[file:Status EPBC DL.svg|frameless|link=|alt=]]<br />Delisted
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Environment Protection and Biodiversity Conservation Act 1999|EPBC Act]]}}){{{3|}}}</small></div><!--
*************
* TNC *
*************
-->| tnc
| TNC
| natureserve
| NatureServe = {{#switch:{{{2}}}
| GX
| gx = [[file:Status TNC GX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Presumed Extinct species]]|}}
| GH
| gh = [[file:Status TNC GH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Possibly Extinct species]]|}}
| G1
| g1 = [[file:Status TNC G1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Critically Imperiled species]] |}}
| G2
| g2 = [[file:Status TNC G2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Imperiled species]] |}}
| G3
| g3 = [[file:Status TNC G3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Vulnerable species]] |}}
| G4
| g4 = [[file:Status TNC G4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Apparently Secure species]] |}}
| G5
| g5 = [[file:Status TNC G5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Secure species]]|}}
| GU
| gu = [[file:Status TNC blank.svg|frameless|link=|alt=]]<br />Unrankable
| TX
| tx = [[file:Status TNC TX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Presumed Extinct species]]|}}
| TH
| th = [[file:Status TNC TH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Possibly Extinct species]]|}}
| T1
| t1 = [[file:Status TNC T1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Critically Imperiled species]]|}}
| T2
| t2 = [[file:Status TNC T2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Imperiled species]] |}}
| T3
| t3 = [[file:Status TNC T3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Vulnerable species]]|}}
| T4
| t4 = [[file:Status TNC T4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Apparently Secure species]]|}}
| T5
| t5 = [[file:Status TNC T5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Secure species]] |}}
| TU
| tu = [[file:Status TNC T blank.svg|frameless|link=|alt=]]<br />Unrankable
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[NatureServe conservation status|NatureServe]]}}){{{3|}}}</small></div><!--
*************
* ESA *
*************
-->| esa
| ESA = {{#switch:{{{2}}}
| EX
| ex = [[file:Status ESA EX.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| E
| e
| LE
| le = [[file:Status ESA LE.svg|frameless|link=|alt=]]<br />[[Endangered species|Endangered]]
| T
| t
| LT
| lt = [[file:Status ESA LT.svg|frameless|link=|alt=]]<br />[[Threatened species|Threatened]]
| DL
| dl
| Delisted = [[file:Status ESA DL.svg|frameless|link=|alt=]]<br />Delisted
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Endangered Species Act|ESA]]}}){{{3|}}}</small></div><!--
*************
* COSEWIC *
*************
-->| cosewic
| COSEWIC = {{#switch:{{{2}}}
| X
| x = [[file:Status COSEWIC X.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| XT
| xt = [[file:Status COSEWIC XT.svg|frameless|link=|alt=]]<br />Extirpated (Canada)
| E
| e = [[file:Status COSEWIC E.svg|frameless|link=|alt=]]<br />[[Endangered species|Endangered]]
| T
| t = [[file:Status COSEWIC T.svg|frameless|link=|alt=]]<br />[[Threatened species|Threatened]]
| SC
| sc = [[file:Status COSEWIC SC.svg|frameless|link=|alt=]]<br />Special Concern
| NAR
| nar = [[file:Status COSEWIC NAR.svg|frameless|link=|alt=]]<br />[[Least Concern|Not at risk]]
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Committee on the Status of Endangered Wildlife in Canada|COSEWIC]]}}){{{3|}}}</small></div><!--
*************
* DECF *
*************
-->| decf
| DECF = {{#switch:{{{2}}}
| X
| x = [[file:Status DECF X.svg|frameless|link=|alt=]]<br />Declared Rare — Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| R
| r = [[file:Status DECF R.svg|frameless|link=|alt=]]<br />Declared [[Rare species|rare]]
| P1
| p1 = [[file:Status DECF P1.svg|frameless|link=|alt=]]<br />Priority One — Poorly Known Taxa
| P2
| p2 = [[file:Status DECF P2.svg|frameless|link=|alt=]]<br />Priority Two — Poorly Known Taxa
| P3
| p3 = [[file:Status DECF P3.svg|frameless|link=|alt=]]<br />Priority Three — Poorly Known Taxa
| P4
| p4 = [[file:Status DECF P4.svg|frameless|link=|alt=]]<br />Priority Four — Rare Taxa
| DL
| dl
| Delisted = [[file:Status DECF DL.svg|frameless|link=|alt=]]<br />Delisted
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Declared Rare and Priority Flora List|DEC]]}}){{{3|}}}</small></div><!--
*************
* QLDNCA *
*************
-->| qldnca
| QLDNCA = {{#switch:{{{2}}}
| EW
| ew = [[Extinct in the Wild]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act extinct in the wild biota]]|}}
| EN
| en = [[Endangered species|Endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act endangered biota]]|}}
| VU
| vu = [[Vulnerable species|Vulnerable]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act vulnerable biota]]|}}
| R
| r = Rare {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act rare biota]]|}}
| NT
| nt = [[Near Threatened]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act near threatened biota]]|}}
| LC
| lc = [[Least Concern]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act least concern biota]]|}}
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Nature Conservation Act 1992|NCA]]}}){{{3|}}}</small></div><!--
*************
* CITES *
*************
-->| CITES
| cites = {{#switch:{{{2}}}
| CITES_A1 = [[CITES]] Appendix I
| CITES_A2 = [[CITES]] Appendix II
| CITES_A3 = [[CITES]] Appendix III
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[CITES]]}}){{{3|}}}</small></div><!--
*************
* NZTCS *
*************
-->| nztcs
| NZTCS = {{#switch:{{{2}}}
| EX
| ex = [[file:Status NZTCS EX.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| NC
| nc = [[file:Status NZTCS NC.svg|frameless|link=|alt=]]<br />Nationally Critical
| NE
| ne = [[file:Status NZTCS NE.svg|frameless|link=|alt=]]<br />Nationally Endangered
| NV
| nv = [[file:Status NZTCS NV.svg|frameless|link=|alt=]]<br />Nationally Vulnerable
| SD
| sd = [[file:Status NZTCS SD.svg|frameless|link=|alt=]]<br />Serious Decline
| GD
| gd = [[file:Status NZTCS GD.svg|frameless|link=|alt=]]<br />Gradual Decline
| SP
| sp = [[file:Status NZTCS SP.svg|frameless|link=|alt=]]<br />Sparse
| RR
| rr = [[file:Status NZTCS RR.svg|frameless|link=|alt=]]<br />Range Restricted
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[New Zealand Threat Classification System|NZ TCS]]}}){{{3|}}}</small></div><!--
********************
* No status system *
********************
-->| {{#switch:{{{2}}}
| EX
| ex = [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| CR
| cr = [[Critically endangered species|Critically Endangered]]
| EN
| en = [[Endangered species|Endangered]]
| {{{2}}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|{{{1}}}}}){{{3|}}}</small> {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes with an unrecognised status system]]|}}
}}
| {{#switch:{{{2}}}
| EX
| ex = [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| EW
| ew = [[Extinction|Extinct]] in the wild {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Species extinct in the wild]][[Category:Taxoboxes needing a status system parameter]]|}}
| CR
| cr = [[Critically endangered species|Critically endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Critically endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| EN
| en = [[Endangered species|Endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| VU
| vu = [[Vulnerable species|Vulnerable]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Vulnerable species]][[Category:Taxoboxes needing a status system parameter]]|}}
| NT
| nt = [[Near Threatened]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Near Threatened species]][[Category:Taxoboxes needing a status system parameter]]|}}
| LC
| lc = [[Least Concern]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Least concern species]][[Category:Taxoboxes needing a status system parameter]]|}}
| SE
| se
| SECURE
| Secure
| secure = Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| DD
| dd = [[Data Deficient]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| DOM
| dom
| DOMESTICATED
| Domesticated
| domesticated = Domesticated {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:पालतू बनावल जानवर]]|}}
| PE
| pe = [[file:Status_none_PE.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Critically endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| PEW
| pew = [[file:Status_none_PEW.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct in the wild {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Critically endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| CITES_A1 = [[CITES]] Appendix I {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| CITES_A2 = [[CITES]] Appendix II {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| CITES_A3 = [[CITES]] Appendix III {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| FOSSIL
| Fossil
| fossil = Fossil
| PRE
| Pre
| pre = Prehistoric {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
| text
| Text
| TEXT = ''See text''
| LR/CD
| lr/CD
| LR/cd
| lr/cd = [[file:Status iucn2.3 CD.svg|frameless|link=|alt=]]<br />[[Conservation Dependent]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| LR/NT
| lr/NT
| LR/nt
| lr/nt = [[file:Status iucn2.3 NT.svg|frameless|link=|alt=]]<br />[[Near Threatened]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Near Threatened species]][[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| LR/LC
| lr/LC
| LR/lc
| lr/lc = [[file:Status iucn2.3 LC.svg|frameless|link=|alt=]]<br />[[Least Concern]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Least Concern species]][[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| GX
| gx = [[file:Status TNC GX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| GH
| gh = [[file:Status TNC GH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G1
| g1 = [[file:Status TNC G1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G2
| g2 = [[file:Status TNC G2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G3
| g3 = [[file:Status TNC G3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G4
| g4 = [[file:Status TNC G4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G5
| g5 = [[file:Status TNC G5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| GU
| gu = [[file:Status TNC blank.svg|frameless|link=|alt=]]<br />Unrankable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| TX
| tx = [[file:Status TNC TX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}} {{#if:{{{extinct|}}}| ({{{extinct}}}) }}<!--This case is subject to deletion once status systems are added-->
| TH
| th = [[file:Status TNC TH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T1
| t1 = [[file:Status TNC T1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T2
| t2 = [[file:Status TNC T2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T3
| t3 = [[file:Status TNC T3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T4
| t4 = [[file:Status TNC T4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T5
| t5 = [[file:Status TNC T5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| TU
| tu = [[file:Status TNC T blank.svg|frameless|link=|alt=]]<br />Unrankable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| R
| r = [[file:Status DECF R.svg|frameless|link=|alt=]]<br />Declared [[Rare species|rare]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P1
| p1 = [[file:Status DECF P1.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority One]] — Poorly Known Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P2
| p2 = [[file:Status DECF P2.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority Two]] — Poorly Known Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P3
| p3 = [[file:Status DECF P3.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority Three]] — Poorly Known Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P4
| p4 = [[file:Status DECF P4.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority Four]] — Rare Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| {{{2}}}
}}<small>{{{3|}}}</small></div>
}}
}}<noinclude>{{documentation}}</noinclude>
b4l298h2e2wp2hczitko9fhzkkfhz39
815296
815295
2026-11-12T15:40:06Z
SM7
3953
Protected "[[टेम्पलेट:Taxobox/species]]" ([संपादन करीं=Allow only administrators] (indefinite) [स्थानांतरण=Allow only administrators] (indefinite))
815295
wikitext
text/x-wiki
{{#if:{{{2|}}}|
! colspan = 2 {{!}} <div style = "text-align: center">[[संरक्षण स्थिति]]</div>
{{!}}-
{{!}} colspan = 2 {{!}} <div style = "text-align: center">{{#if:{{{1|}}}|{{#switch:{{{1}}}<!--
*************
* IUCN2.3 *
*************
--> | iucn2.3
| IUCN2.3 = {{#switch:{{{2}}}
| EX
| ex = [[file:Status iucn2.3 EX.svg|frameless|link=|alt=]]<br />[[बिलुप्त प्रजाति|बिलुप्त]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट बिलुप्त प्रजाति]] | }}
| EW
| ew = [[file:Status iucn2.3 EW.svg|frameless|link=|alt=]]<br />[[बन में से बिलुप्त प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट बन में से बिलुप्त प्रजाति]] | }}
| CR
| cr = [[file:Status iucn2.3 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति|चिंताजनक रूप से खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] | }}
| EN
| en = [[file:Status iucn2.3 EN.svg|frameless|link=|alt=]]<br />[[खतरा में प्रजाति|खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट खतरा में प्रजाति]] | }}
| VU
| vu = [[file:Status iucn2.3 VU.svg|frameless|link=|alt=]]<br />[[कुछ खतरा में प्रजाति|कुछ खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट कुछ खतरा में प्रजाति]] | }}
| LR
| lr = [[file:Status iucn2.3 blank.svg|link = |alt = ]]<br />Lower risk {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:अवैध संरक्षण स्थिति]] | }}
| CD
| cd
| LR/CD
| lr/CD
| LR/cd
| lr/cd = [[file:Status iucn2.3 CD.svg|frameless|link=|alt=]]<br />[[संरक्षण पर निर्भर प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट संरक्षण पर निर्भर प्रजाति]] | }}
| NT
| nt
| LR/NT
| lr/NT
| LR/nt
| lr/nt = [[file:Status iucn2.3 NT.svg|frameless|link=|alt=]]<br />[[खतरा के आशंका वाली प्रजाति|खतरा के आशंका]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट खतरा के आशंका वाली प्रजाति]] | }}
| LC
| lc
| LR/LC
| lr/LC
| LR/lc
| lr/lc = [[file:Status iucn2.3 LC.svg|frameless|link=|alt=]]<br />[[चिंता मुक्त प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट चिंता मुक्त प्रजाति]] | }}
| DD
| dd = [[file:Status iucn2.3 blank.svg|frameless|link=|alt=]]<br />[[संरक्षण आँकड़ा के कमी वाली प्रजाति|संरक्षण आँकड़ा आभाव]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट आँकड़ा के कमी वाली प्रजाति]] | }}
| NE
| ne = ''Not evaluated''
| NR
| nr = ''Not recognized''
| PE
| pe = [[file:Status iucn2.3 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति]], बिलुप्त के संभावना {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] |}}
| PEW
| pew = [[file:Status iucn2.3 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति]], बन में से बिलुप्त के संभावना{{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] | }}
| '''''अवैध स्थिति''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:अवैध संरक्षण स्थिति]] | }}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[आइयूसीएन लाल लिस्ट|आइ॰यू॰सी॰एन॰ २.३]]}}){{{3|}}}</small></div><!--
*************
* IUCN3.1 *
*************
-->| iucn
| IUCN
| iucn3.1
| IUCN3.1 = {{#switch:{{{2}}}
| EX
| ex = [[file:Status iucn3.1 EX.svg|frameless|link=|alt=]]<br />[[बिलुप्त प्रजाति|बिलुप्त]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट बिलुप्त प्रजाति]] | }}
| EW
| ew = [[file:Status iucn3.1 EW.svg|frameless|link=|alt=]]<br />[[बन में से बिलुप्त प्रजाति|बन में से बिलुप्त]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट बन में से बिलुप्त प्रजाति]] | }}
| CR
| cr = [[file:Status iucn3.1 CR.svg|frameless|link=|alt=]]<br />[[चिंताजनक रूप से खतरा में प्रजाति|चिंताजनक रूप से खतरा में ]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] |}}
| EN
| en = [[file:Status iucn3.1 EN.svg|frameless|link=|alt=]]<br />[[खतरा में प्रजाति|खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट कुछ खतरा में प्रजाति]] | }}
| VU
| vu = [[file:Status iucn3.1 VU.svg|frameless|link=|alt=]]<br />[[कुछ खतरा में प्रजाति|कुछ खतरा में]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट कुछ खतरा में प्रजाति]] |}}
| NT
| nt = [[file:Status iucn3.1 NT.svg|frameless|link=|alt=]]<br />[[खतरा के आशंका वाली प्रजाति|खतरा के आशंका]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट खतरा के आशंका वाली प्रजाति]] | }}
| LC
| lc = [[file:Status iucn3.1 LC bh.svg|frameless|link=|alt=]]<br />[[चिंता मुक्त प्रजाति]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट चिंता मुक्त प्रजाति]] |}}
| DD
| dd = [[file:Status iucn3.1 blank.svg|frameless|link=|alt=]]<br/>[[संरक्षण आँकड़ा के कमी वाली प्रजाति|संरक्षण आंकड़ा अभाव]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:आइयूसीएन लाल लिस्ट संरक्षण आँकड़ा के कमी वाली प्रजाति]] |}}
| NE
| ne = ''Not evaluated''
| NR
| nr = ''Not recognized''
| PE
| pe = [[file:Status iucn3.1 CR.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]] |}}
| PEW
| pew = [[file:Status iucn3.1 CR.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct in the wild {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[श्रेणी:आइयूसीएन लाल लिस्ट चिंताजनक रूप से खतरा में प्रजाति]]|}}
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[आइयूसीएन लाल लिस्ट|आइ॰यू॰सी॰एन॰ ३.१]]}}){{{3|}}}</small></div><!--
*************
* EPBC *
*************
-->| epbc
| EPBC = {{#switch:{{{2}}}
| EX
| ex = [[file:Status EPBC EX.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act extinct biota]] |}}
| EW
| ew = [[file:Status EPBC EW.svg|frameless|link=|alt=]]<br />[[Extinct in the Wild]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act extinct in the wild biota]]|}}
| CR
| cr = [[file:Status EPBC CR.svg|frameless|link=|alt=]]<br />[[Critically endangered species|Critically endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act critically endangered biota]] |}}
| EN
| en = [[file:Status EPBC EN.svg|frameless|link=|alt=]]<br />[[Endangered species|Endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act endangered biota]]|}}
| VU
| vu = [[file:Status EPBC VU.svg|frameless|link=|alt=]]<br />[[Vulnerable species|Vulnerable]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act vulnerable biota]] |}}
| CD
| cd = [[file:Status EPBC CD.svg|frameless|link=|alt=]]<br />[[Conservation Dependent]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:EPBC Act conservation dependent biota]] |}}
| DL
| dl
| Delisted = [[file:Status EPBC DL.svg|frameless|link=|alt=]]<br />Delisted
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Environment Protection and Biodiversity Conservation Act 1999|EPBC Act]]}}){{{3|}}}</small></div><!--
*************
* TNC *
*************
-->| tnc
| TNC
| natureserve
| NatureServe = {{#switch:{{{2}}}
| GX
| gx = [[file:Status TNC GX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Presumed Extinct species]]|}}
| GH
| gh = [[file:Status TNC GH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Possibly Extinct species]]|}}
| G1
| g1 = [[file:Status TNC G1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Critically Imperiled species]] |}}
| G2
| g2 = [[file:Status TNC G2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Imperiled species]] |}}
| G3
| g3 = [[file:Status TNC G3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Vulnerable species]] |}}
| G4
| g4 = [[file:Status TNC G4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Apparently Secure species]] |}}
| G5
| g5 = [[file:Status TNC G5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Secure species]]|}}
| GU
| gu = [[file:Status TNC blank.svg|frameless|link=|alt=]]<br />Unrankable
| TX
| tx = [[file:Status TNC TX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Presumed Extinct species]]|}}
| TH
| th = [[file:Status TNC TH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Possibly Extinct species]]|}}
| T1
| t1 = [[file:Status TNC T1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Critically Imperiled species]]|}}
| T2
| t2 = [[file:Status TNC T2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Imperiled species]] |}}
| T3
| t3 = [[file:Status TNC T3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Vulnerable species]]|}}
| T4
| t4 = [[file:Status TNC T4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Apparently Secure species]]|}}
| T5
| t5 = [[file:Status TNC T5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:NatureServe Secure species]] |}}
| TU
| tu = [[file:Status TNC T blank.svg|frameless|link=|alt=]]<br />Unrankable
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[NatureServe conservation status|NatureServe]]}}){{{3|}}}</small></div><!--
*************
* ESA *
*************
-->| esa
| ESA = {{#switch:{{{2}}}
| EX
| ex = [[file:Status ESA EX.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| E
| e
| LE
| le = [[file:Status ESA LE.svg|frameless|link=|alt=]]<br />[[Endangered species|Endangered]]
| T
| t
| LT
| lt = [[file:Status ESA LT.svg|frameless|link=|alt=]]<br />[[Threatened species|Threatened]]
| DL
| dl
| Delisted = [[file:Status ESA DL.svg|frameless|link=|alt=]]<br />Delisted
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Endangered Species Act|ESA]]}}){{{3|}}}</small></div><!--
*************
* COSEWIC *
*************
-->| cosewic
| COSEWIC = {{#switch:{{{2}}}
| X
| x = [[file:Status COSEWIC X.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| XT
| xt = [[file:Status COSEWIC XT.svg|frameless|link=|alt=]]<br />Extirpated (Canada)
| E
| e = [[file:Status COSEWIC E.svg|frameless|link=|alt=]]<br />[[Endangered species|Endangered]]
| T
| t = [[file:Status COSEWIC T.svg|frameless|link=|alt=]]<br />[[Threatened species|Threatened]]
| SC
| sc = [[file:Status COSEWIC SC.svg|frameless|link=|alt=]]<br />Special Concern
| NAR
| nar = [[file:Status COSEWIC NAR.svg|frameless|link=|alt=]]<br />[[Least Concern|Not at risk]]
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Committee on the Status of Endangered Wildlife in Canada|COSEWIC]]}}){{{3|}}}</small></div><!--
*************
* DECF *
*************
-->| decf
| DECF = {{#switch:{{{2}}}
| X
| x = [[file:Status DECF X.svg|frameless|link=|alt=]]<br />Declared Rare — Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| R
| r = [[file:Status DECF R.svg|frameless|link=|alt=]]<br />Declared [[Rare species|rare]]
| P1
| p1 = [[file:Status DECF P1.svg|frameless|link=|alt=]]<br />Priority One — Poorly Known Taxa
| P2
| p2 = [[file:Status DECF P2.svg|frameless|link=|alt=]]<br />Priority Two — Poorly Known Taxa
| P3
| p3 = [[file:Status DECF P3.svg|frameless|link=|alt=]]<br />Priority Three — Poorly Known Taxa
| P4
| p4 = [[file:Status DECF P4.svg|frameless|link=|alt=]]<br />Priority Four — Rare Taxa
| DL
| dl
| Delisted = [[file:Status DECF DL.svg|frameless|link=|alt=]]<br />Delisted
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Declared Rare and Priority Flora List|DEC]]}}){{{3|}}}</small></div><!--
*************
* QLDNCA *
*************
-->| qldnca
| QLDNCA = {{#switch:{{{2}}}
| EW
| ew = [[Extinct in the Wild]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act extinct in the wild biota]]|}}
| EN
| en = [[Endangered species|Endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act endangered biota]]|}}
| VU
| vu = [[Vulnerable species|Vulnerable]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act vulnerable biota]]|}}
| R
| r = Rare {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act rare biota]]|}}
| NT
| nt = [[Near Threatened]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act near threatened biota]]|}}
| LC
| lc = [[Least Concern]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Nature Conservation Act least concern biota]]|}}
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[Nature Conservation Act 1992|NCA]]}}){{{3|}}}</small></div><!--
*************
* CITES *
*************
-->| CITES
| cites = {{#switch:{{{2}}}
| CITES_A1 = [[CITES]] Appendix I
| CITES_A2 = [[CITES]] Appendix II
| CITES_A3 = [[CITES]] Appendix III
| '''''Invalid status''''' {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[CITES]]}}){{{3|}}}</small></div><!--
*************
* NZTCS *
*************
-->| nztcs
| NZTCS = {{#switch:{{{2}}}
| EX
| ex = [[file:Status NZTCS EX.svg|frameless|link=|alt=]]<br />[[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| NC
| nc = [[file:Status NZTCS NC.svg|frameless|link=|alt=]]<br />Nationally Critical
| NE
| ne = [[file:Status NZTCS NE.svg|frameless|link=|alt=]]<br />Nationally Endangered
| NV
| nv = [[file:Status NZTCS NV.svg|frameless|link=|alt=]]<br />Nationally Vulnerable
| SD
| sd = [[file:Status NZTCS SD.svg|frameless|link=|alt=]]<br />Serious Decline
| GD
| gd = [[file:Status NZTCS GD.svg|frameless|link=|alt=]]<br />Gradual Decline
| SP
| sp = [[file:Status NZTCS SP.svg|frameless|link=|alt=]]<br />Sparse
| RR
| rr = [[file:Status NZTCS RR.svg|frameless|link=|alt=]]<br />Range Restricted
| '''''Invalid status'''''[[Category:Invalid conservation status]]
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[New Zealand Threat Classification System|NZ TCS]]}}){{{3|}}}</small></div><!--
********************
* No status system *
********************
-->| {{#switch:{{{2}}}
| EX
| ex = [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| CR
| cr = [[Critically endangered species|Critically Endangered]]
| EN
| en = [[Endangered species|Endangered]]
| {{{2}}}
}}<small> ({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|{{{1}}}}}){{{3|}}}</small> {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes with an unrecognised status system]]|}}
}}
| {{#switch:{{{2}}}
| EX
| ex = [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }}
| EW
| ew = [[Extinction|Extinct]] in the wild {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Species extinct in the wild]][[Category:Taxoboxes needing a status system parameter]]|}}
| CR
| cr = [[Critically endangered species|Critically endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Critically endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| EN
| en = [[Endangered species|Endangered]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| VU
| vu = [[Vulnerable species|Vulnerable]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Vulnerable species]][[Category:Taxoboxes needing a status system parameter]]|}}
| NT
| nt = [[Near Threatened]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Near Threatened species]][[Category:Taxoboxes needing a status system parameter]]|}}
| LC
| lc = [[Least Concern]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Least concern species]][[Category:Taxoboxes needing a status system parameter]]|}}
| SE
| se
| SECURE
| Secure
| secure = Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| DD
| dd = [[Data Deficient]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| DOM
| dom
| DOMESTICATED
| Domesticated
| domesticated = Domesticated {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:पालतू बनावल जानवर]]|}}
| PE
| pe = [[file:Status_none_PE.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Critically endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| PEW
| pew = [[file:Status_none_PEW.svg|frameless|link=|alt=]]<br />[[Critically endangered]], possibly extinct in the wild {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Critically endangered species]][[Category:Taxoboxes needing a status system parameter]]|}}
| CITES_A1 = [[CITES]] Appendix I {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| CITES_A2 = [[CITES]] Appendix II {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| CITES_A3 = [[CITES]] Appendix III {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}
| FOSSIL
| Fossil
| fossil = Fossil
| PRE
| Pre
| pre = Prehistoric {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}
| text
| Text
| TEXT = ''See text''
| LR/CD
| lr/CD
| LR/cd
| lr/cd = [[file:Status iucn2.3 CD.svg|frameless|link=|alt=]]<br />[[Conservation Dependent]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| LR/NT
| lr/NT
| LR/nt
| lr/nt = [[file:Status iucn2.3 NT.svg|frameless|link=|alt=]]<br />[[Near Threatened]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Near Threatened species]][[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| LR/LC
| lr/LC
| LR/lc
| lr/lc = [[file:Status iucn2.3 LC.svg|frameless|link=|alt=]]<br />[[Least Concern]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Least Concern species]][[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| GX
| gx = [[file:Status TNC GX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#if:{{{extinct|}}}| ({{{extinct}}}) }} {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| GH
| gh = [[file:Status TNC GH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G1
| g1 = [[file:Status TNC G1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G2
| g2 = [[file:Status TNC G2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G3
| g3 = [[file:Status TNC G3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G4
| g4 = [[file:Status TNC G4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| G5
| g5 = [[file:Status TNC G5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| GU
| gu = [[file:Status TNC blank.svg|frameless|link=|alt=]]<br />Unrankable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| TX
| tx = [[file:Status TNC TX.svg|frameless|link=|alt=]]<br />Presumed [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}} {{#if:{{{extinct|}}}| ({{{extinct}}}) }}<!--This case is subject to deletion once status systems are added-->
| TH
| th = [[file:Status TNC TH.svg|frameless|link=|alt=]]<br />Possibly [[Extinction|Extinct]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T1
| t1 = [[file:Status TNC T1.svg|frameless|link=|alt=]]<br />Critically Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T2
| t2 = [[file:Status TNC T2.svg|frameless|link=|alt=]]<br />Imperiled {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T3
| t3 = [[file:Status TNC T3.svg|frameless|link=|alt=]]<br />Vulnerable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T4
| t4 = [[file:Status TNC T4.svg|frameless|link=|alt=]]<br />Apparently Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| T5
| t5 = [[file:Status TNC T5.svg|frameless|link=|alt=]]<br />Secure {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| TU
| tu = [[file:Status TNC T blank.svg|frameless|link=|alt=]]<br />Unrankable {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| R
| r = [[file:Status DECF R.svg|frameless|link=|alt=]]<br />Declared [[Rare species|rare]] {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P1
| p1 = [[file:Status DECF P1.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority One]] — Poorly Known Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P2
| p2 = [[file:Status DECF P2.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority Two]] — Poorly Known Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P3
| p3 = [[file:Status DECF P3.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority Three]] — Poorly Known Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| P4
| p4 = [[file:Status DECF P4.svg|frameless|link=|alt=]]<br />[[Conservation Codes for Western Australian Flora|Priority Four]] — Rare Taxa {{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Taxoboxes needing a status system parameter]]|}}<!--This case is subject to deletion once status systems are added-->
| {{{2}}}
}}<small>{{{3|}}}</small></div>
}}
}}<noinclude>{{documentation}}</noinclude>
b4l298h2e2wp2hczitko9fhzkkfhz39
फिलिपींस
0
26043
815153
804235
2026-11-12T14:14:23Z
SM7Bot
7808
सफाई, replaced: |dead-url=yes → |url-status= (2) using [[Project:AWB|AWB]]
815153
wikitext
text/x-wiki
{{Coord|13|N|122|E|display=title}}
{{Infobox country
| conventional_long_name = रिपब्लिक ऑफ़ दि फिलिपीन्स
| common_name = फिलिपींस
| native_name =
| image_flag = Flag of the Philippines.svg
| image_coat = Coat of arms of the Philippines.svg
| other_symbol = <div style="padding:0.3em;">[[File:Seal of the Philippines.svg|80px|Great Seal of the Philippines]]</div>{{native phrase|fil|[[Great Seal of the Philippines#Great Seal|Dakilang Sagisag ng Pilipinas]]|nolink=on}}<br>{{small|Great Seal of the Philippines}}
| other_symbol_type = [[Coat of arms of the Philippines#Great Seal|Great Seal]]
| national_motto =
| image_map = PHL orthographic.svg
| image_map2 =
| capital = [[मनीला]]{{ref|a|a}}<br>{{small|{{Coord|14|35|N|120|58|E|type:city}}}}
| largest_city = [[Quezon City]]<br>{{small|{{coord|14|38|N|121|02|E|display=inline}}}} <!--Although [[Davao City]] has the largest land area, the article on largest city says we should refer to the most populous city, which, {{As of|2006|lc=y}}, is Quezon City. See the discussion page for more information. Changing this information without citation would be reverted.-->
| official_languages =
| government_type = यूनिटरी प्रेसिडेंसियल संबैधानिक रिपब्लिक
| established_event = वर्तमान संबिधान
| established_date = 2 फरवरी 1987
| area_km2 = 300,000<ref name="psa.gov.ph">{{cite web|url=https://psa.gov.ph/content/philippine-population-density-based-2015-census-population|title=Philippine Population Density (Based on the 2015 Census of Population|date=September 1, 2016}}</ref><ref name="worldbank.org">{{cite web|url=http://databank.worldbank.org/data/reports.aspx?source=2&series=AG.SRF.TOTL.K2&country=SAU|title=World Development Indicators - DataBank|website=databank.worldbank.org}}</ref>
| area_label = कुल
| area_rank = 72वाँ
| percent_water = 0.61<ref name=CIAfactbook>{{cite web|url=https://www.cia.gov/library/publications/the-world-factbook/geos/rp.html |publisher=Central Intelligence Agency |title=East & Southeast Asia :: Philippines |website=The World Factbook |location=Washington, D.C.: Author |date=October 28, 2009 |accessdate=November 7, 2009 |url-status=dead |archiveurl=https://web.archive.org/web/20150719222229/https://www.cia.gov/library/publications/the-world-factbook/geos/rp.html |archivedate=July 19, 2015 |df= }}</ref> {{small|(inland waters)}}
| area_label2 = जमीनी
| area_data2 = 300,000
| population_estimate_year = 2018
| population_estimate =
| population_census = 100,981,437<ref name="2015 census">{{cite web|url=https://www.psa.gov.ph/content/highlights-philippine-population-2015-census-population|title=Highlights of the Philippine Population 2015 Census of Population - Philippine Statistics Authority|website=www.psa.gov.ph|access-date=2019-01-01|archive-date=2017-02-02|archive-url=https://web.archive.org/web/20170202031551/https://www.psa.gov.ph/content/highlights-philippine-population-2015-census-population|url-status=dead}}</ref>
| population_census_year = 2015
| population_census_rank = 13th
| population_density_km2 = 336
| population_density_sq_mi = {{Data/popdens|Philippines|comma|areaunit=sqmi}}<!--Do not remove per [[WP:MOSNUM]]-->
| population_density_rank = 47th
| GDP_PPP = $960.7 billion<ref name= imf03 />
| GDP_PPP_year = 2018
| GDP_PPP_rank = 27th
| GDP_PPP_per_capita = $9,862<ref name=imf03 />
| GDP_PPP_per_capita_rank = 119th
| GDP_nominal = $371.8 बिलियन<ref name="imf03">{{cite web|url=http://www.imf.org/external/pubs/ft/weo/2017/01/weodata/weorept.aspx?pr.x=30&pr.y=9&sy=2015&ey=2022&scsm=1&ssd=1&sort=country&ds=.&br=1&c=566&s=NGDPD,NGDPDPC&grp=0&a=|title=Report for Selected Countries and Subjects|website=www.imf.org}}</ref>
| GDP_nominal_year = 2018
| GDP_nominal_rank = 36th
| GDP_nominal_per_capita = $3,430<ref name=imf03 />
| GDP_nominal_per_capita_rank = 125th
| Gini = 40.1 <!--number only-->
| Gini_year = 2015
| Gini_change = decrease <!--increase/decrease/steady-->
| Gini_ref = <ref name="wb-gini">{{cite web |url=http://data.worldbank.org/indicator/SI.POV.GINI/ |title=Gini Index |publisher=World Bank |accessdate=2 मार्च 2011}}</ref>
| Gini_rank = 44th
| HDI = 0.699 <!--number only-->
| HDI_year = 2017 <!-- Please use the year to which the data refers, not the publication year-->
| HDI_change = increase <!--increase/decrease/steady-->
| HDI_ref = <ref>{{cite web|url=http://hdr.undp.org/sites/default/files/2018_human_development_statistical_update.pdf|title=Human Development Indices and Indicators: 2018 Statistical update|publisher=United Nations Development Programme|date=15 September 2018|accessdate=15 September 2018}}</ref>
| HDI_rank = 113th
| currency = पेसो (₱)
| currency_code = PHP
| time_zone = [[फिलिपींस मानक समय|PST]]
| utc_offset = +8
| date_format = {{unbulleted list |mm-dd-yyyy|dd-mm-yyyy ([[Anno Domini|AD]])}}
| drives_on = right<ref>{{cite web |url=http://www.brianlucas.ca/roadside/ |title=Which side of the road do they drive on? |author=Lucas, Brian |date=2005 |accessdate=22 फरवरी 2009 |publisher=}}</ref>
| calling_code = +63
| cctld = .ph
| official_website = [https://www.gov.ph/ National Government Portal]<br>[http://www.officialgazette.gov.ph/ Official Gazette of the Republic of the Philippines]
| footnote_a = {{note|a}} While Manila proper is designated as the nation's capital, the whole of [[Metro Manila|National Capital Region]] (NCR) is designated as [[seat of government]], hence the name of a region. This is because it has many national government institutions aside from Malacanang Palace and some agencies/institutions that are located within the capital city.<ref>{{cite web|title=Presidential Decree No. 940, s. 1976 |url=http://www.gov.ph/1976/05/29/presidential-decree-no-940-s-1976/ |archive-url=https://web.archive.org/web/19760529010101/http://www.gov.ph/1976/05/29/presidential-decree-no-940-s-1976/ |publisher=Malacanang |accessdate=April 4, 2015 |archivedate=May 29, 1976 |url-status= |location=Manila |df= }}</ref>
| footnote_b = {{note|b}} Article 3 of Republic Act No. 11106 declared Filipino Sign Language as the national sign language of the Philippines, specifying that it shall be recognized, supported and promoted as the medium of official communication in all transactions involving the deaf, and as the language of instruction of deaf education.<ref>{{cite act|url=https://www.officialgazette.gov.ph/downloads/2018/10oct/20181030-RA-11106-RRD.pdf|title=The Filipino Sign Language Act|type=Republic act|number=11106|article=3|work=Official Gazette|publisher=Government of the Philippines|date=October 30, 2018}} {{Webarchive|url=https://web.archive.org/web/20210709183133/https://www.officialgazette.gov.ph/downloads/2018/10oct/20181030-RA-11106-RRD.pdf |date=July 9, 2021 }}</ref><ref>{{cite web |author=Genalyn Kabiling |work=Manila Bulletin |title=Filipino Sign Language declared as nat’l sign language of Filipino deaf |date=12 November 2018 |url=https://news.mb.com.ph/2018/11/12/filipino-sign-language-declared-as-natl-sign-language-of-filipino-deaf/ |quote= |archivedate=20 November 2018 |accessdate=12 November 2018 |archive-url=https://web.archive.org/web/20181120180255/https://news.mb.com.ph/2018/11/12/filipino-sign-language-declared-as-natl-sign-language-of-filipino-deaf/ |url-status=dead }}</ref>
| footnote_c = {{note|c}} The 1987 Philippine constitution specifies "Spanish and Arabic shall be promoted on a voluntary and optional basis."<ref name=OfficialLang />
| footnote_d = {{note|d}} Filipino revolutionaries [[Philippine Declaration of Independence|declared independence]] from Spain on June 12, 1898, but Spain ceded the islands to the United States for $20 million in the [[Treaty of Paris (1898)|Treaty of Paris]] on December 10, 1898 which eventually led to the [[Philippine–American War]].
| footnote_e = {{note|e}} The United States of America recognized the independence of the Philippines on July 4, 1946, through the [[Treaty of Manila (1946)|Treaty of Manila]].<ref>{{Citation|url=http://untreaty.un.org/unts/1_60000/1/6/00000254.pdf|archiveurl=https://web.archive.org/web/20110723021900/http://untreaty.un.org/unts/1_60000/1/6/00000254.pdf|archivedate=July 23, 2011|format=PDF|title=Treaty of General Relations Between the United States of America and the Republic of the Philippines. Signed at Manila, on 4 July 1946|publisher=United Nations|accessdate=December 10, 2007}}</ref> This date was chosen because it corresponds to the U.S. [[Independence Day (United States)|Independence Day]], which was observed in the Philippines as [[Independence Day (Philippines)|Independence Day]] until May 12, 1962, when [[President of the Philippines|President]] [[Diosdado Macapagal]] issued Presidential Proclamation No. 28, shifting it to June 12, the date of [[Emilio Aguinaldo]]'s proclamation.<ref>{{cite web |title=Republic of the Philippines Independence Day |url=http://m.state.gov/md243684.htm |archive-url=https://web.archive.org/web/20150915021401/http://m.state.gov/md243684.htm |publisher=[[United States State Department]] |accessdate=July 30, 2015 |archivedate=September 15, 2015 |url-status= }}</ref>
| footnote_f = {{note|f}} In accordance with article 11 of the Revolutionary Government Decree of June 23, 1898, the [[Revolutionary Government of the Philippines|Malolos Congress]] selected a commission to draw up a draft [[constitution]] on September 17, 1898. The commission was composed of Hipólito Magsalin, Basilio Teodoro, José Albert, [[Joaquin Gonzalez (politician)|Joaquín González]], [[Gregorio S. Araneta|Gregorio Araneta]], Pablo Ocampo, Aguedo Velarde, Higinio Benitez, [[Tomas del Rosario|Tomás del Rosario]], [[Jose Alejandrino|José Alejandrino]], Alberto Barretto, José Ma. de la Viña, José Luna, [[Antonio Luna]], Mariano Abella, Juan Manday, [[Felipe Calderón y Roca|Felipe Calderón]], [[Arsenio Cruz-Herrera|Arsenio Cruz]] and Felipe Buencamino.<ref>{{cite book|last=Calderón|first=Felipe|title=Mis memorias sobre la revolución filipina: Segunda etapa, (1898 á 1901) |url=https://archive.org/details/arb8046.0001.001.umich.edu|year=1907|publisher=Imp. de El Renacimiento|location=Manila|pages=[https://archive.org/details/arb8046.0001.001.umich.edu/page/234 234], 235; appendix, pp. 5–10}}</ref> They were all wealthy and well educated.<ref name=LOCPhil>{{cite book|author=Dolan, Ronald E.|title=Philippines, a country study|date=1983|publisher=Federal Research Division, Library of Congress|location=Washington, D.C.|isbn=978-0-8444-0748-7|edition=4th}}</ref>
}}
'''फिलीपींस''' ({{Lang|en|Philippines}}) [[दक्खिन पूर्ब एशिया]] में एगो देश बाटे।
== संदर्भ ==
{{Reflist}}
{{एशिया के देश}}
{{Authority control}}
{{एशिया-भू-आधार}}
[[श्रेणी:एशिया के देस]]
[[श्रेणी:दक्खिन पुरुब एशिया]]
[[श्रेणी:फिलिपींस| ]]
[[श्रेणी:यूनाइटेड नेशंस के सदस्य देस]]
1a2ktle3lve5sa4ax7s2xw23flww2l3
मिसौरी नदी
0
35267
815164
780694
2026-11-12T14:15:24Z
SM7Bot
7808
/* संदर्भ */ सफाई using [[Project:AWB|AWB]]
815164
wikitext
text/x-wiki
{{Infobox river
| name = मिसौरी नदी
| name_native = Missouri River
| name_native_lang = en
| name_other =
| name_etymology = The Missouri tribe, whose name in turn meant "people with wooden canoes"<ref name="GNIS">{{cite gnis|id=756398|name=Missouri River|entrydate=1980-10-24|accessdate=2010-05-06}}</ref>
<!---------------------- IMAGE & MAP -->
| image = Lower Missouri River.jpg
| image_size = 300px
| image_caption = A relatively undeveloped reach of the river near Rocheport, Missouri
| map = Missouri River basin map.png
| map_size = 280px
| map_caption = Map of the Missouri River and its tributaries in<br>North America
| pushpin_map =
| pushpin_map_size = 280px
| pushpin_map_caption=
<!---------------------- LOCATION -->
| subdivision_type1 = देश
| subdivision_name1 = [[अमेरिका]]
| subdivision_type2 = राज्य
| subdivision_name2 = [[मोंटाना]], [[नार्थ डकोटा]], [[साउथ डकोटा]], [[नेब्रास्का]], [[आयवा]], [[कंसास]], [[मिसौरी]]
| subdivision_type3 =
| subdivision_name3 =
| subdivision_type4 =
| subdivision_name4 =
| subdivision_type5 = शहर
| subdivision_name5 = ग्रेट फाल्स, बिस्मार्क एनडी, पियरे एसडी, सियोक्स सिटी, ओमाहा, सैंट जोसेफ़, कंसास सिटी, कंसास सिटी मो, सेंट लुइस मो
<!---------------------- PHYSICAL CHARACTERISTICS -->
| length = {{convert|2341|mi|km|abbr=on}}<ref name="modifications">{{cite web
|url = http://infolink.cr.usgs.gov/Science/MoREAP/moreap_brief.htm
|title = Missouri River Environmental Assessment Program Summary
|publisher = U.S. Geological Survey
|accessdate = 2010-10-08
|archive-url = https://web.archive.org/web/20100527125158/http://infolink.cr.usgs.gov/Science/MoREAP/moreap_brief.htm
|archive-date = May 27, 2010
|dead-url = yes
|df = mdy-all
}}</ref>
| width_min =
| width_avg =
| width_max =
| depth_min =
| depth_avg =
| depth_max =
| discharge1_location= हरमन, मोंटाना; [[river mile|RM]] 97.9 (RKM 157.6)<ref name="missouriflow"/>
| discharge1_min = {{convert|602|cuft/s|m3/s|abbr=on}}<ref name="missouriflow"/>
| discharge1_avg = {{convert|87520|cuft/s|m3/s|abbr=on}}<ref name="missouriflow"/>
| discharge1_max = {{convert|750000|cuft/s|m3/s|abbr=on}}<ref name="peaks">{{cite web|last1=Pinter|first1=Nicholas|last2=Heine|first2=Reuben A.|url=http://www.grha.net/site/programs/river-study/|title=Hydrologic History of the Lower Missouri River|publisher=Southern Illinois University, Carbondale|work=Geology Department|accessdate=2010-05-08|url-status=dead|archiveurl=https://web.archive.org/web/20110723140325/http://www.grha.net/site/programs/river-study/|archivedate=July 23, 2011|df=mdy-all}}</ref>
<!---------------------- BASIN FEATURES -->
| source1 = हेल रोरिंग क्रीक–रेड रॉक नदी–बीवरहेड नदी–जेफरसन नदी
| source1_location = ब्रोवर झरना के लगे, [[मोंटाना]]
| source1_coordinates= {{coord|44|33|02|N|111|28|21|W|display=inline}}<ref>[http://www.topozone.com/map.asp?lat=44.5417&lon=-111.4677&s=25&size=m&u=4&datum=nad83&layer=DRG25] [[United States Geological Survey|USGS]] topographic map of the source</ref><ref name="headwaters"/>
| source1_elevation = {{convert|9100|ft|abbr=on}}
| source1_length = {{convert|295|mi|abbr=on}}
| source2 = फायरहोल नदी–मैडिसन नदी
| source2_location = मैडिसन झील, [[यलोस्टोन नेशनल पार्क]], [[वूमिंग]]
| source2_coordinates= {{coord|44|20|55|N|110|51|53|W|display=inline}}<ref>{{cite gnis|id=1591162|name=Madison Lake|entrydate=1980-04-04|accessdate=2012-01-21}}</ref>
| source2_elevation = {{convert|8215|ft|abbr=on}}
| source2_length = {{convert|183|mi|abbr=on}}
| source_confluence = मिसौरी हेडवाटर पार्क
| source_confluence_location = थ्री फोर्क्स, मोंटाना
| source_confluence_coordinates= {{coord|45|55|39|N|111|20|39|W|display=inline}}<ref name="GNIS"/>
| source_confluence_elevation = {{convert|4042|ft|abbr=on}}
| mouth = [[मिसिसिपी नदी]]
| mouth_location = स्पैनिश झील, सेंट लुइस के नगीचे, मिसौरी
| mouth_coordinates = {{coord|38|48|49|N|90|07|11|W|display=inline,title}}<ref name="GNIS"/>
| mouth_elevation = {{convert|404|ft|abbr=on}}<ref name="GNIS"/>
| progression =
| river_system =
| basin_size = {{convert|529350|sqmi|abbr=on}}<ref name="Story"/>
| tributaries_left = [[जेफरसन नदी|जेफ़रसन]], [[Dearborn River|Dearborn]], [[Sun River|Sun]], [[Marias River|Marias]], [[Milk River (Alberta–Montana)|Milk]], [[James River (Dakotas)|James]], [[Big Sioux River|Big Sioux]], [[Grand River (Missouri)|Grand]], [[Chariton River|Chariton]]
| tributaries_right = [[Madison River|Madison]], [[Gallatin River|Gallatin]], [[Yellowstone River|Yellowstone]], [[Little Missouri River (North Dakota)|Little Missouri]], [[Cheyenne River|Cheyenne]], [[White River (Missouri River)|White]], [[Niobrara River|Niobrara]], [[Platte River|Platte]], [[Kansas River|Kansas]], [[Osage River|Osage]], [[Gasconade River|Gasconade]]
| custom_label =
| custom_data =
| extra = {{Designation list
| embed = yes
| designation1 = nwsr
| designation1_type = Wild, Scenic, Recreational
| designation1_date =
| designation1_number =
}}
}}
'''मिसौरी नदी''' ({{Lang|en|Missouri River}}) [[उत्तर अमेरिका महादीप]] के एक ठो प्रमुख नदी बाटे। ई उत्तरी अमेरिका के सभसे लमहर नदी हवे। एकर सभसे प्रमुख सहायिका नदी [[मिसिसिपी नदी]] हवे आ ई दुनों संजुक्त रूप से मिसिसिपी-मिसौरी के नाँव से भी जानल जालीं।
अमेरिका के मोंटाना राज्य के पच्छिमी हिस्सा में, राकी परबत से ई नदी निकले ले आ एकरे बाद पुरुब आ दक्खिन मुँह के बहे ले, लगभग {{convert|2341|mi|km}}<ref name="modifications"/> बहे के बाद ई मिसौरी राज्य के सेंट लुइस नाँव के जगह से उतर में मिसिसिपी नदी में मिल जाले। एह नदी के बेसिन में कम आबादी वाला इलाका बा जे सूखा आ कुछ सूखा इलाका हवे, लगभग आधा मिलियन वर्गमील (1,300,000 km<sup>2</sup>) बिस्तार वाला बाटे, एह के अंदर दस गो अमेरिकी राज्य आ कनाडा के कुछ हिस्सा आवे ला। अगर निचली मिसिसिपी नदी के सामिल क लिहल जाय तब ई दुनियाँ के चउथी नंबर के सभसे लमहर नदी बाटे।<ref name="RiversWorld" />
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{नदी-आधार}}
[[श्रेणी:उत्तर अमेरिका के नदी]]
prynrzyn1z6jsmrlupnjqaonox3xcd5
पराना नदी
0
35277
815155
780701
2026-11-12T14:14:34Z
SM7Bot
7808
/* संदर्भ */ सफाई using [[Project:AWB|AWB]]
815155
wikitext
text/x-wiki
{{Infobox river
| name = पराना नदी
| name_native =
| name_native_lang =
| name_other = Paraná River, Rio Paraná, Río Paraná
| name_etymology =
<!---------------------- IMAGE & MAP -->
| image = Paraná.jpg
| image_size = 300
| image_caption = Paraná River seen from [[Zárate, Buenos Aires Province]], [[Argentina]]
| map = Riodelaplatabasinmap.png
| map_size = 300
| map_caption = Map of the [[Rio de la Plata Basin]] showing the Paraná River and its major tributaries
| pushpin_map =
| pushpin_map_size = 300
| pushpin_map_caption=
<!---------------------- LOCATION -->
| subdivision_type1 = देश
| subdivision_name1 = [[अर्जेंटाइना]], [[ब्राजील]], [[पराग्वे]]
| subdivision_type2 =
| subdivision_name2 =
| subdivision_type3 = क्षेत्र
| subdivision_name3 = [[दक्खिन अमेरिका]]
| subdivision_type4 =
| subdivision_name4 =
| subdivision_type5 =
| subdivision_name5 =
<!---------------------- PHYSICAL CHARACTERISTICS -->
| length = {{convert|4880|km|mi|abbr=on}}<ref name=britannica/>
| width_min =
| width_avg =
| width_max =
| depth_min =
| depth_avg =
| depth_max =
| discharge1_location= [[नदी मुहाना|मुहाना]]<ref name=britannica/>
| discharge1_min = {{convert|2450|m3/s|cuft/s|abbr=on}}
| discharge1_avg = {{convert|17290|m3/s|cuft/s|abbr=on}}<ref name=britannica/>
| discharge1_max = {{convert|65000|m3/s|cuft/s|abbr=on}}
<!---------------------- BASIN FEATURES -->
| source1 = परानाइबा नदी
| source1_location = Rio Paranaíba, मिनास जेरास, ब्राजील
| source1_coordinates= {{coord|19|13|21|S|46|10|28|W|display=inline}}<ref>{{cite web |title= Monitoramento da Qualidade das Águas Superficiais da Bacia do Río Paranaíba: Relatório Annual 2007 |publisher= Governo do Estado de Minas Gerais, Instituto Mineiro de Gestão das Águas |year= 2008 |url= http://aguas.igam.mg.gov.br/aguas/downloads/relatorios/2007/Rel_Paranaiba_07.zip |archive-url= https://web.archive.org/web/20110706155757/http://aguas.igam.mg.gov.br/aguas/downloads/relatorios/2007/Rel_Paranaiba_07.zip |dead-url= yes |archive-date= 6 July 2011 |format= PDF in ZIP |accessdate= 12 August 2010 }}</ref>
| source1_elevation = {{convert|1148|m|abbr=on}}
| source2 = रियो ग्रांडे
| source2_location = Bocaina de Minas, मिनास जेरास, [[ब्राजील]]
| source2_coordinates= {{coord|22|9|56|S|44|23|38|W|display=inline}}
| source2_elevation =
| source_confluence = Paranaíba and Grande
| source_confluence_location =
| source_confluence_coordinates= {{coord|20|5|12|S|51|0|2|W|display=inline}}
| source_confluence_elevation =
| mouth = रियो डि ला प्लाटा
| mouth_location = अटलांटिक महासागर, अर्जेंटाइना, उरुग्वे
| mouth_coordinates = {{coord|34|0|5|S|58|23|37|W|display=inline,title}}<ref>{{GEOnet2|32FA87C246353774E0440003BA962ED3|Río Paraná Guazú}} (main distributary)</ref>
| mouth_elevation = {{convert|0|m|abbr=on}}
| progression =
| river_system =
| basin_size = {{convert|2582672|km2|abbr=on}}
| tributaries_left =
| tributaries_right =
| custom_label =
| custom_data =
| extra =
}}
'''पराना नदी''' ({{Lang|en|Paraná River}}) [[दक्खिन अमेरिका महादीप]] के एक ठो प्रमुख नदी बाटे।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{नदी-आधार}}
[[श्रेणी:दक्खिन अमेरिका के नदी]]
r68o8fh6046vvjv9ieegff3fst6iain
815181
815155
2026-11-12T15:20:42Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url= yes → |url-status= using [[Project:AWB|AWB]]
815181
wikitext
text/x-wiki
{{Infobox river
| name = पराना नदी
| name_native =
| name_native_lang =
| name_other = Paraná River, Rio Paraná, Río Paraná
| name_etymology =
<!---------------------- IMAGE & MAP -->
| image = Paraná.jpg
| image_size = 300
| image_caption = Paraná River seen from [[Zárate, Buenos Aires Province]], [[Argentina]]
| map = Riodelaplatabasinmap.png
| map_size = 300
| map_caption = Map of the [[Rio de la Plata Basin]] showing the Paraná River and its major tributaries
| pushpin_map =
| pushpin_map_size = 300
| pushpin_map_caption=
<!---------------------- LOCATION -->
| subdivision_type1 = देश
| subdivision_name1 = [[अर्जेंटाइना]], [[ब्राजील]], [[पराग्वे]]
| subdivision_type2 =
| subdivision_name2 =
| subdivision_type3 = क्षेत्र
| subdivision_name3 = [[दक्खिन अमेरिका]]
| subdivision_type4 =
| subdivision_name4 =
| subdivision_type5 =
| subdivision_name5 =
<!---------------------- PHYSICAL CHARACTERISTICS -->
| length = {{convert|4880|km|mi|abbr=on}}<ref name=britannica/>
| width_min =
| width_avg =
| width_max =
| depth_min =
| depth_avg =
| depth_max =
| discharge1_location= [[नदी मुहाना|मुहाना]]<ref name=britannica/>
| discharge1_min = {{convert|2450|m3/s|cuft/s|abbr=on}}
| discharge1_avg = {{convert|17290|m3/s|cuft/s|abbr=on}}<ref name=britannica/>
| discharge1_max = {{convert|65000|m3/s|cuft/s|abbr=on}}
<!---------------------- BASIN FEATURES -->
| source1 = परानाइबा नदी
| source1_location = Rio Paranaíba, मिनास जेरास, ब्राजील
| source1_coordinates= {{coord|19|13|21|S|46|10|28|W|display=inline}}<ref>{{cite web |title= Monitoramento da Qualidade das Águas Superficiais da Bacia do Río Paranaíba: Relatório Annual 2007 |publisher= Governo do Estado de Minas Gerais, Instituto Mineiro de Gestão das Águas |year= 2008 |url= http://aguas.igam.mg.gov.br/aguas/downloads/relatorios/2007/Rel_Paranaiba_07.zip |archive-url= https://web.archive.org/web/20110706155757/http://aguas.igam.mg.gov.br/aguas/downloads/relatorios/2007/Rel_Paranaiba_07.zip |url-status= |archive-date= 6 July 2011 |format= PDF in ZIP |accessdate= 12 August 2010 }}</ref>
| source1_elevation = {{convert|1148|m|abbr=on}}
| source2 = रियो ग्रांडे
| source2_location = Bocaina de Minas, मिनास जेरास, [[ब्राजील]]
| source2_coordinates= {{coord|22|9|56|S|44|23|38|W|display=inline}}
| source2_elevation =
| source_confluence = Paranaíba and Grande
| source_confluence_location =
| source_confluence_coordinates= {{coord|20|5|12|S|51|0|2|W|display=inline}}
| source_confluence_elevation =
| mouth = रियो डि ला प्लाटा
| mouth_location = अटलांटिक महासागर, अर्जेंटाइना, उरुग्वे
| mouth_coordinates = {{coord|34|0|5|S|58|23|37|W|display=inline,title}}<ref>{{GEOnet2|32FA87C246353774E0440003BA962ED3|Río Paraná Guazú}} (main distributary)</ref>
| mouth_elevation = {{convert|0|m|abbr=on}}
| progression =
| river_system =
| basin_size = {{convert|2582672|km2|abbr=on}}
| tributaries_left =
| tributaries_right =
| custom_label =
| custom_data =
| extra =
}}
'''पराना नदी''' ({{Lang|en|Paraná River}}) [[दक्खिन अमेरिका महादीप]] के एक ठो प्रमुख नदी बाटे।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{नदी-आधार}}
[[श्रेणी:दक्खिन अमेरिका के नदी]]
191kt9a700cm5q64la46z1dygzk6521
साक्षी मलिक
0
35361
815159
672364
2026-11-12T14:14:56Z
SM7Bot
7808
/* संदर्भ */ सफाई using [[Project:AWB|AWB]]
815159
wikitext
text/x-wiki
{{Infobox sportsperson
| headercolor =
| name = Sakshi Malik
| image = Sakshi Malik in 2016.jpg
| image_size =
| caption = Malik in 2016
| birth_name =
| fullname =
| nickname =
| residence =
| birth_date = {{birth date and age|df=yes|1992|9|3}}
| birth_place = Mokhra village, [[Rohtak district]], Haryana, India
| height = {{convert|162|cm|ftin|abbr=on}} (2016)<ref name="sm1">{{cite web|title=Sakshi Malik profile — Rio 2016|url=https://www.rio2016.com/en/athlete/sakshi-malik|website=rio2016.com|accessdate=18 August 2016|archiveurl=https://web.archive.org/web/20160817094118/https://www.rio2016.com/en/athlete/sakshi-malik|archivedate=17 August 2016}}</ref>
| weight = {{convert|58|kg}} (2016)<ref name="sm1"/>
| website =
| country = [[India]]
| event = [[Freestyle wrestling|58 kg freestyle]]
| club =
| team =
| turnedpro =
| coach = Ishwar Dahiya, Kuldeep Malik, Kripa Shankar, Manjeet
| nationals =
| olympics =
| medaltemplates = {{MedalSport | Women's [[Freestyle Wrestling]]}}
{{MedalCountry | {{IND}} }}
{{MedalCompetition|[[Olympic Games]]}}
{{MedalBronze| [[2016 Summer Olympics|2016 Rio de Janeiro]]| [[Wrestling at the 2016 Summer Olympics – Women's freestyle 58 kg|58 kg]]}}
{{MedalCompetition|[[Commonwealth Games]]}}
{{MedalSilver| [[2014 Commonwealth Games|2014 Glasgow]]| [[Wrestling at the 2014 Commonwealth Games – Women's freestyle 58 kg|58 kg]]}}
{{MedalBronze| [[2018 Commonwealth Games|2018 Gold Coast]]| [[Wrestling at the 2018 Commonwealth Games – Women's freestyle 58 kg|58 kg]]}}
{{MedalCompetition|[[Asian Wrestling Championships|Asian Championships]]}}
{{MedalBronze|[[2015 Asian Wrestling Championships|2015 Doha]]|60 kg}}
{{MedalSilver|[[2017 Asian Wrestling Championships|2017 New Delhi]]|60 kg}}
{{MedalBronze|[[2018 Asian Wrestling Championships|2018 Bishkek]]|62 kg}}
{{MedalCompetition|[[Commonwealth Wrestling Championship|Commonwealth Championships]]}}
{{MedalBronze| 2013 Johannesburg<ref>{{cite web|title=Commonwealth Championship: Female wrestling Seniors: 2013-12-05 Johannesburg (RSA): 63.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=02496A00E99C49BA9851C7C5378648F1&gkl=5|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=17 August 2016}}</ref> | 63 kg}}
{{MedalGold| 2017 Johannesburg<ref name="2017 CWC gold">{{cite news |title=Sakshi Malik wins gold in 62 kg category at Commonwealth Wrestling Championship |url=https://www.hindustantimes.com/other-sports/sakshi-malik-wins-gold-in-62-kg-category-at-commonwealth-wrestling-championship/story-nmUYIWfvsB2OS6tw1x0bZN.html?li_source=LI&li_medium=recommended-for-you |accessdate=26 February 2018 |work=[[Hindustan Times]] |agency=[[Press Trust of India]] (PTI) |date=17 December 2017 |archiveurl=https://archive.today/20180226200753/https://www.hindustantimes.com/other-sports/sakshi-malik-wins-gold-in-62-kg-category-at-commonwealth-wrestling-championship/story-nmUYIWfvsB2OS6tw1x0bZN.html?li_source=LI&li_medium=recommended-for-you |archivedate=26 February 2018 |dead-url=no |df=dmy-all }}</ref> | 62 kg}}
{{MedalCompetition | World Junior Championships}}
{{MedalBronze| 2010 Budapest<ref>{{cite web|title=World Championship: Female wrestling Juniors: 2010-07-22 Budapest (HUN): 59.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=89D5474D4FFE4CDCBB19AE1EC32A865E&gkl=5|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=5 September 2016}}</ref> | 59 kg}}
{{MedalCompetition | Asian Junior Championships}}
{{MedalSilver| 2009 Manila<ref>{{cite web|title=Asian Championship: Female wrestling Juniors: 2009-07-09 Manila (PHI): 59.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=CE8A9331A7994F4485A603ACF8223C1E&gkl=5|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=5 September 2016}}</ref> | 59 kg}}
{{MedalGold| 2012 Almaty<ref>{{cite web|title=Asian Championship: Female wrestling Juniors: 2012-05-31 Almaty (KAZ): 63.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=FB5E2F42E4A8453AA03EDE2D51987C1E&gkl=6|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=5 September 2016}}</ref> | 63 kg}}
| show-medals =
}}
'''साक्षी मलिक''' (जनम: 3 सितंबर 1992) भारत क एगो महिला [[पहलवान]] बाड़ीं। [[ब्रीजील]] के [[रियो डि जेनेरियो]] में भयल [[2016 ग्रीष्मकालीन ओलंपिक]] में साक्षी [[कुश्ती]] में काँसा क पदक जितली। महिला कुश्ती में पदक जीते वाली ई पहिली पहलवान बाड़ीं।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{खिलाड़ी-आधार}}
[[श्रेणी:1992 में जनम]]
[[श्रेणी:महिला पहलवान]]
[[श्रेणी:जियत लोग]]
7b4cm2koz64opod5po2avvkjojils95
815182
815159
2026-11-12T15:20:52Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815182
wikitext
text/x-wiki
{{Infobox sportsperson
| headercolor =
| name = Sakshi Malik
| image = Sakshi Malik in 2016.jpg
| image_size =
| caption = Malik in 2016
| birth_name =
| fullname =
| nickname =
| residence =
| birth_date = {{birth date and age|df=yes|1992|9|3}}
| birth_place = Mokhra village, [[Rohtak district]], Haryana, India
| height = {{convert|162|cm|ftin|abbr=on}} (2016)<ref name="sm1">{{cite web|title=Sakshi Malik profile — Rio 2016|url=https://www.rio2016.com/en/athlete/sakshi-malik|website=rio2016.com|accessdate=18 August 2016|archiveurl=https://web.archive.org/web/20160817094118/https://www.rio2016.com/en/athlete/sakshi-malik|archivedate=17 August 2016}}</ref>
| weight = {{convert|58|kg}} (2016)<ref name="sm1"/>
| website =
| country = [[India]]
| event = [[Freestyle wrestling|58 kg freestyle]]
| club =
| team =
| turnedpro =
| coach = Ishwar Dahiya, Kuldeep Malik, Kripa Shankar, Manjeet
| nationals =
| olympics =
| medaltemplates = {{MedalSport | Women's [[Freestyle Wrestling]]}}
{{MedalCountry | {{IND}} }}
{{MedalCompetition|[[Olympic Games]]}}
{{MedalBronze| [[2016 Summer Olympics|2016 Rio de Janeiro]]| [[Wrestling at the 2016 Summer Olympics – Women's freestyle 58 kg|58 kg]]}}
{{MedalCompetition|[[Commonwealth Games]]}}
{{MedalSilver| [[2014 Commonwealth Games|2014 Glasgow]]| [[Wrestling at the 2014 Commonwealth Games – Women's freestyle 58 kg|58 kg]]}}
{{MedalBronze| [[2018 Commonwealth Games|2018 Gold Coast]]| [[Wrestling at the 2018 Commonwealth Games – Women's freestyle 58 kg|58 kg]]}}
{{MedalCompetition|[[Asian Wrestling Championships|Asian Championships]]}}
{{MedalBronze|[[2015 Asian Wrestling Championships|2015 Doha]]|60 kg}}
{{MedalSilver|[[2017 Asian Wrestling Championships|2017 New Delhi]]|60 kg}}
{{MedalBronze|[[2018 Asian Wrestling Championships|2018 Bishkek]]|62 kg}}
{{MedalCompetition|[[Commonwealth Wrestling Championship|Commonwealth Championships]]}}
{{MedalBronze| 2013 Johannesburg<ref>{{cite web|title=Commonwealth Championship: Female wrestling Seniors: 2013-12-05 Johannesburg (RSA): 63.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=02496A00E99C49BA9851C7C5378648F1&gkl=5|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=17 August 2016}}</ref> | 63 kg}}
{{MedalGold| 2017 Johannesburg<ref name="2017 CWC gold">{{cite news |title=Sakshi Malik wins gold in 62 kg category at Commonwealth Wrestling Championship |url=https://www.hindustantimes.com/other-sports/sakshi-malik-wins-gold-in-62-kg-category-at-commonwealth-wrestling-championship/story-nmUYIWfvsB2OS6tw1x0bZN.html?li_source=LI&li_medium=recommended-for-you |accessdate=26 February 2018 |work=[[Hindustan Times]] |agency=[[Press Trust of India]] (PTI) |date=17 December 2017 |archiveurl=https://archive.today/20180226200753/https://www.hindustantimes.com/other-sports/sakshi-malik-wins-gold-in-62-kg-category-at-commonwealth-wrestling-championship/story-nmUYIWfvsB2OS6tw1x0bZN.html?li_source=LI&li_medium=recommended-for-you |archivedate=26 February 2018 |url-status=live |df=dmy-all }}</ref> | 62 kg}}
{{MedalCompetition | World Junior Championships}}
{{MedalBronze| 2010 Budapest<ref>{{cite web|title=World Championship: Female wrestling Juniors: 2010-07-22 Budapest (HUN): 59.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=89D5474D4FFE4CDCBB19AE1EC32A865E&gkl=5|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=5 September 2016}}</ref> | 59 kg}}
{{MedalCompetition | Asian Junior Championships}}
{{MedalSilver| 2009 Manila<ref>{{cite web|title=Asian Championship: Female wrestling Juniors: 2009-07-09 Manila (PHI): 59.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=CE8A9331A7994F4485A603ACF8223C1E&gkl=5|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=5 September 2016}}</ref> | 59 kg}}
{{MedalGold| 2012 Almaty<ref>{{cite web|title=Asian Championship: Female wrestling Juniors: 2012-05-31 Almaty (KAZ): 63.0 kg|url=https://www.iat.uni-leipzig.de/datenbanken/dbfoeldeak/daten.php?wkid=FB5E2F42E4A8453AA03EDE2D51987C1E&gkl=6|website=iat.uni-leipzig.de|publisher=[[United World Wrestling]]|accessdate=5 September 2016}}</ref> | 63 kg}}
| show-medals =
}}
'''साक्षी मलिक''' (जनम: 3 सितंबर 1992) भारत क एगो महिला [[पहलवान]] बाड़ीं। [[ब्रीजील]] के [[रियो डि जेनेरियो]] में भयल [[2016 ग्रीष्मकालीन ओलंपिक]] में साक्षी [[कुश्ती]] में काँसा क पदक जितली। महिला कुश्ती में पदक जीते वाली ई पहिली पहलवान बाड़ीं।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{खिलाड़ी-आधार}}
[[श्रेणी:1992 में जनम]]
[[श्रेणी:महिला पहलवान]]
[[श्रेणी:जियत लोग]]
m1xhvoondswz7i73o52r0h1b6x4lw5i
ट्रिनिडाड आ टोबैगो
0
36712
815158
811346
2026-11-12T14:14:51Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815158
wikitext
text/x-wiki
{{Infobox country
| coordinates = {{Coord|10|40|0|N|61|30|27|W|type:city_region:TT-POS|display=inline}}
| conventional_long_name = Republic of Trinidad and Tobago
| image_flag = Flag of Trinidad and Tobago.svg
| image_coat = Coat of arms of Trinidad and Tobago (2025).svg
| national_motto = Together We Aspire, Together We Achieve
| national_anthem = "[[Forged from the Love of Liberty]]"<br/>
| common_name = Trinidad and Tobago
| image_map = Trinidad and Tobago (orthographic projection).svg
| image_map2 = Trinidad and Tobago - Location Map (2013) - TTO - UNOCHA.svg
| capital = [[Port of Spain]]
| largest_city = [[Chaguanas]]<br> {{coord|10|31|7|N|61|24|37|W|display=inline}}
| official_languages = [[Trinidadian English|English]]<ref>{{Cite web |url=https://www.ttconnect.gov.tt/gortt/portal/ttconnect/!ut/p/a1/04_Sj9CPykssy0xPLMnMz0vMAfGjzOK9A40MTD0tjQ38Aw0sDYyCPA1dDUy9jd2DDIEKIlEUBLm7ARW4mhp6eIcZGxgYEKffAAdwJKg_ODVPP1w_Cq8yLwMMBZjOBCvA446C3NCICs9MRwCWELx4/dl5/d5/L2dBISEvZ0FBIS9nQSEh/?WCM_GLOBAL_CONTEXT=/gortt/wcm/connect/GorTT%20Web%20Content/ttconnect/home/about+t+and+t/general+information/language |title=आर्काइव कॉपी के बा |access-date=2018-09-26 |archive-date=2018-06-15 |archive-url=https://web.archive.org/web/20180615191351/https://www.ttconnect.gov.tt/gortt/portal/ttconnect/!ut/p/a1/04_Sj9CPykssy0xPLMnMz0vMAfGjzOK9A40MTD0tjQ38Aw0sDYyCPA1dDUy9jd2DDIEKIlEUBLm7ARW4mhp6eIcZGxgYEKffAAdwJKg_ODVPP1w_Cq8yLwMMBZjOBCvA446C3NCICs9MRwCWELx4/dl5/d5/L2dBISEvZ0FBIS9nQSEh/?WCM_GLOBAL_CONTEXT=%2Fgortt%2Fwcm%2Fconnect%2FGorTT%20Web%20Content%2Fttconnect%2Fhome%2Fabout+t+and+t%2Fgeneral+information%2Flanguage |url-status=dead }}</ref>
| languages_type = Other languages
| languages = [[Trinidadian Creole|Trinidadian English Creole]]<br>[[Tobagonian Creole|Tobagonian English Creole]]<ref>{{cite web | url=https://www.ethnologue.com/country/TT/languages | title=Trinidad and Tobago - Languages | publisher=Ethnologue.com | accessdate=2018-05-20}}</ref>
| ethnic_groups = {{unbulleted list
| 35.43% [[Indo-Trinidadian and Tobagonian|Indian]]
| 34.22% [[Afro-Trinidadians and Tobagonians|African]]
| 22.82% [[Demographics of Trinidad and Tobago#Mixed ethnicity|Multiracial]]<ul><ul>{{small|• 7.66% [[Dougla]]}}<br>{{small|(African-Indian)}}</ul></ul>
| 0.65% [[White Trinidadian and Tobagonian|European]]<ul><ul>{{small|• 0.06% [[Portuguese people|Portuguese]]}}</ul></ul>
| 0.30% [[Chinese Trinidadian and Tobagonian|Chinese]]
| 0.11% [[Indigenous peoples of the Americas|Indigenous Amerindian]]<br>{{small|(incld. the [[Santa Rosa First Peoples Community]])}}
| 0.08% [[Arabs|Arab]]
| 0.17% [[Demographics of Trinidad and Tobago#Ethnic groups|Other]]
| 6.22% Undeclared
}}
| ethnic_groups_year = 2011
| ethnic_groups_ref = <ref name="guardian.co.tt">{{cite web|url=https://guardian.co.tt/sites/default/files/story/2011_DemographicReport.pdf|format=PDF|title=TRINIDAD AND TOBAGO 2011 POPULATION AND HOUSING CENSUS DEMOGRAPHIC REPORT|website=Guardian.co.tt|accessdate=2017-08-02|archive-url=https://web.archive.org/web/20171019211618/https://guardian.co.tt/sites/default/files/story/2011_DemographicReport.pdf|archive-date=19 अक्टूबर 2017|url-status=|df=dmy-all}}</ref>
| demonym = {{unbulleted list
|[[Trinidadians and Tobagonians]]
|[[Trini|Trini (colloquial)]]
|Trinbagonian<ref>{{Cite web |url=https://www.macmillandictionary.com/dictionary/british/trinbagonian |title=आर्काइव कॉपी के बा |access-date=2018-09-26 |archive-date=2018-06-20 |archive-url=https://web.archive.org/web/20180620181304/https://www.macmillandictionary.com/dictionary/british/trinbagonian |url-status=dead }}</ref>
}}
| membership = [[United Nations]], [[Caribbean Community]], [[World Trade Organization]], [[Community of Latin American and Caribbean States]], [[Association of Caribbean States]], [[Organization of American States]], [[Commonwealth of Nations]], [[Alliance of Small Island States]], [[African, Caribbean and Pacific Group of States]]
| established_event1 = Republic
| established_date1 = August 1st 1976<br>{{small|(celebrated September 24th)}}<ref>thecommonwealth.org/our-member-countries/trinidad-and-tobago/history</ref><ref>https://www.discovertnt.com/history</ref><ref>https://www.mytobago.info/history.php</ref>
| area_km2 = 5,131
| area_rank = 165th <!-- Area rank should match [[List of countries and dependencies by area]] -->
| area_sq_mi = 1,981
| percent_water = negligible
| population_estimate = 1,353,895<ref>{{cite web|url=http://cso.gov.tt/|title=Home|first=Central Statistical Office|last=(CSO)|publisher=|access-date=2018-09-26|archive-date=2017-05-25|archive-url=https://web.archive.org/web/20170525033753/http://cso.gov.tt/|url-status=dead}}</ref>
| population_census = 1,328,019<ref>{{cite report |title=Trinidad and Tobago 2011 Population and Housing Census Demographic Report |url=http://www.tt.undp.org/content/dam/trinidad_tobago/docs/DemocraticGovernance/Publications/TandT_Demographic_Report_2011.pdf?download |page=2 |publisher=Trinidad and Tobago Central Statistical Office |accessdate=27 May 2016 |archive-date=9 October 2016 |archive-url=https://web.archive.org/web/20161009090940/http://www.tt.undp.org/content/dam/trinidad_tobago/docs/DemocraticGovernance/Publications/TandT_Demographic_Report_2011.pdf?download |url-status=dead }}</ref>
| population_estimate_year = 2016
| population_estimate_rank = 152
| population_census_year = 2011
| population_density_km2 = 254.4
| population_density_rank =
| population_density_sq_mi = 659.2
| GDP_PPP = $44.654 billion<ref name="imf2">{{cite web|url=https://www.imf.org/external/pubs/ft/weo/2017/01/weodata/weorept.aspx?sy=2017&ey=2022&scsm=1&ssd=1&sort=country&ds=.&br=1&pr1.x=51&pr1.y=11&c=369&s=NGDPD%2CNGDPDPC%2CPPPGDP%2CPPPPC&grp=0&a=|title=Report for Selected Country Groups and Subjects (PPP valuation of country GDP)|publisher=IMF|accessdate=25 February 2017}}
</ref>
| GDP_PPP_year = 2017
| GDP_PPP_rank = 110th
| GDP_PPP_per_capita = $32,520<ref name=imf2/>
| GDP_PPP_per_capita_rank = 36th
| GDP_nominal = $21.748 billion<ref name=imf2/>
| GDP_nominal_year = 2017
| GDP_nominal_per_capita = $15,838<ref name=imf2/>
| Gini = 39.0 <!--number only-->
| Gini_year = 2012
| Gini_change = <!--increase/decrease/steady-->
| Gini_ref = <ref>Carla, By. (12 मार्च 2013) [http://www.trinidadexpress.com/business-magazine/Allowing__govt_to_manage_better-197710671.html Allowing govt to manage better | Trinidad Express Newspaper | Business Express] {{Webarchive|url=https://web.archive.org/web/20130314181759/http://www.trinidadexpress.com/business-magazine/Allowing__govt_to_manage_better-197710671.html |date=14 मार्च 2013 }}. Trinidadexpress.com. Retrieved 23 December 2013.</ref>
| Gini_rank =
| HDI = 0.784 <!--number only-->
| HDI_year = 2017<!-- Please use the year to which the data refers, not the publication year-->
| HDI_change = increase<!--increase/decrease/steady-->
| HDI_ref = <ref name="HDI">{{cite web |url=http://hdr.undp.org/sites/default/files/2018_human_development_statistical_update.pdf |title=2018 Human Development Report |year=2017 |accessdate=15 September 2018 |publisher=United Nations Development Programme }}</ref>
| HDI_rank = 69th
| currency = [[Trinidad and Tobago dollar]]
| currency_code = TTD
| time_zone = [[Atlantic Standard Time]]
| utc_offset = -4
| utc_offset_DST = -4
| time_zone_DST = not observed
| date_format = dd/mm/yyyy
| drives_on = [[Right- and left-hand traffic|left]]
| calling_code = [[North American Numbering Plan|+1]] [[Area code 868|(868)]]
| cctld = [[.tt]]
| footnote_a =
| religion = {{vunblist |49.6% [[Christianity|Christian]]|18.2% [[Hinduism in Trinidad and Tobago|Hindu]]|5.7% [[Spiritual Baptist]]| 5.0% [[Islam in Trinidad and Tobago|Muslim]]|1.2% [[Bahá'í Faith in Trinidad and Tobago|Bahá'í]]|0.9% [[Trinidad Orisha|Orisha-Shango]] ([[Yoruba religion|Yoruba]])|0.3% [[Rastafari]]an|5.8% [[Religion in Trinidad and Tobago|Other]]|11.1% Not stated|2.2% [[Irreligion|None]]}}
| religion_year = 2011
| religion_ref = <ref name="guardian.co.tt"/><ref>{{cite web|url=http://www.thearda.com/QL2010/QuickList_40.asp|title=Most Baha'i Nations (2010) – QuickLists – The Association of Religion Data Archives|website=Thearda.com|accessdate=2 अगस्त 2017|archive-date=2018-12-25|archive-url=https://web.archive.org/web/20181225050256/http://www.thearda.com/QL2010/QuickList_40.asp|url-status=dead}}</ref>
| area_magnitude = 1 E9
| country_code =
}}
'''ट्रिनिडाड आ टोबैगो''' [[दक्खिन अमेरिका]] महादीप में एक ठो देस बाटे। एकर आधिकारिक नाँव '''रिपब्लिक ऑफ ट्रिनिडाड एंड टोबैगो''' बा आ ई मुख्य जमीन से थोड़ी सा दूरी पर दू गो दीप के रूप में बाटे। ई [[वेनेजुएला]] से मात्र 11 किलोमीटर दूर समुंद्र में बा।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:उत्तर अमेरिका के देस]]
[[श्रेणी:यूनाइटेड नेशंस के सदस्य देस]]
{{geo-stub}}
aqbkukvda8ftml3wlpbcly2hdzji96u
कृति सैनन
0
38561
815176
789513
2026-11-12T15:20:17Z
SM7Bot
7808
सफाई, replaced: |dead-url=no → |url-status=live (4) using [[Project:AWB|AWB]]
815176
wikitext
text/x-wiki
{{Infobox person
|image = File:Kriti Sanon at the launch of 'Whistle Baja' song from 'Heropanti'.jpg
|alt = Kriti Sanon
|caption = हीरोपंती फिलिम में सैनन
|birth_date = {{birth date and age|df=yes|1990|07|27}}<ref>{{Cite web| title = Varun Dhawan and I think in the same filmy way: Kriti Sanon| first = Shalvi | last = Mangaokar| work = [[Hindustan Times]]| date = 27 July 2015 | accessdate = 17 अप्रैल 2016| url = http://www.hindustantimes.com/bollywood/varun-dhawan-and-i-think-in-the-same-filmy-way-kriti-sanon/story-y6QqoDZaIFvDyqL5l9JupL.html}}</ref><ref>{{Cite web| title = Dilwale: Will start shooting with Shah Rukh and Kajol in mid-August, says Kriti Sanon|| work = [[India Today]]
| date = 29 July 2015| accessdate = 17 अप्रैल 2016| url = http://indiatoday.intoday.in/story/dilwale-shooting-will-start-shooting-with-shah-rukh-khan-and-kajol-in-mid-august-says-kriti-sanon-bulgaria-varun-dhawan-release-december-18/1/454803.html}}</ref>
|birth_place = [[नई दिल्ली]], [[भारत]]
|nationality = [[भारत|भारतीय]]
|height = <!--Must be sourced-->
|occupation = हिरोईन, मॉडल
|years_active = 2014–अबहीं ले
}}
'''कृति सैनन''' एक ठो भारतीय फिलिम ऐक्ट्रेस बाड़ी। कीर्ति सैनन के [[बॉलीवुड|हिंदी सिनेमा]] में एक्टिंग करे खातिर [[बॉलीवुड ऐक्ट्रेस लोग के लिस्ट|बॉलीवुड ऐक्ट्रेस]] के रूप में जानल जाला।
== फिल्मोग्राफी ==
===फिलिम===
[[File:Kriti Sanon promotes ‘Bareilly Ki Barfi’.jpg|thumb|upright=0.8|2017 में ''बरेली की बर्फी'' के रगों इवेंट में सनोन]]
{| class="wikitable plainrowheaders"
|- style="text-align:center;"
! scope="col"|साल
! scope="col"|फिलिम
! scope="col"|रोल
! class="unsortable" scope="col"|Notes
|-
|2014
!scope="row"|'' नेनोक्काडाईन''
|समीरा
|तेलुगु फिलिम
|-
|2014
!scope="row"|''हीरोपंती''
|डिंपी
|
|-
|2015
!scope="row"|''दोहचे''
|मीरा
|तेलुगु फिलिम
|-
|2015
!scope="row"|''दिलवाले (2015)''
|इशिता मलिक
|
|-
|2017
!scope="row"|''राब्ता''
|सेरा सिंह/शीबा
|
|-
|2017
!scope="row" |''बरेली की बर्फी''
|बिट्टी मिश्रा
|
|-
|2018
!scope="row" |''[[स्त्री (2018 फिलिम)|स्त्री]]''
|नाँव ना
| गाना "आओ कभी हवेली पे" में इस्पेशल अपीयरेंस<ref>{{cite news|last=Rakshit|first=Nayandeep|url=http://www.dnaindia.com/bollywood/report-kriti-sanon-shoots-her-first-item-number-for-stree-2648195|title=Kriti Sanon shoots her first item number for 'Stree'|work=Daily News and Analysis|date=11 August 2018|access-date=12 August 2018}}</ref>
|-
|2019
!scope="row" | ''लुका छुपी''
|पोस्ट-प्रोडक्शन<ref>{{Cite news|url=https://www.firstpost.com/entertainment/kriti-sanon-wraps-up-shoot-for-luka-chuppi-co-starring-kartik-aaryan-film-to-release-in-march-2019-5188941.html|title=Kriti Sanon wraps up shoot for Luka Chuppi, co-starring Kartik Aaryan; film to release in March 2019- Entertainment News, Firstpost|work=Firstpost|access-date=2018-09-19|language=en-US}}</ref>
|-
|2019
!scope="row" | ''कलंक''
|इस्पेशल अपीयरेंस<ref>{{cite news|last=Coutinho|first=Natasha|url=https://mumbaimirror.indiatimes.com/entertainment/bollywood/musical-reunion-for-kriti-sanon-varun-dhawan/articleshow/64392122.cms|title=Kalank: Kriti Sanon to grove with Varun Dhawan, Aditya Roy Kapur in a special song|work=Mumbai Mirror|date=31 May 2018|accessdate=31 May 2018|archive-url=https://web.archive.org/web/20180616104952/https://mumbaimirror.indiatimes.com/entertainment/bollywood/musical-reunion-for-kriti-sanon-varun-dhawan/articleshow/64392122.cms|archive-date=16 June 2018|url-status=live|df=dmy-all}}</ref>
|-
|2019
!scope="row" |''अर्जुन पटियाला''
|ऋतु रंधावा
|पोस्ट-प्रोडक्शन<ref name="ap"/>
|-
|2019
!scope="row" |''[[हाउसफुल 4]]''
|पोस्ट-प्रोडक्शन<ref>{{cite news|url=https://www.hindustantimes.com/bollywood/farah-khan-shares-pic-with-housefull-4-s-kriti-sanon-kriti-kharbanda-pooja-hegde/story-KATLnH22bbFHB9mPuIx6qO.html|title=Farah Khan shares pic with Housefull 4’s Kriti Sanon, Kriti Kharbanda, Pooja Hegde|work=Hindustan Times|date=14 July 2018|accessdate=2 August 2018|archive-url=https://web.archive.org/web/20180802112345/https://www.hindustantimes.com/bollywood/farah-khan-shares-pic-with-housefull-4-s-kriti-sanon-kriti-kharbanda-pooja-hegde/story-KATLnH22bbFHB9mPuIx6qO.html|archive-date=2 August 2018|url-status=live|df=dmy-all}}</ref>
|-
|2019
!scope="row" |''[[पानीपत (फिलिम)|पानीपत]]''
|पार्वती बाई
|
<!--Do not include titles that have not begun filming, per [[WP:CRYSTAL]] and [[WP:FILMOGRAPHY]].-->
|}
===म्यूजिक बीडियो===
{| class="wikitable"
|-
! साल
! गाना
! गायक-गायिका
! संगीतकार
! संदर्भ
|-
|2015
|"चल वहाँ जाते हैं"
|[[अरिजीत सिंह]]
|[[अमाल मलिक]]
|<ref>{{cite web|url=https://www.youtube.com/watch?v=NerQs_SOwRo|title=Chal Wahan Jaate Hain Full VIDEO Song - Arijit Singh - Tiger Shroff, Kriti Sanon - T-Series|first=|last=T-Series|date=16 July 2015|publisher=|accessdate=24 March 2018|via=YouTube|archive-url=https://web.archive.org/web/20180402071337/https://www.youtube.com/watch?v=NerQs_SOwRo|archive-date=2 April 2018|url-status=live|df=dmy-all}}</ref>
|-
|2017
|"पास आओ"
|[[प्राकृति कक्कड़]], [[अरमान मलिक]]
|[[अमाल मलिक]]
|<ref>{{cite web|url=https://www.youtube.com/watch?v=6cFcFX-Q4ik|title=Paas Aao Song - Sushant Singh Rajput Kriti Sanon - Amaal Mallik Armaan Malik Prakriti Kakar|first=|last=T-Series|date=8 July 2017|publisher=|accessdate=24 March 2018|via=YouTube|archive-url=https://web.archive.org/web/20170731131612/https://www.youtube.com/watch?v=6cFcFX-Q4ik|archive-date=31 July 2017|url-status=live|df=dmy-all}}</ref>
|}
==पुरस्कार आ नामांकन==
{| class="wikitable sortable"
|-
!वर्ष
!पुरस्कार
!श्रेणी
!चलचित्र
!नतिजा
|-
| २०१४
|[[स्टारडस्ट अवार्ड]]
|सुपरस्टार अफ टुमरो - महिला
|''[[हिरोपन्ती]]''
|{{nom}}<ref>{{cite web|title=Nominations for Stardust Awards 2014|url=http://www.bollywoodhungama.com/movies/features/type/view/id/7612|publisher=Bollywood Hungama|date=8 दिसंबर 2014|accessdate=8 दिसंबर 2014}}</ref>
|-
|२०१५
| [[बिग स्टार इन्टरटेन्मेन्ट अवार्ड]]
| मस्ट इन्टरतेनिङ एक्टर- महिला
| ''[[हिरोपन्ती]]''
| {{won}}<ref>{{cite news |title=BIG STAR Entertainment Awards 2014 Winners List |url=http://www.pinkvilla.com/entertainmenttags/abhishek-bachchan/big-star-entertainment-awards-2014-winners-list |publisher= |date=2014-12-18 |accessdate=2014-12-25 |archive-date=2019-01-07 |archive-url=https://web.archive.org/web/20190107024101/http://www.pinkvilla.com/entertainmenttags/abhishek-bachchan/big-star-entertainment-awards-2014-winners-list |url-status=dead }}</ref><ref>{{cite news |title=Winners of Big Star Entertainment Awards 2014 |url=http://www.indicine.com/movies/bollywood/winners-of-big-star-entertainment-awards-2014/ |publisher= |date=2014-12-19 |accessdate=2014-12-25 |archive-date=2019-01-09 |archive-url=https://web.archive.org/web/20190109155132/http://www.indicine.com/movies/bollywood/winners-of-big-star-entertainment-awards-2014/ |url-status=dead }}</ref>
|-
| २०१५
| [[स्क्रिन अवार्ड]]
| मस्ट प्रोमिसिङ न्युकमर - महिला
| ''[[हिरोपन्ती]]''
| {{nom}}<ref>{{cite news|title=Crowd Favourites|url=http://indianexpress.com/article/cities/delhi/crowd-favourites/|accessdate=5 January 2015|work=The Indian Express|date=3 January 2015}}</ref>
|-
| २०१५
| [[फिल्मफेयर अवार्ड]]
| [[फिल्मफेयर उत्कृष्ट नयाँ महिला कलाकारक लेल पुरस्कार|उत्कृष्ट महिला कलाकार]]
| ''[[हिरोपन्ती]]''
| {{won}}<ref>{{cite web| title=Winers Of Filmfare Awards 2015| url=http://timesofindia.indiatimes.com/entertainment/hindi/bollywood/news/60th-Britannia-Filmfare-Awards-2014-Complete-list-of-winners/articleshow/46080277.cms}}</ref>
|-
| २०१५
| [[आइफा अवार्ड]]
| स्टार डेब्यु अफ द इअर
| ''[[हिरोपन्ती]]''
| {{won}}
|-
| २०१५
| [[स्टार गिल्ड अवार्ड]]
| स्टार गिल्ड उत्कृष्ट महिला कलाकार
| ''[[हिरोपन्ती]]''
| {{won}}
|}
{{clear}}
==संदर्भ==
{{Reflist}}
[[श्रेणी:हिंदी फिलिम ऐक्ट्रेस]]
[[श्रेणी:जियत लोग]]
[[श्रेणी:1990 में जनम]]
{{actor-stub}}
cp4d2olgm5hyn72d174kjkvq8f52u20
कुवैत एयरवेज़
0
40038
815187
810151
2026-11-12T15:21:24Z
SM7Bot
7808
/* कोड साझा करार */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815187
wikitext
text/x-wiki
'''कुवैत एयरवेज़''' कुवैत क राष्ट्रीय वायु सेवा ह, जेकर मुख्यालय कुवैत अन्तर्राष्ट्रीय विमानक्षेत्र की परिसर में स्थित बा।<ref name="Kuwait Airways looks to double passengers at KWI ">{{cite news|title= Kuwait Airways looks to double passengers at KWI|first1= Alan|last1= Dron|publisher= Air Transport World|date= 22 जनवरी 2016|url= http://atwonline.com/airports-routes/kuwait-airways-looks-double-passengers-kwi}}</ref> इ कंपनी मध्य पूर्व, भारतीय उपमहाद्वीप, यूरोप, दक्षिण पूर्व एशिया एवं उत्तरी अमरीका में अनुसूचित अन्तर्राष्ट्रीय सेवा संचालित करेले। एकर प्रमुख आधार कुवैत अन्तर्राष्ट्रीय विमानक्षेत्र में आइल बा।
==इतिहास==
ए विमान सेवा का इतिहास 1953 मे व्यापारिन की एगो समूह द्वारा कुवैत सरकार की साथ 50:50 की भागेदारी मे शुरू कइल गइल [[कुवैत]] नॅशनल एयरवेज़ से शुरू होला।<ref name="Flight1958-539">{{cite journal|title= World Airline Directory – Kuwait Airways, Ltd.|journal= Flight|date= 18 अप्रैल 1958|number= 2569|volume= 73|page= 539|url= http://www.flightglobal.com/pdfarchive/view/1958/1958%20-%200523.html|archiveurl= https://web.archive.org/web/20170927202337/https://www.flightglobal.com/pdfarchive/view/1958/1958%20-%200523.html|archivedate= 2017-09-27|access-date= 2017-02-09|url-status= dead}}</ref> ओही वर्ष ब्रिटिश ओवरसीज एयरवेज़ कॉर्पोरेशन क एगो सहायक कंपनी ब्रिटिश इंटरनॅशनल एयरलाइन्स, जवन की कुवैत मे चार्टर्ड विमान सेवा और रखरखाव संबंधी सेवा प्रदान करे, ओकरी साथ एगो पाँच साल क अनुबंध कइल गइल। दुगो डकोटा विमानन की खरीदारी की साथ 16 मार्च 1954 से सेवा आरंभ हो गइल।<ref>{{cite news|title= Kuwait Airways Airlines |publisher=cleartrip.com|date= 9 फरवरी 2017|url=https://www.cleartrip.com/flight-booking/kuwait-airways-airlines.html}}</ref>
परिचालन की पहिला ही साल में ए विमान सेवा द्वारा 8966 यात्री लोग यात्रा कइल लो। जुलाई 1955 मे एकर नाँव कुवैत एयरवेज़ करा गइल और मई 1958 मे ब्रिटिश ओवरसीज एयरवेज़ कॉर्पोरेशन की साथ प्रबंधन और परिचालन खातिर एगो नया करार कइल गइल। अप्रैल 1959 मे कुवैत एयरवेज़ ब्रिटिश इंटरनॅशनल एयरलाइन क अधिग्रहण क लिहलस।
==कंपनी संबंधी मामला==
दिसंबर 2013 की जानकारी की अनुसार कुवैत एयरवेज़ कुवैत सरकार क पूर्ण स्वामित्व वाली कंपनी ह।<ref>{{cite news|title= UPDATE 1-Kuwait Airways to buy 25 new Airbus jets and lease 12 more|url= http://www.reuters.com/article/2013/12/02/kuwait-aircraft-idUSL5N0JH3GD20131202|work=Reuters|date= 2 दिसंबर 2013| archiveurl = https://web.archive.org/web/20140120164355/http://www.reuters.com/article/2013/12/02/kuwait-aircraft-idUSL5N0JH3GD20131202 | archivedate = 20 जनवरी 2014| deadurl=no}}</ref>
==मुख्य अधिकारी==
जनवरी 2016 की जानकारी की अनुसार अब्दुल्लाह अल शरहा एकर मुख्य कार्यकारी अधिकारी हवं।<ref name="Kuwait Airways looks to double passengers at KWI "/>
==मुख्यालय==
अल फ़रवानियाह गवरनोरेट मे स्थित कुवैत इंटरनॅशनल एयरपोर्ट प कुवैत एयरवेज़ क मुख्यालय बा।<ref>{{cite web|title= Kuwait Airways Head Quarters|work= Ahmadiah Contracting & Training Co.|url= http://www.ahmadiah.com/Product/KuwaitAirwaysHQ.aspx}}{{Dead link|date=October 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>
==सहायक कंपनियाँ और गठबंधन==
कुवैत एयरवेज़ क कईगो सहायक कंपनी बाड़ी स जवन की कुवैत एयरवेज़ की नियर निजीकरण की प्रक्रिया की अलग अलग चरण से गुजरत बाड़ी स।
* कुवैत एवियेशन सर्वीसज़ कंपनी (KASCO)
* ऑटोमेटेड सिस्टम्स कंपनी. (1989 से जी. डी. एस. प्रोवाइडर)
* ALAFCO
आपन बढ़त माँग और 1990 मे भइल युद्ध की दौरान आपन सेवा चालू रखे खातिर कुवैत एयरवेज़ कई सारा एयरलाइन्स के साथ गठबंधनों कइले बा।
* शॉरौक एयर (2003 मे परिचालन बंद)
* जेट एयरवेज़ (भारत)
* ट्रांस वर्ल्ड एयरलाइन्स (1 दिसंबर 1999 से जे.एफ. के. और शिकागो से कुवैत सिटी की मध्य कोड करार की साथ आरंभ)
==गंतव्य स्थान==
नवम्बर 2013 ले, एकरी मुख्य मथक कुवैत अंतर्राष्ट्रीय हवाई अड्डा से, कुवैत एयरवेज [[एशिया]], [[यूरोप]], उत्तरी [[अमरीका]] और मध्य पूर्व की 34 अन्तर्राष्ट्रीय गंतव्य स्थान खातिर उड़ान भरे ले।<ref>{{cite web|title= Winter Timetable (Effective 27 अक्टूबर 2013 – 29 मार्च 2013)|publisher= Kuwait Airways|date= 7 November 2013|url= http://www.kuwaitairways.com/data/site1/pdf/winter13-14.pdf|archiveurl= https://web.archive.org/web/20131212081947/http://www.kuwaitairways.com/data/site1/pdf/winter13-14.pdf|archivedate= 12 December 2013|access-date= 9 February 2017|url-status= dead}}</ref>
==कोड साझा करार==
निम्नलिखित एयरलाइन कंपनी से कुवैत एयरवेज क कोड साझा करार बा:<ref name="CAPA Kuwait Airways profile">{{cite web|url=http://centreforaviation.com/profiles/airlines/kuwait-airways-ku |title=Profile on Kuwait Airways |website=CAPA|publisher=Centre for Aviation|access-date=2016-11-03|archive-url=https://web.archive.org/web/20161103192920/http://centreforaviation.com/profiles/airlines/kuwait-airways-ku |archive-date=2016-11-03|url-status=live}}</ref>
* अलीतालिया
* इथियोपियन एयरलाइन्स
* येमेनिया
==वर्तमान जहाजी बेड़ा==
[[File:Kuwait Airways A320-200 9K-AKA DXB 2014-11-22.jpg|thumb|A Kuwait Airways Airbus A320-200 at Dubai International Airport in 2014.]]
[[File:Kuwait Airways Airbus A300B4 9K-AMD FRA 2014-08-22.jpg|thumb|A Kuwait Airways Airbus A300B4-600R on short final to Frankfurt Airport in 2014.]]
जनवरी 2017 एकरी बेड़ा में निम्नलिखित जहाज शामिल रहली स:<!-- <ref>{{cite web|url=https://www.kuwaitairways.com/en/about/pages/nwfleetinfo.aspx|title=Our Fleet|publisher=Kuwait Airways|accessdate=27 July 2016}} {{webarchive |url=https://web.archive.org/web/20160527155218/https://www.kuwaitairways.com/en/about/pages/nwfleetinfo.aspx |date=27 May 2016 }} </ref>--><ref name="Airfleets">{{cite web|title= Kuwait Airways fleet|publisher= Airfleets.net|url= http://www.airfleets.net/flottecie/Kuwait%20Airways.htm}}</ref>
एगो एयरबस A300-600, एगो A310-300, एगो A319, एगो A320, दुगो A340-500 और एगो बोईंग 747-8BBJ
==वर्तमान विकास==
ऑक्टोबर 2013 में, कुवैत एयरवेज की लगे मध्य पूर्व में सबसे प्राचीनतम में से औसत उम्र 20 साल वाला एगो एयरक्राफ्ट पार्क रहे। ओ महिना में, इ कम्पनी आपन रख रखाव क सुविधा प्रेस के देखे खातिर खोल दिहलस ताकि सभे देख ले की ओकर विमान बेड़ा क रख रखाव कौने तरह से होता, ओकरी पहिले एकर खराब रख रखाव से संबंधित बहुत अफवाह उड़ल रहे। ओही साल की दिसम्बर में इ कम्पनी एयरबस की साथ 15गो A320 नियो और 10 गो A350-900 लिहले क मेमोरेंडम ऑफ़ अंडरस्टैंडिंग साइन कइलस।
==संदर्भ==
<references/>
==बाहरी कड़ियाँ==
{{Commons|Kuwait Airways}}
* {{cite web|title= Summer Schedule (Effective 31 मार्च 2013 – 26 अक्टूबर 2013)|url= http://www.kuwaitairways.com/data/site1/pdf/s13sched.PDF|publisher= Kuwait Airways|archiveurl= https://web.archive.org/web/20131103100147/http://www.kuwaitairways.com/data/site1/pdf/s13sched.PDF|archivedate= 2013-11-03|date= 7 मार्च 2013|access-date= 2017-02-09|url-status= dead}}
[[श्रेणी:हवाई जहाज सेवा]]
8zljo3xenh1a2y1h7xpzvcujkymn6m9
श्रीलंकन एयरलाइंस
0
40600
815185
814033
2026-11-12T15:21:13Z
SM7Bot
7808
/* कोड्शेयर समझौता */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815185
wikitext
text/x-wiki
{{Infobox Airline
|airline = SriLankan Airlines<br>{{lang|si|ශ්රී ලංකන් ගුවන් සේවය}}<br>{{lang|ta|இலங்கை விமான சேவை}}
|logo =
|IATA = UL
|ICAO = ALK
|callsign = SRILANKAN
|founded = {{Start date|df=yes|1947}} (as Air Ceylon)
|commenced = {{Start date|df=yes|1979|09|01}}
|hubs = {{nowrap|Bandaranaike International Airport}}
|frequent_flyer = FlySmiLes
|alliance = Oneworld
|fleet_size = 20<ref>{{cite web|url=https://www.planespotters.net/airline/SriLankan-Airlines|title=SriLankan Airlines Fleet Details and History|publisher=|access-date=2017-03-02|archive-date=2007-02-16|archive-url=https://web.archive.org/web/20070216034132/http://www.planespotters.net/Airline/SriLankan-Airlines|url-status=dead}}</ref>
|destinations = 42<ref>{{cite web|title=SriLankan Airlines Flight Routes|url=http://www.srilankan.com/en_uk/plan-and-book/flight-routes-revamp}}</ref>
|company_slogan = ''You're Our World''
|subsidiaries = {{plainlist|
*Sri Lankan Catering<ref>{{cite web|url=http://www.srilankancatering.com/|title=Home - SriLankan Catering|publisher=}}</ref>
*Sri Lankan Holidays<ref>{{cite web|url=http://srilankanholidays.com/|title=SriLankan Holidays - SriLankan Airlines|publisher=|access-date=2017-03-02|archive-date=2003-10-03|archive-url=https://web.archive.org/web/20031003073023/http://www.srilankanholidays.com/|url-status=dead}}</ref>
*Sri Lankan Engineering (MRO)<ref>http://www.srilankan.com/mro/</ref>
*Sri Lankan Ground Service<ref>{{cite web|url=https://www.srilankan.com/ground-handling/welcome.htm|title=Corporate Profile - SriLankan Airlines - Ground Handling|publisher=}}</ref>
*Sri Lankan Aviation College<ref>{{cite web|url=http://www.srilankanaviationcollege.com/|title=COURSE FINDER|publisher=}}</ref>
*Sri Lankan Cares<ref>http://www.srilankan.com/corporate/en-US/Airline/about-srilankan-cares</ref>
}}
|headquarters = Level 3,<br>East Tower,<br>World Trade Centre,<br>Echelon Square,<br>Colombo 01,<br>Sri Lanka<ref>http://www.srilankan.com/en_uk/flying-with-us/contact-us</ref>
|website = {{url|http://www.srilankan.com}} (Sinhalese, Tamil, English)<ref>{{Cite web |url=http://www.news.lk/news/world/item/14664-srilankan-airlines-launches-websites-in-sinhala-and-tamil |title=SriLankan Airlines launches websites in Sinhala and Tamil |access-date=2017-03-02 |archive-date=2016-11-21 |archive-url=https://web.archive.org/web/20161121063156/http://www.news.lk/news/world/item/14664-srilankan-airlines-launches-websites-in-sinhala-and-tamil |url-status=dead }}</ref>
|key_people = Ajith N. Dias (Chairman) <br> Captain Suren Ratwatte (CEO)
|}}
'''श्रीलंकन एयरलाइंस''' लिमिटेड (पूर्व नांव एयर लंका) श्रीलंका क ध्वजवाहिका वायुसेवा ह। इ कंपनी आपन भण्डारनायके अन्तर्राष्ट्रीय विमानक्षेत्र, कोलंबो, श्रीलंका स्थित आधार एवं हब से ;;एशिया एवं यूरोप की गंतव्य स्थान खातिर वायुसेवा उपलब्ध करावेले। ए वायुसेवा का मुख्यालय भण्डारनायके अन्तर्राष्ट्रीय विमानक्षेत्र की परिसर में कोलंबो, [[श्रीलंका]] में स्थित बा।
इ वायुसेवा 1978 में एयर लंका की रूप में, मूल श्रीलंकाई ध्वज वाहक एयर सीलोन की पतन की बाद स्थापित कइल गइल रहे।
==इतिहास==
एयर लंका क शुरूआती जहाज सिंगापुर एयरलाइंस से पट्टा पर लिहल दुगो बोइंग 707 विमान रह न स। 15 अप्रैल 1982 के एयर लंका आल निप्पॉन एयरवेज से एल-1011 के खरीद लिहलस। फेर एगो और एल-1011 एयर कनाडा से लिहल गइल और एगो अन्य एल-1011 आल निप्पॉन से खरीदल गइल।
==रीब्रांडिंग==
एयर लंका, जवन की सरकार की मलिकी में रहे, ओकर आंशिक रूप से, 1998 में दुबई स्थित अमीरात समूह की द्वारा निवेश की साथ निजीकरण करा गइल। ए समझौता की तहत दस साल की अवधि खातिर सब विमानन क ग्राउंड हैंडलिंग और कोलंबो-भंडारनायके हवाई अड्डा प एयरलाइन खानपान क संचालन क विशेष अधिकार शामिल कइल गइल। अमीरात एयर लंका में $ 70 मिलियन में 40% हिस्सेदारी खरीद लिहलस (जवन की बाद में बढ़ के 43.6% हो गइल), एकरी बाद ए एयरलाइन क छवि और बेड़ा फिर चमकवले क मांग कइलस। सरकार ए विमानन कंपनी में बहुमत हिस्सेदारी के बरकरार रखलस, लेकिन निवेश और प्रबंधन की निर्णय खातिर अमीरात के पूर्ण नियंत्रण दिहलस। 1998 में, एयर लंका क श्रीलंकन एयरलाइंस की तौर पर रीब्रांडिंग भइल।<ref>"World Airline Directory." ''Flight International''. 14–20 मार्च 1990 [http://www.flightglobal.com/pdfarchive/view/1990/1990%20-%200709.html?search="Airlift International" 57].</ref>
==गंतव्य स्थल==
जनवरी 2016 ले श्रीलंकन एयरलाइंस 20 देश में 42 गंतव्य स्थल खातिर 258 साप्ताहिक उडान क संचालन करत रहली ह।<ref name=":2">{{Cite web|title = Flight Schedules - SriLankan Airlines flights to London, Colombo, Male, Bangkok, etc.|url = http://www.srilankan.com/en_uk/plan-and-book/flight-routes|work=Srilankan|access-date=11 जनवरी 2016}}</ref><ref name=":1">{{Cite web|title = Our Airline|url = http://www.srilankan.com/corporate/en-US/Airline/profile|work=Srilankan|access-date=11 जनवरी 2016}}</ref> SriLankan Airlines joined the Oneworld airline alliance on 1 मई 2014.<ref name=":1" /> श्रीलंकन एयरलाइन मालदीव और कोलंबो के बीच 30 से अधिक साप्ताहिक उड़ान की साथ, मालदीव में सबसे बड़ा विदेशी वाहक ह।<ref>{{Cite news|title=Maldives tourism minister meets Srilankan Airlines chairman at WTM|url=http://www.eturbonews.com/65582/maldives-tourism-minister-meets-srilankan-airlines-chairman-wtm|work=eturbo News|access-date=1 जनवरी 2016}}</ref>
==कोड्शेयर समझौता==
श्रीलंकन एयरलाइंस (दिसंबर 2013 से) निम्नलिखित एयरलाइन कंपनीयन की साथ कोड्शेयर करार लागू कइले बा:<ref name="CAPA SriLankan profile">{{cite web|url=http://centreforaviation.com/profiles/airlines/srilankan-airlines-ul |title=Profile on SriLankan Airlines |website=CAPA|publisher=Centre for Aviation|access-date=2016-10-29|archive-url=https://web.archive.org/web/20161029193825/http://centreforaviation.com/profiles/airlines/srilankan-airlines-ul |archive-date=2016-10-29|url-status=live}}</ref>
* एयर बर्लिन (वनवर्ल्ड)
* एयर कनाडा (स्टार एलायंस)
* अलितालिया (स्काई टीम)
* अमेरिकन एयरलाइंस (वनवर्ल्ड)
* एसियाना एयरलाइंस (स्टार एलायंस)
* दालचीनी एयर
* अमीरात
* इतिहाद एयरवेज
* फिनएयर (वनवर्ल्ड)
* जापान एयरलाइंस (वनवर्ल्ड)
* जेटस्टार एशिया एयरवेज
* मलेशिया एयरलाइंस (वनवर्ल्ड)
* निकी
* ओमान एयर
* क्वांटास (वनवर्ल्ड)
* कतर एयरवेज (वनवर्ल्ड)
* सिंगापुर एयरलाइंस (स्टार एलायंस)
* वनवर्ल्ड
1 मई 2014 के श्रीलंकन एयरलाइंस वनवर्ल्ड गठबंधन में शामिल होखले की साथ भारतीय उपमहाद्वीप में पहिला एयरलाइन बनल जवन ए गठबंधन क पूर्ण सदस्य बनल बा।
==बेड़ा==
श्रीलंकन एयरलाइंस एयरबस A320 एयरबस A321, एयरबस A319 और एयरबस A330 क विमानी बेड़ा से संचालन करेला। ए एयरलाइन खातिर एयरबस A320 नियो और एयरबस विमान A321 नियो भी जरूरत की समय उपलब्ध रहेला।<ref>{{Cite web|title=Srilankan Airlines Flight Schedule |url=https://www.cleartrip.com/flight-booking/srilankan-airlines.html|publisher=cleartrip.com |access-date=2 मार्च 2017}}</ref>
==घटना और दुर्घटना==
===1980 की दशक में===
3 मई 1986 के तमिल ईलम लिबरेशन टाइगर्स द्वारा लगावल एगो बम से भंडारनायके अंतरराष्ट्रीय हवाई अड्डा प टेकऑफ की पहिले ही बोर्ड फ्लाइट UL512 में विस्फोट हो गइल। एकरी चलते कुल 128 यात्रीन में से 14 यात्री लोगन क मौत हो गइल।
===2000 के दशक में===
24 जुलाई 2001 के, तमिल टाइगर आतंकवादी कोलंबो- भंडारनायके अंतरराष्ट्रीय हवाई अड्डे प एगो प्रमुख आत्मघाती हमला कईन स जेकरी चलते 14 आतंकी सहित 19 लोगन क मौत भइल।<ref>{{cite web| year = 2001| url = http://www.janes.com/security/international_security/news/jir/jir010903_1_n.shtml| title = Intelligence failures exposed by Tamil Tiger airport attack| publisher = Jane's Intelligence Review| accessdate = 9 अप्रैल 2008| archiveurl = https://web.archive.org/web/20070303021604/http://www.janes.com/security/international_security/news/jir/jir010903_1_n.shtml| archivedate = 2007-03-03| url-status = bot: unknown}}</ref><ref>{{cite web |url=http://www.aviation-safety.net/database/operator/airline.php?var=6660 |title=SriLankan Airlines (Aviation Safety Network) |publisher=Aviation-safety.net |date=4 मार्च 2012 |access-date=2017-03-02 |archive-date=2014-01-12 |archive-url=https://web.archive.org/web/20140112143852/http://www.aviation-safety.net/database/operator/airline.php?var=6660 |url-status=dead }}</ref>
==संदर्भ==
<references/>
==बाहरी कड़ियाँ==
* {{Official website|http://www.srilankan.com}}
[[श्रेणी:हवाई जहाज सेवा]]
aa6xfjzglveo9y7uvv5q7lakiqgb32h
आदित्यनाथ
0
40969
815314
810461
2026-11-12T16:47:08Z
SM7Bot
7808
/* राजनीतिक बिबाद */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815314
wikitext
text/x-wiki
{{Infobox Indian politician
| name =योगी आदित्यनाथ
| image =The Uttar Pradesh Chief Minister, Shri Yogi Adityanath in New Delhi on February 10, 2018 (cropped).jpg
| birth_name = अजय मोहन बिष्ट<ref name=Huffington/>
| birth_date = {{Birth date and age|1972|6|5|df=y}}
| birth_place = पंचूड़, [[पौड़ी गढ़वाल जिला|पौड़ी गढ़वाल]], [[उत्तर प्रदेश]] (अब [[उत्तराखंड]] में)
| office = [[उत्तर प्रदेश के मुख्यमंत्री लोग के लिस्ट|उत्तर प्रदेश क 21<small>वाँ</small> मुख्यमंत्री]]
| term_start = 19 मार्च 2017
| term_end =
| predecessor = [[अखिलेश यादव]]
| governor = [[राम नाइक]]
| deputy = [[केशव प्रसाद मौर्य]]<br>[[दिनेश शर्मा]]
| constituency_MP2 = [[गोरखपुर (लोकसभा चुनावक्षेत्र)|गोरखपुर]]
| parliament2 = भारतीय
| term_start2 = 1998
| term_end2 =
| predecessor2 = महंथ [[अवैद्यनाथ]]
| successor2 =
| party = [[भारतीय जनता पार्टी]]
| occupation = राजनेता<br>धार्मिक नेता
| alma_mater = [[हेमवती नंदन बहुगुणा गढ़वाल बिस्वबिद्यालय|गढ़वाल बिस्वबिद्यालय]]
| footnotes =
| religion = [[हिंदू]]<!-- ब्यक्ति के धार्मिक नेता के रूप में पहिचान बाटे; एकरा के न हटावल जाय। -->
| website = {{url|www.yogiadityanath.in}}
}}
'''आदित्यनाथ''' (जनम: अजय मोहन बिष्ट<ref name=Huffington>{{Cite news|url=http://www.huffingtonpost.in/2017/03/18/in-the-end-this-is-what-worked-in-yogi-adityanaths-favour_a_21902267/ |title=In The End, This Is What Worked In Yogi Adityanath's Favour |trans-title=अंत में, जवन चीज योगी आदित्यनाथ के पक्ष में काम कइल|publisher=huffingtonpost.in|date=18 मार्च 2017|access-date=19 मार्च 2017|language=en}}</ref>; 5 जून 1972) जिनका के '''योगी आदित्यनाथ''' के नाँव से बेसी जानल जाला, भारतीय राजनीतिक नेता आ [[उत्तर प्रदेश]] के वर्तमान मुख्यमंत्री बाड़ें।<ref>{{cite web|url=http://www.patrika.com/news/lucknow/chetan-chauhan-and-mohsin-raza-got-ministry-in-yogi-aditynath-cabinet-after-up-elections-2017-news-in-hindi-1533438/ |title=Chetan chauhan and mohsin raza got ministry in Yogi aditynath cabinet after UP elections 2017 news in hindi-य་गༀ क༇ ऎंतŕĽ?रༀऎंथल ऎ༇ं 'एलŕĽ?ŕ¤˛ŕĽ‡ŕ¤Źŕ¤žŕ¤œŕĽ€' कर༇ंग༇ ऌ་ खिलञथटༀ - Patrika News |publisher=Patrika.com |date= |accessdate=2017-03-19}}</ref><ref>{{cite web |url=http://www.thebhojpuri.com/politics/uttar-pradesh/1026754_yogi-adityanath-to-be-next-cm-of-Uttar-pradesh.html |title=योगी बनल शासक! आदित्यनाथ उत्तर प्रदेश के अगिला मुख्यमंत्री होईहे |publisher=The Bhojpuri |date= |accessdate=2017-03-19 }}{{Dead link|date=October 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> आदित्यनाथ [[गोरखपुर]] में मौजूद [[गोरखनाथ मंदिर|गोरखनाथ पीठ]] के महंथ बाने आ मुख्यमंत्री बने से पहिले [[गोरखपुर (लोकसभा चुनावक्षेत्र)|गोरखपुर]] से [[भारतीय जनता पार्टी|भाजपा]] के लोकसभा सांसदो रहल बाने। ऊ अपना से पहिले रहल सांसद महंथ [[अवैद्यनाथ]] के धार्मिक आ राजनीतिक उत्तराधिकारी हवें आ एह सीट से लगातार पाँचवीं बेर संसद में पहुँचल रहने।
आदित्यनाथ के छवि फायरब्रांड हिंदुत्ववादी नेता के हवे। ऊ हिंदू युवा वाहिनी नाँव से संगठन के स्थापना भी कइले बाने जेकरा सामुदायिक दंगा-फसाद में शामिल रहले के खबर बा।<ref name=Jaffrelot>
{{cite news |first=क्रिस्टोफ |last=जैफ़रलोट |title=The other saffron |trans-title=एक ठो अउरी भगवा |newspaper=दि इंडियन एक्सप्रेस |date=6 अक्टूबर 2014 |url=http://indianexpress.com/article/opinion/columns/the-other-saffron/99/ |accessdate=19 मार्च 2017}}
</ref> आदित्यनाथ के कई ठे बयानन पर पहिले भी बिबाद हो चुकल बाटे।<ref>{{cite news|url=http://www.bbc.com/hindi/india-39315248 |title=योगी आदित्यनाथ के जिन बयानों पर हुआ है विवाद - BBC हिंदी |publisher=Bbc.com |date=18 मार्च 2017 |accessdate=19 मार्च 2017}}</ref><ref>{{cite news|url=http://www.bbc.com/hindi/india-39315155 |title=विवादित बयानों वाले योगी आदित्यनाथ होंगे यूपी के मुख्यमंत्री - BBC हिंदी |publisher=Bbc.com |date=18 मार्च 2017 |accessdate=19 मार्च 2017}}</ref><ref>{{cite web |url=http://www.thebhojpuri.com/politics/uttar-pradesh/1025596_yogi-adityanath-attacks-cm-akhilesh-yadav.html |title=यूपी के जनता भाजपा के 14 साल के वनवास खत्म करे के मन बना लेलस: योगी आदित्यनाथ |publisher=The Bhojpuri |date=2017-03-07 |accessdate=2017-03-19 }}{{Dead link|date=October 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>
==सुरुआती जीवन आ पढ़ाई==
योगी आदित्यनाथ के जनम एक ठो गढ़वाली राजूपत परिवार में 5 जून 1972 के, उत्तर प्रदेश के [[पौड़ी गढ़वाल जिला]] (अब उत्तराखंड में) के पंचूड़ गाँव में भइल आ जनम नाव अजय सिंह <!-- बिष्ट --> रहल।<ref>{{cite web|last1=श्रीवास्तव|first1=पीयूष |title=The Yogi who courts controversy|trans-title=योगी जे बिबाद में जुड़ल बा |url=http://archive.indianexpress.com/news/the-yogi-who-courts-controversy-/25603/|website=The Indian Express|accessdate=19 मार्च 2017|date=14 मार्च 2007|language=en}}</ref><ref>{{cite web|url=http://www.thehindu.com/todays-paper/tp-national/saffron-power-in-gorakhpur/article342682.ece|title=Saffron power in Gorakhpur|trans-title=गोरखपुर में भगवा ताकत|website=Thehindu.com|accessdate=19 मार्च 2017|language=en|archive-url=https://web.archive.org/web/20160304222148/http://www.thehindu.com/todays-paper/tp-national/saffron-power-in-gorakhpur/article342682.ece|archive-date=2016-03-04|url-status=dead}}</ref><ref>{{cite web|url=http://www.telegraphindia.com/1090414/jsp/nation/story_10819205.jsp|title=Smart father’s ‘simple’ son battles a Yogi|trans-title=स्मार्ट पिता के सरल संतान जोगी के साथ लड़ाई में|website=Telegraphindia.com|accessdate=19 मार्च 2017|language=en}}</ref> ऊ [[श्रीनगर]], गढ़वाल में मौजूद हेमवती नंदन बहुगुणा विश्वविद्यालय से [[गणित]] बिसय में आपन ग्रेजुएशन (बीएस सी) के डिग्री लिहलें।<ref name=et0317>{{citation |title=Yogi Adityanath, a Maths graduate who became a sanyasi |trans-title=योगी आदित्यनाथ, गणित में स्नातक जे जोगी बन गइलें|url=http://economictimes.indiatimes.com/articleshow/57713011.cms |work=दि इकोनॉमिक टाइम्स |date=19 मार्च 2017 |language=en}}</ref><ref name=TOI>{{cite news|url=http://timesofindia.indiatimes.com/india/How-a-Pauri-youth-turned-into-Yogi/articleshow/41659956.cms|title=How a Pauri youth turned into Yogi|trans-title=पौड़ी के जुवा कइसे जोगी बनलें |work=[[दि टाइम्स ऑफ इंडिया]]|date=4 सितंबर 2014|accessdate=5 सितंबर 2014|language=en}}</ref>
1990 के आसपास अजय सिंह आपन घर त्याग दिहलें आ अजोध्या में रामजन्मभूमि आंदोलन से जुड़ गइलें जेकरे दौरान ऊ गोरखनाथ पीठ के तत्कालीन महंथ [[अवैद्यनाथ]] के परभाव में आ के उनकर चेला बन गइलें। बाद में इनके "योगी आदित्यनाथ" नाँव मिलल आ ई अवैद्यनाथ के उत्तराधिकारी घोषित भइलें। कंठी लिहले का बाद गोरखपुर में रहत आदित्यनाथ बाद में अपना मूल गाँव भी जात रहल बाने आ 1998 में उहवाँ एक ठो इस्कूल के निर्माण भी करवा चुकल बाने।<ref>{{cite web|url=http://www.hindustantimes.com/assembly-elections/father-villagers-elated-over-yogi-adityanath-s-elevation-as-up-cm/story-936cY6mfqyADqqIbZvJtoK.html |title=Father, villagers in Uttarakhand elated over Yogi Adityanath’s elevation as UP CM | assembly-elections$uttarpradesh-2017 |publisher=Hindustan Times |date= |accessdate=2017-03-19}}</ref>
==राजनीति में==
आदित्यनाथ, हिन्दुत्ववादी बिचारधारा के एक ठो खास परंपरा से आवे लें जेकर नेता उत्तर प्रदेश के महंथ दिग्विजय नाथ रहलें जे 22 दिसंबर 1949 के हिंदुत्ववादी लोग के ले के बाबरी मस्जिद पर चढ़ाई कइलेन।<ref name=Jaffrelot/><ref name=Ayodhya>{{cite book |last1=झा|first1=कृष्ण |last2=झा|first2=धीरेन्द्र कु॰ |title=Ayodhya: The Dark Night |trans-title=अयोध्या: करिया राति |language=en|publisher=हार्पर कॉलिन्स, इंडिय |year=2012 |ISBN=978-93-5029-600-4 |ref=harv}}</ref> दिग्विजय नाथ आ उनके चेला अवैद्यनाथ, दुनों जन हिंदू महासभा के सदस्य रहलें आ एकरे टिकट पर लोकसभा सांसद चुनल गइलेन। बाबरी मस्जिद आंदोलन के दौरान संघ परिवार आ महासभा एक साथ आ गइलीं आ 1991 में अवैद्यनाथ भाजपा से जुड़ गइलें, हालाँकि एकरे बावजूद आप कुछ स्वतंत्र अस्तित्व बरकरार रखलें। आदित्यनाथ के 1994 में महंथ अवैद्यनाथ के उत्तराधिकारी के दर्जा मिलल आ एकरे चार बरिस बाद ऊ भारतीय संसद के निचला सदन, लोकसभा खातिर चुनाव जितलें।<ref name=Jaffrelot/>
गोरखपुर लोकसभा सीट से चुनाव जीत के संसद में पहुँचे वाला 26 बरिस के आदित्यनाथ ओह समय सभसे कम उमिर वाला सांसद रहलें आ एकरे बाद पाँच बेर लगातार एही जा से चुनाव जीत के संसद में पहुँचलें (1998, 1999, 2004, 2009 आ 2014 लोकसभा चुनावन में)।
पहिली बेर चुनाव में जीत दर्ज करे के बाद आदित्यनाथ, आपन खुद के संगठन, हिन्दू युवा वाहिनी के स्थापना कइलेन जे [[पूर्वांचल]] में एक ठो बिबादास्पद संगठन रहल बा। भाजपा से टिकट के बाँट के ले के भी आदित्यनाथ के बिबाद रहल, बाकी भाजपा एकरा के निपटा लेहलस काहें कि योगी भाजपा खातिर स्टार प्रचारक के हैसियत रखे लें।<ref name=Jaffrelot/><ref name=communal>{{cite web |last1=Graff |first1=Violette |last2=गैलोनियर |first2=जूलिएट |title=Hindu–Muslim Communal Riots in India II (1986-2011) |trans-title=भारत में हिंदू-मुस्लिम धार्मिक दंगा II (1986-2011) |url=http://www.sciencespo.fr/mass-violence-war-massacre-resistance/en/document/hindu-muslim-communal-riots-india-ii-1986-2011 |publisher=साइंसेज पो |date=20 अगस्त 2013 |language=en |access-date=2017-03-19 |archive-url=https://web.archive.org/web/20170319111000/http://www.sciencespo.fr/mass-violence-war-massacre-resistance/en/document/hindu-muslim-communal-riots-india-ii-1986-2011 |archive-date=2017-03-19 |url-status=dead}}</ref>
हाल के घटनाक्रम में, 2017 के उत्तर प्रदेश बिधान सभा चुनाव में भाजपा के भारी जीत के बाद, आदित्यनाथ के उत्तर प्रदेश के अगिला मुख्यमंत्री चुनल गइल आ ऊ आज 19 मार्च के एह पद के शपथ लिहलें।<ref>{{cite news|url=http://aajtak.intoday.in/story/know-about-family-of-yogi-adityanath-cm-of-up-1-918382.html |title=know about family of yogi adityanath cm of up |trans-title=उप्र के सीएम योगी आदित्यनाथ के परिवार के बारे में जानीं |publisher=Aajtak.intoday.in |date=18 मार्च 2017 |accessdate=19 मार्च 2017|language=en}}</ref>
==राजनीतिक बिबाद==
साल 2005 में, आदित्यनाथ एक ठो शुद्धीकरण के मुहीम के अगुआई कइलें आ खबरन के मोताबिक अइसन एक ठो घटना में एटा में लगभग 1,800 लोग ईसाई धर्म से हिंदू धर्म में सामिल भइल।<ref name=when>{{cite news|url=http://archive.tehelka.com/story_main41.asp?filename=Ne1402009when_i.asp|title=‘When I Ask Them To Rise And Protect Our Hindu Culture, They Obey Me’|work=Tehelka|date=14 फरवरी 2009|archive-url=https://web.archive.org/web/20160304001425/http://archive.tehelka.com/story_main41.asp?filename=Ne1402009when_i.asp|archive-date=2016-03-04|access-date=2017-03-19|url-status=live}}</ref>
ऊ कहलें कि, "हम तबतकले ना रुकब जबले यूपी आ भारत के ''हिंदू राष्ट्र'' में न बदल दीं।"<ref name="when" /><ref name=when/><ref name=":0" />
जनवरी 2007 में, गोरखपुर में मोहर्रम के मौका पर हिंदू-मुस्लिम लोग में झड़प भइल आ एक ठो हिंदू जुवा के अस्पताल में भर्ती करे के पड़ल। गोरखपुर के डीएम साफ कइलें कि योगी के घटनास्थल के दौरा न करे के चाहीं काहें से कि एह से तनाव बढ़ी। सुरू में योगी राजी हो गइलें बाकी अस्पताल में युवक के मौत के बाद ऊ डीएम के आदेश ना मान के अपना समर्थकन के साथ घटना स्थल पर गइलें आ उहाँ अहिंसात्मक धरना पर बइठ गइलें; हालाँकि, उनके भड़काऊ भाषण के बाद उनके समर्थक लगहीं के एक ठो मजार फूँक दिहलें।<ref name=SACW/><ref>{{cite news|url=http://www.dnaindia.com/report.asp?NewsID=1076780|title=Violence hits parts of eastern UP, curfew in Gorakhpur area|date=29 जनवरी 2008}}</ref> लोकल पुलिस कर्फ्यू लगा दिहलस जेकर आदित्यनाथ उल्लंघन कइलें आ उनके आईपीसी के धारा 151A, 146, 147, 279, 506 के तहत शांति भंग करे के आरोप में गिरफ्तार कइल गइल आ एक पाख खातिर रिमांड पर भेज दिहल गइल।<ref>{{cite news|url=http://www.hindustantimes.com/india/jailhouse-rock-for-yogi-co-host-amarmani/story-cbyrPKDdCcvrZQ7qsh7RPK.html|title=`Jailhouse rock' for Yogi & Cohost Amarmani|work=[[हिंदुस्तान टाइम्स]]|date=2 फरवरी 2007|accessdate=1 सितंबर 2014}}</ref><ref name=apoor>{{cite news
|title = Riot, manufactured in Gorakhpur
|author = अपूर्वानंद
|publisher = तहलका
|url = http://www.tehelka.com/story_main26.asp?filename=op170207Riot_manufactured.asp
|date = 17 फरवरी 2007
|accessdate = 26 अप्रैल 2007
|archiveurl = https://web.archive.org/web/20160304122557/http://archive.tehelka.com/story_main26.asp?filename=op170207Riot_manufactured.asp
|archivedate = 2016-03-04
|url-status = dead
}}</ref> उनके गिरफ्तारी से तनाव अउरी बढ़गइल आ बंबई जाए वाले रेल गोदान एक्सप्रेस के कुछ डिब्बा फूँक दिहल गइल जेकर आरोप बिरोध प्रदर्शन करे वाला हिंदू युवा वाहिनी के लोग पर लागल।<ref>{{Cite news| title = Vahini activists set train ablaze| author = शाहिरा नईम | publisher = ट्रिब्यून न्यूज सर्विस| url = http://www.tribuneindia.com/2007/20070203/nation.htm#3
| date = 2 फरवरी 2007| accessdate = 26 अप्रैल 2007| archiveurl= https://web.archive.org/web/20070428214824/http://www.tribuneindia.com/2007/20070203/nation.htm| archivedate= 28 अप्रैल 2007 <!--DASHBot-->| deadurl= no}}</ref> एह गिरफ्तारी के अगिला दिन गोरखपुर के डीएम आ एसपी के तबादला हो गइल आ एह घटना के मुलायम सिंह सरकार पर योगी आदित्यनाथ के दबाव के के रूप में देखल गइल।<ref name=SACW/><ref name=apoor/><ref>{{Cite news
| title = Gorakhpur: DM, SSP removed
| author = शाहिरा नईम
| publisher = ट्रिब्यून न्यूज सर्विस
| url = http://www.tribuneindia.com/2007/20070130/main3.htm
| date = 30 जनवरी 2007
| accessdate = 26 अप्रैल 2007
| archive-date = 2016-03-04
| archive-url = https://web.archive.org/web/20160304045217/http://www.tribuneindia.com/2007/20070130/main3.htm
| url-status = dead
}}</ref> तनाव जल्दिये गोरखपुर में दंगा के रूप ले लिहलस आ मस्जिद, घर आ बस अउरी ट्रेन जरावल गइलीं।<ref name=when/>
<ref name=SACW>
{{cite web
| title = Hindutva's Uncivil Society in Eastern UP: Its time stop the hate spewing yogi of Gorakhpur
| author = सुहासिनी अली
| publisher = SACW.net Communalism Repository
| url = http://www.sacw.net/DC/CommunalismCollection/ArticlesArchive/subhashiniFeb07.html
| date = 27 फरवरी 2007
| accessdate = 1 मई 2007
| archiveurl= https://web.archive.org/web/20070607030443/http://www.sacw.net/DC/CommunalismCollection/ArticlesArchive/subhashiniFeb07.html| archivedate= 7 जून 2007 <!--DASHBot-->| deadurl= no}}</ref>
जेल से छूटले के बाद अपना कैद पर ऊ संसद में बिरोध दर्ज करवलें।<ref>{{Cite news
| title = Monk MP breaks down in tears in parliament
| publisher = रायटर्स
| url = http://in.today.reuters.com/news/newsArticle.aspx?type=topNews&storyID=2007-03-12T171944Z_01_NOOTR_RTRJONC_0_India-290671-1.xml
| date = 12 मार्च 2007
| accessdate = 1 मई 2007
}}{{Dead link|date=September 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>
मार्च 2011 में, एक ठो डाकुमेंटरी फिलिम जेकर टाइटिल रहल ''सैफ्रॉन वार - रैडिकलाइजेशन ऑफ हिंदुइस्म''<ref>[http://tube.majestyc.net/?v=8P0dPWx-VvE]{{dead link|date=जुलाई 2016|bot=InternetArchiveBot|fix-attempted=yes}}</ref> आदित्यनाथ पर उत्तर प्रदेश के देहाती इलाका में ''विराट हिंदुस्तान'' रैली द्वारा धार्मिक तनाव उपजावे के आरोप लगवलस। आदित्यनाथ पर एक ठो नामालूम नेता के बयान के समय स्टेज पर मौजूद रहे के आरोप लागल जेह में ऊ भाषण देवे वाला के बयान रहे कि मुसलमान औरतन के कब्र में निकाल के उनहन के साथ बलात्कार करे के चाहीं; ई रिकार्डिंग मार्च 2015 में सोशल मीडिया पर वाइरल भइल।<ref name= MuslimWomen>{{cite news |url= http://www.indiatimes.com/wwws/india/yogi-adityanaths-men-telling-hindus-to-rape-dead-muslim-women-is-beyond-shocking-230679.html |title= ‘ Yogi Adityanath's Men Telling Hindus To Rape Dead Muslim Women Is Beyond Shocking’ |work= इंडियाटाइम्स |date= 3 मार्च 2015 |accessdate= 11 मार्च 2015 |archive-date= 2015-03-07 |archive-url= https://web.archive.org/web/20150307051516/http://www.indiatimes.com/wwws/india/yogi-adityanaths-men-telling-hindus-to-rape-dead-muslim-women-is-beyond-shocking-230679.html |url-status= dead }}</ref> अगस्त 2014 में कांग्रेस प्रवक्ता शहजाद पूनावाला राष्ट्रीय अल्पसंख्यक आयोग के लिखलें कि धार्मिक भावना भड़कावे के आरोप में आदित्यनाथ पर ऍफ़आईआर दर्ज होखे के चाहीं।<ref>[http://indiatoday.intoday.in/story/yogi-adityanath-love-jihad-provocative-speech-bjp-minority-commission/1/379468.html Activist writes to minority commission against Yogi Adityanath, demands FIR for hate-speech], ''[[इंडिया टुडे]]'', 28 अगस्त 2014</ref>
एक ठो नामालूम तारीख़ के बीडियो जे [[यूट्यूब]] पर अगस्त 2014 में सोझा आइल, आदित्यनाथ, खबर के मोताबिक आजमगढ़ में एक ठो सभा के दौरान, बियाह से उपजल धार्मिक बिबाद पर कहत लउकलें, "अगर ऊ एक ठो हिंदू लड़की लिहें, हमनी के 100 मुसलमान लड़की लिहल जाई" आ एही बीडियो में, ऊ आगे कहलें, "अगर ऊ लोग एक ठो हिंदू मारी, 100 गो मुसलमान हमनी के" आ एकरा बाद भीड़ के आवाज में उनके आवाज दब गइल जे चिल्लाइल: "मारो"।<ref name=":0">{{Cite news|url=http://www.hindustantimes.com/assembly-elections/from-love-jihad-conversion-to-srk-10-controversial-comments-by-up-s-new-cm-yogi-adityanath/story-5JW2ZFGZzAdIZeIcjcZCNM.html|title=From love jihad, conversion to SRK: 10 controversial comments by UP’s new CM Yogi Adityanath.|last=|first=|date=18 मार्च 2017|work=[[हिंदुस्तान टाइम्स]]|access-date=19 मार्च 2017|archive-url=|archive-date=|dead-url=}}</ref><ref>{{Cite news|url=http://indiatoday.intoday.in/story/yogi-adityanath-muslims-bjp-kashmir-love-jihad/1/380112.html|title=A bizarre analysis of riots, by Yogi Adityanath.|last=|first=|date=31 August 2014|work=India Today|access-date=19 मार्च 2017|archive-url=|archive-date=|dead-url=}}</ref><ref>{{Cite web|url=http://www.outlookindia.com/blog/story/hindutva-jihad-if-they-kill-one-hindu-100-will-be/3369|title=Hindutva Jihad: 'If They Kill One Hindu, 100 Will Be...'|last=|first=|date=27 अगस्त 2014|website=आउटलुक इंडिया|archive-url=https://web.archive.org/web/20170319112845/http://www.outlookindia.com/blog/story/hindutva-jihad-if-they-kill-one-hindu-100-will-be/3369|archive-date=2017-03-19|url-status=|access-date=19 मार्च 2017|url-status=dead}}</ref>
जून 2015 में, आदित्यनाथ सूर्य नमस्कार के सपोर्ट में कहलें कि: "हमार ओह लोग से बिनम्र अनुरोध बा, जे लोग सुरुज नियर देवता में समुदायवाद देखतबा, कि ऊ लोग समुंदर में बूड़ जाय या बाकी जिनगी भर खातिर अपना के अन्हार कोठरी में बंद क ले।<ref>{{cite web|title=Those who want to avoid Yoga can leave India: Yogi Adityanath|url=http://www.thehindu.com/news/national/other-states/yogi-adityanath-says-those-who-avoid-yoga-can-leave-india/article7297946.ece|website=दि हिंदू|date=9 जून 2015}}</ref>
2015 के अंत के समय के दौरान असहिष्णुता के मुद्दा पर बात करत घरी, आदित्यनाथ भारतीय एक्टर शाहरुख़ खान के तुलना हाफिज सईद के साथै कइलें आ कहलें, "शाहरुख़ खान के ई बात इयाद रखे के चाहीं कि देस के बहुसंख्यक जनता उनके स्टार बनवले बा, आ अगर ऊ उनके फिलिम के बायकाट क दी ता उनहूँ के सड़क पर आ जाये के पड़ी। ई दुर्भाग के बाति बा कि शाह रुख खान उहे भाषा बोलत बाने जे हाफिज सईद के बा।"<ref>{{cite web|url=http://timesofindia.indiatimes.com/india/BJP-MP-Yogi-Adityanath-No-difference-in-language-of-Shah-Rukh-Khan-and-Hafiz-Saeed/articleshow/49657980.cms|title=BJP MP Yogi Adityanath: No difference in language of Shah Rukh Khan and Hafiz Saeed |publisher=''[[दि टाइम्स ऑफ इंडिया]]''|accessdate=18 मार्च 2017}}</ref><ref>{{cite web|url=http://indianexpress.com/article/india/india-news-india/no-difference-between-shah-rukh-khan-and-hafiz-saeed-yogi-adityanath/#sthash.Mgfk4X9E.dpuf|title=SRK talks like Hafiz Saeed, can go to Pakistan: Yogi Adityanath|date=5 नवंबर 2015|website=Indianexpress.com|accessdate=18 मार्च 2017}}</ref>
3 जनवरी 2016 के, पठानकोट हमला के एक दिन बाद योगी कहलें कि, "पठानकोट हमला एक बेर फिर ई साबित क दिहले बा कि शैतान में भी सुधार हो सके ला बाकि पाकिस्तान में ना"।<ref>{{cite web|url=http://tribune.com.pk/story/1021226/this-bjp-mp-thinks-pakistan-is-worse-than-satan/|title=This BJP MP thinks Pakistan is worse than Satan |date=3 जनवरी 2016|website=Tribune.com|accessdate=18 मार्च 2017}}</ref>
आदित्यनाथ, अमेरिकी राष्ट्रपति [[डोनाल्ड ट्रंप]] के ओह आदेश के तारीफ़ कइलें जेह में सात गो मुस्लिम-मेजारिटी वाला देस से आवे वाला लोग पर प्रतिबन्ध के बात कइल गइल, आ कहलें कि भारतो के आतंकवाद से निपटे खातिर अइसन नीतिगत कदम उठावे के चाहीं।<ref>{{Cite news|url=http://www.ndtv.com/india-news/bjps-yogi-adityanath-praises-donald-trumps-immigration-ban-says-india-needs-it-1654430|work=[[एनडीटीवी]]|date=31 जनवरी 2017|title=BJP's Yogi Adityanath Praises Trump Ban, Compares Western UP To Kashmir}}</ref>
==भाजपा के साथ संबंध==
आदित्यनाथ के भाजपा के साथ एक दशक से लंबा समय से तनाव भरल रिश्ता रहल बा।<ref name=indexp>
{{Cite news
| title = Group war peaks in Uttar Pradesh
| author = शरद गुप्ता
| publisher = दि इंडियन एक्सप्रेस
| url = http://expressindia.indianexpress.com/ie/daily/19990928/ipo28045.html
| date = 28 सितंबर 1999
}}</ref>
उत्तर प्रदेश के पूरबी भाग में आपन खुद के अलग राजनीतिक आधार होखे के कारण आदित्यनाथ पार्टी में अउरी ढेर ताकत के माँग के चलते पार्टी से अउरी बिबाद बढ़ल।<ref>{{Cite news
| title = Yogi's revolt may hit BJP: Ex-BJP leader to go it alone in U.P
| author = अतीक खान
| publisher = [[दि हिंदू]]
| url = http://www.hindu.com/2007/03/28/stories/2007032805111200.htm
| date = 28 मार्च 2007
| accessdate = 26 अप्रैल 2007
| location = चेन्नई, भारत
| archive-date = 2007-10-01
| archive-url = https://web.archive.org/web/20071001005643/http://www.hindu.com/2007/03/28/stories/2007032805111200.htm
| url-status = dead
}}</ref>
22–24 दिसंबर 2006 के जोगी आदित्यनाथ गोरखपुर में तीन दिना खातिर बिसाल हिंदू महासम्मेलन कइलें, ठीक ओही समय जब भाजपा लखनऊ में अपना राष्ट्रीय कार्यकारिणी के बैठक करत रहल। साल 2007 के चुनाव में भाजपा के साथे सीट के बाँट खातिर योगी आदित्यनाथ के बिबाद भइल जब ऊ उत्तर प्रदेश के पूरबी इलाका, [[पूर्वांचल]] के 100 सीट पर आपन पसंद के उमीदवार खड़ा कइल चाहत रहलें, जेकरा से पार्टी के शीर्ष नेतृत्व इनकार क दिहलस। बाद में समझौता भइल आ इनके आठ गो उमेदवार लोग के टिकट मिलल।<ref>{{Cite news
| title = Adityanath back in BJP, 8 nominees get tickets
| author = Mohua Chatterjee
| publisher = [[दि टाइम्स ऑफ इंडिया]]
| url = http://articles.timesofindia.indiatimes.com/2007-03-30/india/27870314_1_bjp-yogi-adityanath-assembly-polls
| date = 30 मार्च 2007
| accessdate = 26 अप्रैल 2007
| archive-date = 2012-11-03
| archive-url = https://web.archive.org/web/20121103112143/http://articles.timesofindia.indiatimes.com/2007-03-30/india/27870314_1_bjp-yogi-adityanath-assembly-polls
| url-status = dead
}}</ref>
मार्च 2010 में, आदित्यनाथ कुछ अइसन भाजपा सांसद लोग में रहलें जे लोग महिला आरक्षण बिधेयक पर पार्टी के विप (whip) के उल्लंघन में बयान दिहल।<ref>{{cite web |url=http://news.in.msn.com/national/article.aspx?cp-documentid=3698770 |title=National - News |website=News.in.msn.com |date=2017-03-14 |accessdate=2017-03-18 |archive-date=2012-03-12 |archive-url=https://web.archive.org/web/20120312084826/http://news.in.msn.com/national/article.aspx?cp-documentid=3698770 |url-status=dead }}</ref>
{{clear}}
==संदर्भ==
{{Reflist|35em}}
==बाहरी कड़ी==
* {{Official website|http://www.yogiadityanath.in}}
{{s-start}}
{{s-bef|before=[[अखिलेश यादव]]}}
{{s-ttl|title= [[उत्तर प्रदेश के मुख्यमंत्री लोग के लिस्ट|उत्तर प्रदेश क मुख्यमंत्री]] | years=2017 – वर्तमान}}
{{s-inc}}
{{s-end}}
{{Chief Ministers of Uttar Pradesh}}
[[श्रेणी:जियत लोग]]
[[श्रेणी:1972 में जनम]]
[[श्रेणी:भारत के राजनीतिक नेता]]
[[श्रेणी:उत्तर प्रदेश के राजनीतिक नेता]]
[[श्रेणी:उत्तराखंड के लोग]]
[[श्रेणी:उत्तर प्रदेश के लोग]]
[[श्रेणी:गोरखपुर के लोग]]
[[श्रेणी:उत्तर प्रदेश के मुख्यमंत्री]]
tjiei7mwxu9pjwione829b8s7cs5gu7
महेश बाबू
0
46272
815151
776300
2026-11-12T14:14:14Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815151
wikitext
text/x-wiki
{{Infobox person
| name = महेश बाबु
| native_name =
| image = Mahesh Babu in Spyder.jpg
| caption = ''स्पाइडर'' फिलिम में, 2017 में
| birth_name = Mahesh Ghattamaneni
| birth_date = {{birth date and age|df=yes|1975|8|09}}<ref>{{cite web|url=http://www.ibtimes.co.in/mahesh-babus-40th-birthday-celebration-samantha-ram-sushanth-other-t-town-celebs-wish-642208|archive-url=https://web.archive.org/web/20150920123740/http://www.ibtimes.co.in/mahesh-babus-40th-birthday-celebration-samantha-ram-sushanth-other-t-town-celebs-wish-642208|url-status=|archive-date=20 September 2015|title=Mahesh Babu's 40th Birthday Celebration: Samantha, Ram, Sushanth, Other T-Town Celebs Wish 'Srimanthudu' Star|date=20 September 2015|accessdate=5 January 2018}}</ref>
| birth_place = चेन्नई, तमिलनाडु, भारत
| residence = जुबिली हिल्स, हैदराबाद, तेलंगाना<ref>{{cite web|url=http://www.sify.com/movies/it-raids-on-mahesh-babu-news-news-lmjqaqiehebsi.html|title=IT raids on Mahesh Babu|publisher=Sify|date=9 December 2011|accessdate=20 September 2015|archiveurl=https://web.archive.org/web/20141228131635/http://www.sify.com/movies/it-raids-on-mahesh-babu-news-news-lmjqaqiehebsi.html|archivedate=28 December 2014}}</ref>
| nationality = भारतीय
| alma_mater = लोयोला कालेज चेन्नई
| occupation = Film actor
| height = <!-- needs reliable source -->
| spouse = [[नम्रता शिरोडकर]] (बि. 2005)
| children = Two
| parents = कृष्णा (बाबूजी), इंदिरा (महतारी)
| relatives =
| yearsactive = 1979–1990 (बाल कलाकार),<br>1999–अबतक (मुख्य भूमिका)
}}
'''महेश बाबू''' एक ठो [[भारतीय सिनेमा|भारतीय फ़िल्म]] [[एक्टर]] बाड़ें। सुपरस्टार महेश बाबू बहुत सारा सुपरहिट फिल्म में काम कइले बाड़ें। उनकर ज़्यादातर फ़िल्म सुपरहिट होखेला। उनकर पिछला फ़िल्म "भारत अने नेनु" बहुत बड़ा ब्लॉकबस्टर रहे। उनकर आवे वाला फ़िल्म महर्षि बा जेकर मई 2019 में रिलीज होके के उम्मीद बा।
{{clear}}
==इहो देखल जाय==
==बाहरी कड़ी==
{{commonscat|Mahesh Babu}}
{{भारतीय फिलिम एक्टर लोग की सूची}}
[[श्रेणी:भारतीय पुरुष फिलिम एक्टर]]
[[श्रेणी:1975 में जनम]]
[[श्रेणी:जियत लोग]]
{{actor-stub}}
2vhdutwu5eepof549thh2kqu3iym35g
अनिल कपूर
0
46302
815312
809003
2026-11-12T16:47:01Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815312
wikitext
text/x-wiki
{{Infobox person
| name = अनिल कपूर
| image = Anil Kapoor still5.jpg
| caption = 2014 में अनिल कपूर
| birth_date = {{birth date and age|df=yes|1956|12|24}}<ref name="DOB">{{Cite news |url=http://www.hindustantimes.com/entertainment/my-dad-is-a-liar-sonam-kapoor/story-85noueENZiI8YE4Ru0AnyK.html |title=My dad is a liar: Sonam Kapoor |date=23 मार्च 2012 |newspaper=[[हिंदुस्तान टाइम्स]] |access-date=16 फरवरी 2017}}[[सोनम कपूर]], his daughter, "He is 1956 born."</ref>
| birth_place = [[मुंबई]], [[महाराष्ट्र]], [[भारत]]
| occupation = एक्टर
| spouse = सुनीता कपूर
| children = [[सोनम कपूर]]
| relatives =
}}
'''अनिल कपूर''' (जनम 24 दिसंबर 1956) एक ठो [[भारतीय सिनेमा|भारतीय फिलिम]] [[एक्टर]] आ प्रोड्यूसर बाने। अनिल कपूर मुख्य रूप से [[बॉलीवुड]] हीरो के रूप में पहिचानल जालें, हालाँकि, कई ठो इंटरनेशनल फिलिम आ धारावाहिक सभ में नाँव कमा चुकल बाने।
कपूर के जनम मुंबई में फिलिम प्रोड्यूसर सुरिंदर कपूर के घरे भइल आ ई पहिली बेर उमेश मेहरा के डाइरेक्ट कइल फिलिम ''हमारे तुम्हारे'' (1979) में एगो छोट रोल से सुरुआत कइलें। इनके डेब्यू फिलिम 1980 के तेलुगु फिलिम ''वंश वृक्षम'' रहल जे बापू द्वारा डाइरेक्ट कइल गइल रहल। पहिली कन्नड़ फिलिम मणिरत्नम के ''पल्लवि अनु पल्लवि'' (1983) रहल आ इनके पहिला फिलिमफेयर अवार्ड सपोर्टिंग एक्टर के कटेगरी में मिलल, यश चोपड़ा के फिलिम ''मशाल'' (1984) में काम खातिर। बेस्ट एक्टर के रूप में पहिली बेर इनका के फिलिमफेयर अवार्ड एन चंद्रा के निर्देशित फिलिम ''तेज़ाब'' (1988) खातिर आ अगिला इंद्र कुमार के फिलिम ''बेटा'' (1992) खातिर मिलल। एकरे बाद कपूर कई गो हिट आ समालोचक लोग के नजर में बढ़ियां फिलिम सभ में काम कइलें आ इनके काम के सराहना मिलल। एह फिलिम सभ में ''मेरी जंग'' (1985), ''कर्मा'' (1986), ''जाँबाज'' (1986), ''मिस्टर इंडिया'' (1987), ''घर हो तो ऐसा'' (1990), ''आवारगी'' (1990), ''बेनाम बादशाह'' (1991) आ ''विरासत'' (1997) सामिल बाड़ी सऽ। ''ताल'' (1999) खातिर इनका के दुसरा बेस्ट सपोर्टिंग एक्टर के फिल्मफेयर मिलल, ''पुकार'' (2000) खातिर बेस्ट एक्टर के फिल्मफेयर मिलल आ ''दिल धड़कने दो' (2015) खातिर फिर से बेस्ट एक्टर के फिल्मफेयर मिलल।
कपूर के पहिली इंटरनेशनल फिलिम डैनी बॉयल के डाइरेक्ट कइल आ एकेडमी-अवार्ड जीते वाली फिलिम ''[[स्लमडॉग मिलियनायर]]'' रहल जेह में एक्टिंग खातिर कपूर के स्क्रीन एक्टर्स गिल्ड अवार्ड साझा रूप से जितलें।<ref>{{cite web|url=https://www.cinestaan.com/articles/2016/nov/23/3042/after-24-anil-kapoor-set-to-feature-in-international-web-series|title=After 24, Anil Kapoor set to feature in international web series|last=|first=|date=23 November 2016|website=Cinestaan|archive-url=https://web.archive.org/web/20180410203219/https://www.cinestaan.com/articles/2016/nov/23/3042/after-24-anil-kapoor-set-to-feature-in-international-web-series|archive-date=10 April 2018|url-status=|access-date=|url-status=dead}}</ref> अमेरिकी एक्शन टीवी सीरीज ट्वेंटीफोर (24) के आठवाँ सीजन में ई एक्टिंग कइलें आ अमेरिकी समालोचक लोग इनके काम के तारीफ़ कइल।<ref>{{cite web|url=http://www.thaindian.com/newsportal/entertainment/anil-kapoor-trying-to-get-24-to-india_100308370.html|title=Anil Kapoor trying to get '24' to India|author=Subhash K Jha|date=23 January 2010|work=Thaindian News|accessdate=23 मई 2012|archive-date=12 March 2012|archive-url=https://web.archive.org/web/20120312012538/http://www.thaindian.com/newsportal/entertainment/anil-kapoor-trying-to-get-24-to-india_100308370.html|url-status=dead}}</ref><ref>{{cite web|last=K Jha|first=Subhash|title=Anil Kapoor outstages his ‘24′co-stars, gets rave reviews|url=http://www.thaindian.com/newsportal/entertainment/anil-kapoor-outstages-his-24co-stars-gets-rave-reviews_100307820.html|publisher=Thaindian.com|accessdate=7 December 2010|date=22 January 2010|archive-date=20 January 2012|archive-url=https://web.archive.org/web/20120120031948/http://www.thaindian.com/newsportal/entertainment/anil-kapoor-outstages-his-24co-stars-gets-rave-reviews_100307820.html|url-status=dead}}</ref> बैस्विक रूप से, कपूर सभसे बेसी चीन्हल-जानल भारतीय एक्टर लोग में से एक बाड़ें।<ref>{{cite web |url=http://www.whartonindia.com/speakers.php |title=The 14th Annual WIEF Presents: India- Breaking Boundaries |publisher=Whartonindia.com |date=27 मार्च 2010 |accessdate=9 अगस्त 2010 |archiveurl=https://web.archive.org/web/20100725195036/http://www.whartonindia.com/speakers.php |archivedate=25 जुलाई 2010 |url-status=dead |df=dmy-all }}</ref>
== फिल्मोग्राफी ==
{| class="wikitable sortable"
|- style="background:#ccc; text-align:center;"
! साल !! फिलिम !! रोल !! टिप्पणी
|-
| 1971 || ''Tu Payal Mein Geet'' || Young Shashi Kapoor || Unreleased
|-
| 1979 || ''Hamare Tumhare'' || Vipin || Cameo appearance
|-
|rowspan="3" |1980 || ''Vamsa Vruksham'' || || Telugu film, Debut in a lead role<br>Dubbed into Hindi as ''and u pandu'' in 1986
|-
|''Ek Baar Kaho (1980 film)|Ek Baar Kaho'' || || Supporting role
|-
| ''Hum Paanch (1980 film)|Hum Paanch'' || || Cameo appearance
|-
| 1981 || ''Kahan Kahan Se Guzar Gaya'' || ||
|-
| 1982 || ''Shakti (1982 film)|Shakti'' || Ravi Kumar ||
|-
|rowspan="2"|1983 || ''Pallavi Anu Pallavi'' || Vijay || Kannada film, was a great success as a hero.
|-
| ''Woh Saat Din'' || Prem Pratap Patailawale || First Hindi leading role
|-
|rowspan="4"|1984 || ''Mashaal'' || Raja || Filmfare Award for Best Supporting Actor
|-
| ''Andar Baahar'' || Raja ||
|-
| ''Laila (1984 film)|Laila'' || Kumar Deshraj Singh ||
|-
| ''Love Marriage (1984 film)|Love Marriage'' ||Rajesh ( Raju) ||
|-
|rowspan="4"|1985 || ''Saaheb'' || Sunil Sharma 'Saaheb'||
|-
| ''Yudh (film)|Yudh'' || Public Prosecutor Avinash / Junior ||Dual Role
|-
| ''Mohabbat (1985 film)|Mohabbat'' || Shekhar ||
|-
| ''Meri Jung'' || Arun Verma || Nominated, Filmfare Award for Best Actor
|-
|rowspan="6"|1986 || ''Chameli Ki Shaadi'' || Charandas ||
|-
| ''Aap Ke Saath'' || Vimal ||
|-
| ''Janbaaz'' || Amar Singh ||
|-
| ''Pyar Kiya Hai Pyar Karenge'' || Anand ||
|-
| ''Karma (1986 film)|Karma'' || Johnny / Gyaneshwar ||
|-
| ''Insaaf Ki Awaaz'' || Ravi Kumar ||
|-
|rowspan="4"|1987 || ''Itihaas (1987 film)|Itihaas'' || Vijay ||
|-
| ''Mr. India (1987 film)|Mr. India'' || Arun Verma / Mr. India ||
|-
| ''Hifazat (1987 film)|Hifazat'' || Ram Kumar / Raj Kumar ||
|-
| ''Thikana'' || Ravi ||
|-
|rowspan="6"|1988 || ''Kasam'' || Krishna / Inspector Kishan Kumar ||
|-
| ''Ram-Avtar'' || Avtar ||
|-
| ''Vijay (1988 film)|Vijay'' || Arjun ||
|-
| ''Sone Pe Suhaaga'' || Ravi Kumar/Joginder ||
|-
| ''Tezaab'' || Mahesh Deshmukh (Munna) || Filmfare Award for Best Actor
|-
| ''Inteqam'' || Vikram "Vicky" ||
|-
|rowspan="8"|1989 || ''Ram Lakhan'' || Inspector Lakhan Pratap Singh ||
|-
| ''Joshilaay'' || Karan ||
|-
| ''Eeshwar (1989 film)|Eeshwar'' || Ishwarchand Vishnunath Brahmanand || Nominated, Filmfare Award for Best Actor
|-
| ''Rakhwala (1989 film)|Rakhwala'' || Vikram ||
|-
| ''Abhimanyu (1989 film)|Abhimanyu'' || Mannu / Abhimanyu America Puri<br /> /Abdul Jabbar ||
|-
| ''Aag Se Khelenge'' || Inspector Ravi Saxena / Raja Saxena ||
|-
| ''Kala Bazaar'' || Vijay ||
|-
| ''Parinda'' || Karan ||
|-
|rowspan="6"|1990 || ''Awaargi'' || Azad ||
|-
| ''Kishen Kanhaiya'' || Kishen / Kanhaiya || डबल रोल
|-
| ''Ghar Ho To Aisa'' || Amar ||
|-
| ''Jeevan Ek Sangharsh'' || Karan ||
|-
| ''अंबा'' || Suraj (Sarju) ||
|-
| ''Jamai Raja'' || Raja ||
|-
|rowspan="4"|1991 || ''Jigarwala'' || Amar Singh ||
|-
| ''Benaam Badsha'' || Deepak ||
|-
| ''Pratikar'' || Krishna Srivastav ||
|-
| ''Lamhe'' || Virendra "Viren" Kapoor || Nominated, Filmfare Award for Best Actor
|-
|rowspan="6"|1992 || ''Beta (film)|Beta'' || Raju || Filmfare Award for Best Actor
|-
| ''Zindagi Ek Jua'' || Harikishan alias Harry ||
|-
| ''Humlaa'' || Shiva ||
|-
| ''खेल'' || Devdas / Arun Kumar ||
|-
| ''हीर राँझा'' || Deedho / Ranjha ||
|-
| ''अपराधी'' || Shiva ||
|-
|rowspan="2"|1993 || ''Roop Ki Rani Choron Ka Raja (1993 film)|Roop Ki Rani Choron Ka Raja'' || Ramesh Verma / Romeo ||
|-
| ''गुरु देव'' || Guru (Gaurav) ||
|-
|rowspan="4"|1994 || ''लाडला'' || Raju ||
|-
| ''अंदाज'' || Ajay ||
|-
| ''1942: A Love Story'' || Naren Singh || Nominated, Filmfare Award for Best Actor
|-
| ''Mr. Azaad'' || Azaad ||
|-
| 1995 || ''त्रिमूर्ति'' || Anand Singh / Sikander || Nominated, Filmfare Award for Best Supporting Actor
|-
|rowspan="3"|1996 || ''Rajkumar (1996 film)|Rajkumar'' || Rajkumar ||
|-
| ''लोफर'' || Ravi Kumar ||
|-
| ''Mr. Bechara'' || Anand Verma ||
|-
|rowspan="4"|1997 || ''जुदाई'' || Raj ||
|-
| ''विरासत'' || Shakti Thakur || Filmfare Critics Award for Best Actor<br /> Nominated, Filmfare Award for Best Actor
|-
| ''Deewana Mastana'' || Raj Kumar "Raja" / Inspector Bansi Rao ||
|-
| ''चंद्रलेखा'' ||Alfi || Malayalam film
|-
|rowspan="3"|1998 || ''Kabhi Na Kabhi'' || Rajeshwar "Raja" ||
|-
| ''Gharwali Baharwali'' || Arun ||
|-
| ''Jhooth Bole Kauwa Kaate'' || Shanker Sharma / Ramanuj ||
|-
|rowspan="4"|1999 || ''Hum Aapke Dil Mein Rehte Hain'' || Vijay ||
|-
| ''Biwi No.1'' || Lakhan || Nominated, Filmfare Award for Best Performance in a Comic Role
|-
| ''मन'' || Raj || Special appearance
|-
| ''ताल'' || Vikrant Kapoor || Filmfare Award for Best Supporting Actor
|-
|rowspan="4"|2000 || ''बुलंदी'' || Dharamraj "Dada" Thakur / Arjun Thakur || Dual Role
|-
| ''पुकार'' || Major Jaidev Rajvansh || National Film Award for Best Actor<br /> Nominated, Filmfare Award for Best Actor
|-
| ''Hamara Dil Aapke Paas Hai'' || Avinash ||
|-
| ''Karobaar: The Business of Love'' || Rajiv ||
|-
|rowspan="2"|2001 || ''लज्जा'' || Raju ||
|-
| ''नायक'' || Shivaji Rao ||
|-
|rowspan="3"|2002 || ''Badhaai Ho Badhaai'' || Raja ||
|-
| ''Om Jai Jagadish'' || Om Batra ||
|-
| ''Rishtey'' || Suraj Singh ||
|-
|rowspan="2"|2003 || ''अरमान'' || Dr. Akash Sinha ||
|-
| ''Calcutta Mail'' || Avinash ||
|-
| 2004 || ''मुसाफिर'' || Lucky ||
|-
|rowspan="4"|2005 || ''बेवफा'' || Aditya Sahai ||
|-
| ''My Wife's Murder'' || Ravi Patwardhan ||
|-
| ''No Entry'' || Kishen || Nominated, Filmfare Award for Best Performance in a Comic Role
|-
| ''चॉकलेट'' || Advocate Krishan Pundit ||
|-
|rowspan="3"|2006 || ''Humko Deewana Kar Gaye'' || Karan Oberoi ||
|-
| ''Darna Zaroori Hai'' || Karan Chopra ||
|-
| ''Naksha'' || Narrator of the movie||
|-
|rowspan="2"|2007 || ''Salaam-e-Ishq: A Tribute To Love'' || Vinay ||
|-
| ''वेलकम'' || Sagar Pandey aka Majnu Bhai || Nominated, Filmfare Award for Best Supporting Actor
|-
|rowspan="6"|2008 || ''My Name Is Anthony Gonsalves (film)|My Name is Anthony Gonsalves'' || Himself || Cameo
|-
| ''ब्लैक एंड वइट'' || Rajan Mathur ||
|-
| ''रेस'' || Shamsher Singh/Inspector Robert D'Costa ("RD") ||
|-
| ''टशन'' || Lakhan Singh Ballebaaz (Bhaiyyaji) ||
|-
| ''[[स्लमडॉग मिलियनायर]]'' || Prem Kumar || Cinema of the United Kingdom|British Film<br> First International film <br> Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
|-
| ''Yuvvraaj'' || Gyanesh Yuvvraaj ||
|-
|rowspan="2"|2009 || ''Shortcut: The Con is on'' || Himself || Special appearance in song "Mareeze Mohabbat"
|-
| ''वांटेड'' || Himself || Special appearance in song "Jalwa"
|-
||2010
| ''नो प्राब्लम''|| Inspector Arjun Singh||
|-
||2011
| ''Mission: Impossible – Ghost Protocol'' || Brij Nath || Cinema of the United States|अमेरिकन फिलिम
|-
||2012
| ''Tezz'' || Anti-Terrorism Officer Arjun Khanna ||
|-
|rowspan="4"|2013 || ''Race 2'' || Shamsher Singh/Inspector Robert D'Costa ("RD") ||
|-
| ''Shootout at Wadala'' || Inspector Affaque Baaghran ||
|-
| ''बांबे टाकीज'' || Himself || Special appearance in song "Apna Bombay Talkies"
|-
| ''महाभारत'' || Karna || Voice Role<br>List of Indian animated feature films|Animated Film
|-
|rowspan="2"|2015 || ''Dil Dhadakne Do || Kamal Mehra || Filmfare Award for Best Supporting Actor
|-
| ''वेलकम बैक'' || Majnu Bhai ||
|-
||2017
|''Mubarakan''|| Kartar Singh ||
|-
|rowspan="3"|2018 ||''Race 3'' ||Shamsher Singh ||
|-
| ''Fanney Khan || Prashant Kumar Sharma "Fanney Khan" ||
|-
| ''Mowgli: Legend of the Jungle'' || Baloo (voice) || Hindi dubbed version
|-
|rowspan="2"|2019 ||''Total Dhamaal'' || Yamraj Singh ||
|-
|''Ek Ladki Ko Dekha Toh Aisa Laga''|| Balbir Chaudhary ||
|}
===प्रोड्यूसर===
Anil Kapoor produces the films under the banner Anil Kapoor Films & Communication Network.
{| class="wikitable sortable"
|-
! रिलीज के साल
! फिलिम टाइटिल
! टिप्पणी
|-
| 2002
| ''Badhaai Ho Badhaai''
|
|-
|2005
|''My Wife's Murder''
|
|-
|2007
|''Gandhi, My Father''
|
|-
|2009
|''Short Kut: The Con is On''
|
|-
|2010
|''आयशा''
|
|-
|2010
|''नो प्राब्लम''
|
|-
|2014
|''खूबसूरत''
|
|-
|2018
|''वीरे दी वेडिंग''
|
|-
|2018
|''फन्ने खां''
|
|}
===टीवी===
{| class="wikitable sortable"
|-
! साल
! टाइटिल
! रोल
! टिप्पणी
|-
| 2010 || ''24 टीवी सीरीज || Omar Hassan (24 character)|Kamistan President Omar Hassan || Series regular season 8
|-
| 2013-2016 || ''24 (भारतीय टीवी सीरीज)'' || Jai Singh Rathod || <ref>{{cite news|url=http://colors.in.com/in/24/videos/24-will-change-indian-televisionanil-kapoor-24116-4.html |title=24 will change indian television:anil kapoor |accessdate=4 October 2013 |url-status=dead |archiveurl=https://web.archive.org/web/20131007120736/http://colors.in.com/in/24/videos/24-will-change-indian-televisionanil-kapoor-24116-4.html |archivedate=7 October 2013 }}</ref><ref>{{cite news|url=http://timesofindia.indiatimes.com/tv/news/hindi/Anil-Kapoor-is-back-with-a-power-packed-season-2-of-24/articleshow/52686921.cms|title=Anil Kapoor is back with a power-packed season 2 of '24'|publisher=''दि टाइम्स ऑफ इंडिया''}}</ref>
|-
|2016 || ''Family Guy'' || Himself (Host of 'Who wants to be a millionaire') || For 1 episode "Road to India (Family Guy)|Road To India"<ref>{{cite web|title=Stereotypical, much? Anil Kapoor extends 'Slumdog Millionaire' role in 'Family Guy' cameo|url=http://www.firstpost.com/bollywood/stereotypical-much-anil-kapoor-extends-slumdog-millionaire-role-in-family-guy-cameo-2802746.html|website=Firstpost|accessdate=29 May 2016|date=27 May 2016}}</ref>
|-
| 2017 || ''ओएसिस'' || Vikram Danesh Roy || वेब सीरीज
|-
| 2018-अबतक|| ''सेलेक्शन डे'' || || प्रोड्यूसर
|}
== इहो देखल जाय ==
{{भारतीय फिलिम एक्टर लोग की सूची}}
== संदर्भ ==
{{Reflist|35em}}
== बाहरी कड़ी ==
{{Commons category|Anil Kapoor}}
* {{IMDb name|438463}}
[[श्रेणी:जियत लोग]]
[[श्रेणी:1956 में जनम]]
[[श्रेणी:भारतीय पुरुष फिलिम एक्टर]]
[[श्रेणी:हिंदी फिलिम एक्टर]]
7jcg8ajyt7x1ct3a5963nvw5l1yxy3p
चटगाँव
0
46706
815160
810990
2026-11-12T14:15:01Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815160
wikitext
text/x-wiki
{{Infobox settlement
|official_name =
|name =
|native_name = {{lang|bn|চট্টগ্রাম}}
|other_name = चट्टग्राम, चटगा
|settlement_type = शहर
|total_type =
|nickname = ''Queen of East'', ''City of Twelve Aulias (Bara auliar nagar)'', ''Commercial Capital of Bangladesh''
|motto =
|image_skyline =
|imagesize =
|image_caption = '''From top:''' 1. [[Jamuna Oil Company|Jamuna Bhaban]] in [[Agrabad]] 2. Ocean City Mall 3. [[HSBC]] Chittagong 4. Nasirabad skyline 5. [[Patenga]] seafront
|image_flag =
|flag_size =
|image_seal =
|seal_size =
|image_shield =
|shield_size =
|image_map =
|map_caption =
|image_map1 =
|map_caption1 =
|image_dot_map =
|pushpin_map = Bangladesh
|pushpin_label_position = bottom
|pushpin_map_caption = बांग्लादेश में लोकेशन
|pushpin_mapsize =
|subdivision_type = देश
|subdivision_name = [[बांग्लादेश]]
|subdivision_type1 = मंडल
|subdivision_name1 = चटगाँव
|subdivision_type2 = जिला
|subdivision_name2 = चटगाँव जिला
|subdivision_type3 =
|subdivision_name3 =
|subdivision_type4 =
|subdivision_name4 =
|government_footnotes =
|government_type =
|governing_body =
|leader_title =
|leader_name =
|leader_title1 =
|leader_name1 =
|leader_title2 =
|leader_name2 =
|leader_title3 =
|leader_name3 =
|leader_title4 =
|leader_name4 =
|established_title = स्थापना
|established_date = 1340
|established_title2 = शहर के दर्जा मिलल
|established_date2 = 1863<ref name="ccc history">{{cite web | url=http://www.ccc.org.bd/history | title=History of Chittagong City Corporation | publisher=Chittagong City Corporation | accessdate=2013-05-26 | archive-date=2013-08-13 | archive-url=https://web.archive.org/web/20130813193710/http://ccc.org.bd/history | url-status=dead }}</ref>
|established_title3 = <!-- Incorporated (city) -->
|established_date3 =
|area_magnitude =
|unit_pref = <!--Enter: Imperial, if Imperial (metric) is desired-->
|area_footnotes = <ref name="bbspaurashava">{{cite web | url=http://www.bbs.gov.bd/dataindex/census/municip.pdf|title=Area, Population and Literacy Rate by Paurashava –2001 |publisher=Bangladesh Bureau of Statistics | accessdate=2009-09-18|archiveurl=https://web.archive.org/web/20070610054152/http://www.bbs.gov.bd/dataindex/census/municip.pdf |archivedate=2007-06-10 |url-status=}}</ref>
|area_total_km2 = 168.07
|area_land_km2 = <!--See table @ Template:Infobox settlement for details on automatic unit conversion-->
|area_water_km2 =
|area_total_sq_mi =
|area_land_sq_mi =
|area_water_sq_mi =
|area_water_percent =
|area_urban_km2 =
|area_urban_sq_mi =
|area_metro_km2 =
|area_metro_sq_mi =
|population_as_of = 2011
|population_footnotes =
|population_note =<ref name="bangladeshpop1"/>
|population_total = 2581643
|population_density_km2 =
|population_density_sq_mi =
|population_metro = 4009423
|population_density_metro_km2 =
|population_density_metro_sq_mi =
|population_urban =
|population_density_urban_km2 =
|population_density_urban_sq_mi =
|population_blank1_title =
|population_blank1 =
|population_density_blank1_km2 =
|population_density_blank1_sq_mi=
|population_blank2_title =
|population_blank2 =
|timezone = [[बांग्लादेश मानक समय|BST]]
|utc_offset = +6
|coordinates = {{coord|22|22|N|91|48|E|region:BD|display=inline,title}}
|elevation_footnotes = <!--for references: use<ref> </ref> tags-->
|elevation_m = 351
|elevation_ft = 1152
|postal_code_type = डाक कोड
|postal_code = 4000, 4100, 42xx
|area_code =
|blank_name = फोन कोड
|blank_info = +880 31
|blank1_name =
|blank1_info =
|blank2_name =
|blank2_info =
|blank3_name =
|blank3_info =
|blank4_name =
|blank4_info =
|blank5_name =
|blank5_info =
|website = [http://www.ccc.org.bd/ Chittagong City Corporation]
|footnotes =
}}
'''चटगाँव''' या चटगा [[बांग्लादेश]] के प्रमुख शहर आ बंदरगाह बा आ आर्थिक रूप से महत्त्व के जगह हवे। शहर के कुल जनसंख्या 2.5 मिलियन (25 लाख)<ref name="bangladeshpop1"/> आ पूरा मेट्रो एरिया के जनसंख्या 2011 के जनगणना अनुसार 40 लाख<ref name="bangladeshpop1">{{cite web |url=http://www.bbs.gov.bd/WebTestApplication/userfiles/Image/National%20Reports/Union%20Statistics.pdf |title=Population & Housing Census-2011: Union Statistics |publisher=Bangladesh Bureau of Statistics |page=39 |accessdate=15 दिसंबर 2015 |url-status=dead |archiveurl=https://web.archive.org/web/20151208044832/http://www.bbs.gov.bd/WebTestApplication/userfiles/Image/National%20Reports/Union%20Statistics.pdf |archivedate=8 दिसंबर 2015}}</ref> रहल आ ई बांग्लादेश के दूसरा सभसे बड़ शहर बा। अपनहीं नाँव के जिला आ मंडल के मुख्यालय भी बा। शहर चटगाँव के पहाड़ी आ बंगाल के खाड़ी के बिचा में [[कर्णफूली नदी]] के तीर पर बसल बाटे। इकोलॉजी के हिसाब से ई इंडो-बर्मा जोन में आवे ला आ भूबिज्ञान के हिसाब से इंडो-बर्मा प्लेट के ऊपर स्थित बाटे। प्रादेशिक भूगोल के हिसाब से ई भारतीय उपमहादीप आ दक्खिन-पुरुब एशिया के बीच में मौजूद बा। इतिहासी घटना सभ के हिसाब से भी एह शहर के काफी महत्व बाटे।
{{clear}}
==संदर्भ==
{{Reflist|35em}}
[[श्रेणी:बांग्लादेश]]
[[श्रेणी:एशिया के शहर]]
{{Asia-stub}}
fs0h7rtokawi69ch6g5macsuxoxhoss
वीचैट
0
47589
815310
813896
2026-11-12T16:46:56Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815310
wikitext
text/x-wiki
{{Infobox software
| name = WeChat
| logo =
| screenshot =
| caption =
| developer = <nowiki>Tencent Holdings Limited]]</nowiki>
| released = {{Start date and age|2011|01|21|df=no}}
| ver layout = stacked
| latest preview version = {{Multiple releases
| branch1 = Android
| version1 = 6.5.7
| date1 = {{release date and age|2017|03|30}}<ref>{{cite web |title=WeChat |url=http://www.apkmirror.com/apk/wechat-tencent/wechat/ |website=APKMirror |publisher=''Android Police'' |date=अप्रैल 2, 2017 |accessdate=मार्च 30, 2017}}</ref>}}
| status = Active
| operating system = क्रास-प्लेटफार्म
| language = कई भाषा (52)
| genre = तुरंत संदेस, पेमेंट
| license = फ्री सॉफ्टवेयर, प्रोप्राइटरी
| website = {{URL|http://www.wechat.com/en/}} (इंटरनेशनल)<br>{{URL|http://weixin.qq.com/}} (चीन)
}}
'''वीचैट''' (WeChat; चीनी भाषा: 微信) चीनी सोशल मीडिया हवे। एह पर तुरंत संदेस, सामग्री साझा करे, आ इलेक्ट्रानिक पेमेंट वगैरह के सुबिधा उपलब्ध बा। ई साल 2011 में पहिली बेर रिलीज भइल आ महीनावार प्रयोगकर्ता के हिसाब से ई साल 2017 ले दुनिया के टॉप सोशल एप में से एक बन चुकल बा<ref>[http://www.techinasia.com/messaging-apps-should-reveal-monthly-active-users/ It's time for messaging apps to quit the bullshit numbers and tell us how many users are active]. techinasia.com. January 23, 2014. Steven Millward.</ref> आ 938 मिलियन (93.8 करोड़) सक्रिय प्रयोगकर्ता लोग बा।<ref>{{cite news|title=Tencent reports 58% profit surge on strong Q1 driven by WeChat and gaming|url=http://technode.com/2017/05/18/tencent-reports-58-profit-surge-on-strong-q1-driven-by-wechat-and-gaming/|work=TechNode|date=18 May 2017}}</ref><ref>{{Cite web|url=http://technode.com/2017/04/24/wechat-user-business-ecosystem-report-2017/|title=WeChat User & Business Ecosystem Report 2017|date=2017-04-24|website=TechNode|access-date=2017-05-06}}</ref> हालाँकि, इहो देखल गइल बा कि साल 2017 तक ले भी ई चीन से बाहर के मार्केट में जगह बनावे में नाकाम रहल बाटे।<ref name=":2">{{Cite web|url=https://www.ft.com/content/983693ac-1543-11e7-b0c1-37e417ee6c76|title=WeChat offers UK groups platform to sell goods in China|last=Murgia|first=Madhumita|date=2017-03-31|website=Financial Times|page=18|language=en-GB|archive-url=|archive-date=|url-status=|access-date=2017-03-31|subscription=Y}}</ref>
{{clear}}
==इहो देखल जाय==
* [[फेसबुक]]
* [[फेसबुक मैसेंजर]]
* [[वाइबर]]
==संदर्भ==
{{Reflist|35em}}
==बाहरी कड़ी==
* [http://weixin.qq.com/ Official WeChat website]
* [https://www.wechat.com/en/ Official WeChat English website]
* [https://pay.weixin.qq.com/index.php/public/wechatpay Official WeChat Pay English website]
[[श्रेणी:सोशल मीडिया]]
[[श्रेणी:चीनी आविष्कार]]
[[श्रेणी:मोबाइल बैंकिंग]]
{{internet-stub}}
gt8ihghnmd0ogryy3u5aakrd4skv3m1
आधार
0
49414
815309
809504
2026-11-12T16:46:54Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815309
wikitext
text/x-wiki
{{Infobox project
| logo =
| image =
| caption = "मेरा आधार, मेरी पहचान"<ref name=AboutUIDAI/>
| launched = {{Start date|df=yes|2009|01|28}}<ref name=AboutUIDAI>{{cite web|title=About UIDAI|url=https://uidai.gov.in/about-uidai/about-uidai.html|publisher=UIDAI|accessdate=25 July 2017}}</ref>
| country = [[भारत]]
| budget = {{INRConvert|87.939|b}} (31 मार्च 2017)<ref name="UIDAIFinance">{{cite web|url=https://uidai.gov.in/about-uidai/about-uidai/financials.html|title=UIDAI Finance and Budge Section|last=|first=|date=|website=UIDAI|archive-url=|archive-date=|url-status=|accessdate=29 May 2018}}</ref>
| key_people = * नंदन नीलेकणि * अजय भूषण पाण्डेय,
| ministry = इलेक्ट्रानिक्स आ इन्फार्मेशन टेक्नोलॉजी मंत्रालय
| website = {{URL|https://uidai.gov.in}}
| current_status = 1.171 billion as of 15 Aug 2017<ref name=DataPortal>{{cite web|title=Public Data Portal|url=https://portal.uidai.gov.in/uidwebportal/dashboard.do|publisher=UIDAI|accessdate=16 अगस्त 2017|archive-date=2017-06-04|archive-url=https://web.archive.org/web/20170604172010/https://portal.uidai.gov.in/uidwebportal/dashboard.do|url-status=dead}}</ref>
}}
'''आधार''' एक ठो बारह अंक के यूनिक नंबर कोड बा जे [[भारत]] के निवासी लोग के उनके बायोमेट्रिक लच्छन आ डेमोग्राफिक डेटा के ले के पहिचान के कोड के रूप में जारी कइल जाला। जवना कागज पर ई नंबर छपल रूप में जारी होला ओकरा के '''आधार कार्ड''' कहल जाला। एकरा खातिर ''यूनीक आइडेंटिफिकेशन अथारिटी ऑफ इंडिया'' (UIDAI) आँकड़ा एकट्ठा करे ले। ई एक ठो सैट्यूटरी संस्था बा जे [[भारत सरकार]] के इलेक्ट्रानिक्स आ इन्फार्मेशन टेक्नोलॉजी मंत्रालय के अधीन काम क रहल बा।
आधार, दुनिया के सभसे बिसाल बायोमेट्रिक पहिचान रजिस्ट्रेशन ब्यवस्था बन चुकल बा आ 15 अगस्त 2017 तक ले कुल 1.171 बिलियन रजिस्ट्रेशन हो चुकल बा।<ref name="Tabled-BL">{{cite news|title=Aadhaar legislation tabled as a money Bill|url=http://www.thehindubusinessline.com/economy/new-aadhaar-bill-introduced-as-money-bill-in-lok-sabha/article8309587.ece|work=दी हिंदू बिजनेस लाइन|date=3 मार्च 2016}}</ref>
{{clear}}
==संदर्भ==
{{Reflist|35em}}
[[श्रेणी:भारत के पहिचान प्रमाण पत्र]]
{{india-stub}}
kz1bdnpumj43obfqypeqmi9uzo2ti5m
हरीकेन इरमा
0
49442
815311
814691
2026-11-12T16:46:58Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| (3) using [[Project:AWB|AWB]]
815311
wikitext
text/x-wiki
{{Infobox hurricane
| Basin = Atl
| Year = 2017
| Type = hurricane
| Name = Hurricane Irma
| image = Irma 2017-09-06 1745Z.jpg
| Image name = Hurricane Irma at peak intensity near the [[U.S. Virgin Islands]] on September 6
| Formed = August 30, 2017
| Dissipated = September 15, 2017
| Extratropical = September 12
| 1-min winds = 160
| Pressure = 914
| Damagespre = >
| Damages = 62865
| Damagespost = Unofficially [[List of costliest Atlantic hurricanes|fourth-costliest]] hurricane on record
| Fatalities = 101 total <small>(as of September 19)</small>
| Areas = [[Cape Verde]], [[Leeward Islands]] <small>(especially [[Barbuda]], [[Saint Barthelemy]], [[Saint Martin]] and the [[Virgin Islands]])</small>, [[Greater Antilles]] <small>([[Cuba]] and [[Puerto Rico]])</small>, [[Turks and Caicos Islands]], [[The Bahamas]], [[Eastern United States]] <small>(especially [[Florida]])</small>
| Hurricane season = [[2017 Atlantic hurricane season]]
}}
'''इरमा हरीकेन''' (Hurricane Irma) एगो बहुत पावरफुल [[उष्णकटिबंधी चक्रवात]] बा जे [[अटलांटिक महासागर]] के कैरीबियन इलाका में [[लीवर्ड दीप]], आ [[प्यूर्टो रिको]], [[क्यूबा]] आ [[फ्लोरिडा]] के आपना जद में लिहले बा। साफिर-सिम्पसन पैमाना पर एकरा के श्रेणी 5 के चक्रवात बतावल जा रहल बा जेकर मतलब बा की ई बहुत भारी नुकसान पहुँचावे में सक्षम तूफ़ान बा।
30 अगस्त के, केप वर्डे के लग्गे, ई एगो उष्णकटिबंधी तरंग से तूफान के रूप लिहलस जबकि ई तरंग दू दिन पहिले अफिरका के किनारा से सुरू भइल रहे। वर्तमान खबर के मोताबिक ई अटलांटिक महासागर में अब तक के रिकार्ड कइल गइल सभसे शक्तिशाली तूफ़ान बा<ref>{{cite web|author=Danny Boyle |url=http://www.telegraph.co.uk/news/2017/09/06/hurricane-irma-latest-live-news-strongest-ever-atlantic-storm/ |title=Hurricane Irma: Strongest ever Atlantic storm causes 'major damage' on Caribbean islands - latest news |publisher=Telegraph.co.uk |date=2016-02-16 |accessdate=2017-09-06}}</ref> आ एकर साइज लगभग फ्रांस के बरोबर बा।<ref>{{cite web|last=Martin |first=Sean |url=http://www.express.co.uk/news/science/850676/Hurricane-irma-path-noaa-track-models-update-tracking-spaghetti-models |title=Hurricane Irma satellite video shows storm size of FRANCE heading straight for Florida | Science | News |publisher=Express.co.uk |date= |accessdate=2017-09-06}}</ref> लगातार हवा बहाव (सस्टेंड विंड) के सभसे ढेर तेजी अनुसार ई 2005 में आइल हरीकेन विल्मा के बाद दुसरा सभसे पावरफुल, आ हवादाब के कमी के मामिला में 2007 में आइल हरीकेन डीन के बाद सभसे शक्तिशाली तूफ़ान बतावल जा रहल बा। अबतक के रिकार्ड में इरमा अइसन पहिला श्रेणी 5 के तूफान बा जे उत्तरी लीवर्ड दीप के अपना जद में लिहले होखे। ई एगो टिपीकल केप वर्डे हरीकेन बा<ref>{{Cite news|url=https://www.theverge.com/2017/9/1/16239514/hurricane-irma-east-coast-cape-verde-flooding-storm|title=Harvey’s not over, but Hurricane Irma is now headed toward the East Coast|author=Angela Chen|date=सितंबर 1, 2017|newspaper=The Verge|access-date=सितंबर 4, 2017}}</ref><ref>{{Cite news|url=https://www.cnn.com/2017/08/31/us/hurricane-irma-forecast-weather/index.html|title=Powerful Hurricane Irma could be next weather disaster|author=Brandon Miller|date=सितंबर 2, 2017|newspaper=CNN|access-date=सितंबर 2, 2017|archive-date=2017-09-20|archive-url=https://web.archive.org/web/20170920131610/https://amp.cnn.com/cnn/2017/08/31/us/hurricane-irma-forecast-weather/index.html|url-status=dead}}</ref><ref>{{Cite news|url=https://phys.org/news/2017-08-gpm-satellite-tropical-storm-irma.html|title=GPM satellite sees Tropical Storm Irma forming near Cape Verde Islands|author=Rob Gutro|date=अगस्त 30, 2017|newspaper=Phys.org|access-date=सितंबर 4, 2017}}</ref> जवन की साल 2017 के अटलांटिक हरीकेन सीजन के नउवाँ तूफान बा जेके नाँव दिहल गइल होखे, चउथा हरीकेन बा, आ दुसरा भयानक हरीकेन बाटे।<ref>{{Cite news|url=https://www.washingtonpost.com/news/capital-weather-gang/wp/2017/08/30/tropical-storm-irma-forms-in-atlantic-and-still-watching-gulf-of-mexico-early-next-week/|title=Tropical Storm Irma forms in Atlantic, and we’re still watching Gulf of Mexico early next week|last=McNoldy|first=Brian|date=अगस्त 30, 2017|work=The Washington Post|access-date=सितंबर 6, 2017|archive-url=|archive-date=|url-status=|last2=|first2=|language=en|issn=0190-8286}}</ref><ref>{{Cite web|url=https://www.cnbc.com/2017/08/31/hurricane-irma-intensifies-over-the-atlantic.html|title=Hurricane Irma intensifies over the Atlantic|last=Reuters|first=|date=सितंबर 1, 2017|website=|archive-url=https://web.archive.org/web/20170906092557/https://www.cnbc.com/2017/08/31/hurricane-irma-intensifies-over-the-atlantic.html|archive-date=2017-09-06|url-status=|access-date=सितंबर 6, 2017|url-status=dead}}</ref><ref>{{Cite news|url=https://www.theatlantic.com/science/archive/2017/08/hurricane-irma-harvey/538611/|title=Hurricane Irma Just Hit Category 3|last=Koren|first=Marina|date=अगस्त 31, 2017|work=The Atlantic|access-date=सितंबर 6, 2017|archive-url=|archive-date=|url-status=|language=en}}</ref> टिपीकल, यानी की अपने तरह के प्रकार के सभसे सामान्य लच्छन वाला, प्रकार में बिना कौनों अपवाद के स्थिति वाला, केप वर्डे हरीकेन, अटलांटिक महासागर में अफिरका के पच्छिमी किनारा से सुरू होखे वाली उष्णकटिबंधी तरंग के रूप में होलें आ केप वर्डे ले चहुँप के ई चक्रवात के रूप धारण का लेलें जिनहन के एह इलाका में हरीकेन कहल जाला, आ ई वेस्ट इंडीज आ कैरेबियन दीप सभ के ऊपर होत, अमेरिका के फ्लोरिडा किनारा से टकराव करे लें।
जब इरमा हरीकेन के रूप लिहलस, एकरा 24 घंटा के भितरे, अनुकूल दसा पा के ई श्रेणी 2 के हरीकेन हो गइल। कुछ समय के बाद ई एगो प्रमुख हरीकेन बन गइल जब ई श्रेणी 3 के हरीकेन के रूप ले लिहलस। हालाँकि, एकरे बाद एह में हवा के बहाव में कुछ उतार-चढ़ाव देखल गइल, 5 सितंबर के ई श्रेणी 5 के हरीकेन बन गइल आ भयावह हो गइल। एकरे बाद एह में लगातार बहे वाली सभसे तेज हवा के बेग 185 मील प्रति घंटा (295 किमी/घं) आ एकरा सेंटर में सभसे निचला हवादाब {{convert|914|mbar|hPa inHg|abbr=on}} दर्ज कइल गइल। एह आधार पर ई 1970 के हरीकेन एलेन के बाद सभसे तेज हवा बहाव वाला हरीकेन बा। कैरेबियन के इलाका से बाहर, मुख्य अटलांटिक बेसिन में ई अबतक के सभसे तेज हरीकेन बतावल जा रहल बा आ साल 2017 में पूरा दुनिया में आइल चक्रवात सभ में भी अब तक ले के सभसे तेज चक्रवात बा।
ई तुफान अब तक ले, बारबूडा, सेंट बार्थेलेमी, सेंट मार्टिन, एंग्विला आ [[वर्जिन दीप]] में भारी तबाही मचा चुकल बा। उत्तरी लीवर्ड दीप से टकराये वाला ई सभसे ताकतवर तुफान रहल आ एह इलाका में आवे वाला तुफान सभ में भी सभसे भयानक साबित भइल बा। 7 सितंबर के यूटीसी समय अनुसार दुपहरिया ले एकरे कारन कम से कम 10 लोग के जान जा चुकल बा।<ref>[http://www.bbc.com/news/world-latin-america-41182991 Hurricane Irma causes devastation in the Caribbean] BBC News</ref>
==मौसमबिज्ञानी समयरेख==
{{storm path|Irma 2017 track.png}}
पच्छिमी अफिरका के किनारा से पैदा भइल उष्णकटिबंधी लहर के अमेरिकी नेशनल हरीकेन सेंटर (NHC) 26 अगस्त से मॉनिटर करे सुरू कइलस।<ref>{{cite web|author=Eric S. Blake|title=Graphical· Tropical Weather Outlook|url=http://www.nhc.noaa.gov/archive/xgtwo/gtwo_archive.php?current_issuance=201708262339&basin=atl&fdays=5|publisher=National Hurricane Center|date=अगस्त 26, 2017|accessdate=अगस्त 30, 2017|location=Miami, Florida}}</ref> 27 तारीख के ई लहर महादीप के किनारा से समुंद्र में बढ़ल। अगिला दू दिन के दौरान, एह लहर के साथ चले वाला बौछार आ झंझावात के सिस्टम साफ-साफ तरीका से ब्यवस्थित तुफान के रूप ले लिहलस। 29 अगस्त के जब ई केप वर्डे के ठीक दक्खिन ओर से गुजरल, स्पष्ट रूप से कम दबाव वाला क्षेत्र बन चुकल रहे<ref>{{cite web|author=Eric S. Blake|title=Graphical Tropical Weather Outlook|url=http://www.nhc.noaa.gov/archive/xgtwo/gtwo_archive.php?current_issuance=201708291751&basin=atl&fdays=5|publisher=National Hurricane Center|date=अगस्त 29, 2017|accessdate=सितंबर 4, 2017|location=Miami, Florida}}</ref> आ एनएचसी द्वारा ई घोषणा कइल गइल की अगर अउरी ब्यवस्थित रूप लेई तब ई उष्णकटिबंधी चक्रवात के रूप ले ली।<ref>{{cite web|author=Eric S. Blake|title=Graphical Tropical Weather Outlook|url=http://www.nhc.noaa.gov/archive/xgtwo/gtwo_archive.php?current_issuance=201708292040&basin=atl&fdays=5|publisher=National Hurricane Center|date=अगस्त 29, 2017|accessdate=सितंबर 4, 2017|location=Miami, Florida}}</ref>
{{clear}}
==इहो देखल जाय==
* [[हरीकेन मारिया]]
==संदर्भ==
{{Reflist|35em}}
==बाहरी कड़ी==
*{{commons category inline|Hurricane Irma (2017)|Hurricane Irma}}
* The NHC's [http://www.nhc.noaa.gov/archive/2017/IRMA.shtml advisory archive on Hurricane Irma]
[[श्रेणी:अटलांटिक हरीकेन]]
[[श्रेणी:2017 में आइल प्राकृतिक आफत]]
d5stlwkpnrn3n81ao78x9x7hjak282b
मानुषी छिल्लर
0
52025
815186
814847
2026-11-12T15:21:18Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815186
wikitext
text/x-wiki
{{Infobox pageant titleholder
| image = Manushi Chhillar in Brazil.jpg
| caption =
| name = मानुषी छिल्लर<br><small>Manushi Chhillar</small>
| birth_date = {{birth date and age|1997|5|14|df=y}}
| birth_place = [[रोहतक]],<ref name="Swati, 2017">{{cite news |last1=Singh |first1=Swati |title=Haryana girl brings back the coveted ‘blue crown’ to India |url=http://www.sundayguardianlive.com/fashion/11744-haryana-girl-brings-back-coveted-blue-crown-india |accessdate=8 December 2017 |work=The Sunday Guardian |agency=Indo-Asian News Service (IANS) |date=25 November 2017 |archiveurl=https://archive.ph/20171208213552/http://www.sundayguardianlive.com/fashion/11744-haryana-girl-brings-back-coveted-blue-crown-india |archivedate=8 December 2017 |url-status=live |url-status=dead }}</ref> [[हरियाणा]], भारत
| height = {{height|m=1.75|precision=0}}
| occupation = {{Hlist|ब्यूटी पेजेंट बिजेता (Beauty pageant titleholder)|मॉडल}}
| education = सेंट थॉमस स्कूल<br>भगत फूल सिंह मेडिकल कालेज
| residence = [[सोनीपत]], [[दिल्ली]]
| title = फेमिना मिस इंडिया 2017<br>मिस वल्ड 2017
| competitions = फेमिना मिस इंडिया 2017<br>(बिजेता)<br>मिस वर्ल्ड 2017<br>(बिजेता)
| hair_color = भूअर
| eye_color = भूअर
| website =
}}
'''मानुषी छिल्लर''' (जनम 14 मई 1997) एगो भारतीय मॉडल आ ब्यूटी पेजेंट बिजेता बाड़ी। इनका के साल 2017 के बिस्व सुंदरी के खिताब मिलल बा। 18 नवंबर 2017 के भइल बिजेता घोषणा में इनके चुनल गइल आ एह तरीका से सतरह साल बाद ई टाइटिल जीते वाली भारतीय बनल बाड़ी। इनका से पहिले [[प्रियंका चोपड़ा]] साल 2000 में मिस वर्ल्ड के ख़िताब जितले रहली।
==जिनगी आ कैरियर==
===सुरुआती आ निजी जिनगी===
मानुषी छिल्लर के जनम भारतीय राज्य [[हरियाणा]] के एगो जाट परिवार में भइल। इनके बाबूजी, डाक्टर मित्र बसु छिल्लर, डीआरडीओ में बैज्ञानिक हवें, जबकि माई, नीलम छिल्लर, न्यूरो के डाक्टर हई आ इंस्टीटयूट ऑफ ह्यूमन बिहैवियर एंड एलायड साइंसेस में न्यूरोकेमिस्ट्री बिभाग के [[अध्यक्ष]] हई।<ref>{{cite web|url=https://timesofindia.indiatimes.com/life-style/fashion/drdo-friends-and-family-celebrates-manushi-chillars-miss-india-victory/articleshow/59457607.cms |title=DRDO, friends and family celebrate Manushi Chillar's Miss India victory |publisher=Indiatimes |date=जुलाई 6, 2017}}</ref>
छिल्लर के सुरुआती पढ़ाई दिल्ली के सेंट थॉमस स्कूल में भइल आ वर्तमान में ई [[सोनीपत]] के भगत फूल सिंह मेडिकल कालेज से डाक्टरी के पढ़ाई क रहल बाड़ी।<ref>{{cite web|url=http://www.firstpost.com/entertainment/femina-miss-india-world-2017-haryana-girl-manushi-chhillar-walks-away-with-crown-title-3745619.html |title=Femina Miss India World 2017: Haryana girl Manushi Chhillar walks away with crown, title |publisher=First Post |date=जून 25, 2017}}</ref><ref>{{cite web|url=http://www.hindustantimes.com/fashion-and-trends/haryana-girl-manushi-is-femina-miss-india-world-2017/story-ueVRc7ma4aNRnzDMOvodzJ.html |title=Haryana girl Manushi Chhillar is Femina Miss India World 2017 |publisher=Hindustan Times |date=जून 25, 2017 |accessdate=जून 26, 2017}}</ref> छिल्लर कुचिपुड़ी डांस के ट्रेनिंग भी लिहले हई। कुचिपुड़ी के ट्रेनिंग परसिद्ध राजा आ राधा रेड्डी आ कौशल्या रेड्डी के इहाँ भइल हवे। छिल्लर नेशनल स्कूल ऑफ ड्रामा में भी कुछ दिन बिद्यार्थी रहल बाड़ी।<ref>{{cite web |url=http://beautypageants.indiatimes.com/5-unknown-facts-about-Miss-India-Haryana-2017/5-unknown-facts-about-Miss-India-Haryana-2017/eventshow/58220471.cms |title=5 unknown facts about Miss India Haryana 2017 |publisher=Indiatimes |date=अप्रैल 17, 2017 |accessdate=जून 26, 2017 |archive-date=2017-08-14 |archive-url=https://web.archive.org/web/20170814140355/http://beautypageants.indiatimes.com/5-unknown-facts-about-Miss-India-Haryana-2017/5-unknown-facts-about-Miss-India-Haryana-2017/eventshow/58220471.cms |url-status=dead }}</ref>
===सौंदर्य प्रतियोगिता===
25 जून 2017 के छिल्लर फेमिना मिस इंडिया 2017 में हरियाणा राज्य के ओर से भाग लिहली।<ref>{{cite web |url=http://beautypageants.indiatimes.com/miss-india/haryana-is-a-state-of-farmers-and-fighters-manushi-chillar/articleshow/59052996.cms |title=Haryana is a state of farmers and fighters: Manushi Chhillar |publisher=Indiatimes |date=Jun 8, 2017 |access-date=November 19, 2017 |archive-date=December 22, 2021 |archive-url=https://web.archive.org/web/20211222065419/https://beautypageants.indiatimes.com/miss-india/haryana-is-a-state-of-farmers-and-fighters-manushi-chillar/articleshow/59052996.cms |url-status=dead }}</ref> एह प्रतियोगिता में इनके मिस फोटोजेनिक के खिताब मिलल आ ई प्रतियोगिता में भी बिजेता बनली, बिजेता के रूप में इनके मिस वल्ड कंपटीशन में [[भारत]] के ओर से सामिल होखल भी तय हो गइल।<ref name="auto">{{cite web |url=http://m.indiatimes.com/entertainment/celebs/leaving-behind-29-contestants-haryana-girl-manushi-chhillar-wins-54th-femina-miss-india-title-324639.html |title=Leaving Behind 29 Contestants, Haryana Girl Manushi Chhillar Wins 54th Femina Miss India Title |publisher=Times Of India |date=जून 26, 2017 |access-date=2017-11-19 |archive-date=2020-05-08 |archive-url=https://web.archive.org/web/20200508140516/https://www.indiatimes.com/entertainment/celebs/leaving-behind-29-contestants-haryana-girl-manushi-chhillar-wins-54th-femina-miss-india-title-324639.html |url-status=dead }}</ref><ref>{{cite web|url=https://in.news.yahoo.com/manushi-chhillar-haryana-wins-title-025806631.html |title=Manushi Chhillar from Haryana wins the title of Miss India 2017 |publisher=Yahoo |date=जून 26, 2017}}</ref><ref>{{cite web |url=http://www.easternmirrornagaland.com/my-idol-is-reita-faria-miss-india-world-winner-manushi-chhillar/ |title=My idol is Reita Faria: Miss India World Winner Manushi chhillar |publisher=Eastern Mirror |date=जून 28, 2017 |access-date=2017-11-19 |archive-date=2018-09-15 |archive-url=https://web.archive.org/web/20180915203232/http://www.easternmirrornagaland.com/my-idol-is-reita-faria-miss-india-world-winner-manushi-chhillar/ |url-status=dead }}</ref><ref>{{cite web|url=http://indiatoday.intoday.in/story/miss-india-2017-winner-announced-lifest/1/987365.html |title=Manushi Chhillar from Haryana wins the title of Miss India 2017 |publisher=India Today |date=जून 25, 2017}}</ref>
मिस वल्ड 2017 प्रतियोगिता में छिल्लर टॉप मॉडल, पीपल्स च्वाइस आ मल्टीमीडिया कंपटीशन सभ में सेमी फाइनल में चहुँपली, आ ''ब्यूटी विद अ परपज'' के सह-बिजेता रहली। छिल्लर के परपज प्रोजेक्ट के नाँव ''प्रोजेक्ट शक्ति'' रहल स रह कैंपेन के मकसद माहवारी के दौरान साफ-सफाई के बारे में जागरूकता फइलावल रहे।<ref>{{cite web|url=http://gulfnews.com/life-style/glamour/fashion/miss-india-world-2017-manushi-chhillar-on-her-mission-1.2051867 |title= Miss India World 2017 Manushi Chhillar on her mission |publisher=Gulf News |date=जुलाई 2, 2017 |accessdate=जुलाई 2, 2017}}</ref> She visited about 20 villages for the project and treated over 5,000 women.<ref>{{cite web |url=http://beautypageants.indiatimes.com/miss-india/i-am-going-to-make-sure-that-the-world-remembers-india-manushi-chhillar/articleshow/61169387.cms |title=I am going to make sure that the world remembers India: Manushi Chhillar |publisher=Indiatimes |date=अक्टूबर 22, 2017 |access-date=2017-11-19 |archive-date=2021-12-22 |archive-url=https://web.archive.org/web/20211222072959/https://beautypageants.indiatimes.com/miss-india/i-am-going-to-make-sure-that-the-world-remembers-india-manushi-chhillar/articleshow/61169387.cms |url-status=dead }}</ref> 18 नवंबर 2017 के छिल्लर के मिस वल्ड के ताज पहिरावल गइल। परंपरा के मोताबिक, पछिला साल के मिस वल्ड स्टीफनी देल वाले इनके ई ताज पहिरवली। साल 2000 में प्रियंका चोपड़ा के एह ताज जीते के बाद से पहिली बेर कौनों भारतीय के ई ताज दोबारा हासिल भइल बा।<ref>{{cite web|url=https://www.femina.in/beauty/hair/manushi-chhillar-crowned-as-miss-world-2017_-68892.html|title=Manushi Chhillar crowned as Miss World 2017|date=18 November 2017|publisher=Femina|last=Ranjan|first=Richa}}</ref><ref>{{cite web|url=http://www.indiatvnews.com/news/world-india-s-manushi-chillar-crowned-miss-world-2017-412717|title=India's Manushi Chillar crowned ‘Miss World 2017’|publisher=|accessdate=18 November 2017}}</ref>
==संदर्भ==
{{Reflist|30em}}
==बाहरी कड़ी==
*{{Twitter|ManushiChhillar|name=मानुषी छिल्लर}}
{{S-start}}
{{S-ach}}
{{S-bef|before={{flagicon|Puerto Rico}} स्टीफनी डेल वाले}}
{{s-ttl|title=[[मिस वल्ड]]
|years= 2017}}
{{S-aft|after={{TBD}}}}
{{S-bef|before= प्रियदर्शिनी चटर्जी }}
{{s-ttl|title=[[फेमिना मिस इंडिया]]
|years=2017}}
{{s-aft|after= {{TBD}} }}
{{S-end}}
[[श्रेणी:1997 में जनम]]
[[श्रेणी:जियत लोग]]
[[श्रेणी:भारतीय मॉडल]]
[[श्रेणी:मिस वल्ड बिजेता]]
[[श्रेणी:हरियाणा के लोग]]
[[श्रेणी:भारत के लोग]]
4z8a32vhr2v20qvtatl1kt53ftlfm0h
2.0 (फिलिम)
0
53351
815300
808839
2026-11-12T16:46:11Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| (2) using [[Project:AWB|AWB]]
815300
wikitext
text/x-wiki
{{Infobox film
| name = 2.0
| image =
| caption =
| director = [[एस॰ शंकर]] <!--Please don't write simply "Shankar"! There are many other directors with the same name, and this director's initial differentiates him from them.-->
| producer =
| writer = एस॰ शंकर<br />बी॰ जयमोहन
| starring = [[रजनीकांत]]<br />[[अक्षय कुमार]]<br />[[एमी जैक्शन]]
| narrator = रजनीकांत
| music = [[ए॰ आर॰ रहमान]]
| cinematography = नीरव शाह
| editing = एंथनी
| studio = लाइका प्रोडक्शंस
| distributor = AA FILMS <small>(हिंदी)</small><ref>{{Cite news|url=http://indianexpress.com/article/entertainment/tamil/2-0-rajinikanth-akshay-kumar-film-hindi-version-bought-by-aa-films-for-rs-80-crore-4704202/|title=2.0: Rajinikanth, Akshay Kumar film’s Hindi version bought by AA Films for Rs 80 crore?|last=|first=|date=14 जून 2017|work=The Indian Express|access-date=27 November 2017|archive-url=|archive-date=|url-status=|location=New Delhi|language=en-US}}</ref> <br> Global Cinemas <small>(Telugu)</small><ref>{{Cite news|url=http://indiatoday.intoday.in/story/rajinikanth-akshay-kumar-2-0-telugu-rights-massive-price/1/1023637.html|title=Rajinikanth-Akshay Kumars 2.0 Telugu rights sold for a whopping price|last=Srivatsan|first=|date=11 अगस्त 2017|work=India Today|access-date=27 November 2017|archive-url=|archive-date=|url-status=|location=Chennai}}</ref>
| released = {{Film date|df=yes|2018|11|29}}<ref>{{cite web|url=http://www.deccanchronicle.com/entertainment/bollywood/311217/rajinikanth-announces-20-release-date-no-clash-with-mahesh-babu-allu-arjun-films.html|title=Rajinikanth announces 2.0 release date, no clash with Mahesh Babu, Allu Arjun films|work=Deccan Chronical|date=31 December 2017|accessdate=2 January 2018}}</ref>
| country = भारत
| language = [[तमिल]]<br/>[[हिंदी भाषा|हिंदी]]
| budget = {{INR}}450 [[करोड़]]<ref name="budget">{{cite web|url=http://www.hindustantimes.com/regional-movies/lyca-productions-plans-to-launch-audio-of-rajinikanth-s-2-0-in-june/story-XgGyC2PnwDnbRChhPcLQQP.html|title=Lyca Productions plans to launch audio of Rajinikanth’s 2.o in June|work=Hindustan Times|date=7 April 2017}}</ref><ref>{{Cite news|url=http://www.jagran.com/entertainment/bollywood-rajinikanth-and-akshay-kumar-film-2-point-0-is-going-to-be-costliest-film-of-india-16826637.html?src=p1|title=रजनीकांत-अक्षय कुमार की फिल्म 2.0 ने बना दिया ये नया इतिहास,देखिये शूटिंग के नज़ारे|work=jagran|access-date=7 अक्टूबर 2017}}</ref>
| gross =
}}
'''''2.0''''' (उच्चारण: टू प्वाइंट जीरो) एगो भारतीय साइंस फिक्शन फिलिम बा जे एस. शंकर द्वारा डाइरेक्ट कइल गइल बा। एह फिलिम के मुख्य कलाकार [[रजनीकांत]] आ [[अक्षय कुमार]] बा लोग। ई फिलिम पहिली अइसन भारतीय फिलिम बा जे सीधे-सीधे थ्री-डी में शूट कइल गइल बा।
{{clear}}
==संदर्भ==
{{Reflist|35em}}
[[श्रेणी:2018 के फिलिम]]
{{film-stub}}
ge0auc2trrbj9pbnrqjle1771zhs7a6
नेपाल के नगरपालिका सभ के लिस्ट
0
53799
815307
811979
2026-11-12T16:46:47Z
SM7Bot
7808
/* महानगरपालिका सभ */ सफाई, replaced: |dead-url=| → |url-status=| (2) using [[Project:AWB|AWB]]
815307
wikitext
text/x-wiki
{{नेपाल के प्रशासनिक विभाग सभ}}
{{Infobox subdivision type
| name= नगरपालिका
| alt_name= नगर निकाय
| alt_name1= महानगर
| alt_name2= उपमहानगर
| alt_name3=
| alt_name4=
| map= [[File:2015-03-08 Swayambhunath, Katmandu, Nepal.jpg|248px]]<br>काठमांडू, नेपाल के बड़हन शहर (महानगर)
| category=[[नगरपालिका]]
| territory= [[नेपाल]]
| upper_unit=
| start_date=
| start_date1=
| start_date2=
| start_date3=
| start_date4=
| legislation_begin=
| legislation_begin1=
| legislation_begin2=
| legislation_begin3=
| legislation_begin4=
| legislation_end=
| legislation_end1=
| legislation_end2=
| legislation_end3=
| legislation_end4=
| end_date=
| end_date1=
| end_date2=
| end_date3=
| end_date4=
| current_number= 6 महानगर<br>11 उपमहानगर<br>276 नगर
| number_date=20 सितंबर 2015
| type=
| type1=
| type2=
| type3=
| type4=
| status=
| status1=
| status2=
| status3=
| status4=
| exofficio=
| exofficio1=
| exofficio2=
| exofficio3=
| exofficio4=
| population_range=975,453 - 8,370
| area_range={{convert|547.43|km2}} - {{convert|6.89|km2}}
| government= [[मेयर–काउंसिल सरकार|मेयर–काउंसिल]]
| government1=
| government2=
| government3=
| government4=
| subdivision=वार्ड
| subdivision1=
| subdivision2=
| subdivision3=
| subdivision4=
}}
{{Sidebar
| title = [[नेपाल के गाँवपालिका सभ के लिस्ट|नेपाल के गांवपालिक सभ के लिस्ट]]
| heading1 = (पर्यायी उपविभाग)
| content1 =
}}
[[नेपाल]] में कुल मिला के वर्तमान में 753 स्थानीय निकाय बाड़ी सभ जे में से 6 गो निकाय के [[महानगरपालिका]], 11 गो के [[उपमहानगरपालिका]] आ 276 गो के [[नगरपालिका]] के लिस्ट में लिस्टकृत करल गइल बाटे। ई तरीका से कुल मिला के नेपाल में 293 गो नगर-निकाय बाड़ी सभ।<ref>{{cite web|url=http://municipality.gov.np/|title=नेपालका नगरपालिकाहरू|publisher=नेपाल सरकार, संघीय मामला तथा स्थानीय विकास मन्त्रालय|access-date=2018-01-28|archive-date=2018-01-29|archive-url=https://web.archive.org/web/20180129042635/http://municipality.gov.np/|url-status=dead}}</ref> दूसर 460 गो अन्य स्थानीय ग्रामीण-निकाय बाड़ी सभ जे के गाउँपालिका ([[गाँवपालिका]]) कहल जाले।
अगस्त 2017 से पहिले नेपाल में कुल 744 स्थानीय निकाय रहली सभ, जे में बढ़ोतरी करल गइल, 9 गो स्थानीय निकाय [[प्रदेश संख्या 2]] में जोड़ल गइल। ई तरीका से अब नेपाल में 753 स्थानीय निकाय हो गइल बा। <ref>{{cite web |url= https://thehimalayantimes.com/nepal/nine-local-levels-added-province-2/ |title= Nine local levels added to Province 2 |date=19 August 2017 |website=www.thehimalayantimes.com |publisher= |access-date=9 September 2018}}</ref>
2014 से पहिले तक नेपाल में कुल 58 गो नगर-निकाय रहली सभ। 72 गो नगर-निकाय के स्थापना मई 2014 में आ 61 गो नगर निकाय के स्थापना ओहि साल दिसम्बर में भइल। 26 गो नगर-निकाय सितंबर 2015 में आ अन्य दूसर 46 गो नगर निकाय मार्च 2017 में घोषित करल गइल।<ref>{{cite web|url=http://www.ekantipur.com/2014/05/08/top-story/govt-declares-72-new-municipalities-with-list/389310.html|title=Govt declares 72 new municipalities (with list)|work=ekantipur.com|accessdate=2015-06-30|archive-date=2015-04-25|archive-url=https://web.archive.org/web/20150425041831/http://www.ekantipur.com/2014/05/08/top-story/govt-declares-72-new-municipalities-with-list/389310.html|url-status=dead}}</ref><ref>{{cite web|url=http://thehimalayantimes.com/fullNews.php?headline=Govt+declares+72+new+municipalities&NewsID=414271&a=3|title=Govt declares 72 new municipalities|work=thehimalayantimes.com|accessdate=2015-06-30|archive-date=2014-11-04|archive-url=https://web.archive.org/web/20141104024224/http://www.thehimalayantimes.com/fullNews.php?headline=Govt+declares+72+new+municipalities&NewsID=414271&a=3|url-status=dead}}</ref>
==श्रेणीकरण==
कउनो भी स्थानीय ग्रामीण निकाय के नगर निकाय के दर्जा पावे खातिर सरकार द्वारा पेश कइल गइल मानदंड के पूरा करे के होऽला। मानदंड में एगो उचित जनसंख्या, आधारिक संरचना आ राजस्व उल्लेख रहेला।
जनसंख्या, श्रोत, आ अन्य शहरी सुख सुविधा कुल के धियान में रखते हुए [[नेपाल सरकार]] नगर निकाय कुल के तीन श्रेणी में श्रेणीकरण कइले बा।
{|class="wikitable"
|+न्यूनतम जनसंख्या सिमा
!भौगोलिक क्षेत्र
!नगरपालिका
!उप-महानगरपालिका
!महानगरपालिका
|-
|पर्वतीय||17,000||150,000||300,000
|-
|पहाड़ी||31,000||150,000||300,000
|-
|भीतरी तराई (तलहटी)||31,000||150,000||300,000
|-
|भीतरी तराई (समतल)||60,000||150,000||300,000
|-
|तराई||60,000||150,000||300,000
|-
|काठमांडू घाटी||60,000||150,000||300,000
|}
{|class="wikitable"
|+न्यूनतम सालाना आय
!भौगोलिक क्षेत्र
!नगरपालिका
!उप-महानगरपालिका
!महानगरपालिका
|-
|पर्वतीय||20 लाख||10 करोड़||40 करोड़
|-
|पहाड़ी||35 लाख||10 करोड़||40 करोड़
|-
|तराई/भीतरी तराई/काठमांडू घाटी||75 लाख||10 करोड़||40 करोड़
|}
===महानगरपालिका===
एगो महानगरपालिका में निम्नलिखित मानदंड आ सुख-सुविधा उपलब्ध होखे के चाहीं:<ref name="requir"/>
* शहर के जनसंख्या कम से कम 3,00,000 होखे के चाहीं।
* शहर के सालाना आय कम से कम [[नेपाली रुपया|नेरु]] 40 [[करोड़]] होखे के चाहीं।
* बिजली, पानी, संचार आदि जइसन सुविधा उपलब्ध होखे के चाहीं।
* मुख्य सड़क आ अन्य सड़क कुल पक्का होखे के चाहीं।
* विशेष स्वास्थ्य सेवा जइसे की हस्पताल, मेडिकल कॉलेज आदि के सुविधा होखे के चाहीं।
* अंतराष्ट्रीय खेल/मंच के आयोजन करे खातिर भौतिक सुविधा कुल होखे के चाहीं।
* उच्च शिक्षा हासिल करे खातिर पूर्ण मात्रा में शैक्षिक संस्थान आ अवसर उपलब्ध होखे के चाहीं आ कम से कम एगो विश्वविद्यालय होखे के चाहीं।
===उपमहानगरपालिका===
एगो उपमहानगरपालिका में निम्नलिखित मानदंड आ सुख-सुविधा उपलब्ध होखे के चाहीं:<ref name="requir"/>
* शहर के जनसंख्या कम से कम 1,50,000 होखे के चाहीं।
* शहर के सालाना आय कम से कम [[नेपाली रुपया|नेरु]] 10 [[करोड़]] होखे के चाहीं।
* बिजली, पानी, संचार आदि जइसन सुविधा उपलब्ध होखे के चाहीं।
* मुख्य सड़क कुल पक्का होखे के चाहीं।
* उच्च शिक्षा आ स्वास्थ्य सेवा जइसे की हस्पताल, मेडिकल कॉलेज आदि के सुविधा होखे के चाहीं।
* राष्ट्रीय/अंतराष्ट्रीय खेल (मंच) के आयोजन करे खातिर भौतिक सुविधा कुल होखे के चाहीं।
* बगैचा, पार्क, सिटी हॉल कुल होखे के चाहीं।
===नगरपालिका===
एगो नगरपालिका में निम्नलिखित मानदंड आ सुख-सुविधा उपलब्ध होखे के चाहीं:<ref name="requir">{{cite web |url= http://llrc.gov.np/sites/default/files/act-rules/TOR%20Local%20Technical%20Committee%20-ammended%20-%20final.pdf |title= परिमार्जित कार्यशर्त तथा कार्यविधि (मापदण्ड सहित): स्थानीय तह पुनर्संरचना प्राविधिक सहयोग समितिको परिमार्जित कार्यनिर्देश शर्त (ToR) तथा कार्यविधि |date= |website= www.llrc.gov.np |publisher= Border assessment commission of Rural/Urban area, special protected area and autonomous region |access-date= 10 September 2018 |archive-date= 31 August 2018 |archive-url= https://web.archive.org/web/20180831125648/http://llrc.gov.np/sites/default/files/act-rules/TOR%20Local%20Technical%20Committee%20-ammended%20-%20final.pdf |url-status= dead }}</ref>
* शहर के जनसंख्या कम से कम 60,000 (तराई में), 31,000 (पहाड़ी क्षेत्र में), 17,000 (पर्वतीय क्षेत्र में) होखे के चाहीं
* शहर के सालाना आय कम से कम [[नेपाली रुपया|नेरु]] 20 [[लाख]] (पर्वतीय क्षेत्र में), नेरु 35 लाख (पहाड़ी क्षेत्र में), नेरु 75 लाख (तराई, काठमांडू घाटी) में होखे के चाहीं।
* एगो अर्ध-शहरीय क्षेत्र जहां बिजली-पानी, सड़क-संवाद आदि जइसन सुख सुबिधा उपलब्ध होखे के चाहीं।
==अवलोकन==
{| class="wikitable sortable"
|+
!प्रदेश
!कुल स्थानीय निकाय
!नगर-निकाय
!ग्रामीण-निकाय
!नोट
|-
|[[कोशी प्रदेश]]
|137
|49
|88
|46 नगरपालिका + 2 उपमहानगरपालिका + 1 महानगरपालिका
|-
|[[प्रदेश संख्या 2]]
|136
|77
|59
|73 नगरपालिका + 3 उपमहानगरपालिका + 1 महानगरपालिका
|-
|[[बाग्मती प्रदेश]]
|119
|45
|74
|41 नगरपालिका + 1 उपमहानगरपालिका + 3 महानगरपालिका
|-
|[[गंडकी प्रदेश]]
|85
|27
|58
|26 नगरपालिका + 1 महानगरपालिका
|-
|[[प्रदेश संख्या 5]]
|109
|36
|73
|32 नगरपालिका + 4 उपमहानगरपालिका
|-
|[[कर्णाली प्रदेश]]
|79
|25
|54
|
|-
|[[प्रदेश संख्या 7]]
|88
|34
|54
|1 उपमहानगरपालिका
|-
![[नेपाल]]
!753
!293
!460
!276 नगरपालिका + 11 उपमहानगरपालिका + 6 महानगरपालिका
|}
== महानगरपालिका सभ ==
{| class="wikitable sortable"
|+
!रैंक
!नाँव
!जिला
!प्रदेश
!जनसंख्या (2011)
!रकबा
!वेबसाइट
|-
|1
|[[काठमांडो]]
|[[काठमांडो जिला|काठमांडो]]
|[[बाग्मती प्रदेश]]
|975,453
|49.45
|[http://www.kathmandu.gov.np/en]
|-
|2
|[[पोखरा]]
|[[कास्की जिला|कास्की]]
|[[प्रदेश संख्या 4]]
|414,141
|464.28
|[http://pokharalekhnathmun.gov.np/?language=en] {{Webarchive|url=https://web.archive.org/web/20180301172910/http://pokharalekhnathmun.gov.np/?language=en |date=2018-03-01 }}
|-
|3
|[[ललितपुर, नेपाल|ललितपुर]]
|[[ललितपुर जिला, नेपाल|ललितपुर]]
|[[बाग्मती प्रदेश]]
|284,922
|36.12
|[http://lalitpurmun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902184943/http://lalitpurmun.gov.np/en |date=2017-09-02 }}
|-
|4
|[[भरतपुर, नेपाल|भरतपुर]]
|[[चितवन जिला|चितवन]]
|[[बाग्मती प्रदेश]]
|280,502
|432.95
|[http://bharatpurmun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902182854/http://bharatpurmun.gov.np/en |date=2017-09-02 }}
|-
|5
|[[बिरगंज]]
|[[पर्सा जिला|पर्सा]]
|[[प्रदेश संख्या 2]]
|240,922<ref name=":0">{{cite web|title=स्थानिय तह|url=http://103.69.124.141|accessdate=20 April 2018}}</ref><ref>{{cite web|title=Govt prepares to add 9 more local levels in Province 2 http://bit.ly/2vWQipD|url=http://kathmandupost.ekantipur.com/news/2017-08-11/govt-prepares-to-add-9-more-local-levels-in-province-2.html|website=eKantipur|accessdate=23 April 2018}}</ref><ref name=":1">{{Cite web|url=http://cbs.gov.np/image/data/2017/Population_Ward_Level_753_Local_Unit.pdf|title=Population Ward Level 753 Local Unite|last=|first=|date=|website=Central Bureau of Statistics (Nepal)|archive-url=https://web.archive.org/web/20180127085017/http://cbs.gov.np/image/data/2017/Population_Ward_Level_753_Local_Unit.pdf|archive-date=2018-01-27|url-status=|access-date=|url-status=dead}}</ref>
|132.07<ref name=":0" />
|[http://birgunjmun.gov.np/]
|-
|6
|[[विराटनगर]]
|[[मोरंग जिला|मोरंग]]
|[[कोशी प्रदेश]]
|214,663<ref name=":0" /><ref name=":1" /><ref>{{Cite web|url=http://ddcmorang.gov.np/wp-content/uploads/2017/07/book.pdf|title=स्थानीय तहहरुको वस्तुगत विवरण २०७४ (Local Level Profile)|last=|first=|date=|website=ddcmorang.gov.np|archive-url=https://web.archive.org/web/20180907062843/http://ddcmorang.gov.np/wp-content/uploads/2017/07/book.pdf|archive-date=2018-09-07|url-status=|access-date=|url-status=dead}}</ref>
|77.00<ref name=":0" />
|[http://biratnagarmun.gov.np/] {{Webarchive|url=https://web.archive.org/web/20170125015129/http://biratnagarmun.gov.np/ |date=2017-01-25 }}
|}
== उप-महानगरपालिका सभ==
{| class="wikitable sortable"
!#
!नाम
!जिला
!प्रदेश
!जनसंख्या (2011)
!क्षेत्रफल
!वेबपन्ना
|-
|1
|[[जनकपुर]]
|[[धनुषा जिला|धनुषा]]
|[[प्रदेश संख्या 2]]
|159,468
|91.97
|[http://www.janakpurmun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902182547/http://www.janakpurmun.gov.np/en |date=2017-09-02 }}
|-
|2
|[[घोराही]]
|[[दांग देउखुरी जिला|दांग]]
|[[प्रदेश संख्या 5]]
|156,164
|522.21
|[http://ghorahimun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902184840/http://ghorahimun.gov.np/en |date=2017-09-02 }}
|-
|3
|[[हेटौडा]]
|[[मकवानपुर जिला|मकवानपुर]]
|[[बाग्मती प्रदेश]]
|152,875
|261.59
|[http://hetaudamun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902181741/http://hetaudamun.gov.np/en |date=2017-09-02 }}
|-
|4
|[[धनगढी]]
|[[कैलाली जिला|कैलाली]]
|[[प्रदेश संख्या 7]]
|147,741
|261.75
|[http://dhangadhimun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902185349/http://dhangadhimun.gov.np/en |date=2017-09-02 }}
|-
|5
|[[तुलसीपुर, दांग|तुलसीपुर]]
|[[दांग देउखुरी जिला|दांग]]
|[[प्रदेश संख्या 5]]
|141,528
|384.63
|[http://tulsipurmun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902182124/http://tulsipurmun.gov.np/en |date=2017-09-02 }}
|-
|6
|[[इटहरी]]
|[[सुनसरी जिला|सुनसरी]]
|[[कोशी प्रदेश]]
|140,517
|93.78
|[http://itaharimun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902225605/http://itaharimun.gov.np/en |date=2017-09-02 }}
|-
|7
|[[नेपालगंज]]
|[[बांके जिला|बांके]]
|[[प्रदेश संख्या 5]]
|138,951
|85.94
|[http://www.nepalgunjmun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902180650/http://www.nepalgunjmun.gov.np/en |date=2017-09-02 }}
|-
|8
|[[बुटवल]]
|[[रुपनदेही जिला|रूपनदेही]]
|[[प्रदेश संख्या 5]]
|138,741
|101.61
|[http://butwalmun.gov.np/?language=en] {{Webarchive|url=https://web.archive.org/web/20170902180505/http://butwalmun.gov.np/?language=en |date=2017-09-02 }}
|-
|9
|[[धरान]]
|[[सुनसरी जिला|सुनसरी]]
|[[कोशी प्रदेश]]
|137,705
|192.32
|[http://www.dharan.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902181156/http://www.dharan.gov.np/en |date=2017-09-02 }}
|-
|10
|[[कलैया]]
|[[बारा जिला|बारा]]
|[[प्रदेश संख्या 2]]
|123,659
|108.94
|[http://kalaiyamun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20170902223305/http://kalaiyamun.gov.np/en |date=2017-09-02 }}
|-
|11
|[[जीतपुर सिमरा]]
|[[बारा जिला|बारा]]
|[[प्रदेश संख्या 2]]
|117,496
|312.18
|[http://www.jeetpursimaramun.gov.np/en] {{Webarchive|url=https://web.archive.org/web/20180907110349/http://jeetpursimaramun.gov.np/en |date=2018-09-07 }}
|}
==नगरपालिका सभ ==
{|class="wikitable sortable"
!क्र.सं
!प्रदेश
!जिला
!नगरपालिका के नाम सभ
!कुल
!टिप्पणी
|-
| 1||[[कोशी प्रदेश]] || [[ताप्लेजुंग जिला|ताप्लेजुंग]] || [[फुंगलिंग]] || 1 ||
|-
| 2 || [[कोशी प्रदेश]] || [[पांचथर जिला|पांचथर]] || [[फिदिम]] || 1 ||
|-
| 3 || [[कोशी प्रदेश]] || [[इलाम जिला|इलाम]] || [[इलाम, नेपाल|इलाम]] {{*}} [[सूर्योदय, इलाम|सूर्योदय]] {{*}} [[माई, नेपाल|माई]] {{*}} [[देउमाई, इलाम|देउमाई]] || 4 ||
|-
| 4 || [[कोशी प्रदेश]] || [[झापा जिला|झापा]] || [[मेचीनगर]] {{*}} [[दमक]] {{*}} [[कांकई]] {{*}} [[भद्रपुर, झापा|भद्रपुर]] {{*}} [[अर्जुनधारा]] {{*}} [[शिवसताक्षी]] {{*}} [[गौरादह]] {{*}} [[बिर्तामोड]] || 8 ||
|-
| 5 || [[कोशी प्रदेश]] || [[संखुवासभा जिला|संखुवासभा]] || [[खांदवारी]] {{*}} [[चैनपुर]] {{*}} [[मादी]] {{*}} [[धर्मदेवी]] {{*}} [[पाँचखपन]] || 5 ||
|-
| 6 || [[कोशी प्रदेश]] || [[भोजपुर जिला|भोजपुर]] || [[भोजपुर]] {{*}} [[षडानन्द]] || 2 ||
|-
| 7 || [[कोशी प्रदेश]] || [[धनकुटा जिला|धनकुटा]] || [[धनकुटा]] {{*}} [[पाख्रीबास]] {{*}} [[महालक्ष्मी]] || 3 ||
|-
| 8 || [[कोशी प्रदेश]] || [[तेह्रथुम जिला|तेह्रथुम]] || [[म्यांगलुंग]] {{*}} [[लालीगुराँस]] || 2 ||
|-
| 9 || [[कोशी प्रदेश]] || [[सुनसरी जिला|सुनसरी]] || [[इनरूवा]] {{*}} [[दुहबी]] {{*}} [[रामधुनी]] {{*}} [[बराह, सुनसरी|बराह]] || 4 ||
|-
| 10 || [[कोशी प्रदेश]] || [[मोरंग जिला|मोरंग]] ||[[बेलवारी]] {{*}} [[पथरी शनिश्चरे]] {{*}} [[सुन्दर हरैचा]] {{*}} [[लेटांग]] {{*}} [[रंगेली]] {{*}} [[उर्लाबारी]] {{*}} [[रतुवामाई]] {{*}} [[सुनवर्षि]] || 8 ||
|-
| 11 || [[कोशी प्रदेश]] || [[खोटाँग जिला|खोटाँग]] || [[हलेसी तुवाचुंग]] {{*}} [[रुपाकोट मझुवागढ़ी]] || 2 ||
|-
| 12 || [[कोशी प्रदेश]] || [[ओखलढुंगा जिला|ओखलढुंगा]] || [[सिद्धिचरण]] || 1 ||
|-
| 13 || [[कोशी प्रदेश]] || [[सोलुखुम्बु जिला|सोलुखुम्बु]] || [[सोलुदूधकुंड]] || 1 ||
|-
| 14 || [[कोशी प्रदेश]] || [[उदयपुर जिला|उदयपुर]] || [[त्रियुगा]] {{*}} [[कटारी, नेपाल|कटारी]] {{*}} [[चौदंडीगढ़ी]] {{*}} [[वेलका]] || 4 ||
|-
| 15 || [[प्रदेश संख्या 2]] || [[सप्तरी जिला|सप्तरी]] || [[राजविराज]] {{*}} [[शम्भुनाथ]] {{*}} [[कंचनरुप]] {{*}} [[डाक्नेश्वरी]] {{*}} [[बोदेबरसाईन]] {{*}} [[खडक]] {{*}} [[सुरूँगा]] {{*}} [[हनुमाननगर कंकालिनी]] {{*}} [[सप्तकोशी, सप्तरी|सप्तकोशी]] || 9 ||
|--
| 16 || [[प्रदेश संख्या 2]] || [[सिराहा जिला|सिराहा]] || [[सिराहा]] {{*}} [[लहान]] {{*}} [[मिर्चैया]] {{*}} [[गोलबजार]] {{*}} [[सुखीपुर]] {{*}} [[धनगढ़ीमाई]] {{*}} [[कल्याणपुर]] {{*}} [[कर्जन्हा]] || 8 ||
|-
| 17 || [[प्रदेश संख्या 2]] || [[महोत्तरी जिला|महोत्तरी]] ||[[जलेश्वर]] {{*}} [[गौशाला]] {{*}} [[बर्दिबास]] {{*}} [[लोहरपट्टी]] {{*}} [[रामगोपालपुर]] {{*}} [[मनरा शिसवा]] {{*}} [[मटिहानी]] {{*}} [[भँगाहा]] {{*}} [[बलवा]] {{*}} [[औरही]] || 10 ||
|-
| 18 || [[प्रदेश संख्या 2]] || [[सर्लाही जिला|सर्लाही]] || [[मलंगवा]] {{*}} [[हरिवन]] {{*}} [[लालबंदी]] {{*}} [[ईश्वरपुर]] {{*}} [[बरहथवा]] [[हरिपुर]] {{*}} [[हरिपुर्वा]] {{*}} [[बलरा]] {{*}} [[गोडैटा]] {{*}} [[बागमती]] ||10||
|-
| 19 || [[प्रदेश संख्या 2]] ||[[धनुषा जिला|धनुषा]]||[[धनुषाधाम]] {{*}} [[क्षिरेश्वरनाथ]] {{*}} [[गणेशमान चारनाथ]] {{*}} [[मिथिला]] {{*}} [[सबैला]] {{*}} [[नगराइन]] {{*}} [[विदेह]] {{*}} [[शहीदनगर]] {{*}} [[कमला]] {{*}} [[मिथिला बिहारी]] {{*}} [[हंसपुर]] || 11 ||
|-
| 20 || [[प्रदेश संख्या 2]] || [[रौतहट जिला|रौतहट]]|| [[गौर]] {{*}} [[चन्द्रपुर]] {{*}} [[गरुडा]] {{*}} [[बौधीमाई]] [[बृन्दावन]] {{*}} [[देवाही गोनाही]] {{*}} [[गढीमाई]] {{*}} [[गुजरा]] {{*}} [[कटहरिया]] {{*}} [[माधव नारायण]] {{*}} [[मौलापुर]] {{*}} [[फतुवा बिजयपुर]] {{*}} [[ईशनाथ]] {{*}} [[परोहा]] {{*}} [[राजपुर]] {{*}} [[राजदेवी]] || 16 ||
|-
| 21 || [[प्रदेश संख्या 2]] || [[बारा जिला|बारा]] ||[[सिम्रौनगढ]] {{*}} [[गढिमाई]] {{*}} [[निजगढ]] {{*}} [[महागढीमाई]] {{*}} [[कोल्हवी]] {{*}} [[पचरौता]] || 5 ||
|-
| 22 || [[प्रदेश संख्या 2]] || [[पर्सा जिला|पर्सा]]|| [[पोखरीया]] {{*}} [[बहुदरमाई]] {{*}} [[पर्सागढी]] || 3 ||
|-
| 23 || [[बाग्मती प्रदेश]] || [[दोलखा जिला|दोलखा]] || [[भिमेश्वर]] {{*}} [[जिरी]] || 2 ||
|-
| 24 || [[बाग्मती प्रदेश]] || [[रामेछाप जिला|रामेछाप]] || [[रामेछाप]] {{*}} [[मन्थली]] || 2 ||
|-
| 25 || [[बाग्मती प्रदेश]] || [[सिंधुली जिला|सिंधुली]] || [[कमलामाई]] {{*}} [[दुधौली]] || 2 ||
|-
| 26 || [[बाग्मती प्रदेश]] || [[काभ्रेपलान्चोक जिला|काभ्रेपलान्चोक]] ||[[पनौती]] {{*}} [[धुलिखेल]] {{*}} [[बनेपा]] {{*}} [[पांचखाल]] {{*}} [[काशीखण्ड]] {{*}} [[मण्डनदेउपुर]] || 6 ||
|-
| 27 || [[बाग्मती प्रदेश]] || [[नुवाकोट जिला|नुवाकोट]] || [[बिदुर]] {{*}} [[बेलकोटगढी]] || 2 ||
|-
| 28 || [[बाग्मती प्रदेश]] || [[धादिंग जिला|धादिंग]] || [[नीलकंठ]] {{*}} [[धुनीवेंशी]] || 2 ||
|-
| 29 || [[बाग्मती प्रदेश]] || [[भक्तपुर जिला|भक्तपुर]] || [[भक्तपुर]] {{*}} [[मध्यपुर ठिमी]] {{*}} [[सूर्यविनायक]] {{*}} [[चाँगुनारायण]]||4||
|-
| 30 || [[बाग्मती प्रदेश]] || [[सिन्धुपाल्चोक जिला|सिन्धुपाल्चोक]] || [[चौतारा]] {{*}} [[मेलम्ची]] {{*}} [[बाह्रविसे]] || 3 ||
|-
| 31 || [[बाग्मती प्रदेश]] || [[काठमांडू जिला|काठमांडू]] || [[कीर्तिपुर]] {{*}} [[गोकर्णेश्वर]] {{*}} [[दक्षिणकाली]] {{*}} [[तारकेश्वर]] {{*}} [[शंखरापुर]] {{*}} [[चंद्रागिरी]] {{*}} [[कागेश्वरी–मनोहरा]] {{*}} [[टोखा]] {{*}} [[नागार्जुन]] {{*}} [[बुढ़ानीलकंठ]] || 10 ||
|-
| 32 || [[बाग्मती प्रदेश]] || [[ललितपुर जिला|ललितपुर]] || [[गोदावरी, ललितपुर|गोदावरी]] {{*}} [[महालक्ष्मी, ललितपुर|महालक्ष्मी]]|| 2 ||
|-
| 33 || [[बाग्मती प्रदेश]] || [[मकवानपुर जिला|मकवानपुर]] |||[[थाहा]] || 1 ||
|-
| 34 || [[बाग्मती प्रदेश]] || [[चितवन जिला|चितवन]] ||[[रत्ननगर]] {{*}} [[खैरहनी]] {{*}} [[माडी]] {{*}} [[कालिका]] {{*}} [[राप्ती]] || 5 ||
|-
|35|| [[बाग्मती प्रदेश]] ||[[रसुआ जिला]]||अनुपलब्ध||0||
|-
| 36 || [[गंडकी प्रदेश]] || [[गोरखा जिला|गोरखा]] || [[गोरखा]] {{*}} [[पालुंगटार]] || 2 ||
|-
| 37 || [[गंडकी प्रदेश]] || [[लमजुंग जिला|लमजुंग]] || [[बेसीसहर]] {{*}} [[सुंदरबजार]] {{*}} [[राईनास]] {{*}} [[मध्यनेपाल]] || 4 ||
|-
| 38 || [[गंडकी प्रदेश]] || [[कास्की जिला|कास्की]]||अनुपलब्ध|| 0 ||
|-
| 39 || [[गंडकी प्रदेश]] || [[तनहुँ जिला|तनहुँ]]|| [[व्यास]] {{*}} [[शुक्लगण्डकी]] {{*}} [[भानु]] {{*}} [[भिमाद]] || 4 ||
|-
| 40 || [[गंडकी प्रदेश]] || [[स्यांगजा जिला|स्यांजा]] ||[[पुतलीबजार]] {{*}} [[वालिङ]] {{*}} [[चापाकोट]] {{*}} [[भीरकोट]] {{*}} [[गल्यांग]] || 5 ||
|-
|41|| [[गण्डकी प्रदेश]] || [[नवलपुर जिला]]||[[गैडाकोट]] {{*}} [[कावासोती]] {{*}} [[देवचुली]] {{*}} [[मध्यबिन्दु]] || 4 ||
|-
| 42 || [[गण्डकी प्रदेश]] || [[पर्वत जिला|पर्वत]] ||[[कुश्मा]] {{*}} [[फलेवास]]|| 2 ||
|-
| 43 || [[गण्डकी प्रदेश]] || [[बागलुंग जिला|बागलुंग]] || [[बागलुंग]] {{*}} [[गल्कोट]] {{*}} [[जैमूनी]] {{*}} [[ढोरपाटन]] || 4 ||
|-
| 44|| [[गण्डकी प्रदेश]] || [[म्याग्दी जिला|म्याग्दी]] || [[बेनी]] || 1 ||
|-
|45||[[गण्डकी प्रदेश]] || [[मनांग जिला|मनांग]]||अनुपलब्ध||0||
|-
|46|| [[गण्डकी प्रदेश]] ||[[मुस्तांग जिला|मुस्तांग]]||अनुपलब्ध||0||
|-
| 47 || [[प्रदेश संख्या 5]] || [[गुल्मी जिला|गुल्मी]] || [[रेसुंगा]] {{*}} [[मुसिकोट]] || 2 ||
|-
| 48 || [[प्रदेश संख्या 5]] || [[अर्घाखाँची जिला|अर्घाखाँची]] || [[सन्धीखर्क]] {{*}} [[शितगंगा]] {{*}} [[भूमिकास्थान]] || 3 ||
|-
| 49 || [[प्रदेश संख्या 5]] || [[पाल्पा जिला|पाल्पा]] || [[तानसेन]] {{*}} [[रामपुर]] || 2 ||
|-
| 50 || [[प्रदेश संख्या 5]] || [[कपिलवस्तु जिला|कपिलवस्तु]] ||[[कपिलवस्तु]] {{*}} [[बुद्धभूमि]] {{*}} [[शिवराज]] {{*}} [[वाणगंगा]] {{*}} [[कृष्णनगर, कपिलवस्तु|कृष्णनगर]] {{*}} [[महाराजगंज, कपिलवस्तु|महराजगंज]] || 6 ||
|-
| 51 || [[प्रदेश संख्या 5]] || [[रुपन्देही जिला|रुपन्देही]] ||[[सिद्धार्थनगर]] {{*}} [[सैनामैना]] {{*}} [[लुम्बिनी सांस्कृतिक]] {{*}} [[देवदह]] {{*}} [[तिलोत्तमा]] || 5 ||
|-
| 52 || [[प्रदेश संख्या 5]] || [[परासी जिला|परासी]] ||[[रामग्राम]] {{*}} [[सुनवल]] {{*}} [[बर्दघाट]]
|-
| 53 || [[प्रदेश संख्या 5]] || [[रोल्पा जिला|रोल्पा]] || [[रोल्पा]] || 1||
|-
| 54 || [[प्रदेश संख्या 5]] || [[प्युठान जिला|प्युठान]] || [[प्युठान]] {{*}} [[स्वर्गद्वारी]] || 2 ||
|-
| 55 || [[प्रदेश संख्या 5]] || [[बांके जिला|बांके]] ||[[कोहलपुर]] || 1 ||
|-
| 56 || [[प्रदेश संख्या 5]] || [[बर्दिया जिला|बर्दिया]] || [[गुलरिया]] {{*}} [[राजापुर]] {{*}} [[मधुबन]] {{*}} [[बाँसगढी]] {{*}} [[ठाकुरबाबा]] {{*}} [[बारबर्दिया]] || 6 ||
|-
| 57 || [[प्रदेश संख्या 5]] || [[दांग जिला|दांग]] || [[लमही]]|| 1 ||
|-
|58 || [[प्रदेश संख्या 5]] || [[पूरबी रुकुम जिला|पूरबी रुकुम]] ||अनुपलब्ध || 0 ||
|-
|59 || [[कर्णाली प्रदेश]] || [[पच्छिमी रुकुम जिला|पच्छिमी रुकुम]] || [[मुसीकोट]] {{*}} [[चौरजहारी]] {{*}} [[आठबिस्कोट]] || 3 ||
|-
| 60 || [[कर्णाली प्रदेश]] || [[सल्यान जिला|सल्यान]] || [[शारदा]] {{*}} [[बागचौर]] {{*}} [[बनगाड कुपिण्डे]] || 3 ||
|-
| 61 || [[कर्णाली प्रदेश]] || [[दैलेख जिला|दैलेख]] ||[[नारायण]] {{*}} [[दुल्लु]] {{*}} [[चामुण्डा विन्द्रासैनी]] {{*}} [[आठबीस]] || 4 ||
|-
| 62 || [[कर्णाली प्रदेश]] || [[सुर्खेत जिला|सुर्खेत]] ||[[वीरेन्द्रनगर]] {{*}} [[भेरीगंगा]] {{*}} [[गुर्भाकोट]] {{*}} [[पंचपुरी]] {{*}} [[लेकवेशी]] || 5 ||
|-
| 63 || [[कर्णाली प्रदेश]] || [[जुम्ला जिला|जुम्ला]] || [[चंदननाथ]] || 1 ||
|-
| 64 || [[कर्णाली प्रदेश]] || [[जाजरकोट जिला|जाजरकोट]] || [[छेडागाड]] {{*}} [[त्रिवेणी नलगाड]] {{*}} [[भेरी, जाजरकोट|भेरी]] || 3 ||
|-
|65 || [[कर्णाली प्रदेश]] ||[[डोल्पा जिला|डोल्पा]]||[[ठुली भेरी]] {{*}} [[त्रिपुरा सुंदरी]]||2||
|-
|66 || [[कर्णाली प्रदेश]] ||[[हुम्ला जिला|हुम्ला]]||अनुपलब्ध||0||
|-
|67 || [[कर्णाली प्रदेश]] ||[[कालीकोट जिला|कालीकोट]]|| [[खाँडाचक्र]] {{*}} [[रास्कोट]] {{*}} [[तिला गुफा]]||3||
|-
|68 || [[कर्णाली प्रदेश]] ||[[मुगु जिला|मुगु]]|| [[छायाँनाथ रारा]]||1||
|-
| 69 || [[प्रदेश संख्या 7]] || [[कैलाली जिला|कैलाली]] || [[गौरीगंगा]] {{*}} [[टीकापुर]] {{*}} [[गोदावरी, कैलाली|गोदावरी]] {{*}} [[लम्कीचुहा]] {{*}} [[भजनी]] {{*}} [[घोडाघोडी]] || 6 ||
|-
| 70 || [[प्रदेश संख्या 7]] || [[बझांग जिला|बझांग]] || [[जयपृथ्वी]] {{*}} [[बुंगल]] || 2 ||
|-
| 71 || [[प्रदेश संख्या 7]] || [[बाजुरा जिला|बाजुरा]] || [[बडिमालिका]] {{*}} [[त्रिवेणी]] {{*}} [[बुढीगंगा]] {{*}} [[बुढीनन्दा]] || 4 ||
|-
| 72 || [[प्रदेश संख्या 7]] || [[डोटी जिला|डोटी]] ||[[दिपायल सिलगढी]] {{*}} [[शिखर]] || 2 ||
|-
| 73 || [[प्रदेश संख्या 7]] || [[अछाम जिला|अछाम]] ||[[साँफेबगर]] {{*}} [[मंगलसेन]] {{*}} [[कमलबजार]] {{*}} [[पन्चदेवल विनायक]] || 4 ||
|-
| 74 || [[प्रदेश संख्या 7]] || [[दार्चुला जिला|दार्चुला]] || [[शैल्यशिखर]] {{*}} [[महाकाली, दार्चुला|महाकाली]]|| 2 ||
|-
| 75 || [[प्रदेश संख्या 7]] || [[बैतडी जिला|बैतडी]] || [[दसरथचन्द]] {{*}} [[पाटन]] {{*}} [[मेलौली]] {{*}} [[पुर्चौडी]] || 4 ||
|-
| 76 || [[प्रदेश संख्या 7]] || [[डडेलधुरा जिला|डडेलधुरा]] ||[[अमरगढी]] {{*}} [[परशुराम]] || 2 ||
|-
| 77 || [[प्रदेश संख्या 7]] || [[कंचनपुर जिला|कंचनपुर]] || [[भीमदत्त]] {{*}} [[पुनर्वास]] {{*}} [[बेलौरी]] {{*}} [[शुक्लाफाँटा]] {{*}} [[महाकाली, कंचनपुर|महाकाली]] {{*}} [[शुक्लाफाँटा]] {{*}} [[बेदकोट]] {{*}} [[कृष्णपुर]] || 7 ||
|-
!
![[नेपाल]]
!77
!
!276
!
|}
== इहो देखल जाय ==
* [[नेपाल के गाँवपालिका सभ के लिस्ट]]
== संदर्भ ==
{{Reflist}}
{{Nepal topics}}
[[श्रेणी:नेपाल के नगरपालिका सभ|*]]
iefvlw1l3o3jq1o26c4tlyac62g8rbn
श्रेणी:नोबेल प्राइज
14
58396
815323
578296
2026-11-12T17:27:29Z
SM7
3953
SM7 पन्ना [[श्रेणी:नोबेल पुरस्कार]] के [[श्रेणी:नोबेल प्राइज]] पर स्थानांतरण कइलें
578296
wikitext
text/x-wiki
{{cat main}}
[[श्रेणी:अवार्ड, पुरस्कार आ सम्मान]]
hbp1fin2556c4dulg7007sjy7jp1ml8
2018 फीफा वल्ड कप
0
61785
815172
805505
2026-11-12T15:17:20Z
SM7Bot
7808
सफाई using [[Project:AWB|AWB]]
815172
wikitext
text/x-wiki
{{Infobox international football competition
| tourney_name = फीफा वल्ड कप
| year = 2018
| other_titles = FIFA World Cup<br>{{lang|ru|Чемпионат мира по футболу 2018}}<br />''Chempionat mira po futbolu 2018''{{efn|स्टैंडर्ड [[रूसी भाषा|रूसी]] उच्चारण बा {{IPA-ru|tɕɪmʲpʲɪɐˈnat ˈmʲirə pə fʊdˈboɫʊ dvʲɪˈtɨsʲɪtɕɪ vəsʲɪmˈnatsətʲ|}}}}
| image = <!-- 2018 FIFA World Cup.svg --> <!--Notice: If a better version of the SVG logo than this is found by anyone, he/she is requested to upload it replacing the current logo.-->
| size = {{Logo size|FIFA trophy}}
| caption = 2018 फीफा वल्ड कप के ऑफिशियल लोगो
| country = Russia
| dates = {{Nowrap|14 जून – 15 जुलाई}}
| num_teams = 32
| confederations = 5
| venues = 12
| cities = 11
| champion =
| count =
| second =
| third =
| fourth =
| matches =
| goals =
| attendance =
| top_scorer =
| player =
| goalkeeper =
| young_player =
| fair_play =
| prevseason = [[2014 फीफा वल्ड कप|2014]]
| nextseason = ''[[2022 फीफा वल्ड कप|2022]]''
}}
'''2018 फीफा वल्ड कप''' (2018 FIFA World Cup), 21वाँ फीफा वल्ड कप, 14 जून 2018 से 15 जुलाई 2018 के बिचा में, [[रूस]] में आयोजित हो रहल फुटबाल बिस्व कप बाटे। ई मरदाना लोग के फुटबाल (सॉसर) बिस्व कप हवे आ रूस पहिले-पहिल एह खेल में मेजबानी क रहल बा, एकरा मेजबानी करे के घोषणा 2 दिसंबर 2010 के भइल रहे।
काफी सालन के बाद ई बिस्व कप यूरोप में हो रहल बा; एकरे पहिले साल 2006 में [[जर्मनी]] में एह बिस्व कप के आयोजन भइल रहल।
एह टूर्नामेंट में कुल 32 गो राष्ट्रिय टीम खेले जा रहल बाड़ी स, इनहन में से 31 के चुने खाती क्वालीफाइंग कंपटीशन भइल आ मेजबान टीम अपने आप दाखिल भ गइल। एह में से 20 गो टीम लगातार (पिछला 2014 के बिस्व कप के बाद दोबारा) टूर्नामेंट में सामिल हो रहल बाड़ी स आ [[आइसलैंड]] आ [[पनामा]] देस सभ के टीम पहिली बेर फीफा वल्ड कप में शामिल हो रहल बाड़ी। पछिला टूर्नामेंट में जर्मनी चैंपियन रहल।
एह बेर के टूर्नामेंट में कुल 64 गो मैच 12 गो स्टेडियम में आ 11 शहरन में खेलल जइहें। एकर फाइनल मैच 15 जुलाई के लुझनिकी स्टेडियम में खेलल जाई।
==टीम सभ==
कुल टीम जे एह बिस्व कप में खेल रहल बाड़ी सऽ
''नोट: ब्रैकेट में लिखल नंबर टूर्नामेंट के सुरू होखे के समय बिस्व रैंकिंग देखावत बा''<ref>{{cite web |url=https://www.fifa.com/fifa-world-ranking/ranking-table/men/index.html|title=FIFA/Coca-Cola World Ranking |publisher=FIFA |date=7 June 2018 |dead-url=no |archive-url=https://web.archive.org/web/20180608084924/http://www.fifa.com/fifa-world-ranking/ranking-table/men/index.html |archive-date=8 June 2018}}</ref>
{{col begin}}
{{col-4}}
;AFC (5)
*{{fb|AUS}} (36)
*{{fb|IRN}} (37)
*{{fb|JPN}} (61)
*{{fb|KSA}} (67)
*{{fb|KOR}} (57)
;CAF (5)
*{{fb|EGY}} (45)
*{{fb|MAR}} (41)
*{{fb|NGA}} (48)
*{{fb|SEN}} (27)
*{{fb|TUN}} (21)
{{col-4}}
;CONCACAF (3)
*{{fb|CRC}} (23)
*{{fb|MEX}} (15)
*{{fb|PAN}} (55)
;CONMEBOL (5)
*{{fb|ARG}} (5)
*{{fb|BRA}} (2)
*{{fb|COL}} (16)
*{{fb|PER}} (11)
*{{fb|URU}} (14)
;OFC (0)
*''एक्को नाहीं''
{{col-4}}
;UEFA (14)
*{{fb|BEL}} (3)
*{{fb|CRO}} (20)
*{{fb|DEN}} (=12)
*{{fb|ENG}} (=12)
*{{fb|FRA}} (7)
*{{fb|GER}} (1)
*{{fb|ISL}} (22)
*{{fb|POL}} (8)
*{{fb|POR}} (4)
*{{fb|RUS}} (70) (मेजबान)
*{{fb|SRB}} (34)
*{{fb|ESP}} (10)
*{{fb|SWE}} (24)
*{{fb|SUI}} (6)
{{col-4}}
[[File:2018 FIFA World Cup qualification map.png|thumb|right|500px|{{legend|#0000ff|क्वालीफाई भइल}} {{legend|#ffbf00|फेल हो गइल}} {{legend|#000000|भाग न लिहल}} {{legend|#cccccc|फीफा के मेंबर ना बा}}]]
{{col end}}
==स्टेडियम==
{| class="wikitable" style="text-align:center; margin-left:auto; margin-right:auto; border:none;"
|-
!colspan=2|[[मास्को]]
![[सेंट पीटर्सबर्ग]]
![[सोची]]
|-
|[[लुझनिकी स्टेडियम]]
|[[ओत्क्रीताई एरीना]]<br />'''{{small|(Spartak Stadium)}}'''
|[[क्रेस्तोव्सकी स्टेडियम]]<br />'''{{small|(Saint Petersburg Stadium)}}'''
|[[फिश्त ओलंपिक स्टेडियम]]<br />'''{{small|(Fisht Stadium)}}'''
|-
|क्षमता: '''78,011'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=810/index.html |title=Luzhniki Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=16 November 2017 |archive-url=https://web.archive.org/web/20171116193913/http://www.fifa.com/worldcup/destination/stadiums/stadium=810/index.html |url-status=dead}}</ref>
|Capacity: '''44,190'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5030706/index.html |title=Spartak Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=14 June 2018 |archive-url=https://web.archive.org/web/20180614171629/https://www.fifa.com/worldcup/destination/stadiums/stadium=5030706/index.html |url-status=dead}}</ref>
|Capacity: '''64,468'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031303/index.html |title=Saint Petersburg Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=6 December 2017 |archive-url=https://web.archive.org/web/20171206005821/https://www.fifa.com/worldcup/destination/stadiums/stadium=5031303/index.html |url-status=dead}}</ref>
|Capacity: '''44,287'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031302/index.html |title=Fisht Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083459/https://www.fifa.com/worldcup/destination/stadiums/stadium=5031302/index.html |url-status=dead}}</ref>
|-
|[[File:Moscow-Exterior of Luzhniki Stadium (2).jpg|250px]]
|[[File:Stadium Otkrytiye Arena1.jpg|250px]]
|[[File:Krestovsky Stadium.jpg|250px]]
|[[File:Fisht Stadium in January 2018.jpg|200px]]
|-
![[समारा]]
!rowspan=8 colspan=2|{{Location map+ |European Russia |width=400 |float=center |caption= |places=
{{Location map~ |European Russia |lat_deg=55|lat_min=45|lon_deg=37|lon_min=37|position=left |label=[[मास्को]]}}
{{Location map~ |European Russia |lat_deg=59|lat_min=58|lon_deg=30|lon_min=13|position=right |label=[[सेंट पीटर्सबर्ग]]}}
{{Location map~ |European Russia |lat_deg=54|lat_min=53|lon_deg=20|lon_min=29|position=right |label=[[Kaliningrad]]}}
{{Location map~ |European Russia |lat_deg=56|lat_min=16|lon_deg=43|lon_min=53|position=top |label=[[Nizhny Novgorod]]}}
{{Location map~ |European Russia |lat_deg=55|lat_min=49|lon_deg=49|lon_min=09|position=right |label=[[Kazan]]}}
{{Location map~ |European Russia |lat_deg=53|lat_min=14|lon_deg=50|lon_min=16|position=right |label=[[Samara]]}}
{{Location map~ |European Russia |lat_deg=48|lat_min=44|lon_deg=44|lon_min=32|position=top|label=[[Volgograd]]}}
{{Location map~ |European Russia |lat_deg=54|lat_min=10|lon_deg=45|lon_min=11|position=bottom|label=[[Saransk]]}}
{{Location map~ |European Russia |lat_deg=43|lat_min=34|lon_deg=39|lon_min=51|position=right |label=[[सोची]]}}
{{Location map~ |European Russia |lat_deg=47|lat_min=14|lon_deg=39|lon_min=43|position=right |label=[[Rostov-on-Don]]}}
{{Location map~ |European Russia |lat_deg=56|lat_min=50|lon_deg=60|lon_min=35|position=bottom|label=[[Yekaterinburg]]}}
}}
![[काज़ान]]
|-
|[[कोसमोस एरीना]]<br />'''{{small|(समारा एरीना)}}'''
|[[काज़ान एरीना]]
|-
|Capacity: '''41,970'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5001246/index.html |title=Samara Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=12 June 2018 |archive-url=https://web.archive.org/web/20180612163614/https://www.fifa.com/worldcup/destination/stadiums/stadium=5001246/index.html |url-status=dead}}</ref>
|Capacity: '''42,873'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5028773/index.html |title=Kazan Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083439/https://www.fifa.com/worldcup/destination/stadiums/stadium=5028773/index.html |url-status=dead}}</ref>
|-
|[[File:Samara Arena.jpg|220px]]
|[[File:Казань арена.jpg|200px]]
|-
![[Rostov-on-Don]]
![[Volgograd]]
|-
|[[Rostov Arena]]
|[[Volgograd Arena]]
|-
|Capacity: '''43,472'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5000547/index.html |title=Rostov Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083318/https://www.fifa.com/worldcup/destination/stadiums/stadium=5000547/index.html |url-status=dead}}</ref>
|Capacity: '''43,713'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5000569/index.html |title=Volgograd Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=15 October 2017 |archive-url=https://web.archive.org/web/20171015020710/http://www.fifa.com/worldcup/destination/stadiums/stadium=5000569/index.html |url-status=dead}}</ref>
|-
|[[File:Rostov Arena2018 (cropped).jpg|200px]]
|[[File:Volgograd Arena 2018-06-24 02.jpg|220px]]
|-
![[Nizhny Novgorod]]
![[Saransk]]
![[Yekaterinburg]]
![[Kaliningrad]]
|-
|[[Nizhny Novgorod Stadium]]
|[[Mordovia Arena]]
|[[Central Stadium (Yekaterinburg)|Central Stadium]]<br />'''{{small|(Ekaterinburg Arena)}}'''
|[[Kaliningrad Stadium]]
|-
|Capacity: '''43,319'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5001165/index.html |title=Nizhny Novgorod Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083412/https://www.fifa.com/worldcup/destination/stadiums/stadium=5001165/index.html |url-status=dead}}</ref>
|Capacity: '''41,685'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031301/index.html |title=Mordovia Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=14 May 2018 |archive-url=https://web.archive.org/web/20180514213744/http://www.fifa.com/worldcup/destination/stadiums/stadium=5031301/index.html |url-status=dead}}</ref>
|Capacity: '''33,061'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031304/index.html |title=Ekaterinburg Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=31 March 2018 |archive-url=https://web.archive.org/web/20180331173605/http://www.fifa.com/worldcup/destination/stadiums/stadium=5031304/index.html |url-status=dead}}</ref>
|Capacity: '''33,973'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5000437/index.html |title=Kaliningrad Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=8 October 2017 |archive-url=https://web.archive.org/web/20171008114652/http://www.fifa.com/worldcup/destination/stadiums/stadium=5000437/index.html |url-status=dead}}</ref>
|-
|[[File:Nizhny Novgorod Stadium 2018-05-02 (1).jpg|200px]]
|[[File:Mordovia_Arena_stadium.jpg|220px]]
|[[File:Estadio Central (Ekaterinburg-arena).jpg|220px]]
|[[File:Kaliningrad stadium - 2018-04-07.jpg|200px]]
|}
{{Clear}}
==नोट==
<references group="नोट"/>
==संदर्भ==
{{Reflist}}
{{फुटबॉल-आधार}}
[[श्रेणी:फीफा वल्ड कप]]
4fvo9zglm29a98c4r2vnzgnm8llo753
815184
815172
2026-11-12T15:21:07Z
SM7Bot
7808
/* टीम सभ */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815184
wikitext
text/x-wiki
{{Infobox international football competition
| tourney_name = फीफा वल्ड कप
| year = 2018
| other_titles = FIFA World Cup<br>{{lang|ru|Чемпионат мира по футболу 2018}}<br />''Chempionat mira po futbolu 2018''{{efn|स्टैंडर्ड [[रूसी भाषा|रूसी]] उच्चारण बा {{IPA-ru|tɕɪmʲpʲɪɐˈnat ˈmʲirə pə fʊdˈboɫʊ dvʲɪˈtɨsʲɪtɕɪ vəsʲɪmˈnatsətʲ|}}}}
| image = <!-- 2018 FIFA World Cup.svg --> <!--Notice: If a better version of the SVG logo than this is found by anyone, he/she is requested to upload it replacing the current logo.-->
| size = {{Logo size|FIFA trophy}}
| caption = 2018 फीफा वल्ड कप के ऑफिशियल लोगो
| country = Russia
| dates = {{Nowrap|14 जून – 15 जुलाई}}
| num_teams = 32
| confederations = 5
| venues = 12
| cities = 11
| champion =
| count =
| second =
| third =
| fourth =
| matches =
| goals =
| attendance =
| top_scorer =
| player =
| goalkeeper =
| young_player =
| fair_play =
| prevseason = [[2014 फीफा वल्ड कप|2014]]
| nextseason = ''[[2022 फीफा वल्ड कप|2022]]''
}}
'''2018 फीफा वल्ड कप''' (2018 FIFA World Cup), 21वाँ फीफा वल्ड कप, 14 जून 2018 से 15 जुलाई 2018 के बिचा में, [[रूस]] में आयोजित हो रहल फुटबाल बिस्व कप बाटे। ई मरदाना लोग के फुटबाल (सॉसर) बिस्व कप हवे आ रूस पहिले-पहिल एह खेल में मेजबानी क रहल बा, एकरा मेजबानी करे के घोषणा 2 दिसंबर 2010 के भइल रहे।
काफी सालन के बाद ई बिस्व कप यूरोप में हो रहल बा; एकरे पहिले साल 2006 में [[जर्मनी]] में एह बिस्व कप के आयोजन भइल रहल।
एह टूर्नामेंट में कुल 32 गो राष्ट्रिय टीम खेले जा रहल बाड़ी स, इनहन में से 31 के चुने खाती क्वालीफाइंग कंपटीशन भइल आ मेजबान टीम अपने आप दाखिल भ गइल। एह में से 20 गो टीम लगातार (पिछला 2014 के बिस्व कप के बाद दोबारा) टूर्नामेंट में सामिल हो रहल बाड़ी स आ [[आइसलैंड]] आ [[पनामा]] देस सभ के टीम पहिली बेर फीफा वल्ड कप में शामिल हो रहल बाड़ी। पछिला टूर्नामेंट में जर्मनी चैंपियन रहल।
एह बेर के टूर्नामेंट में कुल 64 गो मैच 12 गो स्टेडियम में आ 11 शहरन में खेलल जइहें। एकर फाइनल मैच 15 जुलाई के लुझनिकी स्टेडियम में खेलल जाई।
==टीम सभ==
कुल टीम जे एह बिस्व कप में खेल रहल बाड़ी सऽ
''नोट: ब्रैकेट में लिखल नंबर टूर्नामेंट के सुरू होखे के समय बिस्व रैंकिंग देखावत बा''<ref>{{cite web |url=https://www.fifa.com/fifa-world-ranking/ranking-table/men/index.html|title=FIFA/Coca-Cola World Ranking |publisher=FIFA |date=7 June 2018 |url-status=live |archive-url=https://web.archive.org/web/20180608084924/http://www.fifa.com/fifa-world-ranking/ranking-table/men/index.html |archive-date=8 June 2018}}</ref>
{{col begin}}
{{col-4}}
;AFC (5)
*{{fb|AUS}} (36)
*{{fb|IRN}} (37)
*{{fb|JPN}} (61)
*{{fb|KSA}} (67)
*{{fb|KOR}} (57)
;CAF (5)
*{{fb|EGY}} (45)
*{{fb|MAR}} (41)
*{{fb|NGA}} (48)
*{{fb|SEN}} (27)
*{{fb|TUN}} (21)
{{col-4}}
;CONCACAF (3)
*{{fb|CRC}} (23)
*{{fb|MEX}} (15)
*{{fb|PAN}} (55)
;CONMEBOL (5)
*{{fb|ARG}} (5)
*{{fb|BRA}} (2)
*{{fb|COL}} (16)
*{{fb|PER}} (11)
*{{fb|URU}} (14)
;OFC (0)
*''एक्को नाहीं''
{{col-4}}
;UEFA (14)
*{{fb|BEL}} (3)
*{{fb|CRO}} (20)
*{{fb|DEN}} (=12)
*{{fb|ENG}} (=12)
*{{fb|FRA}} (7)
*{{fb|GER}} (1)
*{{fb|ISL}} (22)
*{{fb|POL}} (8)
*{{fb|POR}} (4)
*{{fb|RUS}} (70) (मेजबान)
*{{fb|SRB}} (34)
*{{fb|ESP}} (10)
*{{fb|SWE}} (24)
*{{fb|SUI}} (6)
{{col-4}}
[[File:2018 FIFA World Cup qualification map.png|thumb|right|500px|{{legend|#0000ff|क्वालीफाई भइल}} {{legend|#ffbf00|फेल हो गइल}} {{legend|#000000|भाग न लिहल}} {{legend|#cccccc|फीफा के मेंबर ना बा}}]]
{{col end}}
==स्टेडियम==
{| class="wikitable" style="text-align:center; margin-left:auto; margin-right:auto; border:none;"
|-
!colspan=2|[[मास्को]]
![[सेंट पीटर्सबर्ग]]
![[सोची]]
|-
|[[लुझनिकी स्टेडियम]]
|[[ओत्क्रीताई एरीना]]<br />'''{{small|(Spartak Stadium)}}'''
|[[क्रेस्तोव्सकी स्टेडियम]]<br />'''{{small|(Saint Petersburg Stadium)}}'''
|[[फिश्त ओलंपिक स्टेडियम]]<br />'''{{small|(Fisht Stadium)}}'''
|-
|क्षमता: '''78,011'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=810/index.html |title=Luzhniki Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=16 November 2017 |archive-url=https://web.archive.org/web/20171116193913/http://www.fifa.com/worldcup/destination/stadiums/stadium=810/index.html |url-status=dead}}</ref>
|Capacity: '''44,190'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5030706/index.html |title=Spartak Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=14 June 2018 |archive-url=https://web.archive.org/web/20180614171629/https://www.fifa.com/worldcup/destination/stadiums/stadium=5030706/index.html |url-status=dead}}</ref>
|Capacity: '''64,468'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031303/index.html |title=Saint Petersburg Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=6 December 2017 |archive-url=https://web.archive.org/web/20171206005821/https://www.fifa.com/worldcup/destination/stadiums/stadium=5031303/index.html |url-status=dead}}</ref>
|Capacity: '''44,287'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031302/index.html |title=Fisht Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083459/https://www.fifa.com/worldcup/destination/stadiums/stadium=5031302/index.html |url-status=dead}}</ref>
|-
|[[File:Moscow-Exterior of Luzhniki Stadium (2).jpg|250px]]
|[[File:Stadium Otkrytiye Arena1.jpg|250px]]
|[[File:Krestovsky Stadium.jpg|250px]]
|[[File:Fisht Stadium in January 2018.jpg|200px]]
|-
![[समारा]]
!rowspan=8 colspan=2|{{Location map+ |European Russia |width=400 |float=center |caption= |places=
{{Location map~ |European Russia |lat_deg=55|lat_min=45|lon_deg=37|lon_min=37|position=left |label=[[मास्को]]}}
{{Location map~ |European Russia |lat_deg=59|lat_min=58|lon_deg=30|lon_min=13|position=right |label=[[सेंट पीटर्सबर्ग]]}}
{{Location map~ |European Russia |lat_deg=54|lat_min=53|lon_deg=20|lon_min=29|position=right |label=[[Kaliningrad]]}}
{{Location map~ |European Russia |lat_deg=56|lat_min=16|lon_deg=43|lon_min=53|position=top |label=[[Nizhny Novgorod]]}}
{{Location map~ |European Russia |lat_deg=55|lat_min=49|lon_deg=49|lon_min=09|position=right |label=[[Kazan]]}}
{{Location map~ |European Russia |lat_deg=53|lat_min=14|lon_deg=50|lon_min=16|position=right |label=[[Samara]]}}
{{Location map~ |European Russia |lat_deg=48|lat_min=44|lon_deg=44|lon_min=32|position=top|label=[[Volgograd]]}}
{{Location map~ |European Russia |lat_deg=54|lat_min=10|lon_deg=45|lon_min=11|position=bottom|label=[[Saransk]]}}
{{Location map~ |European Russia |lat_deg=43|lat_min=34|lon_deg=39|lon_min=51|position=right |label=[[सोची]]}}
{{Location map~ |European Russia |lat_deg=47|lat_min=14|lon_deg=39|lon_min=43|position=right |label=[[Rostov-on-Don]]}}
{{Location map~ |European Russia |lat_deg=56|lat_min=50|lon_deg=60|lon_min=35|position=bottom|label=[[Yekaterinburg]]}}
}}
![[काज़ान]]
|-
|[[कोसमोस एरीना]]<br />'''{{small|(समारा एरीना)}}'''
|[[काज़ान एरीना]]
|-
|Capacity: '''41,970'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5001246/index.html |title=Samara Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=12 June 2018 |archive-url=https://web.archive.org/web/20180612163614/https://www.fifa.com/worldcup/destination/stadiums/stadium=5001246/index.html |url-status=dead}}</ref>
|Capacity: '''42,873'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5028773/index.html |title=Kazan Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083439/https://www.fifa.com/worldcup/destination/stadiums/stadium=5028773/index.html |url-status=dead}}</ref>
|-
|[[File:Samara Arena.jpg|220px]]
|[[File:Казань арена.jpg|200px]]
|-
![[Rostov-on-Don]]
![[Volgograd]]
|-
|[[Rostov Arena]]
|[[Volgograd Arena]]
|-
|Capacity: '''43,472'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5000547/index.html |title=Rostov Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083318/https://www.fifa.com/worldcup/destination/stadiums/stadium=5000547/index.html |url-status=dead}}</ref>
|Capacity: '''43,713'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5000569/index.html |title=Volgograd Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=15 October 2017 |archive-url=https://web.archive.org/web/20171015020710/http://www.fifa.com/worldcup/destination/stadiums/stadium=5000569/index.html |url-status=dead}}</ref>
|-
|[[File:Rostov Arena2018 (cropped).jpg|200px]]
|[[File:Volgograd Arena 2018-06-24 02.jpg|220px]]
|-
![[Nizhny Novgorod]]
![[Saransk]]
![[Yekaterinburg]]
![[Kaliningrad]]
|-
|[[Nizhny Novgorod Stadium]]
|[[Mordovia Arena]]
|[[Central Stadium (Yekaterinburg)|Central Stadium]]<br />'''{{small|(Ekaterinburg Arena)}}'''
|[[Kaliningrad Stadium]]
|-
|Capacity: '''43,319'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5001165/index.html |title=Nizhny Novgorod Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=15 June 2018 |archive-url=https://web.archive.org/web/20180615083412/https://www.fifa.com/worldcup/destination/stadiums/stadium=5001165/index.html |url-status=dead}}</ref>
|Capacity: '''41,685'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031301/index.html |title=Mordovia Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=14 May 2018 |archive-url=https://web.archive.org/web/20180514213744/http://www.fifa.com/worldcup/destination/stadiums/stadium=5031301/index.html |url-status=dead}}</ref>
|Capacity: '''33,061'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5031304/index.html |title=Ekaterinburg Arena |publisher=FIFA |access-date=15 June 2018 |archive-date=31 March 2018 |archive-url=https://web.archive.org/web/20180331173605/http://www.fifa.com/worldcup/destination/stadiums/stadium=5031304/index.html |url-status=dead}}</ref>
|Capacity: '''33,973'''<ref>{{cite web |url=https://www.fifa.com/worldcup/destination/stadiums/stadium=5000437/index.html |title=Kaliningrad Stadium |publisher=FIFA |access-date=15 June 2018 |archive-date=8 October 2017 |archive-url=https://web.archive.org/web/20171008114652/http://www.fifa.com/worldcup/destination/stadiums/stadium=5000437/index.html |url-status=dead}}</ref>
|-
|[[File:Nizhny Novgorod Stadium 2018-05-02 (1).jpg|200px]]
|[[File:Mordovia_Arena_stadium.jpg|220px]]
|[[File:Estadio Central (Ekaterinburg-arena).jpg|220px]]
|[[File:Kaliningrad stadium - 2018-04-07.jpg|200px]]
|}
{{Clear}}
==नोट==
<references group="नोट"/>
==संदर्भ==
{{Reflist}}
{{फुटबॉल-आधार}}
[[श्रेणी:फीफा वल्ड कप]]
3oqprh89hw4vd6dycrbzec33tx4papx
फ्लैश मॉब
0
62055
815165
781328
2026-11-12T14:15:28Z
SM7Bot
7808
सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815165
wikitext
text/x-wiki
[[File:Wikipillow.jpg|thumb|right|upright=0.9|Flash mobs, like this pillow fight flash mob in Downtown Toronto (2005), are designed to surprise passers-by.]]
'''फ्लैश मॉब''' ({{Lang|en|flash mob}} भा flashmob)<ref>{{Cite journal | date = February 9, 2009 | journal = CNN.com | title = Facebook flashmob shuts down station | url = http://www.cnn.com/2009/WORLD/europe/02/09/uk.station.flashmob/index.html}}</ref>, शाब्दिक अरथ - अचानक झटाक से आ कुछे देरी भर खातिर एकट्ठा भइल भीड़, में कम से कम 10 लोग अचानक कौनों पब्लिक जगह पर प्रगट होला, कुछ अजीब हरकत भा कौनों बिना मतलब के काम करे ला आ कुछ मिनट बाद तितर-बितर हो के गायब हो जाला; आमतौर पर ई चकित करे, मजाक बनावे, भा कलात्मक परफार्मेंस के मकसद से होला।<ref>{{cite news|url=http://news.bbc.co.uk/cbbcnews/hi/uk/newsid_3876000/3876685.stm|title=Va-va-voom is in the dictionary |publisher=BBC|date=July 8, 2004|accessdate=May 5, 2010}}</ref><ref name="COED">{{cite web|url=http://oxforddictionaries.com/view/entry/m_en_gb0972977#m_en_gb0972977|title=definition of flash mob from Oxford English Dictionaries Online|publisher=[[Oxford University Press]]|date=July 8, 2004|accessdate=May 9, 2010|archive-date=May 10, 2011|archive-url=https://web.archive.org/web/20110510024647/http://oxforddictionaries.com/view/entry/m_en_gb0972977#m_en_gb0972977|url-status=dead}}</ref><ref>{{cite news|url=https://www.bbc.co.uk/news/world-us-canada-14509831|title=Mixed feelings over Philadelphia's flash-mob curfew|publisher=BBC|date=August 12, 2011}}</ref> फ्लैश मॉब सभ के संजोजन टेलीकम्युनिकेशन, [[सोशल मीडिया]] आ वाइरल ई-मेल सभ के जरिये कइल जाला।<ref name="wallstreet">{{cite web|url=http://s.wsj.net/article/SB120814163599712081.html|title=Students Unleash A Pillow Fight On Manhattan|work=Wall Street Journal|last=Athavaley|first=Anjali|date=April 15, 2008|accessdate=May 19, 2008|archive-date=January 11, 2009|archive-url=https://web.archive.org/web/20090111210331/http://s.wsj.net/article/SB120814163599712081.html|url-status=dead}}</ref><ref name="abc">{{cite news|url=http://www.abcnews.go.com/International/story?id=4758736&page=1|title=Time Freezes in Central London|publisher=ABC News|date=April 30, 2008 |accessdate=January 25, 2009}}</ref><ref name="cnn3">{{cite news|url=http://www.cnn.com/2003/TECH/internet/08/04/flash.mob/|title='Flash mob' craze spreads|author=Sandra Shmueli|publisher=CNN|date=August 8, 2003}}</ref>
ई शब्द के ईजाद 2003 में कइल गइल, ई राजनीतिक बिरोध प्रदर्शन, कामर्शियल परचार, पब्लिसिटी खातिर स्टंट जेह में कौनों कंपनी भा प्रोफेशनल लोग सामिल होखे वगैरह नियर चीज के ना सामिल कइल जाला।<ref name="manifesto">{{cite web|url=http://aglomerarispontane.weblog.ro/2004-12-05/20168/Manifestul-Aglomerarilor-Spontane---A-Flashmob-Manifesto.html|archive-url=https://web.archive.org/web/20070209041136/http://aglomerarispontane.weblog.ro/2004-12-05/20168/Manifestul-Aglomerarilor-Spontane---A-Flashmob-Manifesto.html|url-status=|archive-date=February 9, 2007|title=Manifestul Aglomerarilor Spontane / A Flashmob Manifesto|date=December 5, 2004|accessdate=December 27, 2011}}</ref><ref>{{cite news|url=https://www.thestar.com/news/world/article/911773--failed-choral-flash-mob-may-not-have-qualified-for-term|title=Failed choral 'flash mob' may not have qualified for term|work=Toronto Star|author= Ed Fletcher|date=December 23, 2010|accessdate=December 30, 2010}}</ref> पहिले से प्लानिग के साथ आ कौनों सामाजिक काम खाती अइसन कइल आयोजन सभ के [[स्मार्ट मॉब]] कहल जाला।
अइसने मिलत-जुलत अपराध नियर गतिबिधी भी देखल गइल बा जेह में अचानक कुछ लोग, जे एक दुसरे से अनजान होखे, फ्लैश मॉब के रूप में जमा हो के कौनों दुकान लूट ले। अइसन घटना सभ के [[फ्लैश रॉब]] (झटका से लूट) के नाँव दिहल गइल बाटे।
{{Clear}}
==इहो देखल जाय==
* [[स्मार्ट मॉब]]
* [[मॉब लिंचिंग]]
* [[फ्लैश रॉब]]
==संदर्भ==
{{Reflist|33em}}
==बाहरी कड़ी==
* [https://aajtak.intoday.in/video/Flash-mob-against-terror-at-Gateway-of-India%E2%80%8E-1-694456.html गेटवे ऑफ इंडिया पर फ्लैश मॉब], बीडियो, आजतक पर।
{{समाज-आधार}}
[[श्रेणी:समाज]]
[[श्रेणी:संस्कृति]]
[[श्रेणी:सोशल मीडिया]]
hruovd05t9v7e2633rs4r4vb6o3aqan
वानूआतू
0
62177
815303
763083
2026-11-12T16:46:24Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815303
wikitext
text/x-wiki
{{Infobox country
|coordinates = {{Coord|display=t}}
|conventional_long_name = वानूआतू रिपब्लिक <br><small>Republic of Vanuatu</small>
|common_name = वानूआतू
|image_map = Vanuatu on the globe (Polynesia centered).svg
|capital = [[पोर्ट विला]]
|area_km2 = 12,189
|population_census = 272,459<ref>{{Cite web|url=https://vnso.gov.vu/index.php/component/advlisting/?view=download&fileId=4542|title=2016 Post-TC Pam Mini-Census Report|date=21 July 2017|website=vnso.gov.vu|publisher=Government of Vanuatu|url-status=|accessdate=29 December 2017|archive-date=20 January 2019|archive-url=https://web.archive.org/web/20190120015434/https://vnso.gov.vu/index.php/component/advlisting/?view=download&fileId=4542|url-status=dead}}</ref>
|population_census_year = 2016
|GDP_PPP = $723 मिलियन<ref name=imf2>{{cite web |url=https://www.imf.org/external/pubs/ft/weo/2017/01/weodata/weorept.aspx?sy=2010&ey=2018&scsm=1&ssd=1&sort=country&ds=.&br=1&pr1.x=26&pr1.y=10&c=846&s=NGDPD%2CNGDPDPC%2CPPPGDP%2CPPPPC&grp=0&a= |title=Vanuatu |publisher=International Monetary Fund |accessdate=20 May 2017}}</ref>
|GDP_PPP_year = 2017
|Gini = 37.2 <!--number only-->
|Gini_year = 2010
|HDI = 0.597 <!--number only-->
|HDI_year = 2015<!-- Please use the year to which the data refers, not the publication year-->
|time_zone = वानूआतू टाइम
|utc_offset = +11
}}
'''वानूआतू''' (''Vanuatu'') प्रशांत महासागर में एगो दीपीय देस बा। ई दक्खिनी प्रशांत महासागर में एगो दीप चाप के रूप में बा जे ज्वालामुखी क्रिया से बनल दीप हवें आ उत्तरी आस्ट्रेलिया से लगभग {{convert|1750|km|mi}} पूरुब में, न्यू कैलेडोनिया से {{convert|540|km|mi}} उत्तर पूरुब में, न्यूगिनी से पूरुब में,सोलोमन दीप से दक्खिन पूरुब में आ फिजी के पच्छिम ओर बाटे।
{{Clear}}
==संदर्भ==
{{Reflist}}
{{Oceania topic}}
{{भू-आधार}}
dcyo4yjv2o064qlabjhp91fpn3kup6q
नोरा रॉबर्ट्स
0
62407
815173
812037
2026-11-12T15:17:25Z
SM7Bot
7808
/* Golden Medallion awards */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815173
wikitext
text/x-wiki
{{Infobox writer <!-- for more information see [[:Template:Infobox writer/doc]] -->
| name = Nora Roberts
| image = NoraRoberts.jpg
| imagesize = 220px
| alt =
| caption = Nora Roberts, 2007
| pseudonym = Nora Roberts<br>J.D. Robb<br>Jill March<br>Sarah Hardesty
| birth_name = Eleanor Marie Robertson
| birth_date = {{birth date and age|1950|10|10|mf=y}}
| birth_place = [[Silver Spring, Maryland]], United States
| death_date =
| death_place =
| occupation = Novelist
| nationality = American
| ethnicity =
| citizenship =
| education =
| alma_mater =
| period = 1981–present
| genre = Romance, fantasy, suspense
| subject =
| movement =
| notableworks =
| spouse = Ronald Aufdem-Brinke (1968–1983, divorced)<br>Bruce Wilder (1985–present)
| partner =
| children = 2
| relatives =
| influences =
| influenced =
| awards =
| signature =
| website = {{URL|http://www.noraroberts.com/}}
| portaldisp =
}}
'''नोरा रॉबर्ट्स''' (Nora Roberts; 10 अक्टूबर 1950) एगो अमेरिकी लेखिका बाड़ी। ई रोमांस उपन्यास लिखे खातिर जानल जाली आ अबतक ले इनके लिखल 225 उपन्यास छप चुकल बाड़ें।
===Bibliography===
Many of Roberts' novels have been, or will be, reissued. To avoid confusion, all of Roberts' new releases include a logo that is a circle with the initials "NR" inside, indicating that the book has never been published before.<ref name="memmott">{{citation|last=Memmott|first=Carol|title=Prolific Nora Roberts publishes 159th novel|newspaper=[[USAToday]]|date=जुलाई 12, 2005|page=04D.}}</ref>
===Screen adaptations===
*''Magic Moments'': 1989
*''Sanctuary'': 2001
*''[[Angels Fall (TV film)|Angels Fall]]'': 2007
*''[[Montana Sky]]'': 2007
*''[[Blue Smoke]]'': 2007
*''[[Carolina Moon (2007 film)|Carolina Moon]]'': 2007
*''[[Northern Lights (2009 film)|Northern Lights]]'': 2009
*''[[Midnight Bayou]]'': 2009
*''[[High Noon (2009 film)|High Noon]]'': 2009
*''[[Tribute (2009 film)|Tribute]]'': 2009
*''[[Carnal Innocence]]'': 2011
====Lifetime Movie Channel====
Several of Roberts' books have been adapted into made-for-TV movies and aired on [[Lifetime Television|Lifetime]].
The 2007 Collection featured:
*''[[Angels Fall (TV film)|Angels Fall]]''
*''[[Montana Sky]]''
*''[[Carolina Moon (2007 film)|Carolina Moon]]''
*''[[Blue Smoke]]''
The 2009 Collection featured:<ref>[http://www.mylifetime.com/on-tv/movies/nora-roberts ] {{webarchive |url=https://web.archive.org/web/20090312041530/http://www.mylifetime.com/on-tv/movies/nora-roberts |date=मार्च 12, 2009 }}</ref>
*''[[Northern Lights (2009 film)|Northern Lights]]''
*''[[Midnight Bayou]]''
*''[[High Noon (2009 film)|High Noon]]''
*''[[Tribute (2009 film)|Tribute]]''
[[Peter Guber]]'s Mandalay TV and Stephanie Germain Prods. produced the eight adaptations.
===Awards===
====As Nora Roberts====
=====Golden Medallion awards=====
[[Romance Writers of America#Golden Medallion|Golden Medallion awards]] were awarded by the Romance Writers of America.<ref name="NR-Awards">{{Citation|title=Romance Writers of America: National Contests and Awards |url=http://www.rwanational.org/cs/contests_and_awards/rita_awards/past_winners |archive-url=https://web.archive.org/web/20070927043913/http://www.rwanational.org/cs/contests_and_awards/rita_awards/past_winners |url-status= |archive-date=सितंबर 27, 2007 |accessdate=नवंबर 15, 2007 }}</ref>
*''The Heart's Victory'': 1983 Golden Medallion for Best Contemporary Sensual Romance
*''Untamed'': 1984 Golden Medallion for Best Traditional Romance
*''This Magic Moment'': 1984 Golden Medallion for Best Contemporary 65–80,000 words, shared with Deirdre Mardn's ''Destiny's Sweet Errand''
*''Opposites Attract'': 1985 Golden Medallion for Best Short Contemporary Romance
*''A Matter of Choice'': 1985 Golden Medallion for Best Long Contemporary Series Romance
*''One Summer'': 1987 Golden Medallion for Best Long Contemporary Series Romance
*''Brazen Virtue'': 1989 Golden Medallion for Best Suspense
=====RITA Awards=====
[[RITA Award]]s are awarded by the Romance Writers of America.<ref name="NR-Awards"/>
*''Night Shift'': 1992 RITA Award for Best Romantic Suspense
*''Divine Evil'': 1993 RITA Award for Best Romantic Suspense
*''Nightshade'': 1994 RITA Award for Best Romantic Suspense
*''Private Scandals'': 1994 RITA Award for Best Contemporary Single Title
*''Hidden Riches'': 1995 RITA Award for Best Romantic Suspense
*''Born in Ice'': 1996 RITA Award for Best Contemporary Single Title
*''Born in Ice'': 1996 RITA Award for Best Romance of 1995
*''Carolina Moon'': 2001 RITA Award for Best Romantic Suspense
*''Three Fates'': 2003 RITA Award for Best Romantic Suspense
*''Remember When – Part 1'': 2004 RITA Award for Best Romantic Suspense
*''Birthright'': 2004 RITA Award for Best Contemporary Single Title
*''Tribute'': 2009 RITA Award Best Novel with Strong Romantic Elements<ref name="ritapast">{{Citation|title=RITA Awards: Past Winners|url=http://www.rwa.org/cs/contests_and_awards/rita_awards/past_winners|accessdate=नवंबर 25, 2012|url-status=dead|archiveurl=https://web.archive.org/web/20120918204447/http://www.rwa.org/cs/contests_and_awards/rita_awards/past_winners|archivedate=सितंबर 18, 2012|df=mdy-all}}</ref>
=====Quill awards=====
[[Quill award]]s are awarded by the Quills Foundation.<ref name="Q-Awards">{{Citation | title = The Quill Awards | url = http://www.thequills.org/ | accessdate = November 23, 2007 | archive-date = June 25, 2013 | archive-url = https://web.archive.org/web/20130625022935/http://thequills.org/ | url-status = dead }}</ref>
*''Angels Fall'': 2006 Book of the year
*''Angels Fall'': 2006 Romance
*''Blue Smoke'': 2007 Romance
====As J.D. Robb<ref name="JDR-FF">{{Citation | title = J.D. Robb in Fantastic Fiction's | url = http://www.fantasticfiction.co.uk/r/j-d-robb/ | accessdate = September 26, 2007}}</ref>====
*''Survivor in Death'': 2006 RITA Awards Romantic Suspense winner
*''New York to Dallas'': 2012 RITA Awards Best Romantic Suspense winner<ref name="ritapast"/>
{{Clear}}
==संदर्भ==
{{Reflist}}
{{Authority control}}
[[श्रेणी:अमेरिका के लेखक]]
[[श्रेणी:1950 में जनम]]
[[श्रेणी:जियत लोग]]
{{Writer-stub}}
2bifs5qccljyxe8p5q84bbyxvmrwd3u
पाकिस्तानी आम चुनाव, 2018
0
62821
815167
784638
2026-11-12T14:15:36Z
SM7Bot
7808
/* संदर्भ */ सफाई using [[Project:AWB|AWB]]
815167
wikitext
text/x-wiki
{{Infobox election
| election_name = पाकिस्तानी आम चुनाव, 2018
| country = पाकिस्तान
| type = parliamentary
| ongoing = yes
| previous_election = पाकिस्तानी आम चुनाव, 2013
| previous_year = 2013
| election_date = 25 जुलाई 2018
| next_election = पाकिस्तानी आम चुनाव, 2023
| next_year = Next
| seats_for_election = पाकिस्तान के नेशनल असेंबली के सगरी 342 सीट पर
| majority_seats = 172
| opinion_polls =
| turnout =
| elected_mps =
| image1 = [[File:Mian Shehbaz Sharif.JPG|150x150px]]
| leader1 = [[शाहनबाज शरीफ]]
| party1 = पाकिस्तान मुस्लिम लीग (N)
| leader_since1 = 6 मार्च 2018
| leaders_seat1 = [[NA-3 (Swat-II)|Swat-II]]<br />[[NA-132 (Lahore-X)|Lahore-X]]<br />[[NA-192 (Dera Ghazi Khan-IV)|Dera Ghazi Khan-IV]]<br />[[NA-249 (Karachi West-II)|Karachi West-II]]
| seats_needed1 = {{increase}} 6
| last_election1 = 166 सीट, 32.77%
| seats1 = <!-- Pakistan Peoples Party -->
| image2 = [[File:Bilawal Bhutto Zardari - 2012 (7268800476) (cropped).jpg|150x150px]]
| leader2 = [[बिलावल भुट्टो जरदारी]]
| leader_since2 = 30 दिसंबर 2007
| party2 = पाकिस्तान पीपल्स पार्टी
| color2 =
| leaders_seat2 = [[NA-8 (Malakand)|Malakand]]<br />[[NA-200 (Larkana-I)|Larkana-I]]<br />[[NA-246 (Karachi South-I)|Karachi South-I]]
| popular_vote2 =
| percentage2 =
| last_election2 = 42 सीट, 15.23%
| seats2 =
| seats_needed2 = {{increase}} 130
<!-- Pakistan Tehreek-e-Insaf -->
| image3 = [[File:Imran Khan - portrait (cropped).jpg|150x150px]]
| leader3 = [[इमरान खान]]
| leader_since3 = 25 April 1996
| party3 = पाकिस्तान तहरीक-ए-इंसाफ
| color3 =
| leaders_seat3 = [[NA-35 (Bannu)|Bannu]]<br />[[NA-53 (Islamabad-II)|Islamabad-II]]<br />[[NA-95 (Mianwali-I)|Mianwali-I]]<br />[[NA-131 (Lahore-IX)|Lahore-IX]]<br />[[NA-243 (Karachi East-II)|Karachi East-II]]<br />
| last_election3 = 35 सीट, 16.92%
| seats3 =
| seats_needed3 = {{increase}} 137
<!-- bottom -->| map_image =
| map_size =
| map_alt =
| map =
| map_caption =
| title = परधान मंत्री
| before_election = <!-------this part is for the previously elected Prime Minister not for the Caretaker office holder----->शाहिद खाकान अब्बासी
| before_party = पाकिस्तान मुस्लिम लीग (N)
| posttitle = परधान मंत्री
| after_election = '''TBD'''
| after_party = '''TBD'''
}}
[[पाकिस्तान]] में '''आम चुनाव''' होखे के तारीख 25 जुलाई 2018 तय बा जेह में नेशनल असेंबली के मेंबर लोग चुनल जाई। एह चुनाव के साथे साथ चार गो प्रांत सभ में भी चुनाव होखे के तय बा।<ref name="july2018">{{Cite web|url=http://dunyanews.tv/en/Pakistan/440663-General-polls-2018-would-be-held-on-July-25-sources|title=General polls 2018 would be held on July 25: sources|last=|first=|date=22 May 2018|website=Dunya News|archive-url=|archive-date=|dead-url=|access-date=}}</ref><ref>{{cite news|title=Govt to complete its term; elections to be held in July 2018: PM|author=Samaa Web Desk|url=https://www.samaa.tv/pakistan/2017/12/govt-complete-term-elections-held-july-2018-pm/}}</ref> जादातर ओपिनियन पोल सभ में ई कहल जा रहल बाटे कि [[पाकिस्तान मुस्लिम लीग (एन)]] के जीत होखी जबकि [[पाकिस्तान तहरीक-ए-इंसाफ]] दुसरे नमर पर कुछे पाछे रही।<ref>{{cite web|url=https://www.geo.tv/latest/201653-elections-exclusive-3-poll-results-in-who-will-you-vote-for-pakistan|title=Elections Exclusive: 3 poll results in! Who will you vote for Pakistan? - Pakistan - Geo.tv|author=|date=|website=www.geo.tv|accessdate=6 July 2018}}</ref>
अइसन आरोप भी लगावल गइल बाड़ें कि चुनावन से पहिलहीं न्यायबेवस्था, मलेटरी आ इंटेलिजेंस द्वारा चुनाव परिणाम के पीटीआइ के फेबर में करे के कोसिस आ पीएमएल (एन) के खिलाफ करे के कोसिस कइल जा रहल बाटे।<ref name="auto">{{cite web|url=http://www.eurasiareview.com/06072018-pakistan-general-elections-subverted-by-army-judiciary-nexus-analysis/|title=Pakistan: General Elections Subverted By Army-Judiciary Nexus – Analysis|author=|date=6 July 2018|website=eurasiareview.com|accessdate=6 July 2018}}</ref><ref name="auto1">{{cite web|url=https://www.firstpost.com/world/nawaz-sharif-verdict-ahead-of-general-elections-pakistan-army-exhibits-super-show-of-soft-coup-to-prop-up-extremist-parties-4683811.html|title=Nawaz Sharif verdict: Ahead of general elections, Pakistan Army exhibits super show of 'soft coup' to prop up extremist parties - Firstpost|author=|date=|website=www.firstpost.com|accessdate=7 July 2018}}</ref><ref name="auto2">{{cite web|url=http://www.newsnation.in/amp/opinion/kamlendra-kanwar/nawaz-sharif-sentencing-more-to-the-judgment-than-meets-the-eye-198220.html|title=Nawaz Sharif sentencing: More to the judgment than meets the eye|first=Kamlendra|last=Kanwar|date=7 July 2018|website=newsnation.in|accessdate=8 July 2018}}</ref><ref name="auto3">{{cite journal|url=https://www.epw.in/journal/2018/24/commentary/end-democracy-or-new-resurgence-pakistan.html|title=The End of Democracy or a New Resurgence in Pakistan?|author=|date=5 June 2015|journal=Economic and Political Weekly|volume=53|issue=24|accessdate=8 July 2018}}</ref><ref name="telegraphindia.com">{{cite web|url=https://www.telegraphindia.com/opinion/a-manipulated-outcome-237257|title=A manipulated outcome|author=|date=|website=telegraphindia.com|accessdate=8 July 2018}}</ref><ref name="auto4">{{cite web|url=https://www.aninews.in/news/world/us/pak-army-wants-to-install-a-puppet-government-nadeem-nusrat201807031916230001/|title=Pak Army wants to install a puppet government: Nadeem Nusrat|author=|date=|website=www.aninews.in|accessdate=6 July 2018|archive-date=26 December 2018|archive-url=https://web.archive.org/web/20181226144745/https://www.aninews.in/news/world/us/pak-army-wants-to-install-a-puppet-government-nadeem-nusrat201807031916230001/|url-status=dead}}</ref><ref name="auto5">{{cite web|url=https://www.bbc.com/news/world-asia-44693968|title=The assault on Pakistan media ahead of vote|author=|date=4 July 2018|publisher=|accessdate=7 July 2018|via=www.bbc.com}}</ref><ref name="auto6">{{cite web|url=http://www.atimes.com/pakistanis-tiring-of-elections-manipulated-by-establishment/amp/|title=Pakistanis tiring of elections manipulated by establishment - Asia Times|author=|date=|website=www.atimes.com|accessdate=8 July 2018|archive-date=26 December 2018|archive-url=https://web.archive.org/web/20181226144900/http://www.atimes.com/pakistanis-tiring-of-elections-manipulated-by-establishment/amp/|url-status=dead}}</ref><ref name="auto7">{{cite web|url=http://www.eastasiaforum.org/2018/06/19/patronage-and-power-plays-in-pakistans-electoral-politics/|title=Patronage and power plays in Pakistan’s electoral politics|author=|date=19 June 2018|website=eastasiaforum.org|accessdate=8 July 2018}}</ref>
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{पाकिस्तान-आधार}}
[[श्रेणी:पाकिस्तान के राजनीति]]
[[श्रेणी:पाकिस्तान]]
iz1sc1gyrfgr7mkmmf9hj6foglozp56
815313
815167
2026-11-12T16:47:05Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815313
wikitext
text/x-wiki
{{Infobox election
| election_name = पाकिस्तानी आम चुनाव, 2018
| country = पाकिस्तान
| type = parliamentary
| ongoing = yes
| previous_election = पाकिस्तानी आम चुनाव, 2013
| previous_year = 2013
| election_date = 25 जुलाई 2018
| next_election = पाकिस्तानी आम चुनाव, 2023
| next_year = Next
| seats_for_election = पाकिस्तान के नेशनल असेंबली के सगरी 342 सीट पर
| majority_seats = 172
| opinion_polls =
| turnout =
| elected_mps =
| image1 = [[File:Mian Shehbaz Sharif.JPG|150x150px]]
| leader1 = [[शाहनबाज शरीफ]]
| party1 = पाकिस्तान मुस्लिम लीग (N)
| leader_since1 = 6 मार्च 2018
| leaders_seat1 = [[NA-3 (Swat-II)|Swat-II]]<br />[[NA-132 (Lahore-X)|Lahore-X]]<br />[[NA-192 (Dera Ghazi Khan-IV)|Dera Ghazi Khan-IV]]<br />[[NA-249 (Karachi West-II)|Karachi West-II]]
| seats_needed1 = {{increase}} 6
| last_election1 = 166 सीट, 32.77%
| seats1 = <!-- Pakistan Peoples Party -->
| image2 = [[File:Bilawal Bhutto Zardari - 2012 (7268800476) (cropped).jpg|150x150px]]
| leader2 = [[बिलावल भुट्टो जरदारी]]
| leader_since2 = 30 दिसंबर 2007
| party2 = पाकिस्तान पीपल्स पार्टी
| color2 =
| leaders_seat2 = [[NA-8 (Malakand)|Malakand]]<br />[[NA-200 (Larkana-I)|Larkana-I]]<br />[[NA-246 (Karachi South-I)|Karachi South-I]]
| popular_vote2 =
| percentage2 =
| last_election2 = 42 सीट, 15.23%
| seats2 =
| seats_needed2 = {{increase}} 130
<!-- Pakistan Tehreek-e-Insaf -->
| image3 = [[File:Imran Khan - portrait (cropped).jpg|150x150px]]
| leader3 = [[इमरान खान]]
| leader_since3 = 25 April 1996
| party3 = पाकिस्तान तहरीक-ए-इंसाफ
| color3 =
| leaders_seat3 = [[NA-35 (Bannu)|Bannu]]<br />[[NA-53 (Islamabad-II)|Islamabad-II]]<br />[[NA-95 (Mianwali-I)|Mianwali-I]]<br />[[NA-131 (Lahore-IX)|Lahore-IX]]<br />[[NA-243 (Karachi East-II)|Karachi East-II]]<br />
| last_election3 = 35 सीट, 16.92%
| seats3 =
| seats_needed3 = {{increase}} 137
<!-- bottom -->| map_image =
| map_size =
| map_alt =
| map =
| map_caption =
| title = परधान मंत्री
| before_election = <!-------this part is for the previously elected Prime Minister not for the Caretaker office holder----->शाहिद खाकान अब्बासी
| before_party = पाकिस्तान मुस्लिम लीग (N)
| posttitle = परधान मंत्री
| after_election = '''TBD'''
| after_party = '''TBD'''
}}
[[पाकिस्तान]] में '''आम चुनाव''' होखे के तारीख 25 जुलाई 2018 तय बा जेह में नेशनल असेंबली के मेंबर लोग चुनल जाई। एह चुनाव के साथे साथ चार गो प्रांत सभ में भी चुनाव होखे के तय बा।<ref name="july2018">{{Cite web|url=http://dunyanews.tv/en/Pakistan/440663-General-polls-2018-would-be-held-on-July-25-sources|title=General polls 2018 would be held on July 25: sources|last=|first=|date=22 May 2018|website=Dunya News|archive-url=|archive-date=|url-status=|access-date=}}</ref><ref>{{cite news|title=Govt to complete its term; elections to be held in July 2018: PM|author=Samaa Web Desk|url=https://www.samaa.tv/pakistan/2017/12/govt-complete-term-elections-held-july-2018-pm/}}</ref> जादातर ओपिनियन पोल सभ में ई कहल जा रहल बाटे कि [[पाकिस्तान मुस्लिम लीग (एन)]] के जीत होखी जबकि [[पाकिस्तान तहरीक-ए-इंसाफ]] दुसरे नमर पर कुछे पाछे रही।<ref>{{cite web|url=https://www.geo.tv/latest/201653-elections-exclusive-3-poll-results-in-who-will-you-vote-for-pakistan|title=Elections Exclusive: 3 poll results in! Who will you vote for Pakistan? - Pakistan - Geo.tv|author=|date=|website=www.geo.tv|accessdate=6 July 2018}}</ref>
अइसन आरोप भी लगावल गइल बाड़ें कि चुनावन से पहिलहीं न्यायबेवस्था, मलेटरी आ इंटेलिजेंस द्वारा चुनाव परिणाम के पीटीआइ के फेबर में करे के कोसिस आ पीएमएल (एन) के खिलाफ करे के कोसिस कइल जा रहल बाटे।<ref name="auto">{{cite web|url=http://www.eurasiareview.com/06072018-pakistan-general-elections-subverted-by-army-judiciary-nexus-analysis/|title=Pakistan: General Elections Subverted By Army-Judiciary Nexus – Analysis|author=|date=6 July 2018|website=eurasiareview.com|accessdate=6 July 2018}}</ref><ref name="auto1">{{cite web|url=https://www.firstpost.com/world/nawaz-sharif-verdict-ahead-of-general-elections-pakistan-army-exhibits-super-show-of-soft-coup-to-prop-up-extremist-parties-4683811.html|title=Nawaz Sharif verdict: Ahead of general elections, Pakistan Army exhibits super show of 'soft coup' to prop up extremist parties - Firstpost|author=|date=|website=www.firstpost.com|accessdate=7 July 2018}}</ref><ref name="auto2">{{cite web|url=http://www.newsnation.in/amp/opinion/kamlendra-kanwar/nawaz-sharif-sentencing-more-to-the-judgment-than-meets-the-eye-198220.html|title=Nawaz Sharif sentencing: More to the judgment than meets the eye|first=Kamlendra|last=Kanwar|date=7 July 2018|website=newsnation.in|accessdate=8 July 2018}}</ref><ref name="auto3">{{cite journal|url=https://www.epw.in/journal/2018/24/commentary/end-democracy-or-new-resurgence-pakistan.html|title=The End of Democracy or a New Resurgence in Pakistan?|author=|date=5 June 2015|journal=Economic and Political Weekly|volume=53|issue=24|accessdate=8 July 2018}}</ref><ref name="telegraphindia.com">{{cite web|url=https://www.telegraphindia.com/opinion/a-manipulated-outcome-237257|title=A manipulated outcome|author=|date=|website=telegraphindia.com|accessdate=8 July 2018}}</ref><ref name="auto4">{{cite web|url=https://www.aninews.in/news/world/us/pak-army-wants-to-install-a-puppet-government-nadeem-nusrat201807031916230001/|title=Pak Army wants to install a puppet government: Nadeem Nusrat|author=|date=|website=www.aninews.in|accessdate=6 July 2018|archive-date=26 December 2018|archive-url=https://web.archive.org/web/20181226144745/https://www.aninews.in/news/world/us/pak-army-wants-to-install-a-puppet-government-nadeem-nusrat201807031916230001/|url-status=dead}}</ref><ref name="auto5">{{cite web|url=https://www.bbc.com/news/world-asia-44693968|title=The assault on Pakistan media ahead of vote|author=|date=4 July 2018|publisher=|accessdate=7 July 2018|via=www.bbc.com}}</ref><ref name="auto6">{{cite web|url=http://www.atimes.com/pakistanis-tiring-of-elections-manipulated-by-establishment/amp/|title=Pakistanis tiring of elections manipulated by establishment - Asia Times|author=|date=|website=www.atimes.com|accessdate=8 July 2018|archive-date=26 December 2018|archive-url=https://web.archive.org/web/20181226144900/http://www.atimes.com/pakistanis-tiring-of-elections-manipulated-by-establishment/amp/|url-status=dead}}</ref><ref name="auto7">{{cite web|url=http://www.eastasiaforum.org/2018/06/19/patronage-and-power-plays-in-pakistans-electoral-politics/|title=Patronage and power plays in Pakistan’s electoral politics|author=|date=19 June 2018|website=eastasiaforum.org|accessdate=8 July 2018}}</ref>
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{पाकिस्तान-आधार}}
[[श्रेणी:पाकिस्तान के राजनीति]]
[[श्रेणी:पाकिस्तान]]
1j9jcq6wphol1rge5cz6ci3puxjjcjb
बैंकाक
0
63304
815306
808907
2026-11-12T16:46:41Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815306
wikitext
text/x-wiki
बैंकाक (<small>UK: </small><span class="IPA nopopups noexcerpt">/<span style="border-bottom:1px dotted"><span title="'b' in 'buy'">b</span><span title="/æ/: 'a' in 'bad'">æ</span><span title="/ŋ/: 'ng' in 'sing'">ŋ</span><span title="/ˈ/: primary stress follows">ˈ</span><span title="'k' in 'kind'">k</span><span title="/ɒ/: 'o' in 'body'">ɒ</span><span title="'k' in 'kind'">k</span></span>/</span>,<ref>{{Cite web|url=https://en.oxforddictionaries.com/definition/bangkok|title=Bangkok|website=British and World English Dictionary|publisher=Oxford Dictionaries|access-date=4 August 2017|archive-date=5 August 2017|archive-url=https://web.archive.org/web/20170805015627/https://en.oxforddictionaries.com/definition/bangkok|url-status=dead}}</ref> <small>US: </small><span class="IPA nopopups noexcerpt">/<span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="'b' in 'buy'">b</span><span title="/æ/: 'a' in 'bad'">æ</span><span title="/ŋ/: 'ng' in 'sing'">ŋ</span><span title="'k' in 'kind'">k</span><span title="/ɒ/: 'o' in 'body'">ɒ</span><span title="'k' in 'kind'">k</span></span>/</span><ref name="collins">{{Cite web|url=http://www.collinsdictionary.com/dictionary/english/bangkok|title=Definition of "Bangkok"|website=Collins English Dictionary (online)|publisher=HarperCollins|access-date=26 मार्च 2014}}</ref><ref>{{Cite web|url=https://en.oxforddictionaries.com/definition/us/bangkok|title=Bangkok|website=US English Dictionary|publisher=Oxford Dictionaries|access-date=4 August 2017|archive-date=5 August 2017|archive-url=https://web.archive.org/web/20170805055650/https://en.oxforddictionaries.com/definition/us/bangkok|url-status=dead}}</ref>) [[थाइलैंड|थाईलैंड]] के राजधानी आ इहाँ के सबसे बेसी जनसंख्या वाला नगर बा | एकरा के थाई भासा मे क्रुंग थेप महा नखन ( {{Lang|th|กรุงเทพมหานคร}},) आ चाहे क्रुंग थेप ({{Audio|Th-Krung Thep.ogg|listen}}) कहल जाला | इ नगर 1,568.7 वर्ग किलोमीटर (1.6885<span style="margin:0 .15em 0 .25em">×</span>10<sup>10</sup> वर्ग फु) मे मुख्य थाईलैंड मे चाओ पह्रया नदी के डेल्टा पर फइलल बा <ref>{{Cite web|url=http://bangkok.travel/geography-of-bangkok|title=geography of bangkok|last=|first=|date=|website=|archive-url=https://web.archive.org/web/20180817033219/http://bangkok.travel/geography-of-bangkok|archive-date=2018-08-17|url-status=|access-date=|url-status=dead}}</ref>| एहीजा के जनसंख्या २०१० के जनगणना के अनुसार ८,२८०,९२५ आ जनसंख्या घनत्व ५,३०० वर्ग किलोमीटर बा |
== Notes ==
{{notelist}}
== References ==
{{Reflist|30em|refs=<ref name="BMA geo">Thavisin et al. (eds) 2006, p. 24. Reproduced in {{cite web|url=http://www.bangkok.go.th/th/page/index.php?&153-Geography_of_Bangkok&l=en |title=Geography of Bangkok |accessdate=8 September 2007 |work=BMA website |deadurl=yes |archiveurl=https://web.archive.org/web/20110705201641/http://www.bangkok.go.th/th/page/index.php?&153-Geography_of_Bangkok&l=en |archivedate=5 July 2011 |df= }}</ref>}}
lw2nowq5tp0secoipaa8d7vfu1iaw7h
बजरंग पुनिया
0
63673
815179
812466
2026-11-12T15:20:32Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815179
wikitext
text/x-wiki
{{Infobox sportsperson
| headercolor =
| name = बजरंग पुनिया
| image_size = <!--Only for images narrower than 220 pixels.-->
| image = The President, Shri Pranab Mukherjee presenting the Arjuna Award for the year-2015 to Shri Bajrang for Wrestling, in a glittering ceremony, at Rashtrapati Bhavan, in New Delhi on August 29, 2015.jpg
| caption = बजरंग पुनिया
| birth_name =
| fullname =
| nickname =
| nationality = भारतीय
| residence =
| birth_date = {{birth date and age|1994|2|26|df=yes}}
| birth_place = [[झज्झर]], [[हरियाणा]], भारत
| death_date =
| death_place =
| height = {{height|ft=5|in=5}}
| weight = {{convert|61|kg}}
| website =
| country =
| sport = [[कुश्ती]]
| event = [[फ्रीस्टाइल कुश्ती|फ्रीस्टाइल]]
| collegeteam =
| club = छत्रसाल स्टेडियम
| team =
| turnedpro =
| coach = बिनोद कुमार
| retired =
| coaching =
| worlds =
| regionals =
| nationals =
| olympics =
| paralympics =
| highestranking =
| pb =
| medaltemplates =
{{MedalCountry | {{IND}} }}
{{MedalSport | फ्रीस्टाइल कुश्ती, मरदाना बर्ग}}
{{MedalCompetition|बिस्व चैंपियनशिप}}
{{MedalBronze|[[2013 World Wrestling Championships|2013 Budapest]]|[[2013 World Wrestling Championships – Men's freestyle 60 kg|60 kg]]}}
{{MedalCompetition|[[कॉमनवेल्थ खेल]]}}
{{MedalGold| [[Wrestling at the 2018 Commonwealth Games|2018 Gold Coast]] | [[Wrestling at the 2018 Commonwealth Games – Men's freestyle 65 kg|65 kg]]}}
{{MedalSilver| [[Wrestling at the 2014 Commonwealth Games|2014 Glasgow]] | [[Wrestling at the 2014 Commonwealth Games – Men's freestyle 61 kg|61 kg]]}}
{{MedalCompetition|[[एशियाई खेल]]}}
{{MedalSilver|[[Wrestling at the 2014 Asian Games|2014 Incheon]]|[[Wrestling at the 2014 Asian Games – Men's freestyle 61 kg|61 kg]]}}
{{Medal|Gold | [[2018 एशियाई खेल|2018 जकार्ता-पालेमबैंग]] | 65 केजी}}
{{MedalCompetition|[[Asian Wrestling Championships|Asian Championships]]}}
{{MedalBronze|[[2013 Asian Wrestling Championships|2013 New Delhi]]|[[2013 Asian Wrestling Championships#Men.27s freestyle|60 kg]]}}
{{MedalSilver|[[2014 Asian Wrestling Championships|2014 Astana]]|[[2014 Asian Wrestling Championships#Men.27s freestyle|61 kg]]}}
{{MedalGold|[[2017 Asian Wrestling Championships|2017 New Delhi]]|[[2017 Asian Wrestling Championships#Men.27s freestyle|65 kg]]}}
{{MedalBronze|[[2018 Asian Wrestling Championships|2018 Bishkek]]|65 kg}}
{{MedalCompetition|[[World U23 Wrestling Championships]] }}
{{MedalSilver|[[2017 World U23 Wrestling Championship|2017 Bydgoszcz]] |65 kg}}
{{MedalCompetition|[[Commonwealth Wrestling Championship|Commonwealth Championship]]}}
{{MedalGold| 2016 Singapore<ref name="2016 CWC">{{cite news |title=India dominates |url=http://www.thehindu.com/todays-paper/tp-sports/india-dominates/article9313172.ece |accessdate=8 November 2016 |work=[[The Hindu]] |date=7 November 2016 |archiveurl=https://archive.is/20161108192509/http://www.thehindu.com/todays-paper/tp-sports/india-dominates/article9313172.ece |archivedate=8 November 2016 |url-status=live}}</ref> | 65 kg }}
{{MedalGold| 2017 Brakpan| 65 kg }}
{{Medal|Competition | [[Asian Indoor and Martial Arts Games]] }}
{{Medal|Gold | [[2017 Asian Indoor and Martial Arts Games|2017 Ashgabat]] | 65 kg }}
}}
'''बजरंग पुनिया''' (जनम 26 फरवरी 1994) एगो भारतीय पहलवान बाड़ें। ई फ्रीस्टाइल रेसलिंग (कुश्ती) के खेलाड़ी हवें। जकार्ता में होखे वाला एशियाई खेल में भारत खाती सोने के मेडल जीत चुकल बाड़ें।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:भारतीय खेलाड़ी]]
[[श्रेणी:1994 में जनम]]
{{bio-stub}}
0rq7fj7gw7njz3y0s576vce25a0rzjw
बिलार
0
64533
815180
812622
2026-11-12T15:20:37Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815180
wikitext
text/x-wiki
{{subspeciesbox
|name=Domestic cat<ref name="MSW3fc" />
|status=DOM
<!-- There has been extensive discussion about the choice of image in this infobox. Before replacing this image with something else, consider if it actually improves on the ENCYCLOPEDIC CRITERIA which led to this choice. See [[Talk:Cat]] and [[Talk:Cat/Lead photo]] and if in doubt, DISCUSS IT FIRST! -->
|image=Cat poster 1.jpg<!--please do not change without consensus, see talk page-->
|image_upright=1.2
|image_caption=Various types of domestic cat
|genus=Felis
|species=silvestris
|species_link=Wildcat
|subspecies=catus
|authority=([[Carl Linnaeus|Linnaeus]], [[10th edition of Systema Naturae|1758]])<ref name="Linaeus1758" />
|synonyms=''Felis catus'' <small>Linnaeus, 1758</small><br />
''Felis catus domestica'' <small>Erxleben, 1777</small><ref name="ITIS F.c.d.">{{cite web |url= https://www.itis.gov/servlet/SingleRpt/SingleRpt?search_topic=TSN&search_value=727487 |title=ITIS Standard Report Page: Felis catus domestica |work=ITIS Online Database |access-date=14 December 2011 |url-status=live |archive-url= https://web.archive.org/web/20120119080913/http://www.itis.gov/servlet/SingleRpt/SingleRpt?search_topic=TSN&search_value=727487 |archive-date=19 January 2012}}</ref>
}}
एक '''बिल्ली''', एक छोटा [[मांसाहार]] है जिसे कई सहस्राब्दी के लिए पालतू बनाया गया है। इसका जंगली पूर्वज [[अरब]] के मूल निवासी माना जाता है।
[[चित्र:Domestic_cat.2.jpg|thumb|Domestic cat]]
{{clear}}
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:जानवर]]
3tetustzlpmdgtj9el6rpp18wetr33x
रावी नदी
0
64885
815177
813487
2026-11-12T15:20:22Z
SM7Bot
7808
/* top */ सफाई, replaced: | dead-url = yes → |url-status= using [[Project:AWB|AWB]]
815177
wikitext
text/x-wiki
{{Infobox river
| name = Ravi River
| image = RaviRiver-Chamba.JPG
| image_size = 260px
| image_caption = Ravi river.
| source1_location = [[Chamba district]] of [[Himachal Pradesh]], India
| mouth_location = [[Chenab River]]
| subdivision_type1 = Country
| subdivision_name1 = India, Pakistan
| progression =
| length = {{convert|720|km|mi|abbr=on}}
| source1_elevation =
| mouth_elevation =
| discharge1_avg = {{convert|267.5|m3/s|cuft/s|abbr=on}} (near Mukesar<ref>{{cite web| title = Gauging Station - Data Summary| publisher = ORNL| url = http://daac.ornl.gov/rivdis/STATIONS/TEXT/INDIA/93/SUMMARY.HTML| accessdate = 2013-10-01| archive-url = https://web.archive.org/web/20131004213400/http://daac.ornl.gov/rivdis/STATIONS/TEXT/INDIA/93/SUMMARY.HTML| archive-date = 4 अक्टूबर 2013|url-status=| df = dmy-all}}</ref>)
| basin_size = India and Pakistan
| river_system =[[Indus River]] System
| tributaries_left =
| tributaries_right = Siul
| map = Indus river.svg
| map_alt =
| map_caption = The Ravi flows into the Chenab and feeds into the [[Indus River|Indus]]
}}
'''रावी नदी''' [[भारत]] आ [[पाकिस्तान]] में बहे वाली एगो नदी बा। ई भारत के उत्तर पच्छिमी हिस्सा आ पाकिस्तान के पूरबी हिस्सा में बहे ले। पंजाब क्षेत्र के पाँच गो नदी सभ में एहू के गिनती होला।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{coord|30|35|N|71|49|E|display=title|region:PK_type:river_source:GNS-enwiki}}
{{Waters of South Asia}}
[[श्रेणी:भारत के नदी]]
[[श्रेणी:पाकिस्तान के नदी]]
[[श्रेणी:एशिया के इंटरनेशनल नदी]]
{{river-stub}}
3uab4m224napzfeckey8mj27b9bas8j
यूनाइटेड नेशंस बिकास ग्रुप
0
65425
815166
813362
2026-11-12T14:15:32Z
SM7Bot
7808
/* ऑब्जर्वर */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815166
wikitext
text/x-wiki
{{Infobox UN
| name = यूनाइटेड नेशंस बिकास ग्रुप<br>
<small>United Nations Development Group (UNDG)</small>
| image = UNDG.gif
| image size = 150px
| caption = United Nations Development Group logo
| type = Group
| acronyms = UNDG
| head =
| status = Active
| established = 1997
| website = [http://www.undg.org/ UNDG.org]
| parent = United Nations Economic and Social Council (ECOSOC) / Chief Executives Board (CEB)
}}
'''यूनाइटेड नेशंस बिकास ग्रुप''' ({{Lang|en|United Nations Development Group}}) [[यूनाइटेड नेशंस]] के कई गो संस्था सभ के एक साथ मिल के बनल ग्रुप हवे। एकर गठन एह खातिर भइल कि अंतर्राष्ट्रीय स्तर प यूनाइटेड नेशन के काम सभ में बेहतरी ले आइल जा सके।
== मेंबर सभ ==
* UNDP – United Nations Development Programme
* UNICEF – United Nations Children's Fund
* UNFPA – United Nations Population Fund
* WFP – World Food Programme
* OHCHR – Office of the High Commissioner for Human Rights
* UN Women (formerly United Nations Development Fund for Women|UNIFEM)
* UNOPS – United Nations Office for Project Services
* UNAIDS – Joint United Nations Programme on HIV/AIDS
* UN-HABITAT – United Nations Human Settlements Programme
* UNODC – United Nations Office on Drugs and Crime
* WHO – [[बिस्व स्वास्थ्य संगठन]]
* DESA – United Nations Department of Economic and Social Affairs
* IFAD – International Fund for Agricultural Development
* UNCTAD – United Nations Conference on Trade and Development
* UNESCO – United Nations Educational, Scientific and Cultural Organization ([[यूनेस्को]])
* FAO – Food and Agriculture Organization
* UNIDO – United Nations Industrial Development Organization
* ILO – International Labour Organization
* UNECA – United Nations Economic Commission for Africa
* UNECE – United Nations Economic Commission for Europe
* UNECLAC – United Nations Economic Commission for Latin America and the Caribbean
* UNESCAP – United Nations Economic and Social Commission for Asia and the Pacific
* UNESCWA – United Nations Economic and Social Commission for Western Asia
* OHRLLS – United Nations Office of the High Representative for the Least Developed Countries, Landlocked Developing Countries and Small Island Developing States
* SRSG/CAC – Special Representative of the Secretary-General for Working Group on Children and Armed Conflict|Children and Armed Conflict
* UNEP – United Nations Environment Programme
* UNHCR – United Nations High Commissioner for Refugees
* OSAA – UN Office Special Advisor on Africa
* UNWTO – United Nations World Tourism Organization
* WMO – World Meteorological Organization
* ITU – International Telecommunications Union
* IOM – International Organization for Migration
== ऑब्जर्वर ==
ऑब्जर्वर सभ के लिस्ट<ref name="members">{{cite web|url=https://undg.org/home/about-undg/members/|title=UNDG » Members|publisher=|accessdate=17 May 2016|archive-url=https://web.archive.org/web/20150314235910/https://undg.org/home/about-undg/members/|archive-date=14 मार्च 2015|url-status=|df=dmy-all}}</ref> नीचे दिहल जा रहल बा:
* Algeria – International Trade Centre
* World Bank/World Bank Group (not exactly specified which)
* UNCDF – United Nations Capital Development Fund
* UNFIP – United Nations Fund for International Partnerships
* OCHA – Office for the Coordination of Humanitarian Affairs
* UNDPA – United Nations Department of Political Affairs
* UNDPI – United Nations Department of Public Information
* DSG – Director, Office of the Deputy Secretary-General of the United Nations|Deputy Secretary General
* UNICRI – United Nations Interregional Crime and Justice Research Institute
* UNIDIR – United Nations Institute for Disarmament Research
* UNISDR – United Nations International Strategy for Disaster Reduction
* UNITAR -United Nations Institute for Training and Research
* UNRISD – United Nations Research Institute for Social Development
* UNSSC – United Nations System Staff College
* UNU – United Nations University
* UNV – United Nations Volunteers
{{clear}}
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:इंटरनेशनल ऑर्गेनाइजेशन]]
s4xx01tfxrkq5h8at699q14bpfuqcbi
मी टू मूवमेंट
0
65518
815168
813197
2026-11-12T14:15:41Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=yes → |url-status= using [[Project:AWB|AWB]]
815168
wikitext
text/x-wiki
<!--For the sake of professionalism and complying with Wikipedia guidelines, please refrain from using the word "rape" in this article when this political movement is strictly about workplace sexual harassment in a non-legal context with propagandist aims. ~ Roman J. Lane, Esquire-->
'''मी टू मूवमेंट''' (MeToo Movement चाहे '''#MeToo''' Movment) एगो बिस्वब्यापी मोहीम भा आंदोलन बा जेह में औरतन द्वारा [[इंटरनेट]] पर [[हैशटैग]] ''#MeToo'' के साथे अपने साथ भइल सेक्सुअल दुरबेहवार के उजागर कइल जा रहल बा। अंतर्राष्ट्रीय स्तर प ई मोहीम साल 2017 में जोर पकरलस आ हाल के दिन में [[भारत]] में एह मोहीम के तहत कई लोग अपना साथे भइल खराब बेहवार के खुलासा कइल।<ref>{{cite web|url=https://www.amarujala.com/photo-gallery/entertainment/bollywood/metoo-indian-celebs-accused-of-sexual-harassment |title=Metoo Indian Celebs Accused Of Sexual Harassment - मी टू कैंपेन की चपेट में अब तक आए ये स्टार्स, किसी ने की मारपीट तो किसी ने की गंदी हरकत - Amar Ujala Hindi News Live |publisher=Amarujala.com |date= |accessdate=10 अक्टूबर 2018}}</ref> ऐक्ट्रेस तनुश्री दत्ता द्वारा नाना पाटेकर पर आरोप लगावल गइल<ref>{{cite web|author=Tridev Kumar Sharma |url=https://www.bhaskar.com/breaking-news/news/metoo-movement-india-live-updates-harassment-allegations-in-india-live-5968137.html |title=MeToo Movement India Live Updates Harassment Allegations in India LIVE | तनुश्री दत्ता पहुंचीं पुलिस स्टेशन- बयान दर्ज कराए; ‘मी टू’ आंदोलन ने जोर पकड़ा |publisher=Bhaskar.com |date= |accessdate=10 अक्टूबर 2018}}</ref> जेकरा से ई मुद्दा मीडिया में आ गइल आ एकरे बाद पत्रकार आ मोदी मंत्रालय में सदस्य एम जे अकबर<ref>{{cite web|url=https://www.bbc.com/hindi/india-45811260 |title=एमजे अकबरः विदेश राज्य मंत्री #MeToo के आरोपों के घेरे में - BBC News हिंदी |publisher=Bbc.com |date=1970-01-01 |accessdate=10 अक्टूबर 2018}}</ref> आ टीवी आ फिलिम [[एक्टर]] अलोकनाथ पर अइसन आरोप लगे के बाद ई ब्यापक कभरेज वाला बिसय बन गइल।
एकरे इतिहास के बात कइल जाय तब, एगो अमेरिकी सोशल एक्टीविस्ट तराना बुर्के एह शब्द के इस्तमाल साल 2006 में कइले रहली। बाकी ई पापुलर भइल साल 2017 में जब अमेरिकी ऐक्ट्रेस अलीसा मिलानो (Alyssa Milano) एकर इस्तमाल कइली आ औरतन के एह बात खाती बढ़ावा दिहली कि अपना साथे भइल दुरबेहवार के साझा करे लोग "ताकि लोग के एह समस्या के मात्रा (की अइसन घटना केतना ब्यापक बा) के बारे में बुझा सके"।<ref>{{cite web|url=https://www.theguardian.com/world/2017/oct/20/women-worldwide-use-hashtag-metoo-against-sexual-harassment|title=#MeToo: how a hashtag became a rallying cry against sexual harassment|first=Nadia|last=Khomami|date=20 अक्टूबर 2017|via=The Guardian|url-status=live|archiveurl=https://web.archive.org/web/20171121021556/https://www.theguardian.com/world/2017/oct/20/women-worldwide-use-hashtag-metoo-against-sexual-harassment|archivedate=21 नवंबर 2017}}</ref><ref name="Guerra">{{cite web|url=https://www.bostonglobe.com/lifestyle/2017/10/17/alyssa-milano-credits-activist-tarana-burke-with-founding-metoo-movement-years-ago/o2Jv29v6ljObkKPTPB9KGP/story.html|title=Where'd the "Me Too" initiative really come from? Activist Tarana Burke, long before hashtags - The Boston Globe|last=Guerra|first=Cristela|date=17 अक्टूबर 2017|website=Boston Globe |access-date=18 अक्टूबर 2017 |archive-url=https://web.archive.org/web/20171017232531/https://www.bostonglobe.com/lifestyle/2017/10/17/alyssa-milano-credits-activist-tarana-burke-with-founding-metoo-movement-years-ago/o2Jv29v6ljObkKPTPB9KGP/story.html |archive-date=17 अक्टूबर 2017 |url-status=}}</ref>
<!--For the sake of professionalism and complying with Wikipedia guidelines, please refrain from using the word "rape" in this article when this political movement is strictly about workplace sexual harassment in a non-legal context with propagandist aims. ~ Roman J. Lane, Esquire-->
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{society-stub}}
b0b5cr6sca4efzy6rhxkrjs2jrmcv9p
मराठी सिनेमा
0
65677
815299
814264
2026-11-12T16:46:06Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| (2) using [[Project:AWB|AWB]]
815299
wikitext
text/x-wiki
{{Infobox cinema market
| name = मराठी सिनेमा
| image = Metro-Cinema.jpg
| image_size = 200px
| alt =
| caption = [[Metro Big Cinemas]] in [[Mumbai]]
| screens = Approx 500 in [[Maharashtra]] state of India.<ref>{{cite web|title=STATEWISE NUMBER OF SINGLE SCREENS|url=http://www.filmfed.org/singlescreen.html|publisher=Film Federation of India|accessdate=21 April 2014|archive-date=12 September 2014|archive-url=https://web.archive.org/web/20140912002530/http://filmfed.org/singlescreen.html|url-status=dead}}</ref>
| screens_per_capita =
| distributors =
| produced_year = 2016
| produced_ref = <ref>{{Cite web |url=http://www.filmfed.org/IFF2016.html |title=आर्काइव कॉपी के बा |access-date=2018-10-19 |archive-date=2017-04-06 |archive-url=https://web.archive.org/web/20170406091159/http://www.filmfed.org/IFF2016.html |url-status=dead }}</ref>
| produced_total = 181
| produced_fictional =
| produced_animated =
| produced_documentary =
| admissions_year =
| admissions_ref =
| admissions_total =
| admissions_per_capita =
| admissions_national =
| box_office_year = 2016
| box_office_ref = <ref>http://www.business-standard.com/article/companies/bollywood-biggies-turn-their-attention-to-marathi-cinema-116111900672_1.html</ref>
| box_office_total = <!-- ${{Format price| }} -->
| box_office_national = [[India]]: {{INRConvert|2000|c}}<!-- ${{Format price| }} -->
}}
'''मराठी सिनेमा''' अइसन फिल्मन के कहल जाला जवन [[मराठी भासा]] मे होखे ला। पहिलकी मराठी फिलिम 18 मई 1912 मे बनल ''श्री पुण्लिक'' रहे जेकरा दादासाहेब तोडने बनवले रहन।<ref>{{Cite web|url=http://author.blogs.maharashtratimes.com/kokan/entry/द-द-स-ह-ब|title=पहिला मराठी फिलिम|last=|first=|date=|website=|archive-url=|archive-date=|url-status=|access-date=}}</ref>। मराठी भाषा के पहिलका बोलत फिलिम [[अयोध्येचा राजा]] रहे जवन 1932 में निकलल रहे।<ref>{{Cite web|url=http://www.prabhatfilm.com/films.htm|title=अयोध्येचा राजा|last=|first=|date=|website=|archive-url=https://web.archive.org/web/20120722170023/http://www.prabhatfilm.com/films.htm|archive-date=2012-07-22|url-status=|access-date=|url-status=dead}}</ref> भले [[हिंदी सिनेमा]] के सामने मराठी सिनेमा बेसी छोटहन लागेला बाकिर कर रहित होखला के चलते बड़़ी तेेेजी से आगे बढ़ऽता।
== संदर्भ ==
{{Reflist|33em}}
[[श्रेणी:भारतीय सिनेमा]]
{{film-stub}}
1ypoe597q4bh4mtputla2cakqx33o6l
अमेरिका के नदी सभ के लिस्ट
0
66214
815161
814504
2026-11-12T14:15:07Z
SM7Bot
7808
/* लिस्ट */ सफाई, replaced: |dead-url=yes → |url-status= (6) using [[Project:AWB|AWB]]
815161
wikitext
text/x-wiki
'''अमेरिका के नदी सभ''' में 38 गो प्रमुख नदी बाड़ी सऽ जिनहन के लंबाई {{convert|500|mi}} से ढेर बा। एह नदी सभ के एगो लिस्ट नीचे दिहल जात बा। लिस्ट के नीचे प्रमुख नदी सभ के नक्सा पर लोकेशन भी देखावल गइल बाटे।
== लिस्ट ==
<div style="float: left; margin: 5px;">
{| class="wikitable" border="1"
|-
! style="background:#eaeaea" colspan=6|रंग कोड के माने
|-
|bgcolor="#fffdd0" style="text-align: left" |{{dagger|alt=धारा पूरा तरीका से अमेरिका के भीतरे ना बहे ले।}} नदी के पूरा हिस्सा अमेरिका के भीतरे ना बाटे।
|-
|bgcolor="#eeffee" style="text-align: left"|{{double-dagger|alt= नदी के थाला पूरा तरीका से अमेरिका के भीतरे ना बाटे।}} नदी के थाला पूरा तरीका से अमेरिका के भीतरे ना बाटे।
|}</div>
{|class="wikitable sortable plainrowheaders" style="width:100%; background:#fff;"
|+ अमेरिका के सभसे लमहर प्रमुख नदी सभ के लिस्ट
! scope="col" width=1%|'''#'''
! scope="col" width=10%|'''नाँव'''
! scope="col" width=10%|'''मुहाना'''<ref name = "maps"/>
! scope="col" width=10%|'''लंबाई'''
! scope="col" width=10% |'''सोता<br>अक्षांश-देशांतर'''<ref name = "GNIS USGS">The mouth coordinates and source coordinates are from the ''[[Geographic Names Information System]]'' (United States Geological Survey) or the [[Canadian Geographical Names Data Base]] except for the coordinates of the mouth of the Colorado River, derived by geolocating with [[Google Earth]].</ref></center>
! scope="col" width=10%|'''मुहाना<br>अक्षांश-देशांतर'''<ref name = "GNIS USGS"/>
! scope="col" width=10%|'''थाला<br>area'''<ref name="ReferenceA">From ''Rivers of North America'' (ed. Benke and Cushing) unless otherwise noted.</ref>
! scope="col" width=10%|'''बहाव'''<ref name="ReferenceA"/>
! scope="col" width= 29% class="unsortable" |'''राज्य, प्रांत, आ फोटो'''<ref name = "maps">{{cite book|title = The Road Atlas| publisher = Rand McNally & Company|year = 2008|location = Chicago, Illinois|isbn = 978-0-528-93961-7}}</ref><ref name = "GNIS USGS"/>
|--
! scope="row" |1
|[[मिसौरी नदी]]||[[मिसीसिपी नदी]]||{{nts|2341}} mi<br>3,768 km{{sfn|Benke|Cushing|2005|p=432}}||{{coord|45|55|39|N|111|30|29|W|name = Missouri River (source)}}<ref>{{cite web|title = Missouri River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:756398|date = October 24, 1980|accessdate = फरवरी 4, 2011|archive-date = August 5, 2020|archive-url = https://web.archive.org/web/20200805010233/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:756398|url-status = dead}}</ref> ||{{coord|38|48|49|N|90|07|11|W|name= Missouri River (mouth)}} ||style="background:#eeffee;"|{{nts|529353}} mi<sup>2</sup><br>1,371,017 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=469}}<br>{{double-dagger}}{{#tag:ref|Of the total, 10,700 mi<sup>2</sup> (28,000 km<sup>2</sup>), about two percent of the basin, is in Canada.<ref name = "Canada Atlas"/><ref name = "USGS map"/>|group=n}}||{{nts|69100}} ft<sup>3</sup>/s<br>1,956 m<sup>3</sup>/s<br>{{#tag:ref|Kammerer: 76,200 ft<sup>3</sup>/s (2,160 m<sup>3</sup>/s).<ref name= "USGS Kammerer"/>|group=n }} ||[[मोंटाना]]<sup>s</sup>, [[नार्थ डकोटा]], [[साउथ डकोटा]], [[नेब्रास्का]], [[आयवा]], [[कंसास]], [[मिसौरी]]<sup>m</sup>[[File:Missouri NRR.jpg|center|150px|alt=A wide river flows across a plain.]]
|--
! scope="row" |2
||[[मिसीसिपी नदी]]||[[मैक्सिको के खाड़ी]]||{{nts|2202}} mi<br>3,544 km{{sfn|Benke|Cushing|2005|pp=237, 331}}<br>{{#tag:ref|Kammerer: 2,340 mi (3,770 km).<ref name ="USGS Kammerer"/> ''The Atlas of Canada'': 2,348 mi (3,779 km).<ref name ="Canada Atlas"/>|group=n}}||{{coord|47|14|22|N|95|12|29|W|name=Mississippi River (source)}}<ref>{{cite web|title = Mississippi River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1629903|date = June 4, 1980|accessdate = फरवरी 4, 2011|archive-date = July 26, 2020|archive-url = https://web.archive.org/web/20200726031728/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1629903|url-status = dead}}</ref> ||{{coord|29|09|04|N|89|15|12|W|name=Mississippi River (mouth)}}||style="background:#eeffee;"|{{nts|1260000}} mi<sup>2</sup><br>3,270,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=272}}<br>{{double-dagger}}{{#tag:ref|Of the total, 10,700 mi<sup>2</sup> (27,800 km<sup>2</sup>), about two percent of the basin, is in Canada.<ref name = "Canada Atlas"/><ref name = "USGS map"/>|group=n}}||{{nts|650000}} ft<sup>3</sup>/s<br>18,400 m<sup>3</sup>/s ||[[मिनेसोटा]]<sup>s</sup>, [[विस्कॉन्सिन]], [[आयवा]], [[इलिनोई]], [[मिसौरी]], [[केंचुकी]], [[टेनेसी]], [[आर्कन्सा]], [[Mississippi]], [[लुइसियाना]]<sup>m</sup>[[File:Lake Itasca Mississippi Source.jpg|center|150px|alt=A small river flows from a lake.]]
|--
! scope="row"|3
||[[यूकान नदी]]||[[बेरिंग सागर]]||style="background:#fffdd0;"|{{nts|1979}} mi<br>3,185 km<ref name ="Canada Atlas"/><br>{{dagger}}{{#tag:ref|Of this total, 714 mi (1,149 km) are in Canada. This amounts to about 36 percent of the main-stem length.<ref name="Canada Atlas"/>|group=n}}||{{coord|59|35|00|N|133|47|00|W|name=Yukon River (source)}}<ref>{{cite web|title=Atlin Lake (B.C.) |publisher=Natural Resources Canada |url=http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?JCTAR?C |accessdate=February 4, 2011 |archiveurl=https://web.archive.org/web/20110706184115/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FJCTAR%3FC |archivedate=July 6, 2011 |url-status= |df= }}</ref> ||{{coord|62|35|55|N|164|48|00|W|name=Yukon River (mouth)}}<ref>{{cite web|title = Yukon River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416412|date = March 31, 1981|accessdate = फरवरी 4, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815093910/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416412|url-status = dead}}</ref>||style="background:#eeffee;"|{{nts|324000}} mi<sup>2</sup><br>839,200 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=796}}<br>{{double-dagger}}{{#tag:ref|''The Atlas of Canada'' also lists the total basin size at 324,000 mi<sup>2</sup> (839,200 km<sup>2</sup>), split between 125,000 mi<sup>2</sup> (323,800 km<sup>2</sup>), about 39 percent, in Canada and 199,000 mi<sup>2</sup> (515,400 km<sup>2</sup>), about 61 percent, in the United States.<ref name ="Canada Atlas"/>|group=n}} ||{{nts|224000}} ft<sup>3</sup>/s<br>6,340 m<sup>3</sup>/s||''[[ब्रिटिश कोलंबिया]]''<sup>s</sup>, ''[[Yukon Territory]]'', [[अलास्का]]<sup>m</sup>[[File:Dawson City Lookout Yukon River 3264px.jpg|center|150px|alt=Sunset over a large river flowing through mountains.]]
|--
! scope="row" |4
||[[रियो ग्रांडे]]||[[मैक्सिको के खाड़ी]] ||style="background:#fffdd0;"|{{nts|1759}} mi<br>2,830 km{{sfn|Benke|Cushing|2005|p=186}}<br>{{dagger}}{{#tag:ref|Kammerer: 1,900 mi (3,100 km).<ref name = "USGS Kammerer">{{cite web|last = Kammerer| first = J. C. |title = Largest Rivers in the United States|url = http://pubs.usgs.gov/of/1987/ofr87-242/|publisher = United States Geological Survey |date = September 1, 2005|accessdate = January 22, 2011}}</ref> University of Texas (UT): 1,799 mi (2,895 km).<ref name = "University of Texas">{{cite web|last = Patino|first = Carlos|author2=McKinney, Daene C. |author3=Maidment, David R. |publisher = University of Texas Center for Research in Water Resources| title =Water Management Information System for the Rio Grande/Bravo Basin |url = http://www.crwr.utexas.edu/gis/gishydro04/time/Rio_Grande-Bravo_Basin.htm| accessdate = फरवरी 19, 2011|archiveurl=https://web.archive.org/web/20150401031158/http://www.crwr.utexas.edu/gis/gishydro04/time/Rio_Grande-Bravo_Basin.htm|archivedate=April 1, 2015|url-status=dead}}</ref> The river forms the U.S.–Mexico border for 1.251 mi (2,013 km) (about 70 percent of its main-stem length) from [[El Paso, Texas|El Paso]] to the Gulf of Mexico.<ref name = "University of Texas"/>|group=n}}||{{coord|37|47|52|N|107|32|18|W|name=Rio Grande (source)}}<ref>{{cite web|title = Rio Grande|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1385432|date = March 30, 1979|accessdate = फरवरी 4, 2011|archive-date = June 16, 2020|archive-url = https://web.archive.org/web/20200616102033/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1385432|url-status = dead}}</ref> ||{{coord|25|57|22|N|97|08|43|W|name=Rio Grande (mouth)}}|| style="background:#eeffee;"|{{nts|340000}} mi<sup>2</sup><br>870,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=220}}<br>{{double-dagger}}{{#tag:ref|''Rivers of North America'' says that of this total only about 170,000 mi<sup>2</sup> (450,000 km<sup>2</sup>) of the basin contribute water to the river.{{sfn|Benke|Cushing|2005|p=220}} The University of Texas (UT) says, "The river collects rain, snowmelt and spring water from an area [of] about 215,338 mi<sup>2</sup> [557,722 km<sup>2</sup>] including closed basins."<ref name="University of Texas"/> It says that 87,020 mi<sup>2</sup> (225,380 km<sup>2</sup>) of the basin (about 48 percent), not counting [[Endorheic basin|closed basins]], are in Mexico, while 93,821 mi<sup>2</sup> (242,994 km<sup>2</sup>) (about 52 percent) are in the United States.<ref name="University of Texas"/> Kammerer cites a total basin size of 336,000 mi<sup>2</sup> (870,000 km<sup>2</sup>).<ref name = "USGS Kammerer"/>|group=n}} ||{{nts|1300}} ft<sup>3</sup>/s<br>37 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[न्यू मैक्सिको]], [[टैक्सास]]<sup>m</sup>, ''[[Chihuahua (state)|Chihuahua]]'', ''[[Coahuila]]'', ''[[Nuevo León]]'', ''[[Tamaulipas]]''<sup>m</sup>[[File:Rio Grande Creede.jpg|center|150px|alt=A small river winds through mountains under a rainbow.]]
|--
! scope="row"|5
||[[कोलोरैडो नदी]]||[[कैलिफोर्निया के खाड़ी]] ||style="background:#fffdd0;"|{{nts|1450}} mi<br>2,330 km<ref name = "USGS Kammerer"/><br>{{dagger}}{{#tag:ref|According to the Utah Division of Water Resources, 75 mi (121 km) of the river are in Mexico. This amounts to about 5 percent of the main-stem length.<ref>{{cite web|last=Anderson|first=D. Larry|title= Utah's Perspective: The Colorado River|url= http://www.water.utah.gov/interstate/thecoloradoriverart.pdf|date = May 2002|page=5|format=PDF|accessdate=February 19, 2011|archiveurl=https://web.archive.org/web/20140409152252/http://www.water.utah.gov/interstate/thecoloradoriverart.pdf|archivedate=April 9, 2014|url-status=dead}}</ref> Of this, 17 mi (27 km) form the border between Mexico and the United States.<ref name = "U.N. Programme"/>|group=n}}||{{coord|40|28|20|N|105|49|34|W|name=Colorado River (source)}}<ref>{{cite web|title = Colorado River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:45730|date = फरवरी 8, 1980|accessdate = फरवरी 4, 2011|archive-url = https://web.archive.org/web/20200625092921/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:45730|archive-date = 2020-06-25|url-status = dead}}</ref> ||{{coord|31|48|57|N|114|48|22|W|name =Colorado River (mouth)}}<ref>Derived via [[Google Earth]]</ref>||style="background:#eeffee;"|{{nts|248000}} mi<sup>2</sup><br>642,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=527}}<br>{{double-dagger}}{{#tag:ref|The [[United Nations Environment Programme]] cites a total basin size of 246,000 mi<sup>2</sup> (637,000 km<sup>2</sup>), split between 2,000 mi<sup>2</sup> (5,200 km<sup>2</sup>) (about 1 percent) in Mexico and 244,000 mi<sup>2</sup> (632,000 km<sup>2</sup>) (about 99 percent) in the United States.<ref name="U.N. Programme">{{cite web|last=Arias|first=E.|author2=Albar, M.|author3=Parra, I|author4=Reza, M|title=Regional Definition|publisher=United Nations Environment Programme|pages=20–21|url=http://staging.unep.org/dewa/giwa/areas/reports/r27/regional_definition_giwa_r27.pdf|format=PDF|accessdate=May 30, 2017|archiveurl=https://web.archive.org/web/20170531023445/http://staging.unep.org/dewa/giwa/areas/reports/r27/regional_definition_giwa_r27.pdf|archivedate=May 31, 2017|url-status=|df=}}</ref> |group=n}} ||{{nts|1400}} ft<sup>3</sup>/s<br>40 m<sup>3</sup>/s ||[[कोलोरैडो]]<sup>s</sup>, [[Utah]], [[एरिजोना]], [[Nevada]], [[कैलिफोर्निया]], ''[[सोनोरा]]''<sup>m</sup>, ''[[Baja California]]''<sup>m</sup>[[File:Colorado River edit.jpg|center|150px|alt=A large river flows through a deep canyon.]]
|--
! scope="row"|6
||[[आर्कन्सा नदी]]|| [[मिसीसिपी नदी]] ||{{nts|1443}} mi<br>2,322 km<br>{{#tag:ref|Derived by subtracting the length of the [[East Fork Arkansas River]] of roughly 16 mi (26 km)<ref>{{cite map|title = Colorado Atlas and Gazetteer|publisher = DeLorme|date = 1998|section = 47–48|isbn =978-0-89933-265-9}}</ref> from Kammerer's total of 1,459 mi (2,348 km).<ref name = "USGS Kammerer"/> |group=n}}||{{coord|39|15|30|N|106|20|38|W|name = Arkansas River (source)}}<ref>{{cite web|title = Arkansas River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:78956|date = November 30, 1979|accessdate = फरवरी 4, 2011|archive-date = July 12, 2020|archive-url = https://web.archive.org/web/20200712005314/https://geonames.usgs.gov/apex/f?p=GNISPQ:3:::NO::P3_FID:78956|url-status = dead}}</ref> ||{{coord|33|46|30|N|91|04|15|W|name=Arkansas River (mouth)}} ||{{nts|160200}} mi<sup>2</sup><br>414,910 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=315}}|| {{nts|35500}} ft<sup>3</sup>/s<br>1,004 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[कंसास]], [[Oklahoma]], [[आर्कन्सा]]<sup>m</sup>[[File:Wichitanightskyline.jpg|center|150px|alt=A large river flows through a brightly lit city at night.]]
|--
! scope="row"|7
||[[कोलंबिया नदी]]||[[प्रशांत महासागर]]||style="background:#fffdd0;"|{{nts|1243}} mi<ref name = "Canada Atlas"/><br>2,000 km<br>{{dagger}}{{#tag:ref|About 498 mi (801 km) are in Canada.<ref name ="Canada Atlas"/> This amounts to about 40 percent of the main-stem length.|group=n}} ||{{coord|50|13|00|N|115|51|00|W|name=Columbia River (source)}}<ref>{{cite web|title=Columbia Lake |publisher=Natural Resources Canada |url=http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?JATIP?C |accessdate=January 31, 2011 |url-status=dead |archiveurl=https://web.archive.org/web/20110706184119/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FJATIP%3FC |archivedate=July 6, 2011 |df= }}</ref> ||{{coord|46|14|39|N|124|03|29|W|name=Columbia River (mouth)}}<ref name = "gnis Columbia River">{{cite web | title = Columbia River | work = Geographic Names Information System | publisher = United States Geological Survey | date = November 28, 1980 | url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1140014 | accessdate = August 5, 2010 | archive-date = June 22, 2020 | archive-url = https://web.archive.org/web/20200622043440/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1140014 | url-status = dead }}</ref>||style="background:#eeffee;"|{{nts|279548}} mi<sup>2</sup><br>724,024 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=646}}<br>{{double-dagger}}{{#tag:ref|''The Atlas of Canada'' lists the total watershed at 259,200 mi<sup>2</sup> (671,300 km<sup>2</sup>), split between 39,700 mi<sup>2</sup> (102,800 km<sup>2</sup>) (about 15 percent) in Canada and 219,500 mi<sup>2</sup> (568,500 km<sup>2</sup>) (about 85 percent) in the United States.<ref name ="Canada Atlas"/> Kammerer's figure for the total watershed is 265,000 mi<sup>2</sup> (690,000 km<sup>2</sup>).<ref name = "USGS Kammerer"/>|group=n}} ||{{nts|273000}} ft<sup>3</sup>/s<br>7,730 m<sup>3</sup>/s ||''[[ब्रिटिश कोलंबिया]]''<sup>s</sup>, [[वाशिंगटन (राज्य)|वाशिंगटन]]<sup>m</sup>, [[ऑरेगन]]<sup>m</sup>[[File:ColumbiaRGorgePano.jpg|center|150px|alt=A large river flows through a wooded gorge.]]
|--
! scope="row"|8
||[[Red River of the South|Red River]]||[[Atchafalaya River|Atchafalaya]] and [[Mississippi River|Mississippi]] rivers||{{nts|1125}} mi<br>1,811 km<br>{{#tag:ref|This is the combined length, 1,360 mi (2,190 km),<ref>{{cite web|last = Kleiner | first = Diana J.|title = ''Handbook of Texas'': Red River|publisher = Texas State Historical Association|url = http://www.tshaonline.org/handbook/online/articles/rnr01|accessdate = फरवरी 18, 2011|archiveurl=https://web.archive.org/web/20151223143425/http://www.tshaonline.org/handbook/online/articles/rnr01|archivedate=December 23, 2015|url-status=}}</ref> of the main stem, [[Prairie Dog Town Fork Red River]], and [[Tierra Blanca Creek]] minus the lengths of the latter two, 160 mi (260 km)<ref>{{cite web|title = ''Handbook of Texas'': Prairie Dog Town Fork of the Red River|publisher = Texas State Historical Association|url = http://www.tshaonline.org/handbook/online/articles/rnp04| accessdate = फरवरी 18, 2011|archiveurl=https://web.archive.org/web/20160314153819/https://www.tshaonline.org/handbook/online/articles/rnp04|archivedate=March 14, 2016|dead-url=no}}</ref> and 75 mi (121 km).<ref>{{cite web|title = ''Handbook of Texas'': Tierra Blanca Creek|url = http://www.tshaonline.org/handbook/online/articles/rbt49|publisher = Texas State Historical Association|accessdate = फरवरी 18, 2011}}</ref> Kammerer gives the length as 1,290 mi (2,080 km).<ref name = "USGS Kammerer"/>|group=n}}||{{coord|34|34|35|N|99|57|54|W|name=Red River (source)}}<ref>{{cite web|title = Red River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558728|date = June 4, 1980|accessdate = फरवरी 5, 2011|archive-date = August 6, 2020|archive-url = https://web.archive.org/web/20200806192756/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558728|url-status = dead}}</ref> ||{{coord|31|01|10|N|91|44|52|W|name=Red River (mouth)}}||{{nts|65590}} mi<sup>2</sup><br>169,890 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=317}}<br>{{#tag:ref|Kammerer: 93,200 mi<sup>2</sup>.<ref name= "USGS Kammerer"/>|group=n }} ||{{nts|30100}} ft<sup>3</sup>/s<br>852 m<sup>3</sup>/s<br>{{#tag:ref|Kammerer: 56,000 ft<sup>3</sup>/s (1,600 m<sup>3</sup>)<ref name= "USGS Kammerer"/>|group=n }} ||[[Oklahoma]]<sup>s</sup>, [[टैक्सास]], [[आर्कन्सा]], [[लुइसियाना]]<sup>m</sup>[[File:Meander bends and oxbow.png|center|150px|alt= Oxbow bend in a river seen from an airplane]]
|--
! scope="row"|9
||[[Snake River]]||[[Columbia River]]||{{nts|1040}} mi<br>1,674 km<ref name = "USGS Kammerer"/>||{{coord|44|07|49|N|110|13|10|W|name = Snake River (source)}}<ref name = "gnis Snake River">{{cite web|title = Snake River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1533479|date = September 10, 1979|accessdate = August 6, 2010|archive-date = April 17, 2021|archive-url = https://web.archive.org/web/20210417192558/https://geonames.usgs.gov/apex/f?p=GNISPQ:3:::NO::P3_FID:1533479|url-status = dead}}</ref> ||{{coord|46|11|10|N|119|01|43|W|name = Snake River (mouth)}}||{{nts|108000}} mi<sup>2</sup><br>281,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=643}} ||{{nts|55300}} ft<sup>3</sup>/s<br>1,565 m<sup>3</sup>/s ||[[वूमिंग]]<sup>s</sup>, [[इडाहो]], [[ऑरेगन]], [[वाशिंगटन (राज्य)|वाशिंगटन]]<sup>m</sup>[[File:Adams The Tetons and the Snake River.jpg|center|150px|alt=A river winds across a plain at the foot of jagged snow-covered mountains.]]
|--
! scope="row"|10
||[[ओहायो नदी]]||[[मिसीसिपी नदी]]||{{nts|979}} mi<br>1,575 km{{sfn|Benke|Cushing|2005|p=379}}||{{coord|40|26|34|N|80|01|02|W|name=Ohio River (source)}}<ref>{{cite web|title = Ohio River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:425264|date = October 24, 1980|accessdate = फरवरी 5, 2011|archive-date = January 28, 2021|archive-url = https://web.archive.org/web/20210128125942/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:425264|url-status = dead}}</ref> ||{{coord|36|59|12|N|89|07|50|W|name=Ohio River (mouth)}} ||{{nts|204000}} mi<sup>2</sup><br>529,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=413}}||{{nts|308400}} ft<sup>3</sup>/s<br>8,733 m<sup>3</sup>/s||[[Pennsylvania]]<sup>s</sup>, [[ओहायो]], [[West Virginia]], [[इंडियाना]], [[इलिनोई]], [[केंचुकी]]<sup>m</sup>[[File:Wheeling West Virginia.jpg|center|150px|alt=Modest skyscrapers, their images reflected in the water, line the bank of a wide placid river.]]
|--
! scope="row"|11
||[[Colorado River of Texas]]||[[मैक्सिको के खाड़ी]]||{{nts|970}} mi<br>1,560 km{{sfn|Benke|Cushing|2005|p=198}}||{{coord|32|40|47|N|101|43|51|W|name=Colorado River of Texas (source))}}<ref>{{cite web|title = Colorado River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384149|date = November 30, 1979|accessdate = फरवरी 5, 2011|archive-date = June 4, 2020|archive-url = https://web.archive.org/web/20200604131714/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384149|url-status = dead}}</ref> ||{{coord|28|35|41|N|95|58|59|W|name=Colorado River of Texas (mouth)}} ||{{nts|39900}} mi<sup>2</sup><br>103,341 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=222}}||{{nts|2600}} ft<sup>3</sup>/s<br>75 m<sup>3</sup>/s ||[[टैक्सास]]<sup>s, m</sup>[[File:Colorado River Borden County Texas 2011.jpg|center|150px|alt=A small stream flows through an arid plain populated with low shrubs. Much of the surrounding soil is red.]]
|--
! scope="row"|12
||[[टेनेसी नदी]]||[[ओहायो नदी]]||{{nts|935}} mi<br>1,504 km{{sfn|Benke|Cushing|2005|p=384}}||{{coord|35|57|33|N|83|51|01|W|name=Tennessee River (source)}}<ref>{{cite web|title = Tennessee River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517033|date = सितंबर 20, 1979|accessdate = फरवरी 5, 2011|archive-date = 2020-11-21|archive-url = https://web.archive.org/web/20201121054655/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517033|url-status = dead}}</ref> ||{{coord|37|04|02|N|88|33|53|W|name=Tennessee River (mouth)}} ||{{nts|40880}} mi<sup>2</sup><br>105,870 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=414}}||{{nts|71000}} ft<sup>3</sup>/s<br>2,000 m<sup>3</sup>/s||[[टेनेसी]]<sup>s</sup>, [[Alabama]], [[केंचुकी]]<sup>m</sup>[[File:North shore one view.jpg|center|150px|alt=A wide river curves through an urban landscape replete with bridges, tall buildings, and wooded areas near the water.]]
|--
! scope="row"|13
||[[Canadian River]]||[[आर्कन्सा नदी]]||{{nts|906}} mi<br>1,458 km<ref name = "USGS Kammerer"/>||{{coord|37|01|11|N|105|04|33|W|name = Canadian River (source)}}<ref>{{cite web|title = Canadian River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1101881|date = December 18, 1979|accessdate = फरवरी 5, 2011|archive-date = February 26, 2020|archive-url = https://web.archive.org/web/20200226011917/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1101881|url-status = dead}}</ref> ||{{coord|35|27|12|N|95|01|58|W|name=Canadian River (mouth)}} ||{{nts|47130}} mi<sup>2</sup><br>122,070 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=316}} ||{{nts|6100}} ft<sup>3</sup>/s<br>174 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[न्यू मैक्सिको]], [[टैक्सास]], [[Oklahoma]]<sup>m</sup>[[File:Canadian River Railroad Bridge Logan New Mexico 2010.jpg|center|150px|alt=A small stream in arid country flows under a railroad bridge high above the water.]]
|--
! scope="row"|14
||[[Brazos River]]||[[मैक्सिको के खाड़ी]] ||{{nts|860}} mi<br>1,390 km{{sfn|Benke|Cushing|2005|p=203}}||{{coord|33|16|07|N|100|00|37|W|name=Brazos River (source)}}<ref>{{cite web|title = Brazos River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384148|date = November 30, 1979|accessdate = फरवरी 5, 2011|archive-date = September 2, 2018|archive-url = https://web.archive.org/web/20180902002828/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384148|url-status = dead}}</ref> ||{{coord|28|52|33|N|95|22|42|W|name=Brazos River (mouth)}} ||{{nts|44620}} mi<sup>2</sup><br>115,566 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=223}}|| {{nts|8800}} ft<sup>3</sup>/s<br>249 m<sup>3</sup>/s||[[टैक्सास]]<sup>s, m</sup>[[File:Brazos River railroad bridge Waco TX.jpg|center|150px|alt=A train crosses a bridge over a wide river.]]
|--
! scope="row"|15
||[[Green River (Colorado River)|Green River]]||[[Colorado River]]||{{nts|760}} mi<br>1,230 km{{sfn|Benke|Cushing|2005|p=497}}||{{coord|43|09|13|N|109|40|18|W|name=Green River (source)}}<ref>{{cite web|title = Green River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1428399|publisher = United States Geological Survey (USGS)|date = December 31, 1979|accessdate = फरवरी 5, 2011|archive-date = June 21, 2020|archive-url = https://web.archive.org/web/20200621200752/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1428399|url-status = dead}}</ref> ||{{coord|38|11|21|N|109|53|07|W|name=Green River (mouth)}}||{{nts|44900}} mi<sup>2</sup><br>116,200 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=528}}|| {{nts|6100}} ft<sup>3</sup>/s<br>172 m<sup>3</sup>/s||[[वूमिंग]]<sup>s</sup>, [[कोलोरैडो]], [[Utah]]<sup>m</sup>[[File:Green river utah from sky.jpg|center|upright|100x150px|alt=View from an airplane: A river meanders this way and that through a reddish-brown landscape.]]
|--
! scope="row"|16
||[[Pecos River]]||[[Rio Grande]]||{{nts|730}} mi<br>1,175 km{{sfn|Benke|Cushing|2005|p=213}}||{{coord|35|58|34|N|105|33|29|W|name=Pecos River (source)}}<ref>{{cite web|title = Pecos River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384150|publisher = United States Geological Survey (USGS)|date = November 30, 1979|accessdate = फरवरी 5, 2011|archive-date = April 23, 2021|archive-url = https://web.archive.org/web/20210423140652/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384150|url-status = dead}}</ref> ||{{coord|29|41|59|N|101|22|17|W|name=Pecos River (mouth)}} || {{nts|44000}} mi<sup>2</sup><br>113,960 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=225}}||{{nts|71}} ft<sup>3</sup>/s<br>2 m<sup>3</sup>/s ||[[न्यू मैक्सिको]]<sup>s</sup>, [[टैक्सास]]<sup>m</sup>[[File:Pecos River.jpg|center|150px|alt=A large river flows through a canyon.]]
|--
! scope="row"|17
||[[White River (Arkansas)]]||[[Mississippi River]]||{{nts|720}} mi<br>1,159 km{{sfn|Benke|Cushing|2005|p=246}}||{{coord|35|50|20|N|93|36|16|W|name=White River (source)}}<ref>{{cite web|title = White River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:78762|publisher = United States Geological Survey (USGS)|date = April 30, 1980|accessdate = फरवरी 5, 2011|archive-date = January 13, 2021|archive-url = https://web.archive.org/web/20210113104326/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:78762|url-status = dead}}</ref> ||{{coord|33|57|05|N|91|04|53|W|name = White River (mouth)}} ||{{nts|27872}} mi<sup>2</sup><br>72,189 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=273}}||{{nts|34600}} ft<sup>3</sup>/s<br>979 m<sup>3</sup>/s || [[आर्कन्सा]]<sup>s, m</sup>, [[मिसौरी]][[File:White River Arkansas-1.jpg|center|150px|alt=A wide placid river flows by a low wooded hill.]]
|--
! scope="row"|18
||[[James River (Dakotas)|James River]]<br>{{#tag:ref|Also known as the Dakota River or Jim River and not to be confused with the [[James River]] of Virginia.|group=n}}||[[मिसौरी नदी]]||{{nts|710}} mi<br>1,140 km<ref name = "American Rivers">{{cite web|title = River Facts|publisher = American Rivers|url=http://www.americanrivers.org/library/river-facts/river-facts.html|accessdate = फरवरी 22, 2011|archiveurl=https://web.archive.org/web/20120310033450/http://www.americanrivers.org/library/river-facts/river-facts.html|archivedate=March 10, 2012|url-status=}}</ref>||{{coord|47|28|53|N|99|51|32|W|name=James River (source)}}<ref>{{cite web|title = James River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1261082|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = फरवरी 22, 2011|archive-date = 2020-05-26|archive-url = https://web.archive.org/web/20200526155253/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1261082|url-status = dead}}</ref> ||{{coord|42|52|17|N|97|17|26|W|name = James River (mouth)}} ||{{nts|20942}} mi<sup>2</sup><br>54,240 km<sup>2</sup><ref name="USGS James (Dakota)">{{cite web|title = USGS 06478513 James River near Yankton, SD|url =https://waterdata.usgs.gov/nwis/inventory/?site_no=06478513&agency_cd=USGS|publisher = United States Geological Survey|date = November 2010|accessdate=February 23, 2011}}</ref> ||{{nts|854}} ft<sup>3</sup>/s<br>24.2 m<sup>3</sup>/s<ref name="USGS James (Dakota)"/><br>{{#tag:ref|This is the average discharge for the years 1982–94, derived by adding the discharge for each of these years and dividing by 13.|group=n}} ||[[नार्थ डकोटा]]<sup>s</sup>, [[साउथ डकोटा]]<sup>m</sup>[[File:James River in Jamestown, N.D.jpg|center|150px|alt=A small stream winds through a town.]]
|--
! scope="row"|19
||[[Kuskokwim River]]||[[बेरिंग सागर]]||{{nts|702}} mi<br>1,130 km{{sfn|Benke|Cushing|2005|p=741}}||{{coord|63|05|16|N|154|38|33|W|name=Kuskokwim River (source)}}<ref>{{cite web|title = Kuskokwim River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416402|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 5, 2011|archive-date = September 2, 2018|archive-url = https://web.archive.org/web/20180902173018/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416402|url-status = dead}}</ref> ||{{coord|60|04|59|N|162|20|02|W|name=Kuskokwim River (mouth)}} ||{{nts|48000}} mi<sup>2</sup><br>124,319 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=764}}||{{nts|67000}} ft<sup>3</sup>s<br>1,900 m<sup>3</sup>/s||[[अलास्का]]<sup>s, m</sup>[[File:Aniakshore.jpg|center|150px|alt=Men and boats along the shore of a very wide river.]]
|--
! scope="row"|20
||[[Cimarron River (Arkansas River)|Cimarron River]]||[[आर्कन्सा नदी]]||{{nts|698}} mi<br>1,123 km<ref>{{cite web|title = Cimarron River|publisher = Oklahoma Historical Society|url = http://digital.library.okstate.edu/encyclopedia/entries/C/CI004.html|accessdate = फरवरी 5, 2011|archiveurl=https://web.archive.org/web/20141227051709/http://digital.library.okstate.edu/encyclopedia/entries/C/CI004.html|archivedate=December 27, 2014|url-status=}}</ref>||{{coord|36|54|24|N|102|59|12|W|name="Cimarron River (source)}}<ref>{{cite web|title = Cimarron River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1091369|publisher = United States Geological Survey (USGS)|date = December 18, 1979|accessdate = फरवरी 5, 2011|archive-date = April 11, 2021|archive-url = https://web.archive.org/web/20210411043015/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1091369|url-status = dead}}</ref>||{{coord|36|10|14|N|96|16|19|W|name=Cimarron River (mouth)}}||{{nts|19510}} mi<sup>2</sup><br>50,540 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=319}}||{{nts|1500}} ft<sup>3</sup>/s<br>42 m<sup>3</sup>/s ||[[Oklahoma]]<sup>s, m</sup>, [[कोलोरैडो]], [[कंसास]] [[File:Cimarron river near forgan ok.jpg|center|150px|alt=A medium-sized river winds through a flat plain dominated by brown grasses.]]
|--
! scope="row"|21
||[[Cumberland River]]||[[ओहायो नदी]]||{{nts|696}} mi<br>1,120 km{{sfn|Benke|Cushing|2005|p=390}}||{{coord|36|50|42|N|83|19|26|W|name=Cumberland River (source)}}<ref>{{cite web|title = Cumberland River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517018|publisher = United States Geological Survey (USGS)|date = सितंबर 20, 1979|accessdate = फरवरी 5, 2011|archive-date = 2018-09-02|archive-url = https://web.archive.org/web/20180902064322/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517018|url-status = dead}}</ref> ||{{coord|37|08|36|N|88|24|27|W|name=Cumberland River (mouth)}} ||{{nts|17930}} mi<sup>2</sup><br>46,430 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=415}}||{{nts|30400}} ft<sup>3</sup>/s
862 m<sup>3</sup>/s
|[[केंचुकी]]<sup>s, m</sup>, [[टेनेसी]] [[File:Cumberland River 2005 05 20.jpeg|center|150px|alt=Several canoes pass under a bridge over a wide river in a forest.]]
|--
! scope="row"|22
||[[Yellowstone River]]||[[मिसौरी नदी]]||{{nts|678}} mi<br>1,091 km{{sfn|Benke|Cushing|2005|p=440}}||{{coord|43|59|18|N|109|55|45|W|name = Yellowstone River (source)}}<ref>{{cite web|title = Yellowstone River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035255|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = January 20, 2011|archive-date = June 29, 2019|archive-url = https://web.archive.org/web/20190629204543/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035255|url-status = dead}}</ref> ||{{coord|47|58|42|N|103|58|56|W|name = Yellowstone River (mouth)}} ||{{nts|70400}} mi<sup>2</sup><br>182,336 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=470}}||{{nts|12800}} ft<sup>3</sup>/s<br>362 m<sup>3</sup>/s||[[वूमिंग]]<sup>s</sup>, [[मोंटाना]], [[नार्थ डकोटा]]<sup>m</sup>[[File:Lower yellowstone falls in ice.jpg|center|upright|100x150px|alt=Large waterfall encased in ice]]
|--
! scope="row"|23
||[[North Platte River]]||[[Platte River]]||{{nts|665}} mi<br>1,070 km{{sfn|Benke|Cushing|2005|p=451}}||{{coord|40|38|23|N|106|24|19|W|name=North Platte River (source)}}<ref>{{cite web|title = North Platte River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:204647|publisher = United States Geological Survey (USGS)|date = October 13, 1978|accessdate = फरवरी 6, 2011|archive-date = April 11, 2021|archive-url = https://web.archive.org/web/20210411050702/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:204647|url-status = dead}}</ref> ||{{coord|41|06|50|N|100|40|33|W|name=North Platte River (mouth)}} ||{{nts|34885}} mi<sup>2</sup><br>90,352 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=451}}||{{nts|770}} ft<sup>3</sup>/s<br>21.9 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[वूमिंग]], [[नेब्रास्का]]<sup>m</sup>[[File:North Platte River Northgate Canyon Canoers.jpg|center|150px|alt=Canoers run rapids on a boulder-strewn river in the mountains.]]
|--
! scope="row"|24
||[[Milk River (Alberta–Montana)|Milk River]]||[[मिसौरी नदी]]||style="background:#fffdd0;"|{{nts|625}} mi<br>1,005 km<ref name="Canada Atlas"/>{{dagger}}{{#tag:ref|According to ''The Canadian Encyclopedia'', a 110-mi (170 km) stretch of the river flows through Canada. This amounts to about 18 percent of the main-stem length.<ref>{{cite web|last=Marsh|first=James H.|title=Milk River|url=http://www.thecanadianencyclopedia.ca/en/article/milk-river/|publisher=Historica Canada|date=March 4, 2015|accessdate=May 19, 2017}}{{Dead link|date=April 2026 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>|group=n}}||{{coord|48|51|20|N|113|01|10|W|name=Milk River (source)}}<ref>{{cite web|title = Milk River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:774213|publisher = United States Geological Survey (USGS)|date = April 4, 1980|accessdate = फरवरी 5, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815063856/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:774213|url-status = dead}}</ref> ||{{coord|48|03|26|N|106|19|07|W|name=Milk River (mouth)}} ||style="background:#eeffee;"|{{nts|22332}} mi<sup>2</sup><br>57,839 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=475}}<br>{{double-dagger}}{{#tag:ref|''The Atlas of Canada'': 23,600 mi<sup>2</sup> (61,200 km<sup>2</sup>) split between 8,300 mi<sup>2</sup> (21,600 km<sup>2</sup>) (about 35 percent) in Canada and 15,300 mi<sup>2</sup> (39,600 km<sup>2</sup>) (about 65 percent) in the United States.<ref name ="Canada Atlas"/>|group=n}}||{{nts|670}} ft<sup>3</sup>/s<br>18.9 m<sup>3</sup>/s ||''[[अल्बर्टा]]'', [[मोंटाना]]<sup>s, m</sup>[[File:Milkriverpan.jpg|center|150px|alt=A small river winds through a rocky, grass-covered plateau. Hills rise in the distance.]]
|--
! scope="row"|25
||[[Ouachita River]]||[[Black River (Louisiana)|Black River]]||{{nts|605}} mi<br>974 km<ref>Benke and Cushing, p. 265</ref>||{{coord|31|41|56|N|94|19|57|W|name=Ouachita River (source)}}<ref>{{cite web|title = Ouachita River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558280|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 6, 2011|archive-date = May 29, 2018|archive-url = https://web.archive.org/web/20180529172840/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558280|url-status = dead}}</ref> ||{{coord|31|37|53|N|91|48|25|W|name=Ouachita River (mouth)}} ||{{nts|24886}} mi<sup>2</sup><br>64,454 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=279}}||{{nts|29800}} ft<sup>3</sup>/s<br>843 m<sup>3</sup>/s ||[[आर्कन्सा]]<sup>s</sup>, [[लुइसियाना]]<sup>m</sup>[[File:USACE Columbia Lock Ouachita River.jpg|center|150px|alt=A lock and dam on a medium-sized river]]
|--
! scope="row"|26
||[[Saint Lawrence River]]||[[Gulf of Saint Lawrence]]||style="background:#fffdd0;"|{{nts|600}} mi<br>965 km{{sfn|Benke|Cushing|2005|p=987}}<br>{{dagger}}{{#tag:ref|According to the [[U.S. Army Corps of Engineers]], a 115-mi (185 km) stretch of the river forms part of the U.S.–Canada border. This amounts to about 19 percent of the main-stem length.<ref>{{cite web|title = St. Lawrence River (International Section)|publisher = U.S. Army Corps of Engineers, Detroit District|url = http://www.lre.usace.army.mil/greatlakes/hh/outflows/discharge_measurements/st._lawrence_river/|accessdate = February 19, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815090955/https://www.lre.usace.army.mil/Missions/Great-Lakes-Information/Outflows/st._lawrence_river/|url-status = dead}}</ref>|group=n}}||{{coord|44|05|55|N|76|23|28|W|name=St. Lawrence River (source)}}<ref>{{cite web|title = St. Lawrence River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:977244|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 3, 2011|archive-date = September 25, 2017|archive-url = https://web.archive.org/web/20170925135043/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:977244|url-status = dead}}</ref>||{{coord|49|40|00|N|64|30|00|W|name=Saint Lawrence River (mouth)}}<ref>{{cite web|title = Saint Lawrence River|publisher = Natural Resources Canada|url = http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?EFGFK?C|accessdate = फरवरी 3, 2011|archiveurl = https://web.archive.org/web/20110706184123/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FEFGFK%3FC|archivedate = July 6, 2011|dead-url = yes|df = }}</ref> ||style="background:#eeffee;"|{{nts|620000}} mi<sup>2</sup><br>1,600,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=983}}<br>{{double-dagger}}{{#tag:ref|Kammerer: 396,000 mi<sup>2</sup> (1,030,000 km<sup>2</sup>).<ref name = "USGS Kammerer"/> ''The Atlas of Canada'': 519,000 mi<sup>2</sup> (1,344,200 km<sup>2</sup>), of which 324,000 mi<sup>2</sup> (839,200 km<sup>2</sup>) (about 62 percent) is in Canada and 195,000 mi<sup>2</sup> (505,000 km<sup>2</sup>) (about 38 percent) is in the United States.<ref name = "Canada Atlas"/>|group=n }}|| {{nts|440000}} ft<sup>3</sup>/s<br>12,600 m<sup>3</sup>/s<br>{{#tag:ref|Kammerer: 348,000 ft<sup>3</sup>/s (9,900 m<sup>3</sup>/s).<ref name = "USGS Kammerer"/>|group=n }} ||[[न्यूयार्क (राज्य)|न्यूयार्क]]<sup>s</sup>, ''[[ओंटारियो]]''<sup>s</sup>, ''[[क्यूबेक]]''<sup>m</sup>[[File:Saint Lawrence seaway.jpg|center|150px|alt=A large ship travels along a large river bordered by vegetation on one bank and urban development on the other.]]
|--
! scope="row"|27
||[[Gila River]]||[[Colorado River]]||{{nts|600}} mi<br>960 km{{sfn|Benke|Cushing|2005|p=511}}||{{coord|33|10|47|N|108|12|22|W|name=Gila River (source)}}<ref>{{cite web|title = Gila River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:42838|publisher = United States Geological Survey (USGS)|date = फरवरी 8, 1980|accessdate = फरवरी 6, 2011|archive-date = 2018-05-29|archive-url = https://web.archive.org/web/20180529162818/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:42838|url-status = dead}}</ref> ||{{coord|32|43|11|N|114|33|19|W|name=Gila River (mouth)}} ||style="background:#eeffee;"|{{nts|57850}} mi<sup>2</sup><br>149,832 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=531}}<br>{{double-dagger}}{{#tag:ref|Of this total, 232 mi<sup>2</sup> (600 km<sup>2</sup>) (about 0.4 percent) are in the Mexican state of [[सोनोरा]], and the rest is in the United States.<ref name= "Wind Spirit"/>|group=n}}||{{nts|210}} ft<sup>3</sup>/s<br>6 m<sup>3</sup>/s<br>{{#tag:ref|''Rivers of North America'' describes the discharge as ''less than'' 210 ft<sup>3</sup>/s (6 m<sup>3</sup>/s.|group = n}} ||[[न्यू मैक्सिको]]<sup>s</sup>, [[एरिजोना]]<sup>m</sup>[[File:GilaRiverAtUS95.jpg|center|150px|alt=A shallow river with a sandy bed flows through an arid landscape.]]
|--
! scope="row"|28
||[[Sheyenne River]]||[[Red River of the North]]||{{nts|591}} mi<br>951 km<ref name="NHD">{{cite web|title=National Hydrography Dataset|publisher=United States Geological Survey|url=http://nhd.usgs.gov/index.html|accessdate=June 9, 2011|archive-date=December 13, 2011|archive-url=https://web.archive.org/web/20111213040729/http://nhd.usgs.gov/index.html|url-status=dead}}</ref>||{{coord|47|41|46|N|100|29|52|W|name=Sheyenne River (source)}}<ref>{{cite web|title = Sheyenne River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035146|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = June 9, 2011|archive-date = June 14, 2021|archive-url = https://web.archive.org/web/20210614202854/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035146|url-status = dead}}</ref> ||{{coord|47|01|25|N|96|49|31|W|name=Sheyenne River (mouth)}}||{{nts|8800}} mi<sup>2</sup><br>23,000 km<sup>2</sup><br>{{#tag:ref|This is the size of the basin upstream of a [[stream gauge]] near [[Kindred, North Dakota|Kindred]] and at [[river mile]] 67.9 (river kilometer 109.3).<ref name="Kindred gauge">{{cite web | publisher = United States Geological Survey | url = http://wdr.water.usgs.gov/wy2010/pdfs/05059000.2010.pdf | format = PDF | title = Water-Data Report 2010: 05059000 Sheyenne River near Kindred, ND | accessdate = June 9, 2011 | archive-date = October 28, 2011 | archive-url = https://web.archive.org/web/20111028133452/https://wdr.water.usgs.gov/wy2010/pdfs/05059000.2010.pdf | url-status = dead }}</ref>|group=n}}||{{nts|288}} ft<sup>3</sup>/s<br>8.2 m<sup>3</sup>/s<br>{{#tag:ref|This is the average flow measured by a [[stream gauge]] near [[Kindred, North Dakota|Kindred]] and at [[river mile]] 67.9 (river kilometer 109.3).<ref name="Kindred gauge"/>|group=n}} ||[[नार्थ डकोटा]]<sup>s, m</sup>[[File:Baldhill Dam Sheyenne River.jpg|center|150px|alt= A small river rushes away from the base of a dam.]]
|--
! scope="row"|29
||[[Tanana River]]||[[Yukon River]]||{{nts|584}} mi<br>940 km<br>{{#tag:ref|The main-stem length is calculated by subtracting the length of the [[Nabesna River]] from Kammerer's total of 659 mi (1,061 km).<ref name = "USGS Kammerer"/> The Nabesna River is roughly 75 mi (121 km) long, calculated by adding the 60 mi (97 km) from the Nabesna mouth to Camp Creek<ref>{{cite web|last=Irwin |first = Thomas|title = Recordable Disclaimer of Interest Application for the Nabesna River|publisher= U.S. Bureau of Land Management|date = October 3, 2005|format = PDF|url = http://www.blm.gov/pgdata/etc/medialib/blm/ak/aktest/rdi/nebesna_riv.Par.92404.File.dat/nabesna_river_app.pdf|accessdate=February 19, 2011|archiveurl=https://web.archive.org/web/20121019052252/http://www.blm.gov/pgdata/etc/medialib/blm/ak/aktest/rdi/nebesna_riv.Par.92404.File.dat/nabesna_river_app.pdf|archivedate=October 19, 2012|url-status=}}</ref> to the distance, 15 mi (24 km), from Camp Creek to Nabesna Glacier,<ref>{{cite map|title= Alaska Atlas and Gazetteer|publisher = DeLorme|edition = 7th|year = 2010|page = 98|isbn=0-89933-289-7}}</ref> Kammerer's most remote source for the Tanana.|group=n}}||{{coord|63|02|57|N|141|51|52|W|name = Tanana River (source)}}<ref>{{cite web|title = Tanana River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416408|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 2, 2011|archive-date = April 25, 2021|archive-url = https://web.archive.org/web/20210425015103/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416408|url-status = dead}}</ref>||{{coord|65|09|38|N|151|57|37|W|name=Tanana River (mouth)}}||{{nts|44000}} mi<sup>2</sup><br>114,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=797}}||{{nts|41800}} ft<sup>3</sup>/s<br>1,185 m<sup>3</sup>/s ||[[अलास्का]]<sup>s, m</sup>[[File:Tanana River 2.jpg|center|150px|alt=A shallow braided river flows over a plain partly covered by green plants and grasses. Jagged snow-covered mountains rise in the distance.]]
|--
! scope="row"|30
||[[Smoky Hill River]]||[[Kansas River]]||{{nts|576}} mi<br>927 km<ref name="NHD"/>||{{coord|38|57|01|N|102|34|49|W|name=Smoky Hill River (source)}}<ref>{{cite web|title = Smoky Hill River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:485314|publisher = United States Geological Survey (USGS)|date = October 13, 1978|accessdate = June 14, 2011|archive-date = May 29, 2018|archive-url = https://web.archive.org/web/20180529151248/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:485314|url-status = dead}}</ref> ||{{coord|39|03|36|N|96|48|04|W|name=Smoky Hill (mouth)}} ||{{nts|19260}} mi<sup>2</sup><br>49,900 km<sup>2</sup><br>{{#tag:ref|Reflects only that part of the basin above a [[stream gauge]] at [[river mile]] 43.3 (river kilometer 69.7) near [[Enterprise, Kansas|Enterprise]].<ref name="Enterprise gauge">{{cite web|title=Water-Data Report 2010: 06877600 Smoky Hill River at Enterprise, KS|url=http://wdr.water.usgs.gov/wy2010/pdfs/06877600.2010.pdf|publisher=United States Geological Survey|format=PDF|accessdate=June 14, 2011|archive-url=https://web.archive.org/web/20111029010521/http://wdr.water.usgs.gov/wy2010/pdfs/06877600.2010.pdf|archive-date=October 29, 2011|url-status=dead}}</ref> |group=n}} ||{{nts|1542}} ft<sup>3</sup>/s<br>43.7 m<sup>3</sup>/s<br>{{#tag:ref|Measured by a [[stream gauge]] at [[river mile]] 43.3 (river kilometer 69.7) near [[Enterprise, Kansas|Enterprise]].<ref name="Enterprise gauge"/>|group=n}} ||[[कोलोरैडो]]<sup>s</sup>, [[कंसास]]<sup>m</sup>[[File:Smoky Hill River-0508.jpg|center|150px|alt=A small, muddy river, as seen from a bridge, meanders between tree-lined banks.]]
|--
! scope="row"|31
||[[Niobrara River]]||[[मिसौरी नदी]]||{{nts|568}} mi<br>914 km<ref name="NHD"/> ||{{coord|42|49|15|N|104|38|50|W|name=Niobrara River (source)}}<ref>{{cite web|title = Niobrara River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:835960|publisher = United States Geological Survey (USGS)|date = March 9, 1979|accessdate = July 5, 2011|archive-date = May 25, 2021|archive-url = https://web.archive.org/web/20210525225830/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:835960|url-status = dead}}</ref>||{{coord|42|45|58|N|98|02|50|W|name=Niobrara River (mouth)}}||{{nts|12600}} mi<sup>2</sup><br>32,600 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=478}}||{{nts|1700}} ft<sup>3</sup>/s<br>49 m<sup>3</sup>/s ||[[वूमिंग]]<sup>s</sup>, [[नेब्रास्का]]<sup>m</sup><br>[[File:Niobrara headwaters.JPG|center|150px|A small river flows through a field of grass and yellow flowers.]]
|--
! scope="row"|32
||[[Little Missouri River (North Dakota)|Little Missouri River]]||[[मिसौरी नदी]]||{{nts|560}} mi<br>900 km<ref>{{cite journal|last=Personius|first = Robert Giles|author2=Eddy, Samuel |title = Fishes of the Little Missouri River|url=https://archive.org/details/sim_copeia_1955-02-18_1/page/41|journal = Copeia| publisher = American Society of Ichthyologists and Herpetologists|volume=1955|date=February 18, 1955|issue=1| page = 41|doi=10.2307/1439450}}</ref>||{{coord|44|32|25|N|104|59|57|W|name="Little Missouri River (source)}}<ref name = "gnis Little Missouri River">{{cite web|title = Little Missouri River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1034981|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = फरवरी 23, 2011|archive-date = 2018-09-01|archive-url = https://web.archive.org/web/20180901222656/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1034981|url-status = dead}}</ref> || {{coord|47|36|38|N|102|52|24|W|name=Little Missouri River (mouth)}} ||{{nts|8310}} mi<sup>2</sup><br>21,500 km<sup>2</sup><ref name = "USGS Little Missouri">{{cite web|title = USGS 06337000 Little Missouri River near Watford City, ND|url = https://waterdata.usgs.gov/nwis/nwisman/?site_no=06337000&agency_cd=USGS|date = November 2010|accessdate = February 23, 2011|archive-date = July 21, 2020|archive-url = https://web.archive.org/web/20200721130237/https://waterdata.usgs.gov/nwis/inventory/?site_no=06337000&agency_cd=USGS|url-status = dead}}</ref><br>{{#tag:ref|This is only a close approximation of the entire basin. It does not include a small fraction of the basin below the river gauge, located about 25 mi (40 km) upstream of the river mouth.|group=n}}||{{nts|450}} ft<sup>3</sup>/s<br>13 m<sup>3</sup>/s<ref name = "USGS Little Missouri"/><br>{{#tag:ref|This is the average discharge for the years 1990–2010, derived by adding the discharge for each of these years and dividing by 21.|group=n}} ||[[वूमिंग]]<sup>s</sup>, [[मोंटाना]], [[साउथ डकोटा]], [[नार्थ डकोटा]]<sup>m</sup>[[File:Little Missouri River North Unit TR National Park.jpg|center|150px|alt=A small river meanders through a landscape of forests, bluffs, and rocky outcrops.]]
|--
! scope="row"|33
||[[Sabine River (Texas–Louisiana)|Sabine River]]||[[मैक्सिको के खाड़ी]]||{{nts|553}} mi<br>890 km{{sfn|Benke|Cushing|2005|p=208}}||{{coord|32|48|29|N|95|55|14|W|name=Sabine River (source)}}<ref>{{cite web|title = Sabine River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:555872|publisher = United States Geological Survey (USGS)|date = June 4, 1980|accessdate = फरवरी 7, 2011|archive-date = August 18, 2020|archive-url = https://web.archive.org/web/20200818225023/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:555872|url-status = dead}}</ref> ||{{coord|29|59|08|N|93|47|26|W|name=Sabine River (mouth)}} ||{{nts|9756}} mi<sup>2</sup><br>25,268 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=224}}||{{nts|8400}} ft<sup>3</sup>/s<br>238 m<sup>3</sup>/s ||[[टैक्सास]]<sup>s</sup>, [[लुइसियाना]]<sup>m</sup>[[File:Sabine River at Logansport, LA IMG 0950.JPG|center|150px|alt=A wide river flows under a highway bridge.]]
|--
! scope="row"|34
||[[Red River of the North]]||[[Lake Winnipeg]]||style="background:#fffdd0;"|{{nts|550}} mi<br>890 km<ref>{{cite web|title = Red River of the North|url = http://www.dnr.state.mn.us/watertrails/redriver/index.html| publisher = Minnesota Department of Natural Resources| year = 2011| accessdate = January 22, 2011}}</ref><br>{{dagger}}{{#tag:ref|According to the [[Minnesota Department of Natural Resources]], 394 mi (634 km) are in the United States. This amounts to about 72 percent of the main-stem length.<ref>{{cite web|title=Red River of the North: A Water Trail Guide|url=http://files.dnr.state.mn.us/maps/canoe_routes/red_river_3.pdf|publisher=Minnesota Department of Natural Resources|format=PDF|year=2010|accessdate=February 19, 2011|archive-date=August 5, 2019|archive-url=https://web.archive.org/web/20190805133300/http://files.dnr.state.mn.us/maps/canoe_routes/red_river_3.pdf|url-status=dead}}</ref>|group=n}}||{{coord|46|15|52|N|96|35|55|W|name = Red River of the North (source)}}<ref name = "gnis Red River">{{cite web|title = Red River of the North|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035890|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = January 17, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815092405/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035890|url-status = dead}}</ref>||{{coord|50|23|47|N|96|48|39|W|name = Red River (mouth)}}<ref>{{cite web|title = Red River|publisher = Natural Resources Canada|url = http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?GAWTC?C|accessdate = January 17, 2011|archiveurl = https://web.archive.org/web/20110706184128/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FGAWTC%3FC|archivedate = July 6, 2011|dead-url = yes|df = }}</ref>||style="background:#eeffee;"|{{nts|111000}} mi<sup>2</sup><br>287,500 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=896}}<br>{{double-dagger}}{{#tag:ref|Of the total basin, 53,500 mi<sup>2</sup> (138,600 km<sup>2</sup>) (about 48 percent) are in Canada and 57,500 mi<sup>2</sup> (148,900 km<sup>2</sup>) (about 52 percent) are in the United States.<ref name = "Canada Atlas"/> |group=n}}||{{nts|8300}} ft<sup>3</sup>/s<br>236 m<sup>3</sup>/s||[[नार्थ डकोटा]]<sup>s</sup>, [[मिनेसोटा]]<sup>s</sup>, ''[[मैनीटोबा]]''<sup>m</sup>[[File:Red River of the North.jpg|center|150px|alt=A small river flows through a prairie landscape; brown grasses and leafless trees line the banks.]]
|--
! scope="row"|35
||[[Des Moines River]]||[[Mississippi River]] ||{{nts|525}} mi<br>845 km<ref>{{cite web|title = National Recreation Trails: Des Moines River Water Trail - Polk County, Iowa|url = http://www.americantrails.org/nationalrecreationtrails/trailNRT/Des-Moines-River-Water-Trail-IA.html|publisher = American Trails|accessdate = फरवरी 5, 2011|archive-date = 2014-04-07|archive-url = https://web.archive.org/web/20140407065406/http://www.americantrails.org/nationalrecreationtrails/trailNRT/Des-Moines-River-Water-Trail-IA.html|url-status = dead}}</ref>||{{coord|44|05|02|N|95|41|17|W|name = Des Moines (source)}}<ref>{{cite web|title = Des Moines River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:465582|publisher = United States Geological Survey (USGS)|date = April 30, 1979|accessdate = फरवरी 7, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815070905/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:465582|url-status = dead}}</ref> ||{{coord|41|22|52|N|91|25|21|W|name=Des Moines River (mouth)}} ||{{nts|12018}} mi<sup>2</sup><br>31,127 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=372}}||{{nts|6400}} ft<sup>3</sup>/s<br>182 m<sup>3</sup>/s ||[[मिनेसोटा]]<sup>s</sup>, [[मिसौरी]], [[आयवा]]<sup>m</sup>[[File:Des Moines River.jpg|center|150px|alt=A placid river flows through a prairie landscape.]]
|--
! scope="row"|36
||[[White River (Missouri River)]]||[[मिसौरी नदी]]||{{nts|506}} mi<br>815 km{{sfn|Benke|Cushing|2005|p=445}}||{{coord|42|41|10|N|103|50|14|W|name=White River (source)}}<ref>{{cite web|title = White River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1267248|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = फरवरी 7, 2011|archive-date = 2018-09-01|archive-url = https://web.archive.org/web/20180901221151/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1267248|url-status = dead}}</ref> || {{coord|43|42|50|N|99|28|01|W|name=White River (mouth)}} ||{{nts|10200}} mi<sup>2</sup><br>26,418 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=471}}||{{nts|570}} ft<sup>3</sup>/s<br>16 m<sup>3</sup>/s||[[नेब्रास्का]]<sup>s</sup>, [[साउथ डकोटा]]<sup>m</sup>[[File:White River at US20 DS.JPG|center|150px|alt=A small stream flows through grasses and shrubs at the base of a rocky hill.]]
|--
! scope="row"|37
||[[Trinity River (Texas)|Trinity River]]||[[गैलवेस्टन खाड़ी]]||{{nts|506}} mi<br>815 km{{sfn|Benke|Cushing|2005|p=215}}||{{coord|32|47|54|N|96|53|52|W|name=Trinity River (source)}}<ref>{{cite web|title = Trinity River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1348789|publisher = United States Geological Survey (USGS)|date = November 30, 1979|accessdate = फरवरी 7, 2011|archive-date = September 2, 2018|archive-url = https://web.archive.org/web/20180902062816/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1348789|url-status = dead}}</ref> ||{{coord|29|44|35|N|94|42|12|W|name = Trinity River (mouth)}} ||{{nts|17970}} mi<sup>2</sup><br>46,540 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=227}}||{{nts|7800}} ft<sup>3</sup>/s<br>222 m<sup>3</sup>/s||[[टैक्सास]]<sup>s, m</sup>[[File:Trinity River.jpg|center|150px|alt=A middle-sized river flows by a factory with two tall smokestacks.]]
|--
! scope="row"|38
||[[Wabash River]]||[[ओहायो नदी]]||{{nts|503}} mi<br />810 km<ref name="NHD"/>||{{coord|40|21|07|N|84|45|57|W|name=Wabash River (source)}}<ref>{{cite web|title=Wabash River|work=Geographic Names Information System|url=https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:449850|publisher=United States Geological Survey (USGS)|date=February 14, 1979|accessdate=July 5, 2011|archive-date=April 11, 2021|archive-url=https://web.archive.org/web/20210411045832/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:449850|url-status=dead}}</ref>||{{coord|37|47|53|N|88|01|38|W|name=Wabash River (mouth)}}||{{nts|32950}} mi<sup>2</sup><br>85,340 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=396}}</ref>||{{nts|1001}} ft<sup>3</sup>/s<br>28 m<sup>3</sup>/s||[[ओहायो]]<sup>s</sup>, [[इंडियाना]]<sup>m</sup>, [[इलिनोई]]<sup>m</sup>[[File:Wabash River at Lafayette.jpg|center|150px|alt=A middle-sized river with sandy and grassy banks flows under a bridge]]
|}
==नक्शा==
[[Image:Longest Rivers of the US with labels fixed again 2.jpg|thumb|center|780px|Map of North America showing all rivers on this list]]
{{clear}}
==नोट==
<references group="n"/>
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:अमेरिका के नदी|*]]
49gc9f9m3k5sebv1oyei5hi1sfvxm3c
815188
815161
2026-11-12T15:21:33Z
SM7Bot
7808
/* लिस्ट */ सफाई, replaced: |dead-url=no → |url-status=live using [[Project:AWB|AWB]]
815188
wikitext
text/x-wiki
'''अमेरिका के नदी सभ''' में 38 गो प्रमुख नदी बाड़ी सऽ जिनहन के लंबाई {{convert|500|mi}} से ढेर बा। एह नदी सभ के एगो लिस्ट नीचे दिहल जात बा। लिस्ट के नीचे प्रमुख नदी सभ के नक्सा पर लोकेशन भी देखावल गइल बाटे।
== लिस्ट ==
<div style="float: left; margin: 5px;">
{| class="wikitable" border="1"
|-
! style="background:#eaeaea" colspan=6|रंग कोड के माने
|-
|bgcolor="#fffdd0" style="text-align: left" |{{dagger|alt=धारा पूरा तरीका से अमेरिका के भीतरे ना बहे ले।}} नदी के पूरा हिस्सा अमेरिका के भीतरे ना बाटे।
|-
|bgcolor="#eeffee" style="text-align: left"|{{double-dagger|alt= नदी के थाला पूरा तरीका से अमेरिका के भीतरे ना बाटे।}} नदी के थाला पूरा तरीका से अमेरिका के भीतरे ना बाटे।
|}</div>
{|class="wikitable sortable plainrowheaders" style="width:100%; background:#fff;"
|+ अमेरिका के सभसे लमहर प्रमुख नदी सभ के लिस्ट
! scope="col" width=1%|'''#'''
! scope="col" width=10%|'''नाँव'''
! scope="col" width=10%|'''मुहाना'''<ref name = "maps"/>
! scope="col" width=10%|'''लंबाई'''
! scope="col" width=10% |'''सोता<br>अक्षांश-देशांतर'''<ref name = "GNIS USGS">The mouth coordinates and source coordinates are from the ''[[Geographic Names Information System]]'' (United States Geological Survey) or the [[Canadian Geographical Names Data Base]] except for the coordinates of the mouth of the Colorado River, derived by geolocating with [[Google Earth]].</ref></center>
! scope="col" width=10%|'''मुहाना<br>अक्षांश-देशांतर'''<ref name = "GNIS USGS"/>
! scope="col" width=10%|'''थाला<br>area'''<ref name="ReferenceA">From ''Rivers of North America'' (ed. Benke and Cushing) unless otherwise noted.</ref>
! scope="col" width=10%|'''बहाव'''<ref name="ReferenceA"/>
! scope="col" width= 29% class="unsortable" |'''राज्य, प्रांत, आ फोटो'''<ref name = "maps">{{cite book|title = The Road Atlas| publisher = Rand McNally & Company|year = 2008|location = Chicago, Illinois|isbn = 978-0-528-93961-7}}</ref><ref name = "GNIS USGS"/>
|--
! scope="row" |1
|[[मिसौरी नदी]]||[[मिसीसिपी नदी]]||{{nts|2341}} mi<br>3,768 km{{sfn|Benke|Cushing|2005|p=432}}||{{coord|45|55|39|N|111|30|29|W|name = Missouri River (source)}}<ref>{{cite web|title = Missouri River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:756398|date = October 24, 1980|accessdate = फरवरी 4, 2011|archive-date = August 5, 2020|archive-url = https://web.archive.org/web/20200805010233/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:756398|url-status = dead}}</ref> ||{{coord|38|48|49|N|90|07|11|W|name= Missouri River (mouth)}} ||style="background:#eeffee;"|{{nts|529353}} mi<sup>2</sup><br>1,371,017 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=469}}<br>{{double-dagger}}{{#tag:ref|Of the total, 10,700 mi<sup>2</sup> (28,000 km<sup>2</sup>), about two percent of the basin, is in Canada.<ref name = "Canada Atlas"/><ref name = "USGS map"/>|group=n}}||{{nts|69100}} ft<sup>3</sup>/s<br>1,956 m<sup>3</sup>/s<br>{{#tag:ref|Kammerer: 76,200 ft<sup>3</sup>/s (2,160 m<sup>3</sup>/s).<ref name= "USGS Kammerer"/>|group=n }} ||[[मोंटाना]]<sup>s</sup>, [[नार्थ डकोटा]], [[साउथ डकोटा]], [[नेब्रास्का]], [[आयवा]], [[कंसास]], [[मिसौरी]]<sup>m</sup>[[File:Missouri NRR.jpg|center|150px|alt=A wide river flows across a plain.]]
|--
! scope="row" |2
||[[मिसीसिपी नदी]]||[[मैक्सिको के खाड़ी]]||{{nts|2202}} mi<br>3,544 km{{sfn|Benke|Cushing|2005|pp=237, 331}}<br>{{#tag:ref|Kammerer: 2,340 mi (3,770 km).<ref name ="USGS Kammerer"/> ''The Atlas of Canada'': 2,348 mi (3,779 km).<ref name ="Canada Atlas"/>|group=n}}||{{coord|47|14|22|N|95|12|29|W|name=Mississippi River (source)}}<ref>{{cite web|title = Mississippi River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1629903|date = June 4, 1980|accessdate = फरवरी 4, 2011|archive-date = July 26, 2020|archive-url = https://web.archive.org/web/20200726031728/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1629903|url-status = dead}}</ref> ||{{coord|29|09|04|N|89|15|12|W|name=Mississippi River (mouth)}}||style="background:#eeffee;"|{{nts|1260000}} mi<sup>2</sup><br>3,270,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=272}}<br>{{double-dagger}}{{#tag:ref|Of the total, 10,700 mi<sup>2</sup> (27,800 km<sup>2</sup>), about two percent of the basin, is in Canada.<ref name = "Canada Atlas"/><ref name = "USGS map"/>|group=n}}||{{nts|650000}} ft<sup>3</sup>/s<br>18,400 m<sup>3</sup>/s ||[[मिनेसोटा]]<sup>s</sup>, [[विस्कॉन्सिन]], [[आयवा]], [[इलिनोई]], [[मिसौरी]], [[केंचुकी]], [[टेनेसी]], [[आर्कन्सा]], [[Mississippi]], [[लुइसियाना]]<sup>m</sup>[[File:Lake Itasca Mississippi Source.jpg|center|150px|alt=A small river flows from a lake.]]
|--
! scope="row"|3
||[[यूकान नदी]]||[[बेरिंग सागर]]||style="background:#fffdd0;"|{{nts|1979}} mi<br>3,185 km<ref name ="Canada Atlas"/><br>{{dagger}}{{#tag:ref|Of this total, 714 mi (1,149 km) are in Canada. This amounts to about 36 percent of the main-stem length.<ref name="Canada Atlas"/>|group=n}}||{{coord|59|35|00|N|133|47|00|W|name=Yukon River (source)}}<ref>{{cite web|title=Atlin Lake (B.C.) |publisher=Natural Resources Canada |url=http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?JCTAR?C |accessdate=February 4, 2011 |archiveurl=https://web.archive.org/web/20110706184115/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FJCTAR%3FC |archivedate=July 6, 2011 |url-status= |df= }}</ref> ||{{coord|62|35|55|N|164|48|00|W|name=Yukon River (mouth)}}<ref>{{cite web|title = Yukon River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416412|date = March 31, 1981|accessdate = फरवरी 4, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815093910/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416412|url-status = dead}}</ref>||style="background:#eeffee;"|{{nts|324000}} mi<sup>2</sup><br>839,200 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=796}}<br>{{double-dagger}}{{#tag:ref|''The Atlas of Canada'' also lists the total basin size at 324,000 mi<sup>2</sup> (839,200 km<sup>2</sup>), split between 125,000 mi<sup>2</sup> (323,800 km<sup>2</sup>), about 39 percent, in Canada and 199,000 mi<sup>2</sup> (515,400 km<sup>2</sup>), about 61 percent, in the United States.<ref name ="Canada Atlas"/>|group=n}} ||{{nts|224000}} ft<sup>3</sup>/s<br>6,340 m<sup>3</sup>/s||''[[ब्रिटिश कोलंबिया]]''<sup>s</sup>, ''[[Yukon Territory]]'', [[अलास्का]]<sup>m</sup>[[File:Dawson City Lookout Yukon River 3264px.jpg|center|150px|alt=Sunset over a large river flowing through mountains.]]
|--
! scope="row" |4
||[[रियो ग्रांडे]]||[[मैक्सिको के खाड़ी]] ||style="background:#fffdd0;"|{{nts|1759}} mi<br>2,830 km{{sfn|Benke|Cushing|2005|p=186}}<br>{{dagger}}{{#tag:ref|Kammerer: 1,900 mi (3,100 km).<ref name = "USGS Kammerer">{{cite web|last = Kammerer| first = J. C. |title = Largest Rivers in the United States|url = http://pubs.usgs.gov/of/1987/ofr87-242/|publisher = United States Geological Survey |date = September 1, 2005|accessdate = January 22, 2011}}</ref> University of Texas (UT): 1,799 mi (2,895 km).<ref name = "University of Texas">{{cite web|last = Patino|first = Carlos|author2=McKinney, Daene C. |author3=Maidment, David R. |publisher = University of Texas Center for Research in Water Resources| title =Water Management Information System for the Rio Grande/Bravo Basin |url = http://www.crwr.utexas.edu/gis/gishydro04/time/Rio_Grande-Bravo_Basin.htm| accessdate = फरवरी 19, 2011|archiveurl=https://web.archive.org/web/20150401031158/http://www.crwr.utexas.edu/gis/gishydro04/time/Rio_Grande-Bravo_Basin.htm|archivedate=April 1, 2015|url-status=dead}}</ref> The river forms the U.S.–Mexico border for 1.251 mi (2,013 km) (about 70 percent of its main-stem length) from [[El Paso, Texas|El Paso]] to the Gulf of Mexico.<ref name = "University of Texas"/>|group=n}}||{{coord|37|47|52|N|107|32|18|W|name=Rio Grande (source)}}<ref>{{cite web|title = Rio Grande|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1385432|date = March 30, 1979|accessdate = फरवरी 4, 2011|archive-date = June 16, 2020|archive-url = https://web.archive.org/web/20200616102033/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1385432|url-status = dead}}</ref> ||{{coord|25|57|22|N|97|08|43|W|name=Rio Grande (mouth)}}|| style="background:#eeffee;"|{{nts|340000}} mi<sup>2</sup><br>870,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=220}}<br>{{double-dagger}}{{#tag:ref|''Rivers of North America'' says that of this total only about 170,000 mi<sup>2</sup> (450,000 km<sup>2</sup>) of the basin contribute water to the river.{{sfn|Benke|Cushing|2005|p=220}} The University of Texas (UT) says, "The river collects rain, snowmelt and spring water from an area [of] about 215,338 mi<sup>2</sup> [557,722 km<sup>2</sup>] including closed basins."<ref name="University of Texas"/> It says that 87,020 mi<sup>2</sup> (225,380 km<sup>2</sup>) of the basin (about 48 percent), not counting [[Endorheic basin|closed basins]], are in Mexico, while 93,821 mi<sup>2</sup> (242,994 km<sup>2</sup>) (about 52 percent) are in the United States.<ref name="University of Texas"/> Kammerer cites a total basin size of 336,000 mi<sup>2</sup> (870,000 km<sup>2</sup>).<ref name = "USGS Kammerer"/>|group=n}} ||{{nts|1300}} ft<sup>3</sup>/s<br>37 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[न्यू मैक्सिको]], [[टैक्सास]]<sup>m</sup>, ''[[Chihuahua (state)|Chihuahua]]'', ''[[Coahuila]]'', ''[[Nuevo León]]'', ''[[Tamaulipas]]''<sup>m</sup>[[File:Rio Grande Creede.jpg|center|150px|alt=A small river winds through mountains under a rainbow.]]
|--
! scope="row"|5
||[[कोलोरैडो नदी]]||[[कैलिफोर्निया के खाड़ी]] ||style="background:#fffdd0;"|{{nts|1450}} mi<br>2,330 km<ref name = "USGS Kammerer"/><br>{{dagger}}{{#tag:ref|According to the Utah Division of Water Resources, 75 mi (121 km) of the river are in Mexico. This amounts to about 5 percent of the main-stem length.<ref>{{cite web|last=Anderson|first=D. Larry|title= Utah's Perspective: The Colorado River|url= http://www.water.utah.gov/interstate/thecoloradoriverart.pdf|date = May 2002|page=5|format=PDF|accessdate=February 19, 2011|archiveurl=https://web.archive.org/web/20140409152252/http://www.water.utah.gov/interstate/thecoloradoriverart.pdf|archivedate=April 9, 2014|url-status=dead}}</ref> Of this, 17 mi (27 km) form the border between Mexico and the United States.<ref name = "U.N. Programme"/>|group=n}}||{{coord|40|28|20|N|105|49|34|W|name=Colorado River (source)}}<ref>{{cite web|title = Colorado River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:45730|date = फरवरी 8, 1980|accessdate = फरवरी 4, 2011|archive-url = https://web.archive.org/web/20200625092921/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:45730|archive-date = 2020-06-25|url-status = dead}}</ref> ||{{coord|31|48|57|N|114|48|22|W|name =Colorado River (mouth)}}<ref>Derived via [[Google Earth]]</ref>||style="background:#eeffee;"|{{nts|248000}} mi<sup>2</sup><br>642,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=527}}<br>{{double-dagger}}{{#tag:ref|The [[United Nations Environment Programme]] cites a total basin size of 246,000 mi<sup>2</sup> (637,000 km<sup>2</sup>), split between 2,000 mi<sup>2</sup> (5,200 km<sup>2</sup>) (about 1 percent) in Mexico and 244,000 mi<sup>2</sup> (632,000 km<sup>2</sup>) (about 99 percent) in the United States.<ref name="U.N. Programme">{{cite web|last=Arias|first=E.|author2=Albar, M.|author3=Parra, I|author4=Reza, M|title=Regional Definition|publisher=United Nations Environment Programme|pages=20–21|url=http://staging.unep.org/dewa/giwa/areas/reports/r27/regional_definition_giwa_r27.pdf|format=PDF|accessdate=May 30, 2017|archiveurl=https://web.archive.org/web/20170531023445/http://staging.unep.org/dewa/giwa/areas/reports/r27/regional_definition_giwa_r27.pdf|archivedate=May 31, 2017|url-status=|df=}}</ref> |group=n}} ||{{nts|1400}} ft<sup>3</sup>/s<br>40 m<sup>3</sup>/s ||[[कोलोरैडो]]<sup>s</sup>, [[Utah]], [[एरिजोना]], [[Nevada]], [[कैलिफोर्निया]], ''[[सोनोरा]]''<sup>m</sup>, ''[[Baja California]]''<sup>m</sup>[[File:Colorado River edit.jpg|center|150px|alt=A large river flows through a deep canyon.]]
|--
! scope="row"|6
||[[आर्कन्सा नदी]]|| [[मिसीसिपी नदी]] ||{{nts|1443}} mi<br>2,322 km<br>{{#tag:ref|Derived by subtracting the length of the [[East Fork Arkansas River]] of roughly 16 mi (26 km)<ref>{{cite map|title = Colorado Atlas and Gazetteer|publisher = DeLorme|date = 1998|section = 47–48|isbn =978-0-89933-265-9}}</ref> from Kammerer's total of 1,459 mi (2,348 km).<ref name = "USGS Kammerer"/> |group=n}}||{{coord|39|15|30|N|106|20|38|W|name = Arkansas River (source)}}<ref>{{cite web|title = Arkansas River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:78956|date = November 30, 1979|accessdate = फरवरी 4, 2011|archive-date = July 12, 2020|archive-url = https://web.archive.org/web/20200712005314/https://geonames.usgs.gov/apex/f?p=GNISPQ:3:::NO::P3_FID:78956|url-status = dead}}</ref> ||{{coord|33|46|30|N|91|04|15|W|name=Arkansas River (mouth)}} ||{{nts|160200}} mi<sup>2</sup><br>414,910 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=315}}|| {{nts|35500}} ft<sup>3</sup>/s<br>1,004 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[कंसास]], [[Oklahoma]], [[आर्कन्सा]]<sup>m</sup>[[File:Wichitanightskyline.jpg|center|150px|alt=A large river flows through a brightly lit city at night.]]
|--
! scope="row"|7
||[[कोलंबिया नदी]]||[[प्रशांत महासागर]]||style="background:#fffdd0;"|{{nts|1243}} mi<ref name = "Canada Atlas"/><br>2,000 km<br>{{dagger}}{{#tag:ref|About 498 mi (801 km) are in Canada.<ref name ="Canada Atlas"/> This amounts to about 40 percent of the main-stem length.|group=n}} ||{{coord|50|13|00|N|115|51|00|W|name=Columbia River (source)}}<ref>{{cite web|title=Columbia Lake |publisher=Natural Resources Canada |url=http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?JATIP?C |accessdate=January 31, 2011 |url-status=dead |archiveurl=https://web.archive.org/web/20110706184119/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FJATIP%3FC |archivedate=July 6, 2011 |df= }}</ref> ||{{coord|46|14|39|N|124|03|29|W|name=Columbia River (mouth)}}<ref name = "gnis Columbia River">{{cite web | title = Columbia River | work = Geographic Names Information System | publisher = United States Geological Survey | date = November 28, 1980 | url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1140014 | accessdate = August 5, 2010 | archive-date = June 22, 2020 | archive-url = https://web.archive.org/web/20200622043440/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1140014 | url-status = dead }}</ref>||style="background:#eeffee;"|{{nts|279548}} mi<sup>2</sup><br>724,024 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=646}}<br>{{double-dagger}}{{#tag:ref|''The Atlas of Canada'' lists the total watershed at 259,200 mi<sup>2</sup> (671,300 km<sup>2</sup>), split between 39,700 mi<sup>2</sup> (102,800 km<sup>2</sup>) (about 15 percent) in Canada and 219,500 mi<sup>2</sup> (568,500 km<sup>2</sup>) (about 85 percent) in the United States.<ref name ="Canada Atlas"/> Kammerer's figure for the total watershed is 265,000 mi<sup>2</sup> (690,000 km<sup>2</sup>).<ref name = "USGS Kammerer"/>|group=n}} ||{{nts|273000}} ft<sup>3</sup>/s<br>7,730 m<sup>3</sup>/s ||''[[ब्रिटिश कोलंबिया]]''<sup>s</sup>, [[वाशिंगटन (राज्य)|वाशिंगटन]]<sup>m</sup>, [[ऑरेगन]]<sup>m</sup>[[File:ColumbiaRGorgePano.jpg|center|150px|alt=A large river flows through a wooded gorge.]]
|--
! scope="row"|8
||[[Red River of the South|Red River]]||[[Atchafalaya River|Atchafalaya]] and [[Mississippi River|Mississippi]] rivers||{{nts|1125}} mi<br>1,811 km<br>{{#tag:ref|This is the combined length, 1,360 mi (2,190 km),<ref>{{cite web|last = Kleiner | first = Diana J.|title = ''Handbook of Texas'': Red River|publisher = Texas State Historical Association|url = http://www.tshaonline.org/handbook/online/articles/rnr01|accessdate = फरवरी 18, 2011|archiveurl=https://web.archive.org/web/20151223143425/http://www.tshaonline.org/handbook/online/articles/rnr01|archivedate=December 23, 2015|url-status=}}</ref> of the main stem, [[Prairie Dog Town Fork Red River]], and [[Tierra Blanca Creek]] minus the lengths of the latter two, 160 mi (260 km)<ref>{{cite web|title = ''Handbook of Texas'': Prairie Dog Town Fork of the Red River|publisher = Texas State Historical Association|url = http://www.tshaonline.org/handbook/online/articles/rnp04| accessdate = फरवरी 18, 2011|archiveurl=https://web.archive.org/web/20160314153819/https://www.tshaonline.org/handbook/online/articles/rnp04|archivedate=March 14, 2016|url-status=live}}</ref> and 75 mi (121 km).<ref>{{cite web|title = ''Handbook of Texas'': Tierra Blanca Creek|url = http://www.tshaonline.org/handbook/online/articles/rbt49|publisher = Texas State Historical Association|accessdate = फरवरी 18, 2011}}</ref> Kammerer gives the length as 1,290 mi (2,080 km).<ref name = "USGS Kammerer"/>|group=n}}||{{coord|34|34|35|N|99|57|54|W|name=Red River (source)}}<ref>{{cite web|title = Red River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558728|date = June 4, 1980|accessdate = फरवरी 5, 2011|archive-date = August 6, 2020|archive-url = https://web.archive.org/web/20200806192756/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558728|url-status = dead}}</ref> ||{{coord|31|01|10|N|91|44|52|W|name=Red River (mouth)}}||{{nts|65590}} mi<sup>2</sup><br>169,890 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=317}}<br>{{#tag:ref|Kammerer: 93,200 mi<sup>2</sup>.<ref name= "USGS Kammerer"/>|group=n }} ||{{nts|30100}} ft<sup>3</sup>/s<br>852 m<sup>3</sup>/s<br>{{#tag:ref|Kammerer: 56,000 ft<sup>3</sup>/s (1,600 m<sup>3</sup>)<ref name= "USGS Kammerer"/>|group=n }} ||[[Oklahoma]]<sup>s</sup>, [[टैक्सास]], [[आर्कन्सा]], [[लुइसियाना]]<sup>m</sup>[[File:Meander bends and oxbow.png|center|150px|alt= Oxbow bend in a river seen from an airplane]]
|--
! scope="row"|9
||[[Snake River]]||[[Columbia River]]||{{nts|1040}} mi<br>1,674 km<ref name = "USGS Kammerer"/>||{{coord|44|07|49|N|110|13|10|W|name = Snake River (source)}}<ref name = "gnis Snake River">{{cite web|title = Snake River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1533479|date = September 10, 1979|accessdate = August 6, 2010|archive-date = April 17, 2021|archive-url = https://web.archive.org/web/20210417192558/https://geonames.usgs.gov/apex/f?p=GNISPQ:3:::NO::P3_FID:1533479|url-status = dead}}</ref> ||{{coord|46|11|10|N|119|01|43|W|name = Snake River (mouth)}}||{{nts|108000}} mi<sup>2</sup><br>281,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=643}} ||{{nts|55300}} ft<sup>3</sup>/s<br>1,565 m<sup>3</sup>/s ||[[वूमिंग]]<sup>s</sup>, [[इडाहो]], [[ऑरेगन]], [[वाशिंगटन (राज्य)|वाशिंगटन]]<sup>m</sup>[[File:Adams The Tetons and the Snake River.jpg|center|150px|alt=A river winds across a plain at the foot of jagged snow-covered mountains.]]
|--
! scope="row"|10
||[[ओहायो नदी]]||[[मिसीसिपी नदी]]||{{nts|979}} mi<br>1,575 km{{sfn|Benke|Cushing|2005|p=379}}||{{coord|40|26|34|N|80|01|02|W|name=Ohio River (source)}}<ref>{{cite web|title = Ohio River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:425264|date = October 24, 1980|accessdate = फरवरी 5, 2011|archive-date = January 28, 2021|archive-url = https://web.archive.org/web/20210128125942/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:425264|url-status = dead}}</ref> ||{{coord|36|59|12|N|89|07|50|W|name=Ohio River (mouth)}} ||{{nts|204000}} mi<sup>2</sup><br>529,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=413}}||{{nts|308400}} ft<sup>3</sup>/s<br>8,733 m<sup>3</sup>/s||[[Pennsylvania]]<sup>s</sup>, [[ओहायो]], [[West Virginia]], [[इंडियाना]], [[इलिनोई]], [[केंचुकी]]<sup>m</sup>[[File:Wheeling West Virginia.jpg|center|150px|alt=Modest skyscrapers, their images reflected in the water, line the bank of a wide placid river.]]
|--
! scope="row"|11
||[[Colorado River of Texas]]||[[मैक्सिको के खाड़ी]]||{{nts|970}} mi<br>1,560 km{{sfn|Benke|Cushing|2005|p=198}}||{{coord|32|40|47|N|101|43|51|W|name=Colorado River of Texas (source))}}<ref>{{cite web|title = Colorado River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384149|date = November 30, 1979|accessdate = फरवरी 5, 2011|archive-date = June 4, 2020|archive-url = https://web.archive.org/web/20200604131714/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384149|url-status = dead}}</ref> ||{{coord|28|35|41|N|95|58|59|W|name=Colorado River of Texas (mouth)}} ||{{nts|39900}} mi<sup>2</sup><br>103,341 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=222}}||{{nts|2600}} ft<sup>3</sup>/s<br>75 m<sup>3</sup>/s ||[[टैक्सास]]<sup>s, m</sup>[[File:Colorado River Borden County Texas 2011.jpg|center|150px|alt=A small stream flows through an arid plain populated with low shrubs. Much of the surrounding soil is red.]]
|--
! scope="row"|12
||[[टेनेसी नदी]]||[[ओहायो नदी]]||{{nts|935}} mi<br>1,504 km{{sfn|Benke|Cushing|2005|p=384}}||{{coord|35|57|33|N|83|51|01|W|name=Tennessee River (source)}}<ref>{{cite web|title = Tennessee River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517033|date = सितंबर 20, 1979|accessdate = फरवरी 5, 2011|archive-date = 2020-11-21|archive-url = https://web.archive.org/web/20201121054655/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517033|url-status = dead}}</ref> ||{{coord|37|04|02|N|88|33|53|W|name=Tennessee River (mouth)}} ||{{nts|40880}} mi<sup>2</sup><br>105,870 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=414}}||{{nts|71000}} ft<sup>3</sup>/s<br>2,000 m<sup>3</sup>/s||[[टेनेसी]]<sup>s</sup>, [[Alabama]], [[केंचुकी]]<sup>m</sup>[[File:North shore one view.jpg|center|150px|alt=A wide river curves through an urban landscape replete with bridges, tall buildings, and wooded areas near the water.]]
|--
! scope="row"|13
||[[Canadian River]]||[[आर्कन्सा नदी]]||{{nts|906}} mi<br>1,458 km<ref name = "USGS Kammerer"/>||{{coord|37|01|11|N|105|04|33|W|name = Canadian River (source)}}<ref>{{cite web|title = Canadian River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1101881|date = December 18, 1979|accessdate = फरवरी 5, 2011|archive-date = February 26, 2020|archive-url = https://web.archive.org/web/20200226011917/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1101881|url-status = dead}}</ref> ||{{coord|35|27|12|N|95|01|58|W|name=Canadian River (mouth)}} ||{{nts|47130}} mi<sup>2</sup><br>122,070 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=316}} ||{{nts|6100}} ft<sup>3</sup>/s<br>174 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[न्यू मैक्सिको]], [[टैक्सास]], [[Oklahoma]]<sup>m</sup>[[File:Canadian River Railroad Bridge Logan New Mexico 2010.jpg|center|150px|alt=A small stream in arid country flows under a railroad bridge high above the water.]]
|--
! scope="row"|14
||[[Brazos River]]||[[मैक्सिको के खाड़ी]] ||{{nts|860}} mi<br>1,390 km{{sfn|Benke|Cushing|2005|p=203}}||{{coord|33|16|07|N|100|00|37|W|name=Brazos River (source)}}<ref>{{cite web|title = Brazos River|work = Geographic Names Information System (GNIS)|publisher = United States Geological Survey|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384148|date = November 30, 1979|accessdate = फरवरी 5, 2011|archive-date = September 2, 2018|archive-url = https://web.archive.org/web/20180902002828/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384148|url-status = dead}}</ref> ||{{coord|28|52|33|N|95|22|42|W|name=Brazos River (mouth)}} ||{{nts|44620}} mi<sup>2</sup><br>115,566 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=223}}|| {{nts|8800}} ft<sup>3</sup>/s<br>249 m<sup>3</sup>/s||[[टैक्सास]]<sup>s, m</sup>[[File:Brazos River railroad bridge Waco TX.jpg|center|150px|alt=A train crosses a bridge over a wide river.]]
|--
! scope="row"|15
||[[Green River (Colorado River)|Green River]]||[[Colorado River]]||{{nts|760}} mi<br>1,230 km{{sfn|Benke|Cushing|2005|p=497}}||{{coord|43|09|13|N|109|40|18|W|name=Green River (source)}}<ref>{{cite web|title = Green River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1428399|publisher = United States Geological Survey (USGS)|date = December 31, 1979|accessdate = फरवरी 5, 2011|archive-date = June 21, 2020|archive-url = https://web.archive.org/web/20200621200752/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1428399|url-status = dead}}</ref> ||{{coord|38|11|21|N|109|53|07|W|name=Green River (mouth)}}||{{nts|44900}} mi<sup>2</sup><br>116,200 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=528}}|| {{nts|6100}} ft<sup>3</sup>/s<br>172 m<sup>3</sup>/s||[[वूमिंग]]<sup>s</sup>, [[कोलोरैडो]], [[Utah]]<sup>m</sup>[[File:Green river utah from sky.jpg|center|upright|100x150px|alt=View from an airplane: A river meanders this way and that through a reddish-brown landscape.]]
|--
! scope="row"|16
||[[Pecos River]]||[[Rio Grande]]||{{nts|730}} mi<br>1,175 km{{sfn|Benke|Cushing|2005|p=213}}||{{coord|35|58|34|N|105|33|29|W|name=Pecos River (source)}}<ref>{{cite web|title = Pecos River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384150|publisher = United States Geological Survey (USGS)|date = November 30, 1979|accessdate = फरवरी 5, 2011|archive-date = April 23, 2021|archive-url = https://web.archive.org/web/20210423140652/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1384150|url-status = dead}}</ref> ||{{coord|29|41|59|N|101|22|17|W|name=Pecos River (mouth)}} || {{nts|44000}} mi<sup>2</sup><br>113,960 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=225}}||{{nts|71}} ft<sup>3</sup>/s<br>2 m<sup>3</sup>/s ||[[न्यू मैक्सिको]]<sup>s</sup>, [[टैक्सास]]<sup>m</sup>[[File:Pecos River.jpg|center|150px|alt=A large river flows through a canyon.]]
|--
! scope="row"|17
||[[White River (Arkansas)]]||[[Mississippi River]]||{{nts|720}} mi<br>1,159 km{{sfn|Benke|Cushing|2005|p=246}}||{{coord|35|50|20|N|93|36|16|W|name=White River (source)}}<ref>{{cite web|title = White River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:78762|publisher = United States Geological Survey (USGS)|date = April 30, 1980|accessdate = फरवरी 5, 2011|archive-date = January 13, 2021|archive-url = https://web.archive.org/web/20210113104326/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:78762|url-status = dead}}</ref> ||{{coord|33|57|05|N|91|04|53|W|name = White River (mouth)}} ||{{nts|27872}} mi<sup>2</sup><br>72,189 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=273}}||{{nts|34600}} ft<sup>3</sup>/s<br>979 m<sup>3</sup>/s || [[आर्कन्सा]]<sup>s, m</sup>, [[मिसौरी]][[File:White River Arkansas-1.jpg|center|150px|alt=A wide placid river flows by a low wooded hill.]]
|--
! scope="row"|18
||[[James River (Dakotas)|James River]]<br>{{#tag:ref|Also known as the Dakota River or Jim River and not to be confused with the [[James River]] of Virginia.|group=n}}||[[मिसौरी नदी]]||{{nts|710}} mi<br>1,140 km<ref name = "American Rivers">{{cite web|title = River Facts|publisher = American Rivers|url=http://www.americanrivers.org/library/river-facts/river-facts.html|accessdate = फरवरी 22, 2011|archiveurl=https://web.archive.org/web/20120310033450/http://www.americanrivers.org/library/river-facts/river-facts.html|archivedate=March 10, 2012|url-status=}}</ref>||{{coord|47|28|53|N|99|51|32|W|name=James River (source)}}<ref>{{cite web|title = James River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1261082|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = फरवरी 22, 2011|archive-date = 2020-05-26|archive-url = https://web.archive.org/web/20200526155253/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1261082|url-status = dead}}</ref> ||{{coord|42|52|17|N|97|17|26|W|name = James River (mouth)}} ||{{nts|20942}} mi<sup>2</sup><br>54,240 km<sup>2</sup><ref name="USGS James (Dakota)">{{cite web|title = USGS 06478513 James River near Yankton, SD|url =https://waterdata.usgs.gov/nwis/inventory/?site_no=06478513&agency_cd=USGS|publisher = United States Geological Survey|date = November 2010|accessdate=February 23, 2011}}</ref> ||{{nts|854}} ft<sup>3</sup>/s<br>24.2 m<sup>3</sup>/s<ref name="USGS James (Dakota)"/><br>{{#tag:ref|This is the average discharge for the years 1982–94, derived by adding the discharge for each of these years and dividing by 13.|group=n}} ||[[नार्थ डकोटा]]<sup>s</sup>, [[साउथ डकोटा]]<sup>m</sup>[[File:James River in Jamestown, N.D.jpg|center|150px|alt=A small stream winds through a town.]]
|--
! scope="row"|19
||[[Kuskokwim River]]||[[बेरिंग सागर]]||{{nts|702}} mi<br>1,130 km{{sfn|Benke|Cushing|2005|p=741}}||{{coord|63|05|16|N|154|38|33|W|name=Kuskokwim River (source)}}<ref>{{cite web|title = Kuskokwim River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416402|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 5, 2011|archive-date = September 2, 2018|archive-url = https://web.archive.org/web/20180902173018/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416402|url-status = dead}}</ref> ||{{coord|60|04|59|N|162|20|02|W|name=Kuskokwim River (mouth)}} ||{{nts|48000}} mi<sup>2</sup><br>124,319 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=764}}||{{nts|67000}} ft<sup>3</sup>s<br>1,900 m<sup>3</sup>/s||[[अलास्का]]<sup>s, m</sup>[[File:Aniakshore.jpg|center|150px|alt=Men and boats along the shore of a very wide river.]]
|--
! scope="row"|20
||[[Cimarron River (Arkansas River)|Cimarron River]]||[[आर्कन्सा नदी]]||{{nts|698}} mi<br>1,123 km<ref>{{cite web|title = Cimarron River|publisher = Oklahoma Historical Society|url = http://digital.library.okstate.edu/encyclopedia/entries/C/CI004.html|accessdate = फरवरी 5, 2011|archiveurl=https://web.archive.org/web/20141227051709/http://digital.library.okstate.edu/encyclopedia/entries/C/CI004.html|archivedate=December 27, 2014|url-status=}}</ref>||{{coord|36|54|24|N|102|59|12|W|name="Cimarron River (source)}}<ref>{{cite web|title = Cimarron River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1091369|publisher = United States Geological Survey (USGS)|date = December 18, 1979|accessdate = फरवरी 5, 2011|archive-date = April 11, 2021|archive-url = https://web.archive.org/web/20210411043015/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1091369|url-status = dead}}</ref>||{{coord|36|10|14|N|96|16|19|W|name=Cimarron River (mouth)}}||{{nts|19510}} mi<sup>2</sup><br>50,540 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=319}}||{{nts|1500}} ft<sup>3</sup>/s<br>42 m<sup>3</sup>/s ||[[Oklahoma]]<sup>s, m</sup>, [[कोलोरैडो]], [[कंसास]] [[File:Cimarron river near forgan ok.jpg|center|150px|alt=A medium-sized river winds through a flat plain dominated by brown grasses.]]
|--
! scope="row"|21
||[[Cumberland River]]||[[ओहायो नदी]]||{{nts|696}} mi<br>1,120 km{{sfn|Benke|Cushing|2005|p=390}}||{{coord|36|50|42|N|83|19|26|W|name=Cumberland River (source)}}<ref>{{cite web|title = Cumberland River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517018|publisher = United States Geological Survey (USGS)|date = सितंबर 20, 1979|accessdate = फरवरी 5, 2011|archive-date = 2018-09-02|archive-url = https://web.archive.org/web/20180902064322/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:517018|url-status = dead}}</ref> ||{{coord|37|08|36|N|88|24|27|W|name=Cumberland River (mouth)}} ||{{nts|17930}} mi<sup>2</sup><br>46,430 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=415}}||{{nts|30400}} ft<sup>3</sup>/s
862 m<sup>3</sup>/s
|[[केंचुकी]]<sup>s, m</sup>, [[टेनेसी]] [[File:Cumberland River 2005 05 20.jpeg|center|150px|alt=Several canoes pass under a bridge over a wide river in a forest.]]
|--
! scope="row"|22
||[[Yellowstone River]]||[[मिसौरी नदी]]||{{nts|678}} mi<br>1,091 km{{sfn|Benke|Cushing|2005|p=440}}||{{coord|43|59|18|N|109|55|45|W|name = Yellowstone River (source)}}<ref>{{cite web|title = Yellowstone River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035255|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = January 20, 2011|archive-date = June 29, 2019|archive-url = https://web.archive.org/web/20190629204543/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035255|url-status = dead}}</ref> ||{{coord|47|58|42|N|103|58|56|W|name = Yellowstone River (mouth)}} ||{{nts|70400}} mi<sup>2</sup><br>182,336 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=470}}||{{nts|12800}} ft<sup>3</sup>/s<br>362 m<sup>3</sup>/s||[[वूमिंग]]<sup>s</sup>, [[मोंटाना]], [[नार्थ डकोटा]]<sup>m</sup>[[File:Lower yellowstone falls in ice.jpg|center|upright|100x150px|alt=Large waterfall encased in ice]]
|--
! scope="row"|23
||[[North Platte River]]||[[Platte River]]||{{nts|665}} mi<br>1,070 km{{sfn|Benke|Cushing|2005|p=451}}||{{coord|40|38|23|N|106|24|19|W|name=North Platte River (source)}}<ref>{{cite web|title = North Platte River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:204647|publisher = United States Geological Survey (USGS)|date = October 13, 1978|accessdate = फरवरी 6, 2011|archive-date = April 11, 2021|archive-url = https://web.archive.org/web/20210411050702/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:204647|url-status = dead}}</ref> ||{{coord|41|06|50|N|100|40|33|W|name=North Platte River (mouth)}} ||{{nts|34885}} mi<sup>2</sup><br>90,352 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=451}}||{{nts|770}} ft<sup>3</sup>/s<br>21.9 m<sup>3</sup>/s||[[कोलोरैडो]]<sup>s</sup>, [[वूमिंग]], [[नेब्रास्का]]<sup>m</sup>[[File:North Platte River Northgate Canyon Canoers.jpg|center|150px|alt=Canoers run rapids on a boulder-strewn river in the mountains.]]
|--
! scope="row"|24
||[[Milk River (Alberta–Montana)|Milk River]]||[[मिसौरी नदी]]||style="background:#fffdd0;"|{{nts|625}} mi<br>1,005 km<ref name="Canada Atlas"/>{{dagger}}{{#tag:ref|According to ''The Canadian Encyclopedia'', a 110-mi (170 km) stretch of the river flows through Canada. This amounts to about 18 percent of the main-stem length.<ref>{{cite web|last=Marsh|first=James H.|title=Milk River|url=http://www.thecanadianencyclopedia.ca/en/article/milk-river/|publisher=Historica Canada|date=March 4, 2015|accessdate=May 19, 2017}}{{Dead link|date=April 2026 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>|group=n}}||{{coord|48|51|20|N|113|01|10|W|name=Milk River (source)}}<ref>{{cite web|title = Milk River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:774213|publisher = United States Geological Survey (USGS)|date = April 4, 1980|accessdate = फरवरी 5, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815063856/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:774213|url-status = dead}}</ref> ||{{coord|48|03|26|N|106|19|07|W|name=Milk River (mouth)}} ||style="background:#eeffee;"|{{nts|22332}} mi<sup>2</sup><br>57,839 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=475}}<br>{{double-dagger}}{{#tag:ref|''The Atlas of Canada'': 23,600 mi<sup>2</sup> (61,200 km<sup>2</sup>) split between 8,300 mi<sup>2</sup> (21,600 km<sup>2</sup>) (about 35 percent) in Canada and 15,300 mi<sup>2</sup> (39,600 km<sup>2</sup>) (about 65 percent) in the United States.<ref name ="Canada Atlas"/>|group=n}}||{{nts|670}} ft<sup>3</sup>/s<br>18.9 m<sup>3</sup>/s ||''[[अल्बर्टा]]'', [[मोंटाना]]<sup>s, m</sup>[[File:Milkriverpan.jpg|center|150px|alt=A small river winds through a rocky, grass-covered plateau. Hills rise in the distance.]]
|--
! scope="row"|25
||[[Ouachita River]]||[[Black River (Louisiana)|Black River]]||{{nts|605}} mi<br>974 km<ref>Benke and Cushing, p. 265</ref>||{{coord|31|41|56|N|94|19|57|W|name=Ouachita River (source)}}<ref>{{cite web|title = Ouachita River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558280|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 6, 2011|archive-date = May 29, 2018|archive-url = https://web.archive.org/web/20180529172840/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:558280|url-status = dead}}</ref> ||{{coord|31|37|53|N|91|48|25|W|name=Ouachita River (mouth)}} ||{{nts|24886}} mi<sup>2</sup><br>64,454 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=279}}||{{nts|29800}} ft<sup>3</sup>/s<br>843 m<sup>3</sup>/s ||[[आर्कन्सा]]<sup>s</sup>, [[लुइसियाना]]<sup>m</sup>[[File:USACE Columbia Lock Ouachita River.jpg|center|150px|alt=A lock and dam on a medium-sized river]]
|--
! scope="row"|26
||[[Saint Lawrence River]]||[[Gulf of Saint Lawrence]]||style="background:#fffdd0;"|{{nts|600}} mi<br>965 km{{sfn|Benke|Cushing|2005|p=987}}<br>{{dagger}}{{#tag:ref|According to the [[U.S. Army Corps of Engineers]], a 115-mi (185 km) stretch of the river forms part of the U.S.–Canada border. This amounts to about 19 percent of the main-stem length.<ref>{{cite web|title = St. Lawrence River (International Section)|publisher = U.S. Army Corps of Engineers, Detroit District|url = http://www.lre.usace.army.mil/greatlakes/hh/outflows/discharge_measurements/st._lawrence_river/|accessdate = February 19, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815090955/https://www.lre.usace.army.mil/Missions/Great-Lakes-Information/Outflows/st._lawrence_river/|url-status = dead}}</ref>|group=n}}||{{coord|44|05|55|N|76|23|28|W|name=St. Lawrence River (source)}}<ref>{{cite web|title = St. Lawrence River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:977244|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 3, 2011|archive-date = September 25, 2017|archive-url = https://web.archive.org/web/20170925135043/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:977244|url-status = dead}}</ref>||{{coord|49|40|00|N|64|30|00|W|name=Saint Lawrence River (mouth)}}<ref>{{cite web|title = Saint Lawrence River|publisher = Natural Resources Canada|url = http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?EFGFK?C|accessdate = फरवरी 3, 2011|archiveurl = https://web.archive.org/web/20110706184123/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FEFGFK%3FC|archivedate = July 6, 2011|dead-url = yes|df = }}</ref> ||style="background:#eeffee;"|{{nts|620000}} mi<sup>2</sup><br>1,600,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=983}}<br>{{double-dagger}}{{#tag:ref|Kammerer: 396,000 mi<sup>2</sup> (1,030,000 km<sup>2</sup>).<ref name = "USGS Kammerer"/> ''The Atlas of Canada'': 519,000 mi<sup>2</sup> (1,344,200 km<sup>2</sup>), of which 324,000 mi<sup>2</sup> (839,200 km<sup>2</sup>) (about 62 percent) is in Canada and 195,000 mi<sup>2</sup> (505,000 km<sup>2</sup>) (about 38 percent) is in the United States.<ref name = "Canada Atlas"/>|group=n }}|| {{nts|440000}} ft<sup>3</sup>/s<br>12,600 m<sup>3</sup>/s<br>{{#tag:ref|Kammerer: 348,000 ft<sup>3</sup>/s (9,900 m<sup>3</sup>/s).<ref name = "USGS Kammerer"/>|group=n }} ||[[न्यूयार्क (राज्य)|न्यूयार्क]]<sup>s</sup>, ''[[ओंटारियो]]''<sup>s</sup>, ''[[क्यूबेक]]''<sup>m</sup>[[File:Saint Lawrence seaway.jpg|center|150px|alt=A large ship travels along a large river bordered by vegetation on one bank and urban development on the other.]]
|--
! scope="row"|27
||[[Gila River]]||[[Colorado River]]||{{nts|600}} mi<br>960 km{{sfn|Benke|Cushing|2005|p=511}}||{{coord|33|10|47|N|108|12|22|W|name=Gila River (source)}}<ref>{{cite web|title = Gila River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:42838|publisher = United States Geological Survey (USGS)|date = फरवरी 8, 1980|accessdate = फरवरी 6, 2011|archive-date = 2018-05-29|archive-url = https://web.archive.org/web/20180529162818/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:42838|url-status = dead}}</ref> ||{{coord|32|43|11|N|114|33|19|W|name=Gila River (mouth)}} ||style="background:#eeffee;"|{{nts|57850}} mi<sup>2</sup><br>149,832 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=531}}<br>{{double-dagger}}{{#tag:ref|Of this total, 232 mi<sup>2</sup> (600 km<sup>2</sup>) (about 0.4 percent) are in the Mexican state of [[सोनोरा]], and the rest is in the United States.<ref name= "Wind Spirit"/>|group=n}}||{{nts|210}} ft<sup>3</sup>/s<br>6 m<sup>3</sup>/s<br>{{#tag:ref|''Rivers of North America'' describes the discharge as ''less than'' 210 ft<sup>3</sup>/s (6 m<sup>3</sup>/s.|group = n}} ||[[न्यू मैक्सिको]]<sup>s</sup>, [[एरिजोना]]<sup>m</sup>[[File:GilaRiverAtUS95.jpg|center|150px|alt=A shallow river with a sandy bed flows through an arid landscape.]]
|--
! scope="row"|28
||[[Sheyenne River]]||[[Red River of the North]]||{{nts|591}} mi<br>951 km<ref name="NHD">{{cite web|title=National Hydrography Dataset|publisher=United States Geological Survey|url=http://nhd.usgs.gov/index.html|accessdate=June 9, 2011|archive-date=December 13, 2011|archive-url=https://web.archive.org/web/20111213040729/http://nhd.usgs.gov/index.html|url-status=dead}}</ref>||{{coord|47|41|46|N|100|29|52|W|name=Sheyenne River (source)}}<ref>{{cite web|title = Sheyenne River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035146|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = June 9, 2011|archive-date = June 14, 2021|archive-url = https://web.archive.org/web/20210614202854/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035146|url-status = dead}}</ref> ||{{coord|47|01|25|N|96|49|31|W|name=Sheyenne River (mouth)}}||{{nts|8800}} mi<sup>2</sup><br>23,000 km<sup>2</sup><br>{{#tag:ref|This is the size of the basin upstream of a [[stream gauge]] near [[Kindred, North Dakota|Kindred]] and at [[river mile]] 67.9 (river kilometer 109.3).<ref name="Kindred gauge">{{cite web | publisher = United States Geological Survey | url = http://wdr.water.usgs.gov/wy2010/pdfs/05059000.2010.pdf | format = PDF | title = Water-Data Report 2010: 05059000 Sheyenne River near Kindred, ND | accessdate = June 9, 2011 | archive-date = October 28, 2011 | archive-url = https://web.archive.org/web/20111028133452/https://wdr.water.usgs.gov/wy2010/pdfs/05059000.2010.pdf | url-status = dead }}</ref>|group=n}}||{{nts|288}} ft<sup>3</sup>/s<br>8.2 m<sup>3</sup>/s<br>{{#tag:ref|This is the average flow measured by a [[stream gauge]] near [[Kindred, North Dakota|Kindred]] and at [[river mile]] 67.9 (river kilometer 109.3).<ref name="Kindred gauge"/>|group=n}} ||[[नार्थ डकोटा]]<sup>s, m</sup>[[File:Baldhill Dam Sheyenne River.jpg|center|150px|alt= A small river rushes away from the base of a dam.]]
|--
! scope="row"|29
||[[Tanana River]]||[[Yukon River]]||{{nts|584}} mi<br>940 km<br>{{#tag:ref|The main-stem length is calculated by subtracting the length of the [[Nabesna River]] from Kammerer's total of 659 mi (1,061 km).<ref name = "USGS Kammerer"/> The Nabesna River is roughly 75 mi (121 km) long, calculated by adding the 60 mi (97 km) from the Nabesna mouth to Camp Creek<ref>{{cite web|last=Irwin |first = Thomas|title = Recordable Disclaimer of Interest Application for the Nabesna River|publisher= U.S. Bureau of Land Management|date = October 3, 2005|format = PDF|url = http://www.blm.gov/pgdata/etc/medialib/blm/ak/aktest/rdi/nebesna_riv.Par.92404.File.dat/nabesna_river_app.pdf|accessdate=February 19, 2011|archiveurl=https://web.archive.org/web/20121019052252/http://www.blm.gov/pgdata/etc/medialib/blm/ak/aktest/rdi/nebesna_riv.Par.92404.File.dat/nabesna_river_app.pdf|archivedate=October 19, 2012|url-status=}}</ref> to the distance, 15 mi (24 km), from Camp Creek to Nabesna Glacier,<ref>{{cite map|title= Alaska Atlas and Gazetteer|publisher = DeLorme|edition = 7th|year = 2010|page = 98|isbn=0-89933-289-7}}</ref> Kammerer's most remote source for the Tanana.|group=n}}||{{coord|63|02|57|N|141|51|52|W|name = Tanana River (source)}}<ref>{{cite web|title = Tanana River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416408|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = फरवरी 2, 2011|archive-date = April 25, 2021|archive-url = https://web.archive.org/web/20210425015103/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1416408|url-status = dead}}</ref>||{{coord|65|09|38|N|151|57|37|W|name=Tanana River (mouth)}}||{{nts|44000}} mi<sup>2</sup><br>114,000 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=797}}||{{nts|41800}} ft<sup>3</sup>/s<br>1,185 m<sup>3</sup>/s ||[[अलास्का]]<sup>s, m</sup>[[File:Tanana River 2.jpg|center|150px|alt=A shallow braided river flows over a plain partly covered by green plants and grasses. Jagged snow-covered mountains rise in the distance.]]
|--
! scope="row"|30
||[[Smoky Hill River]]||[[Kansas River]]||{{nts|576}} mi<br>927 km<ref name="NHD"/>||{{coord|38|57|01|N|102|34|49|W|name=Smoky Hill River (source)}}<ref>{{cite web|title = Smoky Hill River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:485314|publisher = United States Geological Survey (USGS)|date = October 13, 1978|accessdate = June 14, 2011|archive-date = May 29, 2018|archive-url = https://web.archive.org/web/20180529151248/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:485314|url-status = dead}}</ref> ||{{coord|39|03|36|N|96|48|04|W|name=Smoky Hill (mouth)}} ||{{nts|19260}} mi<sup>2</sup><br>49,900 km<sup>2</sup><br>{{#tag:ref|Reflects only that part of the basin above a [[stream gauge]] at [[river mile]] 43.3 (river kilometer 69.7) near [[Enterprise, Kansas|Enterprise]].<ref name="Enterprise gauge">{{cite web|title=Water-Data Report 2010: 06877600 Smoky Hill River at Enterprise, KS|url=http://wdr.water.usgs.gov/wy2010/pdfs/06877600.2010.pdf|publisher=United States Geological Survey|format=PDF|accessdate=June 14, 2011|archive-url=https://web.archive.org/web/20111029010521/http://wdr.water.usgs.gov/wy2010/pdfs/06877600.2010.pdf|archive-date=October 29, 2011|url-status=dead}}</ref> |group=n}} ||{{nts|1542}} ft<sup>3</sup>/s<br>43.7 m<sup>3</sup>/s<br>{{#tag:ref|Measured by a [[stream gauge]] at [[river mile]] 43.3 (river kilometer 69.7) near [[Enterprise, Kansas|Enterprise]].<ref name="Enterprise gauge"/>|group=n}} ||[[कोलोरैडो]]<sup>s</sup>, [[कंसास]]<sup>m</sup>[[File:Smoky Hill River-0508.jpg|center|150px|alt=A small, muddy river, as seen from a bridge, meanders between tree-lined banks.]]
|--
! scope="row"|31
||[[Niobrara River]]||[[मिसौरी नदी]]||{{nts|568}} mi<br>914 km<ref name="NHD"/> ||{{coord|42|49|15|N|104|38|50|W|name=Niobrara River (source)}}<ref>{{cite web|title = Niobrara River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:835960|publisher = United States Geological Survey (USGS)|date = March 9, 1979|accessdate = July 5, 2011|archive-date = May 25, 2021|archive-url = https://web.archive.org/web/20210525225830/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:835960|url-status = dead}}</ref>||{{coord|42|45|58|N|98|02|50|W|name=Niobrara River (mouth)}}||{{nts|12600}} mi<sup>2</sup><br>32,600 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=478}}||{{nts|1700}} ft<sup>3</sup>/s<br>49 m<sup>3</sup>/s ||[[वूमिंग]]<sup>s</sup>, [[नेब्रास्का]]<sup>m</sup><br>[[File:Niobrara headwaters.JPG|center|150px|A small river flows through a field of grass and yellow flowers.]]
|--
! scope="row"|32
||[[Little Missouri River (North Dakota)|Little Missouri River]]||[[मिसौरी नदी]]||{{nts|560}} mi<br>900 km<ref>{{cite journal|last=Personius|first = Robert Giles|author2=Eddy, Samuel |title = Fishes of the Little Missouri River|url=https://archive.org/details/sim_copeia_1955-02-18_1/page/41|journal = Copeia| publisher = American Society of Ichthyologists and Herpetologists|volume=1955|date=February 18, 1955|issue=1| page = 41|doi=10.2307/1439450}}</ref>||{{coord|44|32|25|N|104|59|57|W|name="Little Missouri River (source)}}<ref name = "gnis Little Missouri River">{{cite web|title = Little Missouri River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1034981|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = फरवरी 23, 2011|archive-date = 2018-09-01|archive-url = https://web.archive.org/web/20180901222656/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1034981|url-status = dead}}</ref> || {{coord|47|36|38|N|102|52|24|W|name=Little Missouri River (mouth)}} ||{{nts|8310}} mi<sup>2</sup><br>21,500 km<sup>2</sup><ref name = "USGS Little Missouri">{{cite web|title = USGS 06337000 Little Missouri River near Watford City, ND|url = https://waterdata.usgs.gov/nwis/nwisman/?site_no=06337000&agency_cd=USGS|date = November 2010|accessdate = February 23, 2011|archive-date = July 21, 2020|archive-url = https://web.archive.org/web/20200721130237/https://waterdata.usgs.gov/nwis/inventory/?site_no=06337000&agency_cd=USGS|url-status = dead}}</ref><br>{{#tag:ref|This is only a close approximation of the entire basin. It does not include a small fraction of the basin below the river gauge, located about 25 mi (40 km) upstream of the river mouth.|group=n}}||{{nts|450}} ft<sup>3</sup>/s<br>13 m<sup>3</sup>/s<ref name = "USGS Little Missouri"/><br>{{#tag:ref|This is the average discharge for the years 1990–2010, derived by adding the discharge for each of these years and dividing by 21.|group=n}} ||[[वूमिंग]]<sup>s</sup>, [[मोंटाना]], [[साउथ डकोटा]], [[नार्थ डकोटा]]<sup>m</sup>[[File:Little Missouri River North Unit TR National Park.jpg|center|150px|alt=A small river meanders through a landscape of forests, bluffs, and rocky outcrops.]]
|--
! scope="row"|33
||[[Sabine River (Texas–Louisiana)|Sabine River]]||[[मैक्सिको के खाड़ी]]||{{nts|553}} mi<br>890 km{{sfn|Benke|Cushing|2005|p=208}}||{{coord|32|48|29|N|95|55|14|W|name=Sabine River (source)}}<ref>{{cite web|title = Sabine River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:555872|publisher = United States Geological Survey (USGS)|date = June 4, 1980|accessdate = फरवरी 7, 2011|archive-date = August 18, 2020|archive-url = https://web.archive.org/web/20200818225023/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:555872|url-status = dead}}</ref> ||{{coord|29|59|08|N|93|47|26|W|name=Sabine River (mouth)}} ||{{nts|9756}} mi<sup>2</sup><br>25,268 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=224}}||{{nts|8400}} ft<sup>3</sup>/s<br>238 m<sup>3</sup>/s ||[[टैक्सास]]<sup>s</sup>, [[लुइसियाना]]<sup>m</sup>[[File:Sabine River at Logansport, LA IMG 0950.JPG|center|150px|alt=A wide river flows under a highway bridge.]]
|--
! scope="row"|34
||[[Red River of the North]]||[[Lake Winnipeg]]||style="background:#fffdd0;"|{{nts|550}} mi<br>890 km<ref>{{cite web|title = Red River of the North|url = http://www.dnr.state.mn.us/watertrails/redriver/index.html| publisher = Minnesota Department of Natural Resources| year = 2011| accessdate = January 22, 2011}}</ref><br>{{dagger}}{{#tag:ref|According to the [[Minnesota Department of Natural Resources]], 394 mi (634 km) are in the United States. This amounts to about 72 percent of the main-stem length.<ref>{{cite web|title=Red River of the North: A Water Trail Guide|url=http://files.dnr.state.mn.us/maps/canoe_routes/red_river_3.pdf|publisher=Minnesota Department of Natural Resources|format=PDF|year=2010|accessdate=February 19, 2011|archive-date=August 5, 2019|archive-url=https://web.archive.org/web/20190805133300/http://files.dnr.state.mn.us/maps/canoe_routes/red_river_3.pdf|url-status=dead}}</ref>|group=n}}||{{coord|46|15|52|N|96|35|55|W|name = Red River of the North (source)}}<ref name = "gnis Red River">{{cite web|title = Red River of the North|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035890|publisher = United States Geological Survey (USGS)|date = January 1, 2000|accessdate = January 17, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815092405/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1035890|url-status = dead}}</ref>||{{coord|50|23|47|N|96|48|39|W|name = Red River (mouth)}}<ref>{{cite web|title = Red River|publisher = Natural Resources Canada|url = http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?GAWTC?C|accessdate = January 17, 2011|archiveurl = https://web.archive.org/web/20110706184128/http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english%3FGAWTC%3FC|archivedate = July 6, 2011|dead-url = yes|df = }}</ref>||style="background:#eeffee;"|{{nts|111000}} mi<sup>2</sup><br>287,500 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=896}}<br>{{double-dagger}}{{#tag:ref|Of the total basin, 53,500 mi<sup>2</sup> (138,600 km<sup>2</sup>) (about 48 percent) are in Canada and 57,500 mi<sup>2</sup> (148,900 km<sup>2</sup>) (about 52 percent) are in the United States.<ref name = "Canada Atlas"/> |group=n}}||{{nts|8300}} ft<sup>3</sup>/s<br>236 m<sup>3</sup>/s||[[नार्थ डकोटा]]<sup>s</sup>, [[मिनेसोटा]]<sup>s</sup>, ''[[मैनीटोबा]]''<sup>m</sup>[[File:Red River of the North.jpg|center|150px|alt=A small river flows through a prairie landscape; brown grasses and leafless trees line the banks.]]
|--
! scope="row"|35
||[[Des Moines River]]||[[Mississippi River]] ||{{nts|525}} mi<br>845 km<ref>{{cite web|title = National Recreation Trails: Des Moines River Water Trail - Polk County, Iowa|url = http://www.americantrails.org/nationalrecreationtrails/trailNRT/Des-Moines-River-Water-Trail-IA.html|publisher = American Trails|accessdate = फरवरी 5, 2011|archive-date = 2014-04-07|archive-url = https://web.archive.org/web/20140407065406/http://www.americantrails.org/nationalrecreationtrails/trailNRT/Des-Moines-River-Water-Trail-IA.html|url-status = dead}}</ref>||{{coord|44|05|02|N|95|41|17|W|name = Des Moines (source)}}<ref>{{cite web|title = Des Moines River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:465582|publisher = United States Geological Survey (USGS)|date = April 30, 1979|accessdate = फरवरी 7, 2011|archive-date = August 15, 2018|archive-url = https://web.archive.org/web/20180815070905/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:465582|url-status = dead}}</ref> ||{{coord|41|22|52|N|91|25|21|W|name=Des Moines River (mouth)}} ||{{nts|12018}} mi<sup>2</sup><br>31,127 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=372}}||{{nts|6400}} ft<sup>3</sup>/s<br>182 m<sup>3</sup>/s ||[[मिनेसोटा]]<sup>s</sup>, [[मिसौरी]], [[आयवा]]<sup>m</sup>[[File:Des Moines River.jpg|center|150px|alt=A placid river flows through a prairie landscape.]]
|--
! scope="row"|36
||[[White River (Missouri River)]]||[[मिसौरी नदी]]||{{nts|506}} mi<br>815 km{{sfn|Benke|Cushing|2005|p=445}}||{{coord|42|41|10|N|103|50|14|W|name=White River (source)}}<ref>{{cite web|title = White River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1267248|publisher = United States Geological Survey (USGS)|date = फरवरी 13, 1980|accessdate = फरवरी 7, 2011|archive-date = 2018-09-01|archive-url = https://web.archive.org/web/20180901221151/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1267248|url-status = dead}}</ref> || {{coord|43|42|50|N|99|28|01|W|name=White River (mouth)}} ||{{nts|10200}} mi<sup>2</sup><br>26,418 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=471}}||{{nts|570}} ft<sup>3</sup>/s<br>16 m<sup>3</sup>/s||[[नेब्रास्का]]<sup>s</sup>, [[साउथ डकोटा]]<sup>m</sup>[[File:White River at US20 DS.JPG|center|150px|alt=A small stream flows through grasses and shrubs at the base of a rocky hill.]]
|--
! scope="row"|37
||[[Trinity River (Texas)|Trinity River]]||[[गैलवेस्टन खाड़ी]]||{{nts|506}} mi<br>815 km{{sfn|Benke|Cushing|2005|p=215}}||{{coord|32|47|54|N|96|53|52|W|name=Trinity River (source)}}<ref>{{cite web|title = Trinity River|work = Geographic Names Information System|url = https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1348789|publisher = United States Geological Survey (USGS)|date = November 30, 1979|accessdate = फरवरी 7, 2011|archive-date = September 2, 2018|archive-url = https://web.archive.org/web/20180902062816/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:1348789|url-status = dead}}</ref> ||{{coord|29|44|35|N|94|42|12|W|name = Trinity River (mouth)}} ||{{nts|17970}} mi<sup>2</sup><br>46,540 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=227}}||{{nts|7800}} ft<sup>3</sup>/s<br>222 m<sup>3</sup>/s||[[टैक्सास]]<sup>s, m</sup>[[File:Trinity River.jpg|center|150px|alt=A middle-sized river flows by a factory with two tall smokestacks.]]
|--
! scope="row"|38
||[[Wabash River]]||[[ओहायो नदी]]||{{nts|503}} mi<br />810 km<ref name="NHD"/>||{{coord|40|21|07|N|84|45|57|W|name=Wabash River (source)}}<ref>{{cite web|title=Wabash River|work=Geographic Names Information System|url=https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:449850|publisher=United States Geological Survey (USGS)|date=February 14, 1979|accessdate=July 5, 2011|archive-date=April 11, 2021|archive-url=https://web.archive.org/web/20210411045832/https://geonames.usgs.gov/apex/f?p=gnispq:3:::NO::P3_FID:449850|url-status=dead}}</ref>||{{coord|37|47|53|N|88|01|38|W|name=Wabash River (mouth)}}||{{nts|32950}} mi<sup>2</sup><br>85,340 km<sup>2</sup>{{sfn|Benke|Cushing|2005|p=396}}</ref>||{{nts|1001}} ft<sup>3</sup>/s<br>28 m<sup>3</sup>/s||[[ओहायो]]<sup>s</sup>, [[इंडियाना]]<sup>m</sup>, [[इलिनोई]]<sup>m</sup>[[File:Wabash River at Lafayette.jpg|center|150px|alt=A middle-sized river with sandy and grassy banks flows under a bridge]]
|}
==नक्शा==
[[Image:Longest Rivers of the US with labels fixed again 2.jpg|thumb|center|780px|Map of North America showing all rivers on this list]]
{{clear}}
==नोट==
<references group="n"/>
==संदर्भ==
{{Reflist|33em}}
[[श्रेणी:अमेरिका के नदी|*]]
7olsxepgmj9ta19247lghvricuwrjjh
रडयार्ड किपलिंग
0
66911
815355
813385
2026-11-13T08:30:20Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:साहित्य में नोबेल लॉरिएट]] जोड़ल गइल
815355
wikitext
text/x-wiki
{{Infobox writer
|name = रडयार्ड किपलिंग
|image = Rudyard Kipling (portrait).jpg
|image_size = 225px
|caption=Kipling in 1895
|native_name = Rudyard Kipling<!-- do not add image icons such as Nobel Prize, see [[:Template:Infobox writer]] -->
|birth_name = Joseph Rudyard Kipling
|birth_date = {{Birth date|df=y|1865|12|30}}
|birth_place = [[मुंबई|बंबई]], बांबे प्रेसिडेंसी, ब्रिटिश राज
|death_date = {{Death date and age|df=y|1936|1|18|1865|12|30}}
|death_place = [[लंदन]], [[इंग्लैंड]]
|resting_place = [[पोएट्स कार्नर]], [[वेस्टमिंसटर एबे]], लंदन
|occupation = पत्रकार, कहानीकार, कवि, उपन्यासकार
|genre = कहानी (शार्ट स्टोरी), उपन्यास, बाल साहित्य, कविता, जात्रा साहित्य, साइंस फिक्शन
|notableworks = ''[[दि जंगल बुक]]''<br />''जस्ट सो स्टोरीज''<br />''किम''<br />''कैप्टंस करेजियस''<br />"''इफ़—''"<br />"''गंगा दीन''"<br /> "''दि वाइट मैन्स बर्डेन''"
|spouse = {{marriage|Caroline Starr Balestier|1892}}
|children = 3
|awards = {{awd|[[साहित्य के नोबेल प्राइज]]|1907}}<!-- do not add image icons such as Nobel Prize, see [[:Template:Infobox writer]] -->
|nationality = ब्रिटिश
|signature = Rudyard Kipling signature.svg
}}
'''जोसेफ रडयार्ड किपलिंग''' ({{Lang|en|Joseph Rudyard Kipling}}; {{IPAc-en|'|r|ʌ|d|j|ər|d}} {{respell|RUD|yərd}}; 30 दिसंबर 1865 – 18 जनवरी 1936)<ref name="thetimes">''[[दि टाइम्स]]'', (लंदन) 18 जनवरी 1936, प. 12</ref> एगो अंगरेज पत्रकार, कहानिकार, कवी, आ उपन्यासकार रहलें। इनके जनम [[भारत]] में भइल आ ई चीज इनके रचना सभ में झलके ला आ भारत इनके कई रचना सभ के प्रेरणास्रोत रहल।
किपलिंग के फिक्शन रचना सभ में ''[[दि जंगल बुक]]'' (1894), ''[[किम (उपन्यास)|किम]]'' (1901), आ कइयन ठे कहानी सामिल बाड़ी सऽ जइसे कि "दि मैन हू वुड बी किंग" (1888)।<ref>[http://www.kipling.org.uk/rg_wouldbeking_notes.htm "The Man who would be King"] {{Webarchive|url=https://web.archive.org/web/20130520115440/http://www.kipling.org.uk/rg_wouldbeking_notes.htm |date=2013-05-20 }}. Notes on the text by John McGivering. kiplingsociety.co.uk</ref> इनके रचल कबिता सभ में "मांडले" (1890), "गंगा दीन" (1890), "दि गॉड्स ऑफ दि कॉपीबुक हैवेन" (1919), "दि वाइट मैन्स बर्डेन" (1899), आ "इफ़—" (1910) गिनावल जा सके लीं। इनका के कहानी (शार्ट स्टोरी) बिधा में नवाचार ले आवे वाला रचनाकार के रूप में जानल जाला;<ref name="rutherford">Rutherford, Andrew (1987). General Preface to the Editions of Rudyard Kipling, in "Puck of Pook's Hill and Rewards and Fairies", by Rudyard Kipling. Oxford University Press. {{ISBN|0-19-282575-5}}</ref> लड़िकन खातिर लिखल इनके रचना सभ के बाल साहित्य के क्लासिक मानल जाला, आ एगो समालोचक के राय में इनके काम (रचना) "बिबिधता वाला आ चमकदार कथाकारिता" के परदर्शन करे वाला रहल।<ref name="plainsintro">"a versatile and luminous narrative gift" – Rutherford, Andrew (1987). Introduction to the Oxford World's Classics edition of "Plain Tales from the Hills", by Rudyard Kipling. Oxford University Press. {{ISBN|0-19-281652-7}}</ref><ref>James Joyce considered Tolstoy, Kipling and D'Annunzio to be the "three writers of the nineteenth century who had the greatest natural talents", but that "he did not fulfill that promise". He also noted that the three writers all "had semi-fanatic ideas about religion, or about patriotism." Diary of David Fleischman, 21 July 1938, quoted in ''James Joyce'' by Richard Ellmann, p. 661, Oxford University Press (1983) {{ISBN|0-19-281465-6}}</ref>
बाद के 19वीं सदी आ सुरुआती 20वीं सदी के दौरान, [[ब्रिटिश साम्राज्य]] के लेखक लोग में किपलिंग गद्य आ पद्य दुनों बिधा में बहुत परसिद्ध रचनाकार रहलें।<ref name="rutherford" />{{efn|हेनरी जेम्स के कहनाम: "Kipling strikes me personally as the most complete man of genius, as distinct from fine intelligence, that I have ever known."<ref name="rutherford" />}} 1907 में 42 बरिस के उमिर में इनके नोबल प्राइज से सम्मानित कइल गइल आ ई पहिला अंगरेज लेख बनलें एह सम्मान के पावे वाला, साथे साथ अबतक के सभसे कम उमिर के रचनाकार भी हवें जेकरा के ई सम्मान मिलल।<ref name="nobel">{{cite web|last=Alfred Nobel Foundation|url=http://nobelprize.org/contact/faq/index.html#3b|title=Who is the youngest ever to receive a Nobel Prize, and who is the oldest?|page=409|publisher=Nobelprize.com|accessdate=30 September 2006|archiveurl=https://web.archive.org/web/20060925202706/http://nobelprize.org/contact/faq/index.html#3b|archivedate=25 सितंबर 2006}}</ref> इनके ब्रिटिश पोएट लौरियेट आ नाइटहुड के प्रस्ताव भी दिहल गइल हालाँकि ई दुनों लेवे से इनकार क दिहलें।<ref name="birkenhead">Birkenhead, Lord. (1978). ''Rudyard Kipling'', Appendix B, "Honours and Awards". Weidenfeld & Nicolson, London; Random House Inc., New York</ref>
किपलिंग के बाद के पहिचान आ परभाव ओह जमाना के राजनीतिक आ सामाजिक माहौल के अनुसार बदलल<ref name="lewis">Lewis, Lisa. (1995). ''Introduction to the Oxford World's Classics edition of "Just So Stories", by Rudyard Kipling''. Oxford University Press. pp.xv-xlii. {{ISBN|0-19-282276-4}}</ref><ref name="quigley">Quigley, Isabel. (1987). ''Introduction to the Oxford World's Classics edition of "The Complete Stalky & Co.", by Rudyard Kipling''. Oxford University Press. pp. xiii–xxviii. {{ISBN|0-19-281660-8}}</ref> आ एकरे परिणाम के रूप में, इनका बारे में बाद के 20वीं सदी भर एक दूसरे से बिरोधाभासी बिचार इनका बारे में ब्यक्त कइल जात रहल गइलें।<ref name="said">Said, Edward. (1993). ''Culture and Imperialism''. London: Chatto & Windus. p. 196. {{ISBN|0-679-75054-1}}.</ref><ref name="sandison">Sandison, Alan. (1987). ''Introduction to the Oxford World's Classics edition of ''Kim'', by Rudyard Kipling''. Oxford University Press. pp. xiii–xxx. {{ISBN|0-19-281674-8}}</ref> [[जॉर्ज ऑरवेल]] के नजर में किपलिंग "एगो [[जिंगोवाद|जिंगो]] साम्राज्यवादी" रहलें, जे "नैतिक रूप से असंवेदनशील आ सौन्दर्यशास्त्रीय रूप में घिन करे लायक (डिस्गस्टिंग)" रहलें।<ref name="orwellonrk">{{cite web|last=Orwell |first=George |date=30 September 2006 |url=http://www.george-orwell.org/Rudyard_Kipling/0.html |title=Essay on Kipling |accessdate=30 September 2006 |url-status=dead |archiveurl=https://web.archive.org/web/20060918142559/http://www.george-orwell.org/Rudyard_Kipling/0.html |archivedate=18 September 2006 }}</ref>{{efn|साहित्यिक समालोचक डगलस केर लिखलें: "[Kipling] is still an author who can inspire passionate disagreement and his place in literary and cultural history is far from settled. But as the age of the European empires recedes, he is recognised as an incomparable, if controversial, interpreter of how empire was experienced. That, and an increasing recognition of his extraordinary narrative gifts, make him a force to be reckoned with."<ref name="kerr">Douglas Kerr, University of Hong Kong (30 May 2002). [http://www.litencyc.com/php/speople.php?rec=true&UID=4913 "Rudyard Kipling."] ''The Literary Encyclopedia''. The Literary Dictionary Company. 26 सितंबर 2006.</ref>}}
{{clear}}
==नोट==
<references group="नोट"/>
==संदर्भ==
{{Reflist|33em}}
{{Authority control}}
[[श्रेणी:1865 में जनम]]
[[श्रेणी:1936 में निधन]]
[[श्रेणी:अंग्रेजी-भाषा के कवि]]
[[श्रेणी:ब्रिटिश लेखक]]
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
{{poet-stub}}
{{writer-stub}}
rjsghdukbpilg6kee40iyhxaq3a81dc
भारत के नेशनल पार्क सभ के लिस्ट
0
67337
815304
812866
2026-11-12T16:46:30Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815304
wikitext
text/x-wiki
[[File:Valley of flowers uttaranchal full view.JPG|thumb|200px|[[फुलवन के घाटी नेशनल पार्क]] 2004 से यूनेस्को के बिस्व बायोस्फीयर नेटवर्क के हिस्सा हवे।]]
'''भारत के नेशनल पार्क सभ के लिस्ट''' नीचे दिहल जा रहल बा:
जुलाई 2018 तक ले, कुल 104 नेशनल पार्क सभ के तहत {{convert|40501|km2|mi2|abbr=on}} एरिया आवे, भारत के संरक्षित क्षेत्र सभ के श्रेणी II के तहत रहल आ भारत के कुल रकबा के 1.23% हिस्सा रहल।<ref name="wiienvis_8231">{{Cite web|url=http://www.wiienvis.nic.in/Database/npa_8231.aspx|title=National Parks|last=|first=|date=|website=wiienvis.nic.in|archive-url=|archive-date=|url-status=|access-date=2018-08-11}}</ref> वर्तमान मे भारत में कुल 106 नेशनल पार्क है
== नक्शा ==
<mapframe width="500" height="500" text="National Parks in India" align="center">
{
"type": "ExternalData",
"service": "geoshape",
"properties": {
"stroke": "#00ff00",
"stroke-width": 2
},
"query": "\nSELECT ?id ?idLabel\n(concat('[[', ?idLabel, ']]') as ?title)\nWHERE\n{\n?id wdt:P814 wd:Q14545628. # is a district\n?id wdt:P17 wd:Q668. # in India\nSERVICE wikibase:label { bd:serviceParam wikibase:language 'en'}\n}"}
</mapframe>
{|class="sortable wikitable"
|-
! rjun
! a
! अस्थापना
! रकबा (किमी<sup>2</sup> में)
! जानल जाए के वजह
|-----
| [[अनामुडी शोला नेशनल पार्क]] ||[[केरल]]
| 2003 || align="right" |7.50||
|-----
| [[आंशी नेशनल पार्क]] ||[[कर्नाटक]]
| 1987 || align="right" | 417.34 || The great Indian hornbill, tiger, leopard, black panther, bear, elephant, deer
|----
| [[बल्फाक्रम नेशनल पार्क]] ||[[मेघालय]]
| 1986 || align="right" | 220 || [[Wild water buffalo]], [[red panda]], elephant and eight cat species, including the tiger and [[marbled cat]]
|-----
| [[बांधवगढ़ नेशनल पार्क]] || [[मध्य प्रदेश]]
| 1968 || align="right" | 446 || 1336 species of endemic plants
|-----
| [[बाँदीपुर नेशनल पार्क]] || [[कर्नाटक]]
| 1974 || align="right" | 874.20 || [[Chital]], [[Bengal tiger]], [[gray langurs]], [[Indian giant squirrel]], [[gaur]], [[leopard]], [[sambar deer]], [[Indian elephants]], [[Pernis (bird)|honey buzzard]], [[red-headed vulture]]
|-----
| [[बनेरघट्टा नेशनल पार्क]] || [[कर्नाटक]]
| 1986 || align="right" | 104.3 ||
[[Tiger]], [[sloth bear]], [[peacock]], [[elephant]], [[sambar deer]], [[mouse deer]]
|-----
| [[बेतला नेशनल पार्क]] ||[[झारखंड]]
| 1986 || align="right" | 1135 || tiger, Indian bison, elephant, hyenas, monkey,Leopard
|-----
| [[भितरकनिका नेशनल पार्क]] || [[ओडिशा]]
| 1988 || align="right" | 145 || [[मैंग्रोव]], [[खारा पानी के घड़ियाल]], सफेद घड़ियाल, [[भारतीय अजगर]], black ibis, wild pigs, rhesus monkeys, [[ऑलिव रिडले कछुआ]], [[चीतल]]
|-----
| [[राजबारी नेशनल पार्क]] || [[त्रिपुरा]]
| 2007 || align="right" | 31.63 ||
|-----
| [[ब्लैकबक नेशनल पार्क, वेलावदर]] || [[गुजरात]]
| 1976 || align="right" | 34.08 || Hunting [[cheetahs]], Blackbuck Lodge, the endangered Indian grey wolf, the nocturnal striped hyena, Indian fox, golden jackal, jungle cat and many small mammals like hare, gerbil, field mice, mongoose and hedgehog.
|-----
| [[बक्सा टाइगर रिजर्व]] || [[पच्छिम बंगाल]]
| 1992 || align="right" | 760 ||
|-----
| [[कैंपबेल खाड़ी नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1992 || align="right" | 426.23 ||
|-----
| [[चंदोली नेशनल पार्क]] || [[महाराष्ट्र]]
| 2004 || align="right" | 317.67 ||
|-----
| [[क्लाउडेड लेपर्ड नेशनल पार्क]] || [[त्रिपुरा]]
| 2003 || align="right" | 5.08 ||
|-----
| [[दाचीगाम नेशनल पार्क]] || [[जम्मू काश्मीर]]
| 1981 || align="right" | 141 || Only area where [[Kashmir stag]] is found<ref>[http://relivearth.com/endangered-species/kashmir-stag-hangul/ Kashmir Stag (Hangul)]</ref>
|-----
| [[डेजर्ट नेशनल पार्क]] || [[राजस्थान]]
| 1980 || align="right" | 3162 || Greatest attraction of the park is a bird called the [[great Indian bustard]], an endangered species found only in India
|-----
| [[डिब्रू-सैखोवा नेशनल पार्क]] || [[आसाम]]
| 1999 || align="right" | 340 || [[Feral horse]]
|-----
| [[दुधवा नेशनल पार्क]] || [[उत्तर प्रदेश]]
| 1977 || align="right" | 490.29 || बाघ, सांभर हिरन, बॉग हिरन
|-----
| [[एराविकुलम नेशनल पार्क]] || [[केरल]]
| 1978 || align="right" | 97 ||
|-----
| [[गैलाथिया नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1992 || align="right" | 110 ||
|-----
| [[गंगोत्री नेशनल पार्क]] || [[उत्तराखंड]]
| 1989 || align="right" | 2390 ||
|-----
| [[गीर नेशनल पार्क]] || [[गुजरात]]
| 1965 || align="right" | 1412 || [[Asiatic lion]]
|-----
| [[गोरुमारा नेशनल पार्क]] || [[पच्छिम बंगाल]]
| 1994 || align="right" | 79.45 ||
|-----
| [[गोबिंद पशु विहार बनजीव अभयारण्य]] || [[उत्तराखंड]]
| 1990 || align="right" | 472.08 ||
|-----
| [[महान हिमालय नेशनल पार्क]] || [[हिमाचल प्रदेश]]
| 1984 || align="right" | 754.40 || [[यूनेस्को]] [[बिस्व धरोहर स्थल]]
|-----
| [[गुगमाल नेशनल पार्क]] || [[महाराष्ट्र]]
| 1987 || align="right" | 361.28 ||
|-----
| [[गिंदी नेशनल पार्क]] || [[तमिलनाडु]]
| 1976 || align="right" | 2.82 ||
|-----
| [[मन्नार खाड़ी समुंद्री नेशनल पार्क]] || [[तमिलनाडु]]
| 1980 || align="right" | 6.23 ||
|-----
| [[संजय नेशनल पार्क]] || [[छत्तीसगढ़]]
| 1981 || align="right" | 1440.71 ||
|-----
| [[हेमिस नेशनल पार्क]] || [[जम्मू काश्मीर]]
| 1981 || align="right" | 4400 ||सभसे बड़ नेशनल पार्क, भारत में।
<br />
|-----
| [[इंदरकिला नेशनल पार्क]] ||[[हिमाचल प्रदेश]]
| 2010 || align="right" | 104 ||
|-----
| [[इंदिरा गाँधी बनजीव अभयारण्य आ नेशनल पार्क]] || [[तमिलनाडु]]
| 1989 || align="right" | 117.10 ||
|-----
| [[इंद्रावती नेशनल पार्क]] || [[छत्तीसगढ़]]
| 1981 || align="right" | 1258.37 || [[Wild Asian buffalo]], [[tiger reserve]], [[common hill myna|hill mynas]]
|-----
| [[जलदापारा नेशनल पार्क]] || [[पच्छिम बंगाल]]
| 2012 || align="right" | 216 || [[Indian rhinoceros]]
|-----
| [[जिम कार्बेट नेशनल पार्क]] || [[उत्तराखंड]]
| 1936 || align="right" | 1318.5 || First national park in India (established in 1936 as Hailey National Park)
|-----
| [[कालेसर नेशनल पार्क]] || [[हरियाणा]]
| 2003 || align="right" | 100.88
|
|-----
| [[कान्हा नेशनल पार्क]] || [[मध्य प्रदेश]]
| 1955 || align="right" | 940 ||
|-----
| [[कांगेर घाटी नेशनल पार्क]] || [[छत्तीसगढ़]]
| 1982 || align="right" | 200 ||
|-----
| [[के बी रेड्डी नेशनल पार्क]] || [[तेलंगाना]]
| 1994 || align="right" | 1.42 ||
|-----
| [[काजीरंगा नेशनल पार्क]] || [[आसाम]]
| 1974 || align="right" | 858.98 || Highest known tiger density in the world, [[Indian rhinoceros]], [[यूनेस्को]] [[बिस्व धरोहर स्थल]]
|-----
| [[केइबुल लामजो नेशनल पार्क]] || [[मणिपुर]]
| 1977 || align="right" | 40 || अपने तरह के अकेल, पानी में पंवरत नेशनल पार्क
|-----
| [[केवलादेव घना नेशनल पार्क]] || [[राजस्थान]]
| 1981 || align="right" | 28.73 || [[यूनेस्को]] [[बिस्व धरोहर स्थल]]
|-----
| [[कंचनजंघा नेशनल पार्क]] || [[सिक्किम]]
| 1977 || align="right" | 1784 || [[यूनेस्को]] [[बिस्व धरोहर स्थल]]
|-----
| [[खीरगंगा नेशनल पार्क]] || [[हिमाचल प्रदेश]]
| 2010 || align="right" | 710 ||
|-----
| [[किश्तवाड़ नेशनल पार्क]] || [[जम्मू काश्मीर]]
| 1981 || align="right" | 400 ||
|-----
| [[कुद्रेमुख नेशनल पार्क]] || [[कर्नाटक]]
| 1987 || align="right" | 600.32 ||
|-----
| [[महादेव नेशनल पार्क]] || [[मध्य प्रदेश]]
| 1959 || align="right" | 375.22 ||
|-----
| [[महात्मा गाँधी समुंद्री नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1983 || align="right" | 281.50 ||
|-----
| [[महावीर हरिण वनस्थली नेशनल पार्क]] || [[तेलंगाना]]
| 1994 || align="right" | 14.59 ||
|-----
| [[मनास नेशनल पार्क]] || [[आसाम]]
| 1990 || align="right" | 950 || [[यूनेस्को]] [[बिस्व धरोहर स्थल]]
|-----
| [[मंडला पौधा जीवाश्म नेशनल पार्क]] || [[मध्य प्रदेश]]
| 1983 || align="right" | 0.27 ||
|-----
| [[समुंद्री नेशनल पार्क, कच्छ खे खाड़ी]] || [[गुजरात]]
| 1980 || align="right" | 162.89 ||
|-----
| [[माथीकेट्टन शोला नेशनल पार्क]] || [[केरल]]
| 2003 || align="right" | 12.82 ||
|-----
| [[मिडिल बटन दीप नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1987 || align="right" | 44 ||
|-----
| [[मोल्लेम नेशनल पार्क]] || [[गोवा]]
| 1978 || align="right" | 107 ||
|-----
| [[मोलिंग नेशनल पार्क]] || [[अरुणाचल प्रदेश]]
| 1986 || align="right" | 483 ||
|-----
| [[माउंट आबू बनजीव अभयारण्य]] || [[राजस्थान]]
| 1960 || align="right" | 288.84 ||
|-----
| [[माउंट हैरियेट नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1987 || align="right" | 46.62 || Important bird area as attributed by [[BirdLife International]], new species frog named Rana CharlesDarwini
|-----
| [[मृगवनी नेशनल पार्क]] || [[तेलंगाना]]
| 1994 || align="right" | 3.60 ||
|-----
| [[मुदुमलइ नेशनल पार्क]] || [[तमिलनाडु]]
| 1940 || align="right" | 321.55 ||
|-----
| [[दर्रा नेशनल पार्क]] || [[राजस्थान]]
| 2006 || align="right" | 200.54 ||
|-----
| [[मुकुर्ती नेशनल पार्क]] || [[तमिलनाडु]]
| 2001 || align="right" | 78.46 || [[Nilgiri tahr]]
|-----
| [[मर्लेन नेशनल पार्क]] || [[मिजोरम]]
| 1991 || align="right" | 100 ||
|-----
| [[नागरहोल नेशनल पार्क]] || [[कर्नाटक]]
| 1988 || align="right" | 643.39 ||
|-----
| [[नामदाफा नेशनल पार्क]] || [[अरुणाचल प्रदेश]]
| 1974 || align="right" | 1985.24 ||
|-----
| [[नामेरी नेशनल पार्क]] || [[आसाम]]
| 1978 || align="right" | 137.07 ||
|-----
| [[नंदादेवी नेशनल पार्क]] || [[उत्तराखंड]]
| 1982 || align="right" | 630.33 || [[यूनेस्को]] [[बिस्व धरोहर स्थल]], UNESCO World Biosphere Reserve
|-----
| [[नवेगाँव नेशनल पार्क]] || [[महाराष्ट्र]]
| 1975 || align="right" | 133.88 ||
|-----
| [[नेउरा घाटी नेशनल पार्क]] || [[पच्छिम बंगाल]]
| 1986 || align="right" | 88 ||
|-----
| [[नोकरेक नेशनल पार्क]] || [[मेघालय]]
| 1986 || align="right" | 47.48 || [[यूनेस्को]] [[World Biosphere Reserve]]
|-----
| [[उत्तर बटन दीप नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1979 || align="right" | 0.44 ||
|-----
| [[न्तान्ग्की नेशनल पार्क]] || [[नागालैंड]]
| 1993 || align="right" | 202.02 ||
|-----
| [[ओरांग नेशनल पार्क]] || [[आसाम]]
| 1999 || align="right" | 78.81 ||
|-----
| [[पम्बदम शोला नेशनल पार्क]] || [[केरल]]
| 2003 || align="right" | 1.32 ||
|-----
| [[पन्ना नेशनल पार्क]] || [[मध्य प्रदेश]]
| 1981 || align="right" | 542.67 ||
|-----
| [[पापिकोंडा नेशनल पार्क]] || [[आंध्र प्रदेश]]
| 2008 || align="right" | 1012.85 ||
|-----
| [[पेंच नेशनल पार्क]]<ref>[[महाराष्ट्र]] आ [[मध्य प्रदेश]] parts of the [[पेंच नेशनल पार्क]] are administered separately.</ref>|| [[मध्य प्रदेश]]
| 1977 || align="right" | 758 ||
|-----
| [[पेरियार नेशनल पार्क]] || [[केरल]]
| 1982 || align="right" | 305 ||
|-----
| [[फवंगपुई नेशनल पार्क|ब्लू माउंटेन नेशनल पार्क]] || [[मिजोरम]]
| 1992 || align="right" | 50 ||
|-----
| [[पिन वैली नेशनल पार्क]] || [[हिमाचल प्रदेश]]
| 1987 || align="right" | 807.36 ||
|-----
| [[राजाजी नेशनल पार्क]] || [[उत्तराखंड]]
| 1983 || align="right" | 820 || Mainly known for elephants, tigers, leopards and several species of birds, reptiles and mammals.
|-----
| [[रानी झाँसी समुंद्री नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1996 || align="right" | 256.14 ||
|-----
| [[रणथंभोर नेशनल पार्क]] || [[राजस्थान]]
| 1981 || align="right" | 392 ||
|-----
| [[सैडल पीक नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1979 || align="right" | 32.54 ||
|-----
| [[सालिम अली नेशनल पार्क]] || [[जम्मू काश्मीर]]
| 1992 || align="right" | 9.07 ||
|-----
| [[संजय नेशनल पार्क]]<ref>[[छत्तीसगढ़]] आ [[मध्य प्रदेश]] parts of the [[संजय नेशनल पार्क]] are administered separately.</ref>|| [[मध्य प्रदेश]]
| 1981 || align="right" | 466.7 ||
|-----
| [[संजय गाँधी नेशनल पार्क]] || [[महाराष्ट्र]]
| 1969 || align="right" | 104 || [[Asiatic Lion]], [[Indian Leopard]], [[Rhesus Macaque]], [[Bonnet Macaque]], [[Spotted Deer]], [[Hanuman Langur]], [[Indian Flying Fox]], [[Indian Hare]], [[Barking Deer]], [[Porcupine]], [[Palm Civet]], [[Mouse Deer]]
|-----
| [[सरिस्का टाइगर रिजर्व]] || [[राजस्थान]]
| 1955 || align="right" | 866 ||
|-----
| [[सतपुड़ा नेशनल पार्क]] || [[मध्य प्रदेश]]
| 1981 || align="right" | 524 ||
|-----
| [[साइलेंट वैली नेशनल पार्क]] || [[केरल]]
| 1980 || align="right" | 237 || Absence of noisy [[cicada]]s, hence the name 'Silent Valley'
|-----
| [[सिंबलबारा नेशनल पार्क]] || [[हिमाचल प्रदेश]]
| 2010 || align="right" | 27.88 ||
|-----
| [[सिरोही नेशनल पार्क]] || [[मणिपुर]]
| 1982 || align="right" | 41.30 ||
|-----
| [[सिमलीपाल नेशनल पार्क]] || [[ओडिशा]]
| 1980 || align="right" | 2750 || Tiger, leopard, Asian elephant, sambar, barking deer, gaur, jungle cat, wild boar
|-----
| [[सिंगालीला नेशनल पार्क]] || [[पच्छिम बंगाल]]
| 1986 || align="right" | 78.60 ||
|-----
| [[दक्खिनी बटन दीप नेशनल पार्क]] || [[अंडमान आ निकोबार दीपसमूह]]
| 1987 || align="right" | 0.03 || Dugong, dolphin, water monitor lizard, blue whale and smallest National park in India
|-----
| [[श्री वेंकटेश्वर नेशनल पार्क]] || [[आंध्र प्रदेश]]
| 1989 || align="right" | 353 ||
|-----
| [[सुल्तानपुर नेशनल पार्क]] || [[हरियाणा]]
| 1989 || align="right" | 1.43 ||
|-----
| [[सुंदरबन नेशनल पार्क]] || [[पच्छिम बंगाल]]
| 1984 || align="right" | 1330.12 || [[यूनेस्को]] [[बिस्व धरोहर स्थल]]
|-----
| [[तडोबा नेशनल पार्क]] || [[महाराष्ट्र]]
| 1955 || align="right" |625 || [[बाघ]]
|-----
| [[फुलवन के घाटी नेशनल पार्क]] || [[उत्तराखंड]]
| 1982 || align="right" | 87.50 || UNESCO World Heritage Site
|-----
| [[वाल्मीकि नेशनल पार्क]] || [[बिहार]]
|1976 || align="right" | 898.45 ||
|-----
| [[वंस्दा नेशनल पार्क]] || [[गुजरात]]
| 1979 || align="right" | 23.99 ||
|-----
| [[वन विहार नेशनल पार्क]] || [[मध्य प्रदेश]]
| 1983 || align="right" | 4.48 ||
|}
==संदर्भ==
{{Reflist|33em}}
{{National parks of India}}
[[श्रेणी:भारत के भूगोल]]
[[श्रेणी:भारत संबंधी लिस्ट]]
[[श्रेणी:भारत के नेशनल पार्क| ]]
235jekg6molqd22zuxc94ly7mwqzv88
प्रियंका गांधी
0
67780
815316
804567
2026-11-12T16:47:14Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815316
wikitext
text/x-wiki
{{Infobox officeholder
| name = प्रियंका गाँधी वाड्रा
| image = Priyanka Gandhi Vadra (7).jpg
| caption = 2019 में गाँधी
| office = जनरल सेक्रेटरी (कांग्रेस)<br/> पूरबी उत्तर प्रदेश खातिर<ref>{{cite web|url=https://aajtak.intoday.in/story/priyanka-gandhi-appointed-congress-general-secretary-lok-sabha-election-rahul-gandhi-1-1056274.html |title=राहुल का बड़ा दांव, प्रियंका गांधी को बनाया कांग्रेस महासचिव, पूर्वांचल का दिया प्रभार - Priyanka gandhi appointed congress general secretary lok sabha election rahul gandhi - AajTak |publisher=Aajtak.intoday.in |date= |accessdate=26 जनवरी 2019}}</ref>
|term_start = 4 फरवरी 2019
|term_end =
|president = [[राहुल गाँधी]]
|predecessor =
|successor =
|birth_date = {{Birth date and age|df=yes|1972|1|12}}
|birth_place = नई दिल्ली, भारत
|death_date =
|death_place =
|party = [[भारतीय राष्ट्रीय कांग्रेस]]
|spouse = [[रॉबर्ट वाड्रा]] (m. 1997)
|children = 2
|parents = [[राजीव गाँधी]]<br>[[सोनिया गाँधी]]
|relatives = ''नेहरू-गाँधी परिवार''
|education = दिल्ली युनिवर्सिटी (B.A.)
|signature = Signature of Priyanka Vadra.svg
|website =
}}
'''प्रियंका गाँधी''' (जनम 12 जनवरी 1972; बियाह के बाद '''प्रियंका गाँधी वाड्रा''') एगो भारतीय राजनीतिक नेता बाड़ी। ई राजिव गाँधी फाउंडेशन के ट्रस्टी भी बाड़ी। [[भारतीय राष्ट्रीय कांग्रेस]] के नेता के रूप में जनवरी 2019 में इनके सक्रिय राजनीति में आगमन के घोषणा भइल आ [[पूर्वांचल|पूरबी उत्तर प्रदेश]] खातिर कांग्रेस के महासचिव खाती इनके नियुक्ति भइल बा जेके चार्ज ई फरवरी 2019 के पहिला हप्ता में लिहें।<ref>{{Cite web|url=http://archive.is/Z09VO|title=Priyanka Gandhi appointed Congress general secretary for UP East|last=|first=|date=2019-01-25|website=archive.is|archive-url=https://web.archive.org/web/20241210172036/https://archive.is/Z09VO|archive-date=2024-12-10|url-status=|access-date=25 जनवरी 2019|url-status=bot: unknown}}</ref> प्रियंका गाँधी, [[राजीव गाँधी|राजीव]] आ [[सोनिया गाँधी]] के बेटी हई आ [[राहुल गाँधी]] के बड़ बहिन हई; फिरोज गाँधी आ भारत के पूर्व परधानमंत्री [[इंदिरा गाँधी]] के नातिन हई आ एह तरीका से भारतीय राजनीति में परभावशाली नेहरू-गाँधी परिवार के सदस्य बाड़ी।
== सुरुआती जिनगी ==
प्रियंका गांधी के जनम दिल्ली में 12 जनवरी 1972 के राजीव गांधी आ सोनिया गांधी के घरे भइल रहे, दू गो संतानन में छोटकी बेटी के रूप में। उनकर बड़ भाई राहुल गांधी केरल के वायनाड से संसद सदस्य हउवें। ऊ भारत के प्रधानमंत्री रहल इंदिरा गांधी, आ एगो स्वतंत्रता सेनानी आ राजनीतिज्ञ फिरोज गांधी के पोती हई, आ भारत के पहिला प्रधानमंत्री [[जवाहरलाल नेहरू]] के परपोती हई।
प्रियंका गांधी 1984 ले देहरादून के वेलहम गर्ल्स स्कूल में आपन स्कूली पढ़ाई कइली। एकरा बाद सुरक्षा कारणन से राहुल आ प्रियंका दुनों के दिल्ली के डे स्कूल में ले जाइल गइल। इंदिरा गांधी के हत्या के बाद लगातार आतंक के धमकी के कारण ऊ आ उनकर भाई राहुल दुनों के होम-स्कूल कइल गइल। बाद में ऊ दिल्ली के कान्वेंट ऑफ जीसस एंड मैरी में एडमिशन लिहली। दिल्ली विश्वविद्यालय के जीसस एंड मैरी कॉलेज से [[मनोबिज्ञान]] में स्नातक के डिग्री हासिल कइलें आ बाद में 2010 में [[बौद्ध धर्म|बौद्ध]] अध्ययन में स्नातकोत्तर के डिग्री हासिल कइलें।
1997 में गांधी के बियाह दिल्ली के एगो व्यापारी रॉबर्ट वाड्रा से भइल, प्रियंका गांधी वाड्रा नाम के इस्तेमाल शुरू कइली। ए जोड़ी के दु गो संतान बा लोग।
लोधी एस्टेट में सरकारी आवास खाली करे के कहला के बाद प्रियंका वाड्रा गुरुग्राम शिफ्ट हो गइली।
== राजनीतिक कैरियर ==
[[File:Priyanka Gandhi Vadra (1).jpg|thumb|एगो इलेक्शन रैली में प्रियंका गांधी]]
[[File:Rahul Gandhi, Priyanka Gandhi Vadra.jpg|thumb|एगो इलेक्शन रैली में राहुल गांधी के साथे प्रियंका]]
गाँधी अपने माताजी सोनिया गाँधी आ भाई राहुल गाँधी के चुनाव क्षेत्र रायबरेली आ अमेठी में हमेशा जात रहल बाड़ी जहाँ ऊ लोग से सीधे संपर्क करे आ लोग से बारता करे खातिर जानल जाली।<ref name="amethi">{{cite news|title=Priyanka Vadra returns to campaign in Amethi|work=[[इंडिया टुडे]]|date=16 जनवरी 2012}}</ref> गाँधी, एह चुनाव क्षेत्र सभ में भरपूर लोकप्रिय हई आ जहाँ कहीं जाली मजिगर भीड़ इनके स्वागत करे ला; अमेठी में एगो पापुलर नारा हवे कि ''अमेठी का डंका, बिटिया प्रियंका''।<ref name="slogan">{{cite news|title=Ground report: Amethi, Rae Bareli seeing a new Priyanka|url=http://www.firstpost.com/politics/ground-report-amethi-rae-bareli-are-now-seeing-a-new-priyanka-1498749.html|accessdate=1 मई 2017|work=फस्टपोस्ट|agency=[[नेटवर्क 18]]|date=27 अप्रैल 2014}}</ref>
प्रियंका गाँधी द्वारा पहिली बेर चुनाव परचार में शामिल होखे के बात पुरान बा जब ऊ 1989 में अपना पिता राजीव गाँधी खातिर अमेठी लोकसभा छेत्र में चुनाव परचार कइली आ एकरे बाद 1999 में राय बरेली में परचार में सामिल रहली जब भाजपा इहाँ से अरुण नेहरू के चुनाव में उतरलस, कैप्टन सतीश शर्मा एहिजा से कांग्रेस के उमेदवार रहलें आ जीत दर्ज कइलें जबकि नेहरू चउथा नमर पर रहलें।<ref name="indiatimes1">{{cite web|url=https://economictimes.indiatimes.com/news/politics-and-nation/priyanka-gandhis-political-journey-so-far/articleshow/67688080.cms |title=Priyanka Gandhi's political journey so far |publisher=Economictimes.indiatimes.com |date= |accessdate=2019-01-26}}</ref>
2004 जनरल इलेक्शन में, गाँधी अपना महतारी के साथे चुनाव परचार में सामिल रहली आ भाई राहुल गाँधी के चुनाव परचार में भी मदद कइली।<ref name="2004elections">{{cite web|title=Priyanka may be assigned 100 constituencies|url=http://www.rediff.com/election/2004/mar/02cong.htm|website=Rediff.com|accessdate=1 मई 2017}}</ref> उत्तर प्रदेश के बिधानसभा चुनाव 2007 में जहाँ राहुल गाँधी पूरा प्रदेश पर आपन धियान देहले रहलें, प्रियंका गाँधी अमेठी आ रायबरेली इलाका में सक्रिय रूप से चुनाव परचार में हिस्सा लिहली।
2009 में प्रियंका गाँधी के सुल्तानपुर सीट से चुनाव लड़े के अनुमान लगावल जात रहल बाकी ऊ चुनाव में ना उतरली आ सोनिया गाँधी आ राहुल गाँधी खातिर परचार में हिस्सा लिहली; अगिला चुनाव जवन 2014 में भइल, गाँधी के सक्रिय योगदान पार्टी खाती कंडीडेट चुने में रहल आ बतावल गइल कि ऊ कई जगह पर पार्टी के कंडीडेट बदले में भूमिका अदा कइली।<ref name="indiatimes1"/> 2014 के चुनाव में राहुल गाँधी के खिलाफ भाजपा स्मृति ईरानी के आ आम आदमी पार्टी [[कुमार विश्वास]] के लड़वले रहलीं आ एह चुनाव में राहुल के जीत खातिर प्रियंका गाँधी के परचार के महत्वपूर्ण मानल जाला। एगो भाषण में गाँधी नरेंद्र मोदी पर "नीच राजनीति" करे के आरोप लगवली जेकरा पर बिबाद मचल रहल।<ref name="indiatimes1"/>
दिसंबर 2018 में इनके द्वारा एगो किताब लिखे के बात सोझा आइल।<ref name="timesnownews1">https://www.timesnownews.com/india/article/priyanka-gandhi-vadra-political-debut-book-2019-lok-sabha-elections-congress-rahul-gandhi-sonia-gandhi-robert-vadra/332576</ref> एगो सीरियस नेता के रूप में राजनीति में सुरुआत करे के कोसिस के तौर पर एकरा के देखल जा रहल बा।<ref name="indiatimes1"/> किताब 2019 के आम चुनाव से पहिले, मार्च 2019 में छपी। खबर में आइल बा कि ई किताब लगभग 300 पेज के होखी<ref name="timesnownews1"/> आ एकर संभावित टाइटिल "''अगेंस्ट आउटरेज''" बतावल जा रहल बा।<ref>https://www.timesnownews.com/india/article/priyanka-gandhi-vadra-book-against-outrage-congress-rahul-gandhi-sonia-gandhi-robert-vadra-2019-lok-sabha-elections/332590</ref>
23 जनवरी 2019 के प्रियंका गाँधी के औपचारिक रूप से सक्रीय राजनीति के भागीदार नेता के रूप में, भारतीय राष्ट्रीय कांग्रेस के महासचिव (जनरल सेक्रेटरी) के रूप में पूरबी उत्तर प्रदेश के कमान सम्हारे के घोषणा भइल।<ref>{{Cite news|url=https://www.business-standard.com/article/elections/rahul-appoints-priyanka-gandhi-as-aicc-general-secretary-for-east-up-119012300439_1.html|title=Priyanka Gandhi appointed Congress party general secretary for UP-east|last=Team|first=BS Web|date=23 जनवरी 2019|work=Business Standard India|access-date=23 जनवरी 2019}}</ref> एह पद पर ई फरवरी के पहिला हप्ता में चार्ज लिहली।
{{clear}}
==संदर्भ==
{{Reflist|33em}}
{{Authority control}}
[[श्रेणी:1972 में जनम]]
[[श्रेणी:जियत लोग]]
[[श्रेणी:भारतीय राष्ट्रीय कांग्रेस के नेता]]
6kkbcga1ude582spq0hav6wtksg51lz
टेम्पलेट:Cite iucn
10
68400
815191
674329
2026-11-12T15:28:22Z
SM7
3953
अपडेट कइल गइल
815191
wikitext
text/x-wiki
<includeonly>{{#invoke:cite IUCN|cite}}</includeonly><noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
p7wcz29777ebmhbdhk2pmomggv6dzdx
Module:Iucn
828
68402
815190
787246
2026-11-12T15:26:11Z
SM7
3953
अपडेट कइल गइल
815190
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< _ C I T E >--------------------------------------------------------------------
entry point for calls from another module
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
if args.doi then
args['doi-access'] = args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil;
args.language = args.language or args.lang or args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.(%a%a)');
args.lang = nil; -- unset; use canonical form
end
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #085; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return require ('Module:Citation/CS1')._citation (frame, args, {CitationClass='journal'}) .. -- invoke the module to bypass the call to {{cite journal}}
table.concat (out_t); -- error and maint messages and categories
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
entry point for template calls
]]
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
name = name:gsub (pattern, '');
return true, name; -- has etal, so return true and the name without et al
end
end
return nil, name; -- not found
end
return nil, ''; -- no names;
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
<params_t> is a table of parameter/value pairs used when rendering a {{cite IUCN}} template for substing
modifies <params_t> and returns a plain-text author-name list for the nowiki output
]]
local function author_names_get (raw_iucn_cite, params_t)
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local has_etal; -- flag indicates that the raw author hist has some sort of 'et al' text
has_etal, author_names = name_has_etal (author_names); -- set flag; reset <author_names> without etal
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
local list_t = mw.text.split (names, '|'); -- split string on pipes into <list_t>; a sequence to hold {{cite iucn}} template as it is assembled; for nowiki output
if 0 == #list_t then -- no 'names' of the proper form; return the original as a single |author= parameter
params_t['author'] = author_names; -- for substing
return table.concat ({'|author=', author_names}), params_t; -- for nowiki output
else
for i, name in ipairs (list_t) do -- spin through the list of names
params_t['author' .. i] = name; -- for substing
list_t[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=; for nowiki output
end
if collaboration then
params_t['collaboration'] = collaboration; -- for substing
table.insert (list_t, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter; for nowiki output
end
if has_etal then -- if <author_names> had some form of 'et al'
params_t['display-authors'] = 'etal'; -- for substing
table.insert (list_t, '|display-authors=etal'); -- add |dispaly-authors=etal parameter; for nowiki output
end
return table.concat (list_t, ' '); -- make a big string and return for nowiki output
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate, language;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
language = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.(%a%a)');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |language=', language})); -- add formatted language
params_t.language = language;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
4o3rd8kt0073jm5o41riirfhzwkax10
सम्राट अशोक अंताराष्ट्रिय कन्वेंशन केंद्र
0
69532
815301
814156
2026-11-12T16:46:16Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815301
wikitext
text/x-wiki
''' सम्राट अशोक अंताराष्ट्रिय कन्वेंशन केंद्र'''<ref>{{Cite news|url=http://bcd.bih.nic.in/Circulars/CN-01-27-02-2017.pdf|title=http://bcd.bih.nic.in/Circulars/CN-01-27-02-2017.pdf|last=|first=|date=|work=Building Construction Department, Bihar|access-date=|archive-url=https://web.archive.org/web/20170919040301/http://bcd.bih.nic.in/Circulars/CN-01-27-02-2017.pdf|archive-date=2017-09-19|url-status=|url-status=dead}}</ref> उत्तर [[गाँधी मैदान]] देने एगो [[कन्वेंशन केंद्र]] हऽ।<ref>{{cite web|url=https://www.telegraphindia.com/states/bihar/award-for-cm-s-dream-project-210842|title=Award for CM's dream project}}</ref><ref>{{cite web |url=http://www.patnadaily.com/index.php/news/9324-international-convention-center-foundation-stone-laid.html#.U1aqVIGDkTA |title=International Convention Center Foundation Stone Laid |publisher=PatnaDaily.Com |date= |accessdate=2014-04-22 |archive-date=2014-03-06 |archive-url=https://web.archive.org/web/20140306164829/http://www.patnadaily.com/index.php/news/9324-international-convention-center-foundation-stone-laid.html#.U1aqVIGDkTA |url-status=dead }}</ref> हेकर सिलान्यास [[नीतीश कुमार]] जी ८ फरवरी २०१४ के कइले रहीं।
==संदर्भ==
{{Reflist|33em}}
{{Bihar-stub}}
hkfvtsjr8uc8423kps71qv5xiu92f6r
चंद्रयान-2
0
70523
815317
789030
2026-11-12T16:47:17Z
SM7Bot
7808
/* डिजाइन */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815317
wikitext
text/x-wiki
{{Infobox spaceflight |auto=all
| name = चंद्रयान-2
| image = Chandrayaan-2 lander and orbiter integrated module.jpg
| image_caption = चंद्रयान-2 के कंपोजिट तस्वीर
| image_size =
| mission_type = [[चंद्रमा|चंद्र]] [[ऑर्बिटर]], चंद्र लैंडर, चंद्र रोवर
| operator = [[इसरो]] (ISRO)
| COSPAR_ID =
| SATCAT =2019-042A
| website = {{url|https://www.isro.gov.in/chandrayaan2-home-0}}
| mission_duration = ऑर्बिटर: > 1 बरिस <br> ''विक्रम'' लैंडर ≤ 14 दिन<ref name="duration">{{cite news |url=http://indianexpress.com/article/technology/science/sac-to-deliver-eyes-and-ears-of-chandrayaan-2-by-2015-end |title=ISRO to deliver "eyes and ears" of Chandrayaan-2 by 2015-end |work=The Indian Express |first=Avinash |last=Nair |date=31 May 2015 |accessdate=7 August 2016}}</ref> <br> ''प्रज्ञान'' रोवर: ≤ 14 days<ref name="duration" />
| spacecraft_bus =
| manufacturer = [[इसरो]] (ISRO)
| launch_mass = सगरी (wet): {{convert|3850|kg|lb|abbr=on}}<ref name="ndtv20180829">{{cite news |url=https://gadgets.ndtv.com/science/news/chandrayaan-2-to-be-launched-in-january-2019-says-isro-chief-1907969 |title=Chandrayaan-2 to Be Launched in January 2019, Says ISRO Chief |work=Gadgets360 |publisher=[[NDTV]] |agency=Press Trust of India |date=29 August 2018 |accessdate=29 August 2018}}</ref><ref name="idos20180828">{{Cite press release |title=ISRO to send first Indian into Space by 2022 as announced by PM, says Dr Jitendra Singh |date=28 August 2018 |publisher=[[अंतरिक्ष बिभाग]] |url=http://pib.nic.in/newsite/PrintRelease.aspx?relid=183103 |access-date=29 August 2018}}</ref><br>Combined (dry): {{convert|1308|kg|lb|abbr=on}}<ref name="CY2_DryMass">{{cite news |title=Chandrayaan-2: All you need to know about India’s 2nd Moon mission |url=https://timesofindia.indiatimes.com/india/chandrayaan-2-all-you-need-to-know-about-indias-2nd-moon-mission/articleshow/70207662.cms |accessdate=22 July 2019 |date=22 July 2019 |archiveurl=https://web.archive.org/web/20190714030717/https://timesofindia.indiatimes.com/india/chandrayaan-2-all-you-need-to-know-about-indias-2nd-moon-mission/articleshow/70207662.cms |archivedate=14 July 2019}}</ref>
| payload_mass = ऑर्बिटर (wet): {{convert|2379|kg|lb|abbr=on}}<ref name="ndtv20180829"/><ref name="idos20180828" /><br>ऑर्बिटर (dry): {{convert|682|kg|lb|abbr=on}}<ref name="CY2_DryMass"/> <br> ''विक्रम'' लैंडर (wet): {{convert|1471|kg|lb|abbr=on}}<ref name="ndtv20180829"/><ref name="idos20180828" /><br>''Vikram'' lander (dry): {{convert|626|kg|lb|abbr=on}}<ref name="CY2_DryMass"/> <br> [[प्रज्ञान रोवर|''प्रज्ञान'' रोवर]]: {{convert|27|kg|lb|abbr=on}}<ref name="ndtv20180829"/><ref name="idos20180828" />
| dimensions =
| power = ऑर्बिटर: 1 kW<ref>{{Cite web| title = Chandrayaan-2 – Home| url = https://www.isro.gov.in/chandrayaan2-home#missionintro| accessdate = June 20, 2019| publisher = [[इसरो]]| archive-date = July 29, 2019| archive-url = https://web.archive.org/web/20190729041910/https://www.isro.gov.in/chandrayaan2-home#missionintro| url-status = dead}}</ref>
''Vikram'' lander: 650 W
''Pragyan'' rover: 50 W
| launch_date = 22 जुलाई 2019, 14:43:12 IST (09:13:12 UTC)<ref name = 'Cdy-2 new schedule'>{{Cite web|title = Chandrayan-2 Launch Rescheduled on 22nd July, 2019, AT 14:43 HRS|url = https://www.isro.gov.in/update/18-jul-2019/chandrayaan-2-launch-rescheduled-22nd-july-2019-1443-hrs|date = July 18, 2019|accessdate = July 18, 2019|publisher = ''[[इसरो]]''|archive-date = August 30, 2019|archive-url = https://web.archive.org/web/20190830143959/http://isro.gov.in/update/18-jul-2019/chandrayaan-2-launch-rescheduled-22nd-july-2019-1443-hrs|url-status = dead}}</ref>
| launch_rocket = [[जीएसएलवी मार्क 3]]<ref name="gslv3" /><ref name="gslv2">{{cite news |url=http://timesofindia.indiatimes.com/city/mangaluru/ISRO-chief-signals-Indias-readiness-for-Chandrayaan-II-mission/articleshow/51178528.cms |title=ISRO chief signals India's readiness for Chandrayaan II mission |work=The Times of India |agency=Times News Network |first=Jaideep |last=Shenoy |date=28 February 2016 |accessdate=7 August 2016}}</ref>
| launch_site = सतीश धवन अंतरिक्ष केंद्र लांच पैड
| launch_contractor = [[इसरो]] (ISRO)
|interplanetary =
{{Infobox spaceflight/IP
|type = orbiter
|object = [[चंद्रमा]]
|component = <!--part of the spacecraft involved, if spacecraft split into multiple components-->
|arrival_date = 20 August, 2019 (planned)<ref name="TG_20190722">{{cite news |last1=Ratcliffe |first1=Rebecca |title=India's Chandrayaan-2 moon mission lifts off a week after aborted launch |url=https://www.theguardian.com/world/2019/jul/22/indias-chandrayaan-2-moon-mission-lifts-off-a-week-after-aborted-launch |accessdate=23 July 2019 |date=22 July 2019}}</ref><ref name="isro.gov.in">{{cite web |title=GSLV-Mk III – M1 / Chandrayaan-2 Mission |url=https://www.isro.gov.in/launcher/gslv-mk-iii-m1-chandrayaan-2-mission |website=ISRO.gov.in |accessdate=21 July 2019 |archive-date=12 September 2019 |archive-url=https://web.archive.org/web/20190912004636/https://www.isro.gov.in/launcher/gslv-mk-iii-m1-chandrayaan-2-mission |url-status=dead }}</ref>
|periapsis = {{convert|100|km|mi|abbr=on}}<ref name="AS">{{cite AV media |url=https://www.youtube.com/watch?v=1TzL1UTELgc |title=Chandrayaan-2 – India's Second Moon Mission |work=YouTube.com |publisher=Inter-University Centre for Astronomy and Astrophysics |first=Aluru Seelin |last=Kiran Kumar |author-link= |date=August 2015 |accessdate=7 August 2016}}</ref>
|apoapsis = {{convert|100|km|mi|abbr=on}}<ref name="AS" />
|inclination =
}}
{{Infobox spaceflight/IP
|type = lander
|object = [[चंद्रमा]]
|component = [[प्रज्ञान रोवर|रोवर]]<!--part of the spacecraft involved, if spacecraft split into multiple components-->
|arrival_date = 7 सितंबर 2019 (प्लान)<ref name="isro.gov.in">{{cite web |title=GSLV-Mk III – M1 / Chandrayaan-2 Mission |url=https://www.isro.gov.in/launcher/gslv-mk-iii-m1-chandrayaan-2-mission |website=ISRO.gov.in |accessdate=21 July 2019 |archive-date=12 September 2019 |archive-url=https://web.archive.org/web/20190912004636/https://www.isro.gov.in/launcher/gslv-mk-iii-m1-chandrayaan-2-mission |url-status=dead }}</ref>
}}
| programme = चंद्रयान कार्यक्रम
| previous_mission = [[चंद्रयान-1]]
| next_mission = [[चंद्रयान-3]]
}}
'''चंद्रयान-2''' भारतीय अंतरिक्ष कार्यक्रम के तहत, चंद्रमा पर भेजल जाये वाला भारत के दुसरा अंतरिक्ष बिमान हवे। एकरे पहिले [[चंद्रयान-1]] भेजल गइल रहे। [[इसरो]] द्वारा बिकसित आ बनावल एह यान के 22 जुलाई 2019 के 2.43 PM IST (09:13 UTC) पर सतीश धवन अंतरिक्ष केंद्र के लांच पैड से जीएसएलवी मार्क 3 राकेट द्वारा लांच कइल गइल।<ref name="gslv3">{{cite news |url=https://timesofindia.indiatimes.com/india/chandrayaan-2-launch-put-off-india-israel-in-lunar-race-for-4th-position/articleshow/65275012.cms |title=Chandrayaan-2 launch put off: India, Israel in lunar race for 4th position |work=The Times of India |agency=Times News Network |first=Surendra |last=Singh |date=5 August 2018 |accessdate=15 August 2018}}</ref> एह अंतरिक्ष यान से एगो चंद्र ऑर्बिटर, लैंडर आ [[प्रज्ञान रोवर|चंद्र रोवर]] भेजल गइल।
== मकसद ==
चंद्रयान-2 के सभसे प्राथमिक मकसद बा ई देखावल कि भारतीय तकनीकी चंद्रमा के सतह पर "सॉफ्ट-लैंडिंग" करे में आ सतह पर रोवर चलावे में सक्षम बाटे। एकरे बाद बैज्ञानिक मकसद सभ में चंद्रमा के टोपोग्राफी, खनिज, तत्व सभ के मात्रा, चंद्रमा के बाहरी वायुमंडल (लूनर एक्सोस्फीयर), इहाँ मौजूद पानी आ बरफ के अध्ययन वगैरह शामिल बा।<ref>{{cite web |url=https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=CHANDRYN2 |title=Chandrayaan 2 |work=NASA Space Science Data Coordinated Archive |publisher=[[नासा]] |accessdate=3 जुलाई 2019 |archive-date=2019-07-29 |archive-url=https://web.archive.org/web/20190729172632/https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=CHANDRYN2 |url-status=dead }}</ref> ऑर्बिटर चंद्रमा के सतह के नक्शा तइयार करी आ थ्री-डी व्यू जेनरेट करे में मदद करी। एह पर लागल राडार सतह के सर्वेक्षण करी आ मौजूद पानी के अध्ययन करी। दक्षिणी ध्रुव वाला इलाका में बरफ के रूप में जमल पानी के अध्ययन एह में शामिल बा। एकरे अलावा ई चंद्रमा पर मौजूद चट्टान-चूर्ण (रेगोलिथ) के मोटाई के अध्ययन करी जवना से इहाँ के माटी बनल बा।<ref>{{cite web |last=Banerji |first=Abigail |url=https://www.firstpost.com/tech/science/chandrayaan-2-orbiter-will-scan-and-make-a-comprehensive-map-of-the-lunar-surface-6892891.html |title=Chandrayaan 2: Everything you need to know about the orbiter's mission and design |work=Firstpost |date=13 जुलाई 2019 |accessdate=14 जुलाई 2019}}</ref>
== डिजाइन ==
ई मिशन जीएसएलवी मार्क 3 से लांच कइल गइल आ लिफ्ट-ऑफ द्रब्यमान लगभग {{convert|3850|kg|lb|abbr=on}} रहल। श्रीहरिकोटा दीप पर मौजूद सतीश धवन सेंटर से एकरा के लांच कइल गइल।<ref name="gslv2"/><ref name="AS"/><ref name="CY2_LaunchKit" /><ref name="timesin20180812">{{cite news |url=https://timesofindia.indiatimes.com/india/isro-wants-chandrayaan-2-lander-to-orbit-moon-first/articleshow/65370820.cms |title=Isro wants Chandrayaan-2 lander to orbit moon first |work=The Times of India |agency=Times News Network |first=Chethan |last=Kumar |date=12 August 2018 |accessdate=15 अगस्त 2018}}</ref> {{As of|2019|06|df=}}, एह मिशन पर कुल खर्चा {{INR}}978 [[करोड़]] (लगभग {{US$|141 मिलियन}}) आइल जेह में {{INR}}603 एकरे अंतरिक्ष वाला हिस्सा पर आइल आ {{INR}}375 खर्चा लांच करे के सिस्टम पर आइल।<ref name=":1" /><ref>{{cite news |url=https://timesofindia.indiatimes.com/home/science/chandrayaan-2-mission-cheaper-than-hollywood-film-interstellar/articleshow/62990361.cms |title=Chandrayaan-2 mission cheaper than Hollywood film Interstellar |work=The Times of India |agency=Times News Network |first=Surendra |last=Singh |date=20 February 2018 |accessdate=3 मार्च 2018}}</ref> चंद्रयान-2 स्टैक के पहिले पृथिवी के पार्किंग ऑर्बिट में 170 किमी [[एप्सिस|पेरीजी]] आ 40,400 किमी अपोजी पर लांच यान द्वारा अस्थापित कइल गइल।<ref name="DoS_20190118">{{Cite web|url=http://pibphoto.nic.in/documents/rlink/2019/jan/p201911802.pdf|title=Department of Space presentation on 18 Jan 2019|last=|first=|date=18 जनवरी 2019|website=|archive-url=|archive-date=|url-status=|access-date=30 जनवरी 2019}}</ref>
{{clear}}
== संदर्भ ==
{{Reflist|33em}}
== बाहरी कड़ी ==
* [https://www.isro.gov.in/chandrayaan2-home Official Chandrayaan-2 mission page] {{Webarchive|url=https://web.archive.org/web/20190729041910/https://www.isro.gov.in/chandrayaan2-home |date=2019-07-29 }}, by the Indian Space Research Organisation
* [https://www.isro.gov.in/launcher/gslv-mk-iii-m1-chandrayaan-2-mission GSLV-Mk III launcher] {{Webarchive|url=https://web.archive.org/web/20190912004636/https://www.isro.gov.in/launcher/gslv-mk-iii-m1-chandrayaan-2-mission |date=2019-09-12 }}, by the Indian Space Research Organisation
[[श्रेणी:इसरो]]
[[श्रेणी:भारत के अंतरिक्ष कार्यक्रम]]
[[श्रेणी:चंद्रमा पर जाए वाला मिशन]]
baitgxry5xlm0fbnsq6it1tsqr624bt
ब्लॉग
0
82265
815358
812779
2026-11-13T11:26:12Z
SM7
3953
/* प्रकार भा किसिम */ सुधार कइल गइल
815358
wikitext
text/x-wiki
{{redirect|ब्लॉगर|गूगल के सर्विस|ब्लॉगर (सर्विस)}}
{{इंटरनेट|expanded=सर्विस}}
'''ब्लॉग''' ({{Lang|en|blog}}, मूल शब्द weblog के छोट रूप) अइसन [[वेबसाइट]] होला जेह पर कौनों ब्यक्ति अपना इन्ट्रेस्ट के बिसय पर चर्चा-परिचर्चा चाहे जानकारी देवे वाली चीज समय-समय पर लिखे ला आ ई वेबसाइट सभ [[वल्ड वाइड वेब]] पर छपे लीं। समय-समय पर, डायरी में दर्ज करे वाला लिखाई नियर, ई लेख सभ के पोस्ट कहल जाला आ ई आमतौर प उल्टा क्रम में देखलाई पड़े लें; मने की नया पोस्ट ब्लॉग के पन्ना पर सभसे ऊपर लउके लें। एह पोस्ट सभ में खाली पाठ (टेक्स्ट) के रूप में लिखल सामग्री हो सके ला हालाँकि, अक्सरहा इनहना में फोटो, बीडियो आ दुसरे वेबसाइट के चाहे अपने ब्लॉग के दुसरे पोस्ट आ पन्ना सभ के लिंक शामिल कइल गइल होला। ब्लॉग लिखे का काम के चाहे एह क्रिया के '''ब्लॉगिंग''' कहल जाला। अइसन लिखाई करे वाला लोग के '''ब्लॉगर''' कहल जाला।
ब्लॉगिंग के चलन नब्बे के दशक में शुरू भइल आ एह शुरुआती दौर में ब्लॉग सभ के केहू एकही ब्लॉगर के लिखल चीज होखे। बाद में कई-लेखक वाला ब्लॉग (मल्टी-ऑथर ब्लॉग, एम्एबी) के शुरुआत भइल। अब अइसनो ब्लॉग बाड़ें जे कई लेखक लोगन आ संपादक लोग के टीम द्वारा लिखल आ मेंटेन कइल जालें।
ब्लॉग, आपन निजी वेबसाइट बना के लिखल जा सके लें। एकरे अलावा कई गो ब्लॉगिंग वेबसाइट बाड़ी जे ब्लॉग लिखे आ छपावे के प्लेफार्म के रूप में काम करे लीं। इनहन के सदस्यता ले के इनहना पर आपन निजी ब्लॉग लिखल जा सके ला। [[वर्डप्रेस]], [[ब्लॉगर (सर्विस)|ब्लॉगर]] आ [[टेक्नोराती]] नियर कुछ ब्लॉगिंग वेबसाइट सभसे परसिद्ध बाड़ीं। कई गो अइसनो वेबसाइट आ [[सोशल मीडिया]] साइट बाड़ीं जिनहन पर सीमित साइज के छोट-छोट पोस्ट कइल जा सके ला; अइसन ब्लॉगिंग के [[माइक्रोब्लॉगिंग]] कहल जाला। [[टंबलर]] आ [[ट्विटर]] अइसने माइक्रोब्लॉगिंग वेबसाइट बाड़ीं। एकरे आलावा [[फेसबुक]] आ [[इंस्टाग्राम]] नियर सोशल मीडिया प्लेटफार्म पर रेगुलर लिख के पोस्ट करे के भी ब्लॉगिंग में गिनल जा सके ला।
== इतिहास ==
<!-- {{Main|ब्लॉगिंग के इतिहास}}-->
अंग्रेजी के टर्म ''वेबलॉग (weblog)'' के रचना जॉर्न बार्जर (Jorn Barger) द्वारा 17 दिसंबर 1997 के कइल गइल रहल।<ref>{{cite news|url=http://archive.wired.com/entertainment/theweb/news/2007/12/blog_anniversary|title=After 10 Years of Blogs, the Future's Brighter Than Ever|access-date=5 जून 2008|work=Wired|date=17 दिसंबर 2007|archive-url=https://web.archive.org/web/20170618001626/http://archive.wired.com/entertainment/theweb/news/2007/12/blog_anniversary|archive-date=2017-06-18|url-status=dead}}</ref> एही के छोट रूप ''ब्लॉग (blog)'' के शुरुआत पीटर मेरहोल्ज़ (Peter Merholz) कइलें जे मजाके-मजाक में ''weblog'' शब्द के दू हिस्सा में तूर दिहलें आ ''वी ब्लॉग'' (we blog) कहलें (जेकर मतलब भइल ''हमनी के ब्लॉग करी लें'') आ एह टर्म के अपना निजी ब्लॉग वेबसाइट Peterme.com पर अप्रैल भा मई 1999 में साइडबार में लगवलें।<ref>{{cite news|url=http://www.economist.com/surveys/displaystory.cfm?story_id=6794172|title=It's the links, stupid|newspaper=The Economist|date=20 अप्रैल 2006|access-date=5 जून 2008}}</ref><ref>{{cite web|url=http://peterme.com/index.html|archive-url=https://web.archive.org/web/19991013021124/http://peterme.com/index.html|archive-date=October 13, 1999|title=Peterme.com|last=Merholz|first=Peter|publisher=[[इंटरनेट आर्काइव]]|year=1999|access-date=5 जून 2008}}</ref><ref>{{cite web|url=http://www.kottke.org/03/08/its-weblog-not-web-log|last=Kottke|first=Jason|title=kottke.org|date=26 अगस्त 2003|access-date=5 जून 2008}}</ref> एकरे कुछे समय बाद, ''पाइरा लैब्स'' के इवांस विलियम्स एह शब्द के इस्तेमाल नाँव आ क्रिया दुनों के रूप में कइलें (''ब्लॉग करे'' के मतलब ''आपन ब्लॉग के एडिट करे चाहे अपना वेबलॉग पर कुछ पोस्ट करे'' के अरथ में) आ नया शब्द ब्लॉगर के ईजाद कइलें जेकर संबंध पाइरा लैब्स के ब्लॉगर नाँव के प्रोडक्ट से रहल; एह तरीका से ब्लॉग आ अइसन जुड़ल शब्द पापुलर भइलें।<ref>[http://www.viralblogcontent.com/Origins_of__22Blog_22_and__22Blogger_22.pdf Origins of "Blog" and "Blogger"] {{webarchive|url=https://web.archive.org/web/20141103083257/http://www.viralblogcontent.com/Origins_of__22Blog_22_and__22Blogger_22.pdf |date=3 November 2014 }}, American Dialect Society Mailing List (20 अप्रैल 2008).</ref>
सभसे सुरुआती कामर्शियल ब्लॉग 1995 में टाइ इंक (Ty, Inc.) द्वारा अस्तित्व में आइल जे एगो बिजनेस-से-उपभोक्ता (business to consumer) वेबसाइट रहे, ई एक नया खंड शुरू कइलस जेकर नाँव ''ऑनलाइन डायरी (Online Diary)'' रहल। एह में होखे वाली एंट्री सभ के ''बीनी बेबीज़'' नाँव से सभसे बेहतरीन प्रोडक्ट के चुनाव द्वारा अपडेट कइल जाय आ वेबसाइट के विजिट करे वाला उपभोक्ता लोग एह पर महीनावार वोटिंग करे।<ref name=BeanieBabies>{{cite book|last=Bissonnette|first=Zac|date=2015|title=The Great Beanie Baby Bubble: Mass Delusion and the Dark Side of Cute|url=https://archive.org/details/greatbeaniebabyb0000biss|publisher=पेंग्विन बुक्स|chapter=The $12-per-hour Sociology Major Who Made Ty Warner a Billionaire| pages=[https://archive.org/details/greatbeaniebabyb0000biss/page/107 107]–121|isbn=978-1591846024}}</ref>
<!--
=== टेक्नॉलॉजी ===
Early blogs were simply manually updated components of common Websites. In 1995, the "Online Diary" on the [[Ty, Inc.]] Web site was produced and updated manually before any blogging programs were available. Posts were made to appear in reverse chronological order by manually updating text based [[HTML]] code using [[FTP]] software in real time several times a day. To users, this offered the appearance of a live diary that contained multiple new entries per day. At the beginning of each new day, new diary entries were manually coded into a new HTML file, and the start of each month, diary entries were archived into its own folder which contained a separate HTML page for every day of the month. Then menus that contained links to the most recent diary entry were updated manually throughout the site. This text-based method of organizing thousands of files served as a springboard to define future blogging styles that were captured by blogging software developed years later.<ref name="BeanieBabies" />
-->
== प्रकार भा किसिम ==
ब्लॉग किसिम-किसिम के, मने की कई प्रकार के, हो सके लें। आज के समय में जहाँ कई अरब ब्लॉग ऑनलाइन पब्लिश हो रहल बाड़ें, इनहना में बहुत सारा ब्लॉग अइसनो बाड़ें जिनाहन के कौनों एगो कटेगरी में ना रखल जा सके ला।<ref name="Farkas2009" /> इनहन के किसिम चाहे परकार में बाँटे के आधार अलगा-अलगा हो सके ला आ कई गो ब्लॉग जहाँ खुद के बिबरन में आपन कटेगरी चाहे किसिम बतावे वाला हो सके लें ओहिजे अइसन ब्लॉग हो सके लें जे एकही साथे कई बिधा में आ कई कटेगरी में गिनल जा सकें।
नब्बे के दशक के अंत में, जब ब्लॉगिंग के बिस्तार तेजी से होखत रहल, मुख्य रूप से दू किसिम के ब्लॉग रहलें: पर्सनल डायरी नियर लिखल जाए वाला आ दुसरे इस्टोरी सभ के बारे में लिखल जाए वाला।<ref name="Farkas2009" /> हालाँकि, 2004 के एगो अध्ययन में तीन किसिम के ब्लॉग<ref name="Farkas2009">{{cite book |last1=Farkas |first1=Meredith G. |title=Social Software in Libraries: Building Collaboration, Communication, and Community Online |date=2007 |publisher=Information Today, Inc. |isbn=978-1-57387-275-1 |url=https://books.google.co.in/books?id=AlARogbZHqcC&newbks=1&newbks_redir=0&lpg=PA16&dq=types%20of%20blogs&pg=PA16#v=onepage&q=types%20of%20blogs&f=false |access-date=9 दिसंबर 2021 |language=en}}</ref> गिनावल गइल: ''फिल्टर ब्लॉग'' - जेह में दुसरे वेबसाइट सभ के लिंक के बिसय आ पसंद के हिसाब से फिल्टर क के पढ़े वाला ले चहुँपावल जा सके, ''पर्सनल ब्लॉग'' - जे केहू ब्यक्ति के निजी अनुभव भा बिचार, संस्मरण आ रोज के कामकाज के डायरी नियर लिखल पोस्ट से बनल होखें, आ ''नॉलेज ब्लॉग'' - जे बिबिध बिसय पर जनरल तरीका से चाहे अपना-अपना बिसेस बिसय पर जानकारी देवे वाली आ ज्ञान बढ़ावे वाली पोस्ट करें।
नीचे ब्लॉग सभ के बिबिध किसिम के एगो बिबरन संछेप में दिहल जा रहल बाटे:
{{expand section}}
;पर्सनल भा निजी ब्लॉग
;सामूहिक (ग्रुप) ब्लॉग
;[[माइक्रोब्लॉगिंग]]
=== बिधा अनुसार ब्लॉग ===
{{clear}}
== इहो देखल जाय ==
* [[सोशल मीडिया]]
* [[ब्लॉगर (सर्विस)]]
* [[वर्डप्रेस]]
== संदर्भ ==
{{Reflist|33em}}
== बाहरी कड़ी ==
<!-- These links should go to sites that extend this reference about weblogs. -->
<!-- DO ''not'' add your specific blogs or blog search engines here. -->
<!-- Please keep this list alphabetized. Thanks! -->
{{commons category|Blogs}}
* [https://archive.today/20150218205600/http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6VB3-4JH47F6-5&_user=10&_handle=V-WA-A-W-AB-MsSAYZW-UUA-U-AAVYYUUEZC-AAVZBYADZC-YBADCWEZW-AB-U&_fmt=summary&_coverDate=12/31/2006&_rdoc=5&_orig=browse&_srch=%23toc%235915%232006%23999779997%23619171!&_cdi=5915&view=c&_acct=C000050221&_version=1&;_urlVersion=0&_userid=10&md5=3a78d26b9ff73d0a9c37060c8bed6dbc Computer Law and Security Report Volume 22 Issue 2, Pages 127–136] blogs, Lies and the Doocing by Sylvia Kierkegaard (2006)
* [https://www.eff.org/bloggers/lg/ Legal Guide for bloggers] by the Electronic Frontier Foundation
* [http://lcweb2.loc.gov/diglib/lcwa/html/lawlb/lawlb-overview.html Law Library Legal Blawgs Web Archive] from the U.S. Library of Congress
{{Authority control}}
[[श्रेणी:ब्लॉग| ]]
[[श्रेणी:सोशल मीडिया]]
[[श्रेणी:नया मीडिया]]
[[श्रेणी:इंटरनेट टर्मावली]]
fe7enviytwuwa4kek8fj9l7nwmhdost
माइक्रोब्लॉगिंग
0
82351
815359
813111
2026-11-13T11:33:32Z
SM7
3953
+विकिकड़ी जोड़ल गइल
815359
wikitext
text/x-wiki
'''माइक्रोब्लॉगिंग''' (microblogging), जइसन की एकरे नाँव से साफ़ बा (''माइक्रो'' मने अंग्रेजी में "छोट" भा "सूछम" होला), एक किसिम के [[ब्लॉगिंग]] हवे जेह में पोस्ट कइल जाए वाली सामग्री (कंटेंट) छोट साइज के होखे ला। ई छोट-छोट वाक्य हो सके लें, सिंगल फोटो हो सके ला, चाहे छोटहन बीडियो हो सके ला। लिंक शेयर कइल आ स्टेटस अपडेट करे नियर काम माइक्रोब्लॉगिंग के तहत आवे ले। अइसन छोट-छोट पोस्ट सभ के कई बेर "माइक्रो पोस्ट" कहल जाला।
परंपरागत ब्लॉगिंग के पोस्ट जहाँ लमहर डायरी लिखे नियर पोस्ट हो सके लीं, माइक्रोब्लॉगिंग में छोट पोस्ट कइल जालीं जइसे कि "हम एह समय का करत बानी" ई बतावे खातिर कौनों छोट वाक्य, फोटो भा बीडियो के कड़ी पोस्ट कइल जाय।
[[ट्विटर]], [[टंबलर]], [[फेसबुक]], ट्विस्टर, कू (koo), वेइबो नियर कई गो अइसन ऑनलाइन सर्विस बाड़ीं जे माइक्रोब्लॉगिंग के सुबिधा दे रहल बाड़ीं। गूगल प्लस (Google+) नियर कई गो अइसन प्लेटफार्म बंदो हो गइल बाड़ें जे पहिले माइक्रोब्लौगिंग के सुबिधा देत रहलें।
== इहो देखल जाय ==
* [[ट्वीट]]
{{clear}}
== संदर्भ ==
{{Reflist|33em}}
[[श्रेणी:ब्लॉगिंग]]
[[श्रेणी:माइक्रोब्लॉगिंग| ]]
{{internet-stub}}
1mnsq88oxxrupvnw562yl14qqwjc3by
केसर
0
83515
815337
781630
2026-11-13T04:38:41Z
SM7
3953
815337
wikitext
text/x-wiki
[[File:Saffron salonik.jpg|alt=premium saffron|thumb|केसर]]
[[File:Saffron8.jpg|thumb|केसर के फूल, जेह में लाल रंग के रेशा लउकत बाड़ें]]
'''केसर''' चाहे '''जाफरान''' ({{Lang|en|saffron}}) एक तरह के सुगंधित [[मसाला]] होला जे [[केसर के पौधा]] के फूल से निकालल जाला। फूल में बीचा में गहिरा नारंगी लर नियर बहरें निकलल संरचना होखे लीं जिनहन के एकट्ठा क के सुखा लिहल जाला। पकवान सभ में एकर इस्तेमाल महक आ सवाद ले आवे वाला छिड़काव के रूप में भी कइल जाला आ पकवान सभ में रंग ले आवे खातिर मिला के पकावलो जाला। केसर के रंग के खास केसरिया रंग भा ज़ाफ़रानी रंग के नाँव से जानल जाला।
केसर के खेती स्पेन से ले के यूनान, ईरान, अफ़गानिस्तान आ भारत के काश्मीर ले एगो पातर बेल्ट में होखे ला। ईरान एकर सभसे बड़ उत्पादक देस हवे जेकरा बाद अफगानिस्तान के नंबर बा। भारतीय केसर जे काश्मीर में उपजावल जाला, सभसे बेस्ट क्वालिटी के मानल जाला आ सभसे महँग बिकाला। हालाँकि, हाल के समय में काश्मीर में एकर प्रोदाकष्ण घटल बाटे आ करा कारन में अउरी चीजन के साथे-साथ जलवायु बदलाव के आसर होखल बतावल गइल बाटे।<ref>{{Cite web |date=2026-11-11 |title=कश्मीर से क्यों ग़ायब हो रहा है 'लाल सोना'? |url=https://www.bbc.com/hindi/articles/c6y9374w53wro |access-date=2026-11-13 |website=BBC News हिंदी |language=hi}}</ref>
{{clear}}
== इहो देखल जाय ==
* [[केसर के पौधा]]
* [[केसरिया रंग]]
* [[केसरिया पेड़ा]]
== संदर्भ ==
{{Reflist|33em}}
{{Authority control}}
[[श्रेणी:मसाला]]
[[श्रेणी:भारतीय मसाला]]
[[श्रेणी:भारतीय खाना]]
japl2724m2u9hgpe2momhoxxaa7vf41
नोबेल प्राइज
0
86210
815321
812033
2026-11-12T17:27:15Z
SM7
3953
SM7 पन्ना [[नोबेल पुरस्कार]] के [[नोबेल प्राइज]] पर अनुप्रेषण के ऊपर स्थानांतरण कइलें
812033
wikitext
text/x-wiki
{{Infobox award
| name = Nobel Prize
| image =
| alt =
| awarded_for = Contributions that have conferred the greatest benefit to humankind in the areas of [[Nobel Prize in Physics|Physics]], [[Nobel Prize in Chemistry|Chemistry]], [[Nobel Prize in Physiology or Medicine|Physiology or Medicine]], [[Nobel Prize in Literature|Literature]], [[Nobel Memorial Prize in Economic Sciences|Economics]] and [[Nobel Peace Prize|Peace]].
| presenter = {{Plainlist|
* [[Royal Swedish Academy of Sciences]] (Physics, Chemistry and Economic Sciences<ref>{{cite web| url = https://www.nobelprize.org/prizes/economic-sciences/| title = THE SVERIGES RIKSBANK PRIZE IN ECONOMIC SCIENCES IN MEMORY OF ALFRED NOBEL}}</ref>)
* [[Nobel Assembly at the Karolinska Institute]] (Physiology or Medicine)
* [[Swedish Academy]] (Literature)
* [[Norwegian Nobel Committee]] (Peace)
}}
| country = {{Plainlist|
* [[Sweden]] (all prizes except the Peace Prize)
* [[Norway]] (Peace Prize only)
}}
| year = {{start date and age|df=yes|1901}}
| reward = A gold-plated [[green gold]] medal, a diploma, and a [[Nobel Prize#Award money|monetary award]] of 10 million [[Swedish Krona|SEK]]<ref name=":0" />
| holder_label = Number of laureates
| holder = 609 prizes to 975 laureates ({{As of|2021|lc=y}})<ref name=":0" />
| website = {{URL|https://nobelprize.org/}}
| year2= 2022
}}
'''नोबेल पुरस्कार''' चाहे '''नोबेल प्राइज''' सभ ({{Lang|en|Nobel Prizes}}) पाँच गो अलग-अलग पुरस्कार हवें जे 1895 के [[अल्फ्रेड नोबेल]] के वसीयत के अनुसार "ओह लोग के दिहल जाला जे लोग, पिछला साल के दौरान, मानव जाति के सभसे ढेर फायदा दिहले होखे"। अल्फ्रेड नोबेल एगो स्वीडिश रसायनज्ञ, इंजीनियर आ उद्योगपति रहलें जे [[डायनामाइट]] के आविष्कार खातिर सभसे परसिद्ध रहलें। 1896 में इनके निधन हो गइल। अपना वसीयत में ऊ आपन सगरी "शेष वास्तविक संपत्ति" के वसीयत कइलें जेकर इस्तेमाल पाँच गो पुरस्कार सभ के स्थापना में कइल गइल जेकरा के "नोबेल पुरस्कार" के नाँव से जानल गइल। नोबेल पुरस्कार पहिली बेर 1901 में दिहल गइल।<ref name=":0" />
नोबेल पुरस्कार [[भौतिकी]], [[रसायन बिज्ञान]], शरीर बिज्ञान भा चिकित्सा, [[साहित्य]], आ शांति के क्षेत्र सभ में दिहल जाला (नोबेल शांति पुरस्कार के बिसेसता ई रहल कि "राष्ट्र सभ के बीच फेलोशिप के आगे बढ़ावे खातिर सभसे ढेर या सभसे नीक काम करे वाला ब्यक्ति के" सेना सभ के, आ शांति कांग्रेस सभ के स्थापना के दिहल जाला")।<ref name=":0">{{cite web
| url =https://www.nobelprize.org/alfred-nobel/alfred-nobels-will/
| title =Alfred Nobel's will – The establishment of the Nobel Prize
| website =www.nobelprize.org
| publisher =Nobel Foundation
| access-date =8 December 2020}}</ref>
1968 में, स्वेरिज रिक्सबैंक (स्वीडन के केंद्रीय बैंक) अल्फ्रेड नोबेल के याद में आर्थिक बिज्ञान के पुरस्कार के स्थापना खातिर फंडिंग कइलस, एकर प्रबंधन नोबेल फाउंडेशन द्वारा कइल जाला।<ref name=":0" /><ref>{{Cite web|url=https://www.nobelprize.org/prizes/lists/all-nobel-prizes|title=All Nobel Prizes|website=NobelPrize.org}}</ref><ref>{{Cite web|url=https://www.nobelprize.org/nomination/economic-sciences/|title = Nomination and selection of Laureates in Economic Sciences}}</ref> नोबेल पुरस्कार के व्यापक रूप से अपना-अपना क्षेत्र में उपलब्ध सभसे प्रतिष्ठित पुरस्कार के रूप में मानल जाला।
{{clear}}
== फुटनोट ==
{{Reflist|33em}}
==स्रोत ग्रंथ==
{{refbegin}}
* {{cite book |last=Shalev |first=Baruch Aba |title=100 years of Nobel prizes |url = https://books.google.com/books?id=PfRaPHr86XUC |year=2005 |publisher=The Americas Group |edition=Third |isbn=978-0-935047-37-0 |ref=Shalev69 }}
{{refend}}
==अउरी पढ़े खातिर==
* {{cite book |last=Pais |first=Abraham |author-link=Abraham Pais |title=[[Subtle is the Lord: The Science and the Life of Albert Einstein]]|year=1983 |edition=Third |publisher=Oxford University Press |isbn=978-0-19-520438-4 |oclc=8195995 |ref=Pais69}}
== बाहरी कड़ी ==
* {{Commons category-inline|Nobel Prize}}
* {{Official website|https://nobelprize.org/ }}
* [https://www.nobelprize.org/nobel_prizes/lists/universities.html Nobel Prizes by universities and institutes]
[[श्रेणी:नोबेल पुरस्कार| ]]
[[श्रेणी:अवार्ड, पुरस्कार आ सम्मान]]
{{award-stub}}
5j6cc0o00dn79rmmgnodxj8ljsyz5oo
815328
815321
2026-11-12T17:28:30Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:नोबेल पुरस्कार]] हटावल गइल; [[श्रेणी:नोबेल प्राइज]] जोड़ल गइल
815328
wikitext
text/x-wiki
{{Infobox award
| name = Nobel Prize
| image =
| alt =
| awarded_for = Contributions that have conferred the greatest benefit to humankind in the areas of [[Nobel Prize in Physics|Physics]], [[Nobel Prize in Chemistry|Chemistry]], [[Nobel Prize in Physiology or Medicine|Physiology or Medicine]], [[Nobel Prize in Literature|Literature]], [[Nobel Memorial Prize in Economic Sciences|Economics]] and [[Nobel Peace Prize|Peace]].
| presenter = {{Plainlist|
* [[Royal Swedish Academy of Sciences]] (Physics, Chemistry and Economic Sciences<ref>{{cite web| url = https://www.nobelprize.org/prizes/economic-sciences/| title = THE SVERIGES RIKSBANK PRIZE IN ECONOMIC SCIENCES IN MEMORY OF ALFRED NOBEL}}</ref>)
* [[Nobel Assembly at the Karolinska Institute]] (Physiology or Medicine)
* [[Swedish Academy]] (Literature)
* [[Norwegian Nobel Committee]] (Peace)
}}
| country = {{Plainlist|
* [[Sweden]] (all prizes except the Peace Prize)
* [[Norway]] (Peace Prize only)
}}
| year = {{start date and age|df=yes|1901}}
| reward = A gold-plated [[green gold]] medal, a diploma, and a [[Nobel Prize#Award money|monetary award]] of 10 million [[Swedish Krona|SEK]]<ref name=":0" />
| holder_label = Number of laureates
| holder = 609 prizes to 975 laureates ({{As of|2021|lc=y}})<ref name=":0" />
| website = {{URL|https://nobelprize.org/}}
| year2= 2022
}}
'''नोबेल पुरस्कार''' चाहे '''नोबेल प्राइज''' सभ ({{Lang|en|Nobel Prizes}}) पाँच गो अलग-अलग पुरस्कार हवें जे 1895 के [[अल्फ्रेड नोबेल]] के वसीयत के अनुसार "ओह लोग के दिहल जाला जे लोग, पिछला साल के दौरान, मानव जाति के सभसे ढेर फायदा दिहले होखे"। अल्फ्रेड नोबेल एगो स्वीडिश रसायनज्ञ, इंजीनियर आ उद्योगपति रहलें जे [[डायनामाइट]] के आविष्कार खातिर सभसे परसिद्ध रहलें। 1896 में इनके निधन हो गइल। अपना वसीयत में ऊ आपन सगरी "शेष वास्तविक संपत्ति" के वसीयत कइलें जेकर इस्तेमाल पाँच गो पुरस्कार सभ के स्थापना में कइल गइल जेकरा के "नोबेल पुरस्कार" के नाँव से जानल गइल। नोबेल पुरस्कार पहिली बेर 1901 में दिहल गइल।<ref name=":0" />
नोबेल पुरस्कार [[भौतिकी]], [[रसायन बिज्ञान]], शरीर बिज्ञान भा चिकित्सा, [[साहित्य]], आ शांति के क्षेत्र सभ में दिहल जाला (नोबेल शांति पुरस्कार के बिसेसता ई रहल कि "राष्ट्र सभ के बीच फेलोशिप के आगे बढ़ावे खातिर सभसे ढेर या सभसे नीक काम करे वाला ब्यक्ति के" सेना सभ के, आ शांति कांग्रेस सभ के स्थापना के दिहल जाला")।<ref name=":0">{{cite web
| url =https://www.nobelprize.org/alfred-nobel/alfred-nobels-will/
| title =Alfred Nobel's will – The establishment of the Nobel Prize
| website =www.nobelprize.org
| publisher =Nobel Foundation
| access-date =8 December 2020}}</ref>
1968 में, स्वेरिज रिक्सबैंक (स्वीडन के केंद्रीय बैंक) अल्फ्रेड नोबेल के याद में आर्थिक बिज्ञान के पुरस्कार के स्थापना खातिर फंडिंग कइलस, एकर प्रबंधन नोबेल फाउंडेशन द्वारा कइल जाला।<ref name=":0" /><ref>{{Cite web|url=https://www.nobelprize.org/prizes/lists/all-nobel-prizes|title=All Nobel Prizes|website=NobelPrize.org}}</ref><ref>{{Cite web|url=https://www.nobelprize.org/nomination/economic-sciences/|title = Nomination and selection of Laureates in Economic Sciences}}</ref> नोबेल पुरस्कार के व्यापक रूप से अपना-अपना क्षेत्र में उपलब्ध सभसे प्रतिष्ठित पुरस्कार के रूप में मानल जाला।
{{clear}}
== फुटनोट ==
{{Reflist|33em}}
==स्रोत ग्रंथ==
{{refbegin}}
* {{cite book |last=Shalev |first=Baruch Aba |title=100 years of Nobel prizes |url = https://books.google.com/books?id=PfRaPHr86XUC |year=2005 |publisher=The Americas Group |edition=Third |isbn=978-0-935047-37-0 |ref=Shalev69 }}
{{refend}}
==अउरी पढ़े खातिर==
* {{cite book |last=Pais |first=Abraham |author-link=Abraham Pais |title=[[Subtle is the Lord: The Science and the Life of Albert Einstein]]|year=1983 |edition=Third |publisher=Oxford University Press |isbn=978-0-19-520438-4 |oclc=8195995 |ref=Pais69}}
== बाहरी कड़ी ==
* {{Commons category-inline|Nobel Prize}}
* {{Official website|https://nobelprize.org/ }}
* [https://www.nobelprize.org/nobel_prizes/lists/universities.html Nobel Prizes by universities and institutes]
[[श्रेणी:नोबेल प्राइज| ]]
[[श्रेणी:अवार्ड, पुरस्कार आ सम्मान]]
{{award-stub}}
oh41l3ljiei6e4jugd9ymkw3v02g9vd
अल्फ्रेड नोबेल
0
86229
815329
809118
2026-11-12T17:28:44Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:नोबेल पुरस्कार]] हटावल गइल; [[श्रेणी:नोबेल प्राइज]] जोड़ल गइल
815329
wikitext
text/x-wiki
[[File:AlfredNobel adjusted.jpg|thumb|right|अल्फ्रेड नोबल]]
'''अल्फ्रेड नोबेल''' (21 अक्टूबर 1833 – 10 दिसंबर 1896) एगो स्वीडिश वैज्ञानिक, इंजीनियर आ हथियार निर्माता रहलें। [[डायनामाइट]] के आविष्कार आ [[नोबेल पुरस्कार]] के अस्थापना खातिर इनके परसिद्धि बा।
ऊ अपना वसीयत में निर्देश छोड़लें कि उनुका पइसा से नोबेल पुरस्कार बनावल जाव। अइसन ऊ फ्रांस के एगो अखबार में एगो लेख पढ़ला का बाद, जवना में उनुका के “मौत के व्यापारी” कहल गइल रहे इहो कहल गइल रहे कि डायनामाइट के आविष्कार आ ओकरा से पहिले से अधिका लोग के मारे के क्षमता खातिर उनुका के याद कइल जाई, नोबल 10 दिसंबर 1896 के अपने निधन के बाद एह पुरस्कार सभ खातिर 31 मिलियन क्रोनर (स्वीडिश मुद्रा) छोड़ दिहलें। कृत्रिम तत्व [[नोबेलियम]] के नाँव इनके नाँव पर रखल गइल बा।
==सुरुआती जिनगी==
नोबेल के जनम 21 अक्टूबर 1833 के भइल। इनके पिता इमैनुएल नोबेल एगो इंजीनियर आ आविष्कारक रहलें।<ref>{{cite web|url=http://www.nobelprize.org/alfred_nobel/biographical/articles/life-work/gradeschool.html|title=Alfred Nobel's Life and Work – for Gradeschoolers|publisher=Nobel Committee|accessdate=October 10, 2011}}</ref> इनके महतारी एंड्रीएट अहल्सेल नोबेल रहली। 1833 में इमैनुएल नोबेल के अपना निर्माण कंपनी में नुकसान के चलते दिवालिया होखे के पड़ल।<ref>{{cite book|title=Nobel Prize Winners in Physics|last=Agarwal|first=Arun|publisher=APH Publishing|year=2008}}</ref>{{rp|9}}
== बाहरी कड़ी ==
* [http://en.citizendium.org/wiki/Alfred_Nobel Alfred Nobel] - Citizendium
== संदर्भ ==
{{Reflist|33em}}
[[श्रेणी:1833 में जनम]]
[[श्रेणी:1896 में निधन]]
[[श्रेणी:स्वीडेन के लोग]]
[[श्रेणी:नोबेल प्राइज|*]]
{{bio-stub}}
4pqp9z8xfjfczf6fnw9fsjhjvdqllyf
नोबल पुरस्कार
0
88108
815331
728500
2026-11-12T17:30:05Z
Xqbot
961
Fixing double redirect from [[नोबेल पुरस्कार]] to [[नोबेल प्राइज]]
815331
wikitext
text/x-wiki
#REDIRECT [[नोबेल प्राइज]]
{{Rcat shell|{{R from alternative spelling}}}}
rat6d4356te9nihnh9z9gctawdj5xmg
बद्रीनाथ मंदिर
0
88235
815339
812475
2026-11-13T05:04:25Z
Khushwaha
41300
/* growthexperiments-addlink-summary-summary:2|0|1 */
815339
wikitext
text/x-wiki
'''बद्रीनाथ''' या '''बद्रीनारायण मंदिर''' [[विष्णु]] के समर्पित एगो [[हिंदू मंदिर]] ह। ई [[उत्तराखंड|भारत के उत्तराखंड]] राज्य के बद्रीनाथ शहर में स्थित बा। ई मंदिर विष्णु के समर्पित 108 दिव्य देश में से एगो भी बा - वैष्णव लोग खातिर पवित्र तीर्थ - जिनके बद्रीनाथ के रूप में पूजल जाला। ई हर साल छह महीना (अप्रैल के अंत से नवंबर के सुरुआत के बीच) खुलल रहे ला, काहें से कि [[हिमालय|हिमालयी]] इलाका में मौसम के चरम स्थिति होला। ई मंदिर [[चमोली जिला]] के गढ़वाल पहाड़ी पटरी में [[अलकनंदा]] नदी के किनारे बा। ई भारत के सभसे ढेर यात्रा कइल जाए वाला तीर्थ केंद्र सभ में से एक बाटे, 2022 में महज 2 महीना में 28 लाख (28 लाख) लोग के दौरा इहाँ भइल बाटे।<ref>{{Cite news|url=https://timesofindia.indiatimes.com/videos/toi-original/uttarakhand-28-lakh-pilgrims-visit-char-dham-in-60-days-choppers-flying-like-auto-rickshaws-experts-warn-of-consequences/videoshow/93475084.cms|title=Uttarakhand: 28 lakh pilgrims visit Char Dham in 60 days, choppers flying like auto-rickshaws, experts warn of consequences|date=10 August 2022|work=The Times of India|access-date=12 August 2022}}</ref>
{{Infobox Hindu temple
|name = बद्रीनाथ मंदिर
|image = Badrinath Temple , Uttarakhand.jpg
|alt = Image of the temple with steps leading to the entrance
|caption = The temple with steps leading to the entrance
|coordinates ={{coord|30.744695|79.491175|type:landmark_region:IN|display=inline,title}}
|map_type = India Uttarakhand
|map_caption = उत्तराखंड में स्थिति
|country = {{IND}}
|state = [[Uttarakhand]]
|district = [[Chamoli district]]
|location = [[Badrinath]]
|elevation_m = 3100
|architecture =
|inscriptions =
|website = {{url|badrinath-kedarnath.gov.in}}
}}
मंदिर में पूजल जाए वाला मुख्य देवता के मुर्ती एगो {{Convert|1|ft|abbr=on}}, बद्रीनारायण के रूप में विष्णु के करिया ग्रेनाइट के बनल मुर्ती हवे। एह देवता के कई हिंदू लोग आठ गो ''स्वयं व्यक्त क्षेत्र'', या विष्णु के स्व-प्रकट देवता सभ में से एक माने ला।
[[गंगा नदी|गंगा]] नदी के धरती माई पर उतरे के याद करे वाला "माता मूर्ति क मेला" बद्रीनाथ मंदिर में मनावल जाए वाला सबसे प्रमुख परब ह। हालांकि बद्रीनाथ उत्तर भारत में स्थित बा, लेकिन मुख्य पुजारी या रावल परंपरागत रूप से दक्षिण भारतीय राज्य [[केरल]] से चुनल नम्बुदिरी ब्राह्मण होखे लें। एह मंदिर के [[उत्तर प्रदेश]] राज्य सरकार के एक्ट नंबर 30/1948 में एक्ट नंबर 16,1939 में शामिल कइल गइल जवना के बाद में श्री बदरिनाथ आ श्री [[केदारनाथ मंदिर|केदारनाथ]] मंदिर एक्ट के नाम से जानल गइल। राज्य सरकार के ओर से नामित समिति दुनो मंदिर के प्रबंधन करेले अउरी एकरा बोर्ड में सतरह सदस्य बाड़े।
[[चित्र:Devotees_at_the_Badrinath_Temple_in_Uttarakhand,_India.jpg|thumb|अक्टूबर 2022 में बद्रीनाथ मंदिर में भक्त]]
''विष्णु पुराण'' आ ''स्कंद पुराण'' जइसन प्राचीन धार्मिक ग्रंथन में एह मंदिर के जिक्र बा। एकर महिमा ''नालायिरा दिव्य प्रबंधम'', 6वीं–9वीं सदी ईसवी के अल्वार संत लोग के सुरुआती मध्यकालीन तमिल ग्रंथ में बर्णित बा।
== स्थान, वास्तुकला, आ तीर्थ सभ ==
[[चित्र:Badrinath-taptkund.jpg|alt=a rectangular tank with a house on the bank and with people taking bath in the hot springs|left|thumb|200x200px| बद्रीनाथ मंदिर के बगल में तप्त कुंड हॉट स्प्रिंग्स, स्नान घर के अंदर]]
ई मंदिर [[उत्तराखंड]] के [[चमोली जिला]] में [[अलकनंदा|अलकनंदा नदी]] {{Sfn|Baynes|1878}} के किनारे गढ़वाल पहाड़ी इलाका में बा। पहाड़ी इलाका औसत समुद्र तल से ऊपर {{Convert|3133|m|ft|abbr=on}} पर स्थित बा। <ref name="about"/> मंदिर के सामने नर परबत पर्वत बा, जबकि नीलकंठ चोटी के पीछे नारायण परबत बा।
आदि शंकर नौवीं सदी में बद्रीनाथ के तीर्थ स्थल के रूप में स्थापित कइलें। मंदिर के तीन गो संरचना बा: गर्भगृह, [[हिंदू दर्शन|दर्शन]] मंडप (पूजा भवन), आ सभा मंडप (सम्मेलन हॉल)। <ref name="about"/> गर्भगृह के शंक्वाकार आकार के छत, ''गर्भगृह'', लगभग {{Convert|15|m|ft|abbr=on}} लंबा बाटे आ ऊपर से एगो छोट गुंबद बा जे सोना के मढ़ल छत से ढंकल बा। <ref name="Nair67" /> सोझा के मुख्य साइड पत्थर से बनल बा आ मेहराबदार खिड़की बाड़ी सऽ। एगो चौड़ा सीढ़ी मुख्य प्रवेश द्वार पर पहुँचे ले, ई एगो ऊँच, मेहराबदार गेटवे हवे। ठीक भीतर एगो मंडप, एगो बड़हन, खंभा वाला हॉल बा जे गर्भगृह में जाला। हॉल के देवाल आ खंभा पर जटिल नक्काशी कइल गइल बा।
गरभगृह में {{Convert|1|ft|abbr=on}} के बद्रीनारायण के शालीग्राम (काला पत्थर के) मुर्ती बाटे जवन बद्री के पेड़ के नीचे सोना के छतरी में रखल बा। बद्रीनारायण के देवता में ऊ अपना दू गो बाँहि में ''[[शंख]]'' (शंख) आ ''[[सुदर्शन चक्र|चक्र]]'' (चक्र) के उठावल मुद्रा में आ बाकी दू गो बाँह ''योगमुद्रा'' ( ''पद्मासन'' ) मुद्रा में गोदी में टिकल देखावल गइल बा। <ref name="about">{{Cite web|url=http://www.badarikedar.org/badrinath.aspx|title=About the temple|year=2006|publisher=Shri Badrinath - Shri Kedarnath Temples Committee|archive-url=https://web.archive.org/web/20131214005611/http://badarikedar.org/badrinath.aspx|archive-date=14 December 2013|access-date=1 January 2014}}</ref> एह गर्भगृह में धन के देवता {{Em dash}} कुबेर, नारद ऋषि, उद्धव, नर आ नारायण के मूर्ति भी बाड़ी स। पन्द्रह गो अउरी मूर्ति बाड़ी सऽ जिनहन के पूजा मंदिर के आसपास कइल जाला। इनहन में [[लक्ष्मी]] (विष्णु के पत्नी), गरुड़ (नारायण के वाहन ), आ [[नव दुर्गा|नवदुर्गा]], [[दुर्गा]] के नौ गो अलग-अलग रूप में प्रकटीकरण सामिल बाड़ें। मंदिर में लक्ष्मी नरसिंहर के तीर्थ आ संत लोग खातिर [[आदि शंकर]] (ई.स 788-820), नर आ नारायण, घंटकरन, वेदांत देसिका आ रामानुजाचार्य के अस्थान बाटे। मंदिर के सभ देवता करिया पत्थर से बनल बाड़ें। <ref name="about" />
मंदिर के ठीक नीचे गरम सल्फर के झरना सभ के समूह तप्त कुंड के औषधीय परभाव वाला मानल जाला; कई तीर्थयात्री लोग मंदिर में जाए से पहिले झरना में नहाए के जरूरत मानेला। झरना सभ के तापमान साल भर {{Convert|55|°C|°F|abbr=on}} होला, जबकि बाहरी तापमान आमतौर पर {{Convert|17|°C|°F|abbr=on}} से नीचे होला। <ref name="about"/> मंदिर में दू गो पानी के पोखरा के नारद कुंड आ [[सुरुज|सूर्य]] कुंड कहल जाला।
== इतिहास ==
मंदिर के बारे में कवनो ऐतिहासिक रिकार्ड नइखे, बाकिर [[वेद|वैदिक ग्रंथन]] में एहिजे के मुख्य देवता बद्रीनाथ के उल्लेख मिले ला ( {{Circa|1750|lk=no}} –500 ईसा पूर्व के बा)। कुछ विवरणन के अनुसार [[वैदिक काल]] में एह तीर्थ में कवनो ना कवनो रूप में पूजा कइल जात रहे। ई मंदिर 8वीं सदी ले बौद्ध तीर्थ रहल आ [[आदि शंकर]] एह तीर्थ के फेर से जिंदा क के हिंदू मंदिर में बदल दिहलें। मंदिर के आर्किटेक्चर [[बौद्ध धर्म|बौद्ध]] विहार से मिलत जुलत आ चमकदार रंग से रंगल साम्हने के साइड जे [[बौद्ध मंदिर]] सभ के बिसेसता हवे, एह तर्क के पुष्टी करे ला। अउरी बिबरन सभ में बतावल गइल बा कि मूल रूप से एकर स्थापना आदिशंकर द्वारा नौवीं सदी में तीर्थस्थल के रूप में कइल गइल रहे। मानल जाला कि शंकर ई. 814 से 820 तक छह साल ले एह जगह पर रहलें। छह महीना बद्रीनाथ में आ बाकी साल केदारनाथ में रहलन। हिंदू अनुयायी लोग के कहनाम बा कि ऊ अलकनंदा नदी में बद्रीनाथ के देवता के मुर्ती के खोज कइलें आ एकरा के तप्त कुंड हॉट स्प्रिंग्स के लगे एगो गुफा में अस्थापित कइलें। एगो पारंपरिक कहानी में ई दावा कइल गइल बा कि शंकर एह इलाका के सगरी बौद्ध लोग के परमार शासक राजा कनक पाल के मदद से भगा दिहलें। राजा के वंशानुगत उत्तराधिकारी लोग मंदिर के शासन करत रहे आ एकर खरचा पूरा करे खातिर गाँव के रकम देवे। मंदिर के रास्ता पर पड़े वाला गाँव सभ के एगो समूह से मिले वाला आमदनी के इस्तेमाल तीर्थयात्री लोग के खाना खियावे आ रहे खातिर कइल जात रहे। परमार के शासक लोग "बोलंदा बद्रीनाथ" के उपाधि रखले रहे, मतलब बोले वाला बद्रीनाथ। इनकर अउरी उपाधि रहे जवना में श्री 108 बसदृष्टाचार्यपरायण गढ़राज महिमाहेन्द्र, धर्मबीभाब, आ धर्मरक्षक सिगमानी शामिल रहे।
बद्रीनाथ के सिंहासन के नाँव एहिजा के मुख्य देवता के नाँव पर रखल गइल; राजा तीर्थ के ओर जाए से पहिले भक्त लोग के विधिवत नमन के आनंद लेत रहले। 19वीं सदी के अंत तक ई प्रथा जारी रहल। 16वीं सदी के दौरान गढ़वाल के राजा मूर्ती के वर्तमान मंदिर में ले गइलें। जब गढ़वाल राज्य के बंटवारा भइल त बद्रीनाथ मंदिर अंग्रेज के शासन में आ गइल लेकिन गढ़वाल के राजा प्रबंधन समिति के अध्यक्ष के रूप में जारी रहलें। पुजारी के चयन गढ़वाल आ त्रावणकोर राजपरिवार के बीच सलाह-मशविरा के बाद कइल जाला। <ref name="Guha" />
मंदिर के उमिर आ हिमस्खलन से नोकसान के कारन एह मंदिर के कई गो बड़हन मरम्मत भइल बा। 17वीं सदी में गढ़वाल के राजा लोग द्वारा मंदिर के बिस्तार कइल गइल। 1803 के गढ़वाल के भयानक भूकंप के दौरान काफी नुकसान के बाद एकर बहुत हद तक जयपुर के राजा द्वारा दोबारा बनावल गइल। एकर मरम्मत अबहिन ले 1870 के दशक में भइल रहे{{Sfn|Baynes|1878}} बाकी [[पहिला बिस्व जुद्ध]] के समय ले ई सभ पूरा हो गइल रहलें। {{Sfn|Chisholm|1911}} ओह समय ई शहर अबहिन छोट रहल, एह में खाली 20-अजीब झोपड़ी सभ रहलीं जिनहन में मंदिर के कार्यकर्ता पंडा लोग रहे, बाकी तीर्थयात्री लोग के संख्या आमतौर पर सात से दस हजार के बीच रहे।{{Sfn|Chisholm|1911}} हर बारह साल पर होखे वाला कुंभा मेला महोत्सव में आगंतुकन के संख्या बढ़ के 50,000 हो गइल।{{Sfn|Chisholm|1911}} एह मंदिर के बिबिध राजा लोग द्वारा वसीयत कइल गइल बिबिध गाँव सभ के किराया से भी राजस्व मिलत रहे। {{Sfn|Baynes|1878}}
साल 2006 के दौरान राज्य सरकार अवैध अतिक्रमण प लगाम लगावे खाती बद्रीनाथ के आसपास के इलाका के नो कंस्ट्रक्शन जोन के घोषणा कइलस।
== दंतकथा ==
[[चित्र:Nara_narayana.jpg|thumb|नर आ नारायण]]
हिंदू कथा के अनुसार देवता [[विष्णु]] एही जगह पर ध्यान में बइठल रहलें। ध्यान के दौरान विष्णु ठंडा के मौसम से अनजान रहले। [[लक्ष्मी]], उनकर पत्नी, बदरी के पेड़ (जेकरा के भोजपुरी में 'बइर' कहल जाला) के रूप में उनकर रक्षा कइली। लक्ष्मी के भक्ति से प्रसन्न होके विष्णु एह जगह के नाम ''बद्रिका आश्रम रखले''। एटकिन्सन (1979) के अनुसार ई जगह पहिले बइर के जंगल रहे, जवन आज उहाँ ना पावल जाला। मंदिर में बद्रीनाथ के रूप में विष्णु के ''पदमासन'' मुद्रा में बइठल चित्रित कइल गइल बा। किंवदंती के अनुसार विष्णु के नारद ऋषि ताड़ दिहले रहले, जे विष्णु के पत्नी लक्ष्मी के गोड़ के मालिश करत देखले रहले। विष्णु तप करे खातिर बद्रीनाथ गइलें, बहुत देर तक पदमासन में ध्यान कइलें।
''विष्णु पुराण'' में बद्रीनाथ के उत्पत्ति के एगो अउरी संस्करण बतावल गइल बा। परंपरा के अनुसार यम के दू गो बेटा नरा आ नारायण रहलें {{Em dash}} ई दुनों हिमालय के पहाड़ सभ के आधुनिक नाँव हवें। ऊ लोग आपन धर्म फइलावे खातिर जगह चुनल आ हर केहू हिमालय के विशाल घाटी से बियाह कइल। आश्रम के स्थापना खातिर आदर्श जगह खोजत घरी ओह लोग के पंच बदरी के बाकी चार गो बद्री, अर्थात बृधा बद्री, योग बद्री, ध्यान बद्री आ भविष्य बद्री से भेंट भइल। आखिरकार अलकनंदा नदी के पीछे के गरम ठंडा झरना मिल गइल अउरी एकर नाम '''"''' बद्री विशाल" रखलें।
== तीर्थ यात्रा ==
{{Char Dham}}
{{Historical populations|1990|362757|1995|275900|2000|735200|2005|566524|2010|921950|2012|1060000}}
हर आस्था आ हिंदू धर्म के सभ विचारधारा के भक्त लोग बद्रीनाथ मंदिर में आवेलें। <ref>[[Badrinath Temple#Rao|Rao 2008]], p. 474</ref> काशी मठ,<ref>{{Cite web|url=http://www.kashimath.org/branches/|title=Kashi Math at Badrinath|publisher=Shree Kashi Math Samasthanam|access-date=10 September 2014|archive-date=8 August 2018|archive-url=https://web.archive.org/web/20180808203059/https://www.kashimath.org/branches/|url-status=dead}}</ref> जेयर मठ (आंध्र मठ),<ref>{{Cite web|url=http://www.chinnajeeyar.org/main/content/badari-ashtakshari-kshethriya-annadana-sakha-sangham-bakass/|title=Badari Ashtakshari Kshethriya Annadana Sakha Sangham, (BAKASS)|publisher=Chinna Jeeyar Mutt|archive-url=https://web.archive.org/web/20140910201610/http://www.chinnajeeyar.org/main/content/badari-ashtakshari-kshethriya-annadana-sakha-sangham-bakass/|archive-date=10 September 2014|access-date=10 September 2014}}</ref> उडुपी पेजावर <ref>{{Cite web|url=http://www.vishveshavani.com/contact/|title=Udupi Mutt at Badrinath|publisher=Pejavara Adhokshaja Matha, Udupi|access-date=10 September 2014|archive-date=8 August 2018|archive-url=https://web.archive.org/web/20180808171742/http://www.vishveshavani.com/contact/|url-status=dead}}</ref> आ मंतरलायम श्री राघवेन्द्र स्वामी मठ <ref>{{Cite web|url=http://www.raghavendramutt.org/node/38|title=Raghavendra Mutt Branches|publisher=Raghavendra Mutt|archive-url=https://web.archive.org/web/20140922161955/http://www.raghavendramutt.org/node/38|archive-date=22 September 2014|access-date=10 September 2014}}</ref> नियर सगरी प्रमुख मठ संस्थान सभ के शाखा आ गेस्ट हाउस एहिजा बा।
बद्रीनाथ मंदिर पाँच बदरी नाँव के पाँच गो संबंधित तीर्थ सभ में से एक हवे जे विष्णु के पूजा खातिर समर्पित बाड़ें। पांच मंदिर बा विशाल बद्री - बद्रीनाथ में बद्रीनाथ मंदिर, पांडुकेश्वर में स्थित योगध्यान बद्री, {{Convert|17|km|mi|1|abbr=on}} स्थित भविष्य बद्री ज्योतिर्मथ से सुबैन, वृध बद्री स्थित {{Convert|7|km|mi|1|abbr=on}} अनिमाठ में ज्योतिर्मथ से आ आदि बद्री से {{Convert|17|km|mi|1|abbr=on}} [[कर्णप्रयाग]] से मिलल बा। ई मंदिर सभसे पबित्र हिंदू ''चार धाम'' (चार गो दिव्य) स्थल सभ में से एक मानल जाला, जहाँ रामेश्वरम, बद्रीनाथ, [[पुरी]] आ द्वारका सामिल बाड़ें। हालांकि मंदिर के उत्पत्ति के बारे में साफ-साफ जानकारी नइखे, लेकिन आदिशंकर के ओर से स्थापित हिंदू धर्म के अद्वैत स्कूल चार धाम के उत्पत्ति के श्रेय द्रष्टा के बतावेले। ई चारो मठ भारत के चारो कोना में बाड़ें आ इनहन के अनुचर मंदिर उत्तर में बद्रीनाथ में बद्रीनाथ मंदिर, पूरब में पुरी में [[जगन्नाथ मंदिर, पुरी|जगन्नाथ मंदिर]], पश्चिम में द्वारका में [[द्वारिकाधीश मंदिर|द्वारकाधीश मंदिर]] आ दक्खिन में रामेश्वरम, [[तमिलनाडु]] में रामेश्वरम बाड़ें। <ref name="Chakra" /><ref name="Mittal" />
भले वैचारिक रूप से मंदिर सभ हिंदू धर्म के संप्रदाय, यानी [[शैव मत|शैव]] आ वैष्णव धर्म के बीच बँटल बाड़ें, चार धाम के तीर्थयात्रा एगो अखिल हिन्दू मामला हवे। हिमालय में चार गो निवासस्थान बाड़ें जिनहन के छोट चार धाम कहल जाला: बद्रीनाथ, केदारनाथ, [[गंगोत्री]] आ यमुनोत्री {{Em dash}} ई सभ हिमालय के तलहटी में पड़े लें। मूल चार धाम सभ के बिभेद करे खातिर 20वीं सदी के बीच में ''छोटा'' नाँव जोड़ल गइल। आधुनिक समय में जइसे-जइसे एह जगहन के तीर्थयात्री लोग के संख्या बढ़ल बा, एकरा के हिमालयन चार धाम कहल जाला।
भारत के चार गो कार्डिनल प्वाइंट के पार के यात्रा के हिन्दू लोग पवित्र मानेला, जे लोग अपना जीवन में एक बेर एह मंदिरन के दौरा करे के आकांक्षा राखेला। परंपरागत रूप से ई तीर्थयात्रा पुरी से पूरबी छोर से शुरू होले आ घड़ी के दिशा में अइसन तरीका से आगे बढ़े ले जेकर पालन आमतौर पर हिंदू मंदिर सभ में परिक्रमा खातिर कइल जाला। <ref name="Gwynne" />
== परब-त्यौहार आ धार्मिक प्रथा ==
[[चित्र:Badri_Night.JPG|alt=image of the temple at night illuminated with green light|thumb| रात में बद्रीनाथ मंदिर]]
बद्रीनाथ मंदिर में आयोजित सबसे प्रमुख परब माता मूर्ति का मेला ह जवन [[गंगा नदी|गंगा]] नदी के धरती माई प उतरे के याद में मनावल जाला। पार्थिव प्राणी सब के भलाई खातिर नदी के बारह नाला में बाँटल मानल जाए वाली बद्रीनाथ के महतारी के पूजा एह परब में कइल जाला। जहाँ नदी बहत रहे उ जगह बद्रीनाथ के पवित्र भूमि बन गइल। <ref name="festivals">{{Cite web|url=http://www.badarikedar.org/content-badari.aspx?id=11|title=Festivals celebrated in the temple|year=2006|publisher=Shri Badrinath - Shri Kedarnath Temples Committee|archive-url=https://web.archive.org/web/20120217172228/http://www.badarikedar.org/content-badari.aspx?id=11|archive-date=17 February 2012|access-date=1 January 2014}}</ref>
[[Badri Kedar|बदरी केदार]] परब जून महीना में मंदिर आ केदारनाथ मंदिर दुनों में मनावल जाला। ई परब आठ दिन ले चले ला; एह दौरान देश भर के कलाकार आपन प्रस्तुति देवे लें।<ref name="festivals"/>
रोज सबेरे होखे वाला प्रमुख धार्मिक गतिविधि (या ''पूजा'' ) में ''महाभिषेक'', ''अभिषेक, गीतापाठ'' ''आ'' ''भागवत पूजा'' होला जबकि शाम के ''पूजा'' में ''गीत गोविंद'' आ ''आरती'' शामिल होला। ''अष्टोत्रम'' आ ''सहस्रनाम'' जइसन वैदिक स्त्रोत पाठ सगरी संस्कारन के दौरान कइल जाला। ''आरती'' के बाद बद्रीनाथ के छवि से सजावट हटा के ओकरा पर चंदन के लेप लगावल जाला। छवि से लेप अगिला दिने ''निर्मलय [[हिंदू दर्शन|दर्शन]]'' के दौरान प्रसाद के रूप में भक्त लोग के दिहल जाला। कुछ हिंदू मंदिरन के बिपरीत सभ संस्कार भक्तन के सोझा कइल जाला, जहाँ कुछ प्रथा ओह लोग से छिपल रहेला। चीनी के गोला आ सूखल पतई भक्त लोग के दिहल आम प्रसाद ह। मई 2006 से स्थानीय रूप से तैयार आ स्थानीय बांस के टोकरी में पैक कइल पंचमृत प्रसाद के चढ़ावे के प्रथा शुरू हो गइल।
मंदिर [[Bhatridwityia or later|भतृद्वितिया के शुभ दिन भा बाद]] में अक्टूबर–नवंबर के दौरान जाड़ा खातिर बंद रहेला। <ref name="close" /> बंद होखे के दिन ''अखंड ज्योति'', छह महीना तक चले खातिर घीव भर के दीप जरावल जाला। <ref name="Bhalla258" /> ओह दिन मुख्य पुजारी द्वारा तीर्थयात्री आ मंदिर के अधिकारी लोग के मौजूदगी में विशेष ''पूजा'' कइल जाला। <ref>{{Cite news|url=http://zeenews.india.com/news/uttarakhand/badrinath-shrine-closes-marking-end-of-chardham-yatra_742346.html|title=Badrinath shrine closes marking end of Chardham Yatra|date=17 November 2011|access-date=28 April 2014|publisher=Zeenews|location=Dehradun}}</ref> बद्रीनाथ के छवि के काल्पनिक रूप से एह दौरान ज्योतिर्मठ के नरसिंह मंदिर में स्थानांतरित कइल जाला, जवन {{Convert|40|mi|km|abbr=on}} मंदिर से दूर बा। मंदिर के अप्रैल–मई के आसपास अक्षय तृतीया के फेर से खोलल जाला, जवन [[हिंदू पतरा|हिन्दू कैलेंडर]] के एगो अउरी शुभ दिन ह। <ref name="close">{{Cite news|url=http://timesofindia.indiatimes.com/india/Badrinath-shrine-closed-for-winter/articleshow/3724410.cms|title=Badrinath shrine closed for winter|date=18 November 2008|work=TNN|access-date=28 April 2014|publisher=The Times of India|location=Dehradun}}</ref> जाड़ा के बाद मंदिर के उद्घाटन के पहिला दिन तीर्थयात्री लोग ''अखंड ज्योति'' के साक्षी बने खातिर जुटेला।
ई मंदिर ओह पवित्र जगहन में से एगो ह जहाँ हिंदू लोग पुजारी लोग के मदद से पुरखा लोग के चढ़ावा चढ़ावेला। भक्त लोग मंदिर में जाके गर्भगृह में बद्रीनाथ के प्रतिमा के सामने पूजा करेला अउरी अलकनंदा नदी में पवित्र डुबकी लगावेला। आम मान्यता बा कि डुबकी लगावे से आत्मा शुद्ध हो जाला।
== प्रशासन आ भ्रमण ==
[[चित्र:Alaknanda.jpg|alt=image of Alaknanda river with a hanging bridge across it|left|thumb|200x200px| बद्रीनाथ में [[अलकनंदा|अलकनंदा नदी]]]]
बद्रीनाथ मंदिर के उत्तर प्रदेश राज्य सरकार अधिनियम संख्या 30/1948 में अधिनियम संख्या 16,1939 के रूप में शामिल कइल गइल। जवना के बाद में श्री बदरिनाथ आ श्री केदारनाथ मंदिर एक्ट के नाम से जानल गइल। उत्तराखंड राज्य सरकार के ओर से नामित एगो समिति दुनो मंदिर के प्रबंधन करेले। एह कानून में 2002 में संशोधन क के अतिरिक्त समिति सदस्यन के नियुक्ति कइल गइल जेह में सरकारी अधिकारी आ एगो उपाध्यक्ष शामिल रहलें। <ref>{{Cite web|url=http://www.badarikedar.org/content-badari.aspx?id=2|title=Administration of the temple|year=2006|publisher=Shri Badrinath - Shri Kedarnath Temples Committee|archive-url=https://web.archive.org/web/20131029193204/http://www.badarikedar.org/content-badari.aspx?id=2|archive-date=29 October 2013|access-date=1 January 2014}}</ref> बोर्ड में सतरह गो सदस्य बाड़ें; तीन गो के चयन उत्तराखंड विधान सभा द्वारा, एक-एक सदस्य के चयन [[चमोली जिला|चमोली]] पौड़ी [[पौड़ी गढ़वाल जिला|गढ़वाल]], टिहरी [[टिहरी गढ़वाल जिला|गढ़वाल]] आ [[उत्तरकाशी जिला|उत्तरकाशी]] जिला के जिला परिषद द्वारा, आ दस सदस्य उत्तराखंड सरकार द्वारा नामित होखे लें। <ref>{{Cite web|url=http://www.badarikedar.org/content-badari.aspx?id=3|title=Committee members of the temple|year=2006|publisher=Shri Badrinath - Shri Kedarnath Temples Committee|archive-url=https://web.archive.org/web/20131029184513/http://www.badarikedar.org/content-badari.aspx?id=3|archive-date=29 October 2013|access-date=1 January 2014}}</ref>
जइसन कि मंदिर के रिकार्ड में संकेत दिहल गइल बा कि मंदिर के पुजारी शिव तपस्वी रहले जेकरा के दंडी संन्यासी कहल जाला, जे आधुनिक [[केरल]] में आम धार्मिक समूह नम्बुदिरी समुदाय से संबंधित रहले। जब 1776 ई. में तपस्वी लोग में से आखिरी आदमी के बिना वारिस के मौत हो गइल त गढ़वाल के राजा केरल से गैर-तपस्वी नम्बुदिरी लोग के पुरोहिताई खातिर बोलवले, ई प्रथा आधुनिक काल में भी जारी बा। <ref>{{Cite web|url=http://www.badarikedar.org/content-badari.aspx?id=4|title=Religious setup of the temple|year=2006|publisher=Shri Badrinath - Shri Kedarnath Temples Committee|archive-url=https://web.archive.org/web/20131029192556/http://www.badarikedar.org/content-badari.aspx?id=4|archive-date=29 October 2013|access-date=1 January 2014}}</ref> 1939 तक मंदिर में भक्त लोग के ओर से दिहल गइल सभ दान रावल (मुख्य पुजारी) के लगे चलत रहे, लेकिन 1939 के बाद उनुकर अधिकार क्षेत्र धार्मिक मामला तक सीमित रह गइल। <ref name="Lochtefeld" /> मंदिर के प्रशासनिक संरचना में राज्य सरकार के आदेश के निष्पादन करे वाला एगो मुख्य कार्यकारी अधिकारी, उप मुख्य कार्यकारी अधिकारी, दू गो ओएसडी, एगो कार्यकारी अधिकारी, एगो खाता अधिकारी, एगो मंदिर अधिकारी, आ एगो सार्वजनिक अधिकारी शामिल होलें जे मुख्य कार्यकारी अधिकारी के सहायता करेलें। <ref>{{Cite web|url=http://www.badarikedar.org/content-badari.aspx?id=6|title=Power structure of the temple|year=2006|publisher=Shri Badrinath - Shri Kedarnath Temples Committee|archive-url=https://web.archive.org/web/20131029184226/http://www.badarikedar.org/content-badari.aspx?id=6|archive-date=29 October 2013|access-date=1 January 2014}}</ref>
[[चित्र:Badrinath_Temple_-_OCT_2014.jpg|alt=image showing Badrinath temple with the mountain in the background|thumb|200x200px| गर्मी के दौरान मंदिर के नजारा]]
हालांकि बद्रीनाथ उत्तर भारत में स्थित बा, लेकिन मुख्य पुजारी या रावल परंपरागत रूप से दक्षिण भारतीय राज्य [[केरल]] से चुनल नम्बुदिरी ब्राह्मण होखे लें। मानल जाला कि एह परम्परा के शुरुआत आदि शंकर के कइल गइल जे दक्षिण भारतीय दार्शनिक रहलें। रावल के निहोरा उत्तराखंड सरकार केरल सरकार से कइल गइल बा। उम्मीदवार के [[संस्कृत]] में आचार्य (पोस्ट ग्रेजुएट) के डिग्री होखे के चाहीं, स्नातक होखे के चाहीं, ''मंत्र'' (पवित्र ग्रंथ) पाठ में निपुण होखे के चाहीं आ हिंदू धर्म के वैष्णव संप्रदाय के होखे के चाहीं। गढ़वाल के पूर्व शासक जे बद्रीनाथ के संरक्षक प्रमुख बाड़े, केरल सरकार के भेजल उम्मीदवार के मंजूरी दे देले। रावल के स्थापना खातिर तिलक समारोह होला आ जब मंदिर खुलल रहेला त अप्रैल से नवम्बर ले उनुका के प्रतिनियुक्त कइल जाला। रावल के परम पवित्रता के दर्जा (हिज होलीनेस) गढ़वाल राइफल्स अउरी उत्तराखंड के राज्य सरकार देले बिया। नेपाल के राजशाही भी उनका के बहुत सम्मान देला। अप्रैल से नवम्बर ले मंदिर के पुजारी के रूप में आपन कर्तव्य निभावेलें। एकरा बाद या त ज्योतिर्मठ में रहेलें या फिर केरल में अपना पैतृक गाँव वापस आ जालें। रावल के ड्यूटी रोज सबेरे 4 बजे ''अभिषेक'' के साथ शुरू होला। उनुके द्वारा वामन द्वादशी तक नदी ना पार करे के चाहीं आ ''[[ब्रह्मचर्य|ब्रह्माचार्य]]'' के पालन करे के चाहीं। रावल के सहायता चमोली जिला के गाँव डिम्मार से संबंधित गढ़वाली डिमरी ब्राह्मण, नायब रावल, धर्माधिकारी, वेदपाठी, पुजारी के एगो समूह, पंडा समाधि, भंडारी, रसोइया, भक्ति गायक, देवश्रम के चपरासी, जल भरिया ( पानी के रखवाला) आ मंदिर के पहरा देवे वाला लोग मिल के करे ला। बद्रीनाथ उत्तर भारत के कुछ मंदिरन में से एगो ह जवन दक्खिन में अधिका आम श्रौत परंपरा के प्राचीन तंत्र विधि के पालन करेला। <ref>{{Cite web|url=http://traveller.outlookindia.com/fulltravelogue.aspx?id=216|title=Badrinath|last=Outlook Traveller|publisher=Traveller.outlookindia.com|archive-url=https://web.archive.org/web/20131029201558/http://traveller.outlookindia.com/fulltravelogue.aspx?id=216|archive-date=29 October 2013|access-date=1 January 2014}}</ref><ref>{{Cite news|url=http://www.hinduonnet.com/thehindu/fr/2008/07/18/stories/2008071851520400.htm|title=Badrinath Temple|date=18 July 2005|work=[[The Hindu]]|access-date=1 January 2014|archive-url=https://archive.today/20121111030256/http://www.hinduonnet.com/thehindu/fr/2008/07/18/stories/2008071851520400.htm|archive-date=11 November 2012}}</ref>
2012 में मंदिर प्रशासन मंदिर में आवे वाला लोग खातिर टोकन सिस्टम शुरू कइलस। टैक्सी स्टैंड के तीन स्टॉल से दौरा के समय बतावे वाला टोकन दिहल जाला। मुख्य देवता के दर्शन करे खातिर हर भक्त के 10-20 सेकंड के समय दिहल जाला। मंदिर में प्रवेश खातिर पहचान के प्रमाण अनिवार्य बा। <ref>{{Cite web|url=http://www.badarikedar.org/content-badari.aspx?id=29|title=News about the temple|year=2006|publisher=Shri Badrinath - Shri Kedarnath Temples Committee|archive-url=https://web.archive.org/web/20131029195444/http://www.badarikedar.org/content-badari.aspx?id=29|archive-date=29 October 2013|access-date=1 January 2014}}</ref> मंदिर में [[ऋषिकेश]] से पहुँचल जा सकेला, जवन {{Convert|298|km|mi|abbr=on}} पर स्थित बा [[देवप्रयाग]], [[रुद्रप्रयाग]], [[कर्णप्रयाग]], [[नंदप्रयाग]], [[ज्योतिर्मठ]], [[बिष्णुप्रयाग|विष्णुप्रयाग]] आ देवदर्शिनी के रास्ता से दूर बा। [[केदारनाथ मंदिर]] से, आगंतुक {{Convert|243|km|mi|abbr=on|adj=on}} के जात्रा कर सकेलें -लंबा रुद्रप्रयाग मार्ग या {{Convert|230|km|mi|abbr=on|adj=on}} के बा -लंबा उखीमठ अउर गोपेश्वर मार्ग।
== इहो देखल जाव ==
* रामेश्वरम
* दिव्य देशम
* भारत में धार्मिक पर्यटन
== संदर्भ ==
{{Reflist|33em}}
=== ग्रंथसूची ===
== आगे पढ़ल जा सकेला ==
[[श्रेणी:हिंदू तीरथ]]
[[श्रेणी:उत्तराखंड]]
[[श्रेणी:चार धाम मंदिर]]
c0ndt2msvo0wmyfmttjfodugth69ele
चैटजीपीटी
0
88249
815297
811232
2026-11-12T16:34:15Z
SM7
3953
बिस्तार कइल गइल
815297
wikitext
text/x-wiki
{{Infobox software
| logo = [[File:OpenAI logo 2025 (symbol).svg|frameless|upright=0.5|class=skin-invert]]
| logo caption = चैटजीपीटी के निशान (एंब्लेम)
| developer = [[ओपेनएआइ]] (OpenAI)
| released = {{Start date and age|2022|11|30|p=y|br=y}}<ref name="initial version">{{cite web |url=https://openai.com/index/chatgpt|title=ChatGPT – Introducing ChatGPT |access-date=November 30, 2022 }}</ref>
| latest release version = {{Start date and age|2026|09|25|p=y|br=y}}<ref name="latest version">{{cite web |url=https://help.openai.com/en/articles/6825453-chatgpt-release-notes |title=ChatGPT – Release Notes |website=OpenAI }}</ref>
| engine = [[जीपीटी-6|जीपीटी-6 Astra]]
| operating system = {{ubl
|[[Web platform]]
|[[iOS]]
|[[Android (operating system)|Android]]
|[[macOS]]
|[[Windows]]
|[[iPadOS]]
}}
| platform = [[क्लाउड कंप्यूटिंग]]
| genre = [[चैटबॉट]], [[एलएलएम]], [[जेनेरेटिव प्री-ट्रेन्ड ट्रांसफार्मर|GPT]]
| license = [[प्रोपराइटरी सॉफ्टवेयर|प्रोपराइटरी]] [[सर्विस के रूप में सॉफ्टवेयर|सर्विस]]
| website = {{URL|https://chatgpt.com/}}
| language = 59 भाषा सभ<ref>{{cite web |title=How to change your language setting in ChatGPT |url=https://help.openai.com/en/articles/8357869-how-to-change-your-language-setting-in-chatgpt?|website=OpenAI Help Center |publisher=OpenAI |access-date=24 December 2025}}</ref>
}}
'''चैटजीपीटी''' (ChatGPT){{efn|जीपीटी (GPT) के पूरा नाँव हवे ''[[जेनेरेटिव प्री-ट्रेन्ड ट्रांसफार्मर]]''<ref>{{Cite web|url=https://www.nytimes.com/2022/12/05/technology/chatgpt-ai-twitter.html|title=The Brilliance and Weirdness of ChatGPT|last=Roose|first=Kevin|date=5 December 2022|website=|publisher=New York Times|language=en-US|format=HTML|access-date=26 December 2022|quote=Like those tools, ChatGPT — which stands for “generative pre-trained transformer” — landed with a splash.}}</ref>|group=devanagari }} एगो [[जनरेटिव एआइ|जनरेटिव]] [[आर्टिफिशियल इंटेलिजेंस|एआई]] [[चैटबॉट]] ह, जेकर बिकास [[ओपनएआई]] (OpenAI) कइले बा। एकरा के पहिली बेर 30 नवंबर 2022 के जारी कइल गइल रहे। ई यूजर लोग के [[प्रॉम्प्ट]] के जवाब में टेक्स्ट, ऑडियो आ चित्र (इमेज) तैयार करे खातिर [[लार्ज लैंग्वेज मॉडल]] (एलएलएम) के इस्तेमाल करे ला। खास तौर पर, एहमें [[जनरेटिव प्री-ट्रेन्ड ट्रांसफॉर्मर]] (GPT) के इस्तेमाल होला। आर्टिफिशियल इंटेलिजेंस के फील्ड में चैटजीपीटी के आवे से [[एआई बूम]] अउरियो तेज भइल। ई अइसन दौर रहे, जवना में एआई के क्षेत्र में निवेश आ आम पब्लिक के के रुचि, दुनो बहुत तेजी तेजी से बढ़ल। ओपनएआई एह सर्विस के [[फ्रीमियम मॉडल]] पर चला रहल बाटे। यूजर लोग टेक्स्ट, ऑडियो आ चित्र के जरिये चैटजीपीटी से बातचीत क सके लें।
सभसे खास बात बा कि, चैटजीपीटी के लोगन द्वारा बहुत तेजी से अपनावल गइल। जारी भइला के दुइए महीना के भीतर एकर मंथली एक्टिव यूजर लोगन के गिनती 10 करोड़ तक पहुँच गइल। फरवरी 2026 में एकर हप्तावार सक्रिय यूजर लोग के संख्या 90 करोड़ हो गइल। सितंबर 2026 तक, ई दुनिया के पाँचवाँ सभसे अधिक देखल जाए वाला वेबसाइट रहे। एकर सपोर्टर लोग के कहनाम बा कि एहमें कई ठे प्रोफेशनल फील्ड सभ के कायापलट क देवे के क्षमता बा। एकरा चलते मनुष्य के रचनात्मकता (क्रिएटिविटी) के सोभाव पर आ [[ज्ञान-आधारित काम]] के भबिस्य के बारे में पब्लिक में बहस सुरू हो चुकल बाटे।
हालाँकि, एह चैटबॉट के सीमा कुछ सीमा चिन्हित कइल गइल बाड़ी स; साथे साथ आ एकर अनैतिक इस्तेमाल के संभावना के ले के आलोचनो भइल बा। ई कबो-कबो गलत भा बेतुका जवाब दे सके ला, जे सुनला में जरूर सही (कन्विंसिंग) लागे ला बाकी असल में गलत हो सके ला। एह तरह के जवाब सभ के [[हैलुसिनेशन]] कहल जाला। एकर ट्रेनिंग डेटा में मौजूद पक्षपात (बायस) एकर जवाबो में भी झलके लें। ई एकेडमिक बेईमानी में मदद क सके ला, गलत जानकारी फइला सके ला आ नुकसान पहुँचावे वाला (मैलिसस) कोड बना सके ला। एकरे डेवलपमेंट से जुड़ल नैतिक सवालनन पर भी आलोचना भइल बा, खासकर ट्रेनिंग डेटा के रूप में कॉपीराइट से सुरक्षित कंटेंट के इस्तेमाल के ले के।
== फ़ीचर ==
चैटजीपीटी (ChatGPT) लार्ज लैंग्वेज मॉडल पर आधारित एगो चैटबॉट ह। ई कंप्यूटर प्रोग्राम लिख सके ला आ अइसन कोड सभ में मौजूद गलती खोज के ठीक कर सके ला। ई म्यूजिक, टेलीप्ले, परीकथा आ इस्टूडेंट लोगन खाती निबंध लिख सके ला; परीक्षा के सवालन के जवाब दे सके ला; बिजनेस के आइडिया सुझा सके ला; टेक्स्ट के अनुवाद आ सारांश तैयार कर सके ला; आ कंप्यूटर के नियंत्रण भी कर सके ला।
यूजर चैटजीपीटी से बातचीत के माध्यम से जुड़ेलें। एह बातचीत में टेक्स्ट, ऑडियो आ चित्र के इनपुट आ आउटपुट शामिल हो सके ला। यूजर द्वारा बातचीत के दौरान दिहल गइल इनपुट के [[प्रॉम्प्ट]] कहल जाला। एकर वैकल्पिक मेमोरी सुविधा से यूजर चैटजीपीटी के कुछ खास जानकारी याद रखे खातिर कह सकेलें। एगो अउरी विकल्प के मदद से चैटजीपीटी पुरान बातचीत के भी याद कर सके ला। यूजर के सामने हानिकारक आउटपुट प्रस्तुत होखे के जोखिम घटावे खातिर जीपीटी आधारित मॉडरेशन क्लासिफायर के इस्तेमाल कइल जाला।
मार्च 2023 में ओपनएआई चैटजीपीटी खातिर [[प्लगइन]] के सुविधा शुरू कइलस। एहमें ओपनएआई द्वारा बनावल गइल प्लगइन, जइसे वेब ब्राउजिंग आ कोड इंटरप्रिटेशन, के साथे बाहरी डेवलपर लोगन द्वारा बनावल गइल प्लगइन भी शामिल रहलें। एक्सपीडिया, ओपनटेबल आ जैपियर अइसने बाहरी प्लगइन बनावे वाला कंपनी रहलें।
अक्टूबर से दिसंबर 2024 के बीच [[चैटजीपीटी सर्च]] के सुविधा शुरू कइल गइल। एकर मदद से चैटजीपीटी वेब पर खोज कर सके ला, ताकि जवाब अधिक सटीक आ ताजा जानकारी पर आधारित होखे। एह सुविधा से प्रमुख सर्च इंजन के साथ ओपनएआई के सीधा प्रतिस्पर्धा बढ़ल। ओपनएआई बिजनेस संस्थानन के ई सुविधा भी देला कि ऊ लोग चैटजीपीटी सर्च के परिणाम में आपन सामग्री के देखावे के तरीका तय कर सके आ इस्तेमाल होखे वाला सोर्स पर प्रभाव डाल सके।
अक्टूबर 2025 में ओपनएआई चैटजीपीटी एटलस लॉन्च कइलस। ई एगो अइसन ब्राउजर ह, जवना में चैटजीपीटी असिस्टेंट के सीधे वेब ब्राउजिंग के प्रक्रिया में जोड़ल गइल बा। एकर मकसद [[गूगल क्रोम]] जइसन मौजूदा ब्राउजर से प्रतिस्पर्धा कइल बा। एहमें एजेंटिक मोड (Agentic Mode) नाम के एगो अतिरिक्त सुविधा बा, जवना के मदद से ई यूजर के ओर से ऑनलाइन काम भी क सके ला।
=== बिजनेस ===
'''चैटजीपीटी बिजनेस''' (जे पहिले '''चैटजीपीटी टीम''' रहल) चैटजीपीटी के एगो सदस्यता-आधारित संस्करण ह, जे बिजनेस, संगठन आ काम करे वाला टीम सभ खातिर बनावल गइल बा। ई एगो साझा वर्कस्पेस उपलब्ध करावेला, जहाँ आर्टिफिशियल इंटेलिजेंस आधारित बातचीत, डेटा एनालिसिस, डॉक्यूमेंट बनावे, सॉफ्टवेयर डेवलपमेंट, रिसर्च आ टीम के सहयोग जइसन सुविधा मिलेला। एहमें यूजर मैनेजमेंट, केंद्रीकृत बिलिंग, एडमिनिस्ट्रेटिव कंट्रोल आ अलग-अलग बिजनेस एप्लीकेशन सभ के साथ इंटीग्रेशन के सुविधा भी शामिल बा। ओपनएआई के अनुसार, चैटजीपीटी बिजनेस वर्कस्पेस में उपलब्ध संगठन के डेटा के इस्तेमाल डिफॉल्ट रूप से ओकर आर्टिफिशियल इंटेलिजेंस मॉडल के ट्रेनिंग खातिर ना कइल जाला। 29 अगस्त 2025 के चैटजीपीटी टीम के नाँव बदल के चैटजीपीटी बिजनेस रखल गइल रहे।<ref>{{cite web |title=चैटजीपीटी बिजनेस – परिचय |url=https://help.openai.com/en/articles/8792828-what-is-chatgpt-business |publisher=ओपनएआई}}</ref><ref>{{cite web |title=चैटजीपीटी बिजनेस: सामान्य पूछल जाए वाला सवाल |url=https://help.openai.com/en/articles/8801848 |publisher=ओपनएआई}}</ref>
{{clear}}
== इहो देखल जाय ==
* [[जीपीटी स्टोर]]
== नोट ==
<references group="devanagari"/>
== संदर्भ ==
{{Reflist|33em}}
[[श्रेणी:सॉफ्टवेयर]]
[[श्रेणी:लार्ज लैंग्वेज मॉडल]]
[[श्रेणी:चैटबॉट]]
[[श्रेणी:आर्टिफिशियल इंटेलिजेंस]]
{{Software-stub}}
otk97pg48m57vme4gist5tq0dxk36hp
साहित्य अकादमी अवार्ड
0
88966
815308
805705
2026-11-12T16:46:51Z
SM7Bot
7808
/* top */ सफाई, replaced: |dead-url=| → |url-status=| using [[Project:AWB|AWB]]
815308
wikitext
text/x-wiki
{{Infobox award
| name = Sahitya Akademi Award
| image = Sahitya Akademi Award - Surjit Patar.JPG
| image_size =
| alt =
| caption =
| subheader = Award for individual contributions to [[Literature]]
| awarded_for = Literary award in India
| sponsor = [[Sahitya Akademi]], [[Government of India]]
| lastawarded = {{End date and age|2025}}
| reward =
| year = {{Start date and age|1954}}
| former name =
| holder_label = Most recent winner
| holder =
| award1_type = Total awarded
| award1_winner = 24 (2025)
| award2_type = First winner
| award2_winner =
| award3_type = Last winner
| award3_winner =
| website = {{URL|http://www.sahitya-akademi.gov.in|sahitya-akademi.gov.in}}
| previous =
| next =
}}
'''साहित्य अकादमी पुरस्कार''' भारत के एगो साहित्यिक सम्मान हवे जे [[साहित्य अकादमी]] द्वारा हर साल भारत में मान्यता वाली हर प्रमुख भाषा में प्रकाशित सर्वश्रेष्ठ साहित्यिक रचना के दिहल जाला। [[भारतीय संविधान]] के आठवीं अनुसूची में शामिल 22 गो भारतीय भाषा सभ के अलावा ई राजस्थानी आ [[अंग्रेजी]] भाषा सभ; माने कि कुल 24 गो भाषा के इंतजाम कइल गइल बा। पहिला बेर ई पुरस्कार साल 1955 में दिहल गइल।
पुरस्कार के स्थापना के समय इनाम के धन पांच हजार रुपया रहे, जवन साल 1983 में दस हजार रुपया तक बढ़ा दिहल गइल अउरी साल 1988 में एकरा के बढ़ा के पच्चीस हजार रुपया क दिहल गइल। साल 2001 से एह रकम के बढ़ा के चालीस हजार रुपिया कर दिहल गइल। साल 2003 से ई रकम बढ़ा के पचास हजार रुपिया हो गइल बा।<ref>{{Cite web|url=https://www.jagranjosh.com/current-affairs/sahitya-akademi-award-2019-full-list-in-hindi-1576736334-null|title=साहित्य अकादमी पुरस्कार के बारे में|last=|first=|date=|website=Jagaran Josh|archive-url=|archive-date=|url-status=|access-date=}}{{Dead link|date=September 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:अवार्ड, पुरस्कार आ सम्मान]]
j6buqko56rdde3jruov8jhpm4g9ffcc
पोर्नोग्राफी
0
90862
815148
804535
2026-11-12T12:06:37Z
SM7
3953
सफाई कइल गइल
815148
wikitext
text/x-wiki
[[File:XXX P icon.svg|thumb|"[[एक्स रेटिंग|XXX]]" (ट्रिपल एक्स) के इस्तेमाल अक्सरहा अइसन पोर्नो सामग्री के चिन्हित करे खातिर कइल जाला।|alt=Circular icon with the letters "xxx"]]
'''पोर्नोग्राफी''' ({{Lang|en|pornography}}), जेकरा के आम भाषा में '''पोर्न''' चाहे '''पोर्नो''' भी कहल जाला, कामुकता चाहे सेक्स संबंधी सामग्री "जइसे कि फोटो, बीडियो, चाहे पाठ" के रूप में परिभाषित कइल जाला, जे कामुक उत्तेजना पैदा करे वाला होखे। मने कि अइसन सामग्री पोर्न फिलिम, अश्लील चित्र (फोटो भा पेंटिंग) आ कामोत्तेजक भा अश्लील साहित्य के रूप में हो सके ला।
अइसन मटेरियल के लमहर इतिहास रहल बा आ प्राचीन काल के गुफा पेंटिंग से ले के आज्काल्ह के वर्चुअल रियलिटी वाला माध्यम सभ ले एकर बिकास आ बिस्तार भइल बाटे। पोर्नोग्राफी के इस्तेमाल के रिक्रिएशनल एक्टिविटी से ले के कानूनी आ नैतिक रूप से हानिकारक तक ले मानल जाला। वयस्क भा एडल्ट लोग के लायक सामग्री आ पोर्नो में भी कई बेर बिभेद कइल जाला; एडल्ट भा कामोत्तेजक सामग्री के कई बेर पोर्न के रूप में कटेगराइज कइल जाला।
जहाँ एक ओर अइसन सामग्री के कामुक इच्छा सभ के सुरक्षित निकास के माध्यम मानल जाला, कई दसा में ई अपराध आ सामाजिक कुरूपता के रूप में भी देखल जाला।
==गैलरी==
<gallery widths="200" heights="200">
File:1920 Disrobed.jpg|1920 के दशक का एक विंटेज चित्र
File:Carracci Jupiter et Junoncrop.jpg|एनीबेल कैराची द्वारा चित्रित जुपिटर और जूनो
File:Cornelis van Haarlem Before the Deluge.jpg|कॉर्नेलिस वैन हार्लेम की कृति बिफोर द डेल्यूज अर्थात जलप्रलय से पूर्व
File:Pompeii-wall painting.jpg|पोम्पेई से प्राप्त एक प्राचीन रोमन भित्ति चित्र
File:Jean Auguste Dominique Ingres - The Spring - Google Art Project 2.jpg|जीन ऑगस्टे डोमिनिक इंग्रेस द्वारा निर्मित प्रसिद्ध चित्र द स्प्रिंग
File:Phoenix Marie AEE2009 (1).jpg|वर्ष 2009 के एक कार्यक्रम में फीनिक्स मैरी
File:Édouard-Henri Avril (25).jpg|एडुआर्ड-हेनरी एवरिल द्वारा बनाया गया एक कला चित्र
File:Paul Avril - Les Sonnetts Luxurieux (1892) de Pietro Aretino, 2.jpg|पॉल एवरिल द्वारा पिएत्रो एरेटिनो की रचना के लिए बनाया गया सचित्र कार्य
</gallery>
[[श्रेणी:पोर्नोग्राफी| ]]
[[श्रेणी:मानव कामुकता]]
mxx9vcr6wibhr3kdy33cbqllhq59mz7
गूगल अर्थ
0
95213
815366
788934
2026-11-13T11:58:15Z
SM7
3953
Cleaning up syntax using [[:en:User:Zackmann08/scripts/indent|indent.js]]
815366
wikitext
text/x-wiki
{{Infobox software
| title = Google Earth
| logo = Google Earth icon.svg
| screenshot = Google Earth on Chrome screenshot.png
| caption = [[गूगल क्रोम]] प चलत गूगल अर्थ 9 के स्क्रीनशॉट
| collapsible = yes
| author = कीहोल, इंक.
| developer = [[गूगल]]
| released = {{Start date and age|2001|6|10}}
| ver layout = stacked
| programming language = [[सी++]], [[डार्ट (प्रोग्रामिंग भाषा)|डार्ट]]
| operating system = {{indented plainlist|
* [[एंड्रॉइड (ऑपरेटिंग सिस्टम)|एंड्रॉइड]] [[एंड्रॉइड लॉलीपॉप|लॉलीपॉप]] चाहे बाद के
* [[आइओएस]] [[आइओएस 14|14]] चाहे बाद के
* [[लाइनक्स]] ([[उबंटू]] 14/[[फेडोरा लाइनक्स|फेडोरा]] 23-बराबर चाहे बाद के)
* macOS 10.8 or later
* [[वेब एप्लिकेशन|वेब एप]]
* [[विंडोज 7]] चाहे एकरा बाद के वर्शन<ref name=SystemRequirements>{{cite web |url=https://support.google.com/earth/answer/21955 |title=Install & uninstall Google Earth Pro |website=Google Earth Help |access-date=January 11, 2023 |archive-date=January 11, 2023 |archive-url=https://web.archive.org/web/20230111203743/https://support.google.com/earth/answer/21955 |url-status=live }}</ref>
}}
| language count = Various
| genre = [[वर्चुअल ग्लोब]]
| license = [[फ्रीवेयर]]
| website = {{URL|https://earth.google.com/}}
}}
'''गूगल अर्थ''' ({{Lang|en|Google Earth}}) एगो [[कंप्यूटर प्रोग्राम]] बा जे मुख्य रूप से सैटेलाइट इमेज के आधार पर [[पृथिवी]] के 3D में देखावे ला। ई प्रोग्राम सैटेलाइट इमेज, [[हवाई फोटोग्राफी]], आ [[जीआइएस|जीआईएस डेटा]] के 3 डी ग्लोब पर ओवरले कइ के पृथिवी के नक्शा बनावेला, जे उपयोगकर्ता के विभिन्न कोण से शहर आउर सड़क सभ के व्यू के देखे के अनुमति देवेला। उपयोगकर्ता पता आउर निर्देशांक दर्ज करके, या कीबोर्ड या माउस के उपयोग करके दुनिया के बिबिध जगह सभ के पता लगा सकेला। प्रोग्राम के स्मार्टफोन या [[टैबलेट कंप्यूटर|टैबलेट]] पर भी डाउनलोड कइल जा सकेला, जेमे [[टचस्क्रीन|टच स्क्रीन]] या स्टाइलस के उपयोग करके नेविगेट कइल जा सकेला। उपयोगकर्ता केएमएल के उपयोग करके आपन खुद के डेटा जोड़ने खातिर प्रोग्राम के उपयोग कर सकेला आउर विभिन्न स्रोत, जइसे कि मंच चाहे ब्लॉग के माध्यम से अपलोड कर सकेला। गूगल अर्थ पृथिवी के सतह पर कई प्रकार के चित्र दिखावे में सक्षम बाटे आउर एगो वेब मैप सेवा क्लाइंट भी बाटे. 2019 में, गूगल खुलासा कइलस कि गूगल अर्थ अब दुनिया के 97 प्रतिशत से अधिका के कवर करेला, आऊ 10 मिलियन मील के स्ट्रीट व्यू छबि सभ के कैप्चर कइले बाटे।<ref>{{Cite web |date=December 13, 2019 |title=Google reveals just how much of the world it's mapped with Street View and Earth |url=https://www.theverge.com/2019/12/13/21020814/google-world-mapped-street-view-earth-square-miles |url-status=live |archive-url=https://web.archive.org/web/20220525062423/https://www.theverge.com/2019/12/13/21020814/google-world-mapped-street-view-earth-square-miles |archive-date=May 25, 2022 |access-date=December 18, 2021 |website=www.theverge.com |language=en}}</ref>
{{clear}}
== इहो देखल जाय ==
* [[गूगल मैप्स]]
* [[वर्चुअल ग्लोब]]
== संदर्भ ==
{{Reflist|33em}}
[[श्रेणी:गूगल सॉफ्टवेयर]]
{{Software-stub}}
e797i636b6cs2cdi5fcebol3odc6170
स्वास्तिक
0
97957
815298
814886
2026-11-12T16:42:43Z
SM7
3953
सुधार कइल गइल
815298
wikitext
text/x-wiki
[[File:Four-swastika collage (transparent).png|thumb|स्वस्तिक एगो अइसन सिंबल भा चीन्हा हवे जे कई ठे संस्कृति सभ में अलग-अलग इस्टाइल में आ अलग-अलग अरथ में इस्तेमाल होखे ला।]]
'''स्वास्तिक''' ({{Langx|sa|स्वस्तिकः}}) ('''卐''' भा '''卍''') एगो परंपरागत आ बहुत प्राचीन (पुरान) चीन्हा ह जवन यूरोपीय-एशियाई धर्म आ संस्कृतियन में, साथे-साथ कुछ अफ्रीकी आ अमेरिकियो संस्कृतियन में इस्तेमाल होखे ला। स्वस्तिक भारतीय धर्मन में, जइसे [[हिंदू धर्म]], [[बौद्ध धर्म]], आ [[जैन धर्म]] में, दिव्यता आ आध्यात्मिकता के प्रतीक के रूप में पहिलहूँ इस्तेमाल होखे आ अबहियों हो रहल बा।<ref name="britswast">{{cite encyclopedia |url=https://www.britannica.com/topic/swastika |title=Swastika |encyclopedia=[[Encyclopædia Britannica]] Online |access-date=2022-05-22}}</ref><ref name="BBC News 2014">{{cite magazine |url= https://www.bbc.com/news/magazine-29644591 |title=How the world loved the swastika – until Hitler stole it |first=Mukti Jain |last=Campion |date=2014-10-23 |magazine=BBC News Magazine |access-date=2022-01-11}}</ref><ref name="Olson">{{Cite journal |last=Olson |first=Jim |date=September 2020 |title=The Swastika Symbol in Native American Art |url=https://www.proquest.com/docview/2453170975 |journal=Whispering Wind |volume=48 |issue=3 |pages=23–25 |issn=0300-6565 |id={{ProQuest|2453170975}} |via=ProQuest}}</ref> [[पच्छिमी दुनिया]] में ई ब्यापक रूप से जर्मन [[नाजी पार्टी]] के निशान के रूप में जानल जाला, काहे कि उ लोग बीसवीं शताब्दी के सुरुआत में ए के अपन झंडा आ निशान खातिर अपनवलें। आजो दुनियाभर के [[नव-नाजी समूह]] एह चीन्हा के इस्तेमाल कइ रहल बाड़ें।<ref name="britswast" /><ref name="Cort 2001 17">{{cite book |last=Cort |first=John E. |author-link= |title=Jains in the World: Religious Values and Ideology in India |url= https://books.google.com/books?id=PZk-4HOMzsoC|publisher=[[Oxford University Press]] |date=2001 |isbn=978-0-19-513234-2 |page=17}}</ref> ई आमतौर पर एगो [[क्रॉस]] जइसन बनल होला, जवना के चारों भुजा एके लंबाई के होखे लीं आ अगल-बगल के भुजा से सीधा कोण बनावत 90 डिग्री पर मोड़ाइल होलीं।
"स्वस्तिक" शब्द [[संस्कृत]] भाषा के शब्द ह, जवना के मतलब होखे ला "कल्याणकारी" चाहे "मंगलदायक"। हिंदू धर्म में, दाहिना ओर मुड़ल (घड़ी के दिशा में) चीन्हा ({{char|卐}}) के स्वस्तिक कहल जाला, जे [[सुरुज|सुरुज (सूर्य)]], समृद्धि आ शुभता के निशानी हवे। जबकि, उल्टा घुमल चिन्ह ({{char|卍}}) के "सौवस्तिक" कहाला, जे राति चाहे हिंदू देवी [[काली]] के तांत्रिक पक्ष के चीन्हा मानल जाला। जैन धर्म में, स्वस्तिक जैन ध्वज के एगो मूलभूत हिस्सा ह आ सातवाँ [[तीर्थंकर]] [[सुपार्श्वनाथ]] के निशान मानल जाला। [[बौद्ध धर्म]] में, ई [[गौतम बुद्ध|बुद्ध]] के शुभ चरण चिह्न के रूप में इस्तेमाल होखे ला। अलग-अलग इंडो-यूरोपीय परंपरन में स्वस्तिक के [[आगि]], बिजली के कड़क (वज्र), आ सुरुज के प्रतीक मानल गइल बा। ई [[सिंधु घाटी सभ्यता]] आ समर्रा संस्कृति के पुरातात्त्विक अवशेष में भी मिले ला, साथे-साथ शुरुआती [[बाइजेंटाइन आर्ट|बाइजेंटाइन]] आ [[ईसाई धर्म|ईसाईयो]] कलाकृतिन में देखल गइल बा।
{{clear}}
== इहो देखल जाय ==
* [[स्वस्ति]]
* [[स्वस्तिवाचन]] भा स्वस्तिपाठ
* [[शांति मंत्र]]
* [[सिद्धासन|स्वास्तिकासन]]
== संदर्भ ==
{{Reflist|30em}}
[[श्रेणी:चीन्हा]]
{{Culture-stub}}
bjo05rszlihzbczzsc05sbt82yuit89
विकिपीडिया:आँकड़ा सभ/२०२६/नवंबर
4
101911
815332
815097
2026-11-12T19:21:35Z
NeechalBOT
7874
statistics
815332
wikitext
text/x-wiki
<!--- stats starts--->{{प्रयोगकर्ता:Neechalkaran/statnotice}}{| class="wikitable sortable" style="width:90%"
|-
! Date(Time)
! Pages
! Articles
! Edits
! Users
! Files
! Activeusers
{{User:Neechalkaran/template/daily
|Date =१-११-२०२६
|Pages = 82562
|dPages = 7
|Articles = 9375
|dArticles = 5
|Edits = 806955
|dEdits = 658
|Files = 54
|dFiles = 0
|Users = 40954
|dUsers = 8
|Ausers = 33
|dAusers = -5
}}
{{User:Neechalkaran/template/daily
|Date =२-११-२०२६
|Pages = 82573
|dPages = 11
|Articles = 9375
|dArticles = 0
|Edits = 807667
|dEdits = 712
|Files = 54
|dFiles = 0
|Users = 40958
|dUsers = 4
|Ausers = 33
|dAusers = 0
}}
{{User:Neechalkaran/template/daily
|Date =३-११-२०२६
|Pages = 82586
|dPages = 13
|Articles = 9380
|dArticles = 5
|Edits = 808495
|dEdits = 828
|Files = 54
|dFiles = 0
|Users = 40964
|dUsers = 6
|Ausers = 33
|dAusers = 0
}}
{{User:Neechalkaran/template/daily
|Date =४-११-२०२६
|Pages = 82590
|dPages = 4
|Articles = 9383
|dArticles = 3
|Edits = 808523
|dEdits = 28
|Files = 54
|dFiles = 0
|Users = 40967
|dUsers = 3
|Ausers = 35
|dAusers = 2
}}
{{User:Neechalkaran/template/daily
|Date =५-११-२०२६
|Pages = 82598
|dPages = 8
|Articles = 9390
|dArticles = 7
|Edits = 809622
|dEdits = 1099
|Files = 54
|dFiles = 0
|Users = 40973
|dUsers = 6
|Ausers = 35
|dAusers = 0
}}
{{User:Neechalkaran/template/daily
|Date =६-११-२०२६
|Pages = 82629
|dPages = 31
|Articles = 9406
|dArticles = 16
|Edits = 811179
|dEdits = 1557
|Files = 54
|dFiles = 0
|Users = 40978
|dUsers = 5
|Ausers = 35
|dAusers = 0
}}
{{User:Neechalkaran/template/daily
|Date =७-११-२०२६
|Pages = 82654
|dPages = 25
|Articles = 9418
|dArticles = 12
|Edits = 811387
|dEdits = 208
|Files = 54
|dFiles = 0
|Users = 40984
|dUsers = 6
|Ausers = 34
|dAusers = -1
}}
{{User:Neechalkaran/template/daily
|Date =८-११-२०२६
|Pages = 82661
|dPages = 7
|Articles = 9421
|dArticles = 3
|Edits = 811796
|dEdits = 409
|Files = 54
|dFiles = 0
|Users = 40990
|dUsers = 6
|Ausers = 34
|dAusers = 0
}}
{{User:Neechalkaran/template/daily
|Date =९-११-२०२६
|Pages = 82668
|dPages = 7
|Articles = 9425
|dArticles = 4
|Edits = 811837
|dEdits = 41
|Files = 54
|dFiles = 0
|Users = 40993
|dUsers = 3
|Ausers = 34
|dAusers = 0
}}
{{User:Neechalkaran/template/daily
|Date =१०-११-२०२६
|Pages = 82673
|dPages = 5
|Articles = 9427
|dArticles = 2
|Edits = 811867
|dEdits = 30
|Files = 54
|dFiles = 0
|Users = 41001
|dUsers = 8
|Ausers = 30
|dAusers = -4
}}
{{User:Neechalkaran/template/daily
|Date =११-११-२०२६
|Pages = 82687
|dPages = 14
|Articles = 9435
|dArticles = 8
|Edits = 812000
|dEdits = 133
|Files = 54
|dFiles = 0
|Users = 41005
|dUsers = 4
|Ausers = 30
|dAusers = 0
}}
{{User:Neechalkaran/template/daily
|Date =१२-११-२०२६
|Pages = 82703
|dPages = 16
|Articles = 9441
|dArticles = 6
|Edits = 812227
|dEdits = 227
|Files = 54
|dFiles = 0
|Users = 41010
|dUsers = 5
|Ausers = 30
|dAusers = 0
}}
<!---Place new stats here--->
|}
<!--- stats ends--->
jhk4p6846quqjw68u4syz4y2onbfq18
प्रयोगकर्ता वार्ता:GAUTAM KR GODARA
3
102049
815170
2026-11-12T15:04:18Z
नया सदस्य स्वागतकर्ता
6624
Adding [[Welcome|welcome message]] to new user's talk page
815170
wikitext
text/x-wiki
{| id="GeoPort-upper" width="100%" cellpadding="5" cellspacing="6" style="background:#FFFAFF; text-align: justify; border-style:ridge; border-width:1px; border-color:#A9A9A9;"
|-
|<div style="display:inline-block;margin-top:.1em; text-align:right; margin-bottom:.2em; border-bottom:0; font-weight:bold;"><big>Welcome! स्वागतम्!</big> [[File:Crystal Clear app ksmiletris.png|25px]] </div>
राउर बहुत-बहुत स्वागत बा '''{{BASEPAGENAME}}''' जी ! {{#if: | {{{1}}} | }}<br/>
<div style="float:right; <!--background:#F5F5DC;--> width:30%">
<!-- दाहिना साइडबार -->
{| border="5" cellspacing="10" cellpadding="5" height="50" align=center border=0 style="background: transparent"
|-
| <big>'''ई जरूर पढ़ल जाय:'''</big>
|-
| style="background-color:#FFFFFF; border: solid 2px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:विकिपीडिया का ना हवे|विकिपीडिया का ना हवे?]]
|-
| style="background-color:#FFFFFF; border: solid 2px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:भोजपुरी में कइसे टाइप करब?|भोजपुरी में टाइपिंग]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:सत्यापन जोग|प्रमाणित बात लिखीं]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[मदद:फुटनोट|संदर्भ कइसे जोड़ीं?]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:नीति अउरी दिसानिर्देस|विकिनीति आ निर्देश]]
|}</div>
<!-- मुख्य पाठ -->
'''{{#if: | {{{1}}} | {{BASEPAGENAME}} }} जी''',
एह समय रउँआ [[विकिमीडिया फाउन्डेशन]] के परियोजना [[भोजपुरी]] [[विकिपीडिया]] पर बाड़ीं। भोजपुरी विकिपीडिया एगो मुक्त डिजिटल [[ज्ञानकोश]] हवे, जेवन अइसन भइया-बहिनी लोग मिल के लिखले बा जे ज्ञान बाँटे में बिस्वास करत बाटे। एह समय ए परियोजना में [[विशेष:ActiveUsers|{{NUMBEROFUSERS}} सदस्य]] लोग शामिल बाटे। ई बहुते खुशी क बाति बा कि रउँओं ए में शामिल हो गइल बाड़ीं।
* पहिले से बनल [[विकिपीडिया:लेख|लेखवन]] में कौनो संपादन खाली टेस्ट करे खातिर मत करीं। कौनों तरह के परीक्षण <small>(प्रयोग या टेस्टिंग)</small> [[विकिपीडिया:अभ्यास पन्ना|अभ्यास पन्ना]] या [[Special:MyPage/sandbox|अपना अभ्यास पन्ना]] पर करीं।
* [[विकिपीडिया:आपन परिचय कइसे देईं?|आपन परिचय]] आप संछेप में [[प्रयोगकर्ता:{{BASEPAGENAME}}|अपना सदस्य पन्ना]] पर दे सकत बानी। बहुत पर्सनल बात इहाँ मत लिखीं, न कौनों परचार वाली बात लिखीं। अपने खुद के बारे में लेख मत बनाईं।
* दुसरा [[विकिपीडिया:चौपाल |सदस्य लोगन से बात]] करत समय, [[मदद:वार्ता पन्ना|बातचीत पन्ना]] पर सनेसा लिखले की बाद आपन [[विकिपीडिया:दसखत|दसखत]] <small>(हस्ताक्षर)</small> जरूर करीं। एकरा खातिर अंत में चार गो टेढ़का डैश (<nowiki>~~~~</nowiki>) लिख देंईं या टूलबार में [[File:Insert-signature2.svg|link=|alt=]] पर क्लिक करीं।
* मदद चाहत होखीं त विकिपीडिया के [[विकिपीडिया:मदद|मदद पन्ना]] पर जाईं।
<!-- फुटर के कड़ी सभ -->
सीखे-समझे खातिर कुछ अउरी कड़ी नीचे दिहल जात बाटे:
{| border="5" cellspacing="1" cellpadding="0" height="50" align=center border=0 style="background: transparent"
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 10px;" | [[विकिपीडिया:स्वशिक्षा|शुरू से सीखीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[मदद:संपादन|संपादन सीखीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:नया लेख कइसे सुरू करीं?|नया लेख]]
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:अइसन लेख मना बाटे|लेख मनाहीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:पंचशील|पंचशील]]
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:समुदाय पोर्टल|सदस्य समाज पन्ना]]
|}
|}
-- [[प्रयोगकर्ता:नया सदस्य स्वागतकर्ता|नया सदस्य स्वागतकर्ता]] ([[प्रयोगकर्ता वार्ता:नया सदस्य स्वागतकर्ता|बात करीं]]) 15:04, 12 नवंबर 2026 (UTC)
1p87hp4if197ar9bylf8avp194prex6
Module:Cite IUCN
828
102050
815192
2018-10-18T08:42:48Z
en>Jts1882
0
create outline module to handle iucn references
815192
Scribunto
text/plain
local p = {}
function p.main(frame)
local taxon = mw.getCurrentFrame():getParent().args['taxon']
return taxon
end
return p
9a0n3sufu73izo71zgk6q9d9ao2htf3
815193
815192
2018-10-18T08:54:32Z
en>Jts1882
0
add assessors and output cite journal string for testing (will use expand templates later)
815193
Scribunto
text/plain
local p = {}
function p.main(frame)
local reference = ""
local taxon = mw.getCurrentFrame():getParent().args['taxon']
reference = '{{cite journal |' .. taxon
local maxAssessors = 20
local assessorNumber =0
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = mw.getCurrentFrame():getParent().args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |assessor' .. assessorNumber .. '=' .. assessorName
end
end
reference = reference .. ' }}'
return reference
end
return p
q6c2qm5t1bklfgq64s0pib5ym8t6a1z
815194
815193
2018-10-18T09:23:26Z
en>Jts1882
0
add other parameters
815194
Scribunto
text/plain
local p = {}
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. ' |version='.. version
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id
reference = reference .. ' }}'
return frame:preprocess(reference)
--return reference
end
return p
cntk1iyqmqs24w6prn1er9h1q70t6mg
815195
815194
2018-10-18T10:08:50Z
en>Jts1882
0
create cite function for {{tl|cite iucn}}
815195
Scribunto
text/plain
local p = {}
--[[ function to take cite journal parameters and convert page and link
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
--]]
function p.cite(frame)
local parents = mw.getCurrentFrame():getParent()
--[[we only want o make changes if there is old-style url, i.e. one containing "/details/"
local url = parents.args['url']
if string.gmatch( url, "details" ) then
end
local page = parents.args['page']
--
local speciesID = string.gmatch( page, pattern )
local speciesAssessment = ""
]]
return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. ' |version='.. version
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id
reference = reference .. ' }}'
return frame:preprocess(reference)
--return reference
end
return p
2y116it2xlh6trnw5jofqzy847v0zfn
815196
815195
2018-10-18T11:09:26Z
en>Jts1882
0
make copy of tempate arguments and change if old format url (dummy change for now)
815196
Scribunto
text/plain
local p = {}
--[[ function to take cite journal parameters and convert page and link
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
--]]
function p.cite(frame)
local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation templare
for k,v in pairs(parents.args) do
templateArgs[k]=parents.args[k]
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local test = string.find( url, "details" , 1, true)
if test then
templateArgs['title'] = "old style tiger"
end
local page = parents.args['page']
--
--local speciesID = string.gmatch( page, pattern )
local speciesAssessment = ""
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. ' |version='.. version
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id
reference = reference .. ' }}'
return frame:preprocess(reference)
--return reference
end
return p
6sebb4tdxl3054imxdf5pfle7ouhldg
815197
815196
2018-10-18T11:48:24Z
en>Jts1882
0
split electronic page number and use parts or create new style url
815197
Scribunto
text/plain
local p = {}
--[[ function to take cite journal parameters and convert page and link
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
--]]
function p.cite(frame)
local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
for k,v in pairs(parents.args) do
templateArgs[k]=parents.args[k]
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = parents.args['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. ' |version='.. version
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id
reference = reference .. ' }}'
return frame:preprocess(reference)
--return reference
end
return p
qtbw0b014sbzymu7sunt3c92pffisvr
815198
815197
2018-10-18T12:11:39Z
en>Jts1882
0
add parameters for IUCN template
815198
Scribunto
text/plain
local p = {}
--[[ function to take cite journal parameters and convert page and link
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
--]]
function p.cite(frame)
local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
for k,v in pairs(parents.args) do
templateArgs[k]=parents.args[k]
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = parents.args['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
lc4vo72s9174du145xy3xgbzooieuwy
815199
815198
2018-10-24T07:13:28Z
en>Jts1882
0
use second parameter for assessment rather than adding to id (use id/assessment)
815199
Scribunto
text/plain
local p = {}
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
for k,v in pairs(parents.args) do
templateArgs[k]=parents.args[k]
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = parents.args['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local assessment = parents.args['assessment'] or ""
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number us
reference = reference .. '|url=https://www.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
efre31t5hsb045xpj5h3iauqy6r5fge
815200
815199
2018-10-24T07:16:41Z
en>Jts1882
0
use oldredlist.iucnredlist.org if no electronic number
815200
Scribunto
text/plain
local p = {}
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
for k,v in pairs(parents.args) do
templateArgs[k]=parents.args[k]
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = parents.args['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local assessment = parents.args['assessment'] or ""
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=https://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
bxxpe9cnn2ltvvy9mplw14u4emrkw9d
815201
815200
2018-10-24T07:18:37Z
en>Jts1882
0
http, not https
815201
Scribunto
text/plain
local p = {}
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
for k,v in pairs(parents.args) do
templateArgs[k]=parents.args[k]
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = parents.args['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local assessment = parents.args['assessment'] or ""
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
8mgckrxwjgsdcijzbjdgbbq1qnmytxs
815202
815201
2018-10-25T13:05:55Z
en>Jts1882
0
function to check arguments
815202
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon = parents.args['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if parents.args['assessor'] and parents.args['assessor'] ~= "" then -- if 'assessor' instead of 'assessor1'
parents.args['assessor1'] = parents.args['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = parents.args['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
end
local year = parents.args['year']
local id = parents.args['id']
local assessment = parents.args['assessment'] or ""
local version = parents.args['version']
local doi = parents.args['doi'] or ""
local accessdate = parents.args['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
jsi9o794lp5yscizw8woja8v6kng8q0
815203
815202
2018-10-25T13:14:22Z
en>Jts1882
0
checks args in main function and add assessor-links
815203
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
if templateArgs['assessor'] then -- if 'assessor' instead of 'assessor1'
templateArgs['assessor1'] = templateArgs['assessor']
end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link'] or ""
if assessorLink ~= "" then
reference = reference .. ' |author-link' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
7sfs7gdnj7ldfsza9qtuiiricpnlchm
815204
815203
2018-10-25T13:30:30Z
en>Jts1882
0
fix assessor link in main
815204
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url']
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
2awkfb1gfspqcx3y9xbhio4fkil0xw3
815205
815204
2018-10-25T14:19:40Z
en>Jts1882
0
make sure url not nil
815205
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
008is4g4acfjlqc2v266j7oqzn4mml4
815206
815205
2018-10-26T07:26:54Z
en>Jts1882
0
add amended parameter to take text for amended assessments
815206
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
bhwd84n4t0xg6wsaor7e5mjmsocb90f
815207
815206
2018-10-30T18:13:31Z
en>Jts1882
0
try template wrapper
815207
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
templateArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
templateArgs['_template'] = "cite journal"
local wrapper = require("Module:Template wrapper/sandbox")
local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
xframe.args['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
-- parents.args['_template'] = "cite journal"
-- but why is xframe.args['_template'] not passed? something to do with frame being a metatable?
return wrapper.wrap(xframe)
--return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
5q903m444c6jjx9cyvl1x217d0qgl6p
815208
815207
2018-11-08T16:43:36Z
en>Jts1882
0
version using template wrapper for alias mapping
815208
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
wrapperArgs['_template'] = "cite journal"
frame.args=wrapperArgs --templateArgs
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
30b0qjei3a85p4hs6c6jyxubamjtfi5
815209
815208
2018-11-08T17:10:44Z
en>Jts1882
0
exclude parent url and add modified url
815209
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
wrapperArgs['trans-title'] = templateArgs['trans-title']
wrapperArgs['url']=templateArgs['url']
frame.args=wrapperArgs --templateArgs
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
fys94wk8j3kjn21o9p78ctnh28vp3b0
815210
815209
2018-11-08T17:23:03Z
en>Jts1882
0
add new style url if not given
815210
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old or url == "" then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
wrapperArgs['trans-title'] = templateArgs['trans-title']
wrapperArgs['url']=templateArgs['url']
frame.args=wrapperArgs --templateArgs
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
0b1buk12e8ok8j88nd6i4zef3yzmeze
815211
815210
2018-11-08T17:43:10Z
en>Jts1882
0
add handling of absent url
815211
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
wrapperArgs['trans-title'] = templateArgs['trans-title']
wrapperArgs['url']=templateArgs['url']
frame.args=wrapperArgs --templateArgs
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
hvasia215vo4x6lf2e4nx6otibuebz4
815212
815211
2018-11-08T17:54:45Z
en>Jts1882
0
add oldlist url for id if no url given
815212
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if url == "" and templateArgs['id'] then -- use oldstyle url
url = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
end
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
wrapperArgs['trans-title'] = templateArgs['trans-title']
wrapperArgs['url']=templateArgs['url']
frame.args=wrapperArgs --templateArgs
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
tokacg4vulxmxnkuvcza8mfi0umtusj
815213
815212
2018-11-08T17:58:57Z
en>Jts1882
0
set arg
815213
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if url == "" and templateArgs['id'] then -- use oldstyle url
templateArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
wrapperArgs['trans-title'] = templateArgs['trans-title']
wrapperArgs['url']=templateArgs['url']
frame.args=wrapperArgs --templateArgs
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
q4zssvo91szqf4xq352080i78h34xi2
815214
815213
2018-11-08T18:05:52Z
en>Jts1882
0
add journal and volume parameters for oldstyle reference
815214
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if url == "" and templateArgs['id'] then -- use oldstyle url
templateArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
templateArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
templateArgs['volume'] = templateArgs['version']
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
wrapperArgs['trans-title'] = templateArgs['trans-title']
wrapperArgs['url']=templateArgs['url']
frame.args=wrapperArgs --templateArgs
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
8kczs1fx5pugvn9ta688qdcxseknhm1
815215
815214
2018-11-08T18:14:31Z
en>Jts1882
0
reorganise and add journal/volume for old style
815215
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
m5a4evid652wcapsjc4flqcd06yvsi0
815216
815215
2018-11-08T18:17:36Z
en>Jts1882
0
add version text
815216
Scribunto
text/plain
local p = {}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
jhh11ruzv2jo3cupjqmol21so6mpems
815217
815216
2018-11-09T17:57:49Z
en>Jts1882
0
add data table to contain information for wrapper
815217
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
c5qtpgsecmkfc1mh04h5incz90mj6a9
815218
815217
2019-01-24T21:24:24Z
en>MusikAnimal
0
Protected "[[Module:Iucn]]": [[Wikipedia:High-risk templates|High-risk module]] ([Edit=Require autoconfirmed or confirmed access] (indefinite))
815217
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page']
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year='.. year
reference = reference .. " |version=''Version ".. version .. "''"
reference = reference .. ' |journal=[[The IUCN Red List of Threatened Species]]'
reference = reference .. ' |accessdate='.. accessdate
reference = reference .. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
c5qtpgsecmkfc1mh04h5incz90mj6a9
815219
815218
2019-04-12T05:06:50Z
en>Johnuniq
0
fix "Lua error in Module:Iucn at line 42: bad argument #1 to 'match' (string expected, got nil)" at [[Central African egg-eating snake]]; clean whitespace and minor tweaks
815219
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference ..
' |year=' .. year
" |version=''Version ".. version .. "''" ..
' |journal=[[The IUCN Red List of Threatened Species]]' ..
' |accessdate='.. accessdate ..
' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
nxfnk3ojsm9s0ez0594xitk3s4guq1f
815220
815219
2019-11-11T16:07:00Z
en>Jts1882
0
fix syntax error
815220
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
end
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
adkm1hp6ir9d38hzjdg0mrxkc1w5tpf
815221
815220
2019-12-15T08:14:12Z
en>Jts1882
0
add assessor aliases and defaults for journal and url (where possible)
815221
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
--local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
else
--templateArgs['url'] = string.gsub(templateArgs['url'], "details", "species") -- this sometimes works
end
end
-- if no url, create one if id or electronic
if url == "" then
local id = templateArgs['id']
local page = templateArgs['page']
if not id and page then
local speciesID, speciesAssessment = string.match( page, "T(%d+)A(%d+)" )
if speciesID and speciesAssessment then
id = speciesID .. '/' .. speciesAssessment
end
end
if id then
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. id -- 22718348/137417893
else
mw.addWarning("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
templateArgs['id'] = nil -- not a cite journal parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
o1jxe9ypp2tdib6qfgm6bykwlwyvldt
815222
815221
2019-12-15T08:41:19Z
en>Jts1882
0
extra aliases
815222
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
k = k:gsub("taxon", "title")
k = k:gsub("downloaded","access-date")
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
else
templateArgs['url'] = string.gsub(templateArgs['url'], "http:", "https:") -- sometimes works with redirect on iucn site
end
end
-- if no url, create one if id or electronic
if url == "" then
local id = templateArgs['id']
local page = templateArgs['page']
if not id and page then
local speciesID, speciesAssessment = string.match( page, "T(%d+)A(%d+)" )
if speciesID and speciesAssessment then
id = speciesID .. '/' .. speciesAssessment
end
end
if id then
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. id -- 22718348/137417893
else
mw.addWarning("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
templateArgs['id'] = nil -- not a cite journal parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
hal82nj1phgxggxkagv6kxf51v56aaf
815223
815222
2019-12-15T09:43:08Z
en>Johnuniq
0
fix "Lua error in Module:Iucn at line 18: attempt to index local 'k' (a number value)" in, for example, [[Black-footed cat]]
815223
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
else
templateArgs['url'] = string.gsub(templateArgs['url'], "http:", "https:") -- sometimes works with redirect on iucn site
end
end
-- if no url, create one if id or electronic
if url == "" then
local id = templateArgs['id']
local page = templateArgs['page']
if not id and page then
local speciesID, speciesAssessment = string.match( page, "T(%d+)A(%d+)" )
if speciesID and speciesAssessment then
id = speciesID .. '/' .. speciesAssessment
end
end
if id then
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. id -- 22718348/137417893
else
mw.addWarning("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
templateArgs['id'] = nil -- not a cite journal parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['taxon']
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
41cfvklsmxy7g60d296i0lvmy9tm5fr
815224
815223
2019-12-15T11:10:05Z
en>Jts1882
0
fix error using aliased parameter
815224
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
else
templateArgs['url'] = string.gsub(templateArgs['url'], "http:", "https:") -- sometimes works with redirect on iucn site
end
end
-- if no url, create one if id or electronic
if url == "" then
local id = templateArgs['id']
local page = templateArgs['page']
if not id and page then
local speciesID, speciesAssessment = string.match( page, "T(%d+)A(%d+)" )
if speciesID and speciesAssessment then
id = speciesID .. '/' .. speciesAssessment
end
end
if id then
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. id -- 22718348/137417893
else
mw.addWarning("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
if templateArgs['amended'] then templateArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
templateArgs['id'] = nil -- not a cite journal parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
7c7ryvtd332iqkv8ct1hy46sh3cqf2c
815225
815224
2019-12-15T12:45:53Z
en>Jts1882
0
add default volume param and clear amended param
815225
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
else
templateArgs['url'] = string.gsub(templateArgs['url'], "http:", "https:") -- sometimes works with redirect on iucn site
end
end
-- if no url, create one if id or electronic
if url == "" then
local id = templateArgs['id']
local page = templateArgs['page']
if not id and page then
local speciesID, speciesAssessment = string.match( page, "T(%d+)A(%d+)" )
if speciesID and speciesAssessment then
id = speciesID .. '/' .. speciesAssessment
end
end
if id then
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. id -- 22718348/137417893
else
mw.addWarning("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
templateArgs['id'] = nil -- not a cite journal parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
4ebia5xsdszg8yfohfc5phymsrf2cgp
815226
815225
2019-12-16T07:49:44Z
en>Jts1882
0
journal is alias for work
815226
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
else
templateArgs['url'] = string.gsub(templateArgs['url'], "http:", "https:") -- sometimes works with redirect on iucn site
end
end
-- if no url, create one if id or electronic
if url == "" then
local id = templateArgs['id']
local page = templateArgs['page']
if not id and page then
local speciesID, speciesAssessment = string.match( page, "T(%d+)A(%d+)" )
if speciesID and speciesAssessment then
id = speciesID .. '/' .. speciesAssessment
end
end
if id then
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. id -- 22718348/137417893
else
mw.addWarning("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
templateArgs['id'] = nil -- not a cite journal parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
go4img2pbyw3n4op1qajvca95m0wdpl
815227
815226
2019-12-16T12:37:58Z
en>Trappist the monk
0
add |doi-access=free when |doi= present and correct; add unconditional |publisher=; comment on misuse of |trans-title=; comment on |id=;
815227
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local templateArgs = {}
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local old = string.find( url, "details" , 1, true)
if old then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
else
templateArgs['url'] = string.gsub(templateArgs['url'], "http:", "https:") -- sometimes works with redirect on iucn site
end
end
-- if no url, create one if id or electronic
if url == "" then
local id = templateArgs['id']
local page = templateArgs['page']
if not id and page then
local speciesID, speciesAssessment = string.match( page, "T(%d+)A(%d+)" )
if speciesID and speciesAssessment then
id = speciesID .. '/' .. speciesAssessment
end
end
if id then
templateArgs['url'] = "https://www.iucnredlist.org/species/" .. id -- 22718348/137417893
else
mw.addWarning("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
templateArgs['id'] = nil -- not a cite journal parameter -- actually, this is a legitimate cs1|2 parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs }
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
m4l27zcu6kem1mbldw1iemhe1or5nyp
815228
815227
2019-12-17T19:59:59Z
en>Trappist the monk
0
add error detection and messaging categorization; refactored some, tweaked and modified some;
815228
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_species_ID, doi_species_assesment
local page_species_ID, page_species_assesment
local id_species_ID, id_species_assesment
local msg
if args.doi then
doi_species_ID, doi_species_assesment = args.doi:match ('T(%d+)A(%d+)')
if not doi_species_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_species_ID, page_species_assesment = args.page:match ('T(%d+)A(%d+)')
if not page_species_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_species_ID, id_species_assesment = args.id:match ('(%d+)/(%d+)')
if not id_species_ID then
msg = 'malformed |id= identifier'
end
end
if not msg then
if doi_species_ID and page_species_ID then
if not (doi_species_ID == page_species_ID and doi_species_assesment == page_species_assesment) then
msg = '|doi= / |page= mismatch'
end
end
if doi_species_ID and id_species_ID then
if not (doi_species_ID == id_species_ID and doi_species_assesment == id_species_assesment) then
msg = '|doi= / |id= mismatch'
end
end
if page_species_ID and id_species_ID then
if not (page_species_ID == id_species_ID and page_species_assesment == id_species_assesment) then
msg = '|page= / |id= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>[[Category:cite iucn errors]]'
end
return doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (vol ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local doi_species_ID, doi_species_assesment -- all of these contain the same identifying info in slightly
local page_species_ID, page_species_assesment -- different forms. when any combination of these is present,
local id_species_ID, id_species_assesment -- they must all agree
local msg -- this holds error messages; nil on success
doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs.url
if url and url:find ('/details/', 1, true) then
if page_species_ID and page_species_assesment then
templateArgs.url = "https://www.iucnredlist.org/species/" .. page_species_ID .. '/' .. page_species_assesment
else
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url')
end
-- if no url, create one if id or electronic
if not (url or templateArgs.doi) then -- don't need |url= if |doi= is present
local id = (id_species_ID and (id_species_ID .. '/' .. id_species_assesment)) or (page_species_ID and (page_species_ID .. '/' .. page_species_assesment)) or nil
if id then
templateArgs.url = "https://www.iucnredlist.org/species/" .. id
else
table.insert (maint_msgs, 'no url') -- TODO: raise this to error status?
-- mw.addWarning ("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
templateArgs['id'] = nil -- not a cite journal parameter -- actually, this is a legitimate cs1|2 parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- category when in mainspace
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
oh4lmk7hun0kgt5z5sruhv5towqhlj9
815229
815228
2019-12-17T20:07:37Z
en>Trappist the monk
0
815229
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_species_ID, doi_species_assesment
local page_species_ID, page_species_assesment
local id_species_ID, id_species_assesment
local msg
if args.doi then
doi_species_ID, doi_species_assesment = args.doi:match ('T(%d+)A(%d+)')
if not doi_species_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_species_ID, page_species_assesment = args.page:match ('T(%d+)A(%d+)')
if not page_species_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_species_ID, id_species_assesment = args.id:match ('(%d+)/(%d+)')
if not id_species_ID then
msg = 'malformed |id= identifier'
end
end
if not msg then
if doi_species_ID and page_species_ID then
if not (doi_species_ID == page_species_ID and doi_species_assesment == page_species_assesment) then
msg = '|doi= / |page= mismatch'
end
end
if doi_species_ID and id_species_ID then
if not (doi_species_ID == id_species_ID and doi_species_assesment == id_species_assesment) then
msg = '|doi= / |id= mismatch'
end
end
if page_species_ID and id_species_ID then
if not (page_species_ID == id_species_ID and page_species_assesment == id_species_assesment) then
msg = '|page= / |id= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>[[Category:cite iucn errors]]'
end
return doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local doi_species_ID, doi_species_assesment -- all of these contain the same identifying info in slightly
local page_species_ID, page_species_assesment -- different forms. when any combination of these is present,
local id_species_ID, id_species_assesment -- they must all agree
local msg -- this holds error messages; nil on success
doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs.url
if url and url:find ('/details/', 1, true) then
if page_species_ID and page_species_assesment then
templateArgs.url = "https://www.iucnredlist.org/species/" .. page_species_ID .. '/' .. page_species_assesment
else
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url')
end
-- if no url, create one if id or electronic
if not (url or templateArgs.doi) then -- don't need |url= if |doi= is present
local id = (id_species_ID and (id_species_ID .. '/' .. id_species_assesment)) or (page_species_ID and (page_species_ID .. '/' .. page_species_assesment)) or nil
if id then
templateArgs.url = "https://www.iucnredlist.org/species/" .. id
else
table.insert (maint_msgs, 'no url') -- TODO: raise this to error status?
-- mw.addWarning ("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
templateArgs['id'] = nil -- not a cite journal parameter -- actually, this is a legitimate cs1|2 parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- category when in mainspace
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
7bsyxuj58k7r7au8wo9mv1ouq878dap
815230
815229
2019-12-17T20:20:08Z
en>Trappist the monk
0
815230
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_species_ID, doi_species_assesment
local page_species_ID, page_species_assesment
local id_species_ID, id_species_assesment
local msg
if args.doi then
doi_species_ID, doi_species_assesment = args.doi:match ('T(%d+)A(%d+)')
if not doi_species_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_species_ID, page_species_assesment = args.page:match ('T(%d+)A(%d+)')
if not page_species_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_species_ID, id_species_assesment = args.id:match ('(%d+)/(%d+)')
if not id_species_ID then
msg = 'malformed |id= identifier'
end
end
if not msg then
if doi_species_ID and page_species_ID then
if not (doi_species_ID == page_species_ID and doi_species_assesment == page_species_assesment) then
msg = '|doi= / |page= mismatch'
end
end
if doi_species_ID and id_species_ID then
if not (doi_species_ID == id_species_ID and doi_species_assesment == id_species_assesment) then
msg = '|doi= / |id= mismatch'
end
end
if page_species_ID and id_species_ID then
if not (page_species_ID == id_species_ID and page_species_assesment == id_species_assesment) then
msg = '|page= / |id= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local doi_species_ID, doi_species_assesment -- all of these contain the same identifying info in slightly
local page_species_ID, page_species_assesment -- different forms. when any combination of these is present,
local id_species_ID, id_species_assesment -- they must all agree
local msg -- this holds error messages; nil on success
doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs.url
if url and url:find ('/details/', 1, true) then
if page_species_ID and page_species_assesment then
templateArgs.url = "https://www.iucnredlist.org/species/" .. page_species_ID .. '/' .. page_species_assesment
else
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url')
end
-- if no url, create one if id or electronic
if not (url or templateArgs.doi) then -- don't need |url= if |doi= is present
local id = (id_species_ID and (id_species_ID .. '/' .. id_species_assesment)) or (page_species_ID and (page_species_ID .. '/' .. page_species_assesment)) or nil
if id then
templateArgs.url = "https://www.iucnredlist.org/species/" .. id
else
table.insert (maint_msgs, 'no url') -- TODO: raise this to error status?
-- mw.addWarning ("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
templateArgs['id'] = nil -- not a cite journal parameter -- actually, this is a legitimate cs1|2 parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
lhech6bxgyb26wyyusmubjrxtjf4nc4
815231
815230
2019-12-17T22:51:43Z
en>Trappist the monk
0
815231
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_species_ID, doi_species_assesment
local page_species_ID, page_species_assesment
local id_species_ID, id_species_assesment
local msg
if args.doi then
doi_species_ID, doi_species_assesment = args.doi:match ('T(%d+)A(%d+)')
if not doi_species_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_species_ID, page_species_assesment = args.page:match ('T(%d+)A(%d+)')
if not page_species_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_species_ID, id_species_assesment = args.id:match ('(%d+)/(%d+)')
if not id_species_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then -- must be a 'new-form' url
url_species_ID, url_species_assesment = args.url:match ('/species/(%d+)/(%d+)')
end
if not msg then
if doi_species_ID and page_species_ID then
if not (doi_species_ID == page_species_ID and doi_species_assesment == page_species_assesment) then
msg = '|doi= / |page= mismatch'
end
end
if doi_species_ID and id_species_ID then
if not (doi_species_ID == id_species_ID and doi_species_assesment == id_species_assesment) then
msg = '|doi= / |id= mismatch'
end
end
if doi_species_ID and url_species_ID then
if not (doi_species_ID == url_species_ID and doi_species_assesment == url_species_assesment) then
msg = '|doi= / |url= mismatch'
end
end
if page_species_ID and id_species_ID then
if not (page_species_ID == id_species_ID and page_species_assesment == id_species_assesment) then
msg = '|page= / |id= mismatch'
end
end
if page_species_ID and url_species_ID then
if not (page_species_ID == url_species_ID and page_species_assesment == url_species_assesment) then
msg = '|page= / |url= mismatch'
end
end
if id_species_ID and url_species_ID then
if not (id_species_ID == url_species_ID and id_species_assesment == url_species_assesment) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local doi_species_ID, doi_species_assesment -- all of these contain the same identifying info in slightly
local page_species_ID, page_species_assesment -- different forms. when any combination of these is present,
local id_species_ID, id_species_assesment -- they must all agree
local msg -- this holds error messages; nil on success
doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs.url
if url and url:find ('/details/', 1, true) then
if page_species_ID and page_species_assesment then
templateArgs.url = "https://www.iucnredlist.org/species/" .. page_species_ID .. '/' .. page_species_assesment
else
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url')
end
-- if no url, create one if id or electronic
if not (url or templateArgs.doi) then -- don't need |url= if |doi= is present
local id = (id_species_ID and (id_species_ID .. '/' .. id_species_assesment)) or (page_species_ID and (page_species_ID .. '/' .. page_species_assesment)) or nil
if id then
templateArgs.url = "https://www.iucnredlist.org/species/" .. id
else
table.insert (maint_msgs, 'no url') -- TODO: raise this to error status?
-- mw.addWarning ("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
templateArgs['id'] = nil -- not a cite journal parameter -- actually, this is a legitimate cs1|2 parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
21ui0gh225dog1edohyqr3k141kxb72
815232
815231
2019-12-17T23:00:53Z
en>Trappist the monk
0
815232
Scribunto
text/plain
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_species_ID, doi_species_assesment
local page_species_ID, page_species_assesment
local id_species_ID, id_species_assesment
local url_species_ID, url_species_assesment
local msg
if args.doi then
doi_species_ID, doi_species_assesment = args.doi:match ('T(%d+)A(%d+)')
if not doi_species_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_species_ID, page_species_assesment = args.page:match ('T(%d+)A(%d+)')
if not page_species_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_species_ID, id_species_assesment = args.id:match ('(%d+)/(%d+)')
if not id_species_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_species_ID, url_species_assesment = args.url:match ('/species/(%d+)/(%d+)')
if not url_species_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_species_ID and page_species_ID then
if not (doi_species_ID == page_species_ID and doi_species_assesment == page_species_assesment) then
msg = '|doi= / |page= mismatch'
end
end
if doi_species_ID and id_species_ID then
if not (doi_species_ID == id_species_ID and doi_species_assesment == id_species_assesment) then
msg = '|doi= / |id= mismatch'
end
end
if doi_species_ID and url_species_ID then
if not (doi_species_ID == url_species_ID and doi_species_assesment == url_species_assesment) then
msg = '|doi= / |url= mismatch'
end
end
if page_species_ID and id_species_ID then
if not (page_species_ID == id_species_ID and page_species_assesment == id_species_assesment) then
msg = '|page= / |id= mismatch'
end
end
if page_species_ID and url_species_ID then
if not (page_species_ID == url_species_ID and page_species_assesment == url_species_assesment) then
msg = '|page= / |url= mismatch'
end
end
if id_species_ID and url_species_ID then
if not (id_species_ID == url_species_ID and id_species_assesment == url_species_assesment) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local doi_species_ID, doi_species_assesment -- all of these contain the same identifying info in slightly
local page_species_ID, page_species_assesment -- different forms. when any combination of these is present,
local id_species_ID, id_species_assesment -- they must all agree
local msg -- this holds error messages; nil on success
doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs.url
if url and url:find ('/details/', 1, true) then
if page_species_ID and page_species_assesment then
templateArgs.url = "https://www.iucnredlist.org/species/" .. page_species_ID .. '/' .. page_species_assesment
else
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url')
end
-- if no url, create one if id or electronic
if not (url or templateArgs.doi) then -- don't need |url= if |doi= is present
local id = (id_species_ID and (id_species_ID .. '/' .. id_species_assesment)) or (page_species_ID and (page_species_ID .. '/' .. page_species_assesment)) or nil
if id then
templateArgs.url = "https://www.iucnredlist.org/species/" .. id
else
table.insert (maint_msgs, 'no url') -- TODO: raise this to error status?
-- mw.addWarning ("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
templateArgs['id'] = nil -- not a cite journal parameter -- actually, this is a legitimate cs1|2 parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
l97puha3c3nk6cs3ubceremjo0m03kj
815233
815232
2019-12-17T23:04:04Z
en>Trappist the monk
0
815233
Scribunto
text/plain
require('Module:No globals');
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_species_ID, doi_species_assesment
local page_species_ID, page_species_assesment
local id_species_ID, id_species_assesment
local url_species_ID, url_species_assesment
local msg
if args.doi then
doi_species_ID, doi_species_assesment = args.doi:match ('T(%d+)A(%d+)')
if not doi_species_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_species_ID, page_species_assesment = args.page:match ('T(%d+)A(%d+)')
if not page_species_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_species_ID, id_species_assesment = args.id:match ('(%d+)/(%d+)')
if not id_species_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_species_ID, url_species_assesment = args.url:match ('/species/(%d+)/(%d+)')
if not url_species_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_species_ID and page_species_ID then
if not (doi_species_ID == page_species_ID and doi_species_assesment == page_species_assesment) then
msg = '|doi= / |page= mismatch'
end
end
if doi_species_ID and id_species_ID then
if not (doi_species_ID == id_species_ID and doi_species_assesment == id_species_assesment) then
msg = '|doi= / |id= mismatch'
end
end
if doi_species_ID and url_species_ID then
if not (doi_species_ID == url_species_ID and doi_species_assesment == url_species_assesment) then
msg = '|doi= / |url= mismatch'
end
end
if page_species_ID and id_species_ID then
if not (page_species_ID == id_species_ID and page_species_assesment == id_species_assesment) then
msg = '|page= / |id= mismatch'
end
end
if page_species_ID and url_species_ID then
if not (page_species_ID == url_species_ID and page_species_assesment == url_species_assesment) then
msg = '|page= / |url= mismatch'
end
end
if id_species_ID and url_species_ID then
if not (id_species_ID == url_species_ID and id_species_assesment == url_species_assesment) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
--local parents = mw.getCurrentFrame():getParent()
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local doi_species_ID, doi_species_assesment -- all of these contain the same identifying info in slightly
local page_species_ID, page_species_assesment -- different forms. when any combination of these is present,
local id_species_ID, id_species_assesment -- they must all agree
local msg -- this holds error messages; nil on success
doi_species_ID, doi_species_assesment, page_species_ID, page_species_assesment, id_species_ID, id_species_assesment, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs.url
if url and url:find ('/details/', 1, true) then
if page_species_ID and page_species_assesment then
templateArgs.url = "https://www.iucnredlist.org/species/" .. page_species_ID .. '/' .. page_species_assesment
else
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url')
end
-- if no url, create one if id or electronic
if not (url or templateArgs.doi) then -- don't need |url= if |doi= is present
local id = (id_species_ID and (id_species_ID .. '/' .. id_species_assesment)) or (page_species_ID and (page_species_ID .. '/' .. page_species_assesment)) or nil
if id then
templateArgs.url = "https://www.iucnredlist.org/species/" .. id
else
table.insert (maint_msgs, 'no url') -- TODO: raise this to error status?
-- mw.addWarning ("Need url or id to create link to IUCN Red List web page.")
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
if templateArgs['amended'] then
templateArgs['trans-title']=templateArgs['amended']
templateArgs['amended']=nil
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
templateArgs['id'] = nil -- not a cite journal parameter -- actually, this is a legitimate cs1|2 parameter
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
--return frame:expandTemplate{ title = 'cite journal', args = parents.args }
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
go7i9nahao3qt32j6wtz4xybillkzg1
815234
815233
2019-12-18T19:46:47Z
en>Trappist the monk
0
rename identifier-part variables; revise url-creation; disable |amended=; some cleanup;
815234
Scribunto
text/plain
require('Module:No globals');
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('T(%d+)A(%d+)')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('(%d+)/(%d+)')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
--this disabled per discussion at User_talk:Tom.Reding#Help_with_dead_IUCN_links
-- if templateArgs['amended'] then
-- templateArgs['trans-title']=templateArgs['amended']
-- templateArgs['amended']=nil
-- end
templateArgs['amended'] = nil -- unset for those few templates that have it
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
lg6xxsheegw8qfal7cvk26m4zr76ih5
815235
815234
2019-12-19T14:18:39Z
en>Trappist the monk
0
+ error cat for bare url -> cite iucn created by script to not duplicate cs1|2 error msg or cite iucn error cat;
815235
Scribunto
text/plain
require('Module:No globals');
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('T(%d+)A(%d+)')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('(%d+)/(%d+)')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs['volume'] and templateArgs['year'] then
templateArgs['volume'] = templateArgs['year']
end
-- use translate-title to add amened (TODO check this isn't part of metadata)
-- e.g. "amended version of 2016 assessment", which will be added in square brackets after title
-- not included in metadata
-- not a recommended practice because "amended version of YYYY assessment"
-- is not a 'translation' of the value in |title=; |type= is a more appropriate
--this disabled per discussion at User_talk:Tom.Reding#Help_with_dead_IUCN_links
-- if templateArgs['amended'] then
-- templateArgs['trans-title']=templateArgs['amended']
-- templateArgs['amended']=nil
-- end
templateArgs['amended'] = nil -- unset for those few templates that have it
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
oafzic6wv3g8h9v7m6p8zne146wwnnq
815236
815235
2019-12-20T01:05:34Z
en>Trappist the monk
0
remove support for |amended=; |volume= can also be gotten from |date=;
815236
Scribunto
text/plain
require('Module:No globals');
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('T(%d+)A(%d+)')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('(%d+)/(%d+)')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
4gwagq9kejafxcctdzvir7qg7fmp5tr
815237
815236
2019-12-24T12:46:56Z
en>Trappist the monk
0
tighten identifier match patterns;
815237
Scribunto
text/plain
require('Module:No globals');
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
ajd1v19yt6xjbnn4ewh1bfeo8pwaqgg
815238
815237
2019-12-24T12:50:47Z
en>Trappist the monk
0
doi pattern;
815238
Scribunto
text/plain
require('Module:No globals');
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
-- version using template wrapper for cite journal
function p.cite2(frame)
-- now use wrapper template
--[[this doesn't work
frame.args['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
frame.args['_template'] = "cite journal"
but the following does ]]
local wrapperArgs ={}
wrapperArgs['_template'] = "cite journal"
--|_exclude=id, version, new, IUCN_Year, iucn_year, criteria-version <!-- do not pass these to {{cite journal}} -->
wrapperArgs['_exclude'] = "amended, url" -- exclude url (from parent) as we wanted updated version
--|_alias-map= <!-- associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names -->
wrapperArgs['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
--we only want to make changes if there is old-style url, i.e. one containing "/details/"
local url = templateArgs['url'] or ""
local replace = string.find( url, "details" , 1, true) -- replace url if contains "details"
if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available,
if replace then
local page = templateArgs['page'] or ""
local speciesID = string.match( page, "T(%d+)A" )
local speciesAssessment = string.match( page, "A(%d+)" )
if speciesID and speciesAssessment then -- set new style url
wrapperArgs['url'] = "https://www.iucnredlist.org/species/" .. speciesID .. '/' .. speciesAssessment
end
else
wrapperArgs['url']=templateArgs['url']
end
if url == "" and templateArgs['id'] then -- use oldstyle url
wrapperArgs['url'] = "http://oldredlist.iucnredlist.org/details/" .. templateArgs['id']
wrapperArgs['journal'] = '[[IUCN Red List of Threatened Species]]'
wrapperArgs['volume'] = 'Version ' .. templateArgs['version']
end
if templateArgs['amended'] then wrapperArgs['trans-title']=templateArgs['amended'] end -- use translated title parameter to add amended text, e.g. "amended version of 2016 assessment", which will be added in square brackets after title
--wrapperArgs['trans-title'] = templateArgs['trans-title']
frame.args=wrapperArgs --set the wrapper arguments
local wrapper = require("Module:Template wrapper/sandbox")
--local xframe = frame --mw.clone(frame) --mw.getCurrentFrame()
--frame.args.metatable['_template'] = "cite journal"
--local parents = xframe:getParent() --mw.getCurrentFrame():getParent()
--parents.args['_template'] = "cite journal"
--mw.logObject(frame)
--return mw.dumpObject(wrapperArgs)
return wrapper.wrap(frame)
end
--[[ function to replace iucn templates
test template: Template:IUCN/sandbox/lua
usage: {{#invoke:iucn|main}}
--]]
function p.main(frame)
local templateArgs = {} -- need a copy to alter and pass to citation template
getArgs (frame, templateArgs)
-- local parents = mw.getCurrentFrame():getParent()
local reference = ""
local taxon =templateArgs['title'] -- now aliased
reference = '{{cite journal |title=' .. taxon
local maxAssessors = 20
local assessorNumber =0
-- if 'assessor' instead of 'assessor1'
if templateArgs['assessor'] then templateArgs['assessor1'] = templateArgs['assessor'] end
if templateArgs['assessor-link'] then templateArgs['assessor-link1'] = templateArgs['assessor-link'] end
while assessorNumber < maxAssessors do -- use the last number determined in the preprocessing
assessorNumber = assessorNumber + 1 -- so we start with 1
local assessorName = templateArgs['assessor'..tostring(assessorNumber)] or ""
if assessorName ~= "" then
reference = reference .. ' |author' .. assessorNumber .. '=' .. assessorName
end
local assessorLink = templateArgs['assessor-link'..tostring(assessorNumber)]
or templateArgs['assessor'..tostring(assessorNumber)..'link']
or templateArgs['assessorlink'..tostring(assessorNumber)]or ""
if assessorLink ~= "" then
reference = reference .. ' |authorlink' .. assessorNumber .. '=' .. assessorLink
end
end
local year = templateArgs['year']
local id = templateArgs['id']
local assessment = templateArgs['assessment'] or ""
local version = templateArgs['version']
local doi = templateArgs['doi'] or ""
local accessdate = templateArgs['accessdate'] or ""
reference = reference .. ' |year=' .. year
.. " |version=''Version ".. version .. "''"
.. ' |journal=[[The IUCN Red List of Threatened Species]]'
.. ' |accessdate='.. accessdate
.. ' |doi='.. doi
if assessment ~= "" then
reference = reference .. '|url=https://www.iucnredlist.org/species/'.. id .. '/' .. assessment
else -- if there is no assessment number, use oldredlist.iucnredlist.org version
-- an alternative might be to use archive.org in case this cite is dropped
reference = reference .. '|url=http://oldredlist.iucnredlist.org/details/'.. id .. '/0'
end
reference = reference .. ' |publisher=[[International Union for Conservation of Nature]]}}'
return frame:preprocess(reference)
--return reference
end
return p
q2xx4140r0f9o1jla1f8pjke8r6ib1e
815239
815238
2019-12-28T13:32:00Z
en>Jts1882
0
remove main() and cite2() functions. All they were intended to do are covered by cite()
815239
Scribunto
text/plain
require('Module:No globals');
local p = {}
local data = { -- these data entries will ultimately go in data subpage or series of data subpages **NOT USED**
iucn = {
['_template'] = "cite journal", -- use cite journal
['_exclude'] = "amended, url" , -- do not pass these to {{cite journal}}
--_alias-map: associate {{IUCN}}-specific parameter names with cs1|2-standard parameter names
['_alias-map'] = "assessors : authors, vassessors : vauthors, assessor# : last#, assessor#-link : author#-link,assessor-link# : author-link#, assessorlink# : authorlink#, assessor#-mask : author#-mask, assessor-mask# : author-mask#, assessormask# : authormask#, display-assessors : display-authors, displayassessors : displayauthors, last-assessor-amp : last-author-amp, lastassessoramp : lastauthoramp, assessment_year : year, taxon : title, downloaded : access-date"
}
}
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[ function p.cite() - function wrapping {{cite journal}}
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A and the number after A
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
--]]
function p.cite(frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
return p
2835ldy9sbkdpmb3vjtnj5zllwzxx87
815240
815239
2019-12-28T15:22:54Z
en>Trappist the monk
0
added make_cite_iucn() and supporting functions from [[Module:Sandbox/trappist the monk/make cite iucn]]; deleted p{} and data{};
815240
Scribunto
text/plain
require('Module:No globals');
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local names = author_names:gsub ('%.,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
]]
local function make_cite_iucn (frame)
local raw_iucn_cite = frame.args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on ([^%.]+)%.');
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
return table.concat (template);
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
pq3lyigu2wzb8o0wq9mqiasihc3cyf8
815241
815240
2019-12-29T00:11:49Z
en>Trappist the monk
0
815241
Scribunto
text/plain
require('Module:No globals');
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
]]
local function make_cite_iucn (frame)
local raw_iucn_cite = frame.args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on ([^%.]+)%.');
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
return table.concat (template);
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
cu2j0qv6ds7dt0onqbnk44tnxx000dp
815242
815241
2020-01-01T14:44:23Z
en>Trappist the monk
0
815242
Scribunto
text/plain
require('Module:No globals');
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
]]
local function make_cite_iucn (frame)
local raw_iucn_cite = frame.args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
-- accessdate = raw_iucn_cite:match ('Downloaded on ([^%.]+)%.');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
return table.concat (template);
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
jxyk5wygcwjg1ukb60mwig3li9zmuwk
815243
815242
2020-01-06T18:20:15Z
en>Trappist the monk
0
815243
Scribunto
text/plain
require('Module:No globals');
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
]]
local function make_cite_iucn (frame)
local args = require ('Module:Arguments').getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
rtt2a3x77s23udyfzqjj42ndi3gmmhp
815244
815243
2020-01-06T18:41:44Z
en>Trappist the monk
0
815244
Scribunto
text/plain
require('Module:No globals');
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('T(%d+)A(%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^e%.T(%d+)A(%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('IUCN%.UK%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/IUCN.+T%d+A%d+%.en') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = require ('Module:Arguments').getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
so57yvn2ueyd6wauiijjooxeazit7b3
815245
815244
2020-01-08T00:58:03Z
en>Trappist the monk
0
doi and epage case insensitive;
815245
Scribunto
text/plain
require('Module:No globals');
local function getArgs (frame, args)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--aliases
if type(k) == 'string' then
k = k:gsub("assessor","author") -- convert assessor parameters to author parameters
:gsub("taxon", "title")
:gsub("downloaded","access-date")
end
--check content
if v and v ~= "" then
args[k]=v --parents.args[k]
end
end
end
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local templateArgs = {} -- local copy of template arguments
getArgs (frame, templateArgs) -- fetch template arguments
local missing_title = not templateArgs.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (templateArgs);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
templateArgs['id'] = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = templateArgs.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
templateArgs.url = templateArgs.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
templateArgs.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not templateArgs['journal'] and not templateArgs['work'] then
templateArgs['journal'] = "[[IUCN Red List of Threatened Species]]"
end
templateArgs.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (templateArgs); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not templateArgs.volume and (templateArgs.year or templateArgs.date) then
templateArgs.volume = templateArgs.year or templateArgs.date
end
-- add free-to-read icon to mark a correctly formed doi
templateArgs['doi-access'] = templateArgs.doi and templateArgs.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = templateArgs } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = require ('Module:Arguments').getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
6tgks1yx8vh9g9w283wbdo4hoj9xyrf
815246
815245
2020-01-09T18:54:18Z
en>Trappist the monk
0
815246
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List of Threatened Species]]"
end
args.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
9brlor5h8yza43pc49b8itfpn9gg9gp
815247
815246
2020-01-10T14:00:25Z
en>Trappist the monk
0
815247
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List of Threatened Species]]"
end
args.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
4xoipn8oznq6jizgurafgj57cutucxo
815248
815247
2020-02-03T16:44:15Z
en>PresN
0
piping "IUCN Red List of Threatened Species" journal title from "IUCN Red List", its shortened wiki article title
815248
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
args.publisher = '[[IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
400x7y3nhi3bfvbcmqwgjgwchmdh7xh
815249
815248
2020-02-03T16:47:17Z
en>PresN
0
piping "IUCN" publisher from "International Union for Conservation of Nature", its longer wiki article title
815249
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
args.publisher = '[[International Union for Conservation of Nature|IUCN]]' -- do this here so the templates don't have to
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
r637i5846zwq7o28dndarfk1rnp57nd
815250
815249
2020-04-21T04:39:22Z
en>Headbomb
0
this is not needed
815250
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
oronmie8nx54zp2c7suoo61v1fd6rku
815251
815250
2020-06-20T23:36:33Z
en>Buidhe
0
Buidhe moved page [[Module:Iucn]] to [[Module:Cite iucn]] without leaving a redirect: RM closed as move
815250
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
oronmie8nx54zp2c7suoo61v1fd6rku
815252
815251
2020-06-20T23:39:12Z
en>Buidhe
0
Buidhe moved page [[Module:Cite iucn]] to [[Module:Iucn]] without leaving a redirect: want to avoid breaking anything
815250
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
oronmie8nx54zp2c7suoo61v1fd6rku
815253
815252
2020-06-21T01:17:07Z
en>Pppery
0
Pppery moved page [[Module:Iucn]] to [[Module:Cite iucn]] without leaving a redirect: Requested move
815250
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
oronmie8nx54zp2c7suoo61v1fd6rku
815254
815253
2020-06-21T06:54:35Z
en>Johnuniq
0
Changed protection level for "[[Module:Cite iucn]]": [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
815250
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
oronmie8nx54zp2c7suoo61v1fd6rku
815255
815254
2020-08-12T15:06:13Z
en>Jts1882
0
add option for substituting ref tag with name in make cite iucn
815255
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if not (doi_taxon_ID == page_taxon_ID and doi_assesment_ID == page_assesment_ID) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if not (doi_taxon_ID == id_taxon_ID and doi_assesment_ID == id_assesment_ID) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if not (doi_taxon_ID == url_taxon_ID and doi_assesment_ID == url_assesment_ID) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if not (page_taxon_ID == id_taxon_ID and page_assesment_ID == id_assesment_ID) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if not (page_taxon_ID == url_taxon_ID and page_assesment_ID == url_assesment_ID) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if not (id_taxon_ID == url_taxon_ID and id_assesment_ID == url_assesment_ID) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
fe71gow1nse8s0mv7tuzj5b20wajdn8
815256
815255
2021-08-08T12:20:18Z
en>Trappist the monk
0
815256
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local id_taxon_ID, id_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.id then
id_taxon_ID, id_assesment_ID = args.id:match ('^(%d+)/(%d+)$')
if not id_taxon_ID then
msg = 'malformed |id= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and id_taxon_ID then
if (doi_taxon_ID ~= id_taxon_ID or ((doi_assesment_ID ~= id_assesment_ID) and not args.errata)) then
msg = '|doi= / |id= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and id_taxon_ID then
if (page_taxon_ID ~= id_taxon_ID or ((page_assesment_ID ~= id_assesment_ID) and not args.errata)) then
msg = '|page= / |id= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
if id_taxon_ID and url_taxon_ID then
if (id_taxon_ID ~= url_taxon_ID or ((id_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|id= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local id_taxon_ID, id_assesment_ID -- they must all agree
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, id_taxon_ID, id_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; no longer needed if it was set
local url_taxon_ID = page_taxon_ID or id_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or id_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = args.year or args.date;
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
table.insert (template, title); -- add formatted title
local errata = title:match ('%(errata version published in (%d%d%d%d)%)');
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
end
-- table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
kpoyx9xjfg18rxegsvxgshqkqklzsse
815257
815256
2021-08-08T15:32:21Z
en>Trappist the monk
0
remove support for |id= parameter; see [[Template_talk:Cite_iucn#remove_support_for_%7cid=_parameter|talk]]
815257
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = args.year or args.date;
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
table.insert (template, title); -- add formatted title
local errata = title:match ('%(errata version published in (%d%d%d%d)%)');
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
end
-- table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
5n2t9rmh09cgeeiuv8h318xvtkte9hi
815258
815257
2021-08-09T22:36:37Z
en>Trappist the monk
0
815258
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = args.year or args.date;
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
table.insert (template, title); -- add formatted title
local errata = title:match ('%(errata version published in (%d%d%d%d)%)');
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
end
-- table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
g99n7l1h7tdg7vmkz5idh98vfttl01d
815259
815258
2021-08-30T16:56:32Z
en>Izno
0
rely on cs1 maint/error styling
815259
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="cs1-visible-error citation-comment">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = args.year or args.date;
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and (' <span class="cs1-maint citation-comment">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
table.insert (template, title); -- add formatted title
local errata = title:match ('%(errata version published in (%d%d%d%d)%)');
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
end
-- table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
1q8vj0u6kbdgu0chz51oohq0ofngl2q
815260
815259
2021-09-07T10:35:26Z
en>Trappist the monk
0
Undid revision 1041457032 by [[Special:Contributions/Izno|Izno]] ([[User talk:Izno|talk]]) broke error messaging;
815260
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = args.year or args.date;
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
table.insert (template, title); -- add formatted title
local errata = title:match ('%(errata version published in (%d%d%d%d)%)');
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
end
-- table.insert (template, title_get (raw_iucn_cite)); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
g99n7l1h7tdg7vmkz5idh98vfttl01d
815261
815260
2021-09-24T15:03:33Z
en>Trappist the monk
0
+ |amends=; detect errata and amendment annotation in |title= and add to maint cat when detected; make cite iucn now strips errata and amendment annotation;
815261
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title:match (errata_pattern) or args.title:match (amendment_pattern) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
nvljdjwwjug38mbo6ejf1bc1r5vvd2h
815262
815261
2021-09-25T11:00:19Z
en>Trappist the monk
0
815262
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title:match (errata_pattern) or args.title:match (amendment_pattern) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
6m09k5wq2dw2yrhv79g0wdx2zxroso6
815263
815262
2021-09-26T11:08:28Z
en>Trappist the monk
0
815263
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = (vol ~= doi) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = (doi ~= date) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
7wrqfabcd7kn9khot4jewy82k64kq4y
815264
815263
2021-09-26T20:38:54Z
en>Trappist the monk
0
815264
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
1yvol8aqrh9q5xfqqphg1t49j0d9m2r
815265
815264
2021-12-11T15:24:00Z
en>Trappist the monk
0
815265
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.en$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
p4jtl1qm7s7twohg42e4gkkj74bvyf4
815266
815265
2022-03-19T11:38:43Z
en>Jts1882
0
allow .es ending of doi in error check. Rremoved error at Romeroa, which might be a mistake by the iucn (see template talk page)
815266
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.e[ns]$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][Nn]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.en');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
s1dh3axvenxdkaq0ykpay5g1z7rb69m
815267
815266
2022-03-19T11:54:18Z
en>Trappist the monk
0
+doi-access free & make_cite iucn();
815267
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.e[ns]$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
-- list[i] = table.concat ({'|author', i, '=', name}); -- add |authorn= parameter names
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
axaiqxhnr9iydm458crvlfccpun6cf4
815268
815267
2022-05-28T16:14:10Z
en>Trappist the monk
0
attempt to detect and handle <i>et al.</i>;
815268
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.e[ns]$')
if not doi_taxon_ID then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
n9eulbwqxtqjb4ydjrpv3fqlppy5ex9
815269
815268
2022-10-08T15:54:37Z
en>Trappist the monk
0
+support for doi lang tags 'fr' and 'pt';
815269
Scribunto
text/plain
require('Module:No globals');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
0gm5h2dt8mnypeuey0kyzebluz3g0vq
815270
815269
2022-10-21T21:59:24Z
en>WOSlinker
0
use require('strict') instead of require('Module:No globals')
815270
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'):gsub ('%.,%s+', '.|'); -- replace 'separators' (<dot><comma><space> and <opt. dot><opt. comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
9fjnfzs9usp2mzk9fgodo3odsg2ougy
815271
815270
2023-04-21T19:04:40Z
en>Trappist the monk
0
815271
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
local function author_names_get (raw_iucn_cite)
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
return table.concat (template); -- the subst'd version
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
izh3gnialj824dntyt0u2rg8okcpcr9
815272
815271
2023-04-25T16:56:36Z
en>Trappist the monk
0
experiment with make_cite_iucn();
815272
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
local params_t = {}; -- EXPERIMENT
table.insert (template, author_names_get (raw_iucn_cite, params_t)); -- EXPERIMENT -- add string of author name parameters
-- table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
-- return table.concat (template); -- the subst'd version
table.remove (template, 1); -- EXPERIMENT: remove '{{cite iucn '
table.remove (template, #template); -- EXPERIMENT: remove '}}'
for _, v in ipairs (template) do -- EXPERIMENT: build a table of parameters for expandTemplate()
local key, value = v:match ('|([^=]+)=(.+)')
if 'author' ~= key then -- template['author'] is just a big damn string that confuses {{cite iucn}} so skip it
params_t[key] = value; -- but add all other parameters; author parameters already added by author_names_get()
end
end
return frame:expandTemplate ({title='Cite iucn', args=params_t}); -- EXPERIMENT: render {{cite iucn}} template; will it auto-subst properly?
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
l53j97fldijnvqkmnw8vla4jyatecjd
815273
815272
2023-04-25T17:37:21Z
en>Trappist the monk
0
815273
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return table.concat ({' |title=', title}); -- return the |title= parameter
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args = getArgs (frame);
local raw_iucn_cite = args[1];
local template = {'{{cite iucn '}; -- table that holds the {{cite iucn}} template as it is being assembled
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
-- accessdate = raw_iucn_cite:match ('Downloaded on (.-)%.?$'):gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
local params_t = {}; -- EXPERIMENT
table.insert (template, author_names_get (raw_iucn_cite, params_t)); -- EXPERIMENT -- add string of author name parameters
-- table.insert (template, author_names_get (raw_iucn_cite)); -- add string of author name parameters
table.insert (template, table.concat ({' |year=', year})); -- add formatted year
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template, table.concat ({' |errata=', errata})); -- add formatted errata
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template, title); -- add formatted title
table.insert (template, table.concat ({' |volume=', volume})); -- add formatted volume
table.insert (template, table.concat ({' |page=', page})); -- add formatted page
table.insert (template, table.concat ({' |doi=', doi})); -- add formatted doi
table.insert (template, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
table.insert (template, '}}'); -- close the template
if args[2] then -- if anything in args[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template)), '</code>'})
end
if args['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args['ref'] .. '>' .. table.concat (template) .. '</ref>'
end
-- return table.concat (template); -- the subst'd version
table.remove (template, 1); -- EXPERIMENT: remove '{{cite iucn '
table.remove (template, #template); -- EXPERIMENT: remove '}}'
for _, v in ipairs (template) do -- EXPERIMENT: build a table of parameters for expandTemplate()
local key, value = v:match ('|([^=]+)=(.+)')
if 'author' ~= key then -- template['author'] is just a big damn string that confuses {{cite iucn}} so skip it
params_t[key] = value; -- but add all other parameters; author parameters already added by author_names_get()
end
end
return frame:expandTemplate ({title='Make cite iucn/subst', args=params_t}); -- EXPERIMENT: render {{cite iucn}} template; will it auto-subst properly?
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
obyjvexepib1bcmxo4489vli0l4ybm5
815274
815273
2023-04-25T19:27:34Z
en>Trappist the monk
0
815274
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template_t)), '</code>'})
end
if args_t['ref'] then -- enable subst of ref tags with name
return '<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>'
end
return frame:expandTemplate ({title='Make cite iucn/subst', args=params_t}); -- render {{cite iucn}} template; this is substable; {{make cite iucn/subst}} avoids template loop error
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
i01gwoebh87igp0jlz4xajv0ah37mma
815275
815274
2023-04-26T13:50:06Z
en>Trappist the monk
0
815275
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template_t)), '</code>'})
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
-- return '<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>'
end
return frame:expandTemplate ({title='Make cite iucn/subst', args=params_t}); -- render {{cite iucn}} template; this is substable; {{make cite iucn/subst}} avoids template loop error
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
83vkoww2nvghl0a63jyvkpoq9c15uc0
815276
815275
2023-06-03T14:11:20Z
en>Trappist the monk
0
experiment with make_cite_iucn();
815276
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return table.concat ({'<code>', frame:callParserFunction ('#tag:nowiki', table.concat (template_t)), '</code>'})
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
-- return '<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>'
end
--DEBUG
if args_t[3] then
return frame:preprocess (table.concat (template_t));
end
--END DEBUG
return frame:expandTemplate ({title='Make cite iucn/subst', args=params_t}); -- render {{cite iucn}} template; this is substable; {{make cite iucn/subst}} avoids template loop error
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
akz5vtvu0cm3kvxrycc0jfe42zp3qys
815277
815276
2023-06-03T14:43:26Z
en>Trappist the monk
0
815277
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
7be29133dc3502b1p0v2ij4ml0bfjte
815278
815277
2023-07-26T02:28:49Z
en>Elli
0
Elli moved page [[Module:Cite iucn]] to [[Module:Cite IUCN]] without leaving a redirect: per [[Special:Permalink/1167162175#Requested move 16 July 2023|RM]]
815277
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite iucn errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite iucn errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite iucn maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
7be29133dc3502b1p0v2ij4ml0bfjte
815279
815278
2023-07-28T21:51:33Z
en>Trappist the monk
0
815279
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite IUCN errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite IUCN errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite IUCN maint]]') or '') -- maint category when in mainspace
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
6vzxnnxc4vhm2gaw6dm4j3cwupn9prc
815280
815279
2024-06-29T22:30:11Z
en>Trappist the monk
0
+category cite IUCN without doi;
815280
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.[Ee][NnSs]') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite IUCN errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite IUCN errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite IUCN maint]]') or '') .. -- maint category when in mainspace
(((not args['doi-access']) and (0 == namespace)) and '[[Category:cite IUCN without doi]]' or ''); -- properties cat for {{cite IUCN}} that does not have |doi=
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
jmajw7hsrddclt9c5y290zpr612cxzn
815281
815280
2024-06-30T04:52:05Z
en>Trappist the monk
0
815281
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite IUCN errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite IUCN errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite IUCN maint]]') or '') .. -- maint category when in mainspace
(((not args['doi-access']) and (0 == namespace)) and '[[Category:cite IUCN without doi]]' or ''); -- properties cat for {{cite IUCN}} that does not have |doi=
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.e[ns]');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
gzbqtfxxpsjvr6u4zmeq2zamn51ov7d
815282
815281
2024-06-30T17:15:21Z
en>Trappist the monk
0
+support for green status;
815282
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
local missing_title = not args.title -- special case that results from script writing {{cite iucn}} template from bare iucn url
-- don't duplicate cs1|2 error message; don't duplicate {{cite iucn}} error cat
-- TODO: remove this when the error category has been cleared of missing title errors
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
(((0 == #error_msgs) and missing_title) and ('[[Category:cite IUCN errors]]') or '') .. -- special case to not duplicate cs1|2 err msg or cite iucn error cat
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite IUCN errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite IUCN maint]]') or '') .. -- maint category when in mainspace
(((not args['doi-access']) and (0 == namespace)) and '[[Category:cite IUCN without doi]]' or ''); -- properties cat for {{cite IUCN}} that does not have |doi=
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
oembq3w48h7mbgordsy7anxic1f57bv
815283
815282
2024-07-03T17:23:03Z
en>Trappist the monk
0
-missing_title error which is handled by {{cite journal}};
815283
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
local msg
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
msg = 'malformed |doi= identifier'
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
msg = 'malformed |page= identifier'
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
msg = 'malformed |url= identifier'
end
end
end
if not msg then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
msg = '|doi= / |page= mismatch'
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|doi= / |url= mismatch'
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
msg = '|page= / |url= mismatch'
end
end
end
if msg then
msg = '<span class="error" style="font-size:100%">{{cite iucn}}: error: ' .. msg .. ' ([[Template:Cite iucn|help]])</span>'
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
local msg
if vol and date then
msg = (vol ~= date) and '|volume= / |date= mismatch' or msg
end
if vol and doi then
msg = ((vol ~= doi) and not args.amends) and '|volume= / |doi= mismatch' or msg
end
if date and doi then
msg = ((doi ~= date) and not args.amends) and '|date= / |doi= mismatch' or msg
end
return msg
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs = {}; -- holds error messages for rendering
local maint_msgs = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID -- different forms. when any combination of these is present,
local msg -- this holds error messages; nil on success
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID, msg = iucn_identifiers_get (args);
if msg then
table.insert (error_msgs, msg); -- malformed or mismatched identifiers
end
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID
local url = args.url
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
msg = iucn_volume_check (args); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if msg then
table.insert (maint_msgs, msg);
end
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
((0 < #error_msgs) and table.concat (error_msgs, ', ') or '') .. -- the error messages
(((0 < #error_msgs) and (0 == namespace)) and ('[[Category:cite IUCN errors]]') or '') .. -- error category when in mainspace
((0 < #maint_msgs) and ('<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">' .. table.concat (maint_msgs, ', ') .. '</span>') or '') .. -- the maint messages
(((0 < #maint_msgs) and (0 == namespace)) and ('[[Category:cite IUCN maint]]') or '') .. -- maint category when in mainspace
(((not args['doi-access']) and (0 == namespace)) and '[[Category:cite IUCN without doi]]' or ''); -- properties cat for {{cite IUCN}} that does not have |doi=
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
2lmc3u5y2ldgtuu4ankno0qyhuryoqo
815284
815283
2024-07-04T17:23:34Z
en>Trappist the monk
0
815284
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
table.insert (error_msgs_t, 'malformed |page= identifier');
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |page= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|page= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (maint_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID = iucn_identifiers_get (args, error_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (maint_msgs_t, 'unknown url') -- announce that this template has has some sort of url we don't recognize
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (maint_msgs_t, 'no identifier') -- TODO: raise this to error status?
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])</span>');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])</span>');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
table.concat (out_t); -- error and maint messages and categories
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
8m1tkhnqgevhjcnrx52d4ft2j8dlcwo
815285
815284
2024-07-11T22:00:33Z
en>Trappist the monk
0
promote 'title has extraneous text', 'no identifier', & 'unknown url' maintenance messages to error messages;
815285
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
table.insert (error_msgs_t, 'malformed |page= identifier');
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |page= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|page= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID = iucn_identifiers_get (args, error_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])</span>');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])</span>');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
table.concat (out_t); -- error and maint messages and categories
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
jo69y3osaq47ra1yi0ade2hunuxf9ct
815286
815285
2024-11-07T19:31:52Z
en>Jonesey95
0
Fix [[Special:LintErrors|Linter]] errors. Close span tag in all circumstances. See "Vachellia hindsii" entry at [[User:Neb/sandbox]] for an example.
815286
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |page= are different from each other
then the template is attempting to cite multiple sources. This function evaluates the identifier portions of these
parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success,
error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local page_taxon_ID, page_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
if args.page then
page_taxon_ID, page_assesment_ID = args.page:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not page_taxon_ID then
table.insert (error_msgs_t, 'malformed |page= identifier');
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and page_taxon_ID then
if (doi_taxon_ID ~= page_taxon_ID or ((doi_assesment_ID ~= page_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |page= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if page_taxon_ID and url_taxon_ID then
if (page_taxon_ID ~= url_taxon_ID or ((page_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|page= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic page number
page should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local page_taxon_ID, page_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, page_taxon_ID, page_assesment_ID = iucn_identifiers_get (args, error_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = page_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = page_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
table.concat (out_t); -- error and maint messages and categories
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, page, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, page = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |page=', page})); -- add formatted page
params_t.page = page;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
szgp79pgi8vqgvktj2630sle9lpll0b
815287
815286
2025-09-23T18:40:07Z
en>Trappist the monk
0
815287
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function cite (frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
local args = getArgs (frame); -- local copy of template arguments
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
table.concat (out_t); -- error and maint messages and categories
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite,
make_cite_iucn = make_cite_iucn,
}
ij6dfkyxdobuufijjmed7ka1rxpdtxj
815288
815287
2025-11-14T16:13:59Z
en>Ahecht
0
allow calling from other modules
815288
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
table.concat (out_t); -- error and maint messages and categories
end
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
qeaj69k98cxcymc640hptd33hgfem1k
815289
815288
2025-11-14T16:47:23Z
en>Trappist the monk
0
815289
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< _ C I T E >--------------------------------------------------------------------
entry point for calls from another module
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #33aa33; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return frame:expandTemplate{ title = 'cite journal', args = args } .. -- the template
table.concat (out_t); -- error and maint messages and categories
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
entry point for template calls
]]
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
02lorx4i2hivlnlfbjtif8w1kjqhcr1
815290
815289
2025-11-14T17:11:32Z
en>Trappist the monk
0
815290
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< _ C I T E >--------------------------------------------------------------------
entry point for calls from another module
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
args['doi-access'] = args.doi and args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #085; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return require ('Module:Citation/CS1')._citation (frame, args, {CitationClass='journal'}) .. -- invoke the module to bypass the call to {{cite journal}}
table.concat (out_t); -- error and maint messages and categories
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
entry point for template calls
]]
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
6xawwlpuhei6dcd40rpq4f7zo1hn9mu
815291
815290
2026-03-21T13:58:33Z
en>Trappist the monk
0
+|language= from |doi= support;
815291
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< _ C I T E >--------------------------------------------------------------------
entry point for calls from another module
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
if args.doi then
args['doi-access'] = args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil;
args.language = args.language or args.lang or args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.(%a%a)');
end
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #085; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return require ('Module:Citation/CS1')._citation (frame, args, {CitationClass='journal'}) .. -- invoke the module to bypass the call to {{cite journal}}
table.concat (out_t); -- error and maint messages and categories
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
entry point for template calls
]]
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate, language;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
language = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.(%a%a)');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |language=', language})); -- add formatted language
params_t.language = language;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
ojwd5wvg3wupb0c2yx8g5l8lxqtcrev
815292
815291
2026-03-21T14:56:48Z
en>Trappist the monk
0
815292
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< _ C I T E >--------------------------------------------------------------------
entry point for calls from another module
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
if args.doi then
args['doi-access'] = args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil;
args.language = args.language or args.lang or args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.(%a%a)');
args.lang = nil; -- unset; use canonical form
end
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #085; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return require ('Module:Citation/CS1')._citation (frame, args, {CitationClass='journal'}) .. -- invoke the module to bypass the call to {{cite journal}}
table.concat (out_t); -- error and maint messages and categories
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
entry point for template calls
]]
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
local etal;
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
return true; -- has etal, so return true
end
end
end
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
]]
--local function author_names_get (raw_iucn_cite)
local function author_names_get (raw_iucn_cite, params_t) -- EXPERIMENT
local list = {}; -- table that holds name list parts
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
list = mw.text.split (names, '|'); -- split the string on the pipes into entries in list{}
if 0 == #list then
params_t['author'] = author_names; -- EXPERIMENT
return table.concat ({'|author=', author_names}), params_t; -- EXPERIMENT -- no 'names' of the proper form; return the original as a single |author= parameter
-- return table.concat ({'|author=', author_names}) -- no 'names' of the proper form; return the original as a single |author= parameter
else
for i, name in ipairs (list) do -- spin through the list and
if name_has_etal (name) then -- if this name has some form of 'et al'
params_t['display-authors'] = 'etal'; -- EXPERIMENT
list[i] = '|display-authors=etal'; -- add |dispaly-authors=etal parameter and
break; -- assume that the etal was the last 'name' so stop processing names
else
params_t['author' .. i] = name; -- EXPERIMENT
list[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=
end
end
if collaboration then
params_t['collaboration'] = collaboration; -- EXPERIMENT
table.insert (list, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter
end
return table.concat (list, ' '); -- make a big string and return that
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
-- return table.concat ({' |title=', title}); -- return the |title= parameter
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate, language;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
language = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.(%a%a)');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |language=', language})); -- add formatted language
params_t.language = language;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
pgadxy2u4il6ic2eb5pk94tzcvlhn89
815293
815292
2026-05-12T18:51:09Z
en>Trappist the monk
0
fix {{make cite iucn}} et al handling;
815293
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< _ C I T E >--------------------------------------------------------------------
entry point for calls from another module
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
if args.doi then
args['doi-access'] = args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil;
args.language = args.language or args.lang or args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.(%a%a)');
args.lang = nil; -- unset; use canonical form
end
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #085; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return require ('Module:Citation/CS1')._citation (frame, args, {CitationClass='journal'}) .. -- invoke the module to bypass the call to {{cite journal}}
table.concat (out_t); -- error and maint messages and categories
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
entry point for template calls
]]
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
name = name:gsub (pattern, '');
return true, name; -- has etal, so return true and the name without et al
end
end
return nil, name; -- not found
end
return nil, ''; -- no names;
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
<params_t> is a table of parameter/value pairs used when rendering a {{cite IUCN}} template for substing
modifies <params_t> and returns a plain-text author-name list for the nowiki output
]]
local function author_names_get (raw_iucn_cite, params_t)
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local has_etal; -- flag indicates that the raw author hist has some sort of 'et al' text
has_etal, author_names = name_has_etal (author_names); -- set flag; reset <author_names> without etal
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
local list_t = mw.text.split (names, '|'); -- split string on pipes into <list_t>; a sequence to hold {{cite iucn}} template as it is assembled; for nowiki output
if 0 == #list_t then -- no 'names' of the proper form; return the original as a single |author= parameter
params_t['author'] = author_names; -- for substing
return table.concat ({'|author=', author_names}), params_t; -- for nowiki output
else
for i, name in ipairs (list_t) do -- spin through the list of names
params_t['author' .. i] = name; -- for substing
list_t[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=; for nowiki output
end
if collaboration then
params_t['collaboration'] = collaboration; -- for substing
table.insert (list_t, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter; for nowiki output
end
if has_etal then -- if <author_names> had some form of 'et al'
params_t['display-authors'] = 'etal'; -- for substing
table.insert (list_t, '|display-authors=etal'); -- add |dispaly-authors=etal parameter; for nowiki output
end
return table.concat (list_t, ' '); -- make a big string and return for nowiki output
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate, language;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
language = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.(%a%a)');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |language=', language})); -- add formatted language
params_t.language = language;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
4o3rd8kt0073jm5o41riirfhzwkax10
815294
815293
2026-11-12T15:29:12Z
SM7
3953
102 revisions imported from [[:en:Module:Cite_IUCN]]
815293
Scribunto
text/plain
require('strict');
local getArgs = require ('Module:Arguments').getArgs;
local amendment_pattern = '%s*%(amended version of (%d%d%d%d) assessment%)';
local errata_pattern = '%s*%(errata version published in (%d%d%d%d)%)';
local green_status_pattern = '%s*%((Green Status assessment)%)';
--[[--------------------------< I U C N _ I D E N T I F I E R S _ G E T >--------------------------------------
cs1|2 templates cite single sources; when the identifiers in |doi=, |id=, and |article-number= are different from
each other then the template is attempting to cite multiple sources. This function evaluates the identifier portions
of these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on
success, error message else)
the identifier portions of the several parameters must be properly formed
]]
local function iucn_identifiers_get (args, error_msgs_t, maint_msgs_t)
local doi_taxon_ID, doi_assesment_ID
local art_num_taxon_ID, art_num_assesment_ID
local url_taxon_ID, url_assesment_ID
if args.doi then
local lang_tag
doi_taxon_ID, doi_assesment_ID, lang_tag = args.doi:match ('[Tt](%d+)[Aa](%d+)%.(%l%l)$')
if not doi_taxon_ID or not ({['en'] = true, ['es'] = true, ['fr'] = true, ['pt'] = true})[lang_tag] then
table.insert (error_msgs_t, 'malformed |doi= identifier');
end
end
local artnum = args['article-number'] or args.page; -- |page= is deprecated; one accepted; |article-number= preferred
if artnum then
art_num_taxon_ID, art_num_assesment_ID = artnum:match ('^[eE]%.[Tt](%d+)[Aa](%d+)$')
if not art_num_taxon_ID then
table.insert (error_msgs_t, 'malformed |article-number= identifier');
end
if args.page then -- maint message when |page= is used
table.insert (maint_msgs_t, 'uses deprecated |page= identifier');
args.page = nil; -- unset as not used
args['article-number'] = artnum; -- make sure that {{cite journal}} gets |article-number=
end
end
if args.url then
if args.url:match ('https://www.iucnredlist.org/species/') then -- must be a 'new-form' url
url_taxon_ID, url_assesment_ID = args.url:match ('/species/(%d+)/(%d+)')
if not url_taxon_ID then
table.insert (error_msgs_t, 'malformed |url= identifier');
end
end
end
if not error_msgs_t[1] then
if doi_taxon_ID and art_num_taxon_ID then
if (doi_taxon_ID ~= art_num_taxon_ID or ((doi_assesment_ID ~= art_num_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |article-number= mismatch');
end
end
if doi_taxon_ID and url_taxon_ID then
if (doi_taxon_ID ~= url_taxon_ID or ((doi_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|doi= / |url= mismatch');
end
end
if art_num_taxon_ID and url_taxon_ID then
if (art_num_taxon_ID ~= url_taxon_ID or ((art_num_assesment_ID ~= url_assesment_ID) and not args.errata)) then
table.insert (error_msgs_t, '|article-number= / |url= mismatch');
end
end
end
return doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID;
end
--[[--------------------------< I U C N _ V O L U M E _ C H E C K >--------------------------------------------
compares volume in |volume= (if present) against year in |date= or |year= (if present) against volume in |doi= (if present)
returns nil if all that are present are correct; message else
]]
local function iucn_volume_check (args, maint_msgs_t)
local vol = args.volume;
local date = args.date or args.year;
local doi = args.doi and args.doi:match ('[Ii][Uu][Cc][Nn]%.[Uu][Kk]%.(%d%d%d%d)')
if vol and date and (vol ~= date) then
table.insert (maint_msgs_t, '|volume= / |date= mismatch');
end
if vol and doi and ((vol ~= doi) and not args.amends) then
table.insert (maint_msgs_t, '|volume= / |doi= mismatch');
end
if date and doi and ((doi ~= date) and not args.amends) then
table.insert (maint_msgs_t, '|date= / |doi= mismatch');
end
end
--[[--------------------------< _ C I T E >--------------------------------------------------------------------
entry point for calls from another module
Wraps {{cite journal}}:
takes cite journal parameters but updates old style url using electronic article number number
|article-number= should be in format e.T13922A45199653
the url uses 13922/45199653
so we need to extract the number between T and A (taxon ID) and the number after A (assessment ID)
the target url is https://www.iucnredlist.org/species/13922/45199653
usage: {{#invoke:iucn|cite}}
template: {{Template:Cite iucn}}
]]
local function _cite (args, frame)
local error_msgs_t = {}; -- holds error messages for rendering
local maint_msgs_t = {}; -- holds hidden maint messages for rendering
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization
frame = frame or mw.getCurrentFrame() -- fetches frame if called from another module
if args.title and (args.title:match (errata_pattern) or args.title:match (amendment_pattern)) then
table.insert (error_msgs_t, 'title has extraneous text'); -- announce that this template has has errata or amendment text
end
local doi_taxon_ID, doi_assesment_ID; -- all of these contain the same identifying info in slightly
local art_num_taxon_ID, art_num_assesment_ID; -- different forms. when any combination of these is present,
doi_taxon_ID, doi_assesment_ID, art_num_taxon_ID, art_num_assesment_ID = iucn_identifiers_get (args, error_msgs_t, maint_msgs_t);
args.id = nil -- unset; not supported
local url_taxon_ID = art_num_taxon_ID or doi_taxon_ID; -- select for use in url that we will create
local url_assesment_ID = art_num_assesment_ID or doi_assesment_ID;
local url = args.url;
if url then
if url:find ('iucnredlist.org/details/', 1, true) then -- old-form url
if url_taxon_ID then -- when there is an identifier
url = nil -- unset; we'll create new url below
else -- here when old-form but no identifier that we can use to create new url
args.url = args.url:gsub ("http:", "https:") -- sometimes works with redirect on iucn site
end
table.insert (maint_msgs_t, 'old-form url') -- announce that this template has has an old-form url
elseif url:find ('iucnredlist.org/species/', 1, true) then -- new-form url
-- table.insert (maint_msgs_t, 'new-form url') --TODO: restore this line when most new-form urls have been removed from article space -- announce that this template has has an new-form url
else
table.insert (error_msgs_t, 'unknown url') -- emit error message
end
end
if not url then -- when no url or unset old-form url
if url_taxon_ID then
args.url = "https://www.iucnredlist.org/species/" .. url_taxon_ID .. '/' .. url_assesment_ID
else
table.insert (error_msgs_t, 'no identifier') -- emit error message
end
end
-- add journal if not provided (TODO decide if this should override provided value)
if not args['journal'] and not args['work'] then
args['journal'] = "[[IUCN Red List|IUCN Red List of Threatened Species]]"
end
iucn_volume_check (args, maint_msgs_t); -- |volume=, |year= (|date=), |doi= must all refer to the same volume
if not args.volume and (args.year or args.date) then
args.volume = args.year or args.date
end
if args.errata then
args['orig-date'] = 'errata version of ' .. (args.year or args.date or args.volume) .. ' assessment';
args.date = args.errata; -- update publication data to errata year
args.year = nil; -- unset these as no longer needed
args.errata = nil;
elseif args.amends then
args['orig-date'] = 'amended version of ' .. args.amends .. ' assessment';
args.amends = nil; -- unset as no longer needed
end
-- add free-to-read icon to mark a correctly formed doi
if args.doi then
args['doi-access'] = args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.%a%a') and 'free' or nil;
args.language = args.language or args.lang or args.doi:match ('10%.2305/[Ii][Uu][Cc][Nn].+[Tt]%d+[Aa]%d+%.(%a%a)');
args.lang = nil; -- unset; use canonical form
end
local out_t = {};
if error_msgs_t[1] then
table.insert (out_t, ' <span class="error" style="font-size:100%">{{[[Template:cite iucn|cite iucn]]}}: error: ');
table.insert (out_t, table.concat (error_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Error messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN errors]]');
end
table.insert (out_t, '</span>');
end
if maint_msgs_t[1] then
table.insert (out_t, '<span class="citation-comment" style="display: none; color: #085; margin-left: 0.3em;">');
if not error_msgs_t[1] then
table.insert (out_t, '{{[[Template:cite iucn|cite iucn]]}}: ')
table.insert (out_t, table.concat (maint_msgs_t, ', '));
table.insert (out_t, ' ([[Template:Cite iucn#Maintenance messages|help]])');
if (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN maint]]');
end
end
table.insert (out_t, '</span>');
end
if (not args['doi-access']) and (0 == namespace) then
table.insert (out_t, '[[Category:cite IUCN without doi]]');
end
return require ('Module:Citation/CS1')._citation (frame, args, {CitationClass='journal'}) .. -- invoke the module to bypass the call to {{cite journal}}
table.concat (out_t); -- error and maint messages and categories
end
--[[--------------------------< C I T E >----------------------------------------------------------------------
entry point for template calls
]]
local function cite (frame)
local args = getArgs (frame); -- local copy of template arguments
return _cite (args, frame);
end
--[=[-------------------------< E T _ A L _ P A T T E R N S >--------------------------------------------------
This adapted from Module:Citation/CS1/Configuration
This table provides Lua patterns for the phrase "et al" and variants in a name.
]=]
local et_al_patterns = {
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][%.;,\"']*$", -- variations on the 'et al' theme
"[;,]? *[\"']*%f[%a][Ee][Tt]%.? *[Aa][Ll][Ii][AaIi][Ee]?[%.;,\"']*$", -- variations on the 'et alia', 'et alii' and 'et aliae' themes (false positive 'et aliie' unlikely to match)
"[;,]? *%f[%a]and [Oo]thers", -- an alternative to et al.
}
--[[---------------------< N A M E _ H A S _ E T A L >--------------------------
This adapted from Module:Citation/CS1
Evaluates the content of a name for variations on the theme of et al. If found,
returns true; nil else
]]
local function name_has_etal (name)
if name then -- name can be nil in which case just return
name = name:gsub ('%b<>', ''); -- remove any html markup (typically <i>...</i>)
for _, pattern in ipairs (et_al_patterns) do -- loop through all of the patterns
if name:match (pattern) then -- if this 'et al' pattern is found in name
name = name:gsub (pattern, '');
return true, name; -- has etal, so return true and the name without et al
end
end
return nil, name; -- not found
end
return nil, ''; -- no names;
end
--[[--------------------------< A U T H O R _ L I S T _ M A K E >----------------------------------------------
creates a list of individual |authorn= parameters from the list of names provided in the raw iucn citation. names
must have the form: Surname, I. (more than one 'I.' pair allowed but no spaces between I. pairs)
assumes that parenthetical text at the end of the author-name-list is a collaboration
Name, I.I., & Name, I.I. (Colaboration name)
assumes that <i>et al.</i> is the last name in a list of names
<params_t> is a table of parameter/value pairs used when rendering a {{cite IUCN}} template for substing
modifies <params_t> and returns a plain-text author-name list for the nowiki output
]]
local function author_names_get (raw_iucn_cite, params_t)
local author_names = raw_iucn_cite:match ('^([^%d]-)%s+%d%d%d%d'); -- extract author name-list from raw iucn citation
local has_etal; -- flag indicates that the raw author hist has some sort of 'et al' text
has_etal, author_names = name_has_etal (author_names); -- set flag; reset <author_names> without etal
local collaboration = author_names:match ('%s*(%b())$'); -- get collaboration name if it exists
if collaboration then -- when there is a colaboration
collaboration = collaboration:gsub ('[%(%)]', ''); -- remove bounding parentheses
author_names = author_names:gsub ('%s*(%b())$', ''); -- and remove collaboration from author-name-list
end
local names = author_names:gsub ('%.?,?%s+&%s+', '.|'); -- replace 'separators' (<optional dot><optional comma><space><ampersand><space>) with <dot><pipe>
names = names:gsub ('%.,%s*', '.|'); -- replace 'separators' (<dot><comma><optional space>) with <dot><pipe>
names = names:gsub ('(%.%u),', '%1.|'); -- special case for when last initial is missing its trailing dot
local list_t = mw.text.split (names, '|'); -- split string on pipes into <list_t>; a sequence to hold {{cite iucn}} template as it is assembled; for nowiki output
if 0 == #list_t then -- no 'names' of the proper form; return the original as a single |author= parameter
params_t['author'] = author_names; -- for substing
return table.concat ({'|author=', author_names}), params_t; -- for nowiki output
else
for i, name in ipairs (list_t) do -- spin through the list of names
params_t['author' .. i] = name; -- for substing
list_t[i] = table.concat ({'|author', (i == 1) and '' or i, '=', name}); -- add |authorn= parameter names; create |author= instead of |author1=; for nowiki output
end
if collaboration then
params_t['collaboration'] = collaboration; -- for substing
table.insert (list_t, table.concat ({'|collaboration', '=', collaboration})); -- add |collaboration= parameter; for nowiki output
end
if has_etal then -- if <author_names> had some form of 'et al'
params_t['display-authors'] = 'etal'; -- for substing
table.insert (list_t, '|display-authors=etal'); -- add |dispaly-authors=etal parameter; for nowiki output
end
return table.concat (list_t, ' '); -- make a big string and return for nowiki output
end
end
--[[--------------------------< T I T L E _ G E T >------------------------------------------------------------
extract and format citation title; attempts to get the italic right
''binomen'' (amended or errata title)
''binomen''
''binomen'' ssp. ''subspecies''
''binomen'' subsp. ''subspecies''
''binomen'' var. ''variety''
''binomen'' subvar. ''subvariety''
all of the above may have trailing amended or errata text in parentheses
TODO: are there others?
]]
local function title_get (raw_iucn_cite)
local title = raw_iucn_cite:match ('%d%d%d%d%.%s+(.-)%s*%. The IUCN Red List of Threatened Species');
local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2]
{'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1'' ssp. ''%2'' %3"}, -- binomen ssp. subspecies (zoology) with errata or amended text
{'(.-)%sssp%.%s+(.+)', "''%1'' ssp. ''%2''"}, -- binomen ssp. subspecies (zoology)
{'(.-)%ssubsp%.%s+(.-)%s(%b())$', "''%1'' subsp. ''%2'' %3"}, -- binomen subsp. subspecies (botany) with errata or amended text
{'(.-)%ssubsp%.%s+(.+)', "''%1'' subsp. ''%2''"}, -- binomen subsp. subspecies (botany)
{'(.-)%svar%.%s+(.-)%s+(%b())$', "''%1'' var. ''%2'' %3"}, -- binomen var. variety (botany) with errata or amended text
{'(.-)%svar%.%s+(.+)', "''%1'' var. ''%2''"}, -- binomen var. variety (botany)
{'(.-)%ssubvar%.%s+(.-)%s(%b())$', "''%1'' subvar. ''%2'' %3"}, -- binomen subvar. subvariety (botany) with errata or amended text
{'(.-)%ssubvar%.%s+(.+)', "''%1'' subvar. ''%2''"}, -- binomen subvar. subvariety (botany)
{'(.-)%s*(%b())$', "''%1'' %2"}, -- binomen with errata or amended text
{'(.+)', "''%1''"}, -- binomen
}
for i, v in ipairs (patterns) do -- spin through the patterns
if title:match (v[1]) then -- when a match
title = title:gsub (v[1], v[2]); -- add italics
break; -- and done
end
end
return title; -- return the formatted title
end
--[[--------------------------< M A K E _ C I T E _ I U C N >--------------------------------------------------
parses apart an iucn-format citation copied from their webpage and reformats that into a {{cite iucn}} template for substing
automatic substing by User:AnomieBOT/docs/TemplateSubster
]]
local function make_cite_iucn (frame)
local args_t = getArgs (frame);
local raw_iucn_cite = args_t[1];
local template_t = {'{{cite iucn '}; -- sequence that holds the {{cite iucn}} template as it is being assembled; for nowiki'd output
local params_t = {}; -- table of parameter/value pairs for substing
local year, volume, artnum, doi, accessdate, language;
year = raw_iucn_cite:match ('^%D+(%d%d%d%d)');
volume, artnum = raw_iucn_cite:match ('(%d%d%d%d):%s+(e%.T%d+A+%d+)%.%s?');
doi = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.%a%a');
language = raw_iucn_cite:match ('10%.2305/IUCN%.UK%.[%d%-]+%.RLTS%.T%d+A%d+%.(%a%a)');
accessdate = raw_iucn_cite:match ('Accessed on (.-)%.?$') or raw_iucn_cite:match ('Downloaded on (.-)%.?$'); -- 'Downloaded' → 'Accessed' change occured December 2021;
accessdate = accessdate:gsub ('^0', ''); -- strips leading 0 in day 01 January 2020 -> 1 January 2020
table.insert (template_t, author_names_get (raw_iucn_cite, params_t)); -- add author name parameters; as a single string to <template_t>; as individual entries to <params_t>
table.insert (template_t, table.concat ({' |year=', year})); -- add formatted year
params_t.year = year;
local title = title_get (raw_iucn_cite);
local type_p = title:match (green_status_pattern);
if type_p then
title = title:match ('^([^%(]+)%s*%(');
table.insert (template_t, table.concat ({' |type=', type_p})); -- add formatted errata
params_t.type = type_p;
end
local errata = title:match (errata_pattern); -- nil unless IUCN citation has errata annotation; else year that this errata published (|date=)
if errata then
table.insert (template_t, table.concat ({' |errata=', errata})); -- add formatted errata
params_t.errata = errata;
title = title:gsub (errata_pattern, ''); -- remove errata annotation
end
local amends = title:match (amendment_pattern); -- nil unless IUCN citation has amendment annotation; else year that this assessment amends (|orig-date=)
if amends then
table.insert (template_t, table.concat ({' |amends=', amends})); -- add year of assessment that this assessment amends
params_t.amends = amends;
title = title:gsub (amendment_pattern, ''); -- remove amendment annotation
end
table.insert (template_t, table.concat ({' |title=', title})); -- add formatted title
params_t.title = title;
table.insert (template_t, table.concat ({' |volume=', volume})); -- add formatted volume
params_t.volume = volume;
table.insert (template_t, table.concat ({' |article-number=', artnum})); -- add formatted article number
params_t['article-number'] = artnum;
table.insert (template_t, table.concat ({' |doi=', doi})); -- add formatted doi
params_t.doi = doi;
table.insert (template_t, table.concat ({' |language=', language})); -- add formatted language
params_t.language = language;
table.insert (template_t, table.concat ({' |access-date=', accessdate})); -- add formatted access-date
params_t['access-date'] = accessdate;
table.insert (template_t, '}}'); -- close the template
if args_t[2] then -- if anything in args_t[2], write a nowiki'd version that editors can copy into <ref> tags
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', table.concat (template_t), '</syntaxhighlight>'})); -- caveat lector: if left long enough anomiebot will subst this
end
if args_t['ref'] then -- enable subst of ref tags with name
return frame:preprocess ('<ref name=' .. args_t['ref'] .. '>' .. table.concat (template_t) .. '</ref>')
end
return frame:preprocess (table.concat (template_t)); -- render {{cite iucn}} template; substable
end
--[[--------------------------< E X P O R T E D F U N C T I O N S >------------------------------------------
]]
return {
cite = cite, -- wraps {{cite journal}}
_cite = _cite, -- for calling from other modules
make_cite_iucn = make_cite_iucn, -- wraps {{cite IUCN}}
}
4o3rd8kt0073jm5o41riirfhzwkax10
ऐन कार्सन
0
102051
815318
2026-11-12T17:19:43Z
SM7
3953
पन्ना बनावल गइल "'''ऐन पैट्रिशिया कार्सन''' (जनम21 जून 1950) [[कनाडा]] के एगो शिक्षाविद् आ [[लेखिका]] हईं, जिनका के 2026 के साहित्य के नोबेल प्राइज दिहल गइल। ई पुरस्कार उनका के "शास्त्रीय परंपरा के सा..." के साथ
815318
wikitext
text/x-wiki
'''ऐन पैट्रिशिया कार्सन''' (जनम21 जून 1950) [[कनाडा]] के एगो शिक्षाविद् आ [[लेखिका]] हईं, जिनका के 2026 के साहित्य के नोबेल प्राइज दिहल गइल। ई पुरस्कार उनका के "शास्त्रीय परंपरा के साथ चंचल संवाद के माध्यम से समकालीन साहित्य खातिर नया रूप तैयार करे वाला उनके साहसी आ नवाचारी रचनात्मक कृति-समूह" खातिर दिहल गइल।
[[टोरंटो]] में जनमल कार्सन [[टोरंटो यूनिवर्सिटी]] से ग्रेजुएट हई। 1979 से ऊ कई गो इन्वर्सिटी सभ में प्रोफेसर आ लेक्चरार के रूप में काम करत आइल बाड़ी। अपना पूरा करियर में ऊ क्लासिकल स्टडीज, तुलनात्मक साहित्य आ रचनात्मक लेखन पढ़वले बाड़ी। ऊ यूनिवर्सिटी ऑफ कैलगरी, [[प्रिंसटन यूनिवर्सिटी]], एमोरी यूनिवर्सिटी, मैकगिल यूनिवर्सिटी, यूनिवर्सिटी ऑफ मिशिगन आ न्यूयॉर्क यूनिवर्सिटी में पढ़वले बाड़ी।
कार्सन बीस गो बेसी किताब लिखले बाड़ी, जेमें निबंध आ कविता संग्रह के साथे-साथे प्राचीन यूनानी त्रासदी ([[ग्रीक ट्रेजडी]]) के अनुवादो शामिल बा। उनका के गुगेनहाइम आ मैकार्थर फेलोशिप मिल चुकल बा। ऊ लैनन साहित्यिक प्राइज , दू गो ग्रिफिन कविता प्राइज , टी. एस. एलियट पुरस्कार, प्रिंसेस ऑफ अस्तूरियास पुरस्कार, अंग्रेजी कविता खातिर गवर्नर जनरल पुरस्कार आ पेन/नाबोकोव प्राइज जीत चुकल बाड़ी। कनाडा के साहित्य में योगदान खातिर 2005 में उनका के ऑर्डर ऑफ कनाडा के सदस्य भी नियुक्त कइल गइल बा।
tp79gy1kfr0tebu7ml8vcer3umys622
815320
815318
2026-11-12T17:26:01Z
SM7
3953
+श्रेणीजोड़ल गइल, आधार टैग जोड़ल गइल
815320
wikitext
text/x-wiki
'''ऐन पैट्रिशिया कार्सन''' (जनम21 जून 1950) [[कनाडा]] के एगो शिक्षाविद् आ [[लेखिका]] हईं, जिनका के 2026 के साहित्य के नोबेल प्राइज दिहल गइल। ई पुरस्कार उनका के "शास्त्रीय परंपरा के साथ चंचल संवाद के माध्यम से समकालीन साहित्य खातिर नया रूप तैयार करे वाला उनके साहसी आ नवाचारी रचनात्मक कृति-समूह" खातिर दिहल गइल।
[[टोरंटो]] में जनमल कार्सन [[टोरंटो यूनिवर्सिटी]] से ग्रेजुएट हई। 1979 से ऊ कई गो इन्वर्सिटी सभ में प्रोफेसर आ लेक्चरार के रूप में काम करत आइल बाड़ी। अपना पूरा करियर में ऊ क्लासिकल स्टडीज, तुलनात्मक साहित्य आ रचनात्मक लेखन पढ़वले बाड़ी। ऊ यूनिवर्सिटी ऑफ कैलगरी, [[प्रिंसटन यूनिवर्सिटी]], एमोरी यूनिवर्सिटी, मैकगिल यूनिवर्सिटी, यूनिवर्सिटी ऑफ मिशिगन आ न्यूयॉर्क यूनिवर्सिटी में पढ़वले बाड़ी।
कार्सन बीस गो बेसी किताब लिखले बाड़ी, जेमें निबंध आ कविता संग्रह के साथे-साथे प्राचीन यूनानी त्रासदी ([[ग्रीक ट्रेजडी]]) के अनुवादो शामिल बा। उनका के गुगेनहाइम आ मैकार्थर फेलोशिप मिल चुकल बा। ऊ लैनन साहित्यिक प्राइज , दू गो ग्रिफिन कविता प्राइज , टी. एस. एलियट पुरस्कार, प्रिंसेस ऑफ अस्तूरियास पुरस्कार, अंग्रेजी कविता खातिर गवर्नर जनरल पुरस्कार आ पेन/नाबोकोव प्राइज जीत चुकल बाड़ी। कनाडा के साहित्य में योगदान खातिर 2005 में उनका के ऑर्डर ऑफ कनाडा के सदस्य भी नियुक्त कइल गइल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:कनाडा के लेखक]]
[[श्रेणी:1950 में जनम]]
[[श्रेणी:जियत लोग]]
{{writer-stub}}
ikcop0r101to7jz8yjqs0br1u0alrhi
815333
815320
2026-11-12T19:33:07Z
SM7
3953
ज्ञानसंदूक जोड़ल गइल
815333
wikitext
text/x-wiki
{{Infobox writer
| name =
| honorific_suffix =
| image = Anne Carson, poet, at the 2024 National Book Awards.jpg
| caption = 2024 में कार्सन
| birth_name = Anne Patricia Carson
| birth_date = {{birth date and age|1950|6|21}}
| birth_place = [[टोरंटो]], Ontario, Canada
| death_date =
| death_place =
| citizenship = {{hlist |Canada |Iceland}}
| education = [[University of Toronto]] ([[Bachelor of Arts|BA]], [[Master of Arts|MA]], [[Doctor of Philosophy|PhD]])
| occupation = {{hlist |Poet |essayist |translator |classicist |professor}}
| spouse = Robert Currie
| period = 1979–present
| genre = {{hlist |Poetry |essay |translation}}
| notable_works = {{ubl |''Eros the Bittersweet'' (1986) |''Autobiography of Red'' (1998) |''Men in the Off Hours'' (2000) |''The Beauty of the Husband'' (2001) |''Red Doc>'' (2013)}}
| awards = {{ubl |Lannan Literary Award (1996) |Guggenheim Fellowship (1998) |MacArthur Fellowship (2000) |Griffin Poetry Prize (2001, 2013) |Governor General's Award (2001) |T. S. Eliot Prize (2001) |Member of the Order of Canada (2005) |Princess of Asturias Award (2020) |PEN/Nabokov Award (2021) |Nobel Prize in Literature (2026)}}
}}
'''ऐन पैट्रिशिया कार्सन''' (''Anne Patricia Carson''; जनम21 जून 1950) [[कनाडा]] के एगो शिक्षाविद् आ [[लेखिका]] हईं, जिनका के 2026 के [[साहित्य के नोबेल प्राइज]] दिहल गइल। ई पुरस्कार उनका के "शास्त्रीय परंपरा के साथ चंचल संवाद के माध्यम से समकालीन साहित्य खातिर नया रूप तैयार करे वाला उनके साहसी आ नवाचारी रचनात्मक कृति-समूह" खातिर दिहल गइल।
[[टोरंटो]] में जनमल कार्सन [[टोरंटो यूनिवर्सिटी]] से ग्रेजुएट हई। 1979 से ऊ कई गो इन्वर्सिटी सभ में प्रोफेसर आ लेक्चरार के रूप में काम करत आइल बाड़ी। अपना पूरा करियर में ऊ क्लासिकल स्टडीज, तुलनात्मक साहित्य आ रचनात्मक लेखन पढ़वले बाड़ी। ऊ यूनिवर्सिटी ऑफ कैलगरी, [[प्रिंसटन यूनिवर्सिटी]], एमोरी यूनिवर्सिटी, मैकगिल यूनिवर्सिटी, यूनिवर्सिटी ऑफ मिशिगन आ न्यूयॉर्क यूनिवर्सिटी में पढ़वले बाड़ी।
कार्सन बीस गो बेसी किताब लिखले बाड़ी, जेमें निबंध आ कविता संग्रह के साथे-साथे प्राचीन यूनानी त्रासदी ([[ग्रीक ट्रेजडी]]) के अनुवादो शामिल बा। उनका के गुगेनहाइम आ मैकार्थर फेलोशिप मिल चुकल बा। ऊ लैनन साहित्यिक प्राइज , दू गो ग्रिफिन कविता प्राइज , टी. एस. एलियट पुरस्कार, प्रिंसेस ऑफ अस्तूरियास पुरस्कार, अंग्रेजी कविता खातिर गवर्नर जनरल पुरस्कार आ पेन/नाबोकोव प्राइज जीत चुकल बाड़ी। कनाडा के साहित्य में योगदान खातिर 2005 में उनका के ऑर्डर ऑफ कनाडा के सदस्य भी नियुक्त कइल गइल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:कनाडा के लेखक]]
[[श्रेणी:1950 में जनम]]
[[श्रेणी:जियत लोग]]
{{writer-stub}}
bgbmce0fsze6m1q2w3w3cytgllqp2ym
815334
815333
2026-11-12T19:35:49Z
SM7
3953
सुधार कइल गइल
815334
wikitext
text/x-wiki
{{Infobox writer
| name = ऐन कार्सन
| honorific_suffix = CM
| image = Anne Carson, poet, at the 2024 National Book Awards.jpg
| caption = 2024 में कार्सन
| birth_name = Anne Patricia Carson
| birth_date = {{birth date and age|1950|6|21}}
| birth_place = [[टोरंटो]], ओंटारियो, कनाडा
| death_date =
| death_place =
| citizenship = {{hlist |कनाडा |आइसलैंड }}
| education = [[टोरंटो यूनिवर्सिटी]] ([[बैचलर ऑफ आर्ट्स|BA]], [[मास्टर ऑफ आर्ट्स|MA]], [[डॉक्टर ऑफ फिलासफी|PhD]])
| occupation = {{hlist |Poet |essayist |translator |classicist |professor}}
| spouse = Robert Currie
| period = 1979–present
| genre = {{hlist |Poetry |essay |translation}}
| notable_works = {{ubl |''Eros the Bittersweet'' (1986) |''Autobiography of Red'' (1998) |''Men in the Off Hours'' (2000) |''The Beauty of the Husband'' (2001) |''Red Doc>'' (2013)}}
| awards = {{ubl |Lannan Literary Award (1996) |Guggenheim Fellowship (1998) |MacArthur Fellowship (2000) |Griffin Poetry Prize (2001, 2013) |Governor General's Award (2001) |T. S. Eliot Prize (2001) |Member of the Order of Canada (2005) |Princess of Asturias Award (2020) |PEN/Nabokov Award (2021) |Nobel Prize in Literature (2026)}}
}}
'''ऐन पैट्रिशिया कार्सन''' (''Anne Patricia Carson''; जनम21 जून 1950) [[कनाडा]] के एगो शिक्षाविद् आ [[लेखिका]] हईं, जिनका के 2026 के [[साहित्य के नोबेल प्राइज]] दिहल गइल। ई पुरस्कार उनका के "शास्त्रीय परंपरा के साथ चंचल संवाद के माध्यम से समकालीन साहित्य खातिर नया रूप तैयार करे वाला उनके साहसी आ नवाचारी रचनात्मक कृति-समूह" खातिर दिहल गइल।
[[टोरंटो]] में जनमल कार्सन [[टोरंटो यूनिवर्सिटी]] से ग्रेजुएट हई। 1979 से ऊ कई गो इन्वर्सिटी सभ में प्रोफेसर आ लेक्चरार के रूप में काम करत आइल बाड़ी। अपना पूरा करियर में ऊ क्लासिकल स्टडीज, तुलनात्मक साहित्य आ रचनात्मक लेखन पढ़वले बाड़ी। ऊ यूनिवर्सिटी ऑफ कैलगरी, [[प्रिंसटन यूनिवर्सिटी]], एमोरी यूनिवर्सिटी, मैकगिल यूनिवर्सिटी, यूनिवर्सिटी ऑफ मिशिगन आ न्यूयॉर्क यूनिवर्सिटी में पढ़वले बाड़ी।
कार्सन बीस गो बेसी किताब लिखले बाड़ी, जेमें निबंध आ कविता संग्रह के साथे-साथे प्राचीन यूनानी त्रासदी ([[ग्रीक ट्रेजडी]]) के अनुवादो शामिल बा। उनका के गुगेनहाइम आ मैकार्थर फेलोशिप मिल चुकल बा। ऊ लैनन साहित्यिक प्राइज , दू गो ग्रिफिन कविता प्राइज , टी. एस. एलियट पुरस्कार, प्रिंसेस ऑफ अस्तूरियास पुरस्कार, अंग्रेजी कविता खातिर गवर्नर जनरल पुरस्कार आ पेन/नाबोकोव प्राइज जीत चुकल बाड़ी। कनाडा के साहित्य में योगदान खातिर 2005 में उनका के ऑर्डर ऑफ कनाडा के सदस्य भी नियुक्त कइल गइल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:कनाडा के लेखक]]
[[श्रेणी:1950 में जनम]]
[[श्रेणी:जियत लोग]]
{{writer-stub}}
78zlzokm4d41fbytzg141ridmh8ufbn
श्रेणी:साहित्य में नोबेल लॉरिएट
14
102052
815319
2026-11-12T17:24:23Z
SM7
3953
पन्ना बनावल गइल "[[श्रेणी:नोबेल प्राइज]]" के साथ
815319
wikitext
text/x-wiki
[[श्रेणी:नोबेल प्राइज]]
0a3mpszp4pm9004frwzufydjhgbw924
नोबेल पुरस्कार
0
102053
815322
2026-11-12T17:27:15Z
SM7
3953
SM7 पन्ना [[नोबेल पुरस्कार]] के [[नोबेल प्राइज]] पर अनुप्रेषण के ऊपर स्थानांतरण कइलें
815322
wikitext
text/x-wiki
#REDIRECT [[नोबेल प्राइज]]
mhm1rb6hm9w58tb2yb9bmuxzvcnzr8j
श्रेणी:नोबेल पुरस्कार
14
102054
815324
2026-11-12T17:27:29Z
SM7
3953
SM7 पन्ना [[श्रेणी:नोबेल पुरस्कार]] के [[श्रेणी:नोबेल प्राइज]] पर स्थानांतरण कइलें
815324
wikitext
text/x-wiki
#REDIRECT [[:श्रेणी:नोबेल प्राइज]]
3wfwo748u4f8tk13r46vum0k90rmtjq
815325
815324
2026-11-12T17:27:50Z
SM7
3953
Removed redirect to [[श्रेणी:नोबेल प्राइज]]
815325
wikitext
text/x-wiki
{{Catr|नोबेल प्राइज}}
btosgfr5bbqpb3sadg9xihdwuvqxv9q
प्रयोगकर्ता वार्ता:Khushwaha
3
102055
815338
2026-11-13T05:00:41Z
नया सदस्य स्वागतकर्ता
6624
Adding [[Welcome|welcome message]] to new user's talk page
815338
wikitext
text/x-wiki
{| id="GeoPort-upper" width="100%" cellpadding="5" cellspacing="6" style="background:#FFFAFF; text-align: justify; border-style:ridge; border-width:1px; border-color:#A9A9A9;"
|-
|<div style="display:inline-block;margin-top:.1em; text-align:right; margin-bottom:.2em; border-bottom:0; font-weight:bold;"><big>Welcome! स्वागतम्!</big> [[File:Crystal Clear app ksmiletris.png|25px]] </div>
राउर बहुत-बहुत स्वागत बा '''{{BASEPAGENAME}}''' जी ! {{#if: | {{{1}}} | }}<br/>
<div style="float:right; <!--background:#F5F5DC;--> width:30%">
<!-- दाहिना साइडबार -->
{| border="5" cellspacing="10" cellpadding="5" height="50" align=center border=0 style="background: transparent"
|-
| <big>'''ई जरूर पढ़ल जाय:'''</big>
|-
| style="background-color:#FFFFFF; border: solid 2px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:विकिपीडिया का ना हवे|विकिपीडिया का ना हवे?]]
|-
| style="background-color:#FFFFFF; border: solid 2px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:भोजपुरी में कइसे टाइप करब?|भोजपुरी में टाइपिंग]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:सत्यापन जोग|प्रमाणित बात लिखीं]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[मदद:फुटनोट|संदर्भ कइसे जोड़ीं?]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:नीति अउरी दिसानिर्देस|विकिनीति आ निर्देश]]
|}</div>
<!-- मुख्य पाठ -->
'''{{#if: | {{{1}}} | {{BASEPAGENAME}} }} जी''',
एह समय रउँआ [[विकिमीडिया फाउन्डेशन]] के परियोजना [[भोजपुरी]] [[विकिपीडिया]] पर बाड़ीं। भोजपुरी विकिपीडिया एगो मुक्त डिजिटल [[ज्ञानकोश]] हवे, जेवन अइसन भइया-बहिनी लोग मिल के लिखले बा जे ज्ञान बाँटे में बिस्वास करत बाटे। एह समय ए परियोजना में [[विशेष:ActiveUsers|{{NUMBEROFUSERS}} सदस्य]] लोग शामिल बाटे। ई बहुते खुशी क बाति बा कि रउँओं ए में शामिल हो गइल बाड़ीं।
* पहिले से बनल [[विकिपीडिया:लेख|लेखवन]] में कौनो संपादन खाली टेस्ट करे खातिर मत करीं। कौनों तरह के परीक्षण <small>(प्रयोग या टेस्टिंग)</small> [[विकिपीडिया:अभ्यास पन्ना|अभ्यास पन्ना]] या [[Special:MyPage/sandbox|अपना अभ्यास पन्ना]] पर करीं।
* [[विकिपीडिया:आपन परिचय कइसे देईं?|आपन परिचय]] आप संछेप में [[प्रयोगकर्ता:{{BASEPAGENAME}}|अपना सदस्य पन्ना]] पर दे सकत बानी। बहुत पर्सनल बात इहाँ मत लिखीं, न कौनों परचार वाली बात लिखीं। अपने खुद के बारे में लेख मत बनाईं।
* दुसरा [[विकिपीडिया:चौपाल |सदस्य लोगन से बात]] करत समय, [[मदद:वार्ता पन्ना|बातचीत पन्ना]] पर सनेसा लिखले की बाद आपन [[विकिपीडिया:दसखत|दसखत]] <small>(हस्ताक्षर)</small> जरूर करीं। एकरा खातिर अंत में चार गो टेढ़का डैश (<nowiki>~~~~</nowiki>) लिख देंईं या टूलबार में [[File:Insert-signature2.svg|link=|alt=]] पर क्लिक करीं।
* मदद चाहत होखीं त विकिपीडिया के [[विकिपीडिया:मदद|मदद पन्ना]] पर जाईं।
<!-- फुटर के कड़ी सभ -->
सीखे-समझे खातिर कुछ अउरी कड़ी नीचे दिहल जात बाटे:
{| border="5" cellspacing="1" cellpadding="0" height="50" align=center border=0 style="background: transparent"
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 10px;" | [[विकिपीडिया:स्वशिक्षा|शुरू से सीखीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[मदद:संपादन|संपादन सीखीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:नया लेख कइसे सुरू करीं?|नया लेख]]
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:अइसन लेख मना बाटे|लेख मनाहीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:पंचशील|पंचशील]]
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:समुदाय पोर्टल|सदस्य समाज पन्ना]]
|}
|}
-- [[प्रयोगकर्ता:नया सदस्य स्वागतकर्ता|नया सदस्य स्वागतकर्ता]] ([[प्रयोगकर्ता वार्ता:नया सदस्य स्वागतकर्ता|बात करीं]]) 05:00, 13 नवंबर 2026 (UTC)
3ga1wg3ituwcgwcwg3o3r48mkbkq7b1
बोरिस पास्तरनाक
0
102056
815341
2026-11-13T07:07:28Z
SM7
3953
नया आधार लेख / अंग्रेजी विकिपीडिया से अनुबाद कइ के
815341
wikitext
text/x-wiki
'''बोरिस लियोनिदोविच पास्तरनाक''' (10 फरवरी [पुरानी इस्टाइल 29 जनवरी] 1890 — 30 मई 1960) एगो रूसी आ [[सोवियत संघ|सोवियत]] कवि, उपन्यासकार आ साहित्यिक अनुवादक रहलें। 1917 में रचल पास्तरनाक के पहिला कविता संग्रह ''माय सिस्टर, लाइफ'' 1922 में बर्लिन से पब्लिश भइल आ जल्दिए रूसी भाषा के एगो महत्वपूर्ण कविता संग्रह बन गइल। गोएथे, शिलर, काल्डेरॉन दे ला बार्का आ शेक्सपियर के नाटकन के पास्तरनाक द्वारा कइल गइल अनुवाद रूसी रंगमंच के अध्ययन में आजो बहुत पॉपुलर बाड़ें।
पास्तरनाक ''[[डॉक्टर जिवागो]]'' (1957) उपन्यास के लेखक हवें आ एही खातिर सबसे बेसी परसिद्ध हवें। ई उपन्यास 1905 के [[रूसी क्रांति]] आ [[दुसरा विश्वजुद्ध]] के बीच के दौर पर आधारित हवे। ''डॉक्टर जिवागो'' के सोवियत संघ में पब्लिकेशन खातिर इजाजत ना मिलल, लेकिन एकर पांडुलिपि छिपा के इटली ले जाइल गइल। 1957 में CIA के एगो अभियान के हिस्सा के रूप में ई उपन्यास पहिला बेर इटली में प्रकाशित भइल। एह अभियान के मकसद सोवियत संघ के नागरिकन के नजर में ओकर छवि खराब कइल रहे।
पास्तरनाक के 1958 में [[साहित्य के नोबेल प्राइज]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी बहुत नाराज भइल आ दबाव डाल के पास्तरनाक के पुरस्कार ठुकरावे पर मजबूर कर दिहलस। 1989 में पास्तरनाक के बेटा येवगेनी अपना पिता के ओर से अंततः ई पुरस्कार स्वीकार कइलें। 2003 से डॉक्टर जिवागो रूसी स्कूल के मुख्य सिलेबस के हिस्सा बनल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
588iaujjv84h79f42kstrcwemicn4na
815342
815341
2026-11-13T07:07:41Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:साहित्य में नोबेल लॉरिएट]] जोड़ल गइल
815342
wikitext
text/x-wiki
'''बोरिस लियोनिदोविच पास्तरनाक''' (10 फरवरी [पुरानी इस्टाइल 29 जनवरी] 1890 — 30 मई 1960) एगो रूसी आ [[सोवियत संघ|सोवियत]] कवि, उपन्यासकार आ साहित्यिक अनुवादक रहलें। 1917 में रचल पास्तरनाक के पहिला कविता संग्रह ''माय सिस्टर, लाइफ'' 1922 में बर्लिन से पब्लिश भइल आ जल्दिए रूसी भाषा के एगो महत्वपूर्ण कविता संग्रह बन गइल। गोएथे, शिलर, काल्डेरॉन दे ला बार्का आ शेक्सपियर के नाटकन के पास्तरनाक द्वारा कइल गइल अनुवाद रूसी रंगमंच के अध्ययन में आजो बहुत पॉपुलर बाड़ें।
पास्तरनाक ''[[डॉक्टर जिवागो]]'' (1957) उपन्यास के लेखक हवें आ एही खातिर सबसे बेसी परसिद्ध हवें। ई उपन्यास 1905 के [[रूसी क्रांति]] आ [[दुसरा विश्वजुद्ध]] के बीच के दौर पर आधारित हवे। ''डॉक्टर जिवागो'' के सोवियत संघ में पब्लिकेशन खातिर इजाजत ना मिलल, लेकिन एकर पांडुलिपि छिपा के इटली ले जाइल गइल। 1957 में CIA के एगो अभियान के हिस्सा के रूप में ई उपन्यास पहिला बेर इटली में प्रकाशित भइल। एह अभियान के मकसद सोवियत संघ के नागरिकन के नजर में ओकर छवि खराब कइल रहे।
पास्तरनाक के 1958 में [[साहित्य के नोबेल प्राइज]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी बहुत नाराज भइल आ दबाव डाल के पास्तरनाक के पुरस्कार ठुकरावे पर मजबूर कर दिहलस। 1989 में पास्तरनाक के बेटा येवगेनी अपना पिता के ओर से अंततः ई पुरस्कार स्वीकार कइलें। 2003 से डॉक्टर जिवागो रूसी स्कूल के मुख्य सिलेबस के हिस्सा बनल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
tfarice6brz12d0ouxd5bxi3hknjkug
815343
815342
2026-11-13T07:09:18Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा +[[श्रेणी:1890 में जनम]]; +[[श्रेणी:1960 में निधन]]; +[[श्रेणी:रूसी लेखक]]; +[[श्रेणी:रूसी उपन्यासकार]]
815343
wikitext
text/x-wiki
'''बोरिस लियोनिदोविच पास्तरनाक''' (10 फरवरी [पुरानी इस्टाइल 29 जनवरी] 1890 — 30 मई 1960) एगो रूसी आ [[सोवियत संघ|सोवियत]] कवि, उपन्यासकार आ साहित्यिक अनुवादक रहलें। 1917 में रचल पास्तरनाक के पहिला कविता संग्रह ''माय सिस्टर, लाइफ'' 1922 में बर्लिन से पब्लिश भइल आ जल्दिए रूसी भाषा के एगो महत्वपूर्ण कविता संग्रह बन गइल। गोएथे, शिलर, काल्डेरॉन दे ला बार्का आ शेक्सपियर के नाटकन के पास्तरनाक द्वारा कइल गइल अनुवाद रूसी रंगमंच के अध्ययन में आजो बहुत पॉपुलर बाड़ें।
पास्तरनाक ''[[डॉक्टर जिवागो]]'' (1957) उपन्यास के लेखक हवें आ एही खातिर सबसे बेसी परसिद्ध हवें। ई उपन्यास 1905 के [[रूसी क्रांति]] आ [[दुसरा विश्वजुद्ध]] के बीच के दौर पर आधारित हवे। ''डॉक्टर जिवागो'' के सोवियत संघ में पब्लिकेशन खातिर इजाजत ना मिलल, लेकिन एकर पांडुलिपि छिपा के इटली ले जाइल गइल। 1957 में CIA के एगो अभियान के हिस्सा के रूप में ई उपन्यास पहिला बेर इटली में प्रकाशित भइल। एह अभियान के मकसद सोवियत संघ के नागरिकन के नजर में ओकर छवि खराब कइल रहे।
पास्तरनाक के 1958 में [[साहित्य के नोबेल प्राइज]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी बहुत नाराज भइल आ दबाव डाल के पास्तरनाक के पुरस्कार ठुकरावे पर मजबूर कर दिहलस। 1989 में पास्तरनाक के बेटा येवगेनी अपना पिता के ओर से अंततः ई पुरस्कार स्वीकार कइलें। 2003 से डॉक्टर जिवागो रूसी स्कूल के मुख्य सिलेबस के हिस्सा बनल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:1890 में जनम]]
[[श्रेणी:1960 में निधन]]
[[श्रेणी:रूसी लेखक]]
[[श्रेणी:रूसी उपन्यासकार]]
hvaelbhzewqruh8jvwwvdgnsb5mbm38
815344
815343
2026-11-13T07:12:38Z
SM7
3953
ज्ञानसंदूक जोड़ल गइल
815344
wikitext
text/x-wiki
{{Infobox writer <!-- for more information see [[:Template:Infobox writer/doc]] -->
| name = Boris Pasternak
| image = Boris Pasternak 1958 photo.jpg
| caption = Pasternak in 1959
| birth_name = Boris Leonidovich Pasternak
| birth_date = {{birth date|df=yes|1890|2|10}}
| birth_place = Moscow, Russian Empire
| death_date = {{death date and age|df=yes|1960|5|30|1890|2|10}}
| death_place = Peredelkino, Russian SFSR, Soviet Union
| partner = Olga Ivinskaya
| spouse = {{unbulleted list|{{marriage|Evgeniya Lurye|1922|1931|reason=divorce}}|{{marriage|Zinaida Neuhaus|1931}}}}
| children = 2, including Evgeny
| parents = {{unbulleted list|Leonid Pasternak (father)|Rosalia Isidorovna Kofmann Pasternak (mother)}}
| relatives = {{unbulleted list|Aleksandr Pasternak (brother)|Josephine Pasternak (sister)
|[[Lydia Pasternak Slater]] (sister)}}
| occupation = {{cslist|कवी|लेखक}}
| notable_works = {{ubl|''My Sister, Life''|''The Second Birth''|''[[Doctor Zhivago (novel)|Doctor Zhivago]]''}}
| education = Moscow State University (1913)<ref>{{Cite web|url=https://godliteratury.ru/amp/articles/2025/01/24/moskovskomu-gosudarstvennomu-universitetu-270-let-kto-iz-russkih-pisatelej-uchilsia-v-mgu|title=Московскому государственному университету — 270 лет. Кто из русских писателей учился в МГУ?|lang=ru|website=Год Литературы|date=2025-01-24|access-date=2026-03-04|archive-date=2025-09-13|archive-url=https://web.archive.org/web/20250913175239/https://godliteratury.ru/amp/articles/2025/01/24/moskovskomu-gosudarstvennomu-universitetu-270-let-kto-iz-russkih-pisatelej-uchilsia-v-mgu|url-status=live}}</ref>
| awards = {{awards|[[साहित्य में नोबेल प्राइज]]|(1958; declined)}}
| signature = Boris Pasternak signature.svg
}}
'''बोरिस लियोनिदोविच पास्तरनाक''' ({{Langx|en|Boris Leonidovich Pasternak}}; 10 फरवरी [पुरानी इस्टाइल 29 जनवरी] 1890 — 30 मई 1960) एगो रूसी आ [[सोवियत संघ|सोवियत]] कवि, उपन्यासकार आ साहित्यिक अनुवादक रहलें। 1917 में रचल पास्तरनाक के पहिला कविता संग्रह ''माय सिस्टर, लाइफ'' 1922 में बर्लिन से पब्लिश भइल आ जल्दिए रूसी भाषा के एगो महत्वपूर्ण कविता संग्रह बन गइल। गोएथे, शिलर, काल्डेरॉन दे ला बार्का आ [[शेक्सपियर]] के नाटकन के पास्तरनाक द्वारा कइल गइल अनुवाद रूसी रंगमंच के अध्ययन में आजो बहुत पॉपुलर बाड़ें।
पास्तरनाक ''[[डॉक्टर जिवागो]]'' (1957) उपन्यास के लेखक हवें आ एही खातिर सबसे बेसी परसिद्ध हवें। ई उपन्यास 1905 के [[रूसी क्रांति]] आ [[दुसरा विश्वजुद्ध]] के बीच के दौर पर आधारित हवे। ''डॉक्टर जिवागो'' के सोवियत संघ में पब्लिकेशन खातिर इजाजत ना मिलल, लेकिन एकर पांडुलिपि छिपा के इटली ले जाइल गइल। 1957 में [[CIA]] के एगो अभियान के हिस्सा के रूप में ई उपन्यास पहिला बेर इटली में प्रकाशित भइल। एह अभियान के मकसद सोवियत संघ के नागरिकन के नजर में ओकर छवि खराब कइल रहे।
पास्तरनाक के 1958 में [[साहित्य के नोबेल प्राइज]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी बहुत नाराज भइल आ दबाव डाल के पास्तरनाक के पुरस्कार ठुकरावे पर मजबूर कर दिहलस। 1989 में पास्तरनाक के बेटा येवगेनी अपना पिता के ओर से अंततः ई पुरस्कार स्वीकार कइलें। 2003 से डॉक्टर जिवागो रूसी स्कूल के मुख्य सिलेबस के हिस्सा बनल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:1890 में जनम]]
[[श्रेणी:1960 में निधन]]
[[श्रेणी:रूसी लेखक]]
[[श्रेणी:रूसी उपन्यासकार]]
kcu0wpezvjl32dsoz93z751qydek115
815345
815344
2026-11-13T07:14:31Z
SM7
3953
सुधार कइल गइल
815345
wikitext
text/x-wiki
{{Infobox writer <!-- for more information see [[:Template:Infobox writer/doc]] -->
| name = Boris Pasternak
| image = Boris Pasternak 1958 photo.jpg
| caption = Pasternak in 1959
| birth_name = Boris Leonidovich Pasternak
| birth_date = {{birth date|df=yes|1890|2|10}}
| birth_place = Moscow, Russian Empire
| death_date = {{death date and age|df=yes|1960|5|30|1890|2|10}}
| death_place = Peredelkino, Russian SFSR, Soviet Union
| partner = Olga Ivinskaya
| spouse = {{unbulleted list|{{marriage|Evgeniya Lurye|1922|1931|reason=divorce}}|{{marriage|Zinaida Neuhaus|1931}}}}
| children = 2, including Evgeny
| parents = {{unbulleted list|Leonid Pasternak (father)|Rosalia Isidorovna Kofmann Pasternak (mother)}}
| relatives = {{unbulleted list|Aleksandr Pasternak (brother)|Josephine Pasternak (sister)
|Lydia Pasternak Slater (sister)}}
| occupation = {{cslist|कवी|लेखक}}
| notable_works = {{ubl|''My Sister, Life''|''The Second Birth''|''[[डॉक्टर जिवागो (उपन्यास)|डॉक्टर जीवागो]]''}}
| education = Moscow State University (1913)<ref>{{Cite web|url=https://godliteratury.ru/amp/articles/2025/01/24/moskovskomu-gosudarstvennomu-universitetu-270-let-kto-iz-russkih-pisatelej-uchilsia-v-mgu|title=Московскому государственному университету — 270 лет. Кто из русских писателей учился в МГУ?|lang=ru|website=Год Литературы|date=2025-01-24|access-date=2026-03-04|archive-date=2025-09-13|archive-url=https://web.archive.org/web/20250913175239/https://godliteratury.ru/amp/articles/2025/01/24/moskovskomu-gosudarstvennomu-universitetu-270-let-kto-iz-russkih-pisatelej-uchilsia-v-mgu|url-status=live}}</ref>
| awards = {{awards|[[साहित्य में नोबेल प्राइज]]|(1958; declined)}}
| signature = Boris Pasternak signature.svg
}}
'''बोरिस लियोनिदोविच पास्तरनाक''' ({{Langx|en|Boris Leonidovich Pasternak}}; 10 फरवरी [पुरानी इस्टाइल 29 जनवरी] 1890 — 30 मई 1960) एगो रूसी आ [[सोवियत संघ|सोवियत]] कवि, उपन्यासकार आ साहित्यिक अनुवादक रहलें। 1917 में रचल पास्तरनाक के पहिला कविता संग्रह ''माय सिस्टर, लाइफ'' 1922 में बर्लिन से पब्लिश भइल आ जल्दिए रूसी भाषा के एगो महत्वपूर्ण कविता संग्रह बन गइल। गोएथे, शिलर, काल्डेरॉन दे ला बार्का आ [[शेक्सपियर]] के नाटकन के पास्तरनाक द्वारा कइल गइल अनुवाद रूसी रंगमंच के अध्ययन में आजो बहुत पॉपुलर बाड़ें।
पास्तरनाक ''[[डॉक्टर जिवागो (उपन्यास)|डॉक्टर जीवागो]]'' (1957) उपन्यास के लेखक हवें आ एही खातिर सबसे बेसी परसिद्ध हवें। ई उपन्यास 1905 के [[रूसी क्रांति]] आ [[दुसरा विश्वजुद्ध]] के बीच के दौर पर आधारित हवे। ''डॉक्टर जिवागो'' के सोवियत संघ में पब्लिकेशन खातिर इजाजत ना मिलल, लेकिन एकर पांडुलिपि छिपा के [[इटली]] ले जाइल गइल। 1957 में [[CIA]] के एगो अभियान के हिस्सा के रूप में ई उपन्यास पहिला बेर इटली में प्रकाशित भइल। एह अभियान के मकसद सोवियत संघ के नागरिकन के नजर में ओकर छवि खराब कइल रहे।
पास्तरनाक के 1958 में [[साहित्य के नोबेल प्राइज]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी बहुत नाराज भइल आ दबाव डाल के पास्तरनाक के पुरस्कार ठुकरावे पर मजबूर कर दिहलस। 1989 में पास्तरनाक के बेटा येवगेनी अपना पिता के ओर से अंततः ई पुरस्कार स्वीकार कइलें। 2003 से डॉक्टर जिवागो रूसी स्कूल के मुख्य सिलेबस के हिस्सा बनल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
{{AutC}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:1890 में जनम]]
[[श्रेणी:1960 में निधन]]
[[श्रेणी:रूसी लेखक]]
[[श्रेणी:रूसी उपन्यासकार]]
{{Writer-stub}}
lsgijfs9xyoxr565lcr9lp89p3m57n9
815346
815345
2026-11-13T07:15:35Z
SM7
3953
सुधार कइल गइल
815346
wikitext
text/x-wiki
{{Infobox writer <!-- for more information see [[:Template:Infobox writer/doc]] -->
| name = Boris Pasternak
| image = Boris Pasternak 1958 photo.jpg
| caption = Pasternak in 1959
| birth_name = Boris Leonidovich Pasternak
| birth_date = {{birth date|df=yes|1890|2|10}}
| birth_place = Moscow, Russian Empire
| death_date = {{death date and age|df=yes|1960|5|30|1890|2|10}}
| death_place = Peredelkino, Russian SFSR, Soviet Union
| partner = Olga Ivinskaya
| spouse = {{unbulleted list|{{marriage|Evgeniya Lurye|1922|1931|reason=divorce}}|{{marriage|Zinaida Neuhaus|1931}}}}
| children = 2, including Evgeny
| parents = {{unbulleted list|Leonid Pasternak (father)|Rosalia Isidorovna Kofmann Pasternak (mother)}}
| relatives = {{unbulleted list|Aleksandr Pasternak (brother)|Josephine Pasternak (sister)
|Lydia Pasternak Slater (sister)}}
| occupation = {{cslist|कवी|लेखक}}
| notable_works = {{ubl|''My Sister, Life''|''The Second Birth''|''[[डॉक्टर जिवागो (उपन्यास)|डॉक्टर जिवागो]]''}}
| education = Moscow State University (1913)<ref>{{Cite web|url=https://godliteratury.ru/amp/articles/2025/01/24/moskovskomu-gosudarstvennomu-universitetu-270-let-kto-iz-russkih-pisatelej-uchilsia-v-mgu|title=Московскому государственному университету — 270 лет. Кто из русских писателей учился в МГУ?|lang=ru|website=Год Литературы|date=2025-01-24|access-date=2026-03-04|archive-date=2025-09-13|archive-url=https://web.archive.org/web/20250913175239/https://godliteratury.ru/amp/articles/2025/01/24/moskovskomu-gosudarstvennomu-universitetu-270-let-kto-iz-russkih-pisatelej-uchilsia-v-mgu|url-status=live}}</ref>
| awards = {{awards|[[साहित्य में नोबेल प्राइज]]|(1958; declined)}}
| signature = Boris Pasternak signature.svg
}}
'''बोरिस लियोनिदोविच पास्तरनाक''' ({{Langx|en|Boris Leonidovich Pasternak}}; 10 फरवरी [पुरानी इस्टाइल 29 जनवरी] 1890 — 30 मई 1960) एगो रूसी आ [[सोवियत संघ|सोवियत]] कवि, उपन्यासकार आ साहित्यिक अनुवादक रहलें। 1917 में रचल पास्तरनाक के पहिला कविता संग्रह ''माय सिस्टर, लाइफ'' 1922 में बर्लिन से पब्लिश भइल आ जल्दिए रूसी भाषा के एगो महत्वपूर्ण कविता संग्रह बन गइल। गोएथे, शिलर, काल्डेरॉन दे ला बार्का आ [[शेक्सपियर]] के नाटकन के पास्तरनाक द्वारा कइल गइल अनुवाद रूसी रंगमंच के अध्ययन में आजो बहुत पॉपुलर बाड़ें।
पास्तरनाक ''[[डॉक्टर जिवागो (उपन्यास)|डॉक्टर जिवागो]]'' (1957) उपन्यास के लेखक हवें आ एही खातिर सबसे बेसी परसिद्ध हवें। ई उपन्यास 1905 के [[रूसी क्रांति]] आ [[दुसरा विश्वजुद्ध]] के बीच के दौर पर आधारित हवे। ''डॉक्टर जिवागो'' के सोवियत संघ में पब्लिकेशन खातिर इजाजत ना मिलल, लेकिन एकर पांडुलिपि छिपा के [[इटली]] ले जाइल गइल। 1957 में [[CIA]] के एगो अभियान के हिस्सा के रूप में ई उपन्यास पहिला बेर इटली में प्रकाशित भइल। एह अभियान के मकसद सोवियत संघ के नागरिकन के नजर में ओकर छवि खराब कइल रहे।
पास्तरनाक के 1958 में [[साहित्य के नोबेल प्राइज]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी बहुत नाराज भइल आ दबाव डाल के पास्तरनाक के पुरस्कार ठुकरावे पर मजबूर कर दिहलस। 1989 में पास्तरनाक के बेटा येवगेनी अपना पिता के ओर से अंततः ई पुरस्कार स्वीकार कइलें। 2003 से डॉक्टर जिवागो रूसी स्कूल के मुख्य सिलेबस के हिस्सा बनल बा।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
{{AutC}}
[[श्रेणी:साहित्य में नोबेल लॉरिएट]]
[[श्रेणी:1890 में जनम]]
[[श्रेणी:1960 में निधन]]
[[श्रेणी:रूसी लेखक]]
[[श्रेणी:रूसी उपन्यासकार]]
{{Writer-stub}}
lfkfzfdgzc9dq9n588et1vqdf5158fw
डॉक्टर जिवागो (उपन्यास)
0
102057
815347
2026-11-13T07:48:21Z
SM7
3953
पन्ना बनावल गइल "'''डॉक्टर जिवागो''' ({{Langx|en|Doctor Zhivago}}, {{Langx|ru|До́ктор Жива́го}}) रूसी कवि, लेखक आ संगीतकार [[बोरिस पास्तरनाक]] के लिखल एगो [[उपन्यास]] ह, जे पहिला बेर 1957 में [[इटली]] में प्रकाशित भइल। एह उपन्यास..." के साथ
815347
wikitext
text/x-wiki
'''डॉक्टर जिवागो''' ({{Langx|en|Doctor Zhivago}}, {{Langx|ru|До́ктор Жива́го}}) रूसी कवि, लेखक आ संगीतकार [[बोरिस पास्तरनाक]] के लिखल एगो [[उपन्यास]] ह, जे पहिला बेर 1957 में [[इटली]] में प्रकाशित भइल। एह उपन्यास के नाँव एकर हीरो यूरी जिवागो के नाँव पर रखल गइल बा, जे पेशा से [[डॉक्टर]] आ कवि ह। कहानी 1905 के [[रूसी क्रांति]] आ [[दुसरा बिस्व जुद्ध|दुसरा विश्वयुद्ध]] के बीच के समय पर आधारित बा।
[[अक्टूबर क्रांति]] के ले के लेखक के आलोचनात्मक रुख के चलते डॉक्टर जिवागो के [[सोवियत संघ]] में प्रकाशित करे से मना कर दिहल गइल। जियानजियाकोमो फेल्ट्रिनेली के पहल पर एह उपन्यास के पांडुलिपि तस्करी करके इटली के मिलान शहर ले जाइल गइल आ 1957 में पब्लिश कइल गइल। एकरा अगिला साल पास्तरनाक के [[साहित्य के नोबेल प्राइज|साहित्य के नोबेल पुरस्कार]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी के शर्मिंदगी उठावे के पड़ल आ ऊ बहुत नाराज भी भइल।
1965 में डेविड लीन एह उपन्यास पर आधारित एगो फिलिम बनवलें। एकरा बाद एकर दू बेर टेलीविजन खातिर रूपांतरण कइल गइल। सभसे हाल के रूपांतरण 2006 में रूसी टेलीविजन खातिर बनावल एगो मिनी-सीरीज रहे। 2003 से डॉक्टर जिवागो रूसी स्कूलन के सिलेबस में शामिल बा, जहाँ एकरा के 11वीं क्लास में पढ़ावल जाला।
oqix8rga0kcyxfpo7rcg9wnus0xyoao
815348
815347
2026-11-13T07:48:36Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:उपन्यास]] जोड़ल गइल
815348
wikitext
text/x-wiki
'''डॉक्टर जिवागो''' ({{Langx|en|Doctor Zhivago}}, {{Langx|ru|До́ктор Жива́го}}) रूसी कवि, लेखक आ संगीतकार [[बोरिस पास्तरनाक]] के लिखल एगो [[उपन्यास]] ह, जे पहिला बेर 1957 में [[इटली]] में प्रकाशित भइल। एह उपन्यास के नाँव एकर हीरो यूरी जिवागो के नाँव पर रखल गइल बा, जे पेशा से [[डॉक्टर]] आ कवि ह। कहानी 1905 के [[रूसी क्रांति]] आ [[दुसरा बिस्व जुद्ध|दुसरा विश्वयुद्ध]] के बीच के समय पर आधारित बा।
[[अक्टूबर क्रांति]] के ले के लेखक के आलोचनात्मक रुख के चलते डॉक्टर जिवागो के [[सोवियत संघ]] में प्रकाशित करे से मना कर दिहल गइल। जियानजियाकोमो फेल्ट्रिनेली के पहल पर एह उपन्यास के पांडुलिपि तस्करी करके इटली के मिलान शहर ले जाइल गइल आ 1957 में पब्लिश कइल गइल। एकरा अगिला साल पास्तरनाक के [[साहित्य के नोबेल प्राइज|साहित्य के नोबेल पुरस्कार]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी के शर्मिंदगी उठावे के पड़ल आ ऊ बहुत नाराज भी भइल।
1965 में डेविड लीन एह उपन्यास पर आधारित एगो फिलिम बनवलें। एकरा बाद एकर दू बेर टेलीविजन खातिर रूपांतरण कइल गइल। सभसे हाल के रूपांतरण 2006 में रूसी टेलीविजन खातिर बनावल एगो मिनी-सीरीज रहे। 2003 से डॉक्टर जिवागो रूसी स्कूलन के सिलेबस में शामिल बा, जहाँ एकरा के 11वीं क्लास में पढ़ावल जाला।
[[श्रेणी:उपन्यास]]
hglal5gnzdhcs5btc677ha8snz1c4o8
815349
815348
2026-11-13T07:49:36Z
SM7
3953
ज्ञानसंदूक जोड़ल गइल
815349
wikitext
text/x-wiki
{{Infobox book|<!-- See [[Wikipedia:WikiProject Novels]] or [[Wikipedia:WikiProject Books]] -->
| name = Doctor Zhivago
| original_title = {{lang|ru|Доктор Живаго}}
| translator =
| image = Doktor feltrinelli.jpg
| caption = Front page of the first edition
| author = [[Boris Pasternak]]
| illustrator =
| cover_artist =
| publication_place = [[Italy]]
| language = [[Russian language|Russian]]
| series =
| subject = <!-- Subject is not relevant for fiction -->
| genre = [[Historical novel|Historical]], [[Romantic novel]]<!-- [[Wikipedia:WikiProject Novels/Novel categorization]] -->
| publisher = [[Giangiacomo Feltrinelli|Feltrinelli]] ([[first edition]]), [[Pantheon Books]]
| english_publication_date =
| media_type = Print ([[Hardcover|Hardback]] & [[Paperback]])
| pages = 592 (Pantheon)
| isbn = 0-679-77438-6
| isbn_note = (Pantheon) <!-- First released before ISBN system implemented -->
| preceded_by = <!-- Preceding novel in series -->
| followed_by = <!-- Following novel in series -->
| publication_date = 23 November 1957
}}
'''डॉक्टर जिवागो''' ({{Langx|en|Doctor Zhivago}}, {{Langx|ru|До́ктор Жива́го}}) रूसी कवि, लेखक आ संगीतकार [[बोरिस पास्तरनाक]] के लिखल एगो [[उपन्यास]] ह, जे पहिला बेर 1957 में [[इटली]] में प्रकाशित भइल। एह उपन्यास के नाँव एकर हीरो यूरी जिवागो के नाँव पर रखल गइल बा, जे पेशा से [[डॉक्टर]] आ कवि ह। कहानी 1905 के [[रूसी क्रांति]] आ [[दुसरा बिस्व जुद्ध|दुसरा विश्वयुद्ध]] के बीच के समय पर आधारित बा।
[[अक्टूबर क्रांति]] के ले के लेखक के आलोचनात्मक रुख के चलते डॉक्टर जिवागो के [[सोवियत संघ]] में प्रकाशित करे से मना कर दिहल गइल। जियानजियाकोमो फेल्ट्रिनेली के पहल पर एह उपन्यास के पांडुलिपि तस्करी करके इटली के मिलान शहर ले जाइल गइल आ 1957 में पब्लिश कइल गइल। एकरा अगिला साल पास्तरनाक के [[साहित्य के नोबेल प्राइज|साहित्य के नोबेल पुरस्कार]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी के शर्मिंदगी उठावे के पड़ल आ ऊ बहुत नाराज भी भइल।
1965 में डेविड लीन एह उपन्यास पर आधारित एगो फिलिम बनवलें। एकरा बाद एकर दू बेर टेलीविजन खातिर रूपांतरण कइल गइल। सभसे हाल के रूपांतरण 2006 में रूसी टेलीविजन खातिर बनावल एगो मिनी-सीरीज रहे। 2003 से डॉक्टर जिवागो रूसी स्कूलन के सिलेबस में शामिल बा, जहाँ एकरा के 11वीं क्लास में पढ़ावल जाला।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:उपन्यास]]
g95aoncli1oks9sg7igt7mm58g4hou1
815350
815349
2026-11-13T07:49:58Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:रूसी साहित्य]] जोड़ल गइल
815350
wikitext
text/x-wiki
{{Infobox book|<!-- See [[Wikipedia:WikiProject Novels]] or [[Wikipedia:WikiProject Books]] -->
| name = Doctor Zhivago
| original_title = {{lang|ru|Доктор Живаго}}
| translator =
| image = Doktor feltrinelli.jpg
| caption = Front page of the first edition
| author = [[Boris Pasternak]]
| illustrator =
| cover_artist =
| publication_place = [[Italy]]
| language = [[Russian language|Russian]]
| series =
| subject = <!-- Subject is not relevant for fiction -->
| genre = [[Historical novel|Historical]], [[Romantic novel]]<!-- [[Wikipedia:WikiProject Novels/Novel categorization]] -->
| publisher = [[Giangiacomo Feltrinelli|Feltrinelli]] ([[first edition]]), [[Pantheon Books]]
| english_publication_date =
| media_type = Print ([[Hardcover|Hardback]] & [[Paperback]])
| pages = 592 (Pantheon)
| isbn = 0-679-77438-6
| isbn_note = (Pantheon) <!-- First released before ISBN system implemented -->
| preceded_by = <!-- Preceding novel in series -->
| followed_by = <!-- Following novel in series -->
| publication_date = 23 November 1957
}}
'''डॉक्टर जिवागो''' ({{Langx|en|Doctor Zhivago}}, {{Langx|ru|До́ктор Жива́го}}) रूसी कवि, लेखक आ संगीतकार [[बोरिस पास्तरनाक]] के लिखल एगो [[उपन्यास]] ह, जे पहिला बेर 1957 में [[इटली]] में प्रकाशित भइल। एह उपन्यास के नाँव एकर हीरो यूरी जिवागो के नाँव पर रखल गइल बा, जे पेशा से [[डॉक्टर]] आ कवि ह। कहानी 1905 के [[रूसी क्रांति]] आ [[दुसरा बिस्व जुद्ध|दुसरा विश्वयुद्ध]] के बीच के समय पर आधारित बा।
[[अक्टूबर क्रांति]] के ले के लेखक के आलोचनात्मक रुख के चलते डॉक्टर जिवागो के [[सोवियत संघ]] में प्रकाशित करे से मना कर दिहल गइल। जियानजियाकोमो फेल्ट्रिनेली के पहल पर एह उपन्यास के पांडुलिपि तस्करी करके इटली के मिलान शहर ले जाइल गइल आ 1957 में पब्लिश कइल गइल। एकरा अगिला साल पास्तरनाक के [[साहित्य के नोबेल प्राइज|साहित्य के नोबेल पुरस्कार]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी के शर्मिंदगी उठावे के पड़ल आ ऊ बहुत नाराज भी भइल।
1965 में डेविड लीन एह उपन्यास पर आधारित एगो फिलिम बनवलें। एकरा बाद एकर दू बेर टेलीविजन खातिर रूपांतरण कइल गइल। सभसे हाल के रूपांतरण 2006 में रूसी टेलीविजन खातिर बनावल एगो मिनी-सीरीज रहे। 2003 से डॉक्टर जिवागो रूसी स्कूलन के सिलेबस में शामिल बा, जहाँ एकरा के 11वीं क्लास में पढ़ावल जाला।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:उपन्यास]]
[[श्रेणी:रूसी साहित्य]]
smmm92g1c9hf67pz9ilz97wqquywd4l
815351
815350
2026-11-13T07:50:36Z
SM7
3953
[[User:SM7/stubsorter|Stubsorter]] के मदद से {{Novel-stub}} जोड़ल गइल।
815351
wikitext
text/x-wiki
{{Infobox book|<!-- See [[Wikipedia:WikiProject Novels]] or [[Wikipedia:WikiProject Books]] -->
| name = Doctor Zhivago
| original_title = {{lang|ru|Доктор Живаго}}
| translator =
| image = Doktor feltrinelli.jpg
| caption = Front page of the first edition
| author = [[Boris Pasternak]]
| illustrator =
| cover_artist =
| publication_place = [[Italy]]
| language = [[Russian language|Russian]]
| series =
| subject = <!-- Subject is not relevant for fiction -->
| genre = [[Historical novel|Historical]], [[Romantic novel]]<!-- [[Wikipedia:WikiProject Novels/Novel categorization]] -->
| publisher = [[Giangiacomo Feltrinelli|Feltrinelli]] ([[first edition]]), [[Pantheon Books]]
| english_publication_date =
| media_type = Print ([[Hardcover|Hardback]] & [[Paperback]])
| pages = 592 (Pantheon)
| isbn = 0-679-77438-6
| isbn_note = (Pantheon) <!-- First released before ISBN system implemented -->
| preceded_by = <!-- Preceding novel in series -->
| followed_by = <!-- Following novel in series -->
| publication_date = 23 November 1957
}}
'''डॉक्टर जिवागो''' ({{Langx|en|Doctor Zhivago}}, {{Langx|ru|До́ктор Жива́го}}) रूसी कवि, लेखक आ संगीतकार [[बोरिस पास्तरनाक]] के लिखल एगो [[उपन्यास]] ह, जे पहिला बेर 1957 में [[इटली]] में प्रकाशित भइल। एह उपन्यास के नाँव एकर हीरो यूरी जिवागो के नाँव पर रखल गइल बा, जे पेशा से [[डॉक्टर]] आ कवि ह। कहानी 1905 के [[रूसी क्रांति]] आ [[दुसरा बिस्व जुद्ध|दुसरा विश्वयुद्ध]] के बीच के समय पर आधारित बा।
[[अक्टूबर क्रांति]] के ले के लेखक के आलोचनात्मक रुख के चलते डॉक्टर जिवागो के [[सोवियत संघ]] में प्रकाशित करे से मना कर दिहल गइल। जियानजियाकोमो फेल्ट्रिनेली के पहल पर एह उपन्यास के पांडुलिपि तस्करी करके इटली के मिलान शहर ले जाइल गइल आ 1957 में पब्लिश कइल गइल। एकरा अगिला साल पास्तरनाक के [[साहित्य के नोबेल प्राइज|साहित्य के नोबेल पुरस्कार]] दिहल गइल। एह घटना से सोवियत संघ के कम्युनिस्ट पार्टी के शर्मिंदगी उठावे के पड़ल आ ऊ बहुत नाराज भी भइल।
1965 में डेविड लीन एह उपन्यास पर आधारित एगो फिलिम बनवलें। एकरा बाद एकर दू बेर टेलीविजन खातिर रूपांतरण कइल गइल। सभसे हाल के रूपांतरण 2006 में रूसी टेलीविजन खातिर बनावल एगो मिनी-सीरीज रहे। 2003 से डॉक्टर जिवागो रूसी स्कूलन के सिलेबस में शामिल बा, जहाँ एकरा के 11वीं क्लास में पढ़ावल जाला।
{{clear}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:उपन्यास]]
[[श्रेणी:रूसी साहित्य]]
{{Novel-stub}}
n8jnexwxnnaul0owubwl80uxve2xhcl
साहित्य के नोबेल प्राइज
0
102058
815352
2026-11-13T08:25:01Z
SM7
3953
पन्ना बनावल गइल "'''साहित्य के नोबेल प्राइज''' (स्वीडिश: ''Nobelpriset i litteratur'') [[स्वीडेन]] के एगो साहित्यिक पुरस्कार ह, जे हर साल दुनिया के कवनो भी देश के अइसन लेखक के दिहल जाला, जे अल्फ्रेड नोबेल के शब..." के साथ
815352
wikitext
text/x-wiki
'''साहित्य के नोबेल प्राइज''' (स्वीडिश: ''Nobelpriset i litteratur'') [[स्वीडेन]] के एगो साहित्यिक पुरस्कार ह, जे हर साल दुनिया के कवनो भी देश के अइसन लेखक के दिहल जाला, जे अल्फ्रेड नोबेल के शब्दन में, "साहित्य के क्षेत्र में आदर्शवादी दिशा में सभसे उत्कृष्ट रचना प्रस्तुत कइले होखे"। हालाँकि, कबो-काल्ह एह प्राइज में लेखक के कौनो खास रचना के बिसेस रूप से जिकिर कइल जाला, बाकी ई पुरस्कार लेखक के मय जिनगी के साहित्यिक रचनाकर्म के आधार पर दिहल जाला। स्वीडिश एकेडमी ई तय करे ले कि पुरस्कार केहू के दिहल जाई या ना।
एकेडमी अक्टूबर महीना के सुरुआत में पुरस्कार विजेता के नाँव के घोषणा करे ले। ई [[अल्फ्रेड नोबेल]] के 1895 के वसीयत से स्थापित पाँच गो नोबेल पुरस्कार में से एगो ह। परंपरागत रूप से नोबेल पुरस्कार समारोह में साहित्य के पुरस्कार सबसे अंत में दिहल जाला। कुछ अवसर पर ई पुरस्कार अगिला साल तक टाल दिहल गइल बा। अइसन सबसे हाल के मामला 2018 में भइल रहे। हाल में 2026 के साहित्य के नोबेल [[एन कार्सन]] के दिहल गइल बाटे जे एगो कनाडाई लेखिका हई।
ec0hgvcaisake9icvf7gz7vdx7pvhnk
815353
815352
2026-11-13T08:26:01Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा [[श्रेणी:नोबेल प्राइज]] जोड़ल गइल
815353
wikitext
text/x-wiki
'''साहित्य के नोबेल प्राइज''' (स्वीडिश: ''Nobelpriset i litteratur'') [[स्वीडेन]] के एगो साहित्यिक पुरस्कार ह, जे हर साल दुनिया के कवनो भी देश के अइसन लेखक के दिहल जाला, जे अल्फ्रेड नोबेल के शब्दन में, "साहित्य के क्षेत्र में आदर्शवादी दिशा में सभसे उत्कृष्ट रचना प्रस्तुत कइले होखे"। हालाँकि, कबो-काल्ह एह प्राइज में लेखक के कौनो खास रचना के बिसेस रूप से जिकिर कइल जाला, बाकी ई पुरस्कार लेखक के मय जिनगी के साहित्यिक रचनाकर्म के आधार पर दिहल जाला। स्वीडिश एकेडमी ई तय करे ले कि पुरस्कार केहू के दिहल जाई या ना।
एकेडमी अक्टूबर महीना के सुरुआत में पुरस्कार विजेता के नाँव के घोषणा करे ले। ई [[अल्फ्रेड नोबेल]] के 1895 के वसीयत से स्थापित पाँच गो नोबेल पुरस्कार में से एगो ह। परंपरागत रूप से नोबेल पुरस्कार समारोह में साहित्य के पुरस्कार सबसे अंत में दिहल जाला। कुछ अवसर पर ई पुरस्कार अगिला साल तक टाल दिहल गइल बा। अइसन सबसे हाल के मामला 2018 में भइल रहे। हाल में 2026 के साहित्य के नोबेल [[एन कार्सन]] के दिहल गइल बाटे जे एगो कनाडाई लेखिका हई।
{{clear}}
[[श्रेणी:नोबेल प्राइज]]
{{lit-stub}}
jhdqz6g4jkuslclv4vs3vkq0l0pfgdr
815354
815353
2026-11-13T08:28:52Z
SM7
3953
Cleaning up syntax using [[:en:User:Zackmann08/scripts/indent|indent.js]], ज्ञानसंदूक जोड़ल गइल
815354
wikitext
text/x-wiki
{{Infobox award
| name = Nobel Prize in Literature
| image =
| caption =
| awarded_for = Outstanding contributions in literature
| presenter = [[Swedish Academy]]
| holder = [[ऐन कार्सन]] (2026)
| location = [[Stockholm]], Sweden
| year = {{Start date and age|1901}}
| reward = 12 मिलियन [[स्वीडिश क्रोना|SEK]] (2026)<ref>{{Cite web |title=The Nobel Prize amounts |url=https://www.nobelprize.org/prizes/about/the-nobel-prize-amounts/ |access-date=5 October 2026 |publisher=The Nobel Prize}}</ref>
| website = {{URL|https://nobelprize.org/prizes/literature/|nobelprize.org/literature}}
| holder_label = सभसे हाल में पावे वाला
| previous =
| main =
| next =
}}
'''साहित्य के नोबेल प्राइज''' (स्वीडिश: ''Nobelpriset i litteratur'') [[स्वीडेन]] के एगो साहित्यिक पुरस्कार ह, जे हर साल दुनिया के कवनो भी देश के अइसन लेखक के दिहल जाला, जे अल्फ्रेड नोबेल के शब्दन में, "साहित्य के क्षेत्र में आदर्शवादी दिशा में सभसे उत्कृष्ट रचना प्रस्तुत कइले होखे"। हालाँकि, कबो-काल्ह एह प्राइज में लेखक के कौनो खास रचना के बिसेस रूप से जिकिर कइल जाला, बाकी ई पुरस्कार लेखक के मय जिनगी के साहित्यिक रचनाकर्म के आधार पर दिहल जाला। स्वीडिश एकेडमी ई तय करे ले कि पुरस्कार केहू के दिहल जाई या ना।
एकेडमी अक्टूबर महीना के सुरुआत में पुरस्कार विजेता के नाँव के घोषणा करे ले। ई [[अल्फ्रेड नोबेल]] के 1895 के वसीयत से स्थापित पाँच गो नोबेल पुरस्कार में से एगो ह। परंपरागत रूप से नोबेल पुरस्कार समारोह में साहित्य के पुरस्कार सबसे अंत में दिहल जाला। कुछ अवसर पर ई पुरस्कार अगिला साल तक टाल दिहल गइल बा। अइसन सबसे हाल के मामला 2018 में भइल रहे। हाल में 2026 के साहित्य के नोबेल [[ऐन कार्सन]] के दिहल गइल बाटे जे एगो कनाडाई लेखिका हई।
{{clear}}
[[श्रेणी:नोबेल प्राइज]]
{{lit-stub}}
owd8vbv8mruqeez26qfgjjywftgcw7u
815356
815354
2026-11-13T11:15:04Z
SM7
3953
संदर्भ जोड़ल/सुधारल गइल
815356
wikitext
text/x-wiki
{{Infobox award
| name = Nobel Prize in Literature
| image =
| caption =
| awarded_for = Outstanding contributions in literature
| presenter = [[Swedish Academy]]
| holder = [[ऐन कार्सन]] (2026)
| location = [[Stockholm]], Sweden
| year = {{Start date and age|1901}}
| reward = 12 मिलियन [[स्वीडिश क्रोना|SEK]] (2026)<ref>{{Cite web |title=The Nobel Prize amounts |url=https://www.nobelprize.org/prizes/about/the-nobel-prize-amounts/ |access-date=5 October 2026 |publisher=The Nobel Prize}}</ref>
| website = {{URL|https://nobelprize.org/prizes/literature/|nobelprize.org/literature}}
| holder_label = सभसे हाल में पावे वाला
| previous =
| main =
| next =
}}
'''साहित्य के नोबेल प्राइज''' (स्वीडिश: ''Nobelpriset i litteratur'') [[स्वीडेन]] के एगो साहित्यिक पुरस्कार ह, जे हर साल दुनिया के कवनो भी देश के अइसन लेखक के दिहल जाला, जे अल्फ्रेड नोबेल के शब्दन में, "साहित्य के क्षेत्र में आदर्शवादी दिशा में सभसे उत्कृष्ट रचना प्रस्तुत कइले होखे"।{{efn|"in the field of literature, produced the most outstanding work in an idealistic direction".<ref name="nobelorglit">{{cite web |url=https://www.nobelprize.org/alfred-nobel/alfred-nobels-testamente/ |title=Alfred Nobel will |date=15 December 2017 |access-date=20 January 2021 |publisher=[[Nobel Foundation]] |archive-date=20 May 2023 |archive-url=https://web.archive.org/web/20230520060539/http://www.nobelprize.org/alfred-nobel/alfred-nobels-testamente/ |url-status=live }}</ref><ref name="swedishref">{{cite news | author=John Sutherland | title=Ink and Spit | work=Guardian Unlimited Books | url=https://www.theguardian.com/books/2007/oct/13/featuresreviews.guardianreview31 | date=13 October 2007 | access-date=13 October 2007 | archive-date=11 November 2007 | archive-url=https://web.archive.org/web/20071111074241/http://books.guardian.co.uk/review/story/0,,2189673,00.html | url-status=live |publisher=[[The Guardian]]}}</ref>}} हालाँकि, कबो-काल्ह एह प्राइज में लेखक के कौनो खास रचना के बिसेस रूप से जिकिर कइल जाला, बाकी ई पुरस्कार लेखक के मय जिनगी के साहित्यिक रचनाकर्म के आधार पर दिहल जाला। स्वीडिश एकेडमी ई तय करे ले कि पुरस्कार केहू के दिहल जाई या ना।
एकेडमी अक्टूबर महीना के सुरुआत में पुरस्कार विजेता के नाँव के घोषणा करे ले। ई [[अल्फ्रेड नोबेल]] के 1895 के वसीयत से स्थापित पाँच गो नोबेल पुरस्कार में से एगो ह। परंपरागत रूप से नोबेल पुरस्कार समारोह में साहित्य के पुरस्कार सबसे अंत में दिहल जाला। कुछ अवसर पर ई पुरस्कार अगिला साल तक टाल दिहल गइल बा। अइसन सबसे हाल के मामला 2018 में भइल रहे। हाल में 2026 के साहित्य के नोबेल [[ऐन कार्सन]] के दिहल गइल बाटे जे एगो कनाडाई लेखिका हई।<ref name="nobelBBC">{{cite news |title=Nobel Prize for Literature postponed amid Swedish Academy turmoil |url=https://www.bbc.com/news/world-europe-43999240 |access-date=4 May 2018 |date=4 May 2018 |publisher=[[BBC]] |archive-date=16 May 2020 |archive-url=https://web.archive.org/web/20200516170128/https://www.bbc.com/news/world-europe-43999240 |url-status=live }}</ref><ref name="akademi2018">{{cite web |last1=Press release |title=Svenska Akademien skjuter upp 2018 års Nobelpris i litteratur |url=http://www.svenskaakademien.se/press/svenska-akademien-skjuter-upp-2018-ars-nobelpris-i-litteratur |website=Svenska Akademin |publisher=[[Swedish Academy]] |access-date=4 May 2018 |archive-date=4 May 2018 |archive-url=https://web.archive.org/web/20180504111427/http://www.svenskaakademien.se/press/svenska-akademien-skjuter-upp-2018-ars-nobelpris-i-litteratur |url-status=live }}</ref><ref name="krisen">{{cite news |last=Wixe |first=Susanne |title=Detta har hänt: Krisen i Svenska Akademien – på 3 minuter |trans-title=Previously: The crisis in the Swedish Academy in 3 minutes |url=https://www.aftonbladet.se/nyheter/a/yvb9We |access-date=4 May 2018 |newspaper=Aftonbladet |date=10 April 2018 |archive-date=4 May 2018 |archive-url=https://web.archive.org/web/20180504195655/https://www.aftonbladet.se/nyheter/a/yvb9We |url-status=live }}</ref>
{{clear}}
== नोट ==
{{notelist|group=नोट}}
== संदर्भ ==
{{Reflist|29em}}
[[श्रेणी:नोबेल प्राइज]]
{{lit-stub}}
2vccv6x90nthevz9y6b2m5ndj4w2glh
वॉइस ओवर आइपी
0
102059
815357
2026-11-13T11:21:07Z
SM7
3953
पन्ना [[इंटरनेट टेलीफोनी]] पर अनुप्रेषित कइल गइल
815357
wikitext
text/x-wiki
#REDIRECT [[इंटरनेट टेलीफोनी]]
njgtya8ccwjeax73gsa18u7xsn3cwmu
ट्वीट
0
102060
815360
2026-11-13T11:36:32Z
SM7
3953
पन्ना बनावल गइल "'''ट्वीट''' ({{Langx|en|tweet}}) [[एक्स (सोशल नेटवर्क)|सोशल नेटवर्क X]] (जेकरा के पहिले [[ट्विटर]] के नाँव से जानल जात रहे) पर कइल जाए वाला एगो छोट पोस्ट (या [[माइक्रोब्लॉगिंग|माइक्रोपोस्ट]]) ह..." के साथ
815360
wikitext
text/x-wiki
'''ट्वीट''' ({{Langx|en|tweet}}) [[एक्स (सोशल नेटवर्क)|सोशल नेटवर्क X]] (जेकरा के पहिले [[ट्विटर]] के नाँव से जानल जात रहे) पर कइल जाए वाला एगो छोट पोस्ट (या [[माइक्रोब्लॉगिंग|माइक्रोपोस्ट]]) ह। ट्वीट में इमेज, वीडियो, GIF, स्ट्रॉ पोल (अनौपचारिक जनमत सर्वेक्षण), [[हैशटैग]], मेंशन आ [[हाइपरलिंक]] शामिल कइल जा सके ला। कुल ट्वीट में से लगभग 80 प्रतिशत ट्वीट खाली 10 प्रतिशत यूजर लोग करे ला। एह यूजरन के औसत हर महीना 138 ट्वीट होला, जबकि सामान्य यूजर हर महीना औसतन खाली दू गो ट्वीट करे ला।
अक्टूबर 2022 में [[ईलोन मस्क|एलन मस्क]] द्वारा ट्विटर के अधिग्रहण आ जुलाई 2023 में प्लेटफॉर्म के नाँव बदल के X रखला के बाद, एह सेवा से "ट्वीट" शब्द के सभ उल्लेख हटा दिहल गइल आ एकरा जगह सीधा "पोस्ट" शब्द के इस्तेमाल शुरू भइल। एही तरह "रीट्वीट" के जगह "रीपोस्ट" शब्द आ गइल। हालाँकि, X पर पोस्ट के संदर्भ में आजो "ट्वीट" आ "रीट्वीट" शब्द अधिक लोकप्रिय बाड़ें।
* [[सोशल मीडिया पोस्ट]]
i3k4u972rg36lkeh01zomfj4p7dk3cz
815361
815360
2026-11-13T11:36:55Z
SM7
3953
फोटो जोड़ल गइल
815361
wikitext
text/x-wiki
[[File:My first tweet! (3344952812).png|alt=A tweet by @karenism from 2007: "catching bugs. squish squish!"|thumb|A user tweeting about bugs]]
'''ट्वीट''' ({{Langx|en|tweet}}) [[एक्स (सोशल नेटवर्क)|सोशल नेटवर्क X]] (जेकरा के पहिले [[ट्विटर]] के नाँव से जानल जात रहे) पर कइल जाए वाला एगो छोट पोस्ट (या [[माइक्रोब्लॉगिंग|माइक्रोपोस्ट]]) ह। ट्वीट में इमेज, वीडियो, GIF, स्ट्रॉ पोल (अनौपचारिक जनमत सर्वेक्षण), [[हैशटैग]], मेंशन आ [[हाइपरलिंक]] शामिल कइल जा सके ला। कुल ट्वीट में से लगभग 80 प्रतिशत ट्वीट खाली 10 प्रतिशत यूजर लोग करे ला। एह यूजरन के औसत हर महीना 138 ट्वीट होला, जबकि सामान्य यूजर हर महीना औसतन खाली दू गो ट्वीट करे ला।
अक्टूबर 2022 में [[ईलोन मस्क|एलन मस्क]] द्वारा ट्विटर के अधिग्रहण आ जुलाई 2023 में प्लेटफॉर्म के नाँव बदल के X रखला के बाद, एह सेवा से "ट्वीट" शब्द के सभ उल्लेख हटा दिहल गइल आ एकरा जगह सीधा "पोस्ट" शब्द के इस्तेमाल शुरू भइल। एही तरह "रीट्वीट" के जगह "रीपोस्ट" शब्द आ गइल। हालाँकि, X पर पोस्ट के संदर्भ में आजो "ट्वीट" आ "रीट्वीट" शब्द अधिक लोकप्रिय बाड़ें।
* [[सोशल मीडिया पोस्ट]]
5mjznr000oejklwyh1z2gsreycw9m7b
815362
815361
2026-11-13T11:40:40Z
SM7
3953
[[विकिपीडिया:हॉट-कैट|हॉट-कैट]] द्वारा +[[श्रेणी:इंटरनेट टर्मावली]]; +[[श्रेणी:इंटरनेट संस्कृति]]; +[[श्रेणी:इंटरनेट स्लैंग]]
815362
wikitext
text/x-wiki
[[File:My first tweet! (3344952812).png|alt=A tweet by @karenism from 2007: "catching bugs. squish squish!"|thumb|A user tweeting about bugs]]
'''ट्वीट''' ({{Langx|en|tweet}}) [[एक्स (सोशल नेटवर्क)|सोशल नेटवर्क X]] (जेकरा के पहिले [[ट्विटर]] के नाँव से जानल जात रहे) पर कइल जाए वाला एगो छोट पोस्ट (या [[माइक्रोब्लॉगिंग|माइक्रोपोस्ट]]) ह। ट्वीट में इमेज, वीडियो, GIF, स्ट्रॉ पोल (अनौपचारिक जनमत सर्वेक्षण), [[हैशटैग]], मेंशन आ [[हाइपरलिंक]] शामिल कइल जा सके ला। कुल ट्वीट में से लगभग 80 प्रतिशत ट्वीट खाली 10 प्रतिशत यूजर लोग करे ला। एह यूजरन के औसत हर महीना 138 ट्वीट होला, जबकि सामान्य यूजर हर महीना औसतन खाली दू गो ट्वीट करे ला।
अक्टूबर 2022 में [[ईलोन मस्क|एलन मस्क]] द्वारा ट्विटर के अधिग्रहण आ जुलाई 2023 में प्लेटफॉर्म के नाँव बदल के X रखला के बाद, एह सेवा से "ट्वीट" शब्द के सभ उल्लेख हटा दिहल गइल आ एकरा जगह सीधा "पोस्ट" शब्द के इस्तेमाल शुरू भइल। एही तरह "रीट्वीट" के जगह "रीपोस्ट" शब्द आ गइल। हालाँकि, X पर पोस्ट के संदर्भ में आजो "ट्वीट" आ "रीट्वीट" शब्द अधिक लोकप्रिय बाड़ें।
* [[सोशल मीडिया पोस्ट]]
[[श्रेणी:इंटरनेट टर्मावली]]
[[श्रेणी:इंटरनेट संस्कृति]]
[[श्रेणी:इंटरनेट स्लैंग]]
3wwyduaras2nox7grmm6rwfm2cqzay6
815363
815362
2026-11-13T11:44:41Z
SM7
3953
[[User:SM7/stubsorter|Stubsorter]] के मदद से {{Internet-stub}} जोड़ल गइल।
815363
wikitext
text/x-wiki
[[File:My first tweet! (3344952812).png|alt=A tweet by @karenism from 2007: "catching bugs. squish squish!"|thumb|A user tweeting about bugs]]
'''ट्वीट''' ({{Langx|en|tweet}}) [[एक्स (सोशल नेटवर्क)|सोशल नेटवर्क X]] (जेकरा के पहिले [[ट्विटर]] के नाँव से जानल जात रहे) पर कइल जाए वाला एगो छोट पोस्ट (या [[माइक्रोब्लॉगिंग|माइक्रोपोस्ट]]) ह। ट्वीट में इमेज, वीडियो, GIF, स्ट्रॉ पोल (अनौपचारिक जनमत सर्वेक्षण), [[हैशटैग]], मेंशन आ [[हाइपरलिंक]] शामिल कइल जा सके ला। कुल ट्वीट में से लगभग 80 प्रतिशत ट्वीट खाली 10 प्रतिशत यूजर लोग करे ला। एह यूजरन के औसत हर महीना 138 ट्वीट होला, जबकि सामान्य यूजर हर महीना औसतन खाली दू गो ट्वीट करे ला।
अक्टूबर 2022 में [[ईलोन मस्क|एलन मस्क]] द्वारा ट्विटर के अधिग्रहण आ जुलाई 2023 में प्लेटफॉर्म के नाँव बदल के X रखला के बाद, एह सेवा से "ट्वीट" शब्द के सभ उल्लेख हटा दिहल गइल आ एकरा जगह सीधा "पोस्ट" शब्द के इस्तेमाल शुरू भइल। एही तरह "रीट्वीट" के जगह "रीपोस्ट" शब्द आ गइल। हालाँकि, X पर पोस्ट के संदर्भ में आजो "ट्वीट" आ "रीट्वीट" शब्द अधिक लोकप्रिय बाड़ें।
{{clear}}
[[श्रेणी:इंटरनेट टर्मावली]]
[[श्रेणी:इंटरनेट संस्कृति]]
[[श्रेणी:इंटरनेट स्लैंग]]
{{Internet-stub}}
nvptsd4r8gkdbs5j8b7cooi339lheqm
प्रयोगकर्ता:Cambake
2
102061
815364
2026-11-13T11:51:48Z
Cambake
41304
Created blank page
815364
wikitext
text/x-wiki
phoiac9h4m842xq45sp7s6u21eteeq1
प्रयोगकर्ता वार्ता:Cambake
3
102062
815365
2026-11-13T11:51:49Z
नया सदस्य स्वागतकर्ता
6624
Adding [[Welcome|welcome message]] to new user's talk page
815365
wikitext
text/x-wiki
{| id="GeoPort-upper" width="100%" cellpadding="5" cellspacing="6" style="background:#FFFAFF; text-align: justify; border-style:ridge; border-width:1px; border-color:#A9A9A9;"
|-
|<div style="display:inline-block;margin-top:.1em; text-align:right; margin-bottom:.2em; border-bottom:0; font-weight:bold;"><big>Welcome! स्वागतम्!</big> [[File:Crystal Clear app ksmiletris.png|25px]] </div>
राउर बहुत-बहुत स्वागत बा '''{{BASEPAGENAME}}''' जी ! {{#if: | {{{1}}} | }}<br/>
<div style="float:right; <!--background:#F5F5DC;--> width:30%">
<!-- दाहिना साइडबार -->
{| border="5" cellspacing="10" cellpadding="5" height="50" align=center border=0 style="background: transparent"
|-
| <big>'''ई जरूर पढ़ल जाय:'''</big>
|-
| style="background-color:#FFFFFF; border: solid 2px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:विकिपीडिया का ना हवे|विकिपीडिया का ना हवे?]]
|-
| style="background-color:#FFFFFF; border: solid 2px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:भोजपुरी में कइसे टाइप करब?|भोजपुरी में टाइपिंग]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:सत्यापन जोग|प्रमाणित बात लिखीं]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[मदद:फुटनोट|संदर्भ कइसे जोड़ीं?]]
|-
| style="background-color:#FFFFFF; border: solid 1px #FFFFFF; padding:10px 20px;" | [[विकिपीडिया:नीति अउरी दिसानिर्देस|विकिनीति आ निर्देश]]
|}</div>
<!-- मुख्य पाठ -->
'''{{#if: | {{{1}}} | {{BASEPAGENAME}} }} जी''',
एह समय रउँआ [[विकिमीडिया फाउन्डेशन]] के परियोजना [[भोजपुरी]] [[विकिपीडिया]] पर बाड़ीं। भोजपुरी विकिपीडिया एगो मुक्त डिजिटल [[ज्ञानकोश]] हवे, जेवन अइसन भइया-बहिनी लोग मिल के लिखले बा जे ज्ञान बाँटे में बिस्वास करत बाटे। एह समय ए परियोजना में [[विशेष:ActiveUsers|{{NUMBEROFUSERS}} सदस्य]] लोग शामिल बाटे। ई बहुते खुशी क बाति बा कि रउँओं ए में शामिल हो गइल बाड़ीं।
* पहिले से बनल [[विकिपीडिया:लेख|लेखवन]] में कौनो संपादन खाली टेस्ट करे खातिर मत करीं। कौनों तरह के परीक्षण <small>(प्रयोग या टेस्टिंग)</small> [[विकिपीडिया:अभ्यास पन्ना|अभ्यास पन्ना]] या [[Special:MyPage/sandbox|अपना अभ्यास पन्ना]] पर करीं।
* [[विकिपीडिया:आपन परिचय कइसे देईं?|आपन परिचय]] आप संछेप में [[प्रयोगकर्ता:{{BASEPAGENAME}}|अपना सदस्य पन्ना]] पर दे सकत बानी। बहुत पर्सनल बात इहाँ मत लिखीं, न कौनों परचार वाली बात लिखीं। अपने खुद के बारे में लेख मत बनाईं।
* दुसरा [[विकिपीडिया:चौपाल |सदस्य लोगन से बात]] करत समय, [[मदद:वार्ता पन्ना|बातचीत पन्ना]] पर सनेसा लिखले की बाद आपन [[विकिपीडिया:दसखत|दसखत]] <small>(हस्ताक्षर)</small> जरूर करीं। एकरा खातिर अंत में चार गो टेढ़का डैश (<nowiki>~~~~</nowiki>) लिख देंईं या टूलबार में [[File:Insert-signature2.svg|link=|alt=]] पर क्लिक करीं।
* मदद चाहत होखीं त विकिपीडिया के [[विकिपीडिया:मदद|मदद पन्ना]] पर जाईं।
<!-- फुटर के कड़ी सभ -->
सीखे-समझे खातिर कुछ अउरी कड़ी नीचे दिहल जात बाटे:
{| border="5" cellspacing="1" cellpadding="0" height="50" align=center border=0 style="background: transparent"
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 10px;" | [[विकिपीडिया:स्वशिक्षा|शुरू से सीखीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[मदद:संपादन|संपादन सीखीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:नया लेख कइसे सुरू करीं?|नया लेख]]
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:अइसन लेख मना बाटे|लेख मनाहीं]]
|
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:पंचशील|पंचशील]]
| style="background-color:#FFFFFF; border: solid 2px #F2BDCD; padding:1px 20px;" | [[विकिपीडिया:समुदाय पोर्टल|सदस्य समाज पन्ना]]
|}
|}
-- [[प्रयोगकर्ता:नया सदस्य स्वागतकर्ता|नया सदस्य स्वागतकर्ता]] ([[प्रयोगकर्ता वार्ता:नया सदस्य स्वागतकर्ता|बात करीं]]) 11:51, 13 नवंबर 2026 (UTC)
lfl5dv4ltvn0dtgnl51injupmi8fcrj