https://wiki.latbangdjogja.web.id/api.php?action=feedcontributions&user=Adminwiki&feedformat=atomWiki bkkbn jogja - Kontribusi pengguna [id]2024-03-28T09:18:27ZKontribusi penggunaMediaWiki 1.33.0https://wiki.latbangdjogja.web.id/index.php?title=Badan_Kependudukan_dan_Keluarga_Berencana_Nasional&diff=1170Badan Kependudukan dan Keluarga Berencana Nasional2020-01-09T03:41:37Z<p>Adminwiki: ganti logo bkkbn baru 2020</p>
<hr />
<div>{{Infobox lembaga nonkementerian<br />
|nama = Badan Kependudukan dan Keluarga Berencana Nasional<br />
|singkatan = BKKBN<br />
|gambar = [[Berkas:Logo-BKKBN-Baru-2020.png|250px]]<br />
|didirikan = <!-- {{Start date|tttt|bb|hh}} atau {{Start date and age|tttt|bb|hh}} --><br />
|nomenklatur_sebelumnya = [[Badan Koordinasi Keluarga Berencana Nasional]]<br />
|nomenklatur_pengganti = <!-- nama kementerian yang menggantikan --><br />
|dasar = Peraturan Presiden Nomor 62 Tahun 2010<br />
|slogan = Dua Anak Cukup<br />
|pegawai = <br />
|anggaran = <br />
|koordinasi = [[Daftar Menteri Kesehatan Indonesia|Menteri Kesehatan]]<br />
|kepala = [[Daftar Badan Kependudukan dan Keluarga Berencana Nasional|Kepala]]<br />
|nama_kepala = [[Hasto Wardoyo]] <small>(Sejak 1 Juli 2019)<small/><br />
|wakil_kepala =<br />
|nama_wakil_kepala=<br />
|sekretaris_utama = H. Nofrijal<br />
|deputi1 = [[Deputi Bidang Advokasi, Penggerakan dan Informasi]]<br />
|nama_deputi1 = -<br />
|deputi2 = [[Deputi Bidang Keluarga Sejahtera dan Pemberdayaan Keluarga]]<br />
|nama_deputi2 = M. Yani<br />
|deputi3 = [[Deputi Bidang Pelatihan, Penelitian dan Pengembangan]]<br />
|nama_deputi3 = Muhammad Rizal Martua Damanik<br />
|deputi4 = [[Deputi Keluarga Berencana dan Kesehatan Reproduksi]]<br />
|nama_deputi4 = Dwi Listyawardani<br />
|deputi5 = [[Deputi Bidang Pengendalian Penduduk]]<br />
|nama_deputi5 = -<br />
|deputi6 =<br />
|nama_deputi6 =<br />
|deputi7 =<br />
|nama_deputi7 =<br />
|deputi8 =<br />
|nama_deputi8 =<br />
|deputi9 =<br />
|nama_deputi9 =<br />
|deputi10 =<br />
|nama_deputi10 =<br />
|inspektur = Inspektur Utama<br />
|nama_inspektur = Agus Sukiswo<br />
|alamat = Jalan Permata No. 1, Kompleks Bandara Halim Perdanakusuma<br/>[[Jakarta Timur]]<br/>[[DKI Jakarta]], [[Indonesia]]<br />
|situs web = http://www.bkkbn.go.id ; fb, twitter, Ig = @Bkkbnofficial<br />
}}<br />
<br />
'''Badan Kependudukan dan Keluarga Berencana Nasional''' (disingkat '''BKKBN''') adalah [[Lembaga Pemerintah Nonkementerian]] yang berada di bawah dan bertanggung jawab kepada Presiden melalui [[Daftar Menteri Kesehatan Indonesia|Menteri Kesehatan]]. BKKBN mempunyai tugas melaksanakan tugas pemerintahan di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana. Dalam melaksanakan tugas, BKKBN menyelenggarakan fungsi:<br />
# perumusan kebijakan nasional di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# penetapan norma, standar, prosedur, dan kriteria di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# pelaksanaan advokasi dan koordinasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# penyelenggaraan komunikasi, informasi, dan edukasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# penyelenggaraan pemantauan dan evaluasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# pembinaan, pembimbingan, dan fasilitasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana.<ref name="perpres 62 2010"> [http://sipuu.setkab.go.id/puu/buka_puu/17023/PERPRES0622010.pdf Peraturan Presiden Nomor 62 Tahun 2010 tentang Badan Kependudukan dan Keluarga Berencana Nasional] </ref><br />
<br />
Selain fungsi di atas, BKKBN juga menyelenggarakan fungsi:<br />
# penyelenggaraan pelatihan, penelitian, dan pengembangan di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# pembinaan dan koordinasi pelaksanaan tugas administrasi umum di lingkungan BKKBN;<br />
# pengelolaan barang milik/kekayaan negara yang menjadi tanggung jawab BKKBN;<br />
# pengawasan atas pelaksanaan tugas di lingkungan BKKBN; dan<br />
# penyampaian laporan, saran, dan pertimbangan di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana.<ref name="perpres 62 2010"/><br />
<br />
== Sejarah ==<br />
=== Periode Perintisan (1950-an – 1966) ===<br />
Organisasi keluarga berencana dimulai dari pembentukan Perkumpulan Keluarga Berencana pada tanggal 23 Desember 1957 di gedung Ikatan Dokter Indonesia. Nama perkumpulan itu sendiri berkembang menjadi Perkumpulan Keluarga Berencana Indonesia (PKBI) atau Indonesia Planned Parenthood Federation (IPPF). PKBI memperjuangkan terwujudnya keluarga-keluarga yang sejahtera melalui 3 macam usaha pelayanan yaitu mengatur kehamilan atau menjarangkan kehamilan, mengobati kemandulan serta memberi nasihat perkawinan.<br />
<br />
Pada tahun 1967, PKBI diakui sebagai badan hukum oleh Departemen Kehakiman. Kelahiran Orde Baru pada waktu itu menyebabkan perkembangan pesat usaha penerangan dan pelayanan KB di seluruh wilayah tanah air.<br />
<br />
Dengan lahirnya Orde Baru pada bulan maret 1966 masalah kependudukan menjadi fokus perhatian pemerintah yang meninjaunya dari berbagai perspektif. Perubahan politik berupa kelahiran Orde Baru tersebut berpengaruh pada perkembangan keluarga berencana di Indonesia. Setelah simposium Kontrasepsi di Bandung pada bulan Januari 1967 dan Kongres Nasional I PKBI di Jakarta pada tanggal 25 Februari 1967.<br />
<br />
=== Periode Keterlibatan Pemerintah dalam Program KB Nasional ===<br />
Pada tanggal 16 Agustus 1967 di depan Sidang DPRGR, Presiden Soeharto pada pidatonya “Oleh karena itu kita harus menaruh perhatian secara serius mengenai usaha-usaha pembatasan kelahiran, dengan konsepsi keluarga berencana yang dapat dibenarkan oleh moral agama dan moral Pancasila”. Sebagai tindak lanjut dari Pidato Presiden tersebut, Menkesra membentuk Panitia Ad Hoc yang bertugas mempelajari kemungkinan program KB dijadikan Program Nasional. Selanjutnya pada tanggal 7 September 1968 Presiden mengeluarkan Instruksi Presiden No. 26 tahun 1968 kepada Menteri Kesejahteraan Rakyat, yang isinya antara lain:<br />
# membimbing, mengkoordinir serta mengawasi segala aspirasi yang ada di dalam masyarakat di bidang Keluarga Berencana.<br />
# mengusahakan segala terbentuknya suatu Badan atau Lembaga yang dapat menghimpun segala kegiatan di bidang Keluarga Berencana, serta terdiri atas unsur Pemerintah dan masyarakat.<br />
<br />
Berdasarkan Instruksi Presiden tersebut Menkesra pada tanggal 11 Oktober 1968 mengeluarkan Surat Keputusan No. 35/KPTS/Kesra/X/1968 tentang Pembentukan Tim yang akan mengadakan persiapan bagi Pembentukan Lembaga Keluarga Berencana. Setelah melalui pertemuan-pertemuan Menkesra dengan beberapa menteri lainnya serta tokoh-tokoh masyarakat yang terlibat dalam usaha KB, Maka pada tanggal 17 Oktober 1968 dibentuk Lembaga Keluarga Berencana Nasional (LKBN) dengan Surat Keputusan No. 36/KPTS/Kesra/X/1968. Lembanga ini statusnya adalah sebagai Lembaga Semi Pemerintah.<br />
<br />
=== Periode Pelita I (1969-1974) ===<br />
Periode ini mulai dibentuk Badan Koordinasi Keluarga Berencana Nasional (BKKBN) berdasarkan Keppres No. 8 Tahun 1970 dan sebagai Kepala BKKBN adalah dr. Suwardjo Suryaningrat. Dua tahun kemudian, pada tahun 1972 keluar Keppres No. 33 Tahun 1972 sebagai penyempurnaan Organisasi dan tata kerja BKKBN yang ada. Status badan ini berubah menjadi Lembaga Pemerintah Non Departemen yang berkedudukan langsung dibawah Presiden.<br />
<br />
Untuk melaksanakan program keluarga berencana di masyarakat dikembangkan berbagai pendekatan yang disesuaikan dengan kebutuhan program dan situasi serta kondisi masyarakat. Pada Periode Pelita I dikembangkan Periode Klinik (Clinical Approach) karena pada awal program, tantangan terhadap ide keluarga berencana (KB) masih sangat kuat, untuk itu pendekatan melalui kesehatan yang paling tepat.<br />
<br />
=== Periode Pelita II (1974-1979) ===<br />
Kedudukan BKKBN dalam Keppres No. 38 Tahun 1978 adalah sebagai lembaga pemerintah non-departemen yang berada di bawah dan bertanggung jawab kepada Presiden. Tugas pokoknya adalah mempersiapkan kebijaksanaan umum dan mengkoordinasikan pelaksanaan program KB nasional dan kependudukan yang mendukungnya, baik di tingkat pusat maupun di tingkat daerah serta mengkoordinasikan penyelenggaraan pelaksanaan di lapangan.<br />
<br />
Periode ini pembinaan dan pendekatan program yang semula berorientasi pada kesehatan ini mulai dipadukan dengan sector-sektor pembangunan lainnya, yang dikenal dengan Pendekatan Integratif (Beyond Family Planning). Dalam kaitan ini pada tahun 1973-1975 sudah mulai dirintis Pendidikan Kependudukan sebagai pilot project.<br />
<br />
=== Periode Pelita III (1979-1984) ===<br />
Periode ini dilakukan pendekatan Kemasyarakatan (partisipatif) yang didorong peranan dan tanggung jawab masyarakat melalui organisasi/institusi masyarakat dan pemuka masyarakat, yang bertujuan untuk membina dan mempertahankan peserta KB yang sudah ada serta meningkatkan jumlah peserta KB baru. Pada masa periode ini juga dikembangkan strategi operasional yang baru yang disebut Panca Karya dan Catur Bhava Utama yang bertujuan mempertajam segmentasi sehingga diharapkan dapat mempercepat penurunan fertilitas. Pada periode ini muncul juga strategi baru yang memadukan KIE dan pelayanan kontrasepsi yang merupakan bentuk “Mass Campaign” yang dinamakan “Safari KB Senyum Terpadu”.<br />
<br />
=== Periode Pelita IV (1983-1988) ===<br />
Pada masa Kabinet Pembangunan IV ini dilantik Prof. Dr. Haryono Suyono sebagai Kepala BKKBN menggantikan dr. Suwardjono Suryaningrat yang dilantik sebagai Menteri Kesehatan. Pada masa ini juga muncul pendekatan baru antara lain melalui Pendekatan koordinasi aktif, penyelenggaraan KB oleh pemerintah dan masyarakat lebih disinkronkan pelaksanaannya melalui koordinasi aktif tersebut ditingkatkan menjadi koordinasi aktif dengan peran ganda, yaitu selain sebagai dinamisator juga sebagai fasilitator. Disamping itu, dikembangkan pula strategi pembagian wilayah guna mengimbangi laju kecepatan program.<br />
<br />
Pada periode ini juga secara resmi KB Mandiri mulai dicanangkan pada tanggal 28 Januari 1987 oleh Presiden Soeharto dalam acara penerimaan peserta KB Lestari di Taman Mini Indonesia Indah. Program KB Mandiri dipopulerkan dengan kampanye LIngkaran Biru (LIBI) yang bertujuan memperkenalkan tempat-tempat pelayanan dengan logo Lingkaran Biru KB.<br />
<br />
=== Periode Pelita V (1988-1993) ===<br />
Pada masa Pelita V, Kepala BKKBN masih dijabat oleh Prof. Dr. Haryono Suyono. Pada periode ini gerakan KB terus berupaya meningkatkan kualitas petugas dan sumberdaya manusia dan pelayanan KB. Oleh karena itu, kemudian diluncurkan strategi baru yaitu Kampanye Lingkaran Emas (LIMAS). Jenis kontrasepsi yang ditawarkan pada LIBI masih sangat terbatas, maka untuk pelayanan KB LIMAS ini ditawarkan lebih banyak lagi jenis kontrasepsi, yaitu ada 16 jenis kontrepsi.<br />
<br />
Pada periode ini ditetapkan UU No. 10 Tahun 1992 tentang Perkembangan Kependudukan dan Pembangunan Keluarga Sejahtera, dan Garis-Garis Besar Haluan Negara (GBHN) 1993 khususnya sub sector Keluarga Sejahtera dan Kependudukan, maka kebijaksanaan dan strategi gerakan KB nasional diadakan untuk mewujudkan keluarga Kecil yang sejahtera melalui penundaan usia perkawinan, penjarangan kelahiran, pembinaan ketahanan keluarga dan peningkatan kesejahteraan keluarga.<br />
<br />
=== Periode Pelita VI (1993-1998) ===<br />
Pada Pelita VI dikenalkan pendekatan baru yaitu “Pendekatan Keluarga” yang bertujuan untuk menggalakan partisipasi masyarakat dalam gerakan KB nasional. Dalam Kabinet Pembangunan VI sejak tanggal 19 Maret 1993 sampai dengan 19 Maret 1998, Prof. Dr. Haryono Suyono ditetapkan sebagai Menteri Negara Kependudukan/Kepala BKKBN, sebagai awal dibentuknya BKKBN setingkat Kementerian.<br />
<br />
Pada tangal 16 Maret 1998, Prof. Dr. Haryono Suyono diangkat menjadi Menteri Koordinator Bidang Kesejahteraan Rakyat dan Pengentasan Kemiskinan merangkap sebagai Kepala BKKBN. Dua bulan berselang dengan terjadinya gerakan reformasi, maka Kabinet Pembangunan VI mengalami perubahan menjadi Kabinet Reformasi Pembangunan Pada tanggal 21 Mei 1998, Prof. Haryono Suyono menjadi Menteri Koordinator Bidang Kesra dan Pengentasan Kemiskinan, sedangkan Kepala BKKBN dijabat oleh Prof. Dr. Ida Bagus Oka sekaligus menjadi Menteri Kependudukan.<br />
<br />
=== Periode Pasca Reformasi ===<br />
Dari butir-butir arahan GBHN Tahun 1999 dan perundang-undangan yang telah ada, Program Keluarga Berencana Nasional merupakan salah satu program untuk meningkatkan kualitas penduduk, mutu sumber daya manusia, kesehatan dan kesejahteraan sosial yang selama ini dilaksanakan melalui pengaturan kelahiran, pendewasaan usia perkawinan, peningkatan ketahanan keluarga dan kesejahteraan keluarga. Arahan GBHN ini kemudian dijabarkan lebih lanjut dalam Program Pembangunan Nasional (PROPENAS) yang telah ditetapkan sebagai Undang-Undang Nomor 25 Tahun 2000.<br />
<br />
Sejalan dengan era desentralisasi, eksistensi program dan kelembagaan keluarga berencana nasional di daerah mengalami masa-masa kritis. Sesuai dengan Keppres Nomor 103 Tahun 2001, yang kemudian diubah menjadi Keppres Nomor 09 Tahun 2004 tentang Kedudukan, Tugas, Fungsi, Kewenangan, Susunan Organisasi dan Tata Kerja Lembaga Pemerintah Non Departemen menyatakan bahwa sebagian urusan di bidang keluarga berencana diserahkan kepada pemerintah kabupaten dan kota selambat-lambatnya Desember 2003. Hal ini sejalan dengan esensi UU Nomor 22 Tahun 1999 (telah diubah menjadi Undang- Undang Nomor 32 Tahun 2004). Dengan demikian tahun 2004 merupakan tahun pertama Keluarga Berencana Nasional dalam era desentralisasi.<br />
<br />
Undang-Undang Nomor 52 Tahun 2009 tentang Perkembangan Kependudukan dan Pembangunan Keluarga, yang telah disahkan pada tanggal 29 Oktober 2009, berimplikasi terhadap perubahan kelembagaan, visi, dan misi BKKBN. Undang-Undang tersebut mengamanatkan perubahan kelembagaan BKKBN yang semula adalah Badan Koordinasi Keluarga Berencana Nasional menjadi Badan Kependudukan dan Keluarga Berencana Nasional. Visi BKKBN adalah “Penduduk Tumbuh Seimbang 2015” dengan misi “mewujudkan pembangunan yang berwawasan kependudukan dan mewujudkan keluarga kecil bahagia sejahtera”. Untuk mencapai visi dan misi tersebut, BKKBN mempunyai tugas dan fungsi untuk melaksanakan pengendalian penduduk dan penyelenggaraan keluarga berencana sebagaimana diamanatkan dalam Pasal 56 Undang-Undang tersebut di atas. Dalam rangka pengendalian penduduk dan penyelenggaraan keluarga berencana di daerah, pemerintah daerah membentuk Badan Kependudukan dan Keluarga Berencana Daerah yang selanjutnya disingkat BKKBD di tingkat provinsi dan kabupaten dan kota yang dalam melaksanakan tugas dan fungsinya memiliki hubungan fungsional dengan BKKBN (pasal 54 ayat 1 dan 2).<br />
<br />
Peran dan fungsi baru BKKBN diperkuat dengan adanya Peraturan Presiden Nomor 3 Tahun 2013 tentang Perubahan Ketujuh Atas Keputusan Presiden Nomor 103 Tahun 2001 tentang Kedudukan, Tugas, Fungsi, Kewenangan, Susunan Organisasi dan Tata Kerja Lembaga Pemerintah Non Kementerian; Peraturan Kepala BKKBN Nomor 82/PER/B5/2011 tentang Organisasi dan Tata Kerja Perwakilan Badan Kependudukan dan Keluarga Berencana Nasional Provinsi dan Peraturan Kepala BKKBN Nomor 92/PER/B5/2011 tentang Organisasi Tata Kerja Balai Pendidikan dan Pelatihan Kependudukan dan Keluarga Berencana, sehingga perlu dilakukan perubahan/penyesuaian terhadap Renstra BKKBN tentang Pembangunan Kependudukan dan Keluarga Berencana Nasional Tahun 2010-2014 meliputi penyesuaian untuk beberapa kegiatan prioritas dan indikator kinerjanya.<br />
<br />
Pasca Reformasi Kepala BKKBN telah mengalami beberapa pergantian yaitu pada periode Kabinet Persatuan Indonesia, Kepala BKKBN dirangkap oleh Menteri Negara Pemberdayaan Perempuan yang dijabat oleh Khofifah Indar Parawansa. Setelah itu digantikan oleh Prof. Dr. Yaumil C. Agoes Achir pada tahun 2001 dan meninggal dunia pada akhir 2003 akibat penyakit kanker dan yang kemudian terjadi kekosongan. Pada tanggal 10 November 2003, Kepala Litbangkes Departemen Kesehatan dr. Sumarjati Arjoso, SKM dilantik menjadi Kepala BKKBN oleh Menteri Kesehatan Ahmad Sujudi sampai beliau memasuki masa pensiun pada tahun 2006. Setelah itu digantikan oleh Dr. Sugiri Syarief, MPA yang dilantik sebagai Kepala BKKBN pada tanggal 24 Nopember 2006.<br />
<br />
Sebagai tindak lanjut dari UU 52/2009 tentang Perkembangan Kependudukan dan Pembangunan Keluarha Sejahtera, di mana BKKBN kemudian direstrukturisasi menjadi badan kependudukan, bukan lagi badan koordinasi, maka pada tanggal 27 September 2011 Kepala BKKBN, Dr. dr. Sugiri Syarief, MPA akhirnya dilantik sebagai Kepala Badan Kependudukan dan Keluarga Berencana (BKKBN).<br />
<br />
Pada tanggal 13 Juni 2013 akhirnya Presiden Susilo Bambang Yudhoyono menetapkan mantan Wakil Menteri Pendidikan dan Kebudayaan Prof. Fasli Jalal sebagai Kepala Badan Kependudukan dan Keluarga Berencana Nasional (BKKBN).<ref> [https://www.bkkbn.go.id/pages/sejarah-bkkbn www.bkkbn.go.id: Sejarah BKKBN] </ref><br />
<br />
== Susunan organisasi ==<br />
<br />
BKKBN terdiri atas:<br />
# Kepala;<br />
# Sekretariat Utama;<br />
# Deputi Bidang Pengendalian Penduduk;<br />
# Deputi Bidang Keluarga Berencana dan Kesehatan Reproduksi;<br />
# Deputi Bidang Keluarga Sejahtera dan Pemberdayaan Keluarga;<br />
# Deputi Bidang Advokasi, Penggerakan, dan Informasi;<br />
# Deputi Bidang Pelatihan, Penelitian, dan Pengembangan; dan<br />
# Inspektorat Utama.<ref name="perpres 62 2010"/><br />
<br />
=== Kepala BKKBN ===<br />
<br />
Berikut daftar Kepala BKKBN dari masa ke masa:<br />
# [[Suwardjono Surjaningrat|dr. Suwardjono Surjaningrat]] (1970–1983)<br />
# [[Haryono Suyono|Prof. Dr. Haryono Suyono]] (1983–1998)<br />
# [[Ida Bagus Oka|Prof. Dr. Ida Bagus Oka]] (1998–1999)<br />
# [[Khofifah Indar Parawansa|Dra. Hj. Khofifah Indar Parawansa, M.Si.]] (1999–2001)<br />
# [[Yaumil Agoes Achir|Prof. Dr. Yaumil Agoes Achir]] (2001–2003)<br />
# [[Sumarjati Arjoso|dr. Sumarjati Arjoso, SKM]] (2003–2006)<br />
# [[Sugiri Syarief|dr. Sugiri Syarief, MPA]] (2006–2013)<br />
# [[Fasli Jalal|Prof. dr. Fasli Jalal, Ph.D, Sp.Gk]] (2013–2015)<br />
# [[Surya Chandra Surapaty|dr. Surya Chandra Surapaty, MPH, Ph.D]] (2015–2017)<br />
# [[Sigit Priohutomo|dr. Sigit Priohutomo, MPH]] (2017–2019)<br />
# [[Hasto Wardoyo|dr. Hasto Wardoyo, Sp.OG(K)]] (2019-sekarang)<br />
<br />
== Referensi ==<br />
{{reflist}}<br />
<br />
== Pranala luar ==<br />
* {{id}} [http://www.bkkbn.go.id/ Situs resmi]<br />
<br />
== Artikel Sumber ==<br />
* Wikipedia<br />
<br />
[[Kategori:Profil BKKBN]]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Berkas:Logo-BKKBN-Baru-2020.png&diff=1169Berkas:Logo-BKKBN-Baru-2020.png2020-01-09T03:40:44Z<p>Adminwiki: Logo Baru BKKBN 2020</p>
<hr />
<div>== Ringkasan ==<br />
Logo Baru BKKBN 2020</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1168MediaWiki:Sidebar2019-12-31T04:34:28Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
* Menu Panduan<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan Menulis<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1167MediaWiki:Sidebar2019-12-31T04:32:47Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
* Menu PANDUAN<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan Menulis<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1166MediaWiki:Sidebar2019-12-31T04:30:30Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
** http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka<br />
** http://etraining.latbangdjogja.web.id|Pelatihan Daring<br />
* Menu PANDUAN<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan Menulis<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1165MediaWiki:Sidebar2019-12-31T04:28:14Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
** http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka<br />
** http://etraining.latbangdjogja.web.id|Pelatihan Daring<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|'''Panduan Menulis'''<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1164MediaWiki:Sidebar2019-12-31T04:26:43Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
** http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka<br />
** http://etraining.latbangdjogja.web.id|Pelatihan Daring<br />
'''** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan Menulis'''<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1163MediaWiki:Sidebar2019-12-31T04:24:54Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
** http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka<br />
** http://etraining.latbangdjogja.web.id|Pelatihan Daring<br />
'''* Menu Panduan<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan Menulis'''<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1162MediaWiki:Sidebar2019-12-31T04:23:31Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
** http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka<br />
** http://etraining.latbangdjogja.web.id|Pelatihan Daring<br />
* Menu Panduan<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan Menulis<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1161MediaWiki:Sidebar2019-12-31T04:18:39Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
** http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka<br />
** http://etraining.latbangdjogja.web.id|Pelatihan Daring<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan Menulis<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=MediaWiki:Sidebar&diff=1160MediaWiki:Sidebar2019-12-31T04:09:50Z<p>Adminwiki: </p>
<hr />
<div><br />
* Menu Navigasi<br />
** mainpage|mainpage-description<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help-mediawiki<br />
** http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka<br />
** http://etraining.latbangdjogja.web.id|Pelatihan Daring<br />
** https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/id|Panduan<br />
* SEARCH<br />
* TOOLBOX<br />
* LANGUAGES</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Keluarga_Berencana&diff=1156Keluarga Berencana2019-08-20T09:34:51Z<p>Adminwiki: Mengatur pengaturan versi stabil untuk "Keluarga Berencana" [Tinjau otomatis: membutuhkan izin &quot;sysop&quot;]</p>
<hr />
<div>{{refimprove}}<br />
{{rapikan}}<br />
{{globalize}}<br />
<br />
'''Keluarga berencana''' (disingkat '''KB''') adalah gerakan untuk membentuk [[keluarga]] yang sehat dan sejahtera dengan membatasi kelahiran. Itu bermakna adalah perencanaan jumlah keluarga dengan pembatasan yang bisa dilakukan dengan penggunaan alat-alat [[kontrasepsi]] atau penanggulangan kelahiran seperti [[kondom]], [[spiral]], [[Intrauterine device (IUD)|IUD]], dan sebagainya. Gerakan keluarga berencana diartikan sebagai upaya peningkatan kepedulian dan peran serta masyarakat melalui upaya pendewasaan usia perkawinan, pengendalian kelahiran, pembinaan ketahanan keluarga, dan peningkatan kesejahteraan keluarga dalam rangka melembagakan dan membudidayakan norma keluarga kecil bahagia dan sejahteraan<br />
<br />
Jumlah anak dalam sebuah keluarga yang dianggap ideal adalah dua. Gerakan ini mulai dicanangkan pada tahun akhir 1970-an.<br />
<br />
Ada pula sebuah lagu mengenai keluarga berencana yang sering dinyanyikan sejak zaman Orde Baru. Lagu ini dikenal dengan judul [[Lagu KB]]<br />
<br />
== Tujuan keluarga berencana ==<br />
Tujuan keluarga berencana di Indonesia adalah:<br />
=== Tujuan umum ===<br />
Meningkatkan kesejahteraan ibu, anak dalam rangka mewujudkan NKKBS (Norma Keluarga Kecil Bahagia Sejahtera) yang menjadi dasar terwujudnya masyarakat yang sejahtera dengan mengendalikan kelahiran sekaligus menjamin terkendalinya pertambahan penduduk.<br />
<br />
=== Tujuan khusus ===<br />
* Meningkatkan jumlah penduduk untuk menggunakan alat kontrasepsi.<br />
* Menurunnya jumlah angka kelahiran bayi.<br />
* Meningkatnya kesehatan keluarga berencana dengan cara penjarangan kelahiran<br />
<br />
<!--== Pandangan agama tentang keluarga berencana ==<br />
{{main|Agama dan pengaturan kelahiran}}<br />
<br />
Keluarga berencana termasuk masalah yang kontroversial sehingga tidak ditemukan bahasannya oleh imam-imam madzhab. Secara umum, hingga kini di kalangan umat [[Islam]] masih ada dua kubu antara yang membolehkan keluarga berencana dan yang menolak keluarga berencana. Ada beberapa alasan dari para [[ulama]] yang memperbolehkan keluarga berencana, diantaranya dari segi kesehatan [[ibu]] dan ekonomi [[keluarga]]. Selain itu, program keluarga berencana juga didukung oleh pemerintah. Sebagaimana diketahui, sejak [[1970]], program keluarga berencana nasional telah meletakkan dasar-dasar mengenai pentingnya perencanaan dalam keluarga. Intinya, tentu saja untuk mengantisipasi segala kemungkinan yang berkaitan dengan masalah dan beban keluarga jika kelak memiliki anak. Di lain pihak, beberapa ulama berpendapat bahwa keluarga berencana itu [[haram]]. Hal ini didasarkan pada firman [[Allah]] Qs. Al-Isra':31 yang berbunyi:<br />
{{cquote|''Dan janganlah kalian membunuh anak-anak kalian karena takut miskin. Kamilah yang memberi rezeki kepada mereka dan kepada kalian.'' <br />
|4=(Qs. Al-Isra' 31)<br />
|5=}}<br />
<br />
Oleh karena itu,mereka tidak memperbolehkan keluarga berencana. Maka dari itu, kita harus mempelajari pengetahuan tentang keluarga berencana dari beberapa sudut pandang sehingga bisa memberi manfaat bagi masyarakat luas serta meyakinkan masyarakat tentang hukum keluarga berencana. Rasulullah SAW sangat menganjurkan umatnya untuk memiliki keturunanyang sangat banyak. Namun tentunya bukan asal banyak, tetapi berkualitas sehingga perlu dididik dengan baik supaya dapat mengisi alam semesta ini dengan manusia yang shalih dan beriman. Contoh metode pencegah kehamilan yang pernah dilakukan pada zaman Rasulullah SAW adalah azl yakni mengeluarkan [[air mani]] di luar [[vagina]] istri atau yang lazim disebut sanggama terputus, namun tidak dilarang oleh [[Rasul]]. Dari Jabir berkata: "Kami melakukan azl pada masa Rasulullah SAW, dan Rasul mendengarnya tetapi tidak melarangnya (HR Muslim)". Sedangkan metode pada zaman ini yang tentunya belum pernah dilakukan pada zaman [[Rasulullah SAW]] membutuhkan kajian yang mendalam dan melibatkan ahli medis dalammenentukan kebolehan atau keharamannya. Kita mengenal keluarga berencana sebagai metode yang dipakai untuk mencegah kehamilan. Hal tersebut yang paling sering diperdebatkan dalam Islam. Hukum keluarga berencana dalam Islam dilihat dari 2 pengertian:<br />
<br />
* Tahdid an-nasl (pembatasan kelahiran)<br />
Jika program keluarga berencana dimaksudkan untuk membatasi kelahiran, maka hukumnya haram. Islam tidak mengenal pembatasan kelahiran. Bahkan terdapat banyak [[hadits]] yang mendorong umat Islam untuk memperbanyak anak. Misalnya, tidak bolehnya membunuh anak apalagi karena takut miskin atau tidak mampu memberikan nafkah. Allah berfirman:<br />
{{cquote|''Dan janganlah kalian membunuh anak-anak kalian karena takut miskin. Kamilah yang memberi rezeki kepada mereka dan kepada kalian.'' <br />
|4=(Qs. Al-Isra' 31)<br />
|5=}}<br />
* Tanzhim an-nasl (pengaturan kelahiran)<br />
Jika program keluarga berencana dimaksudkan untuk mencegah kelahiran dengan berbagai cara dan sarana, maka hukumnya mubah, bagaimanapun motifnya. Berdasarkan keputusan yang telah ada sebagian ulama menyimpulkan bahwa pil-pil untuk mencegah kehamilan tidak boleh dikonsumsi. Karena Allah Subhanahu wa Ta'ala mensyariatkan untuk hamba-Nya sebab-sebab untuk mendapatkan keturunan dan memperbanyak jumlah umat. ''Rasulullah Shallallahu walaihi wa sallam'' artinya: ''Nikahilah wanita yang banyak anak lagi penyayang, karena sesungguhnya aku berlomba-lomba dalam banyak umat dengan umat-umat lain pada hari kiamat (dalam riwayat yang lain: dengan para nabi pada hari kiamat)''<br />
<br />
Karena umat itu membutuhkan jumlah yang banyak, sehingga mereka beribadah kepada Allah, berjihad di jalan-Nya, melindungi kaum muslimin dengan izin Allah, dan Allah akan menjaga mereka dan tipu daya musuh-musuh mereka. Maka wajib untuk meninggalkan perkara ini (membatasi kelahiran), tidak membolehkannya dan tidak menggunakannya kecuali darurat. Jika dalam keadaan darurat maka tidak mengapa, seperti:<br />
* Sang istri tertimpa penyakit di dalam rahimnya, atau anggota badan yang lain, sehingga berbahaya jika hamil, maka tidak mengapa (menggunakan pil-pil tersebut) untuk keperluan ini.<br />
* Demikian juga, jika sudah memiliki anak banyak, sedangkan isteri keberatan jika hamil lagi, maka tidak terlarang mengkonsumsi pil-pil tersebut dalam waktu tertentu, seperti setahun atau dua tahun dalam masa menyusui, sehingga ia merasa ringan untuk kembali hamil, sehingga ia bisa mendidik dengan selayaknya.<br />
<br />
Adapun jika penggunaannya dengan maksud berkonsentrasi dalam berkarier atau supaya hidup senang atau hal-hal lain yang serupa dengan itu, sebagaimana yang dilakukan kebanyakan wanita zaman sekarang, maka hal itu tidak boleh. Berdasarkan penjelasan yang telah dipaparkan, maka dapat disimpulkan bahwa keluarga berencana diperbolehkan dengan alasan-alasan tertentu misalnya untuk menjaga kesehatan ibu, mengatur jarak di antara dua kelahiran, untuk menjaga keselamatan jiwa, kesehatan atau pendidikan anak-anak. Namun keluarga berencana bisa menjadi tidak diperbolehkan apabila dilandasi dengan niat dan alasan yang salah, seperti takut miskin, takut tidak bisa mendidik anak, dan takut mengganggu pekerjaan orang tua. Dengan kata lain, penilaian tentang keluarga berencana tergantung pada individu masing-masing.<br />
--><br />
<br />
== Lihat pula ==<br />
* [[Cuti orang tua]]<br />
* [[Keluarga berencana alami]]<br />
* [[Natalisme]] dan [[anti-natalisme]]<br />
<br />
== Pranala luar ==<br />
* {{kamus|Keluarga}}<br />
* {{id}} [http://www.lusa.web.id/program-kb-di-indonesia/ Program keluarga berencana di Indonesia]<br />
<br />
== Artikel Sumber ==<br />
* Wikipedia<br />
<br />
{{demografi-stub}}<br />
<br />
[[Kategori:Demografi]]<br />
[[Kategori:Populasi]]<br />
[[Kategori:Propaganda Orde Baru]]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Hasto_Wardoyo&diff=1155Hasto Wardoyo2019-08-20T09:28:27Z<p>Adminwiki: Mengatur pengaturan versi stabil untuk "Hasto Wardoyo" [Tinjau otomatis: membutuhkan izin &quot;sysop&quot;]</p>
<hr />
<div>{{Infobox Officeholder<br />
|honorific-prefix = Dr.<br />
|honorific-suffix = ,SP.OG.(K)<br />
|name = Hasto Wardoyo<br />{{jav|ꦲꦱ꧀ꦠꦮꦂꦢꦪ}}<br />
|image = Hasto Wardoyo, 2016.jpg<br />
|imagesize = 200px<br />
|caption = Bupati Kulon Progo, Hasto Wardoyo <br />
|office1 = Kepala Badan Kependudukan dan Keluarga Berencana Nasional<br />
|order1 = Ke-10<br />
|term_start1 = 1 Juli 2019<br />
|term_end1 = <br />
|predecessor1 = [[Sigit Priohutomo]]<br />
|successor1 = <br />
|president1 = [[Joko Widodo]]<br />
|office2 = Bupati Kulon Progo <br />
|order2 = 9<br />
|term_start2 = 2011<br />
|term_end2 = 28 Juni 2019<br />
|predecessor2 = [[Toyo Santoso Dipo]]<br />
|successor2 = [[Sutedjo]]<br />
|lieutenant2 = [[Sutedjo]]<br />
|appointed =<br />
|birth_date = [[26 Maret]] [[1964]]<br />
|birth_place = {{negara|Indonesia}} [[Kulon Progo]], [[Daerah Istimewa Yogyakarta]]<br />
|death_date = <br />
|death_place = <br />
|nationality = {{negara|Indonesia}} [[Indonesia]]<br />
|party = [[Partai Demokrasi Indonesia Perjuangan]]<br />
|spouse = Dwikisworo Setyowireni<br />
|relations = <br />
|children = <br />
|alma_mater = [[Universitas Gadjah Mada]]<br />
|president2 = [[Susilo Bambang Yudhoyono]]{{br}}[[Joko Widodo]]<br />
|governor2 = [[Hamengkubuwana X]]<br />
|monarch2 = [[Hamengkubuwana X]]<br />
|occupation = <br />
|profession = Dokter<br />
|signature = <br />
|website = http://www.dokterhasto.com <br />
|footnotes = <br />
}}<br />
'''Dr. Hasto Wardoyo, SP. OG.(K)''' ({{lahirmati|[[Kulon Progo]], [[Daerah Istimewa Yogyakarta]]|30|7|1964}}) adalah [[bupati]] [[Kulon Progo]] yang menjabat pada periode [[2011]]-[[2016]] dan periode 2016-2019 sebelum diangkat Presiden [[Joko Widodo]] menjadi Kepala [[Badan Kependudukan dan Keluarga Berencana Nasional|Badan Koordinasi Keluarga Berencana Nasional (BKKBN)]] pada 1 Juli 2019. Sebelum menjadi Bupati, Hasto Wardoyo dikenal sebagai dokter dan pengusaha bidang jasa kesehatan.<br />
<br />
== Riwayat Hidup ==<br />
<br />
=== Bupati Kulon Progo ===<br />
Pada Pemilihan Kepala Daerah Langsung tahun 2011, Ia bersama pasangannya [[Sutedjo]] yang didukung [[PDIP]], [[PAN]], dan [[PPP]] berhasil memenangkan [[pilkada]] [[Kulon Progo]] dengan perolehan suara sebesar 46.29 persen dari jumlah pemilih. Pasangan ini mengalahkan tiga pasangan lainnya yakni Sarwidi - Hartikah (5.83%) yang didukung PKB, Mulyono - A. Sumiyanto (29.15%) yang didukung gabungan [[Partai Demokrat]] dan [[PKS]] dan pasangan Suprapta - Soim (18.74%) yang diusung [[Golkar]], [[Gerindra]], [[PKPB]], [[Partai Demokrasi Kebangsaan|PDK]] dan [[PKNU]].<ref>[http://scriptintermedia.com/view.php?id=6514 Hasil Real Quick Count Pilkada Kulon Progo, Jogja 2011]</ref>. Ia dilantik sebagai Bupati Kulonprogo pada [[24 Agustus]] [[2013]].<br />
<br />
==== Kebijakan ====<br />
Hasto Wardoyo terkenal karena berbagai inovasinya dalam memimpin Kulonprogo. Pada tahun 2012, untuk mengangkat perekonomian Kabupaten Kulonprogo, Hasto Wardoyo meluncurkan program "Bela & Beli Kulonprogo".Gerakan dimulai dengan mengeluarkan kebijakan yang mewajibkan pelajar dan PNS di sana mengenakan seragam batik gebleg renteng, batik khas Kulonprogo, pada hari tertentu. Ternyata, dengan jumlah 80.000 pelajar dan 8.000 PNS, kebijakan ini mampu mendongkrak industri batik lokal. Sentra kerajinan batik tumbuh pesat, dari cuma 2 menjadi 50-an.(?)<br />
<br />
Selain itu, Hasto mewajibkan setiap PNS membeli beras produksi petani Kulonprogo, 10 kilogram per bulan. Bahkan beras raskin yang dikelola Bulog setempat, kini menggunakan beras produksi petani Kulonprogo. Hasto juga membuat [[PDAM]] mengembangkan usaha, dengan memprodusi air kemasan merk AirKu (Air Kulonprogo). AirKu kini menguasai seperempat ceruk pasar air kemasan di Kulonprogo. Berbagai kebijakan lewat program Bela dan Beli, ternyata mampu menurunkan angka kemisikinan di Kulonprogo, dari 22,54 persen pada 2013 menjadi 16,74 persen pada 2014 (data [[Badan Perencanaan Pembangunan Daerah|Bappeda]]).<ref>http://pusakarakyat.com/2015/12/16/teladan-bangsa-dr-h-hasto-wardoyo-sp-ogk/</ref><br />
<br />
== Pendidikan ==<br />
<br />
* SD Negeri Sermo III, lulus Tahun 1976<br />
* [[SMP Negeri 1 Kokap]], lulus Tahun 1980<br />
* [[SMA Negeri 1 Wates]]<ref>{{Cite web|url=https://arsip.koranbernas.id/ulang-tahun-sma-n-1-wates-meriah/|title=Ulang Tahun SMA N 1 Wates Meriah {{!}} Koran Bernas|language=id-ID|access-date=2019-07-17}}</ref>, lulus Tahun 1983<br />
* S1 Fakultas Kedokteran [[Universitas Gadjah Mada|UGM]], lulus Tahun 1989<br />
* Spesialis I Fakultas Kedokteran UGM, lulus Tahun 2000<br />
* Spesialis II Fakultas Kedokteran UGM, lulus Tahun 2006<br />
<br />
== Tanda Jasa/Penghargaan ==<br />
<br />
* Dokter Teladan, 1992, Presiden RI<br />
* Satya Lencana Bidang KB, 2010, Presiden RI<br />
<br />
== Riwayat Pekerjaan ==<br />
<br />
* Kepala Puskesmas Kahala,Kab. [[Kabupaten Kutai Kartanegara|Kutai]], [[Kalimantan Timur]],1990<br />
* Kepala Puskesmas Melak,Kab.[[Kabupaten Kutai Kartanegara|Kutai]], [[Kalimantan Timur]],1991<br />
* Kepala Puskesmas Lok Tuan Bontang Utara,Kab.Kutai,Kalimantan Timur,1994<br />
* [[Rumah Sakit Umum Pusat Dr Sardjito|RSUP Dr.Sardjito]], sejak 1995-2011 (Staf hingga Kepala Instansi Kesehatan Reproduksi & Bayi Tabung)<br />
* Dosen Fakultas Kedokteran UGM, 2000-2011<br />
* Bupati Kulon Progo, Tahun 2011 - 30 Juni 2019<br />
* Kepala BKKBN, 1 Juli 2019 - Sekarang<br />
<br />
== Riwayat Organisasi ==<br />
<br />
* OSIS [[SMA Negeri 1 Wates]] Tahun 1982 – 1983<br />
* Senat Mahasiswa FK UGM Tahun 1985-1987<br />
* Ketua [[Komite Nasional Pemuda Indonesia|KNPI]] Kulonprogo Tahun 1990-1992<br />
* Persatuan Obstertri Genekologi Indonesia Cabang Yogyakarta Tahun 2004- 2011<br />
* PERMI cabang Yogyakarta Tahun 2006-2011<br />
* HIFERIPOGI Cabang Yogyakarta Tahun 2006-2011<br />
* HIFERIPOGI Tahun 2007 – 2011<br />
* Tim P2KB POGI Cabang Yogyakarta Tahun 2006 - 2009<br />
<br />
== Referensi ==<br />
<br />
{{reflist}}</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Badan_Kependudukan_dan_Keluarga_Berencana_Nasional&diff=1154Badan Kependudukan dan Keluarga Berencana Nasional2019-08-20T09:27:42Z<p>Adminwiki: Mengatur pengaturan versi stabil untuk "Badan Kependudukan dan Keluarga Berencana Nasional" [Tinjau otomatis: membutuhkan izin &quot;sysop&quot;]</p>
<hr />
<div>{{Infobox lembaga nonkementerian<br />
|nama = Badan Kependudukan dan Keluarga Berencana Nasional<br />
|singkatan = BKKBN<br />
|gambar = [[Berkas:Logo BkkbN.png|250px]]<br />
|didirikan = <!-- {{Start date|tttt|bb|hh}} atau {{Start date and age|tttt|bb|hh}} --><br />
|nomenklatur_sebelumnya = [[Badan Koordinasi Keluarga Berencana Nasional]]<br />
|nomenklatur_pengganti = <!-- nama kementerian yang menggantikan --><br />
|dasar = Peraturan Presiden Nomor 62 Tahun 2010<br />
|slogan = Dua Anak Cukup<br />
|pegawai = <br />
|anggaran = <br />
|koordinasi = [[Daftar Menteri Kesehatan Indonesia|Menteri Kesehatan]]<br />
|kepala = [[Daftar Badan Kependudukan dan Keluarga Berencana Nasional|Kepala]]<br />
|nama_kepala = [[Hasto Wardoyo]] <small>(Sejak 1 Juli 2019)<small/><br />
|wakil_kepala =<br />
|nama_wakil_kepala=<br />
|sekretaris_utama = H. Nofrijal<br />
|deputi1 = [[Deputi Bidang Advokasi, Penggerakan dan Informasi]]<br />
|nama_deputi1 = -<br />
|deputi2 = [[Deputi Bidang Keluarga Sejahtera dan Pemberdayaan Keluarga]]<br />
|nama_deputi2 = M. Yani<br />
|deputi3 = [[Deputi Bidang Pelatihan, Penelitian dan Pengembangan]]<br />
|nama_deputi3 = Muhammad Rizal Martua Damanik<br />
|deputi4 = [[Deputi Keluarga Berencana dan Kesehatan Reproduksi]]<br />
|nama_deputi4 = Dwi Listyawardani<br />
|deputi5 = [[Deputi Bidang Pengendalian Penduduk]]<br />
|nama_deputi5 = -<br />
|deputi6 =<br />
|nama_deputi6 =<br />
|deputi7 =<br />
|nama_deputi7 =<br />
|deputi8 =<br />
|nama_deputi8 =<br />
|deputi9 =<br />
|nama_deputi9 =<br />
|deputi10 =<br />
|nama_deputi10 =<br />
|inspektur = Inspektur Utama<br />
|nama_inspektur = Agus Sukiswo<br />
|alamat = Jalan Permata No. 1, Kompleks Bandara Halim Perdanakusuma<br/>[[Jakarta Timur]]<br/>[[DKI Jakarta]], [[Indonesia]]<br />
|situs web = http://www.bkkbn.go.id ; fb, twitter, Ig = @Bkkbnofficial<br />
}}<br />
<br />
'''Badan Kependudukan dan Keluarga Berencana Nasional''' (disingkat '''BKKBN''') adalah [[Lembaga Pemerintah Nonkementerian]] yang berada di bawah dan bertanggung jawab kepada Presiden melalui [[Daftar Menteri Kesehatan Indonesia|Menteri Kesehatan]]. BKKBN mempunyai tugas melaksanakan tugas pemerintahan di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana. Dalam melaksanakan tugas, BKKBN menyelenggarakan fungsi:<br />
# perumusan kebijakan nasional di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# penetapan norma, standar, prosedur, dan kriteria di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# pelaksanaan advokasi dan koordinasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# penyelenggaraan komunikasi, informasi, dan edukasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# penyelenggaraan pemantauan dan evaluasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# pembinaan, pembimbingan, dan fasilitasi di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana.<ref name="perpres 62 2010"> [http://sipuu.setkab.go.id/puu/buka_puu/17023/PERPRES0622010.pdf Peraturan Presiden Nomor 62 Tahun 2010 tentang Badan Kependudukan dan Keluarga Berencana Nasional] </ref><br />
<br />
Selain fungsi di atas, BKKBN juga menyelenggarakan fungsi:<br />
# penyelenggaraan pelatihan, penelitian, dan pengembangan di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana;<br />
# pembinaan dan koordinasi pelaksanaan tugas administrasi umum di lingkungan BKKBN;<br />
# pengelolaan barang milik/kekayaan negara yang menjadi tanggung jawab BKKBN;<br />
# pengawasan atas pelaksanaan tugas di lingkungan BKKBN; dan<br />
# penyampaian laporan, saran, dan pertimbangan di bidang pengendalian penduduk dan penyelenggaraan keluarga berencana.<ref name="perpres 62 2010"/><br />
<br />
== Sejarah ==<br />
=== Periode Perintisan (1950-an – 1966) ===<br />
Organisasi keluarga berencana dimulai dari pembentukan Perkumpulan Keluarga Berencana pada tanggal 23 Desember 1957 di gedung Ikatan Dokter Indonesia. Nama perkumpulan itu sendiri berkembang menjadi Perkumpulan Keluarga Berencana Indonesia (PKBI) atau Indonesia Planned Parenthood Federation (IPPF). PKBI memperjuangkan terwujudnya keluarga-keluarga yang sejahtera melalui 3 macam usaha pelayanan yaitu mengatur kehamilan atau menjarangkan kehamilan, mengobati kemandulan serta memberi nasihat perkawinan.<br />
<br />
Pada tahun 1967, PKBI diakui sebagai badan hukum oleh Departemen Kehakiman. Kelahiran Orde Baru pada waktu itu menyebabkan perkembangan pesat usaha penerangan dan pelayanan KB di seluruh wilayah tanah air.<br />
<br />
Dengan lahirnya Orde Baru pada bulan maret 1966 masalah kependudukan menjadi fokus perhatian pemerintah yang meninjaunya dari berbagai perspektif. Perubahan politik berupa kelahiran Orde Baru tersebut berpengaruh pada perkembangan keluarga berencana di Indonesia. Setelah simposium Kontrasepsi di Bandung pada bulan Januari 1967 dan Kongres Nasional I PKBI di Jakarta pada tanggal 25 Februari 1967.<br />
<br />
=== Periode Keterlibatan Pemerintah dalam Program KB Nasional ===<br />
Pada tanggal 16 Agustus 1967 di depan Sidang DPRGR, Presiden Soeharto pada pidatonya “Oleh karena itu kita harus menaruh perhatian secara serius mengenai usaha-usaha pembatasan kelahiran, dengan konsepsi keluarga berencana yang dapat dibenarkan oleh moral agama dan moral Pancasila”. Sebagai tindak lanjut dari Pidato Presiden tersebut, Menkesra membentuk Panitia Ad Hoc yang bertugas mempelajari kemungkinan program KB dijadikan Program Nasional. Selanjutnya pada tanggal 7 September 1968 Presiden mengeluarkan Instruksi Presiden No. 26 tahun 1968 kepada Menteri Kesejahteraan Rakyat, yang isinya antara lain:<br />
# membimbing, mengkoordinir serta mengawasi segala aspirasi yang ada di dalam masyarakat di bidang Keluarga Berencana.<br />
# mengusahakan segala terbentuknya suatu Badan atau Lembaga yang dapat menghimpun segala kegiatan di bidang Keluarga Berencana, serta terdiri atas unsur Pemerintah dan masyarakat.<br />
<br />
Berdasarkan Instruksi Presiden tersebut Menkesra pada tanggal 11 Oktober 1968 mengeluarkan Surat Keputusan No. 35/KPTS/Kesra/X/1968 tentang Pembentukan Tim yang akan mengadakan persiapan bagi Pembentukan Lembaga Keluarga Berencana. Setelah melalui pertemuan-pertemuan Menkesra dengan beberapa menteri lainnya serta tokoh-tokoh masyarakat yang terlibat dalam usaha KB, Maka pada tanggal 17 Oktober 1968 dibentuk Lembaga Keluarga Berencana Nasional (LKBN) dengan Surat Keputusan No. 36/KPTS/Kesra/X/1968. Lembanga ini statusnya adalah sebagai Lembaga Semi Pemerintah.<br />
<br />
=== Periode Pelita I (1969-1974) ===<br />
Periode ini mulai dibentuk Badan Koordinasi Keluarga Berencana Nasional (BKKBN) berdasarkan Keppres No. 8 Tahun 1970 dan sebagai Kepala BKKBN adalah dr. Suwardjo Suryaningrat. Dua tahun kemudian, pada tahun 1972 keluar Keppres No. 33 Tahun 1972 sebagai penyempurnaan Organisasi dan tata kerja BKKBN yang ada. Status badan ini berubah menjadi Lembaga Pemerintah Non Departemen yang berkedudukan langsung dibawah Presiden.<br />
<br />
Untuk melaksanakan program keluarga berencana di masyarakat dikembangkan berbagai pendekatan yang disesuaikan dengan kebutuhan program dan situasi serta kondisi masyarakat. Pada Periode Pelita I dikembangkan Periode Klinik (Clinical Approach) karena pada awal program, tantangan terhadap ide keluarga berencana (KB) masih sangat kuat, untuk itu pendekatan melalui kesehatan yang paling tepat.<br />
<br />
=== Periode Pelita II (1974-1979) ===<br />
Kedudukan BKKBN dalam Keppres No. 38 Tahun 1978 adalah sebagai lembaga pemerintah non-departemen yang berada di bawah dan bertanggung jawab kepada Presiden. Tugas pokoknya adalah mempersiapkan kebijaksanaan umum dan mengkoordinasikan pelaksanaan program KB nasional dan kependudukan yang mendukungnya, baik di tingkat pusat maupun di tingkat daerah serta mengkoordinasikan penyelenggaraan pelaksanaan di lapangan.<br />
<br />
Periode ini pembinaan dan pendekatan program yang semula berorientasi pada kesehatan ini mulai dipadukan dengan sector-sektor pembangunan lainnya, yang dikenal dengan Pendekatan Integratif (Beyond Family Planning). Dalam kaitan ini pada tahun 1973-1975 sudah mulai dirintis Pendidikan Kependudukan sebagai pilot project.<br />
<br />
=== Periode Pelita III (1979-1984) ===<br />
Periode ini dilakukan pendekatan Kemasyarakatan (partisipatif) yang didorong peranan dan tanggung jawab masyarakat melalui organisasi/institusi masyarakat dan pemuka masyarakat, yang bertujuan untuk membina dan mempertahankan peserta KB yang sudah ada serta meningkatkan jumlah peserta KB baru. Pada masa periode ini juga dikembangkan strategi operasional yang baru yang disebut Panca Karya dan Catur Bhava Utama yang bertujuan mempertajam segmentasi sehingga diharapkan dapat mempercepat penurunan fertilitas. Pada periode ini muncul juga strategi baru yang memadukan KIE dan pelayanan kontrasepsi yang merupakan bentuk “Mass Campaign” yang dinamakan “Safari KB Senyum Terpadu”.<br />
<br />
=== Periode Pelita IV (1983-1988) ===<br />
Pada masa Kabinet Pembangunan IV ini dilantik Prof. Dr. Haryono Suyono sebagai Kepala BKKBN menggantikan dr. Suwardjono Suryaningrat yang dilantik sebagai Menteri Kesehatan. Pada masa ini juga muncul pendekatan baru antara lain melalui Pendekatan koordinasi aktif, penyelenggaraan KB oleh pemerintah dan masyarakat lebih disinkronkan pelaksanaannya melalui koordinasi aktif tersebut ditingkatkan menjadi koordinasi aktif dengan peran ganda, yaitu selain sebagai dinamisator juga sebagai fasilitator. Disamping itu, dikembangkan pula strategi pembagian wilayah guna mengimbangi laju kecepatan program.<br />
<br />
Pada periode ini juga secara resmi KB Mandiri mulai dicanangkan pada tanggal 28 Januari 1987 oleh Presiden Soeharto dalam acara penerimaan peserta KB Lestari di Taman Mini Indonesia Indah. Program KB Mandiri dipopulerkan dengan kampanye LIngkaran Biru (LIBI) yang bertujuan memperkenalkan tempat-tempat pelayanan dengan logo Lingkaran Biru KB.<br />
<br />
=== Periode Pelita V (1988-1993) ===<br />
Pada masa Pelita V, Kepala BKKBN masih dijabat oleh Prof. Dr. Haryono Suyono. Pada periode ini gerakan KB terus berupaya meningkatkan kualitas petugas dan sumberdaya manusia dan pelayanan KB. Oleh karena itu, kemudian diluncurkan strategi baru yaitu Kampanye Lingkaran Emas (LIMAS). Jenis kontrasepsi yang ditawarkan pada LIBI masih sangat terbatas, maka untuk pelayanan KB LIMAS ini ditawarkan lebih banyak lagi jenis kontrasepsi, yaitu ada 16 jenis kontrepsi.<br />
<br />
Pada periode ini ditetapkan UU No. 10 Tahun 1992 tentang Perkembangan Kependudukan dan Pembangunan Keluarga Sejahtera, dan Garis-Garis Besar Haluan Negara (GBHN) 1993 khususnya sub sector Keluarga Sejahtera dan Kependudukan, maka kebijaksanaan dan strategi gerakan KB nasional diadakan untuk mewujudkan keluarga Kecil yang sejahtera melalui penundaan usia perkawinan, penjarangan kelahiran, pembinaan ketahanan keluarga dan peningkatan kesejahteraan keluarga.<br />
<br />
=== Periode Pelita VI (1993-1998) ===<br />
Pada Pelita VI dikenalkan pendekatan baru yaitu “Pendekatan Keluarga” yang bertujuan untuk menggalakan partisipasi masyarakat dalam gerakan KB nasional. Dalam Kabinet Pembangunan VI sejak tanggal 19 Maret 1993 sampai dengan 19 Maret 1998, Prof. Dr. Haryono Suyono ditetapkan sebagai Menteri Negara Kependudukan/Kepala BKKBN, sebagai awal dibentuknya BKKBN setingkat Kementerian.<br />
<br />
Pada tangal 16 Maret 1998, Prof. Dr. Haryono Suyono diangkat menjadi Menteri Koordinator Bidang Kesejahteraan Rakyat dan Pengentasan Kemiskinan merangkap sebagai Kepala BKKBN. Dua bulan berselang dengan terjadinya gerakan reformasi, maka Kabinet Pembangunan VI mengalami perubahan menjadi Kabinet Reformasi Pembangunan Pada tanggal 21 Mei 1998, Prof. Haryono Suyono menjadi Menteri Koordinator Bidang Kesra dan Pengentasan Kemiskinan, sedangkan Kepala BKKBN dijabat oleh Prof. Dr. Ida Bagus Oka sekaligus menjadi Menteri Kependudukan.<br />
<br />
=== Periode Pasca Reformasi ===<br />
Dari butir-butir arahan GBHN Tahun 1999 dan perundang-undangan yang telah ada, Program Keluarga Berencana Nasional merupakan salah satu program untuk meningkatkan kualitas penduduk, mutu sumber daya manusia, kesehatan dan kesejahteraan sosial yang selama ini dilaksanakan melalui pengaturan kelahiran, pendewasaan usia perkawinan, peningkatan ketahanan keluarga dan kesejahteraan keluarga. Arahan GBHN ini kemudian dijabarkan lebih lanjut dalam Program Pembangunan Nasional (PROPENAS) yang telah ditetapkan sebagai Undang-Undang Nomor 25 Tahun 2000.<br />
<br />
Sejalan dengan era desentralisasi, eksistensi program dan kelembagaan keluarga berencana nasional di daerah mengalami masa-masa kritis. Sesuai dengan Keppres Nomor 103 Tahun 2001, yang kemudian diubah menjadi Keppres Nomor 09 Tahun 2004 tentang Kedudukan, Tugas, Fungsi, Kewenangan, Susunan Organisasi dan Tata Kerja Lembaga Pemerintah Non Departemen menyatakan bahwa sebagian urusan di bidang keluarga berencana diserahkan kepada pemerintah kabupaten dan kota selambat-lambatnya Desember 2003. Hal ini sejalan dengan esensi UU Nomor 22 Tahun 1999 (telah diubah menjadi Undang- Undang Nomor 32 Tahun 2004). Dengan demikian tahun 2004 merupakan tahun pertama Keluarga Berencana Nasional dalam era desentralisasi.<br />
<br />
Undang-Undang Nomor 52 Tahun 2009 tentang Perkembangan Kependudukan dan Pembangunan Keluarga, yang telah disahkan pada tanggal 29 Oktober 2009, berimplikasi terhadap perubahan kelembagaan, visi, dan misi BKKBN. Undang-Undang tersebut mengamanatkan perubahan kelembagaan BKKBN yang semula adalah Badan Koordinasi Keluarga Berencana Nasional menjadi Badan Kependudukan dan Keluarga Berencana Nasional. Visi BKKBN adalah “Penduduk Tumbuh Seimbang 2015” dengan misi “mewujudkan pembangunan yang berwawasan kependudukan dan mewujudkan keluarga kecil bahagia sejahtera”. Untuk mencapai visi dan misi tersebut, BKKBN mempunyai tugas dan fungsi untuk melaksanakan pengendalian penduduk dan penyelenggaraan keluarga berencana sebagaimana diamanatkan dalam Pasal 56 Undang-Undang tersebut di atas. Dalam rangka pengendalian penduduk dan penyelenggaraan keluarga berencana di daerah, pemerintah daerah membentuk Badan Kependudukan dan Keluarga Berencana Daerah yang selanjutnya disingkat BKKBD di tingkat provinsi dan kabupaten dan kota yang dalam melaksanakan tugas dan fungsinya memiliki hubungan fungsional dengan BKKBN (pasal 54 ayat 1 dan 2).<br />
<br />
Peran dan fungsi baru BKKBN diperkuat dengan adanya Peraturan Presiden Nomor 3 Tahun 2013 tentang Perubahan Ketujuh Atas Keputusan Presiden Nomor 103 Tahun 2001 tentang Kedudukan, Tugas, Fungsi, Kewenangan, Susunan Organisasi dan Tata Kerja Lembaga Pemerintah Non Kementerian; Peraturan Kepala BKKBN Nomor 82/PER/B5/2011 tentang Organisasi dan Tata Kerja Perwakilan Badan Kependudukan dan Keluarga Berencana Nasional Provinsi dan Peraturan Kepala BKKBN Nomor 92/PER/B5/2011 tentang Organisasi Tata Kerja Balai Pendidikan dan Pelatihan Kependudukan dan Keluarga Berencana, sehingga perlu dilakukan perubahan/penyesuaian terhadap Renstra BKKBN tentang Pembangunan Kependudukan dan Keluarga Berencana Nasional Tahun 2010-2014 meliputi penyesuaian untuk beberapa kegiatan prioritas dan indikator kinerjanya.<br />
<br />
Pasca Reformasi Kepala BKKBN telah mengalami beberapa pergantian yaitu pada periode Kabinet Persatuan Indonesia, Kepala BKKBN dirangkap oleh Menteri Negara Pemberdayaan Perempuan yang dijabat oleh Khofifah Indar Parawansa. Setelah itu digantikan oleh Prof. Dr. Yaumil C. Agoes Achir pada tahun 2001 dan meninggal dunia pada akhir 2003 akibat penyakit kanker dan yang kemudian terjadi kekosongan. Pada tanggal 10 November 2003, Kepala Litbangkes Departemen Kesehatan dr. Sumarjati Arjoso, SKM dilantik menjadi Kepala BKKBN oleh Menteri Kesehatan Ahmad Sujudi sampai beliau memasuki masa pensiun pada tahun 2006. Setelah itu digantikan oleh Dr. Sugiri Syarief, MPA yang dilantik sebagai Kepala BKKBN pada tanggal 24 Nopember 2006.<br />
<br />
Sebagai tindak lanjut dari UU 52/2009 tentang Perkembangan Kependudukan dan Pembangunan Keluarha Sejahtera, di mana BKKBN kemudian direstrukturisasi menjadi badan kependudukan, bukan lagi badan koordinasi, maka pada tanggal 27 September 2011 Kepala BKKBN, Dr. dr. Sugiri Syarief, MPA akhirnya dilantik sebagai Kepala Badan Kependudukan dan Keluarga Berencana (BKKBN).<br />
<br />
Pada tanggal 13 Juni 2013 akhirnya Presiden Susilo Bambang Yudhoyono menetapkan mantan Wakil Menteri Pendidikan dan Kebudayaan Prof. Fasli Jalal sebagai Kepala Badan Kependudukan dan Keluarga Berencana Nasional (BKKBN).<ref> [https://www.bkkbn.go.id/pages/sejarah-bkkbn www.bkkbn.go.id: Sejarah BKKBN] </ref><br />
<br />
== Susunan organisasi ==<br />
<br />
BKKBN terdiri atas:<br />
# Kepala;<br />
# Sekretariat Utama;<br />
# Deputi Bidang Pengendalian Penduduk;<br />
# Deputi Bidang Keluarga Berencana dan Kesehatan Reproduksi;<br />
# Deputi Bidang Keluarga Sejahtera dan Pemberdayaan Keluarga;<br />
# Deputi Bidang Advokasi, Penggerakan, dan Informasi;<br />
# Deputi Bidang Pelatihan, Penelitian, dan Pengembangan; dan<br />
# Inspektorat Utama.<ref name="perpres 62 2010"/><br />
<br />
=== Kepala BKKBN ===<br />
<br />
Berikut daftar Kepala BKKBN dari masa ke masa:<br />
# [[Suwardjono Surjaningrat|dr. Suwardjono Surjaningrat]] (1970–1983)<br />
# [[Haryono Suyono|Prof. Dr. Haryono Suyono]] (1983–1998)<br />
# [[Ida Bagus Oka|Prof. Dr. Ida Bagus Oka]] (1998–1999)<br />
# [[Khofifah Indar Parawansa|Dra. Hj. Khofifah Indar Parawansa, M.Si.]] (1999–2001)<br />
# [[Yaumil Agoes Achir|Prof. Dr. Yaumil Agoes Achir]] (2001–2003)<br />
# [[Sumarjati Arjoso|dr. Sumarjati Arjoso, SKM]] (2003–2006)<br />
# [[Sugiri Syarief|dr. Sugiri Syarief, MPA]] (2006–2013)<br />
# [[Fasli Jalal|Prof. dr. Fasli Jalal, Ph.D, Sp.Gk]] (2013–2015)<br />
# [[Surya Chandra Surapaty|dr. Surya Chandra Surapaty, MPH, Ph.D]] (2015–2017)<br />
# [[Sigit Priohutomo|dr. Sigit Priohutomo, MPH]] (2017–2019)<br />
# [[Hasto Wardoyo|dr. Hasto Wardoyo, Sp.OG(K)]] (2019-sekarang)<br />
<br />
== Referensi ==<br />
{{reflist}}<br />
<br />
== Pranala luar ==<br />
* {{id}} [http://www.bkkbn.go.id/ Situs resmi]<br />
<br />
== Artikel Sumber ==<br />
* Wikipedia<br />
<br />
[[Kategori:Profil BKKBN]]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Pos_Pelayanan_Terpadu&diff=1152Pos Pelayanan Terpadu2019-08-20T09:23:57Z<p>Adminwiki: Mengatur pengaturan versi stabil untuk "Pos Pelayanan Terpadu" [Tinjau otomatis: membutuhkan izin &quot;sysop&quot;]</p>
<hr />
<div>'''Pos Pelayanan Keluarga Berencana - Kesehatan Terpadu''' ('''Posyandu''') adalah kegiatan kesehatan dasar yang diselenggarakan dari, oleh dan untuk masyarakat yang dibantu oleh petugas kesehatan. Posyandu merupakan salah satu Upaya Kesehatan Bersumberdaya Masyarakat (UKBM). Jadi, Posyandu merupakan kegiatan swadaya dari masyarakat di bidang kesehatan dengan penanggung jawab kepala desa. A.A. Gde Muninjaya (2002:169) mengatakan: ”Pelayanan kesehatan terpadu (yandu) adalah suatu bentuk keterpaduan pelayanan kesehatan yang dilaksanakan di suatu wilayah kerja Puskesmas. Tempat pelaksanaan pelayanan program terpadu di balai dusun, balai kelurahan, RW, dan sebagainya disebut dengan Pos pelayanan terpadu (Posyandu)”. Konsep Posyandu berkaitan erat dengan keterpaduan. Keterpaduan yang dimaksud meliputi keterpaduan dalam aspek sasaran, aspek lokasi kegiatan, aspek petugas penyelenggara, aspek dana dan lain sebagainya. (Departemen kesehatan, 1987:10).<br />
<br />
Posyandu dimulai terutama untuk melayani balita ([[imunisasi]], timbang berat badan) dan orang lanjut usia ([[Posyandu Lansia]]), dan lahir melalui suatu Surat Keputusan Bersama antara Menteri Dalam Negeri RI ([[Departemen Dalam Negeri Republik Indonesia|Mendagri]]), Menteri Kesehatan ([[Departemen Kesehatan Republik Indonesia|Menkes]]) RI, Kepala [[Badan Koordinasi Keluarga Berencana Nasional]] (BKKBN) dan Ketua Tim Penggerak (TP) [[Pembinaan Kesejahteraan Keluarga]] (PKK) dan dicanangkan pada sekitar tahun [[1986]]. Legitimasi keberadaan Posyandu ini diperkuat kembali melalui Surat Edaran Menteri Dalam Negeri dan Otonomi Daerah tertanggal [[13 Juni]] [[2001]] yang antara lain berisikan “Pedoman Umum Revitalisasi Posyandu” yang antara lain meminta diaktifkannya kembali Kelompok Kerja Operasional (POKJANAL) Posyandu di semua tingkatan administrasi pemerintahan. Penerbitan Surat Edaran ini dilatarbelakangi oleh perubahan lingkungan strategis yang terjadi demikian cepat berbarengan dengan [[krisis moneter]] yang berkepanjangan.<br />
<br />
Posyandu dikembangkan atas prakarsa Presiden [[Soeharto]] pada tahun [[1984]], Posyandu dulu pernah menjadi kebanggaan rakyat. Setiap bulannya, rakyat berbondong-bondong mendatangi Posyandu yang dikelola berbasiskan komunitas. Tenaga sukarelawan kesehatan di Posyandu—yang telah mendapatkan pelatihan dari dinas kesehatan setempat—memberikan panduan kesehatan bagi ibu hamil dan ibu menyusui. Selain itu, Posyandu juga memberi vaksinasi dan makanan suplemen kepada bayi dan balita. Posyandu juga menjadi media deteksi dini kasus-kasus malagizi dan kekurangan gizi pada bayi dan balita.<br />
<br />
== Tujuan Posyandu ==<br />
Menurut [[Depkes]] tujuan diselenggarakan Posyandu adalah untuk:<br />
* Mempercepat penurunan angka kematian bayi, anak balita dan angka kelahiran.<br />
* Mempercepat penerimaan NKKBS.<br />
* Meningkatkan kemampuan masyarakat untuk mengembangkan kegiatan-kegiatan kesehatan dan lainnya yang menunjang, sesuai dengan kebutuhan.<br />
<br />
== Capaian Posyandu ==<br />
[[Survei Demografi dan Kesehatan Indonesia]] (SDKI) 2007 menunjukkan angka kematian ibu melahirkan menurun dari 390 kematian per 100.000 kelahiran pada 1990 menjadi 228 kasus pada 2007. Angka kematian bayi menurun dari 70 kematian per 1.000 bayi lahir pada 1986 menjadi 34 pada 2007. Demikian pula angka kematian balita, yang menurun dari 69 kematian per 1.000 kelahiran pada 1993 menjadi 44 pada 2007. Prestasi tersebut bahkan membuat Honduras mengadopsi konsep Posyandu dan malah mengembangkannya lebih baik daripada Indonesia saat ini.<br />
<br />
Prestasi tersebut menurun setelah reformasi. Sejak 2003 hingga 2007, angka kematian bayi hanya berkurang satu dari 35 kematian per 1.000 kelahiran menjadi hanya 34 pada 2007 (perkembangan paling lambat sejak 2000). Sementara itu, angka kematian balita hanya turun dua, dari 46 kematian per 1.000 kelahiran pada 2000 menjadi hanya 44 pada 2005 (perkembangan paling lambat sejak 2000).<br />
<br />
== Lagu "Aku Anak Sehat" ==<br />
Dalam kampanye untuk memperkenalkan Posyandu kepada masyarakat, sebuah lagu diciptakan oleh [[AT Mahmud]] berjudul "Aku Anak Sehat". Lagu ini menjadi lagu tema [[iklan]] Posyandu di [[televisi]] dan [[radio]]<br />
<br />
== Pranala luar ==<br />
* [http://www.unicef.org/evaldatabase/index_19007.html UNICEF]<br />
* [http://www.gebyarposyandu27.com/ Posyandu 27]<br />
* [http://kms-online.web.id Kartu Menuju Sehat Online]<br />
* [http://soeharto.co/961 Gebrakan Pak Harto Menyehatkan Ibu dan Anak]<br />
<br />
== Artikel Sumber ==<br />
* Wikipedia Artikel<br />
[[Kategori:Kesehatan di Indonesia]]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=865Halaman Utama2019-08-09T06:41:12Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id E-Daring]<br />
* [http://eprints.latbangdjogja.web.id Eprints]<br />
* '''[http://latbangdjogja.web.id Portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
{| width="100%" cellpadding="0" cellspacing="0" style="background:none; border: 1px solid #1188AA;"<br />
! style="background:#E0E8FF" |<center><big>'''''100 ARTIKEL TERBARU'''''</big></center><br />
|-<br />
|<div style="height:200px; overflow:auto; background:white;"> {{Special:Newpages/100}} </div><br />
|}<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=864Halaman Utama2019-08-09T04:25:28Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id E-Daring]<br />
* [http://eprints.latbangdjogja.web.id Eprints]<br />
* '''[http://latbangdjogja.web.id Portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=863Halaman Utama2019-08-09T04:24:26Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id E-Daring]<br />
* '''[http://latbangdjogja.web.id Portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=862Halaman Utama2019-08-09T04:23:41Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka / Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id / E-Daring]<br />
* '''[http://latbangdjogja.web.id / Portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=861Halaman Utama2019-08-09T04:22:53Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Pancanaka]<br />
* {{id}} [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka / Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id/|E-Daring]<br />
* '''[http://latbangdjogja.web.id/|Portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=860Halaman Utama2019-08-09T04:21:31Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id/|E-Daring]<br />
* '''[http://latbangdjogja.web.id/|Portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=859Halaman Utama2019-08-09T04:21:00Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id/|Pelatihan E-Daring]<br />
* '''[http://latbangdjogja.web.id/|Semua Portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=858Halaman Utama2019-08-09T04:19:32Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [http://pancanaka.latbangdjogja.web.id/index.php/pancanaka|Jurnal Pancanaka]<br />
* [http://etraining.latbangdjogja.web.id/|Pelatihan E-Daring]<br />
* '''[http://latbangdjogja.web.id/|Semua portal]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Halaman_Utama&diff=857Halaman Utama2019-08-09T04:16:46Z<p>Adminwiki: </p>
<hr />
<div><div id="atas"><br />
{| style="width:100%; margin-bottom:2px;"<br />
| class="logoWikipedia" style="background-repeat:no-repeat; background-position:-40px -15px; width:100%; border:1px solid #a7d7f9; vertical-align:top; {{border-radius|10px}}" |<br />
{| style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"<br />
|-<br />
| style="height:3em; padding-left:155px;" |<div style="font-size:185%;">Selamat datang di Wiki BKKBN Jogja,</div><br />
<div style="margin-left:8px"> Sebuah platform kolaborasi dan dokumentasi yang dibangun oleh BKKBN Jogja.</div><br />
|style="padding: 1em; text-align: right; line-height: 1.3;" |'''[[Istimewa:Statistik|{{NUMBEROFARTICLES}} artikel]]''' dalam '''[[bahasa Indonesia]]'''.<br />
<div class="hlist"><br />
<br/><br />
</div><br />
|-<br />
| colspan="2" class="hlist" style="text-align: center;"|<br />
* [[Portal:Biografi|Jurnal Pancanaka]]<br />
* [[Portal:Geografi|Pelatihan E-Daring]]<br />
* '''[[Portal:Daftar portal|Semua portal]]'''<br />
|}<br />
|}<br />
</div><br />
[[File:banner_wiki_bkkbn.png|800px]]<br />
<br />
== <strong>MediaWiki Perwakilan BKKBN D.I.Yogyakarta</strong> ==<br />
MediaWiki BKKBN Yogyakarta adalah platform kolaborasi dan dokumentasi yang diberikan kepada Anda. MediaWiki ini menyediakan dokumentasi kolaboratif untuk panduan dokumentasi dan riset BKKBN. Kami sangat mendorong masyarakat, staf/karyawan, petugas lapangan dan staf pengajar untuk membuat dan / atau memodifikasi halaman-halaman ini, terutama pada aplikasi dan alat yang Anda punya dalam pengalaman mengenai dokumentasi ini.<br />
<br />
Konsultasikan [https://www.mediawiki.org/wiki/Help:Contents Panduan Pengguna] untuk cara penggunaan perangkat lunak wiki ini.<br />
<br />
== Memulai ==<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Daftar pengaturan konfigurasi]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ Pertanyaan yang sering diajukan mengenai MediaWiki]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Milis rilis MediaWiki]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Pelokalan MediaWiki untuk bahasa Anda]<br />
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Belajar bagaimana menghadapi spam di wiki lokal]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Border-radius&diff=856Templat:Border-radius2019-08-09T04:01:04Z<p>Adminwiki: 1 revisi diimpor: Templat:Border-radius</p>
<hr />
<div><includeonly>-moz-border-radius: {{{1|8px}}}; -webkit-border-radius: {{{1|8px}}}; border-radius: {{{1|8px}}};</includeonly><noinclude><br />
{{documentation|content=<br />
{{high-risk|325000+}}<br />
}}<br />
</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Hasto_Wardoyo&diff=854Hasto Wardoyo2019-08-09T03:58:36Z<p>Adminwiki: </p>
<hr />
<div>{{Infobox Officeholder<br />
|honorific-prefix = Dr.<br />
|honorific-suffix = ,SP.OG.(K)<br />
|name = Hasto Wardoyo<br />{{jav|ꦲꦱ꧀ꦠꦮꦂꦢꦪ}}<br />
|image = Hasto Wardoyo, 2016.jpg<br />
|imagesize = 200px<br />
|caption = Bupati Kulon Progo, Hasto Wardoyo <br />
|office1 = Kepala Badan Kependudukan dan Keluarga Berencana Nasional<br />
|order1 = Ke-10<br />
|term_start1 = 1 Juli 2019<br />
|term_end1 = <br />
|predecessor1 = [[Sigit Priohutomo]]<br />
|successor1 = <br />
|president1 = [[Joko Widodo]]<br />
|office2 = Bupati Kulon Progo <br />
|order2 = 9<br />
|term_start2 = 2011<br />
|term_end2 = 28 Juni 2019<br />
|predecessor2 = [[Toyo Santoso Dipo]]<br />
|successor2 = [[Sutedjo]]<br />
|lieutenant2 = [[Sutedjo]]<br />
|appointed =<br />
|birth_date = [[26 Maret]] [[1964]]<br />
|birth_place = {{negara|Indonesia}} [[Kulon Progo]], [[Daerah Istimewa Yogyakarta]]<br />
|death_date = <br />
|death_place = <br />
|nationality = {{negara|Indonesia}} [[Indonesia]]<br />
|party = [[Partai Demokrasi Indonesia Perjuangan]]<br />
|spouse = Dwikisworo Setyowireni<br />
|relations = <br />
|children = <br />
|alma_mater = [[Universitas Gadjah Mada]]<br />
|president2 = [[Susilo Bambang Yudhoyono]]{{br}}[[Joko Widodo]]<br />
|governor2 = [[Hamengkubuwana X]]<br />
|monarch2 = [[Hamengkubuwana X]]<br />
|occupation = <br />
|profession = Dokter<br />
|signature = <br />
|website = http://www.dokterhasto.com <br />
|footnotes = <br />
}}<br />
'''Dr. Hasto Wardoyo, SP. OG.(K)''' ({{lahirmati|[[Kulon Progo]], [[Daerah Istimewa Yogyakarta]]|30|7|1964}}) adalah [[bupati]] [[Kulon Progo]] yang menjabat pada periode [[2011]]-[[2016]] dan periode 2016-2019 sebelum diangkat Presiden [[Joko Widodo]] menjadi Kepala [[Badan Kependudukan dan Keluarga Berencana Nasional|Badan Koordinasi Keluarga Berencana Nasional (BKKBN)]] pada 1 Juli 2019. Sebelum menjadi Bupati, Hasto Wardoyo dikenal sebagai dokter dan pengusaha bidang jasa kesehatan.<br />
<br />
== Riwayat Hidup ==<br />
<br />
=== Bupati Kulon Progo ===<br />
Pada Pemilihan Kepala Daerah Langsung tahun 2011, Ia bersama pasangannya [[Sutedjo]] yang didukung [[PDIP]], [[PAN]], dan [[PPP]] berhasil memenangkan [[pilkada]] [[Kulon Progo]] dengan perolehan suara sebesar 46.29 persen dari jumlah pemilih. Pasangan ini mengalahkan tiga pasangan lainnya yakni Sarwidi - Hartikah (5.83%) yang didukung PKB, Mulyono - A. Sumiyanto (29.15%) yang didukung gabungan [[Partai Demokrat]] dan [[PKS]] dan pasangan Suprapta - Soim (18.74%) yang diusung [[Golkar]], [[Gerindra]], [[PKPB]], [[Partai Demokrasi Kebangsaan|PDK]] dan [[PKNU]].<ref>[http://scriptintermedia.com/view.php?id=6514 Hasil Real Quick Count Pilkada Kulon Progo, Jogja 2011]</ref>. Ia dilantik sebagai Bupati Kulonprogo pada [[24 Agustus]] [[2013]].<br />
<br />
==== Kebijakan ====<br />
Hasto Wardoyo terkenal karena berbagai inovasinya dalam memimpin Kulonprogo. Pada tahun 2012, untuk mengangkat perekonomian Kabupaten Kulonprogo, Hasto Wardoyo meluncurkan program "Bela & Beli Kulonprogo".Gerakan dimulai dengan mengeluarkan kebijakan yang mewajibkan pelajar dan PNS di sana mengenakan seragam batik gebleg renteng, batik khas Kulonprogo, pada hari tertentu. Ternyata, dengan jumlah 80.000 pelajar dan 8.000 PNS, kebijakan ini mampu mendongkrak industri batik lokal. Sentra kerajinan batik tumbuh pesat, dari cuma 2 menjadi 50-an.(?)<br />
<br />
Selain itu, Hasto mewajibkan setiap PNS membeli beras produksi petani Kulonprogo, 10 kilogram per bulan. Bahkan beras raskin yang dikelola Bulog setempat, kini menggunakan beras produksi petani Kulonprogo. Hasto juga membuat [[PDAM]] mengembangkan usaha, dengan memprodusi air kemasan merk AirKu (Air Kulonprogo). AirKu kini menguasai seperempat ceruk pasar air kemasan di Kulonprogo. Berbagai kebijakan lewat program Bela dan Beli, ternyata mampu menurunkan angka kemisikinan di Kulonprogo, dari 22,54 persen pada 2013 menjadi 16,74 persen pada 2014 (data [[Badan Perencanaan Pembangunan Daerah|Bappeda]]).<ref>http://pusakarakyat.com/2015/12/16/teladan-bangsa-dr-h-hasto-wardoyo-sp-ogk/</ref><br />
<br />
== Pendidikan ==<br />
<br />
* SD Negeri Sermo III, lulus Tahun 1976<br />
* [[SMP Negeri 1 Kokap]], lulus Tahun 1980<br />
* [[SMA Negeri 1 Wates]]<ref>{{Cite web|url=https://arsip.koranbernas.id/ulang-tahun-sma-n-1-wates-meriah/|title=Ulang Tahun SMA N 1 Wates Meriah {{!}} Koran Bernas|language=id-ID|access-date=2019-07-17}}</ref>, lulus Tahun 1983<br />
* S1 Fakultas Kedokteran [[Universitas Gadjah Mada|UGM]], lulus Tahun 1989<br />
* Spesialis I Fakultas Kedokteran UGM, lulus Tahun 2000<br />
* Spesialis II Fakultas Kedokteran UGM, lulus Tahun 2006<br />
<br />
== Tanda Jasa/Penghargaan ==<br />
<br />
* Dokter Teladan, 1992, Presiden RI<br />
* Satya Lencana Bidang KB, 2010, Presiden RI<br />
<br />
== Riwayat Pekerjaan ==<br />
<br />
* Kepala Puskesmas Kahala,Kab. [[Kabupaten Kutai Kartanegara|Kutai]], [[Kalimantan Timur]],1990<br />
* Kepala Puskesmas Melak,Kab.[[Kabupaten Kutai Kartanegara|Kutai]], [[Kalimantan Timur]],1991<br />
* Kepala Puskesmas Lok Tuan Bontang Utara,Kab.Kutai,Kalimantan Timur,1994<br />
* [[Rumah Sakit Umum Pusat Dr Sardjito|RSUP Dr.Sardjito]], sejak 1995-2011 (Staf hingga Kepala Instansi Kesehatan Reproduksi & Bayi Tabung)<br />
* Dosen Fakultas Kedokteran UGM, 2000-2011<br />
* Bupati Kulon Progo, Tahun 2011 - 30 Juni 2019<br />
* Kepala BKKBN, 1 Juli 2019 - Sekarang<br />
<br />
== Riwayat Organisasi ==<br />
<br />
* OSIS [[SMA Negeri 1 Wates]] Tahun 1982 – 1983<br />
* Senat Mahasiswa FK UGM Tahun 1985-1987<br />
* Ketua [[Komite Nasional Pemuda Indonesia|KNPI]] Kulonprogo Tahun 1990-1992<br />
* Persatuan Obstertri Genekologi Indonesia Cabang Yogyakarta Tahun 2004- 2011<br />
* PERMI cabang Yogyakarta Tahun 2006-2011<br />
* HIFERIPOGI Cabang Yogyakarta Tahun 2006-2011<br />
* HIFERIPOGI Tahun 2007 – 2011<br />
* Tim P2KB POGI Cabang Yogyakarta Tahun 2006 - 2009<br />
<br />
== Referensi ==<br />
<br />
{{reflist}}</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Hasto_Wardoyo&diff=853Hasto Wardoyo2019-08-09T03:54:02Z<p>Adminwiki: ←Membuat halaman berisi '{{Infobox Officeholder |honorific-prefix = Dr. |honorific-suffix = ,SP.OG.(K) |name = Hasto Wardoyo<br />{{jav|ꦲꦱ꧀ꦠꦮꦂꦢꦪ}} |image...'</p>
<hr />
<div>{{Infobox Officeholder<br />
|honorific-prefix = Dr.<br />
|honorific-suffix = ,SP.OG.(K)<br />
|name = Hasto Wardoyo<br />{{jav|ꦲꦱ꧀ꦠꦮꦂꦢꦪ}}<br />
|image = Hasto Wardoyo, 2016.jpg<br />
|imagesize = 200px<br />
|caption = Bupati Kulon Progo, Hasto Wardoyo <br />
|office1 = Kepala [[Badan Kependudukan dan Keluarga Berencana Nasional]]<br />
|order1 = Ke-10<br />
|term_start1 = 1 Juli 2019<br />
|term_end1 = <br />
|predecessor1 = [[Sigit Priohutomo]]<br />
|successor1 = <br />
|president1 = [[Joko Widodo]]<br />
|office2 = [[Daftar Bupati Kulon Progo|Bupati Kulon Progo]] <br />
|order2 = 9<br />
|term_start2 = 2011<br />
|term_end2 = 28 Juni 2019<br />
|predecessor2 = [[Toyo Santoso Dipo]]<br />
|successor2 = [[Sutedjo]]<br />
|lieutenant2 = [[Sutedjo]]<br />
|appointed =<br />
|birth_date = [[26 Maret]] [[1964]]<br />
|birth_place = {{negara|Indonesia}} [[Kulon Progo]], [[Daerah Istimewa Yogyakarta]]<br />
|death_date = <br />
|death_place = <br />
|nationality = {{negara|Indonesia}} [[Indonesia]]<br />
|party = [[Partai Demokrasi Indonesia Perjuangan]]<br />
|spouse = Dwikisworo Setyowireni<br />
|relations = <br />
|children = <br />
|alma_mater = [[Universitas Gadjah Mada]]<br />
|president2 = [[Susilo Bambang Yudhoyono]]{{br}}[[Joko Widodo]]<br />
|governor2 = [[Hamengkubuwana X]]<br />
|monarch2 = [[Hamengkubuwana X]]<br />
|occupation = <br />
|profession = Dokter<br />
|signature = <br />
|website = http://www.dokterhasto.com <br />
|footnotes = <br />
}}<br />
'''Dr. Hasto Wardoyo, SP. OG.(K)''' ({{lahirmati|[[Kulon Progo]], [[Daerah Istimewa Yogyakarta]]|30|7|1964}}) adalah [[bupati]] [[Kulon Progo]] yang menjabat pada periode [[2011]]-[[2016]] dan periode 2016-2019 sebelum diangkat Presiden [[Joko Widodo]] menjadi Kepala [[Badan Kependudukan dan Keluarga Berencana Nasional|Badan Koordinasi Keluarga Berencana Nasional (BKKBN)]] pada 1 Juli 2019. Sebelum menjadi Bupati, Hasto Wardoyo dikenal sebagai dokter dan pengusaha bidang jasa kesehatan.<br />
<br />
== Riwayat Hidup ==<br />
<br />
=== Bupati Kulon Progo ===<br />
Pada Pemilihan Kepala Daerah Langsung tahun 2011, Ia bersama pasangannya [[Sutedjo]] yang didukung [[PDIP]], [[PAN]], dan [[PPP]] berhasil memenangkan [[pilkada]] [[Kulon Progo]] dengan perolehan suara sebesar 46.29 persen dari jumlah pemilih. Pasangan ini mengalahkan tiga pasangan lainnya yakni Sarwidi - Hartikah (5.83%) yang didukung PKB, Mulyono - A. Sumiyanto (29.15%) yang didukung gabungan [[Partai Demokrat]] dan [[PKS]] dan pasangan Suprapta - Soim (18.74%) yang diusung [[Golkar]], [[Gerindra]], [[PKPB]], [[Partai Demokrasi Kebangsaan|PDK]] dan [[PKNU]].<ref>[http://scriptintermedia.com/view.php?id=6514 Hasil Real Quick Count Pilkada Kulon Progo, Jogja 2011]</ref>. Ia dilantik sebagai Bupati Kulonprogo pada [[24 Agustus]] [[2013]].<br />
<br />
==== Kebijakan ====<br />
Hasto Wardoyo terkenal karena berbagai inovasinya dalam memimpin Kulonprogo. Pada tahun 2012, untuk mengangkat perekonomian Kabupaten Kulonprogo, Hasto Wardoyo meluncurkan program "Bela & Beli Kulonprogo".Gerakan dimulai dengan mengeluarkan kebijakan yang mewajibkan pelajar dan PNS di sana mengenakan seragam batik gebleg renteng, batik khas Kulonprogo, pada hari tertentu. Ternyata, dengan jumlah 80.000 pelajar dan 8.000 PNS, kebijakan ini mampu mendongkrak industri batik lokal. Sentra kerajinan batik tumbuh pesat, dari cuma 2 menjadi 50-an.(?)<br />
<br />
Selain itu, Hasto mewajibkan setiap PNS membeli beras produksi petani Kulonprogo, 10 kilogram per bulan. Bahkan beras raskin yang dikelola Bulog setempat, kini menggunakan beras produksi petani Kulonprogo. Hasto juga membuat [[PDAM]] mengembangkan usaha, dengan memprodusi air kemasan merk AirKu (Air Kulonprogo). AirKu kini menguasai seperempat ceruk pasar air kemasan di Kulonprogo. Berbagai kebijakan lewat program Bela dan Beli, ternyata mampu menurunkan angka kemisikinan di Kulonprogo, dari 22,54 persen pada 2013 menjadi 16,74 persen pada 2014 (data [[Badan Perencanaan Pembangunan Daerah|Bappeda]]).<ref>http://pusakarakyat.com/2015/12/16/teladan-bangsa-dr-h-hasto-wardoyo-sp-ogk/</ref><br />
<br />
== Pendidikan ==<br />
<br />
* SD Negeri Sermo III, lulus Tahun 1976<br />
* [[SMP Negeri 1 Kokap]], lulus Tahun 1980<br />
* [[SMA Negeri 1 Wates]]<ref>{{Cite web|url=https://arsip.koranbernas.id/ulang-tahun-sma-n-1-wates-meriah/|title=Ulang Tahun SMA N 1 Wates Meriah {{!}} Koran Bernas|language=id-ID|access-date=2019-07-17}}</ref>, lulus Tahun 1983<br />
* S1 Fakultas Kedokteran [[Universitas Gadjah Mada|UGM]], lulus Tahun 1989<br />
* Spesialis I Fakultas Kedokteran UGM, lulus Tahun 2000<br />
* Spesialis II Fakultas Kedokteran UGM, lulus Tahun 2006<br />
<br />
== Tanda Jasa/Penghargaan ==<br />
<br />
* Dokter Teladan, 1992, Presiden RI<br />
* Satya Lencana Bidang KB, 2010, Presiden RI<br />
<br />
== Riwayat Pekerjaan ==<br />
<br />
* Kepala Puskesmas Kahala,Kab. [[Kabupaten Kutai Kartanegara|Kutai]], [[Kalimantan Timur]],1990<br />
* Kepala Puskesmas Melak,Kab.[[Kabupaten Kutai Kartanegara|Kutai]], [[Kalimantan Timur]],1991<br />
* Kepala Puskesmas Lok Tuan Bontang Utara,Kab.Kutai,Kalimantan Timur,1994<br />
* [[Rumah Sakit Umum Pusat Dr Sardjito|RSUP Dr.Sardjito]], sejak 1995-2011 (Staf hingga Kepala Instansi Kesehatan Reproduksi & Bayi Tabung)<br />
* Dosen Fakultas Kedokteran UGM, 2000-2011<br />
* Bupati Kulon Progo, Tahun 2011 - 30 Juni 2019<br />
* Kepala BKKBN, 1 Juli 2019 - Sekarang<br />
<br />
== Riwayat Organisasi ==<br />
<br />
* OSIS [[SMA Negeri 1 Wates]] Tahun 1982 – 1983<br />
* Senat Mahasiswa FK UGM Tahun 1985-1987<br />
* Ketua [[Komite Nasional Pemuda Indonesia|KNPI]] Kulonprogo Tahun 1990-1992<br />
* Persatuan Obstertri Genekologi Indonesia Cabang Yogyakarta Tahun 2004- 2011<br />
* PERMI cabang Yogyakarta Tahun 2006-2011<br />
* HIFERIPOGI Cabang Yogyakarta Tahun 2006-2011<br />
* HIFERIPOGI Tahun 2007 – 2011<br />
* Tim P2KB POGI Cabang Yogyakarta Tahun 2006 - 2009<br />
<br />
== Referensi ==<br />
<br />
{{reflist}}</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Infobox_officeholder&diff=852Templat:Infobox officeholder2019-08-09T03:52:03Z<p>Adminwiki: ←Membuat halaman berisi '<includeonly>{{infobox | bodyclass = vcard {{{bodyclass|}}} | bodystyle = {{#if:{{{mainwidth|}}}|width: {{{mainwidth}}}}} | child = {{lc:{{{embed}}}}} | abovestyle =...'</p>
<hr />
<div><includeonly>{{infobox<br />
| bodyclass = vcard {{{bodyclass|}}}<br />
| bodystyle = {{#if:{{{mainwidth|}}}|width: {{{mainwidth}}}}}<br />
| child = {{lc:{{{embed}}}}}<br />
<br />
| abovestyle = font-size: 130%;<br />
| above = {{Br separated entries<br />
| 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|}}}}}}}}}|<span class="honorific-prefix" style="font-size: 77%; font-weight: normal;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix}}}}}}}}}</span>}}<br />
| 2 = <span class="fn">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span><br />
| 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|}}}}}}}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix}}}}}}}}}</span>}}<br />
}}<br />
<br />
| subheaderstyle = font-size:125%; font-weight:bold;<br />
| subheader = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}}}<br />
<br />
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{width|{{{imagesize|{{{image_size|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}<br />
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image name|}}}|size={{{width|{{{imagesize|{{{image_size|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}<br />
| image3 = {{#invoke:InfoboxImage|InfoboxImage|image={{{smallimage|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}<br />
| caption{{#if:{{{smallimage|}}}|3|{{#if:{{{image name|}}}|2}}}} = {{{caption|}}}<br />
<br />
| headerstyle = {{#ifeq:{{lc:{{{embed}}}}}|yes|background:#eee|background:lavender}}<br />
<br />
| data1 = <br />
{{#if:{{{speaker|}}}|<br />
{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname2|}}}<br />
| 1namedata = {{{1namedata2|}}}<br />
| 2blankname = {{{2blankname2|}}}<br />
| 2namedata = {{{2namedata2|}}}<br />
| 3blankname = {{{3blankname2|}}}<br />
| 3namedata = {{{3namedata2|}}}<br />
| 4blankname = {{{4blankname2|}}}<br />
| 4namedata = {{{4namedata2|}}}<br />
| 5blankname = {{{5blankname2|}}}<br />
| 5namedata = {{{5namedata2|}}}<br />
| alongside = {{{alongside2|}}}<br />
| ambassador_from = {{{ambassador_from2|}}}<br />
| appointer = {{#if: {{{appointer2|}}} | {{{appointer2}}} | {{{appointed2|}}} }}<br />
| assembly = {{{assembly2|}}}<br />
| chancellor = {{{chancellor2|}}}<br />
| co-leader = {{{co-leader2|}}}<br />
| constituency_{{#if:{{{constituency_AM2|}}}|AM|MP}} = {{#if: {{{constituency_AM2|}}} | {{{constituency_AM2}}} | {{{constituency_MP2|}}} }}<br />
| constituency = {{{constituency2|}}}<br />
| convocation = {{{convocation2|}}}<br />
| country = {{{country2|}}}<br />
| deputy = {{{deputy2|}}}<br />
| district = {{{district2|}}}<br />
| firstminister = {{{firstminister2|}}}<br />
| governor-general = {{{governor-general2|}}}<br />
| governor_general = {{{governor_general2|}}}<br />
| governor = {{{governor2|}}}<br />
| jr/sr = {{{jr/sr2|}}}<br />
| jr/sr and state = {{{jr/sr and state2|}}}<br />
| leader = {{{leader2|}}}<br />
| legislature = {{{legislature2|}}}<br />
| lieutenant_governor = {{{lieutenant_governor2|}}}<br />
| lieutenant = {{{lieutenant2|}}}<br />
| majority_leader = {{#if: {{{majorityleader2|}}} | {{{majorityleader2}}} | {{{majority_leader2|}}} }}<br />
| minister_from = {{{minister_from2|}}}<br />
| minority_floor_leader = {{{minority_floor_leader2|}}}<br />
| majority_floor_leader = {{{majority_floor_leader2|}}}<br />
| majority = {{{majority2|}}}<br />
| minister = {{{minister2|}}}<br />
| minority_leader = {{#if: {{{minorityleader2|}}} | {{{minorityleader2}}} | {{{minority_leader2|}}} }}<br />
| monarch = {{{monarch2|}}}<br />
| nominator = {{{nominator2|}}}<br />
| office = {{{office2|}}}<br />
| order = {{{order2|}}}<br />
| parliament = {{{parliament2|}}}<br />
| parliamentarygroup = {{{parliamentarygroup2|}}}<br />
| predecessor = {{{predecessor2|}}}<br />
| preceding = {{{preceding2|}}}<br />
| preceded = {{{preceded2|}}}<br />
| premier = {{{premier2|}}}<br />
| president = {{{president2|}}}<br />
| primeminister = {{{primeminister2|}}}<br />
| riding = {{{riding2|}}}<br />
| speaker = {{{speaker|}}}<br />
| speaker_office = {{{speaker_office|}}}<br />
| state_assembly = {{{state_assembly|}}}<br />
| state_delegate = {{{state_delegate|}}}<br />
| state_house = {{{state_house|}}}<br />
| state_legislature = {{{state_legislature|}}}<br />
| state_senate = {{{state_senate|}}}<br />
| state = {{{state|}}}<br />
| succeeded = {{{succeeded2|}}}<br />
| succeeding = {{{succeeding2|}}}<br />
| successor = {{{successor2|}}}<br />
| taoiseach = {{{taoiseach2|}}}<br />
| termlabel = {{{term_label2|{{{termlabel2|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend2|}}}|{{{termend2}}}|{{{term_end2|}}}}}<br />
| termstart = {{#if:{{{termstart2|}}}|{{{termstart2}}}|{{{term_start2|}}}}}<br />
| term = {{{term2|}}}<br />
| title = {{{title2|}}}<br />
| vicegovernor = {{{vicegovernor2|}}}<br />
| vicepresident = {{{vicepresident2|}}}<br />
| vicepremier = {{{vicepremier2|}}}<br />
| viceprimeminister = {{{viceprimeminister2|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term|}}}<br />
}}}}}}<!--<br />
-->{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname|}}}<br />
| 1namedata = {{{1namedata|}}}<br />
| 2blankname = {{{2blankname|}}}<br />
| 2namedata = {{{2namedata|}}}<br />
| 3blankname = {{{3blankname|}}}<br />
| 3namedata = {{{3namedata|}}}<br />
| 4blankname = {{{4blankname|}}}<br />
| 4namedata = {{{4namedata|}}}<br />
| 5blankname = {{{5blankname|}}}<br />
| 5namedata = {{{5namedata|}}}<br />
| alongside = {{{alongside|}}}<br />
| ambassador_from = {{{ambassador_from|}}}<br />
| appointer = {{#if: {{{appointer|}}} | {{{appointer}}} | {{{appointed|}}} }}<br />
| assembly = {{{assembly|}}}<br />
| candidate = {{{candidate|}}}<br />
| chancellor = {{{chancellor|}}}<br />
| co-leader = {{{co-leader|}}}<br />
| constituency_{{#if:{{{constituency_AM|}}}|AM|MP}} = {{#if: {{{constituency_AM|}}} | {{{constituency_AM}}} | {{{constituency_MP|}}} }}<br />
| constituency = {{{constituency|}}}<br />
| convocation = {{{convocation|}}}<br />
| country = {{{country|}}}<br />
| deputy = {{{deputy|}}}<br />
| district = {{{district|}}}<br />
| election_date = {{{election_date|}}}<br />
| firstminister = {{{firstminister|}}}<br />
| governor-general = {{{governor-general|}}}<br />
| governor_general = {{{governor_general|}}}<br />
| governor = {{{governor|}}}<br />
| incumbent = {{{incumbent|}}}<br />
| jr/sr = {{{jr/sr|}}}<br />
| jr/sr and state = {{{jr/sr and state|}}}<br />
| leader = {{{leader|}}}<br />
| legislature = {{{legislature|}}}<br />
| lieutenant_governor = {{{lieutenant_governor|}}}<br />
| lieutenant = {{{lieutenant|}}}<br />
| majority_leader = {{#if: {{{majorityleader|}}} | {{{majorityleader}}} | {{{majority_leader|}}} }}<br />
| majority = {{{majority|}}}<br />
| minister = {{{minister|}}}<br />
| minister_from = {{{minister_from|}}}<br />
| minority_floor_leader = {{{minority_floor_leader|}}}<br />
| majority_floor_leader = {{{majority_floor_leader|}}}<br />
| minority_leader = {{#if: {{{minorityleader|}}} | {{{minorityleader}}} | {{{minority_leader|}}} }}<br />
| monarch = {{{monarch|}}}<br />
| nominator = {{{nominator|}}}<br />
| nominee = {{{nominee|}}}<br />
| office = {{{office|}}}<br />
| opponent = {{{opponent|}}}<br />
| order = {{{order|}}}<br />
| parliament = {{{parliament|}}}<br />
| parliamentarygroup = {{{parliamentarygroup|}}}<br />
| party_election = {{{party_election|}}}<br />
| predecessor = {{{predecessor|}}}<br />
| preceding = {{{preceding|}}}<br />
| preceded = {{{preceded|}}}<br />
| premier = {{{premier|}}}<br />
| president = {{{president|}}}<br />
| primeminister = {{{primeminister|}}}<br />
| riding = {{{riding|}}}<br />
| runningmate = {{{runningmate|}}}<br />
| state_assembly = {{{state_assembly|}}}<br />
| state_delegate = {{{state_delegate|}}}<br />
| state_house = {{{state_house|}}}<br />
| state_legislature = {{{state_legislature|}}}<br />
| state_senate = {{{state_senate|}}}<br />
| state = {{{state|}}}<br />
| succeeded = {{{succeeded|}}}<br />
| succeeding = {{{succeeding|}}}<br />
| successor = {{{successor|}}}<br />
| taoiseach = {{{taoiseach|}}}<br />
| termlabel = {{{term_label|{{{termlabel|Masa jabatan}}}}}}<br />
| termend = {{#if: {{{termend|}}} | {{{termend}}} | {{{term_end|}}} }}<br />
| termstart = {{#if: {{{termstart|}}} | {{{termstart}}} | {{{term_start|}}} }}<br />
| term = {{{term|}}}<br />
| title = {{{title|}}}<br />
| vicegovernor = {{{vicegovernor|}}}<br />
| vicepresident = {{{vicepresident|}}}<br />
| vicepremier = {{{vicepremier|}}}<br />
| viceprimeminister = {{{viceprimeminister|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term|}}}<br />
}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname1|}}}<br />
| 1namedata = {{{1namedata1|}}}<br />
| 2blankname = {{{2blankname1|}}}<br />
| 2namedata = {{{2namedata1|}}}<br />
| 3blankname = {{{3blankname1|}}}<br />
| 3namedata = {{{3namedata1|}}}<br />
| 4blankname = {{{4blankname1|}}}<br />
| 4namedata = {{{4namedata1|}}}<br />
| 5blankname = {{{5blankname1|}}}<br />
| 5namedata = {{{5namedata1|}}}<br />
| alongside = {{{alongside1|}}}<br />
| ambassador_from = {{{ambassador_from1|}}}<br />
| appointer = {{#if: {{{appointer1|}}} | {{{appointer1}}} | {{{appointed1|}}} }}<br />
| assembly = {{{assembly1|}}}<br />
| chancellor = {{{chancellor1|}}}<br />
| co-leader = {{{co-leader1|}}}<br />
| constituency_{{#if:{{{constituency_AM1|}}}|AM|MP}} = {{#if: {{{constituency_AM1|}}} | {{{constituency_AM1}}} | {{{constituency_MP1|}}} }}<br />
| constituency = {{{constituency1|}}}<br />
| convocation = {{{convocation1|}}}<br />
| country = {{{country1|}}}<br />
| deputy = {{{deputy1|}}}<br />
| district = {{{district1|}}}<br />
| firstminister = {{{firstminister1|}}}<br />
| governor-general = {{{governor-general1|}}}<br />
| governor_general = {{{governor_general1|}}}<br />
| governor = {{{governor1|}}}<br />
| jr/sr = {{{jr/sr1|}}}<br />
| jr/sr and state = {{{jr/sr and state1|}}}<br />
| leader = {{{leader1|}}}<br />
| legislature = {{{legislature1|}}}<br />
| lieutenant_governor = {{{lieutenant_governor1|}}}<br />
| lieutenant = {{{lieutenant1|}}}<br />
| minority_floor_leader = {{{minority_floor_leader1|}}}<br />
| minister_from = {{{minister_from1|}}}<br />
| majority_floor_leader = {{{majority_floor_leader1|}}}<br />
| majority_leader = {{#if: {{{majorityleader1|}}} | {{{majorityleader1}}} | {{{majority_leader1|}}} }}<br />
| majority = {{{majority1|}}}<br />
| minister = {{{minister1|}}}<br />
| minority_leader = {{#if: {{{minorityleader1|}}} | {{{minorityleader1}}} | {{{minority_leader1|}}} }}<br />
| monarch = {{{monarch1|}}}<br />
| nominator = {{{nominator1|}}}<br />
| office = {{{office1|}}}<br />
| order = {{{order1|}}}<br />
| parliament = {{{parliament1|}}}<br />
| parliamentarygroup = {{{parliamentarygroup1|}}}<br />
| predecessor = {{{predecessor1|}}}<br />
| preceding = {{{preceding1|}}}<br />
| preceded = {{{preceded1|}}}<br />
| premier = {{{premier1|}}}<br />
| president = {{{president1|}}}<br />
| primeminister = {{{primeminister1|}}}<br />
| riding = {{{riding1|}}}<br />
| state_assembly = {{{state_assembly1|}}}<br />
| state_delegate = {{{state_delegate1|}}}<br />
| state_house = {{{state_house1|}}}<br />
| state_legislature = {{{state_legislature1|}}}<br />
| state_senate = {{{state_senate1|}}}<br />
| state = {{{state1|}}}<br />
| succeeded = {{{succeeded1|}}}<br />
| succeeding = {{{succeeding1|}}}<br />
| successor = {{{successor1|}}}<br />
| taoiseach = {{{taoiseach1|}}}<br />
| termlabel = {{{term_label1|{{{termlabel1|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend1|}}}|{{{termend1}}}|{{{term_end1|}}}}}<br />
| termstart = {{#if:{{{termstart1|}}}|{{{termstart1}}}|{{{term_start1|}}}}}<br />
| term = {{{term1|}}}<br />
| title = {{{title1|}}}<br />
| vicegovernor = {{{vicegovernor1|}}}<br />
| vicepresident = {{{vicepresident1|}}}<br />
| vicepremier = {{{vicepremier1|}}}<br />
| viceprimeminister = {{{viceprimeminister1|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term1|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{#if:{{{speaker|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname2|}}}<br />
| 1namedata = {{{1namedata2|}}}<br />
| 2blankname = {{{2blankname2|}}}<br />
| 2namedata = {{{2namedata2|}}}<br />
| 3blankname = {{{3blankname2|}}}<br />
| 3namedata = {{{3namedata2|}}}<br />
| 4blankname = {{{4blankname2|}}}<br />
| 4namedata = {{{4namedata2|}}}<br />
| 5blankname = {{{5blankname2|}}}<br />
| 5namedata = {{{5namedata2|}}}<br />
| alongside = {{{alongside2|}}}<br />
| ambassador_from = {{{ambassador_from2|}}}<br />
| appointer = {{#if: {{{appointer2|}}} | {{{appointer2}}} | {{{appointed2|}}} }}<br />
| assembly = {{{assembly2|}}}<br />
| chancellor = {{{chancellor2|}}}<br />
| co-leader = {{{co-leader2|}}}<br />
| constituency_{{#if:{{{constituency_AM2|}}}|AM|MP}} = {{#if: {{{constituency_AM2|}}} | {{{constituency_AM2}}} | {{{constituency_MP2|}}} }}<br />
| constituency = {{{constituency2|}}}<br />
| convocation = {{{convocation2|}}}<br />
| country = {{{country2|}}}<br />
| deputy = {{{deputy2|}}}<br />
| district = {{{district2|}}}<br />
| firstminister = {{{firstminister2|}}}<br />
| governor-general = {{{governor-general2|}}}<br />
| governor_general = {{{governor_general2|}}}<br />
| governor = {{{governor2|}}}<br />
| jr/sr = {{{jr/sr2|}}}<br />
| jr/sr and state = {{{jr/sr and state2|}}}<br />
| leader = {{{leader2|}}}<br />
| legislature = {{{legislature2|}}}<br />
| lieutenant_governor = {{{lieutenant_governor2|}}}<br />
| lieutenant = {{{lieutenant2|}}}<br />
| majority_leader = {{#if: {{{majorityleader2|}}} | {{{majorityleader2}}} | {{{majority_leader2|}}} }}<br />
| minister_from = {{{minister_from2|}}}<br />
| minority_floor_leader = {{{minority_floor_leader2|}}}<br />
| majority_floor_leader = {{{majority_floor_leader2|}}}<br />
| majority = {{{majority2|}}}<br />
| minister = {{{minister2|}}}<br />
| minority_leader = {{#if: {{{minorityleader2|}}} | {{{minorityleader2}}} | {{{minority_leader2|}}} }}<br />
| monarch = {{{monarch2|}}}<br />
| nominator = {{{nominator2|}}}<br />
| office = {{{office2|}}}<br />
| order = {{{order2|}}}<br />
| parliament = {{{parliament2|}}}<br />
| parliamentarygroup = {{{parliamentarygroup2|}}}<br />
| predecessor = {{{predecessor2|}}}<br />
| preceding = {{{preceding2|}}}<br />
| preceded = {{{preceded2|}}}<br />
| premier = {{{premier2|}}}<br />
| president = {{{president2|}}}<br />
| primeminister = {{{primeminister2|}}}<br />
| riding = {{{riding2|}}}<br />
| state_assembly = {{{state_assembly2|}}}<br />
| state_delegate = {{{state_delegate2|}}}<br />
| state_house = {{{state_house2|}}}<br />
| state_legislature = {{{state_legislature2|}}}<br />
| state_senate = {{{state_senate2|}}}<br />
| state = {{{state2|}}}<br />
| succeeded = {{{succeeded2|}}}<br />
| succeeding = {{{succeeding2|}}}<br />
| successor = {{{successor2|}}}<br />
| taoiseach = {{{taoiseach2|}}}<br />
| termlabel = {{{term_label2|{{{termlabel2|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend2|}}}|{{{termend2}}}|{{{term_end2|}}}}}<br />
| termstart = {{#if:{{{termstart2|}}}|{{{termstart2}}}|{{{term_start2|}}}}}<br />
| term = {{{term2|}}}<br />
| title = {{{title2|}}}<br />
| vicegovernor = {{{vicegovernor2|}}}<br />
| vicepresident = {{{vicepresident2|}}}<br />
| vicepremier = {{{vicepremier2|}}}<br />
| viceprimeminister = {{{viceprimeminister2|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term2|}}}<br />
}}}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname3|}}}<br />
| 1namedata = {{{1namedata3|}}}<br />
| 2blankname = {{{2blankname3|}}}<br />
| 2namedata = {{{2namedata3|}}}<br />
| 3blankname = {{{3blankname3|}}}<br />
| 3namedata = {{{3namedata3|}}}<br />
| 4blankname = {{{4blankname3|}}}<br />
| 4namedata = {{{4namedata3|}}}<br />
| 5blankname = {{{5blankname3|}}}<br />
| 5namedata = {{{5namedata3|}}}<br />
| alongside = {{{alongside3|}}}<br />
| ambassador_from = {{{ambassador_from3|}}}<br />
| appointer = {{#if: {{{appointer3|}}} | {{{appointer3}}} | {{{appointed3|}}} }}<br />
| assembly = {{{assembly3|}}}<br />
| chancellor = {{{chancellor3|}}}<br />
| co-leader = {{{co-leader3|}}}<br />
| constituency_{{#if:{{{constituency_AM3|}}}|AM|MP}} = {{#if: {{{constituency_AM3|}}} | {{{constituency_AM3}}} | {{{constituency_MP3|}}} }}<br />
| constituency = {{{constituency3|}}}<br />
| convocation = {{{convocation3|}}}<br />
| country = {{{country3|}}}<br />
| deputy = {{{deputy3|}}}<br />
| district = {{{district3|}}}<br />
| firstminister = {{{firstminister3|}}}<br />
| governor-general = {{{governor-general3|}}}<br />
| governor_general = {{{governor_general3|}}}<br />
| governor = {{{governor3|}}}<br />
| jr/sr = {{{jr/sr3|}}}<br />
| jr/sr and state = {{{jr/sr and state3|}}}<br />
| leader = {{{leader3|}}}<br />
| legislature = {{{legislature3|}}}<br />
| lieutenant_governor = {{{lieutenant_governor3|}}}<br />
| lieutenant = {{{lieutenant3|}}}<br />
| minority_floor_leader = {{{minority_floor_leader3|}}}<br />
| minister_from = {{{minister_from3|}}}<br />
| majority_floor_leader = {{{majority_floor_leader3|}}}<br />
| majority_leader = {{#if: {{{majorityleader3|}}} | {{{majorityleader3}}} | {{{majority_leader3|}}} }}<br />
| majority = {{{majority3|}}}<br />
| minister = {{{minister3|}}}<br />
| minority_leader = {{#if: {{{minorityleader3|}}} | {{{minorityleader3}}} | {{{minority_leader3|}}} }}<br />
| monarch = {{{monarch3|}}}<br />
| nominator = {{{nominator3|}}}<br />
| office = {{{office3|}}}<br />
| order = {{{order3|}}}<br />
| parliament = {{{parliament3|}}}<br />
| parliamentarygroup = {{{parliamentarygroup3|}}}<br />
| predecessor = {{{predecessor3|}}}<br />
| preceding = {{{preceding3|}}}<br />
| preceded = {{{preceded3|}}}<br />
| premier = {{{premier3|}}}<br />
| president = {{{president3|}}}<br />
| primeminister = {{{primeminister3|}}}<br />
| riding = {{{riding3|}}}<br />
| state_assembly = {{{state_assembly3|}}}<br />
| state_delegate = {{{state_delegate3|}}}<br />
| state_house = {{{state_house3|}}}<br />
| state_legislature = {{{state_legislature3|}}}<br />
| state_senate = {{{state_senate3|}}}<br />
| state = {{{state3|}}}<br />
| succeeded = {{{succeeded3|}}}<br />
| succeeding = {{{succeeding3|}}}<br />
| successor = {{{successor3|}}}<br />
| taoiseach = {{{taoiseach3|}}}<br />
| termlabel = {{{term_label3|{{{termlabel3|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend3|}}}|{{{termend3}}}|{{{term_end3|}}}}}<br />
| termstart = {{#if:{{{termstart3|}}}|{{{termstart3}}}|{{{term_start3|}}}}}<br />
| term = {{{term3|}}}<br />
| title = {{{title3|}}}<br />
| vicegovernor = {{{vicegovernor3|}}}<br />
| vicepresident = {{{vicepresident3|}}}<br />
| vicepremier = {{{vicepremier3|}}}<br />
| viceprimeminister = {{{viceprimeminister3|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term3|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname4|}}}<br />
| 1namedata = {{{1namedata4|}}}<br />
| 2blankname = {{{2blankname4|}}}<br />
| 2namedata = {{{2namedata4|}}}<br />
| 3blankname = {{{3blankname4|}}}<br />
| 3namedata = {{{3namedata4|}}}<br />
| 4blankname = {{{4blankname4|}}}<br />
| 4namedata = {{{4namedata4|}}}<br />
| 5blankname = {{{5blankname4|}}}<br />
| 5namedata = {{{5namedata4|}}}<br />
| alongside = {{{alongside4|}}}<br />
| ambassador_from = {{{ambassador_from4|}}}<br />
| appointer = {{#if: {{{appointer4|}}} | {{{appointer4}}} | {{{appointed4|}}} }}<br />
| assembly = {{{assembly4|}}}<br />
| chancellor = {{{chancellor4|}}}<br />
| co-leader = {{{co-leader4|}}}<br />
| constituency_{{#if:{{{constituency_AM4|}}}|AM|MP}} = {{#if: {{{constituency_AM4|}}} | {{{constituency_AM4}}} | {{{constituency_MP4|}}} }}<br />
| constituency = {{{constituency4|}}}<br />
| convocation = {{{convocation4|}}}<br />
| country = {{{country4|}}}<br />
| deputy = {{{deputy4|}}}<br />
| district = {{{district4|}}}<br />
| firstminister = {{{firstminister4|}}}<br />
| governor-general = {{{governor-general4|}}}<br />
| governor_general = {{{governor_general4|}}}<br />
| governor = {{{governor4|}}}<br />
| jr/sr = {{{jr/sr4|}}}<br />
| jr/sr and state = {{{jr/sr and state4|}}}<br />
| leader = {{{leader4|}}}<br />
| legislature = {{{legislature4|}}}<br />
| lieutenant_governor = {{{lieutenant_governor4|}}}<br />
| lieutenant = {{{lieutenant4|}}}<br />
| minister_from = {{{minister_from4|}}}<br />
| minority_floor_leader = {{{minority_floor_leader4|}}}<br />
| majority_floor_leader = {{{majority_floor_leader4|}}}<br />
| majority_leader = {{#if: {{{majorityleader4|}}} | {{{majorityleader4}}} | {{{majority_leader4|}}} }}<br />
| majority = {{{majority4|}}}<br />
| minister = {{{minister4|}}}<br />
| minority_leader = {{#if: {{{minorityleader4|}}} | {{{minorityleader4}}} | {{{minority_leader4|}}} }}<br />
| monarch = {{{monarch4|}}}<br />
| nominator = {{{nominator4|}}}<br />
| office = {{{office4|}}}<br />
| order = {{{order4|}}}<br />
| parliament = {{{parliament4|}}}<br />
| parliamentarygroup = {{{parliamentarygroup4|}}}<br />
| predecessor = {{{predecessor4|}}}<br />
| preceding = {{{preceding4|}}}<br />
| preceded = {{{preceded4|}}}<br />
| premier = {{{premier4|}}}<br />
| president = {{{president4|}}}<br />
| primeminister = {{{primeminister4|}}}<br />
| riding = {{{riding4|}}}<br />
| state_assembly = {{{state_assembly4|}}}<br />
| state_delegate = {{{state_delegate4|}}}<br />
| state_house = {{{state_house4|}}}<br />
| state_legislature = {{{state_legislature4|}}}<br />
| state_senate = {{{state_senate4|}}}<br />
| state = {{{state4|}}}<br />
| succeeded = {{{succeeded4|}}}<br />
| succeeding = {{{succeeding4|}}}<br />
| successor = {{{successor4|}}}<br />
| taoiseach = {{{taoiseach4|}}}<br />
| termlabel = {{{term_label4|{{{termlabel4|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend4|}}}|{{{termend4}}}|{{{term_end4|}}}}}<br />
| termstart = {{#if:{{{termstart4|}}}|{{{termstart4}}}|{{{term_start4|}}}}}<br />
| term = {{{term4|}}}<br />
| title = {{{title4|}}}<br />
| vicegovernor = {{{vicegovernor4|}}}<br />
| vicepresident = {{{vicepresident4|}}}<br />
| vicepremier = {{{vicepremier4|}}}<br />
| viceprimeminister = {{{viceprimeminister4|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term4|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname5|}}}<br />
| 1namedata = {{{1namedata5|}}}<br />
| 2blankname = {{{2blankname5|}}}<br />
| 2namedata = {{{2namedata5|}}}<br />
| 3blankname = {{{3blankname5|}}}<br />
| 3namedata = {{{3namedata5|}}}<br />
| 4blankname = {{{4blankname5|}}}<br />
| 4namedata = {{{4namedata5|}}}<br />
| 5blankname = {{{5blankname5|}}}<br />
| 5namedata = {{{5namedata5|}}}<br />
| alongside = {{{alongside5|}}}<br />
| ambassador_from = {{{ambassador_from5|}}}<br />
| appointer = {{#if: {{{appointer5|}}} | {{{appointer5}}} | {{{appointed5|}}} }}<br />
| assembly = {{{assembly5|}}}<br />
| chancellor = {{{chancellor5|}}}<br />
| co-leader = {{{co-leader5|}}}<br />
| constituency_{{#if:{{{constituency_AM5|}}}|AM|MP}} = {{#if: {{{constituency_AM5|}}} | {{{constituency_AM5}}} | {{{constituency_MP5|}}} }}<br />
| constituency = {{{constituency5|}}}<br />
| convocation = {{{convocation5|}}}<br />
| country = {{{country5|}}}<br />
| deputy = {{{deputy5|}}}<br />
| district = {{{district5|}}}<br />
| firstminister = {{{firstminister5|}}}<br />
| governor-general = {{{governor-general5|}}}<br />
| governor_general = {{{governor_general5|}}}<br />
| governor = {{{governor5|}}}<br />
| jr/sr = {{{jr/sr5|}}}<br />
| jr/sr and state = {{{jr/sr and state5|}}}<br />
| leader = {{{leader5|}}}<br />
| legislature = {{{legislature5|}}}<br />
| lieutenant_governor = {{{lieutenant_governor5|}}}<br />
| lieutenant = {{{lieutenant5|}}}<br />
| minister_from = {{{minister_from5|}}}<br />
| minority_floor_leader = {{{minority_floor_leader5|}}}<br />
| majority_floor_leader = {{{majority_floor_leader5|}}}<br />
| majority_leader = {{#if: {{{majorityleader5|}}} | {{{majorityleader5}}} | {{{majority_leader5|}}} }}<br />
| majority = {{{majority5|}}}<br />
| minister = {{{minister5|}}}<br />
| minority_leader = {{#if: {{{minorityleader5|}}} | {{{minorityleader5}}} | {{{minority_leader5|}}} }}<br />
| monarch = {{{monarch5|}}}<br />
| nominator = {{{nominator5|}}}<br />
| office = {{{office5|}}}<br />
| order = {{{order5|}}}<br />
| parliament = {{{parliament5|}}}<br />
| parliamentarygroup = {{{parliamentarygroup5|}}}<br />
| predecessor = {{{predecessor5|}}}<br />
| preceding = {{{preceding5|}}}<br />
| preceded = {{{preceded5|}}}<br />
| premier = {{{premier5|}}}<br />
| president = {{{president5|}}}<br />
| primeminister = {{{primeminister5|}}}<br />
| riding = {{{riding5|}}}<br />
| state_assembly = {{{state_assembly5|}}}<br />
| state_delegate = {{{state_delegate5|}}}<br />
| state_house = {{{state_house5|}}}<br />
| state_legislature = {{{state_legislature5|}}}<br />
| state_senate = {{{state_senate5|}}}<br />
| state = {{{state5|}}}<br />
| succeeded = {{{succeeded5|}}}<br />
| succeeding = {{{succeeding5|}}}<br />
| successor = {{{successor5|}}}<br />
| taoiseach = {{{taoiseach5|}}}<br />
| termlabel = {{{term_label5|{{{termlabel5|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend5|}}}|{{{termend5}}}|{{{term_end5|}}}}}<br />
| termstart = {{#if:{{{termstart5|}}}|{{{termstart5}}}|{{{term_start5|}}}}}<br />
| term = {{{term5|}}}<br />
| title = {{{title5|}}}<br />
| vicegovernor = {{{vicegovernor5|}}}<br />
| vicepresident = {{{vicepresident5|}}}<br />
| vicepremier = {{{vicepremier5|}}}<br />
| viceprimeminister = {{{viceprimeminister5|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term5|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname6|}}}<br />
| 1namedata = {{{1namedata6|}}}<br />
| 2blankname = {{{2blankname6|}}}<br />
| 2namedata = {{{2namedata6|}}}<br />
| 3blankname = {{{3blankname6|}}}<br />
| 3namedata = {{{3namedata6|}}}<br />
| 4blankname = {{{4blankname6|}}}<br />
| 4namedata = {{{4namedata6|}}}<br />
| 5blankname = {{{5blankname6|}}}<br />
| 5namedata = {{{5namedata6|}}}<br />
| alongside = {{{alongside6|}}}<br />
| ambassador_from = {{{ambassador_from6|}}}<br />
| appointer = {{#if: {{{appointer6|}}} | {{{appointer6}}} | {{{appointed6|}}} }}<br />
| assembly = {{{assembly6|}}}<br />
| chancellor = {{{chancellor6|}}}<br />
| co-leader = {{{co-leader6|}}}<br />
| constituency_{{#if:{{{constituency_AM6|}}}|AM|MP}} = {{#if: {{{constituency_AM6|}}} | {{{constituency_AM6}}} | {{{constituency_MP6|}}} }}<br />
| constituency = {{{constituency6|}}}<br />
| convocation = {{{convocation6|}}}<br />
| country = {{{country6|}}}<br />
| deputy = {{{deputy6|}}}<br />
| district = {{{district6|}}}<br />
| firstminister = {{{firstminister6|}}}<br />
| governor-general = {{{governor-general6|}}}<br />
| governor_general = {{{governor_general6|}}}<br />
| governor = {{{governor6|}}}<br />
| jr/sr = {{{jr/sr6|}}}<br />
| jr/sr and state = {{{jr/sr and state6|}}}<br />
| leader = {{{leader6|}}}<br />
| legislature = {{{legislature6|}}}<br />
| lieutenant_governor = {{{lieutenant_governor6|}}}<br />
| lieutenant = {{{lieutenant6|}}}<br />
| minority_floor_leader = {{{minority_floor_leader6|}}}<br />
| minister_from = {{{minister_from6|}}}<br />
| majority_floor_leader = {{{majority_floor_leader6|}}}<br />
| majority_leader = {{#if: {{{majorityleader6|}}} | {{{majorityleader6}}} | {{{majority_leader6|}}} }}<br />
| majority = {{{majority6|}}}<br />
| minister = {{{minister6|}}}<br />
| minority_leader = {{#if: {{{minorityleader6|}}} | {{{minorityleader6}}} | {{{minority_leader6|}}} }}<br />
| monarch = {{{monarch6|}}}<br />
| nominator = {{{nominator6|}}}<br />
| office = {{{office6|}}}<br />
| order = {{{order6|}}}<br />
| parliament = {{{parliament6|}}}<br />
| parliamentarygroup = {{{parliamentarygroup6|}}}<br />
| predecessor = {{{predecessor6|}}}<br />
| preceding = {{{preceding6|}}}<br />
| preceded = {{{preceded6|}}}<br />
| premier = {{{premier6|}}}<br />
| president = {{{president6|}}}<br />
| primeminister = {{{primeminister6|}}}<br />
| riding = {{{riding6|}}}<br />
| state_assembly = {{{state_assembly6|}}}<br />
| state_delegate = {{{state_delegate6|}}}<br />
| state_house = {{{state_house6|}}}<br />
| state_legislature = {{{state_legislature6|}}}<br />
| state_senate = {{{state_senate6|}}}<br />
| state = {{{state6|}}}<br />
| succeeded = {{{succeeded6|}}}<br />
| succeeding = {{{succeeding6|}}}<br />
| successor = {{{successor6|}}}<br />
| taoiseach = {{{taoiseach6|}}}<br />
| termlabel = {{{term_label6|{{{termlabel6|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend6|}}}|{{{termend6}}}|{{{term_end6|}}}}}<br />
| termstart = {{#if:{{{termstart6|}}}|{{{termstart6}}}|{{{term_start6|}}}}}<br />
| term = {{{term6|}}}<br />
| title = {{{title6|}}}<br />
| vicegovernor = {{{vicegovernor6|}}}<br />
| vicepresident = {{{vicepresident6|}}}<br />
| vicepremier = {{{vicepremier6|}}}<br />
| viceprimeminister = {{{viceprimeminister6|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term6|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname7|}}}<br />
| 1namedata = {{{1namedata7|}}}<br />
| 2blankname = {{{2blankname7|}}}<br />
| 2namedata = {{{2namedata7|}}}<br />
| 3blankname = {{{3blankname7|}}}<br />
| 3namedata = {{{3namedata7|}}}<br />
| 4blankname = {{{4blankname7|}}}<br />
| 4namedata = {{{4namedata7|}}}<br />
| 5blankname = {{{5blankname7|}}}<br />
| 5namedata = {{{5namedata7|}}}<br />
| alongside = {{{alongside7|}}}<br />
| ambassador_from = {{{ambassador_from7|}}}<br />
| appointer = {{#if: {{{appointer7|}}} | {{{appointer7}}} | {{{appointed7|}}} }}<br />
| assembly = {{{assembly7|}}}<br />
| chancellor = {{{chancellor7|}}}<br />
| co-leader = {{{co-leader7|}}}<br />
| constituency_{{#if:{{{constituency_AM7|}}}|AM|MP}} = {{#if: {{{constituency_AM7|}}} | {{{constituency_AM7}}} | {{{constituency_MP7|}}} }}<br />
| constituency = {{{constituency7|}}}<br />
| convocation = {{{convocation7|}}}<br />
| country = {{{country7|}}}<br />
| deputy = {{{deputy7|}}}<br />
| district = {{{district7|}}}<br />
| firstminister = {{{firstminister7|}}}<br />
| governor-general = {{{governor-general7|}}}<br />
| governor_general = {{{governor_general7|}}}<br />
| governor = {{{governor7|}}}<br />
| jr/sr = {{{jr/sr7|}}}<br />
| jr/sr and state = {{{jr/sr and state7|}}}<br />
| leader = {{{leader7|}}}<br />
| legislature = {{{legislature7|}}}<br />
| lieutenant_governor = {{{lieutenant_governor7|}}}<br />
| lieutenant = {{{lieutenant7|}}}<br />
| minister_from = {{{minister_from7|}}}<br />
| minority_floor_leader = {{{minority_floor_leader7|}}}<br />
| majority_floor_leader = {{{majority_floor_leader7|}}}<br />
| majority_leader = {{#if: {{{majorityleader7|}}} | {{{majorityleader7}}} | {{{majority_leader7|}}} }}<br />
| majority = {{{majority7|}}}<br />
| minister = {{{minister7|}}}<br />
| minority_leader = {{#if: {{{minorityleader7|}}} | {{{minorityleader7}}} | {{{minority_leader7|}}} }}<br />
| monarch = {{{monarch7|}}}<br />
| nominator = {{{nominator7|}}}<br />
| office = {{{office7|}}}<br />
| order = {{{order7|}}}<br />
| parliament = {{{parliament7|}}}<br />
| parliamentarygroup = {{{parliamentarygroup7|}}}<br />
| predecessor = {{{predecessor7|}}}<br />
| preceding = {{{preceding7|}}}<br />
| preceded = {{{preceded7|}}}<br />
| premier = {{{premier7|}}}<br />
| president = {{{president7|}}}<br />
| primeminister = {{{primeminister7|}}}<br />
| riding = {{{riding7|}}}<br />
| state_assembly = {{{state_assembly7|}}}<br />
| state_delegate = {{{state_delegate7|}}}<br />
| state_house = {{{state_house7|}}}<br />
| state_legislature = {{{state_legislature7|}}}<br />
| state_senate = {{{state_senate7|}}}<br />
| state = {{{state7|}}}<br />
| succeeded = {{{succeeded7|}}}<br />
| succeeding = {{{succeeding7|}}}<br />
| successor = {{{successor7|}}}<br />
| taoiseach = {{{taoiseach7|}}}<br />
| termlabel = {{{term_label7|{{{termlabel7|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend7|}}}|{{{termend7}}}|{{{term_end7|}}}}}<br />
| termstart = {{#if:{{{termstart7|}}}|{{{termstart7}}}|{{{term_start7|}}}}}<br />
| term = {{{term7|}}}<br />
| title = {{{title7|}}}<br />
| vicegovernor = {{{vicegovernor7|}}}<br />
| vicepresident = {{{vicepresident7|}}}<br />
| vicepremier = {{{vicepremier7|}}}<br />
| viceprimeminister = {{{viceprimeminister7|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term7|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname8|}}}<br />
| 1namedata = {{{1namedata8|}}}<br />
| 2blankname = {{{2blankname8|}}}<br />
| 2namedata = {{{2namedata8|}}}<br />
| 3blankname = {{{3blankname8|}}}<br />
| 3namedata = {{{3namedata8|}}}<br />
| 4blankname = {{{4blankname8|}}}<br />
| 4namedata = {{{4namedata8|}}}<br />
| 5blankname = {{{5blankname8|}}}<br />
| 5namedata = {{{5namedata8|}}}<br />
| alongside = {{{alongside8|}}}<br />
| ambassador_from = {{{ambassador_from8|}}}<br />
| appointer = {{#if: {{{appointer8|}}} | {{{appointer8}}} | {{{appointed8|}}} }}<br />
| assembly = {{{assembly8|}}}<br />
| chancellor = {{{chancellor8|}}}<br />
| co-leader = {{{co-leader8|}}}<br />
| constituency_{{#if:{{{constituency_AM8|}}}|AM|MP}} = {{#if: {{{constituency_AM8|}}} | {{{constituency_AM8}}} | {{{constituency_MP8|}}} }}<br />
| constituency = {{{constituency8|}}}<br />
| convocation = {{{convocation8|}}}<br />
| country = {{{country8|}}}<br />
| deputy = {{{deputy8|}}}<br />
| district = {{{district8|}}}<br />
| firstminister = {{{firstminister8|}}}<br />
| governor-general = {{{governor-general8|}}}<br />
| governor_general = {{{governor_general8|}}}<br />
| governor = {{{governor8|}}}<br />
| jr/sr = {{{jr/sr8|}}}<br />
| jr/sr and state = {{{jr/sr and state8|}}}<br />
| leader = {{{leader8|}}}<br />
| legislature = {{{legislature8|}}}<br />
| lieutenant_governor = {{{lieutenant_governor8|}}}<br />
| lieutenant = {{{lieutenant8|}}}<br />
| minister_from = {{{minister_from8|}}}<br />
| minority_floor_leader = {{{minority_floor_leader8|}}}<br />
| majority_floor_leader = {{{majority_floor_leader8|}}}<br />
| majority_leader = {{#if: {{{majorityleader8|}}} | {{{majorityleader8}}} | {{{majority_leader8|}}} }}<br />
| majority = {{{majority8|}}}<br />
| minister = {{{minister8|}}}<br />
| minority_leader = {{#if: {{{minorityleader8|}}} | {{{minorityleader8}}} | {{{minority_leader8|}}} }}<br />
| monarch = {{{monarch8|}}}<br />
| nominator = {{{nominator8|}}}<br />
| office = {{{office8|}}}<br />
| order = {{{order8|}}}<br />
| parliament = {{{parliament8|}}}<br />
| parliamentarygroup = {{{parliamentarygroup8|}}}<br />
| predecessor = {{{predecessor8|}}}<br />
| preceding = {{{preceding8|}}}<br />
| preceded = {{{preceded8|}}}<br />
| premier = {{{premier8|}}}<br />
| president = {{{president8|}}}<br />
| primeminister = {{{primeminister8|}}}<br />
| riding = {{{riding8|}}}<br />
| state_assembly = {{{state_assembly8|}}}<br />
| state_delegate = {{{state_delegate8|}}}<br />
| state_house = {{{state_house8|}}}<br />
| state_legislature = {{{state_legislature8|}}}<br />
| state_senate = {{{state_senate8|}}}<br />
| state = {{{state8|}}}<br />
| succeeded = {{{succeeded8|}}}<br />
| succeeding = {{{succeeding8|}}}<br />
| successor = {{{successor8|}}}<br />
| taoiseach = {{{taoiseach8|}}}<br />
| termlabel = {{{term_label8|{{{termlabel8|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend8|}}}|{{{termend8}}}|{{{term_end8|}}}}}<br />
| termstart = {{#if:{{{termstart8|}}}|{{{termstart8}}}|{{{term_start8|}}}}}<br />
| term = {{{term8|}}}<br />
| title = {{{title8|}}}<br />
| vicegovernor = {{{vicegovernor8|}}}<br />
| vicepresident = {{{vicepresident8|}}}<br />
| vicepremier = {{{vicepremier8|}}}<br />
| viceprimeminister = {{{viceprimeminister8|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term8|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname9|}}}<br />
| 1namedata = {{{1namedata9|}}}<br />
| 2blankname = {{{2blankname9|}}}<br />
| 2namedata = {{{2namedata9|}}}<br />
| 3blankname = {{{3blankname9|}}}<br />
| 3namedata = {{{3namedata9|}}}<br />
| 4blankname = {{{4blankname9|}}}<br />
| 4namedata = {{{4namedata9|}}}<br />
| 5blankname = {{{5blankname9|}}}<br />
| 5namedata = {{{5namedata9|}}}<br />
| alongside = {{{alongside9|}}}<br />
| ambassador_from = {{{ambassador_from9|}}}<br />
| appointer = {{#if: {{{appointer9|}}} | {{{appointer9}}} | {{{appointed9|}}} }}<br />
| assembly = {{{assembly9|}}}<br />
| chancellor = {{{chancellor9|}}}<br />
| co-leader = {{{co-leader9|}}}<br />
| constituency_{{#if:{{{constituency_AM9|}}}|AM|MP}} = {{#if: {{{constituency_AM9|}}} | {{{constituency_AM9}}} | {{{constituency_MP9|}}} }}<br />
| constituency = {{{constituency9|}}}<br />
| convocation = {{{convocation9|}}}<br />
| country = {{{country9|}}}<br />
| deputy = {{{deputy9|}}}<br />
| district = {{{district9|}}}<br />
| firstminister = {{{firstminister9|}}}<br />
| governor-general = {{{governor-general9|}}}<br />
| governor_general = {{{governor_general9|}}}<br />
| governor = {{{governor9|}}}<br />
| jr/sr = {{{jr/sr9|}}}<br />
| jr/sr and state = {{{jr/sr and state9|}}}<br />
| leader = {{{leader9|}}}<br />
| legislature = {{{legislature9|}}}<br />
| lieutenant_governor = {{{lieutenant_governor9|}}}<br />
| lieutenant = {{{lieutenant9|}}}<br />
| minister_from = {{{minister_from9|}}}<br />
| minority_floor_leader = {{{minority_floor_leader9|}}}<br />
| majority_floor_leader = {{{majority_floor_leader9|}}}<br />
| majority_leader = {{#if: {{{majorityleader9|}}} | {{{majorityleader9}}} | {{{majority_leader9|}}} }}<br />
| majority = {{{majority9|}}}<br />
| minister = {{{minister9|}}}<br />
| minority_leader = {{#if: {{{minorityleader9|}}} | {{{minorityleader9}}} | {{{minority_leader9|}}} }}<br />
| monarch = {{{monarch9|}}}<br />
| nominator = {{{nominator9|}}}<br />
| office = {{{office9|}}}<br />
| order = {{{order9|}}}<br />
| parliament = {{{parliament9|}}}<br />
| parliamentarygroup = {{{parliamentarygroup9|}}}<br />
| predecessor = {{{predecessor9|}}}<br />
| preceding = {{{preceding9|}}}<br />
| preceded = {{{preceded9|}}}<br />
| premier = {{{premier9|}}}<br />
| president = {{{president9|}}}<br />
| primeminister = {{{primeminister9|}}}<br />
| riding = {{{riding9|}}}<br />
| state_assembly = {{{state_assembly9|}}}<br />
| state_delegate = {{{state_delegate9|}}}<br />
| state_house = {{{state_house9|}}}<br />
| state_legislature = {{{state_legislature9|}}}<br />
| state_senate = {{{state_senate9|}}}<br />
| state = {{{state9|}}}<br />
| succeeded = {{{succeeded9|}}}<br />
| succeeding = {{{succeeding9|}}}<br />
| successor = {{{successor9|}}}<br />
| taoiseach = {{{taoiseach9|}}}<br />
| termlabel = {{{term_label9|{{{termlabel9|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend9|}}}|{{{termend9}}}|{{{term_end9|}}}}}<br />
| termstart = {{#if:{{{termstart9|}}}|{{{termstart9}}}|{{{term_start9|}}}}}<br />
| term = {{{term9|}}}<br />
| title = {{{title9|}}}<br />
| vicegovernor = {{{vicegovernor9|}}}<br />
| vicepresident = {{{vicepresident9|}}}<br />
| vicepremier = {{{vicepremier9|}}}<br />
| viceprimeminister = {{{viceprimeminister9|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term9|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname10|}}}<br />
| 1namedata = {{{1namedata10|}}}<br />
| 2blankname = {{{2blankname10|}}}<br />
| 2namedata = {{{2namedata10|}}}<br />
| 3blankname = {{{3blankname10|}}}<br />
| 3namedata = {{{3namedata10|}}}<br />
| 4blankname = {{{4blankname10|}}}<br />
| 4namedata = {{{4namedata10|}}}<br />
| 5blankname = {{{5blankname10|}}}<br />
| 5namedata = {{{5namedata10|}}}<br />
| alongside = {{{alongside10|}}}<br />
| ambassador_from = {{{ambassador_from10|}}}<br />
| appointer = {{#if: {{{appointer10|}}} | {{{appointer10}}} | {{{appointed10|}}} }}<br />
| assembly = {{{assembly10|}}}<br />
| chancellor = {{{chancellor10|}}}<br />
| co-leader = {{{co-leader10|}}}<br />
| constituency_{{#if:{{{constituency_AM10|}}}|AM|MP}} = {{#if: {{{constituency_AM10|}}} | {{{constituency_AM10}}} | {{{constituency_MP10|}}} }}<br />
| constituency = {{{constituency10|}}}<br />
| convocation = {{{convocation10|}}}<br />
| country = {{{country10|}}}<br />
| deputy = {{{deputy10|}}}<br />
| district = {{{district10|}}}<br />
| firstminister = {{{firstminister10|}}}<br />
| governor-general = {{{governor-general10|}}}<br />
| governor_general = {{{governor_general10|}}}<br />
| governor = {{{governor10|}}}<br />
| jr/sr = {{{jr/sr10|}}}<br />
| jr/sr and state = {{{jr/sr and state10|}}}<br />
| leader = {{{leader10|}}}<br />
| legislature = {{{legislature10|}}}<br />
| lieutenant_governor = {{{lieutenant_governor10|}}}<br />
| lieutenant = {{{lieutenant10|}}}<br />
| minister_from = {{{minister_from10|}}}<br />
| minority_floor_leader = {{{minority_floor_leader10|}}}<br />
| majority_floor_leader = {{{majority_floor_leader10|}}}<br />
| majority_leader = {{#if: {{{majorityleader10|}}} | {{{majorityleader10}}} | {{{majority_leader10|}}} }}<br />
| majority = {{{majority10|}}}<br />
| minister = {{{minister10|}}}<br />
| minority_leader = {{#if: {{{minorityleader10|}}} | {{{minorityleader10}}} | {{{minority_leader10|}}} }}<br />
| monarch = {{{monarch10|}}}<br />
| nominator = {{{nominator10|}}}<br />
| office = {{{office10|}}}<br />
| order = {{{order10|}}}<br />
| parliament = {{{parliament10|}}}<br />
| parliamentarygroup = {{{parliamentarygroup10|}}}<br />
| predecessor = {{{predecessor10|}}}<br />
| preceding = {{{preceding10|}}}<br />
| preceded = {{{preceded10|}}}<br />
| premier = {{{premier10|}}}<br />
| president = {{{president10|}}}<br />
| primeminister = {{{primeminister10|}}}<br />
| riding = {{{riding10|}}}<br />
| state_assembly = {{{state_assembly10|}}}<br />
| state_delegate = {{{state_delegate10|}}}<br />
| state_house = {{{state_house10|}}}<br />
| state_legislature = {{{state_legislature10|}}}<br />
| state_senate = {{{state_senate10|}}}<br />
| state = {{{state10|}}}<br />
| succeeded = {{{succeeded10|}}}<br />
| succeeding = {{{succeeding10|}}}<br />
| successor = {{{successor10|}}}<br />
| taoiseach = {{{taoiseach10|}}}<br />
| termlabel = {{{term_label10|{{{termlabel10|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend10|}}}|{{{termend10}}}|{{{term_end10|}}}}}<br />
| termstart = {{#if:{{{termstart10|}}}|{{{termstart10}}}|{{{term_start10|}}}}}<br />
| term = {{{term10|}}}<br />
| title = {{{title10|}}}<br />
| vicegovernor = {{{vicegovernor10|}}}<br />
| vicepresident = {{{vicepresident10|}}}<br />
| vicepremier = {{{vicepremier10|}}}<br />
| viceprimeminister = {{{viceprimeminister10|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term10|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname11|}}}<br />
| 1namedata = {{{1namedata11|}}}<br />
| 2blankname = {{{2blankname11|}}}<br />
| 2namedata = {{{2namedata11|}}}<br />
| 3blankname = {{{3blankname11|}}}<br />
| 3namedata = {{{3namedata11|}}}<br />
| 4blankname = {{{4blankname11|}}}<br />
| 4namedata = {{{4namedata11|}}}<br />
| 5blankname = {{{5blankname11|}}}<br />
| 5namedata = {{{5namedata11|}}}<br />
| alongside = {{{alongside11|}}}<br />
| ambassador_from = {{{ambassador_from11|}}}<br />
| appointer = {{#if: {{{appointer11|}}} | {{{appointer11}}} | {{{appointed11|}}} }}<br />
| assembly = {{{assembly11|}}}<br />
| chancellor = {{{chancellor11|}}}<br />
| co-leader = {{{co-leader11|}}}<br />
| constituency_{{#if:{{{constituency_AM11|}}}|AM|MP}} = {{#if: {{{constituency_AM11|}}} | {{{constituency_AM11}}} | {{{constituency_MP11|}}} }}<br />
| constituency = {{{constituency11|}}}<br />
| convocation = {{{convocation11|}}}<br />
| country = {{{country11|}}}<br />
| deputy = {{{deputy11|}}}<br />
| district = {{{district11|}}}<br />
| firstminister = {{{firstminister11|}}}<br />
| governor-general = {{{governor-general11|}}}<br />
| governor_general = {{{governor_general11|}}}<br />
| governor = {{{governor11|}}}<br />
| jr/sr = {{{jr/sr11|}}}<br />
| jr/sr and state = {{{jr/sr and state11|}}}<br />
| leader = {{{leader11|}}}<br />
| legislature = {{{legislature11|}}}<br />
| lieutenant_governor = {{{lieutenant_governor11|}}}<br />
| lieutenant = {{{lieutenant11|}}}<br />
| minister_from = {{{minister_from11|}}}<br />
| minority_floor_leader = {{{minority_floor_leader11|}}}<br />
| majority_floor_leader = {{{majority_floor_leader11|}}}<br />
| majority_leader = {{#if: {{{majorityleader11|}}} | {{{majorityleader11}}} | {{{majority_leader11|}}} }}<br />
| majority = {{{majority11|}}}<br />
| minister = {{{minister11|}}}<br />
| minority_leader = {{#if: {{{minorityleader11|}}} | {{{minorityleader11}}} | {{{minority_leader11|}}} }}<br />
| monarch = {{{monarch11|}}}<br />
| nominator = {{{nominator11|}}}<br />
| office = {{{office11|}}}<br />
| order = {{{order11|}}}<br />
| parliament = {{{parliament11|}}}<br />
| parliamentarygroup = {{{parliamentarygroup11|}}}<br />
| predecessor = {{{predecessor11|}}}<br />
| preceding = {{{preceding11|}}}<br />
| preceded = {{{preceded11|}}}<br />
| premier = {{{premier11|}}}<br />
| president = {{{president11|}}}<br />
| primeminister = {{{primeminister11|}}}<br />
| riding = {{{riding11|}}}<br />
| state_assembly = {{{state_assembly11|}}}<br />
| state_delegate = {{{state_delegate11|}}}<br />
| state_house = {{{state_house11|}}}<br />
| state_legislature = {{{state_legislature11|}}}<br />
| state_senate = {{{state_senate11|}}}<br />
| state = {{{state11|}}}<br />
| succeeded = {{{succeeded11|}}}<br />
| succeeding = {{{succeeding11|}}}<br />
| successor = {{{successor11|}}}<br />
| taoiseach = {{{taoiseach11|}}}<br />
| termlabel = {{{term_label11|{{{termlabel11|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend11|}}}|{{{termend11}}}|{{{term_end11|}}}}}<br />
| termstart = {{#if:{{{termstart11|}}}|{{{termstart11}}}|{{{term_start11|}}}}}<br />
| term = {{{term11|}}}<br />
| title = {{{title11|}}}<br />
| vicegovernor = {{{vicegovernor11|}}}<br />
| vicepresident = {{{vicepresident11|}}}<br />
| vicepremier = {{{vicepremier11|}}}<br />
| viceprimeminister = {{{viceprimeminister11|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term11|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname12|}}}<br />
| 1namedata = {{{1namedata12|}}}<br />
| 2blankname = {{{2blankname12|}}}<br />
| 2namedata = {{{2namedata12|}}}<br />
| 3blankname = {{{3blankname12|}}}<br />
| 3namedata = {{{3namedata12|}}}<br />
| 4blankname = {{{4blankname12|}}}<br />
| 4namedata = {{{4namedata12|}}}<br />
| 5blankname = {{{5blankname12|}}}<br />
| 5namedata = {{{5namedata12|}}}<br />
| alongside = {{{alongside12|}}}<br />
| ambassador_from = {{{ambassador_from12|}}}<br />
| appointer = {{#if: {{{appointer12|}}} | {{{appointer12}}} | {{{appointed12|}}} }}<br />
| assembly = {{{assembly12|}}}<br />
| chancellor = {{{chancellor12|}}}<br />
| co-leader = {{{co-leader12|}}}<br />
| constituency_{{#if:{{{constituency_AM12|}}}|AM|MP}} = {{#if: {{{constituency_AM12|}}} | {{{constituency_AM12}}} | {{{constituency_MP12|}}} }}<br />
| constituency = {{{constituency12|}}}<br />
| convocation = {{{convocation12|}}}<br />
| country = {{{country12|}}}<br />
| deputy = {{{deputy12|}}}<br />
| district = {{{district12|}}}<br />
| firstminister = {{{firstminister12|}}}<br />
| governor-general = {{{governor-general12|}}}<br />
| governor_general = {{{governor_general12|}}}<br />
| governor = {{{governor12|}}}<br />
| jr/sr = {{{jr/sr12|}}}<br />
| jr/sr and state = {{{jr/sr and state12|}}}<br />
| leader = {{{leader12|}}}<br />
| legislature = {{{legislature12|}}}<br />
| lieutenant_governor = {{{lieutenant_governor12|}}}<br />
| lieutenant = {{{lieutenant12|}}}<br />
| minister_from = {{{minister_from12|}}}<br />
| minority_floor_leader = {{{minority_floor_leader12|}}}<br />
| majority_floor_leader = {{{majority_floor_leader12|}}}<br />
| majority_leader = {{#if: {{{majorityleader12|}}} | {{{majorityleader12}}} | {{{majority_leader12|}}} }}<br />
| majority = {{{majority12|}}}<br />
| minister = {{{minister12|}}}<br />
| minority_leader = {{#if: {{{minorityleader12|}}} | {{{minorityleader12}}} | {{{minority_leader12|}}} }}<br />
| monarch = {{{monarch12|}}}<br />
| nominator = {{{nominator12|}}}<br />
| office = {{{office12|}}}<br />
| order = {{{order12|}}}<br />
| parliament = {{{parliament12|}}}<br />
| parliamentarygroup = {{{parliamentarygroup12|}}}<br />
| predecessor = {{{predecessor12|}}}<br />
| preceding = {{{preceding12|}}}<br />
| preceded = {{{preceded12|}}}<br />
| premier = {{{premier12|}}}<br />
| president = {{{president12|}}}<br />
| primeminister = {{{primeminister12|}}}<br />
| riding = {{{riding12|}}}<br />
| state_assembly = {{{state_assembly12|}}}<br />
| state_delegate = {{{state_delegate12|}}}<br />
| state_house = {{{state_house12|}}}<br />
| state_legislature = {{{state_legislature12|}}}<br />
| state_senate = {{{state_senate12|}}}<br />
| state = {{{state12|}}}<br />
| succeeded = {{{succeeded12|}}}<br />
| succeeding = {{{succeeding12|}}}<br />
| successor = {{{successor12|}}}<br />
| taoiseach = {{{taoiseach12|}}}<br />
| termlabel = {{{term_label12|{{{termlabel12|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend12|}}}|{{{termend12}}}|{{{term_end12|}}}}}<br />
| termstart = {{#if:{{{termstart12|}}}|{{{termstart12}}}|{{{term_start12|}}}}}<br />
| term = {{{term12|}}}<br />
| title = {{{title12|}}}<br />
| vicegovernor = {{{vicegovernor12|}}}<br />
| vicepresident = {{{vicepresident12|}}}<br />
| vicepremier = {{{vicepremier12|}}}<br />
| viceprimeminister = {{{viceprimeminister12|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term12|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname13|}}}<br />
| 1namedata = {{{1namedata13|}}}<br />
| 2blankname = {{{2blankname13|}}}<br />
| 2namedata = {{{2namedata13|}}}<br />
| 3blankname = {{{3blankname13|}}}<br />
| 3namedata = {{{3namedata13|}}}<br />
| 4blankname = {{{4blankname13|}}}<br />
| 4namedata = {{{4namedata13|}}}<br />
| 5blankname = {{{5blankname13|}}}<br />
| 5namedata = {{{5namedata13|}}}<br />
| alongside = {{{alongside13|}}}<br />
| ambassador_from = {{{ambassador_from13|}}}<br />
| appointer = {{#if: {{{appointer13|}}} | {{{appointer13}}} | {{{appointed13|}}} }}<br />
| assembly = {{{assembly13|}}}<br />
| chancellor = {{{chancellor13|}}}<br />
| co-leader = {{{co-leader13|}}}<br />
| constituency_{{#if:{{{constituency_AM13|}}}|AM|MP}} = {{#if: {{{constituency_AM13|}}} | {{{constituency_AM13}}} | {{{constituency_MP13|}}} }}<br />
| constituency = {{{constituency13|}}}<br />
| convocation = {{{convocation13|}}}<br />
| country = {{{country13|}}}<br />
| deputy = {{{deputy13|}}}<br />
| district = {{{district13|}}}<br />
| firstminister = {{{firstminister13|}}}<br />
| governor-general = {{{governor-general13|}}}<br />
| governor_general = {{{governor_general13|}}}<br />
| governor = {{{governor13|}}}<br />
| jr/sr = {{{jr/sr13|}}}<br />
| jr/sr and state = {{{jr/sr and state13|}}}<br />
| leader = {{{leader13|}}}<br />
| legislature = {{{legislature13|}}}<br />
| lieutenant_governor = {{{lieutenant_governor13|}}}<br />
| lieutenant = {{{lieutenant13|}}}<br />
| minister_from = {{{minister_from13|}}}<br />
| minority_floor_leader = {{{minority_floor_leader13|}}}<br />
| majority_floor_leader = {{{majority_floor_leader13|}}}<br />
| majority_leader = {{#if: {{{majorityleader13|}}} | {{{majorityleader13}}} | {{{majority_leader13|}}} }}<br />
| majority = {{{majority13|}}}<br />
| minister = {{{minister13|}}}<br />
| minority_leader = {{#if: {{{minorityleader13|}}} | {{{minorityleader13}}} | {{{minority_leader13|}}} }}<br />
| monarch = {{{monarch13|}}}<br />
| nominator = {{{nominator13|}}}<br />
| office = {{{office13|}}}<br />
| order = {{{order13|}}}<br />
| parliament = {{{parliament13|}}}<br />
| parliamentarygroup = {{{parliamentarygroup13|}}}<br />
| predecessor = {{{predecessor13|}}}<br />
| preceding = {{{preceding13|}}}<br />
| preceded = {{{preceded13|}}}<br />
| premier = {{{premier13|}}}<br />
| president = {{{president13|}}}<br />
| primeminister = {{{primeminister13|}}}<br />
| riding = {{{riding13|}}}<br />
| state_assembly = {{{state_assembly13|}}}<br />
| state_delegate = {{{state_delegate13|}}}<br />
| state_house = {{{state_house13|}}}<br />
| state_legislature = {{{state_legislature13|}}}<br />
| state_senate = {{{state_senate13|}}}<br />
| state = {{{state13|}}}<br />
| succeeded = {{{succeeded13|}}}<br />
| succeeding = {{{succeeding13|}}}<br />
| successor = {{{successor13|}}}<br />
| taoiseach = {{{taoiseach13|}}}<br />
| termlabel = {{{term_label13|{{{termlabel13|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend13|}}}|{{{termend13}}}|{{{term_end13|}}}}}<br />
| termstart = {{#if:{{{termstart13|}}}|{{{termstart13}}}|{{{term_start13|}}}}}<br />
| term = {{{term13|}}}<br />
| title = {{{title13|}}}<br />
| vicegovernor = {{{vicegovernor13|}}}<br />
| vicepresident = {{{vicepresident13|}}}<br />
| vicepremier = {{{vicepremier13|}}}<br />
| viceprimeminister = {{{viceprimeminister13|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term13|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname14|}}}<br />
| 1namedata = {{{1namedata14|}}}<br />
| 2blankname = {{{2blankname14|}}}<br />
| 2namedata = {{{2namedata14|}}}<br />
| 3blankname = {{{3blankname14|}}}<br />
| 3namedata = {{{3namedata14|}}}<br />
| 4blankname = {{{4blankname14|}}}<br />
| 4namedata = {{{4namedata14|}}}<br />
| 5blankname = {{{5blankname14|}}}<br />
| 5namedata = {{{5namedata14|}}}<br />
| alongside = {{{alongside14|}}}<br />
| ambassador_from = {{{ambassador_from14|}}}<br />
| appointer = {{#if: {{{appointer14|}}} | {{{appointer14}}} | {{{appointed14|}}} }}<br />
| assembly = {{{assembly14|}}}<br />
| chancellor = {{{chancellor14|}}}<br />
| co-leader = {{{co-leader14|}}}<br />
| constituency_{{#if:{{{constituency_AM14|}}}|AM|MP}} = {{#if: {{{constituency_AM14|}}} | {{{constituency_AM14}}} | {{{constituency_MP14|}}} }}<br />
| constituency = {{{constituency14|}}}<br />
| convocation = {{{convocation14|}}}<br />
| country = {{{country14|}}}<br />
| deputy = {{{deputy14|}}}<br />
| district = {{{district14|}}}<br />
| firstminister = {{{firstminister14|}}}<br />
| governor-general = {{{governor-general14|}}}<br />
| governor_general = {{{governor_general14|}}}<br />
| governor = {{{governor14|}}}<br />
| jr/sr = {{{jr/sr14|}}}<br />
| jr/sr and state = {{{jr/sr and state14|}}}<br />
| leader = {{{leader14|}}}<br />
| legislature = {{{legislature14|}}}<br />
| lieutenant_governor = {{{lieutenant_governor14|}}}<br />
| lieutenant = {{{lieutenant14|}}}<br />
| minister_from = {{{minister_from14|}}}<br />
| minority_floor_leader = {{{minority_floor_leader14|}}}<br />
| majority_floor_leader = {{{majority_floor_leader14|}}}<br />
| majority_leader = {{#if: {{{majorityleader14|}}} | {{{majorityleader14}}} | {{{majority_leader14|}}} }}<br />
| majority = {{{majority14|}}}<br />
| minister = {{{minister14|}}}<br />
| minority_leader = {{#if: {{{minorityleader14|}}} | {{{minorityleader14}}} | {{{minority_leader14|}}} }}<br />
| monarch = {{{monarch14|}}}<br />
| nominator = {{{nominator14|}}}<br />
| office = {{{office14|}}}<br />
| order = {{{order14|}}}<br />
| parliament = {{{parliament14|}}}<br />
| parliamentarygroup = {{{parliamentarygroup14|}}}<br />
| predecessor = {{{predecessor14|}}}<br />
| preceding = {{{preceding14|}}}<br />
| preceded = {{{preceded14|}}}<br />
| premier = {{{premier14|}}}<br />
| president = {{{president14|}}}<br />
| primeminister = {{{primeminister14|}}}<br />
| riding = {{{riding14|}}}<br />
| state_assembly = {{{state_assembly14|}}}<br />
| state_delegate = {{{state_delegate14|}}}<br />
| state_house = {{{state_house14|}}}<br />
| state_legislature = {{{state_legislature14|}}}<br />
| state_senate = {{{state_senate14|}}}<br />
| state = {{{state14|}}}<br />
| succeeded = {{{succeeded14|}}}<br />
| succeeding = {{{succeeding14|}}}<br />
| successor = {{{successor14|}}}<br />
| taoiseach = {{{taoiseach14|}}}<br />
| termlabel = {{{term_label14|{{{termlabel14|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend14|}}}|{{{termend14}}}|{{{term_end14|}}}}}<br />
| termstart = {{#if:{{{termstart14|}}}|{{{termstart14}}}|{{{term_start14|}}}}}<br />
| term = {{{term14|}}}<br />
| title = {{{title14|}}}<br />
| vicegovernor = {{{vicegovernor14|}}}<br />
| vicepresident = {{{vicepresident14|}}}<br />
| vicepremier = {{{vicepremier14|}}}<br />
| viceprimeminister = {{{viceprimeminister14|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term14|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname15|}}}<br />
| 1namedata = {{{1namedata15|}}}<br />
| 2blankname = {{{2blankname15|}}}<br />
| 2namedata = {{{2namedata15|}}}<br />
| 3blankname = {{{3blankname15|}}}<br />
| 3namedata = {{{3namedata15|}}}<br />
| 4blankname = {{{4blankname15|}}}<br />
| 4namedata = {{{4namedata15|}}}<br />
| 5blankname = {{{5blankname15|}}}<br />
| 5namedata = {{{5namedata15|}}}<br />
| alongside = {{{alongside15|}}}<br />
| ambassador_from = {{{ambassador_from15|}}}<br />
| appointer = {{#if: {{{appointer15|}}} | {{{appointer15}}} | {{{appointed15|}}} }}<br />
| assembly = {{{assembly15|}}}<br />
| chancellor = {{{chancellor15|}}}<br />
| co-leader = {{{co-leader15|}}}<br />
| constituency_{{#if:{{{constituency_AM15|}}}|AM|MP}} = {{#if: {{{constituency_AM15|}}} | {{{constituency_AM15}}} | {{{constituency_MP15|}}} }}<br />
| constituency = {{{constituency15|}}}<br />
| convocation = {{{convocation15|}}}<br />
| country = {{{country15|}}}<br />
| deputy = {{{deputy15|}}}<br />
| district = {{{district15|}}}<br />
| firstminister = {{{firstminister15|}}}<br />
| governor-general = {{{governor-general15|}}}<br />
| governor_general = {{{governor_general15|}}}<br />
| governor = {{{governor15|}}}<br />
| jr/sr = {{{jr/sr15|}}}<br />
| jr/sr and state = {{{jr/sr and state15|}}}<br />
| leader = {{{leader15|}}}<br />
| legislature = {{{legislature15|}}}<br />
| lieutenant_governor = {{{lieutenant_governor15|}}}<br />
| lieutenant = {{{lieutenant15|}}}<br />
| minister_from = {{{minister_from15|}}}<br />
| minority_floor_leader = {{{minority_floor_leader15|}}}<br />
| majority_floor_leader = {{{majority_floor_leader15|}}}<br />
| majority_leader = {{#if: {{{majorityleader15|}}} | {{{majorityleader15}}} | {{{majority_leader15|}}} }}<br />
| majority = {{{majority15|}}}<br />
| minister = {{{minister15|}}}<br />
| minority_leader = {{#if: {{{minorityleader15|}}} | {{{minorityleader15}}} | {{{minority_leader15|}}} }}<br />
| monarch = {{{monarch15|}}}<br />
| nominator = {{{nominator15|}}}<br />
| office = {{{office15|}}}<br />
| order = {{{order15|}}}<br />
| parliament = {{{parliament15|}}}<br />
| parliamentarygroup = {{{parliamentarygroup15|}}}<br />
| predecessor = {{{predecessor15|}}}<br />
| preceding = {{{preceding15|}}}<br />
| preceded = {{{preceded15|}}}<br />
| premier = {{{premier15|}}}<br />
| president = {{{president15|}}}<br />
| primeminister = {{{primeminister15|}}}<br />
| riding = {{{riding15|}}}<br />
| state_assembly = {{{state_assembly15|}}}<br />
| state_delegate = {{{state_delegate15|}}}<br />
| state_house = {{{state_house15|}}}<br />
| state_legislature = {{{state_legislature15|}}}<br />
| state_senate = {{{state_senate15|}}}<br />
| state = {{{state15|}}}<br />
| succeeded = {{{succeeded15|}}}<br />
| succeeding = {{{succeeding15|}}}<br />
| successor = {{{successor15|}}}<br />
| taoiseach = {{{taoiseach15|}}}<br />
| termlabel = {{{term_label15|{{{termlabel15|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend15|}}}|{{{termend15}}}|{{{term_end15|}}}}}<br />
| termstart = {{#if:{{{termstart15|}}}|{{{termstart15}}}|{{{term_start15|}}}}}<br />
| term = {{{term15|}}}<br />
| title = {{{title15|}}}<br />
| vicegovernor = {{{vicegovernor15|}}}<br />
| vicepresident = {{{vicepresident15|}}}<br />
| vicepremier = {{{vicepremier15|}}}<br />
| viceprimeminister = {{{viceprimeminister15|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term15|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname16|}}}<br />
| 1namedata = {{{1namedata16|}}}<br />
| 2blankname = {{{2blankname16|}}}<br />
| 2namedata = {{{2namedata16|}}}<br />
| 3blankname = {{{3blankname16|}}}<br />
| 3namedata = {{{3namedata16|}}}<br />
| 4blankname = {{{4blankname16|}}}<br />
| 4namedata = {{{4namedata16|}}}<br />
| 5blankname = {{{5blankname16|}}}<br />
| 5namedata = {{{5namedata16|}}}<br />
| alongside = {{{alongside16|}}}<br />
| ambassador_from = {{{ambassador_from16|}}}<br />
| appointer = {{#if: {{{appointer16|}}} | {{{appointer16}}} | {{{appointed16|}}} }}<br />
| assembly = {{{assembly16|}}}<br />
| chancellor = {{{chancellor16|}}}<br />
| co-leader = {{{co-leader16|}}}<br />
| constituency_{{#if:{{{constituency_AM16|}}}|AM|MP}} = {{#if: {{{constituency_AM16|}}} | {{{constituency_AM16}}} | {{{constituency_MP16|}}} }}<br />
| constituency = {{{constituency16|}}}<br />
| convocation = {{{convocation16|}}}<br />
| country = {{{country16|}}}<br />
| deputy = {{{deputy16|}}}<br />
| district = {{{district16|}}}<br />
| firstminister = {{{firstminister16|}}}<br />
| governor-general = {{{governor-general16|}}}<br />
| governor_general = {{{governor_general16|}}}<br />
| governor = {{{governor16|}}}<br />
| jr/sr = {{{jr/sr16|}}}<br />
| jr/sr and state = {{{jr/sr and state16|}}}<br />
| leader = {{{leader16|}}}<br />
| legislature = {{{legislature16|}}}<br />
| lieutenant_governor = {{{lieutenant_governor16|}}}<br />
| lieutenant = {{{lieutenant16|}}}<br />
| minister_from = {{{minister_from16|}}}<br />
| minority_floor_leader = {{{minority_floor_leader16|}}}<br />
| majority_floor_leader = {{{majority_floor_leader16|}}}<br />
| majority_leader = {{#if: {{{majorityleader16|}}} | {{{majorityleader16}}} | {{{majority_leader16|}}} }}<br />
| majority = {{{majority16|}}}<br />
| minister = {{{minister16|}}}<br />
| minority_leader = {{#if: {{{minorityleader16|}}} | {{{minorityleader16}}} | {{{minority_leader16|}}} }}<br />
| monarch = {{{monarch16|}}}<br />
| nominator = {{{nominator16|}}}<br />
| office = {{{office16|}}}<br />
| order = {{{order16|}}}<br />
| parliament = {{{parliament16|}}}<br />
| parliamentarygroup = {{{parliamentarygroup16|}}}<br />
| predecessor = {{{predecessor16|}}}<br />
| preceding = {{{preceding16|}}}<br />
| preceded = {{{preceded16|}}}<br />
| premier = {{{premier16|}}}<br />
| president = {{{president16|}}}<br />
| primeminister = {{{primeminister16|}}}<br />
| riding = {{{riding16|}}}<br />
| state_assembly = {{{state_assembly16|}}}<br />
| state_delegate = {{{state_delegate16|}}}<br />
| state_house = {{{state_house16|}}}<br />
| state_legislature = {{{state_legislature16|}}}<br />
| state_senate = {{{state_senate16|}}}<br />
| state = {{{state16|}}}<br />
| succeeded = {{{succeeded16|}}}<br />
| succeeding = {{{succeeding16|}}}<br />
| successor = {{{successor16|}}}<br />
| taoiseach = {{{taoiseach16|}}}<br />
| termlabel = {{{term_label16|{{{termlabel16|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend16|}}}|{{{termend16}}}|{{{term_end16|}}}}}<br />
| termstart = {{#if:{{{termstart16|}}}|{{{termstart16}}}|{{{term_start16|}}}}}<br />
| term = {{{term16|}}}<br />
| title = {{{title16|}}}<br />
| vicegovernor = {{{vicegovernor16|}}}<br />
| vicepresident = {{{vicepresident16|}}}<br />
| vicepremier = {{{vicepremier16|}}}<br />
| viceprimeminister = {{{viceprimeminister16|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term16|}}}<br />
}}}}<br />
<br />
| data19 = {{{module0|}}}<br />
<!----------Personal data----------><br />
| header20 = {{#if:{{{pronunciation|}}}{{{birth_name|{{{birthname|}}}}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{resting_place|{{{restingplace|}}}}}}{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}{{{citizenship|}}}{{{nationality|}}}{{{party|}}}{{{otherparty|}}}{{{spouse|}}}{{{partner|}}}{{{relations|}}}{{{children|}}}{{{parents|}}}{{{mother|}}}{{{father|}}}{{{relatives|}}}{{{residence|}}}{{{education|}}}{{{alma_mater|}}}{{{occupation|}}}{{{profession|}}}{{{known_for|}}}{{{salary|}}}{{{net_worth|}}}{{{cabinet|}}}{{{committees|}}}{{{portfolio|}}}{{{awards|}}}{{{data1|}}}{{{data2|}}}{{{data3|}}}{{{data4|}}}{{{data5|}}}|Informasi pribadi}}<br />
| label21 = Pengucapan<br />
| data21 = {{{pronunciation|}}}<br />
<br />
| label22 = Lahir<br />
| data22 = {{br separated entries<br />
|1 = {{#if:{{{birth_name|{{{birthname|}}}}}}|<span class="nickname">{{{birth_name|{{{birthname}}}}}}</span>}}<br />
|2 = {{{birth_date|}}}<br />
|3 = {{{birth_place|}}}<br />
}}<br />
<br />
| label23 = Meninggal dunia<br />
| data23 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}<br />
<br />
| label24 = Sebab&nbsp;kematian<br />
| data24 = {{{death_cause|}}}<br />
<br />
| label25 = Makam<br />
| class25 = label<br />
| data25 = {{br separated entries|{{{resting_place|{{{restingplace|}}}}}}|{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}}}<br />
<br />
| label26 = Kewarganegaraan<br />
| data26 = {{{citizenship|}}}<br />
<br />
| label27 = Kebangsaan<br />
| data27 = {{{nationality|}}}<br />
<br />
| label28 = Partai politik<br />
| data28 = {{#switch:{{{party|}}}<br />
| =<br />
| [[Partai Demokrat Amerika Serikat|Demokrat]]<br />
| [[Partai Demokrat (Amerika Serikat)|Demokratik]]<br />
| [[Partai Demokrat (Amerika Serikat)|Demokrat]] = [[Partai Demokrat (Amerika Serikat)|Demokrat]]<br />
| [[Partai Republik (Amerika Serikat)|Republik]]<br />
| [[Partai Republik Amerika Serikat]]<br />
| [[Partai Republik Amerika Serikat|Republik]]<br />
| [[Partai Republik (Amerika Serikat)|Partai Republik]] = [[Partai Republik (Amerika Serikat)|Republik]]<br />
| [[Partai Konservatif (Britania Raya)|Partai Konservatif]]<br />
| [[Partai Konservatif (Britania Raya)|Konservatif]] = [[Partai Konservatif (Britania Raya)|Konservatif]]<br />
| [[Partai Buruh (Britania Raya)|Partai Buruh]]<br />
| [[Partai Buruh (Britania Raya)|Buruh]] = [[Partai Buruh (Britania Raya)|Buruh]]<br />
| [[Partai Konservatif Kanada|Partai Konservatif]]<br />
| [[Partai Konservatif Kanada|Konservatif]] = [[Partai Konservatif Kanada|Konservatif]]<br />
| [[Partai Liberal Kanada|Partai Liberal]]<br />
| [[Partai Liberal Kanada|Liberal]] = [[Partai Liberal Kanada|Liberal]]<br />
| KMT<br />
| Kuomintang<br />
| [[KMT]]<br />
| [[Kuomintang|KMT]]<br />
| [[Kuomintang]]<br />
| Kuomintang (KMT)<br />
| [[Kuomintang]] (KMT)<br />
| {{KMT}} (KMT)<br />
| {{KMT}} = [[Kuomintang]]<br />
| DPP<br />
| [[Partai Progresif Demokratik|DPP]]<br />
| [[Partai Progresif Demokratik]]<br />
| {{DPP}} = [[Partai Progresif Demokratik]]<br />
| #default = {{{party|}}} {{main other|{{#invoke:Officeholder party tracking|tracking|party={{{party|}}}}}}}}}<br />
<br />
| label29 = Afiliasi<br />politik lain<br />
| data29 = {{{otherparty|}}}<br />
<br />
| label30 = Tinggi<br />
| data30 = {{#if:{{{height|}}}|{{infobox person/height|{{{height|}}}}}}}<br />
<br />
| label31 = Pasangan<br />
| data31 = {{{spouse|}}}<br />
<br />
| label32 = Pasangan serumah<br />
| data32 = {{{partner|}}}<br />
<br />
| label33 = Hubungan<br />
| data33 = {{{relations|}}}<br />
<br />
| label34 = Anak<br />
| data34 = {{{children|}}}<br />
<br />
| label35 = Orang tua<br />
| data35 = {{{parents|}}}<br />
<br />
| label36 = Ibu<br />
| data36 = {{{mother|}}}<br />
<br />
| label37 = Bapak<br />
| data37 = {{{father|}}}<br />
<br />
| label38 = Kerabat<br />
| data38 = {{{relatives|}}}<br />
<br />
| label39 = Tempat tinggal<br />
| class39 = {{#if:{{{death_date|}}}{{{death_place|}}}||label}}<br />
| data39 = {{{residence|}}}<br />
<br />
| label40 = Pendidikan<br />
| data40 = {{{education|}}}<br />
<br />
| label41 = [[Alma mater]]<br />
| data41 = {{{alma_mater|}}}<br />
<br />
| label42 = Pekerjaan<br />
| data42 = {{{occupation|}}}<br />
<br />
| label43 = Profesi<br />
| data43 = {{{profession|}}}<br />
<br />
| label44 = Dikenal karena<br />
| data44 = {{{known_for|}}}<br />
<br />
| label45 = Upah<br />
| data45 = {{{salary|}}}<br />
<br />
| label46 = Kekayaan bersih<br />
| data46 = {{{net_worth|}}}<br />
<br />
| label47 = Kabinet<br />
| data47 = {{{cabinet|}}}<br />
<br />
| label48 = Komite<br />
| data48 = {{{committees|}}}<br />
<br />
| label49 = Portofolio<br />
| data49 = {{{portfolio|}}}<!--<br />
| label50 = Agama<br />
| data50 = {{{religion|}}}--><br />
<br />
| label51 = {{#if:{{{mawards|}}}|Penghargaan|Penghargaan sipil}}<br />
| data51 = {{{awards|}}}<br />
<br />
| label52 = {{{blank1}}}<br />
| data52 = {{{data1|}}}<br />
<br />
| label53 = {{{blank2}}}<br />
| data53 = {{{data2|}}}<br />
<br />
| label54 = {{{blank3}}}<br />
| data54 = {{{data3|}}}<br />
<br />
| label55 = {{{blank4}}}<br />
| data55 = {{{data4|}}}<br />
<br />
| label56 = {{{blank5}}}<br />
| data56 = {{{data5|}}}<br />
<br />
| label57 = Tanda tangan<br />
| data57 = {{#if:{{{signature|}}}|[[File:{{{signature}}}|128x80px|alt={{{signature_alt|}}}|Tanda tangan {{PAGENAME}}]]}}<br />
<br />
| label58 = Situs web<br />
| data58 = {{{website|}}}<br />
<br />
| header59 = {{#if:{{{allegiance|}}}{{{branch|}}}{{{serviceyears|}}}{{{rank|}}}{{{unit|}}}{{{commands|}}}{{{battles|}}}{{{military_blank1|}}}|Dinas militer}}<br />
<br />
| label60 = Julukan<br />
| data60 = {{{nickname|}}}<br />
<br />
| label61 = Pihak<br />
| data61 = {{{allegiance|}}}<br />
<br />
| label62 = Dinas/cabang<br />
| data62 = {{{branch|}}}<br />
<br />
| label63 = Masa dinas<br />
| data63 = {{{serviceyears|}}}<br />
<br />
| label64 = Pangkat<br />
| data64 = {{{rank|}}}<br />
<br />
| label65 = Satuan<br />
| data65 = {{{unit|}}}<br />
<br />
| label66 = Komando<br />
| data66 = {{{commands|}}}<br />
<br />
| label67 = Pertempuran/perang<br />
| data67 = {{{battles|}}}<br />
<br />
| label68 = {{#if:{{{awards|}}}|Penghargaan|Penghargaan militer}}<br />
| data68 = {{{mawards|}}}<br />
<br />
| label69 = {{{military_blank1}}}<br />
| data69 = {{{military_data1|}}}<br />
<br />
| label70 = {{{military_blank2}}}<br />
| data70 = {{{military_data2|}}}<br />
<br />
| label71 = {{{military_blank3}}}<br />
| data71 = {{{military_data3|}}}<br />
<br />
| label72 = {{{military_blank4}}}<br />
| data72 = {{{military_data4|}}}<br />
<br />
| label73 = {{{military_blank5}}}<br />
| data73 = {{{military_data5|}}}<br />
<br />
| data74 = {{{module|}}}<br />
| data75 = {{{module2|}}}<br />
| data76 = {{{module3|}}}<br />
| data77 = {{{module4|}}}<br />
| data78 = {{{module5|}}}<br />
| data79 = {{{footnotes|}}}<br />
| belowstyle = border-top: 1px solid right; font-size: 90%<br />
| below = {{#if:{{{date|}}}| Per {{{date}}}{{#if:{{{year|}}}|, {{{year}}}}}{{#if:{{{source|}}}|<br />Sumber: [{{{source}}}]}} }}<br />
<br />
}}{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]<br />
}}{{#if:{{{1blankname0|}}}{{{1namedata0|}}}{{{2blankname0|}}}{{{2namedata0|}}}{{{3blankname0|}}}{{{3namedata0|}}}{{{4blankname0|}}}{{{4namedata0|}}}{{{5blankname0|}}}{{{5namedata0|}}}{{{alongside0|}}}{{{ambassador_from0|}}}{{{appointer0|}}}{{{assembly0|}}}{{{chancellor0|}}}{{{co-leader0|}}}{{{constituency_AM0|}}}{{{constituency0|}}}{{{country0|}}}{{{deputy0|}}}{{{district0|}}}{{{firstminister0|}}}{{{governor-general0|}}}{{{governor0|}}}{{{jr/sr0|}}}{{{jr/sr and state0|}}}{{{leader0|}}}{{{legislature0|}}}{{{lieutenant_governor0|}}}{{{lieutenant0|}}}{{{minister_from0|}}}{{{minority_floor_leader0|}}}{{{majority_floor_leader0|}}}{{{majorityleader0|}}}{{{majority0|}}}{{{minister0|}}}{{{minorityleader0|}}}{{{monarch0|}}}{{{nominator0|}}}{{{office0|}}}{{{order0|}}}{{{parliament0|}}}{{{predecessor0|}}}{{{preceding0|}}}{{{preceded0|}}}{{{premier0|}}}{{{president0|}}}{{{primeminister0|}}}{{{riding0|}}}{{{state_assembly0|}}}{{{state_delegate0|}}}{{{state_house0|}}}{{{state_legislature0|}}}{{{state_senate0|}}}{{{state0|}}}{{{succeeded0|}}}{{{succeeding0|}}}{{{successor0|}}}{{{taoiseach0|}}}{{{termend0|}}}{{{termstart0|}}}{{{term0|}}}{{{title0|}}}{{{vicegovernor0|}}}{{{vicepresident0|}}}{{{vicepremier0|}}}{{{viceprimeminister0|}}}{{{prior_term0|}}}{{{appointe0|}}}{{{constituency_0|}}}|[[Category:Pages using infobox officeholder with office0]]<br />
}}{{#if:{{{speaker|}}}|{{#if:{{{nominee|}}}{{{candidate|}}}||[[Category:Pages using infobox officeholder with speaker and without nominee or candidate]]}}<br />
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox officeholder with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox officeholder]] with unknown parameter "_VALUE_"|ignoreblank=y| 1blankname | 1blankname1 | 1blankname10 | 1blankname11 | 1blankname12 | 1blankname13 | 1blankname14 | 1blankname15 | 1blankname16 | 1blankname2 | 1blankname3 | 1blankname4 | 1blankname5 | 1blankname6 | 1blankname7 | 1blankname8 | 1blankname9 | 1namedata | 1namedata1 | 1namedata10 | 1namedata11 | 1namedata12 | 1namedata13 | 1namedata14 | 1namedata15 | 1namedata16 | 1namedata2 | 1namedata3 | 1namedata4 | 1namedata5 | 1namedata6 | 1namedata7 | 1namedata8 | 1namedata9 | 2blankname | 2blankname1 | 2blankname10 | 2blankname11 | 2blankname12 | 2blankname13 | 2blankname14 | 2blankname15 | 2blankname16 | 2blankname2 | 2blankname3 | 2blankname4 | 2blankname5 | 2blankname6 | 2blankname7 | 2blankname8 | 2blankname9 | 2namedata | 2namedata1 | 2namedata10 | 2namedata11 | 2namedata12 | 2namedata13 | 2namedata14 | 2namedata15 | 2namedata16 | 2namedata2 | 2namedata3 | 2namedata4 | 2namedata5 | 2namedata6 | 2namedata7 | 2namedata8 | 2namedata9 | 3blankname | 3blankname1 | 3blankname10 | 3blankname11 | 3blankname12 | 3blankname13 | 3blankname14 | 3blankname15 | 3blankname16 | 3blankname2 | 3blankname3 | 3blankname4 | 3blankname5 | 3blankname6 | 3blankname7 | 3blankname8 | 3blankname9 | 3namedata | 3namedata1 | 3namedata10 | 3namedata11 | 3namedata12 | 3namedata13 | 3namedata14 | 3namedata15 | 3namedata16 | 3namedata2 | 3namedata3 | 3namedata4 | 3namedata5 | 3namedata6 | 3namedata7 | 3namedata8 | 3namedata9 | 4blankname | 4blankname1 | 4blankname10 | 4blankname11 | 4blankname12 | 4blankname13 | 4blankname14 | 4blankname15 | 4blankname16 | 4blankname2 | 4blankname3 | 4blankname4 | 4blankname5 | 4blankname6 | 4blankname7 | 4blankname8 | 4blankname9 | 4namedata | 4namedata1 | 4namedata10 | 4namedata11 | 4namedata12 | 4namedata13 | 4namedata14 | 4namedata15 | 4namedata16 | 4namedata2 | 4namedata3 | 4namedata4 | 4namedata5 | 4namedata6 | 4namedata7 | 4namedata8 | 4namedata9 | 5blankname | 5blankname1 | 5blankname10 | 5blankname11 | 5blankname12 | 5blankname13 | 5blankname14 | 5blankname15 | 5blankname16 | 5blankname2 | 5blankname3 | 5blankname4 | 5blankname5 | 5blankname6 | 5blankname7 | 5blankname8 | 5blankname9 | 5namedata | 5namedata1 | 5namedata10 | 5namedata11 | 5namedata12 | 5namedata13 | 5namedata14 | 5namedata15 | 5namedata16 | 5namedata2 | 5namedata3 | 5namedata4 | 5namedata5 | 5namedata6 | 5namedata7 | 5namedata8 | 5namedata9 | allegiance | alma_mater | alongside | alongside1 | alongside10 | alongside11 | alongside12 | alongside13 | alongside14 | alongside15 | alongside16 | alongside2 | alongside3 | alongside4 | alongside5 | alongside6 | alongside7 | alongside8 | alongside9 | alt | ambassador_from | ambassador_from1 | ambassador_from10 | ambassador_from11 | ambassador_from12 | ambassador_from13 | ambassador_from14 | ambassador_from15 | ambassador_from16 | ambassador_from2 | ambassador_from3 | ambassador_from4 | ambassador_from5 | ambassador_from6 | ambassador_from7 | ambassador_from8 | ambassador_from9 | appointed | appointed1 | appointed10 | appointed11 | appointed12 | appointed13 | appointed14 | appointed15 | appointed16 | appointed2 | appointed3 | appointed4 | appointed5 | appointed6 | appointed7 | appointed8 | appointed9 | appointer | appointer1 | appointer10 | appointer11 | appointer12 | appointer13 | appointer14 | appointer15 | appointer16 | appointer2 | appointer3 | appointer4 | appointer5 | appointer6 | appointer7 | appointer8 | appointer9 | assembly | assembly1 | assembly10 | assembly11 | assembly12 | assembly13 | assembly14 | assembly15 | assembly16 | assembly2 | assembly3 | assembly4 | assembly5 | assembly6 | assembly7 | assembly8 | assembly9 | awards | battles | birth_date | birth_name | birth_place | birthname | blank1 | blank2 | blank3 | blank4 | blank5 | bodyclass | branch | cabinet | candidate | caption | chancellor | chancellor1 | chancellor10 | chancellor11 | chancellor12 | chancellor13 | chancellor14 | chancellor15 | chancellor16 | chancellor2 | chancellor3 | chancellor4 | chancellor5 | chancellor6 | chancellor7 | chancellor8 | chancellor9 | children | citizenship | co-leader | co-leader1 | co-leader10 | co-leader11 | co-leader12 | co-leader13 | co-leader14 | co-leader15 | co-leader16 | co-leader2 | co-leader3 | co-leader4 | co-leader5 | co-leader6 | co-leader7 | co-leader8 | co-leader9 | commands | committees | constituency | constituency_AM | constituency_AM1 | constituency_AM10 | constituency_AM11 | constituency_AM12 | constituency_AM13 | constituency_AM14 | constituency_AM15 | constituency_AM16 | constituency_AM2 | constituency_AM3 | constituency_AM4 | constituency_AM5 | constituency_AM6 | constituency_AM7 | constituency_AM8 | constituency_AM9 | constituency_MP | constituency_MP1 | constituency_MP10 | constituency_MP11 | constituency_MP12 | constituency_MP13 | constituency_MP14 | constituency_MP15 | constituency_MP16 | constituency_MP2 | constituency_MP3 | constituency_MP4 | constituency_MP5 | constituency_MP6 | constituency_MP7 | constituency_MP8 | constituency_MP9 | constituency1 | constituency10 | constituency11 | constituency12 | constituency13 | constituency14 | constituency15 | constituency16 | constituency2 | constituency3 | constituency4 | constituency5 | constituency6 | constituency7 | constituency8 | constituency9 | convocation | convocation1 | convocation2 | convocation3 | convocation4 | convocation5 | convocation6 | convocation7 | convocation8 | convocation9 | convocation10 | convocation11 | convocation12 | convocation13 | convocation14 | convocation15 | convocation16 | country | country1 | country10 | country11 | country12 | country13 | country14 | country15 | country16 | country2 | country3 | country4 | country5 | country6 | country7 | country8 | country9 | data1 | data2 | data3 | data4 | data5 | date | death_cause | death_date | death_place | deputy | deputy1 | deputy10 | deputy11 | deputy12 | deputy13 | deputy14 | deputy15 | deputy16 | deputy2 | deputy3 | deputy4 | deputy5 | deputy6 | deputy7 | deputy8 | deputy9 | district | district1 | district10 | district11 | district12 | district13 | district14 | district15 | district16 | district2 | district3 | district4 | district5 | district6 | district7 | district8 | district9 | education | election_date | embed | father | firstminister | firstminister1 | firstminister10 | firstminister11 | firstminister12 | firstminister13 | firstminister14 | firstminister15 | firstminister16 | firstminister2 | firstminister3 | firstminister4 | firstminister5 | firstminister6 | firstminister7 | firstminister8 | firstminister9 | footnotes | governor | governor_general | governor_general1 | governor_general10 | governor_general11 | governor_general12 | governor_general13 | governor_general14 | governor_general15 | governor_general16 | governor_general2 | governor_general3 | governor_general4 | governor_general5 | governor_general6 | governor_general7 | governor_general8 | governor_general9 | governor-general | governor-general1 | governor-general10 | governor-general11 | governor-general12 | governor-general13 | governor-general14 | governor-general15 | governor-general16 | governor-general2 | governor-general3 | governor-general4 | governor-general5 | governor-general6 | governor-general7 | governor-general8 | governor-general9 | governor1 | governor10 | governor11 | governor12 | governor13 | governor14 | governor15 | governor16 | governor2 | governor3 | governor4 | governor5 | governor6 | governor7 | governor8 | governor9 | height | honorific_prefix | honorific-prefix | honorific_suffix | honorific-suffix | image | image name | image_size | imagesize | image_upright | incumbent | jr/sr | jr/sr and state | jr/sr and state1 | jr/sr and state10 | jr/sr and state11 | jr/sr and state12 | jr/sr and state13 | jr/sr and state14 | jr/sr and state15 | jr/sr and state16 | jr/sr and state2 | jr/sr and state3 | jr/sr and state4 | jr/sr and state5 | jr/sr and state6 | jr/sr and state7 | jr/sr and state8 | jr/sr and state9 | jr/sr1 | jr/sr10 | jr/sr11 | jr/sr12 | jr/sr13 | jr/sr14 | jr/sr15 | jr/sr16 | jr/sr2 | jr/sr3 | jr/sr4 | jr/sr5 | jr/sr6 | jr/sr7 | jr/sr8 | jr/sr9 | known_for | leader | leader1 | leader10 | leader11 | leader12 | leader13 | leader14 | leader15 | leader16 | leader2 | leader3 | leader4 | leader5 | leader6 | leader7 | leader8 | leader9 | legislature | legislature1 | legislature10 | legislature11 | legislature12 | legislature13 | legislature14 | legislature15 | legislature16 | legislature2 | legislature3 | legislature4 | legislature5 | legislature6 | legislature7 | legislature8 | legislature9 | lieutenant | lieutenant_governor | lieutenant_governor1 | lieutenant_governor10 | lieutenant_governor11 | lieutenant_governor12 | lieutenant_governor13 | lieutenant_governor14 | lieutenant_governor15 | lieutenant_governor16 | lieutenant_governor2 | lieutenant_governor3 | lieutenant_governor4 | lieutenant_governor5 | lieutenant_governor6 | lieutenant_governor7 | lieutenant_governor8 | lieutenant_governor9 | lieutenant1 | lieutenant10 | lieutenant11 | lieutenant12 | lieutenant13 | lieutenant14 | lieutenant15 | lieutenant16 | lieutenant2 | lieutenant3 | lieutenant4 | lieutenant5 | lieutenant6 | lieutenant7 | lieutenant8 | lieutenant9 | mainwidth | majority | majority_floor_leader | majority_floor_leader1 | majority_floor_leader10 | majority_floor_leader11 | majority_floor_leader12 | majority_floor_leader13 | majority_floor_leader14 | majority_floor_leader15 | majority_floor_leader16 | majority_floor_leader2 | majority_floor_leader3 | majority_floor_leader4 | majority_floor_leader5 | majority_floor_leader6 | majority_floor_leader7 | majority_floor_leader8 | majority_floor_leader9 | majority_leader | majority_leader1 | majority_leader10 | majority_leader11 | majority_leader12 | majority_leader13 | majority_leader14 | majority_leader15 | majority_leader16 | majority_leader2 | majority_leader3 | majority_leader4 | majority_leader5 | majority_leader6 | majority_leader7 | majority_leader8 | majority_leader9 | majority1 | majority10 | majority11 | majority12 | majority13 | majority14 | majority15 | majority16 | majority2 | majority3 | majority4 | majority5 | majority6 | majority7 | majority8 | majority9 | majorityleader | majorityleader1 | majorityleader10 | majorityleader11 | majorityleader12 | majorityleader13 | majorityleader14 | majorityleader15 | majorityleader16 | majorityleader2 | majorityleader3 | majorityleader4 | majorityleader5 | majorityleader6 | majorityleader7 | majorityleader8 | majorityleader9 | mawards | military_blank1 | military_blank2 | military_blank3 | military_blank4 | military_blank5 | military_data1 | military_data2 | military_data3 | military_data4 | military_data5 | minister | minister_from | minister_from1 | minister_from10 | minister_from11 | minister_from12 | minister_from13 | minister_from14 | minister_from15 | minister_from16 | minister_from2 | minister_from3 | minister_from4 | minister_from5 | minister_from6 | minister_from7 | minister_from8 | minister_from9 | minister1 | minister10 | minister11 | minister12 | minister13 | minister14 | minister15 | minister16 | minister2 | minister3 | minister4 | minister5 | minister6 | minister7 | minister8 | minister9 | minority_floor_leader | minority_floor_leader1 | minority_floor_leader10 | minority_floor_leader11 | minority_floor_leader12 | minority_floor_leader13 | minority_floor_leader14 | minority_floor_leader15 | minority_floor_leader16 | minority_floor_leader2 | minority_floor_leader3 | minority_floor_leader4 | minority_floor_leader5 | minority_floor_leader6 | minority_floor_leader7 | minority_floor_leader8 | minority_floor_leader9 | minority_leader | minority_leader1 | minority_leader10 | minority_leader11 | minority_leader12 | minority_leader13 | minority_leader14 | minority_leader15 | minority_leader16 | minority_leader2 | minority_leader3 | minority_leader4 | minority_leader5 | minority_leader6 | minority_leader7 | minority_leader8 | minority_leader9 | minorityleader | minorityleader1 | minorityleader10 | minorityleader11 | minorityleader12 | minorityleader13 | minorityleader14 | minorityleader15 | minorityleader16 | minorityleader2 | minorityleader3 | minorityleader4 | minorityleader5 | minorityleader6 | minorityleader7 | minorityleader8 | minorityleader9 | module | module0 | module2 | module3 | module4 | module5 | monarch | monarch1 | monarch10 | monarch11 | monarch12 | monarch13 | monarch14 | monarch15 | monarch16 | monarch2 | monarch3 | monarch4 | monarch5 | monarch6 | monarch7 | monarch8 | monarch9 | mother | name | nationality | native_name | native_name_lang | net_worth | nickname | nominator | nominator1 | nominator10 | nominator11 | nominator12 | nominator13 | nominator14 | nominator15 | nominator16 | nominator2 | nominator3 | nominator4 | nominator5 | nominator6 | nominator7 | nominator8 | nominator9 | nominee | occupation | office | office1 | office10 | office11 | office12 | office13 | office14 | office15 | office16 | office2 | office3 | office4 | office5 | office6 | office7 | office8 | office9 | opponent | order | order1 | order10 | order11 | order12 | order13 | order14 | order15 | order16 | order2 | order3 | order4 | order5 | order6 | order7 | order8 | order9 | otherparty | parents | parliament | parliament1 | parliament10 | parliament11 | parliament12 | parliament13 | parliament14 | parliament15 | parliament16 | parliament2 | parliament3 | parliament4 | parliament5 | parliament6 | parliament7 | parliament8 | parliament9 | parliamentarygroup | parliamentarygroup1 | parliamentarygroup10 | parliamentarygroup11 | parliamentarygroup12 | parliamentarygroup13 | parliamentarygroup14 | parliamentarygroup15 | parliamentarygroup16 | parliamentarygroup2 | parliamentarygroup3 | parliamentarygroup4 | parliamentarygroup5 | parliamentarygroup6 | parliamentarygroup7 | parliamentarygroup8 | parliamentarygroup9 | partner | party | party_election | portfolio | preceded | preceded1 | preceded10 | preceded11 | preceded12 | preceded13 | preceded14 | preceded15 | preceded16 | preceded2 | preceded3 | preceded4 | preceded5 | preceded6 | preceded7 | preceded8 | preceded9 | preceding | preceding1 | preceding10 | preceding11 | preceding12 | preceding13 | preceding14 | preceding15 | preceding16 | preceding2 | preceding3 | preceding4 | preceding5 | preceding6 | preceding7 | preceding8 | preceding9 | predecessor | predecessor1 | predecessor10 | predecessor11 | predecessor12 | predecessor13 | predecessor14 | predecessor15 | predecessor16 | predecessor2 | predecessor3 | predecessor4 | predecessor5 | predecessor6 | predecessor7 | predecessor8 | predecessor9 | premier | premier1 | premier10 | premier11 | premier12 | premier13 | premier14 | premier15 | premier16 | premier2 | premier3 | premier4 | premier5 | premier6 | premier7 | premier8 | premier9 | president | president1 | president10 | president11 | president12 | president13 | president14 | president15 | president16 | president2 | president3 | president4 | president5 | president6 | president7 | president8 | president9 | primeminister | primeminister1 | primeminister10 | primeminister11 | primeminister12 | primeminister13 | primeminister14 | primeminister15 | primeminister16 | primeminister2 | primeminister3 | primeminister4 | primeminister5 | primeminister6 | primeminister7 | primeminister8 | primeminister9 | prior_term | prior_term1 | prior_term10 | prior_term11 | prior_term12 | prior_term13 | prior_term14 | prior_term15 | prior_term16 | prior_term2 | prior_term3 | prior_term4 | prior_term5 | prior_term6 | prior_term7 | prior_term8 | prior_term9 | profession | pronunciation | rank | relations | relatives | residence | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | riding | riding1 | riding10 | riding11 | riding12 | riding13 | riding14 | riding15 | riding16 | riding2 | riding3 | riding4 | riding5 | riding6 | riding7 | riding8 | riding9 | runningmate | salary | serviceyears | signature | signature_alt | smallimage | source | speaker | speaker_office | spouse | state | state_assembly | state_assembly1 | state_assembly10 | state_assembly11 | state_assembly12 | state_assembly13 | state_assembly14 | state_assembly15 | state_assembly16 | state_assembly2 | state_assembly3 | state_assembly4 | state_assembly5 | state_assembly6 | state_assembly7 | state_assembly8 | state_assembly9 | state_delegate | state_delegate1 | state_delegate10 | state_delegate11 | state_delegate12 | state_delegate13 | state_delegate14 | state_delegate15 | state_delegate16 | state_delegate2 | state_delegate3 | state_delegate4 | state_delegate5 | state_delegate6 | state_delegate7 | state_delegate8 | state_delegate9 | state_house | state_house1 | state_house10 | state_house11 | state_house12 | state_house13 | state_house14 | state_house15 | state_house16 | state_house2 | state_house3 | state_house4 | state_house5 | state_house6 | state_house7 | state_house8 | state_house9 | state_legislature | state_legislature1 | state_legislature10 | state_legislature11 | state_legislature12 | state_legislature13 | state_legislature14 | state_legislature15 | state_legislature16 | state_legislature2 | state_legislature3 | state_legislature4 | state_legislature5 | state_legislature6 | state_legislature7 | state_legislature8 | state_legislature9 | state_senate | state_senate1 | state_senate10 | state_senate11 | state_senate12 | state_senate13 | state_senate14 | state_senate15 | state_senate16 | state_senate2 | state_senate3 | state_senate4 | state_senate5 | state_senate6 | state_senate7 | state_senate8 | state_senate9 | state1 | state10 | state11 | state12 | state13 | state14 | state15 | state16 | state2 | state3 | state4 | state5 | state6 | state7 | state8 | state9 | succeeded | succeeded1 | succeeded10 | succeeded11 | succeeded12 | succeeded13 | succeeded14 | succeeded15 | succeeded16 | succeeded2 | succeeded3 | succeeded4 | succeeded5 | succeeded6 | succeeded7 | succeeded8 | succeeded9 | succeeding | succeeding1 | succeeding10 | succeeding11 | succeeding12 | succeeding13 | succeeding14 | succeeding15 | succeeding16 | succeeding2 | succeeding3 | succeeding4 | succeeding5 | succeeding6 | succeeding7 | succeeding8 | succeeding9 | successor | successor1 | successor10 | successor11 | successor12 | successor13 | successor14 | successor15 | successor16 | successor2 | successor3 | successor4 | successor5 | successor6 | successor7 | successor8 | successor9 | taoiseach | taoiseach1 | taoiseach10 | taoiseach11 | taoiseach12 | taoiseach13 | taoiseach14 | taoiseach15 | taoiseach16 | taoiseach2 | taoiseach3 | taoiseach4 | taoiseach5 | taoiseach6 | taoiseach7 | taoiseach8 | taoiseach9 | term | term_end | term_end1 | term_end10 | term_end11 | term_end12 | term_end13 | term_end14 | term_end15 | term_end16 | term_end2 | term_end3 | term_end4 | term_end5 | term_end6 | term_end7 | term_end8 | term_end9 | term_label | term_label1 | term_label10 | term_label11 | term_label12 | term_label13 | term_label14 | term_label15 | term_label16 | term_label2 | term_label3 | term_label4 | term_label5 | term_label6 | term_label7 | term_label8 | term_label9 | term_start | term_start1 | term_start10 | term_start11 | term_start12 | term_start13 | term_start14 | term_start15 | term_start16 | term_start2 | term_start3 | term_start4 | term_start5 | term_start6 | term_start7 | term_start8 | term_start9 | term1 | term10 | term11 | term12 | term13 | term14 | term15 | term16 | term2 | term3 | term4 | term5 | term6 | term7 | term8 | term9 | termend | termend1 | termend10 | termend11 | termend12 | termend13 | termend14 | termend15 | termend16 | termend2 | termend3 | termend4 | termend5 | termend6 | termend7 | termend8 | termend9 | termlabel | termlabel1 | termlabel10 | termlabel11 | termlabel12 | termlabel13 | termlabel14 | termlabel15 | termlabel16 | termlabel2 | termlabel3 | termlabel4 | termlabel5 | termlabel6 | termlabel7 | termlabel8 | termlabel9 | termstart | termstart1 | termstart10 | termstart11 | termstart12 | termstart13 | termstart14 | termstart15 | termstart16 | termstart2 | termstart3 | termstart4 | termstart5 | termstart6 | termstart7 | termstart8 | termstart9 | title | title1 | title10 | title11 | title12 | title13 | title14 | title15 | title16 | title2 | title3 | title4 | title5 | title6 | title7 | title8 | title9 | unit | vicegovernor | vicegovernor1 | vicegovernor10 | vicegovernor11 | vicegovernor12 | vicegovernor13 | vicegovernor14 | vicegovernor15 | vicegovernor16 | vicegovernor2 | vicegovernor3 | vicegovernor4 | vicegovernor5 | vicegovernor6 | vicegovernor7 | vicegovernor8 | vicegovernor9 | vicepremier | vicepremier1 | vicepremier10 | vicepremier11 | vicepremier12 | vicepremier13 | vicepremier14 | vicepremier15 | vicepremier16 | vicepremier2 | vicepremier3 | vicepremier4 | vicepremier5 | vicepremier6 | vicepremier7 | vicepremier8 | vicepremier9 | vicepresident | vicepresident1 | vicepresident10 | vicepresident11 | vicepresident12 | vicepresident13 | vicepresident14 | vicepresident15 | vicepresident16 | vicepresident2 | vicepresident3 | vicepresident4 | vicepresident5 | vicepresident6 | vicepresident7 | vicepresident8 | vicepresident9 | viceprimeminister | viceprimeminister1 | viceprimeminister10 | viceprimeminister11 | viceprimeminister12 | viceprimeminister13 | viceprimeminister14 | viceprimeminister15 | viceprimeminister16 | viceprimeminister2 | viceprimeminister3 | viceprimeminister4 | viceprimeminister5 | viceprimeminister6 | viceprimeminister7 | viceprimeminister8 | viceprimeminister9 | website | width | year }}<noinclude>{{Documentation}}</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Officeholder_party_tracking&diff=851Modul:Officeholder party tracking2019-08-09T03:48:35Z<p>Adminwiki: 1 revisi diimpor: Modul:Officeholder party tracking</p>
<hr />
<div>local p = {}<br />
<br />
function p.tracking(frame)<br />
tcat = 'Category:Pages using infobox officeholder with an atypical party value'<br />
function isblank( val ) <br />
return (val == nil) or val:match('^[%s]*$')<br />
end<br />
local function iswikilink(s)<br />
return s and s ~= ''<br />
end<br />
<br />
local pname = frame.args.party or ''<br />
if isblank(pname) then<br />
return ''<br />
end<br />
pname = mw.text.unstrip(pname)<br />
if pname:match('^%s*%[%[([^%[%]]*)%]%]%s*$') then<br />
return ''<br />
end<br />
tkey = pname:match('^%s*(.-)%s*$')<br />
tkey = mw.ustring.gsub(tkey, '[%[%]|]', '')<br />
tkey = mw.ustring.gsub(tkey, '[^%w\-_ ]', '?')<br />
return '[[' .. tcat .. '|' .. tkey .. ' ]]'<br />
end<br />
<br />
return p</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Trim_leading/doc&diff=849Templat:Trim leading/doc2019-08-09T03:47:10Z<p>Adminwiki: 1 revisi diimpor: Templat:Trim leading</p>
<hr />
<div>{{Documentation subpage}}<br />
<!-- Categories and interwikis go at the bottom of this page. --><br />
<br />
== Penggunaan ==<br />
{{tlx|Trim leading | &lt;input&gt;&nbsp;| &lt;prefix&gt;&nbsp;}}<br />
<br />
Trims up to six instances of &lt;prefix&gt; (such as: 0 or "anti-") from the beginning of &lt;input&gt;. &lt;Prefix&gt; is set to "0" by default (for removing leading zeroes from numbers). Template will not properly work beyond the first whitespace in the input.<br />
<br />
=== Pembatasan ===<br />
* Up to 100 chararacters in the input string. If possible, first check length of input string using {{Tl|Str len|<string>}}. Using strings longer than 100 characters may result in the error '''''"<span style="color:#CC1100">max index is 100 for str_sub</span>"'''''.<br />
* Limited set of characters.<br />
* Snags on whitespace.<br />
* Expensive.<br />
<br />
== Contoh ==<br />
{{tlx|Trim leading |duck duck duck goose&nbsp;|duck }} &rarr; {{Trim leading |duck duck duck goose |duck }}<br />
<br />
{{tlx|Trim leading | duckduckduckgoose&nbsp;|duck}} &rarr; {{Trim leading | duckduckduckgoose |duck}}<br />
<br />
{{tlx|Trim leading | 00000034&nbsp;}} &rarr; {{Trim leading | 00000034 }}<br />
<br />
{{tlx|Trim leading | aaaaaa34 | a&nbsp;}} &rarr; {{Trim leading | aaaaaa34 | a }}<br />
<br />
{{tlx|Trim leading | U+0034 |U+}} &rarr; {{Trim leading | U+0034 |U+}}<br />
<br />
{{tlx|Trim leading |anti-anti-neutrino&nbsp;|anti-}} &rarr; {{Trim leading |anti-anti-neutrino |anti-}}<br />
<br />
== Teknis ==<br />
This template uses parser function {padleft}. It formerly called 6 subtemplates: [[Template:Trim leading/1]], [[Template:Trim leading/2|/2]] ... [[Template:Trim leading/6|/6]], which are all functionally identical, allowing for up to six instantiations of ''prefix'' to be removed.<br />
<br />
== Lihat juga ==<br />
{{string-handling templates}}<br />
<br />
<includeonly><br />
<!-- Categories and interwikis go here: --><br />
[[Kategori:Templat manipulasi string]]<br />
</includeonly></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Strlen_quick&diff=847Templat:Strlen quick2019-08-09T03:47:09Z<p>Adminwiki: 1 revisi diimpor: Templat:Trim leading</p>
<hr />
<div><noinclude><!--<br />
-=============================================================<br />
- Strlen_quick - Get length of a character string quickly<br />
-=============================================================<br />
-- (see NOTES at bottom)<br />
--></noinclude>{{<br />
#ifeq: x{{{1}}}|x{{padleft:{{{1}}}|20}}<br />
| {{#ifeq: x{{{1}}}|x{{padleft:{{{1}}}|30}}<br />
| {{#ifeq: x{{{1}}}|x{{padleft:{{{1}}}|40}}<br />
| {{#switch: x{{{1}}}<br />
| {{padleft:|41|x{{{1}}}}} = 40<br />
| {{padleft:|42|x{{{1}}}}} = 41<br />
| {{padleft:|43|x{{{1}}}}} = 42<br />
| {{padleft:|44|x{{{1}}}}} = 43<br />
| {{padleft:|45|x{{{1}}}}} = 44<br />
| {{padleft:|46|x{{{1}}}}} = 45<br />
| {{padleft:|47|x{{{1}}}}} = 46<br />
| {{padleft:|48|x{{{1}}}}} = 47<br />
| {{padleft:|49|x{{{1}}}}} = 48<br />
| {{padleft:|50|x{{{1}}}}} = 49<br />
| {{padleft:|51|x{{{1}}}}} = 50<br />
| {{padleft:|52|x{{{1}}}}} = 51<br />
| {{padleft:|53|x{{{1}}}}} = 52<br />
| {{padleft:|54|x{{{1}}}}} = 53<br />
| {{padleft:|55|x{{{1}}}}} = 54<br />
| {{padleft:|56|x{{{1}}}}} = 55<br />
| {{padleft:|57|x{{{1}}}}} = 56<br />
| {{padleft:|58|x{{{1}}}}} = 57<br />
| {{padleft:|59|x{{{1}}}}} = 58<br />
| {{padleft:|60|x{{{1}}}}} = 59<br />
| {{padleft:|61|x{{{1}}}}} = 60<br />
| {{padleft:|62|x{{{1}}}}} = 61<br />
| {{padleft:|63|x{{{1}}}}} = 62<br />
| {{padleft:|64|x{{{1}}}}} = 63<br />
| {{padleft:|65|x{{{1}}}}} = 64<br />
| {{padleft:|66|x{{{1}}}}} = 65<br />
| {{padleft:|67|x{{{1}}}}} = 66<br />
| {{padleft:|68|x{{{1}}}}} = 67<br />
| {{padleft:|69|x{{{1}}}}} = 68<br />
| {{padleft:|70|x{{{1}}}}} = 69<br />
| {{padleft:|71|x{{{1}}}}} = 70<br />
| #default= {{{extra|-1}}} <!--when > 70 --><br />
}}<!--endsw 40's++ --><br />
| {{#switch: x{{{1}}}<br />
| {{padleft:|31|x{{{1}}}}} = 30<br />
| {{padleft:|32|x{{{1}}}}} = 31<br />
| {{padleft:|33|x{{{1}}}}} = 32<br />
| {{padleft:|34|x{{{1}}}}} = 33<br />
| {{padleft:|35|x{{{1}}}}} = 34<br />
| {{padleft:|36|x{{{1}}}}} = 35<br />
| {{padleft:|37|x{{{1}}}}} = 36<br />
| {{padleft:|38|x{{{1}}}}} = 37<br />
| {{padleft:|39|x{{{1}}}}} = 38<br />
| #default= 39<br />
}}<!--endsw 30's--><br />
}}<!--endifeq 40--><br />
| {{#switch: x{{{1}}}<br />
| {{padleft:|21|x{{{1}}}}} = 20<br />
| {{padleft:|22|x{{{1}}}}} = 21<br />
| {{padleft:|23|x{{{1}}}}} = 22<br />
| {{padleft:|24|x{{{1}}}}} = 23<br />
| {{padleft:|25|x{{{1}}}}} = 24<br />
| {{padleft:|26|x{{{1}}}}} = 25<br />
| {{padleft:|27|x{{{1}}}}} = 26<br />
| {{padleft:|28|x{{{1}}}}} = 27<br />
| {{padleft:|29|x{{{1}}}}} = 28<br />
| #default= 29<br />
}}<!--endsw 20's--><br />
}}<!--endifeq 30--><br />
| {{#ifeq: x{{{1}}}|x{{padleft:{{{1}}}|10}}<br />
| {{#switch: x{{{1}}}<br />
| {{padleft:|18|x{{{1}}}}} = 17<br />
| {{padleft:|19|x{{{1}}}}} = 18<br />
| {{padleft:|17|x{{{1}}}}} = 16<br />
| {{padleft:|20|x{{{1}}}}} = 19<br />
| {{padleft:|16|x{{{1}}}}} = 15<br />
| {{padleft:|15|x{{{1}}}}} = 14<br />
| {{padleft:|14|x{{{1}}}}} = 13<br />
| {{padleft:|13|x{{{1}}}}} = 12<br />
| {{padleft:|12|x{{{1}}}}} = 11<br />
| #default= 10 <!--when >= 10 and none of above--><br />
}}<!--endsw 10's++ --><br />
| {{#switch: x{{{1}}}<br />
| {{padleft:|10|x{{{1}}}}} = 9<br />
| {{padleft:|9|x{{{1}}}}} = 8<br />
| {{padleft:|8|x{{{1}}}}} = 7<br />
| {{padleft:|7|x{{{1}}}}} = 6<br />
| {{padleft:|6|x{{{1}}}}} = 5<br />
| {{padleft:|5|x{{{1}}}}} = 4<br />
| {{padleft:|4|x{{{1}}}}} = 3<br />
| {{padleft:|3|x{{{1}}}}} = 2<br />
| #default= 1<br />
}}<!--endsw 1's--><br />
}}<!--endifeq 10--><br />
}}<!--endifeq 20--><noinclude><!--<br />
-=============================================================<br />
--NOTES<br />
-- See talk-page: [[Template_talk:Strlen_quick]].<br />
--<br />
-- [ These comments are skipped by <noinclude> so they will<br />
-- be omitted & not sent in a formatted Internet page. ]<br />
--<br />
-- NOTE A1: This template counts the length of string {1} by<br />
-- comparing with the string truncated to 'n' long in a<br />
-- #switch for each set of lengths of {padleft:|n|{1} }.<br />
-- The first match will exit the #switch with the length<br />
-- number and exit the nested end-ifs. Max length is 70.<br />
--<br />
-- NOTE N2: This template was designed to use minimal levels<br />
-- as 5, to avoid the "expansion depth limit" when used<br />
-- in very large templates. By comparison, {str_len} was<br />
-- using over 9-13 levels of 40 total, during 2009-2011.<br />
--<br />
-- NOTE P3: To speed the results, the check for length is based<br />
-- on probability of an average length of 17/18, as found<br />
-- in Wikipedia titles, where length 5 is as rare as 31<br />
-- or longer. The average search is 6.5 uses of {padleft}<br />
-- but the weighted average for actual titles is near 4.<br />
-- When most strings are > 49, then use {str_len}.<br />
--<br />
-- NOTE S4: This template CANNOT be subst-substituted by using<br />
-- {{subst:strlen_short|...}} to save only the results, or<br />
-- {{{{{|safesubst:}}}strlen_short}} using blank parameter.<br />
--<br />
--------------------------------------------------------------<br />
--HISTORY:<br />
--30Jan2011 Created to get length quickly in few nest levels.<br />
--31Jan2011 Removed spurious newline before <noinclude>.<br />
--31Jan2011 Set to return {{{extra|-1}}} when > 70.<br />
--<br />
--></noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Negara/doc&diff=845Templat:Negara/doc2019-08-09T03:47:06Z<p>Adminwiki: 1 revisi diimpor: Templat:Trim leading</p>
<hr />
<div>{{subhalaman dokumentasi}}<br />
<!-- SUNTING DOKUMENTASI TEMPLAT DI BAWAH INI --><br />
Templat ini digunakan untuk menampilkan gambar bendera dan nama negara dengan mentransklusikan {{tl|flagicon}} dan {{tl|flagcountry}}. Untuk penyederhanaan sistem templat bendera, penggunaan templat ini <u>'''tidak disarankan'''</u> lagi dan disarankan untuk menggunakan {{tl|flagicon}} dan {{tl|flagcountry}} secara langsung (lihat contoh penggunaan).<br />
<br />
=== Contoh penggunaan ===<br />
{| class = "wikitable" style="text-align: left;"<br />
|-<br />
<!--!Dahulu--><br />
!Parameter<br />
!Hasil<br />
|-<br />
<!--|<tt><nowiki>{{negara|Indonesia}}</nowiki>--><br />
|<tt><nowiki>{{flagicon|Indonesia}}</nowiki><br />
|{{flagicon|Indonesia}}<br />
|-<br />
<!--|<tt><nowiki>{{negara|Indonesia|50px}}</nowiki></tt>--><br />
|<tt><nowiki>{{flagicon|Indonesia|size=50px}}</nowiki><br />
|{{flagicon|Indonesia|size=50px}}<br />
|-<br />
<!--|<tt><nowiki>{{negara|Indonesia||Y}}</nowiki></tt>--><br />
|<tt><nowiki>{{flagcountry|Indonesia}}</nowiki></tt><br />
|{{flagcountry|Indonesia}}<br />
|-<br />
<!--|<tt><nowiki>{{negara|Indonesia|50px|Y}}</nowiki></tt>--><br />
|<tt><nowiki>{{flagcountry|Indonesia|size=50px}}</nowiki></tt><br />
|{{flagcountry|Indonesia|size=50px}}<br />
|}<br />
<br />
=== Lihat pula ===<br />
* {{tl|flagicon}}<br />
* {{tl|flagcountry}}<includeonly><br />
<!-- KATEGORI --><br />
[[Kategori:Sistem templat bendera|{{PAGENAME}}]]<br />
<!-- INTERWIKI --><br />
</includeonly></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Trim_leading&diff=843Templat:Trim leading2019-08-09T03:45:35Z<p>Adminwiki: 1 revisi diimpor: Templat:Trim leading</p>
<hr />
<div>{{#switch: 1<br />
| {{#ifeq: {{padleft:|{{#expr: 6*{{strlen_quick|{{{2|0}}}|}} }}|{{{2|0}}} }}|{{padleft:|{{#expr: 6*{{strlen_quick|{{{2|0}}}|}} }}|{{{1|00x}}} }}| 1|0}}<br />
= {{str_right|{{{1|00x}}}|{{#expr: 6*{{strlen_quick|{{{2|0}}}|}} }} }}<br />
| {{#ifeq: {{padleft:|{{#expr: 5*{{strlen_quick|{{{2|0}}}|}} }}|{{{2|0}}} }}|{{padleft:|{{#expr: 5*{{strlen_quick|{{{2|0}}}|}} }}|{{{1|00x}}} }}| 1|0}}<br />
= {{str_right|{{{1|00x}}}|{{#expr: 5*{{strlen_quick|{{{2|0}}}|}} }} }}<br />
| {{#ifeq: {{padleft:|{{#expr: 4*{{strlen_quick|{{{2|0}}}|}} }}|{{{2|0}}} }}|{{padleft:|{{#expr: 4*{{strlen_quick|{{{2|0}}}|}} }}|{{{1|00x}}} }}| 1|0}}<br />
= {{str_right|{{{1|00x}}}|{{#expr: 4*{{strlen_quick|{{{2|0}}}|}} }} }}<br />
| {{#ifeq: {{padleft:|{{#expr: 3*{{strlen_quick|{{{2|0}}}|}} }}|{{{2|0}}} }}|{{padleft:|{{#expr: 3*{{strlen_quick|{{{2|0}}}|}} }}|{{{1|00x}}} }}| 1|0}}<br />
= {{str_right|{{{1|00x}}}|{{#expr: 3*{{strlen_quick|{{{2|0}}}|}} }} }}<br />
| {{#ifeq: {{padleft:|{{#expr: 2*{{strlen_quick|{{{2|0}}}|}} }}|{{{2|0}}} }}|{{padleft:|{{#expr: 2*{{strlen_quick|{{{2|0}}}|}} }}|{{{1|00x}}} }}| 1|0}}<br />
= {{str_right|{{{1|00x}}}|{{#expr: 2*{{strlen_quick|{{{2|0}}}|}} }} }}<br />
| {{#ifeq: {{padleft:|{{#expr: {{strlen_quick|{{{2|0}}}|}} }}|{{{2|0}}} }}|{{padleft:|{{#expr: {{strlen_quick|{{{2|0}}}|}} }}|{{{1|00x}}} }}| 1|0}}<br />
= {{str_right|{{{1|00x}}}|{{strlen_quick|{{{2|0}}}|}} }}<br />
| #default = {{{1|00x}}}<br />
}}<!-- ---- old version --<br />
{{Trim leading/1 | {{trim | {{{1|<noinclude>00100</noinclude>}}} }} | {{trim | {{{2|0}}} }} | {{str len | {{trim | {{{2|0}}} }} }} }}--><noinclude><br />
<br />
{{documentation}}<br />
<br />
</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Negara&diff=841Templat:Negara2019-08-09T03:45:34Z<p>Adminwiki: 1 revisi diimpor: Templat:Trim leading</p>
<hr />
<div><includeonly>{{#if:{{{3|}}}|{{flagcountry|{{ucfirst:{{{1}}}}}|size={{{2|}}}}}|{{flagicon|{{ucfirst:{{{1}}}}}|size={{{2|}}}}}}}</includeonly><noinclude>{{dokumentasi}}</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Jav&diff=837Templat:Jav2019-08-09T03:45:04Z<p>Adminwiki: 1 revisi diimpor: Templat:Jav Templat:KMT</p>
<hr />
<div><span lang="jv" xml:lang="jv" title ="Aksara Jawa {{{1}}}" style="font-family:{{{font|Javanese Text}}}; font-size:{{{font-size|{{{2|16px}}}}}}; line-height:{{{line-height|{{{h|{{{3|2em}}}}}}}}}; word-wrap: break-word; text-decoration: none;">{{{1}}}</span><includeonly><br />
[[Kategori:Artikel mengandung aksara Jawa]]<br />
</includeonly><noinclude><br />
-----<br />
Templat ini digunakan untuk menandai teks yang ditulis dalam [[bahasa Jawa]], menggunakan jenis dan ukuran huruf khusus.<br />
<br />
[[Kategori:Templat bahasa|{{PAGENAME}}]]<br />
</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:KMT&diff=839Templat:KMT2019-08-09T03:45:04Z<p>Adminwiki: 1 revisi diimpor: Templat:Jav Templat:KMT</p>
<hr />
<div>[[Berkas:Naval Jack of the Republic of China.svg|25px]] [[Kuomintang]]</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:DPP&diff=835Templat:DPP2019-08-09T03:44:38Z<p>Adminwiki: 1 revisi diimpor: Templat:DPP</p>
<hr />
<div><noinclude><!-- removing Image:Democratic_Progressive_Party_of_Taiwan_flag.svg, Image:DPP-Taiwan.svg, and Image:DPP_logo.png as they are non-free images and can only be use as fair use in the article namespace --></noinclude>[[Partai Progresif Demokratik]]<noinclude><br />
</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Both&diff=833Templat:Both2019-08-09T03:43:53Z<p>Adminwiki: 1 revisi diimpor: Templat:Both</p>
<hr />
<div>{{SAFESUBST:<noinclude />#if:{{{1|}}}|{{SAFESUBST:<noinclude />#if:{{{2|}}}|1}}}}<noinclude><br />
{{documentation}}<br />
</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Separated_entries/doc&diff=831Modul:Separated entries/doc2019-08-09T03:42:50Z<p>Adminwiki: 1 revisi diimpor: Modul:Separated entries</p>
<hr />
<div>{{Module other|{{Module rating |p}}}}<br />
{{high-risk}}<br />
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --><br />
== Penggunaan ==<br />
[[Modul:Separated entries]] serves as a template front-end to <code>[[mw:Extension:Scribunto/Lua reference manual#mw.text.listToText|mw.text.listToText]]</code>. It takes [[variadic function|any number]] of positional parameters and [[concatenation|pieces them together]] with {{Para|separator}}. {{Para|conjunction}} can be optionally defined if a different separator is desired between the last and second last items. Leading and trailing whitespace is stripped; if the {{Para|separator}} should contain spaces, use the HTML escape code <code>&amp;#32;</code>. Separated entries does not raise any errors by design.<br />
<br />
<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''main''|separator=...}}<br />
<br />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |<br />
<!-- Categories below this line, please; interwikis at Wikidata --><br />
<br />
}}</includeonly></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Separated_entries&diff=829Modul:Separated entries2019-08-09T03:42:43Z<p>Adminwiki: 1 revisi diimpor: Modul:Separated entries</p>
<hr />
<div>-- This module takes positional parameters as input and concatenates them with<br />
-- an optional separator. The final separator (the "conjunction") can be<br />
-- specified independently, enabling natural-language lists like<br />
-- "foo, bar, baz and qux". The starting parameter can also be specified.<br />
<br />
local compressSparseArray = require('Module:TableTools').compressSparseArray<br />
local p = {}<br />
<br />
function p._main(args)<br />
local separator = args.separator<br />
-- Decode (convert to Unicode) HTML escape sequences, such as "&#32;" for space.<br />
and mw.text.decode(args.separator) or ''<br />
local conjunction = args.conjunction and mw.text.decode(args.conjunction) or separator<br />
-- Discard values before the starting parameter.<br />
local start = tonumber(args.start)<br />
if start then<br />
for i = 1, start - 1 do args[i] = nil end<br />
end<br />
-- Discard named parameters.<br />
local values = compressSparseArray(args)<br />
return mw.text.listToText(values, separator, conjunction)<br />
end<br />
<br />
local function makeInvokeFunction(separator, conjunction, first)<br />
return function (frame)<br />
local args = require('Module:Arguments').getArgs(frame)<br />
args.separator = separator or args.separator<br />
args.conjunction = conjunction or args.conjunction<br />
args.first = first or args.first<br />
return p._main(args)<br />
end<br />
end<br />
<br />
p.main = makeInvokeFunction()<br />
p.br = makeInvokeFunction('<br />')<br />
p.comma = makeInvokeFunction(mw.message.new('comma-separator'):plain())<br />
<br />
return p</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Br_separated_entries&diff=827Templat:Br separated entries2019-08-09T03:39:18Z<p>Adminwiki: ←Membuat halaman berisi '{{<includeonly>safesubst:</includeonly>#invoke:Separated entries|br}}<noinclude> {{documentation}} </noinclude>'</p>
<hr />
<div>{{<includeonly>safesubst:</includeonly>#invoke:Separated entries|br}}<noinclude><br />
{{documentation}}<br />
</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Kotak_info_pemegang_jabatan/office&diff=826Templat:Kotak info pemegang jabatan/office2019-08-09T03:38:28Z<p>Adminwiki: ←Membuat halaman berisi '{{#if:{{{speaker|}}}{{{state_legislature|}}}{{{state_assembly|}}}{{{speaker_office|}}}{{{state_delegate|}}}{{{state_house|}}}{{{prior_term|}}}{{{nominee|}}}{{{candidat...'</p>
<hr />
<div>{{#if:{{{speaker|}}}{{{state_legislature|}}}{{{state_assembly|}}}{{{speaker_office|}}}{{{state_delegate|}}}{{{state_house|}}}{{{prior_term|}}}{{{nominee|}}}{{{candidate|}}}{{{termstart|}}}{{{election_date|}}}{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}{{{jr/sr|}}}{{{succeeding|}}}{{{state|}}}{{{jr/sr and state|}}}{{{state_senate|}}}{{{district|}}}{{{ambassador_from|}}}{{{minister_from|}}}{{{order|}}}{{{office|}}}{{{title|}}}{{{country|}}}{{{constituency_AM|}}}{{{constituency_MP|}}}{{{parliament|}}}{{{assembly|}}}{{{constituency_|}}}{{{riding|}}}{{{term|}}}{{{termend|}}}{{{alongside|}}}{{{co-leader|}}}<br />
|{{infobox|child=yes<br />
| headerstyle = background:{{{color|lavender}}}<br />
| datastyle = border-bottom:none<br />
<br />
<!--------Speaker of the House---------><br />
| header1 = {{#if:{{{speaker|}}}|<br />
{{#if:{{{state_legislature|}}} {{{speaker}}}<br />
|[[Ketua Badan Legislatif {{{state_legislature}}}]]<br />
|{{#if:{{{state_assembly|}}}<br />
|[[Ketua Majelis {{{state_assembly|}}} {{#ifeq:{{{state_assembly|}}}|Nevada||{{#ifeq:{{{state_assembly|}}}|New Jersey|Umum|Negara Bagian}}}}]]<br />
|{{#if:{{{speaker_office|}}}|{{{speaker_office}}}|[[Ketua {{#if:{{{state_delegate|}}} |{{{state_delegate}}}|Dewan {{#if:{{{state_delegate|}}}|Delegasi|Perwakilan Rakyat}} {{#if:{{{state_house|}}} |{{{state_house}}}|Amerika Serikat}}}}|Ketua {{#if:{{{state_delegate|}}} |{{{state_delegate}}}|Ketua {{#if:{{{state_delegate|}}}|Delegasi|Dewan}} {{#if:{{{state_house|}}} |{{{state_house}}}|A.S.}}}}]]}}<br />
}}<br />
}}{{#if:{{{prior_term|}}}|<br />
<br /><small>{{{prior_term}}}</small>}}<br />
}}<br />
<br />
<!--------Office---------><br />
| header2 = {{#if:{{{nominee|}}}{{{candidate|}}}|<br />
{{#if:{{{party_election|}}}{{{party|}}}<br />
|{{#if:{{{nominee|}}}|Calon {{{nominee}}}<br>dari|Calon {{{candidate}}}<br>dari}} {{#if:{{{party_election|}}}|{{{party_election}}}|{{{party}}}}}<br />
|{{#if:{{{nominee|}}}|Calon {{{nominee}}}|Calon {{{candidate}}}}}<br />
}} }}<br />
<br />
| data3 = {{#if:{{{nominee|}}}{{{candidate|}}}|<br />
{{#if:{{{termstart|}}}{{{election_date|}}} | {{nowrap|'''Tanggal pemilihan umum'''}}<br />{{#if:{{{election_date|}}}|{{{election_date}}}|{{{termstart}}}}}<br />
}} }}<br />
<br />
| header4 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}||<br />
{{#if:{{{jr/sr|}}}|[[Senat Amerika Serikat|<!--Changed code to eliminate "Junior/Senior" distinction for U.S. Senators per [[Template talk:Infobox Officeholder#Senior/Junior U.S. Senators]]{{{jr/sr}}}-->Senator Amerika Serikat {{#if:{{{succeeding|}}} |Terpilih}}]]<br />dari {{{state}}}<br />
}} }}<br />
<br />
| header5 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}||<br />
{{{jr/sr and state|}}}<br />
}}<br />
<br />
| header6 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}||<br />
{{#if:{{{state_senate|}}}|Anggota {{#if:{{{succeeding|}}} |Terpilih}} <span style="display: inline-block;">[[Senat {{{state_senate}}}]]</span><br />dari dapil {{{district}}}{{#if:{{{prior_term|}}}|<br />
<br /><small>{{{prior_term}}}</small>}}<br />
}} }}<br />
<br />
| header7 = {{#if:{{{majority_leader|}}}{{{minority_floor_leader|}}}{{{minority_leader|}}}{{{majority_floor_leader|}}}||<br />
{{#if:{{{state_legislature|}}}|Anggota {{#if:{{{succeeding|}}} |Terpilih}} <span style="display: inline-block;">[[Badan Legislatif {{{state_legislature}}}]]</span><br />dari dapil {{{district}}}<br />
}} }}<br />
<br />
| header8 = {{#if:{{{ambassador_from|}}}{{{minister_from|}}}||<br />
{{#if:{{{order|}}} <br />
|{{#if:{{{office|}}} |[[{{{office}}}]]&#32;}}{{#if:{{{state|}}} |[[{{{state}}}]]&#32;}}{{#if:{{{title|}}} |{{{title}}}&#32;}}{{{order}}}<br />
|{{{office|}}}<br />
}} }}<br />
<br />
| header9 = {{#if:{{{ambassador_from|}}}{{{minister_from|}}}||<br />
{{#if:{{{order|}}} <br />
||{{{title|}}}<br />
}} }}<br />
<br />
<!--------Ambassador---------><br />
| header10 = {{#if:{{both|{{{ambassador_from|}}}{{{minister_from|}}}|{{{country|}}}}}<br />
|{{#if:{{{minister_from|}}} {{#if:{{{order|}}}|{{{order}}}}}<br />
|[[Duta Besar {{{minister_from}}} untuk {{{country}}}|Menteri {{{minister_from}}} untuk {{{country}}}]]<br />
|[[Duta Besar {{{ambassador_from}}} untuk {{{country}}}]]<br />
}} [[Category:Pages using infobox officeholder with ambassador from or minister from]]<br />
}}<br />
<br />
<!--------MP---------><br />
| header11 = {{#if:{{{constituency_AM|}}}{{{constituency_MP|}}}|<br />
{{#ifeq:{{{parliament|}}}|Irlandia|[[Teachta Dála]]|{{#ifeq:{{{parliament|}}}|Australia|Anggota <span style="display: inline-block;">[[Parlemen Australia]]</span>|{{#if:{{{constituency_AM|}}}|{{#if:{{{assembly|}}}|Anggota <span style="display: inline-block;">[[Majelis {{{assembly}}}]]</span>|Anggota Majelis}}|Anggota {{#if:{{{parliament|}}}|<span style="display: inline-block;">[[Parlemen {{{parliament}}}]]</span>|Parlemen}}}}}}<br />dapil {{{constituency_{{#if:{{{constituency_AM|}}}|AM|MP}}}}}}}<br />
}}<br />
| header12 = {{#if:{{{riding|}}}|{{#if:{{{constituency_AM|}}}|{{#if:{{{assembly|}}}|Anggota <span style="display: inline-block;">[[Majelis {{{assembly}}}]]</span>|Anggota Majelis}}|Anggota {{#if:{{{parliament|}}}|<span style="display: inline-block;">[[Parlemen {{{parliament}}}]]</span>|Parlemen}}}}<br />dapil {{{riding}}}<br />
}}<br />
<br />
<!--------Majority Leader (State Senate)---------><br />
| header13 = {{#if:{{{majority_leader|}}}|{{{majority_leader}}} {{#if:{{{state_senate|}}}|[[Ketua Mayoritas Senat {{{state_senate}}}]]|[[Ketua Mayoritas Senat Amerika Serikat]]}}<br />
}}<br />
<br />
<!--------Majority Floor Leader (State Senate)---------><br />
| header14 = {{#if:{{{majority_floor_leader|}}}|{{{majority_floor_leader}}} [[Ketua Kaukus Mayoritas Senat {{{state_senate}}}]]<br />
}}<br />
<br />
<!--------Minority Leader (State Senate)---------><br />
| header15 = {{#if:{{{minority_leader|}}}|{{{minority_leader}}} [[Ketua Minoritas Senat {{{state_senate}}}]]<br />
}}<br />
<br />
<!--------Minority Floor Leader (State Senate)---------><br />
| header16 = {{#if:{{{minority_floor_leader|}}}|{{{minority_floor_leader}}} [[Ketua Kaukus Minoritas Senat {{{state_senate}}}]]<br />
}}<br />
<br />
<!--------Congressman---------><br />
| header17 = {{#if:{{{state_legislature|}}}{{{state_senate|}}}{{{jr/sr|}}}{{{jr/sr and state|}}}||<br />
{{#if:{{{district|}}}|{{#if:{{{state_assembly|}}}<br />
|Anggota {{#if:{{{succeeding|}}}|Terpilih}} <span style="display: inline-block;">[[Majelis {{{state_assembly|}}} {{#ifeq:{{{state_assembly|}}}|Nevada||{{#ifeq:{{{state_assembly|}}}|New Jersey|Umum|Negara Bagian}}}}]]</span><br />dari <br />
|Anggota {{#if:{{{succeeding|}}}|Terpilih}} <span style="display: inline-block;">[[{{#if:{{{state_delegate|}}}|Dewan Delegasi|Dewan Perwakilan Rakyat}} {{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|Amerika Serikat}}}}|{{#if:{{{state_delegate|}}}|Dewan&#32;Delegasi|{{#if:{{{state_house|}}}| }}Dewan&#32;Perwakilan&#32;Rakyat}}&#32;{{#if:{{{state_house|}}} |{{{state_house}}}|{{#if:{{{state_delegate|}}}|{{{state_delegate}}}|A.S.}}}}]]</span><br />dari dapil {{{district}}} {{#if:{{{state_delegate|}}}||{{#if:{{{state_house|}}}||{{{state}}}}}}} <br />
}}{{#if:{{{prior_term|}}}|<br />
<br /><small>{{{prior_term}}}</small>}}<br />
}}<br />
}}<br />
<br />
<!--------Convocation---------><br />
| header18 = {{#if:{{{convocation|}}}|{{{convocation}}}}}<br />
<br />
<!--------Term---------><br />
| data19 = {{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{#if:{{{succeeding|}}}<br />
| {{nowrap|'''Mulai menjabat'''}}<br />{{{termstart}}}{{#if:{{{term|}}}{{{termend|}}}|[[Category:Pages using infobox officeholder with succeeding and term or termend]]}}<br />
| {{#if: {{{term|}}} | {{nowrap|'''{{{termlabel|Masa jabatan}}}'''}}<br />{{{term}}} }}<br />
}} }}<br />
<br />
| data20 = {{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{#if:{{{succeeding|}}}<br />
| <br />
|{{#if:{{{termstart|}}}<br />
| {{#if:{{{termend|}}}<br />
|<!--then: term has start and end:-->{{nowrap|'''{{{termlabel|Masa jabatan}}}'''}}<br />{{{termstart}}}{{#iferror:{{#expr:{{{termstart}}}*{{{termend}}}}}|&nbsp;–&#32;|–}}{{{termend}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<br />{{#if:{{{alongside|}}}|Menjabat|Menjabat}}&#32;bersama&#32;{{#if:{{{alongside|}}}|{{{alongside}}}|{{{co-leader}}}}}}}<br />
|<!--else: term is ongoing--><div style="width:100%; margin:0; padding:0; background-color: {{{color|lavender}}}">'''[[Petahana]]'''</div><br />
}}<br />
}}<br />
}} }}<br />
<br />
| data21 = {{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{#if:{{{succeeding|}}}<br />
| <br />
|{{#if:{{{termstart|}}}<br />
|{{#if:{{{termend|}}}<br />
|<!--then nothing else; term has ended--><br />
|<!--else term is ongoing:-->{{nowrap|'''Mulai menjabat'''}}&#32;<br />{{{termstart}}}{{#if:{{{alongside|}}}{{{co-leader|}}}|<br />{{#if:{{{alongside|}}}|Menjabat|Menjabat}}&#32;bersama&#32;{{#if:{{{alongside|}}}|{{{alongside}}}|{{{co-leader}}}}}}}<br />
}}<br />
}}<br />
}} }}<br />
<br />
}} }}<!-- <br />
end infobox1 / start infobox2<br />
-->{{#if:{{{monarch|}}}{{{president|}}}{{{governor-general|}}}{{{governor_general|}}}{{{primeminister|}}}{{{chancellor|}}}{{{minister|}}}{{{taoiseach|}}}{{{firstminister|}}}{{{chiefminister|}}}{{{premier|}}}{{{governor|}}}{{{lieutenant_governor|}}}{{{vicepresident|}}}{{{vicegovernor|}}}{{{viceprimeminister|}}}{{{vicepremier|}}}{{{deputy|}}}{{{leader|}}}{{{lieutenant|}}}{{{nominator|}}}{{{appointer|}}}{{{opponent|}}}{{{incumbent|}}}{{{succeeding|}}}{{{preceding|}}}{{{predecessor|}}}{{{preceded|}}}{{{successor|}}}{{{succeeded|}}}{{{parliamentarygroup|}}}{{{constituency|}}}{{{majority|}}}{{{1namedata|}}}{{{2namedata|}}}{{{3namedata|}}}{{{4namedata|}}}{{{5namedata|}}}{{{runningmate|}}}|<br />
{{infobox|child=yes<br />
| labelstyle = text-align:left<br />
<br />
| label1 = {{nowrap|Dicalonkan oleh}}<br />
| data1 = {{{nominator|}}}<br />
<br />
| label2 = {{nowrap|Ditunjuk oleh}}<br />
| data2 = {{{appointer|}}}<br />
<br />
<!--------President, Prime Minister, Governor---------><br />
| label3 = Penguasa monarki<br />
| data3 = {{{monarch|}}}<br />
<br />
| label4 = Presiden<br />
| data4 = {{{president|}}}<br />
<br />
| label5 = {{#if:{{{governor_general|}}}|Gubernur Jenderal|Gubernur Jenderal}}<br />
| data5 = {{#if:{{{governor_general|}}}|{{{governor_general}}}|{{{governor-general|}}}}}<br />
<br />
| label6 = {{nowrap|Perdana Menteri}}<br />
| data6 = {{{primeminister|}}}<br />
<br />
| label7 = Kanselir<br />
| data7 = {{{chancellor|}}}<br />
<br />
| label8 = Menteri<br />
| data8 = {{{minister|}}}<br />
<br />
| label9 = Taoiseach<br />
| data9 = {{{taoiseach|}}}<br />
<br />
| label10 = {{nowrap|Menteri Pertama}}<br />
| data10 = {{{firstminister|}}}<br />
<br />
| label11 = {{nowrap|Ketua Menteri}}<br />
| data11 = {{{chiefminister|}}}<br />
<br />
| label12 = Perdana Menteri<br />
| data12 = {{{premier|}}}<br />
<br />
| label13 = Gubernur<br />
| data13 = {{{governor|}}}<br />
<br />
| label14 = Wakil Gubernur<br />
| data14 = {{{lieutenant_governor|}}}<br />
<br />
<!--------Vice president/s, Vice Prime Minister/s, Deputy/ies, Lieutenant/s---------><br />
| label15 = {{nowrap|{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Wakil {{{office}}}}}|valid|[[Wakil {{{office}}}|Wakil Presiden]]|Wakil Presiden}}|Wakil Presiden}}}}<br />
| data15 = {{{vicepresident|}}}<br />
<br />
| label16 = {{nowrap|{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Wakil {{{office}}}}}|valid|[[Wakil {{{office}}}|Wakil Gubernur]]|Wakil Gubernur}}|Wakil Gubernur}}}}<br />
| data16 = {{{vicegovernor|}}}<br />
<br />
| label17 = {{nowrap|{{#if:{{{office|}}}|[[Wakil {{{office}}}|Wakil PM]]|Wakil [[Prime Minister|PM]]}}}}<br />
| data17 = {{{viceprimeminister|}}}<br />
<br />
| label18 = {{nowrap|{{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Wakil {{{office}}}}}|valid|[[Wakil {{{office}}}|Wakil Perdana Menteri]]|Wakil Perdana Menteri}}|Wakil Perdana Menteri}}}}<br />
| data18 = {{{vicepremier|}}}<br />
<br />
| label19 = {{#if:{{{office|}}}|{{#ifeq:{{isValidPageName|Wakil {{{office}}}}}|valid|[[Wakil {{{office}}}|Wakil]]|Wakil}}|Wakil}}<br />
| data19 = {{{deputy|}}}<br />
<br />
| label20 = Pemimpin<br />
| data20 = {{{leader|}}}<br />
<br />
| label21 = {{#if:{{{office|}}}|[[Wakil {{{office}}}|Wakil]]|Wakil}}<br />
| data21 = {{{lieutenant|}}}<br />
<br />
<!--------Blank fields---------><br />
| label22 = {{{1blankname|}}}<br />
| data22 = {{{1namedata|}}}<br />
<br />
| label23 = {{{2blankname|}}}<br />
| data23 = {{{2namedata|}}}<br />
<br />
| label24 = {{{3blankname|}}}<br />
| data24 = {{{3namedata|}}}<br />
<br />
| label25 = {{{4blankname|}}}<br />
| data25 = {{{4namedata|}}}<br />
<br />
| label26 = {{{5blankname|}}}<br />
| data26 = {{{5namedata|}}}<br />
<br />
<!--------Predecessor/successor---------><br />
| label27 = {{nowrap|Pendamping}}<br />
| data27 = {{{runningmate|}}}<br />
<br />
| label28 = Lawan<br />
| data28 = {{{opponent|}}}<br />
<br />
| label29 = Petahana<br />
| data29 = {{{incumbent|}}}<br />
<br />
| label30 = {{#if:{{{succeeding|}}}|Pendahulu|Pengganti}}<br />
| data30 = {{#if:{{{succeeding|}}}|{{{succeeding|}}}|{{{preceding|}}}}}<br />
<br />
| label32 = {{nowrap|Pendahulu}}<br />
| data32 = {{#if:{{{succeeding|}}}||{{#if:{{{predecessor|}}}|{{{predecessor}}}|{{{preceded|}}}}}}}<br />
<br />
| label33 = {{nowrap|Pengganti}}<br />
| data33 = {{#if:{{{succeeding|}}}||{{#switch:{{#if:{{{successor|}}}|{{{successor}}}|{{{succeeded|}}}}}<br />
| Incumbent<br />
| '''Petahana'''<br />
| ''Petahana''<br />
| [[Petahana]]<br />
| petahana<br />
| '''petahana'''<br />
| ''petahana''<br />
| [[petahana]] =<br />
| #default = {{#if:{{{successor|}}}|{{{successor}}}|{{{succeeded|}}}}}<br />
}}}}<br />
<!--------Constituency/Majority---------><br />
| label34 = [[Grup parlemen]]<br />
| data34 = {{{parliamentarygroup|}}}<br />
<br />
| label35 = Daerah pemilihan<br />
| data35 = {{{constituency|}}}<br />
<br />
| label36 = Mayoritas<br />
| data36 = {{{majority|}}}<br />
}} }}<noinclude>{{documentation}}</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Templat:Kotak_info_pemegang_jabatan&diff=825Templat:Kotak info pemegang jabatan2019-08-09T03:36:52Z<p>Adminwiki: ←Membuat halaman berisi '<includeonly>{{infobox | bodyclass = vcard {{{bodyclass|}}} | bodystyle = {{#if:{{{mainwidth|}}}|width: {{{mainwidth}}}}} | child = {{lc:{{{embed}}}}} | abovestyle =...'</p>
<hr />
<div><includeonly>{{infobox<br />
| bodyclass = vcard {{{bodyclass|}}}<br />
| bodystyle = {{#if:{{{mainwidth|}}}|width: {{{mainwidth}}}}}<br />
| child = {{lc:{{{embed}}}}}<br />
<br />
| abovestyle = font-size: 130%;<br />
| above = {{Br separated entries<br />
| 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|}}}}}}}}}|<span class="honorific-prefix" style="font-size: 77%; font-weight: normal;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix}}}}}}}}}</span>}}<br />
| 2 = <span class="fn">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span><br />
| 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|}}}}}}}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix}}}}}}}}}</span>}}<br />
}}<br />
<br />
| subheaderstyle = font-size:125%; font-weight:bold;<br />
| subheader = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}}}<br />
<br />
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{width|{{{imagesize|{{{image_size|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}<br />
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image name|}}}|size={{{width|{{{imagesize|{{{image_size|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}<br />
| image3 = {{#invoke:InfoboxImage|InfoboxImage|image={{{smallimage|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}<br />
| caption{{#if:{{{smallimage|}}}|3|{{#if:{{{image name|}}}|2}}}} = {{{caption|}}}<br />
<br />
| headerstyle = {{#ifeq:{{lc:{{{embed}}}}}|yes|background:#eee|background:lavender}}<br />
<br />
| data1 = <br />
{{#if:{{{speaker|}}}|<br />
{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname2|}}}<br />
| 1namedata = {{{1namedata2|}}}<br />
| 2blankname = {{{2blankname2|}}}<br />
| 2namedata = {{{2namedata2|}}}<br />
| 3blankname = {{{3blankname2|}}}<br />
| 3namedata = {{{3namedata2|}}}<br />
| 4blankname = {{{4blankname2|}}}<br />
| 4namedata = {{{4namedata2|}}}<br />
| 5blankname = {{{5blankname2|}}}<br />
| 5namedata = {{{5namedata2|}}}<br />
| alongside = {{{alongside2|}}}<br />
| ambassador_from = {{{ambassador_from2|}}}<br />
| appointer = {{#if: {{{appointer2|}}} | {{{appointer2}}} | {{{appointed2|}}} }}<br />
| assembly = {{{assembly2|}}}<br />
| chancellor = {{{chancellor2|}}}<br />
| co-leader = {{{co-leader2|}}}<br />
| constituency_{{#if:{{{constituency_AM2|}}}|AM|MP}} = {{#if: {{{constituency_AM2|}}} | {{{constituency_AM2}}} | {{{constituency_MP2|}}} }}<br />
| constituency = {{{constituency2|}}}<br />
| convocation = {{{convocation2|}}}<br />
| country = {{{country2|}}}<br />
| deputy = {{{deputy2|}}}<br />
| district = {{{district2|}}}<br />
| firstminister = {{{firstminister2|}}}<br />
| governor-general = {{{governor-general2|}}}<br />
| governor_general = {{{governor_general2|}}}<br />
| governor = {{{governor2|}}}<br />
| jr/sr = {{{jr/sr2|}}}<br />
| jr/sr and state = {{{jr/sr and state2|}}}<br />
| leader = {{{leader2|}}}<br />
| legislature = {{{legislature2|}}}<br />
| lieutenant_governor = {{{lieutenant_governor2|}}}<br />
| lieutenant = {{{lieutenant2|}}}<br />
| majority_leader = {{#if: {{{majorityleader2|}}} | {{{majorityleader2}}} | {{{majority_leader2|}}} }}<br />
| minister_from = {{{minister_from2|}}}<br />
| minority_floor_leader = {{{minority_floor_leader2|}}}<br />
| majority_floor_leader = {{{majority_floor_leader2|}}}<br />
| majority = {{{majority2|}}}<br />
| minister = {{{minister2|}}}<br />
| minority_leader = {{#if: {{{minorityleader2|}}} | {{{minorityleader2}}} | {{{minority_leader2|}}} }}<br />
| monarch = {{{monarch2|}}}<br />
| nominator = {{{nominator2|}}}<br />
| office = {{{office2|}}}<br />
| order = {{{order2|}}}<br />
| parliament = {{{parliament2|}}}<br />
| parliamentarygroup = {{{parliamentarygroup2|}}}<br />
| predecessor = {{{predecessor2|}}}<br />
| preceding = {{{preceding2|}}}<br />
| preceded = {{{preceded2|}}}<br />
| premier = {{{premier2|}}}<br />
| president = {{{president2|}}}<br />
| primeminister = {{{primeminister2|}}}<br />
| riding = {{{riding2|}}}<br />
| speaker = {{{speaker|}}}<br />
| speaker_office = {{{speaker_office|}}}<br />
| state_assembly = {{{state_assembly|}}}<br />
| state_delegate = {{{state_delegate|}}}<br />
| state_house = {{{state_house|}}}<br />
| state_legislature = {{{state_legislature|}}}<br />
| state_senate = {{{state_senate|}}}<br />
| state = {{{state|}}}<br />
| succeeded = {{{succeeded2|}}}<br />
| succeeding = {{{succeeding2|}}}<br />
| successor = {{{successor2|}}}<br />
| taoiseach = {{{taoiseach2|}}}<br />
| termlabel = {{{term_label2|{{{termlabel2|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend2|}}}|{{{termend2}}}|{{{term_end2|}}}}}<br />
| termstart = {{#if:{{{termstart2|}}}|{{{termstart2}}}|{{{term_start2|}}}}}<br />
| term = {{{term2|}}}<br />
| title = {{{title2|}}}<br />
| vicegovernor = {{{vicegovernor2|}}}<br />
| vicepresident = {{{vicepresident2|}}}<br />
| vicepremier = {{{vicepremier2|}}}<br />
| viceprimeminister = {{{viceprimeminister2|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term|}}}<br />
}}}}}}<!--<br />
-->{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname|}}}<br />
| 1namedata = {{{1namedata|}}}<br />
| 2blankname = {{{2blankname|}}}<br />
| 2namedata = {{{2namedata|}}}<br />
| 3blankname = {{{3blankname|}}}<br />
| 3namedata = {{{3namedata|}}}<br />
| 4blankname = {{{4blankname|}}}<br />
| 4namedata = {{{4namedata|}}}<br />
| 5blankname = {{{5blankname|}}}<br />
| 5namedata = {{{5namedata|}}}<br />
| alongside = {{{alongside|}}}<br />
| ambassador_from = {{{ambassador_from|}}}<br />
| appointer = {{#if: {{{appointer|}}} | {{{appointer}}} | {{{appointed|}}} }}<br />
| assembly = {{{assembly|}}}<br />
| candidate = {{{candidate|}}}<br />
| chancellor = {{{chancellor|}}}<br />
| co-leader = {{{co-leader|}}}<br />
| constituency_{{#if:{{{constituency_AM|}}}|AM|MP}} = {{#if: {{{constituency_AM|}}} | {{{constituency_AM}}} | {{{constituency_MP|}}} }}<br />
| constituency = {{{constituency|}}}<br />
| convocation = {{{convocation|}}}<br />
| country = {{{country|}}}<br />
| deputy = {{{deputy|}}}<br />
| district = {{{district|}}}<br />
| election_date = {{{election_date|}}}<br />
| firstminister = {{{firstminister|}}}<br />
| governor-general = {{{governor-general|}}}<br />
| governor_general = {{{governor_general|}}}<br />
| governor = {{{governor|}}}<br />
| incumbent = {{{incumbent|}}}<br />
| jr/sr = {{{jr/sr|}}}<br />
| jr/sr and state = {{{jr/sr and state|}}}<br />
| leader = {{{leader|}}}<br />
| legislature = {{{legislature|}}}<br />
| lieutenant_governor = {{{lieutenant_governor|}}}<br />
| lieutenant = {{{lieutenant|}}}<br />
| majority_leader = {{#if: {{{majorityleader|}}} | {{{majorityleader}}} | {{{majority_leader|}}} }}<br />
| majority = {{{majority|}}}<br />
| minister = {{{minister|}}}<br />
| minister_from = {{{minister_from|}}}<br />
| minority_floor_leader = {{{minority_floor_leader|}}}<br />
| majority_floor_leader = {{{majority_floor_leader|}}}<br />
| minority_leader = {{#if: {{{minorityleader|}}} | {{{minorityleader}}} | {{{minority_leader|}}} }}<br />
| monarch = {{{monarch|}}}<br />
| nominator = {{{nominator|}}}<br />
| nominee = {{{nominee|}}}<br />
| office = {{{office|}}}<br />
| opponent = {{{opponent|}}}<br />
| order = {{{order|}}}<br />
| parliament = {{{parliament|}}}<br />
| parliamentarygroup = {{{parliamentarygroup|}}}<br />
| party_election = {{{party_election|}}}<br />
| predecessor = {{{predecessor|}}}<br />
| preceding = {{{preceding|}}}<br />
| preceded = {{{preceded|}}}<br />
| premier = {{{premier|}}}<br />
| president = {{{president|}}}<br />
| primeminister = {{{primeminister|}}}<br />
| riding = {{{riding|}}}<br />
| runningmate = {{{runningmate|}}}<br />
| state_assembly = {{{state_assembly|}}}<br />
| state_delegate = {{{state_delegate|}}}<br />
| state_house = {{{state_house|}}}<br />
| state_legislature = {{{state_legislature|}}}<br />
| state_senate = {{{state_senate|}}}<br />
| state = {{{state|}}}<br />
| succeeded = {{{succeeded|}}}<br />
| succeeding = {{{succeeding|}}}<br />
| successor = {{{successor|}}}<br />
| taoiseach = {{{taoiseach|}}}<br />
| termlabel = {{{term_label|{{{termlabel|Masa jabatan}}}}}}<br />
| termend = {{#if: {{{termend|}}} | {{{termend}}} | {{{term_end|}}} }}<br />
| termstart = {{#if: {{{termstart|}}} | {{{termstart}}} | {{{term_start|}}} }}<br />
| term = {{{term|}}}<br />
| title = {{{title|}}}<br />
| vicegovernor = {{{vicegovernor|}}}<br />
| vicepresident = {{{vicepresident|}}}<br />
| vicepremier = {{{vicepremier|}}}<br />
| viceprimeminister = {{{viceprimeminister|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term|}}}<br />
}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname1|}}}<br />
| 1namedata = {{{1namedata1|}}}<br />
| 2blankname = {{{2blankname1|}}}<br />
| 2namedata = {{{2namedata1|}}}<br />
| 3blankname = {{{3blankname1|}}}<br />
| 3namedata = {{{3namedata1|}}}<br />
| 4blankname = {{{4blankname1|}}}<br />
| 4namedata = {{{4namedata1|}}}<br />
| 5blankname = {{{5blankname1|}}}<br />
| 5namedata = {{{5namedata1|}}}<br />
| alongside = {{{alongside1|}}}<br />
| ambassador_from = {{{ambassador_from1|}}}<br />
| appointer = {{#if: {{{appointer1|}}} | {{{appointer1}}} | {{{appointed1|}}} }}<br />
| assembly = {{{assembly1|}}}<br />
| chancellor = {{{chancellor1|}}}<br />
| co-leader = {{{co-leader1|}}}<br />
| constituency_{{#if:{{{constituency_AM1|}}}|AM|MP}} = {{#if: {{{constituency_AM1|}}} | {{{constituency_AM1}}} | {{{constituency_MP1|}}} }}<br />
| constituency = {{{constituency1|}}}<br />
| convocation = {{{convocation1|}}}<br />
| country = {{{country1|}}}<br />
| deputy = {{{deputy1|}}}<br />
| district = {{{district1|}}}<br />
| firstminister = {{{firstminister1|}}}<br />
| governor-general = {{{governor-general1|}}}<br />
| governor_general = {{{governor_general1|}}}<br />
| governor = {{{governor1|}}}<br />
| jr/sr = {{{jr/sr1|}}}<br />
| jr/sr and state = {{{jr/sr and state1|}}}<br />
| leader = {{{leader1|}}}<br />
| legislature = {{{legislature1|}}}<br />
| lieutenant_governor = {{{lieutenant_governor1|}}}<br />
| lieutenant = {{{lieutenant1|}}}<br />
| minority_floor_leader = {{{minority_floor_leader1|}}}<br />
| minister_from = {{{minister_from1|}}}<br />
| majority_floor_leader = {{{majority_floor_leader1|}}}<br />
| majority_leader = {{#if: {{{majorityleader1|}}} | {{{majorityleader1}}} | {{{majority_leader1|}}} }}<br />
| majority = {{{majority1|}}}<br />
| minister = {{{minister1|}}}<br />
| minority_leader = {{#if: {{{minorityleader1|}}} | {{{minorityleader1}}} | {{{minority_leader1|}}} }}<br />
| monarch = {{{monarch1|}}}<br />
| nominator = {{{nominator1|}}}<br />
| office = {{{office1|}}}<br />
| order = {{{order1|}}}<br />
| parliament = {{{parliament1|}}}<br />
| parliamentarygroup = {{{parliamentarygroup1|}}}<br />
| predecessor = {{{predecessor1|}}}<br />
| preceding = {{{preceding1|}}}<br />
| preceded = {{{preceded1|}}}<br />
| premier = {{{premier1|}}}<br />
| president = {{{president1|}}}<br />
| primeminister = {{{primeminister1|}}}<br />
| riding = {{{riding1|}}}<br />
| state_assembly = {{{state_assembly1|}}}<br />
| state_delegate = {{{state_delegate1|}}}<br />
| state_house = {{{state_house1|}}}<br />
| state_legislature = {{{state_legislature1|}}}<br />
| state_senate = {{{state_senate1|}}}<br />
| state = {{{state1|}}}<br />
| succeeded = {{{succeeded1|}}}<br />
| succeeding = {{{succeeding1|}}}<br />
| successor = {{{successor1|}}}<br />
| taoiseach = {{{taoiseach1|}}}<br />
| termlabel = {{{term_label1|{{{termlabel1|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend1|}}}|{{{termend1}}}|{{{term_end1|}}}}}<br />
| termstart = {{#if:{{{termstart1|}}}|{{{termstart1}}}|{{{term_start1|}}}}}<br />
| term = {{{term1|}}}<br />
| title = {{{title1|}}}<br />
| vicegovernor = {{{vicegovernor1|}}}<br />
| vicepresident = {{{vicepresident1|}}}<br />
| vicepremier = {{{vicepremier1|}}}<br />
| viceprimeminister = {{{viceprimeminister1|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term1|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{#if:{{{speaker|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname2|}}}<br />
| 1namedata = {{{1namedata2|}}}<br />
| 2blankname = {{{2blankname2|}}}<br />
| 2namedata = {{{2namedata2|}}}<br />
| 3blankname = {{{3blankname2|}}}<br />
| 3namedata = {{{3namedata2|}}}<br />
| 4blankname = {{{4blankname2|}}}<br />
| 4namedata = {{{4namedata2|}}}<br />
| 5blankname = {{{5blankname2|}}}<br />
| 5namedata = {{{5namedata2|}}}<br />
| alongside = {{{alongside2|}}}<br />
| ambassador_from = {{{ambassador_from2|}}}<br />
| appointer = {{#if: {{{appointer2|}}} | {{{appointer2}}} | {{{appointed2|}}} }}<br />
| assembly = {{{assembly2|}}}<br />
| chancellor = {{{chancellor2|}}}<br />
| co-leader = {{{co-leader2|}}}<br />
| constituency_{{#if:{{{constituency_AM2|}}}|AM|MP}} = {{#if: {{{constituency_AM2|}}} | {{{constituency_AM2}}} | {{{constituency_MP2|}}} }}<br />
| constituency = {{{constituency2|}}}<br />
| convocation = {{{convocation2|}}}<br />
| country = {{{country2|}}}<br />
| deputy = {{{deputy2|}}}<br />
| district = {{{district2|}}}<br />
| firstminister = {{{firstminister2|}}}<br />
| governor-general = {{{governor-general2|}}}<br />
| governor_general = {{{governor_general2|}}}<br />
| governor = {{{governor2|}}}<br />
| jr/sr = {{{jr/sr2|}}}<br />
| jr/sr and state = {{{jr/sr and state2|}}}<br />
| leader = {{{leader2|}}}<br />
| legislature = {{{legislature2|}}}<br />
| lieutenant_governor = {{{lieutenant_governor2|}}}<br />
| lieutenant = {{{lieutenant2|}}}<br />
| majority_leader = {{#if: {{{majorityleader2|}}} | {{{majorityleader2}}} | {{{majority_leader2|}}} }}<br />
| minister_from = {{{minister_from2|}}}<br />
| minority_floor_leader = {{{minority_floor_leader2|}}}<br />
| majority_floor_leader = {{{majority_floor_leader2|}}}<br />
| majority = {{{majority2|}}}<br />
| minister = {{{minister2|}}}<br />
| minority_leader = {{#if: {{{minorityleader2|}}} | {{{minorityleader2}}} | {{{minority_leader2|}}} }}<br />
| monarch = {{{monarch2|}}}<br />
| nominator = {{{nominator2|}}}<br />
| office = {{{office2|}}}<br />
| order = {{{order2|}}}<br />
| parliament = {{{parliament2|}}}<br />
| parliamentarygroup = {{{parliamentarygroup2|}}}<br />
| predecessor = {{{predecessor2|}}}<br />
| preceding = {{{preceding2|}}}<br />
| preceded = {{{preceded2|}}}<br />
| premier = {{{premier2|}}}<br />
| president = {{{president2|}}}<br />
| primeminister = {{{primeminister2|}}}<br />
| riding = {{{riding2|}}}<br />
| state_assembly = {{{state_assembly2|}}}<br />
| state_delegate = {{{state_delegate2|}}}<br />
| state_house = {{{state_house2|}}}<br />
| state_legislature = {{{state_legislature2|}}}<br />
| state_senate = {{{state_senate2|}}}<br />
| state = {{{state2|}}}<br />
| succeeded = {{{succeeded2|}}}<br />
| succeeding = {{{succeeding2|}}}<br />
| successor = {{{successor2|}}}<br />
| taoiseach = {{{taoiseach2|}}}<br />
| termlabel = {{{term_label2|{{{termlabel2|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend2|}}}|{{{termend2}}}|{{{term_end2|}}}}}<br />
| termstart = {{#if:{{{termstart2|}}}|{{{termstart2}}}|{{{term_start2|}}}}}<br />
| term = {{{term2|}}}<br />
| title = {{{title2|}}}<br />
| vicegovernor = {{{vicegovernor2|}}}<br />
| vicepresident = {{{vicepresident2|}}}<br />
| vicepremier = {{{vicepremier2|}}}<br />
| viceprimeminister = {{{viceprimeminister2|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term2|}}}<br />
}}}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname3|}}}<br />
| 1namedata = {{{1namedata3|}}}<br />
| 2blankname = {{{2blankname3|}}}<br />
| 2namedata = {{{2namedata3|}}}<br />
| 3blankname = {{{3blankname3|}}}<br />
| 3namedata = {{{3namedata3|}}}<br />
| 4blankname = {{{4blankname3|}}}<br />
| 4namedata = {{{4namedata3|}}}<br />
| 5blankname = {{{5blankname3|}}}<br />
| 5namedata = {{{5namedata3|}}}<br />
| alongside = {{{alongside3|}}}<br />
| ambassador_from = {{{ambassador_from3|}}}<br />
| appointer = {{#if: {{{appointer3|}}} | {{{appointer3}}} | {{{appointed3|}}} }}<br />
| assembly = {{{assembly3|}}}<br />
| chancellor = {{{chancellor3|}}}<br />
| co-leader = {{{co-leader3|}}}<br />
| constituency_{{#if:{{{constituency_AM3|}}}|AM|MP}} = {{#if: {{{constituency_AM3|}}} | {{{constituency_AM3}}} | {{{constituency_MP3|}}} }}<br />
| constituency = {{{constituency3|}}}<br />
| convocation = {{{convocation3|}}}<br />
| country = {{{country3|}}}<br />
| deputy = {{{deputy3|}}}<br />
| district = {{{district3|}}}<br />
| firstminister = {{{firstminister3|}}}<br />
| governor-general = {{{governor-general3|}}}<br />
| governor_general = {{{governor_general3|}}}<br />
| governor = {{{governor3|}}}<br />
| jr/sr = {{{jr/sr3|}}}<br />
| jr/sr and state = {{{jr/sr and state3|}}}<br />
| leader = {{{leader3|}}}<br />
| legislature = {{{legislature3|}}}<br />
| lieutenant_governor = {{{lieutenant_governor3|}}}<br />
| lieutenant = {{{lieutenant3|}}}<br />
| minority_floor_leader = {{{minority_floor_leader3|}}}<br />
| minister_from = {{{minister_from3|}}}<br />
| majority_floor_leader = {{{majority_floor_leader3|}}}<br />
| majority_leader = {{#if: {{{majorityleader3|}}} | {{{majorityleader3}}} | {{{majority_leader3|}}} }}<br />
| majority = {{{majority3|}}}<br />
| minister = {{{minister3|}}}<br />
| minority_leader = {{#if: {{{minorityleader3|}}} | {{{minorityleader3}}} | {{{minority_leader3|}}} }}<br />
| monarch = {{{monarch3|}}}<br />
| nominator = {{{nominator3|}}}<br />
| office = {{{office3|}}}<br />
| order = {{{order3|}}}<br />
| parliament = {{{parliament3|}}}<br />
| parliamentarygroup = {{{parliamentarygroup3|}}}<br />
| predecessor = {{{predecessor3|}}}<br />
| preceding = {{{preceding3|}}}<br />
| preceded = {{{preceded3|}}}<br />
| premier = {{{premier3|}}}<br />
| president = {{{president3|}}}<br />
| primeminister = {{{primeminister3|}}}<br />
| riding = {{{riding3|}}}<br />
| state_assembly = {{{state_assembly3|}}}<br />
| state_delegate = {{{state_delegate3|}}}<br />
| state_house = {{{state_house3|}}}<br />
| state_legislature = {{{state_legislature3|}}}<br />
| state_senate = {{{state_senate3|}}}<br />
| state = {{{state3|}}}<br />
| succeeded = {{{succeeded3|}}}<br />
| succeeding = {{{succeeding3|}}}<br />
| successor = {{{successor3|}}}<br />
| taoiseach = {{{taoiseach3|}}}<br />
| termlabel = {{{term_label3|{{{termlabel3|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend3|}}}|{{{termend3}}}|{{{term_end3|}}}}}<br />
| termstart = {{#if:{{{termstart3|}}}|{{{termstart3}}}|{{{term_start3|}}}}}<br />
| term = {{{term3|}}}<br />
| title = {{{title3|}}}<br />
| vicegovernor = {{{vicegovernor3|}}}<br />
| vicepresident = {{{vicepresident3|}}}<br />
| vicepremier = {{{vicepremier3|}}}<br />
| viceprimeminister = {{{viceprimeminister3|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term3|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname4|}}}<br />
| 1namedata = {{{1namedata4|}}}<br />
| 2blankname = {{{2blankname4|}}}<br />
| 2namedata = {{{2namedata4|}}}<br />
| 3blankname = {{{3blankname4|}}}<br />
| 3namedata = {{{3namedata4|}}}<br />
| 4blankname = {{{4blankname4|}}}<br />
| 4namedata = {{{4namedata4|}}}<br />
| 5blankname = {{{5blankname4|}}}<br />
| 5namedata = {{{5namedata4|}}}<br />
| alongside = {{{alongside4|}}}<br />
| ambassador_from = {{{ambassador_from4|}}}<br />
| appointer = {{#if: {{{appointer4|}}} | {{{appointer4}}} | {{{appointed4|}}} }}<br />
| assembly = {{{assembly4|}}}<br />
| chancellor = {{{chancellor4|}}}<br />
| co-leader = {{{co-leader4|}}}<br />
| constituency_{{#if:{{{constituency_AM4|}}}|AM|MP}} = {{#if: {{{constituency_AM4|}}} | {{{constituency_AM4}}} | {{{constituency_MP4|}}} }}<br />
| constituency = {{{constituency4|}}}<br />
| convocation = {{{convocation4|}}}<br />
| country = {{{country4|}}}<br />
| deputy = {{{deputy4|}}}<br />
| district = {{{district4|}}}<br />
| firstminister = {{{firstminister4|}}}<br />
| governor-general = {{{governor-general4|}}}<br />
| governor_general = {{{governor_general4|}}}<br />
| governor = {{{governor4|}}}<br />
| jr/sr = {{{jr/sr4|}}}<br />
| jr/sr and state = {{{jr/sr and state4|}}}<br />
| leader = {{{leader4|}}}<br />
| legislature = {{{legislature4|}}}<br />
| lieutenant_governor = {{{lieutenant_governor4|}}}<br />
| lieutenant = {{{lieutenant4|}}}<br />
| minister_from = {{{minister_from4|}}}<br />
| minority_floor_leader = {{{minority_floor_leader4|}}}<br />
| majority_floor_leader = {{{majority_floor_leader4|}}}<br />
| majority_leader = {{#if: {{{majorityleader4|}}} | {{{majorityleader4}}} | {{{majority_leader4|}}} }}<br />
| majority = {{{majority4|}}}<br />
| minister = {{{minister4|}}}<br />
| minority_leader = {{#if: {{{minorityleader4|}}} | {{{minorityleader4}}} | {{{minority_leader4|}}} }}<br />
| monarch = {{{monarch4|}}}<br />
| nominator = {{{nominator4|}}}<br />
| office = {{{office4|}}}<br />
| order = {{{order4|}}}<br />
| parliament = {{{parliament4|}}}<br />
| parliamentarygroup = {{{parliamentarygroup4|}}}<br />
| predecessor = {{{predecessor4|}}}<br />
| preceding = {{{preceding4|}}}<br />
| preceded = {{{preceded4|}}}<br />
| premier = {{{premier4|}}}<br />
| president = {{{president4|}}}<br />
| primeminister = {{{primeminister4|}}}<br />
| riding = {{{riding4|}}}<br />
| state_assembly = {{{state_assembly4|}}}<br />
| state_delegate = {{{state_delegate4|}}}<br />
| state_house = {{{state_house4|}}}<br />
| state_legislature = {{{state_legislature4|}}}<br />
| state_senate = {{{state_senate4|}}}<br />
| state = {{{state4|}}}<br />
| succeeded = {{{succeeded4|}}}<br />
| succeeding = {{{succeeding4|}}}<br />
| successor = {{{successor4|}}}<br />
| taoiseach = {{{taoiseach4|}}}<br />
| termlabel = {{{term_label4|{{{termlabel4|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend4|}}}|{{{termend4}}}|{{{term_end4|}}}}}<br />
| termstart = {{#if:{{{termstart4|}}}|{{{termstart4}}}|{{{term_start4|}}}}}<br />
| term = {{{term4|}}}<br />
| title = {{{title4|}}}<br />
| vicegovernor = {{{vicegovernor4|}}}<br />
| vicepresident = {{{vicepresident4|}}}<br />
| vicepremier = {{{vicepremier4|}}}<br />
| viceprimeminister = {{{viceprimeminister4|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term4|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname5|}}}<br />
| 1namedata = {{{1namedata5|}}}<br />
| 2blankname = {{{2blankname5|}}}<br />
| 2namedata = {{{2namedata5|}}}<br />
| 3blankname = {{{3blankname5|}}}<br />
| 3namedata = {{{3namedata5|}}}<br />
| 4blankname = {{{4blankname5|}}}<br />
| 4namedata = {{{4namedata5|}}}<br />
| 5blankname = {{{5blankname5|}}}<br />
| 5namedata = {{{5namedata5|}}}<br />
| alongside = {{{alongside5|}}}<br />
| ambassador_from = {{{ambassador_from5|}}}<br />
| appointer = {{#if: {{{appointer5|}}} | {{{appointer5}}} | {{{appointed5|}}} }}<br />
| assembly = {{{assembly5|}}}<br />
| chancellor = {{{chancellor5|}}}<br />
| co-leader = {{{co-leader5|}}}<br />
| constituency_{{#if:{{{constituency_AM5|}}}|AM|MP}} = {{#if: {{{constituency_AM5|}}} | {{{constituency_AM5}}} | {{{constituency_MP5|}}} }}<br />
| constituency = {{{constituency5|}}}<br />
| convocation = {{{convocation5|}}}<br />
| country = {{{country5|}}}<br />
| deputy = {{{deputy5|}}}<br />
| district = {{{district5|}}}<br />
| firstminister = {{{firstminister5|}}}<br />
| governor-general = {{{governor-general5|}}}<br />
| governor_general = {{{governor_general5|}}}<br />
| governor = {{{governor5|}}}<br />
| jr/sr = {{{jr/sr5|}}}<br />
| jr/sr and state = {{{jr/sr and state5|}}}<br />
| leader = {{{leader5|}}}<br />
| legislature = {{{legislature5|}}}<br />
| lieutenant_governor = {{{lieutenant_governor5|}}}<br />
| lieutenant = {{{lieutenant5|}}}<br />
| minister_from = {{{minister_from5|}}}<br />
| minority_floor_leader = {{{minority_floor_leader5|}}}<br />
| majority_floor_leader = {{{majority_floor_leader5|}}}<br />
| majority_leader = {{#if: {{{majorityleader5|}}} | {{{majorityleader5}}} | {{{majority_leader5|}}} }}<br />
| majority = {{{majority5|}}}<br />
| minister = {{{minister5|}}}<br />
| minority_leader = {{#if: {{{minorityleader5|}}} | {{{minorityleader5}}} | {{{minority_leader5|}}} }}<br />
| monarch = {{{monarch5|}}}<br />
| nominator = {{{nominator5|}}}<br />
| office = {{{office5|}}}<br />
| order = {{{order5|}}}<br />
| parliament = {{{parliament5|}}}<br />
| parliamentarygroup = {{{parliamentarygroup5|}}}<br />
| predecessor = {{{predecessor5|}}}<br />
| preceding = {{{preceding5|}}}<br />
| preceded = {{{preceded5|}}}<br />
| premier = {{{premier5|}}}<br />
| president = {{{president5|}}}<br />
| primeminister = {{{primeminister5|}}}<br />
| riding = {{{riding5|}}}<br />
| state_assembly = {{{state_assembly5|}}}<br />
| state_delegate = {{{state_delegate5|}}}<br />
| state_house = {{{state_house5|}}}<br />
| state_legislature = {{{state_legislature5|}}}<br />
| state_senate = {{{state_senate5|}}}<br />
| state = {{{state5|}}}<br />
| succeeded = {{{succeeded5|}}}<br />
| succeeding = {{{succeeding5|}}}<br />
| successor = {{{successor5|}}}<br />
| taoiseach = {{{taoiseach5|}}}<br />
| termlabel = {{{term_label5|{{{termlabel5|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend5|}}}|{{{termend5}}}|{{{term_end5|}}}}}<br />
| termstart = {{#if:{{{termstart5|}}}|{{{termstart5}}}|{{{term_start5|}}}}}<br />
| term = {{{term5|}}}<br />
| title = {{{title5|}}}<br />
| vicegovernor = {{{vicegovernor5|}}}<br />
| vicepresident = {{{vicepresident5|}}}<br />
| vicepremier = {{{vicepremier5|}}}<br />
| viceprimeminister = {{{viceprimeminister5|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term5|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname6|}}}<br />
| 1namedata = {{{1namedata6|}}}<br />
| 2blankname = {{{2blankname6|}}}<br />
| 2namedata = {{{2namedata6|}}}<br />
| 3blankname = {{{3blankname6|}}}<br />
| 3namedata = {{{3namedata6|}}}<br />
| 4blankname = {{{4blankname6|}}}<br />
| 4namedata = {{{4namedata6|}}}<br />
| 5blankname = {{{5blankname6|}}}<br />
| 5namedata = {{{5namedata6|}}}<br />
| alongside = {{{alongside6|}}}<br />
| ambassador_from = {{{ambassador_from6|}}}<br />
| appointer = {{#if: {{{appointer6|}}} | {{{appointer6}}} | {{{appointed6|}}} }}<br />
| assembly = {{{assembly6|}}}<br />
| chancellor = {{{chancellor6|}}}<br />
| co-leader = {{{co-leader6|}}}<br />
| constituency_{{#if:{{{constituency_AM6|}}}|AM|MP}} = {{#if: {{{constituency_AM6|}}} | {{{constituency_AM6}}} | {{{constituency_MP6|}}} }}<br />
| constituency = {{{constituency6|}}}<br />
| convocation = {{{convocation6|}}}<br />
| country = {{{country6|}}}<br />
| deputy = {{{deputy6|}}}<br />
| district = {{{district6|}}}<br />
| firstminister = {{{firstminister6|}}}<br />
| governor-general = {{{governor-general6|}}}<br />
| governor_general = {{{governor_general6|}}}<br />
| governor = {{{governor6|}}}<br />
| jr/sr = {{{jr/sr6|}}}<br />
| jr/sr and state = {{{jr/sr and state6|}}}<br />
| leader = {{{leader6|}}}<br />
| legislature = {{{legislature6|}}}<br />
| lieutenant_governor = {{{lieutenant_governor6|}}}<br />
| lieutenant = {{{lieutenant6|}}}<br />
| minority_floor_leader = {{{minority_floor_leader6|}}}<br />
| minister_from = {{{minister_from6|}}}<br />
| majority_floor_leader = {{{majority_floor_leader6|}}}<br />
| majority_leader = {{#if: {{{majorityleader6|}}} | {{{majorityleader6}}} | {{{majority_leader6|}}} }}<br />
| majority = {{{majority6|}}}<br />
| minister = {{{minister6|}}}<br />
| minority_leader = {{#if: {{{minorityleader6|}}} | {{{minorityleader6}}} | {{{minority_leader6|}}} }}<br />
| monarch = {{{monarch6|}}}<br />
| nominator = {{{nominator6|}}}<br />
| office = {{{office6|}}}<br />
| order = {{{order6|}}}<br />
| parliament = {{{parliament6|}}}<br />
| parliamentarygroup = {{{parliamentarygroup6|}}}<br />
| predecessor = {{{predecessor6|}}}<br />
| preceding = {{{preceding6|}}}<br />
| preceded = {{{preceded6|}}}<br />
| premier = {{{premier6|}}}<br />
| president = {{{president6|}}}<br />
| primeminister = {{{primeminister6|}}}<br />
| riding = {{{riding6|}}}<br />
| state_assembly = {{{state_assembly6|}}}<br />
| state_delegate = {{{state_delegate6|}}}<br />
| state_house = {{{state_house6|}}}<br />
| state_legislature = {{{state_legislature6|}}}<br />
| state_senate = {{{state_senate6|}}}<br />
| state = {{{state6|}}}<br />
| succeeded = {{{succeeded6|}}}<br />
| succeeding = {{{succeeding6|}}}<br />
| successor = {{{successor6|}}}<br />
| taoiseach = {{{taoiseach6|}}}<br />
| termlabel = {{{term_label6|{{{termlabel6|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend6|}}}|{{{termend6}}}|{{{term_end6|}}}}}<br />
| termstart = {{#if:{{{termstart6|}}}|{{{termstart6}}}|{{{term_start6|}}}}}<br />
| term = {{{term6|}}}<br />
| title = {{{title6|}}}<br />
| vicegovernor = {{{vicegovernor6|}}}<br />
| vicepresident = {{{vicepresident6|}}}<br />
| vicepremier = {{{vicepremier6|}}}<br />
| viceprimeminister = {{{viceprimeminister6|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term6|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname7|}}}<br />
| 1namedata = {{{1namedata7|}}}<br />
| 2blankname = {{{2blankname7|}}}<br />
| 2namedata = {{{2namedata7|}}}<br />
| 3blankname = {{{3blankname7|}}}<br />
| 3namedata = {{{3namedata7|}}}<br />
| 4blankname = {{{4blankname7|}}}<br />
| 4namedata = {{{4namedata7|}}}<br />
| 5blankname = {{{5blankname7|}}}<br />
| 5namedata = {{{5namedata7|}}}<br />
| alongside = {{{alongside7|}}}<br />
| ambassador_from = {{{ambassador_from7|}}}<br />
| appointer = {{#if: {{{appointer7|}}} | {{{appointer7}}} | {{{appointed7|}}} }}<br />
| assembly = {{{assembly7|}}}<br />
| chancellor = {{{chancellor7|}}}<br />
| co-leader = {{{co-leader7|}}}<br />
| constituency_{{#if:{{{constituency_AM7|}}}|AM|MP}} = {{#if: {{{constituency_AM7|}}} | {{{constituency_AM7}}} | {{{constituency_MP7|}}} }}<br />
| constituency = {{{constituency7|}}}<br />
| convocation = {{{convocation7|}}}<br />
| country = {{{country7|}}}<br />
| deputy = {{{deputy7|}}}<br />
| district = {{{district7|}}}<br />
| firstminister = {{{firstminister7|}}}<br />
| governor-general = {{{governor-general7|}}}<br />
| governor_general = {{{governor_general7|}}}<br />
| governor = {{{governor7|}}}<br />
| jr/sr = {{{jr/sr7|}}}<br />
| jr/sr and state = {{{jr/sr and state7|}}}<br />
| leader = {{{leader7|}}}<br />
| legislature = {{{legislature7|}}}<br />
| lieutenant_governor = {{{lieutenant_governor7|}}}<br />
| lieutenant = {{{lieutenant7|}}}<br />
| minister_from = {{{minister_from7|}}}<br />
| minority_floor_leader = {{{minority_floor_leader7|}}}<br />
| majority_floor_leader = {{{majority_floor_leader7|}}}<br />
| majority_leader = {{#if: {{{majorityleader7|}}} | {{{majorityleader7}}} | {{{majority_leader7|}}} }}<br />
| majority = {{{majority7|}}}<br />
| minister = {{{minister7|}}}<br />
| minority_leader = {{#if: {{{minorityleader7|}}} | {{{minorityleader7}}} | {{{minority_leader7|}}} }}<br />
| monarch = {{{monarch7|}}}<br />
| nominator = {{{nominator7|}}}<br />
| office = {{{office7|}}}<br />
| order = {{{order7|}}}<br />
| parliament = {{{parliament7|}}}<br />
| parliamentarygroup = {{{parliamentarygroup7|}}}<br />
| predecessor = {{{predecessor7|}}}<br />
| preceding = {{{preceding7|}}}<br />
| preceded = {{{preceded7|}}}<br />
| premier = {{{premier7|}}}<br />
| president = {{{president7|}}}<br />
| primeminister = {{{primeminister7|}}}<br />
| riding = {{{riding7|}}}<br />
| state_assembly = {{{state_assembly7|}}}<br />
| state_delegate = {{{state_delegate7|}}}<br />
| state_house = {{{state_house7|}}}<br />
| state_legislature = {{{state_legislature7|}}}<br />
| state_senate = {{{state_senate7|}}}<br />
| state = {{{state7|}}}<br />
| succeeded = {{{succeeded7|}}}<br />
| succeeding = {{{succeeding7|}}}<br />
| successor = {{{successor7|}}}<br />
| taoiseach = {{{taoiseach7|}}}<br />
| termlabel = {{{term_label7|{{{termlabel7|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend7|}}}|{{{termend7}}}|{{{term_end7|}}}}}<br />
| termstart = {{#if:{{{termstart7|}}}|{{{termstart7}}}|{{{term_start7|}}}}}<br />
| term = {{{term7|}}}<br />
| title = {{{title7|}}}<br />
| vicegovernor = {{{vicegovernor7|}}}<br />
| vicepresident = {{{vicepresident7|}}}<br />
| vicepremier = {{{vicepremier7|}}}<br />
| viceprimeminister = {{{viceprimeminister7|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term7|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname8|}}}<br />
| 1namedata = {{{1namedata8|}}}<br />
| 2blankname = {{{2blankname8|}}}<br />
| 2namedata = {{{2namedata8|}}}<br />
| 3blankname = {{{3blankname8|}}}<br />
| 3namedata = {{{3namedata8|}}}<br />
| 4blankname = {{{4blankname8|}}}<br />
| 4namedata = {{{4namedata8|}}}<br />
| 5blankname = {{{5blankname8|}}}<br />
| 5namedata = {{{5namedata8|}}}<br />
| alongside = {{{alongside8|}}}<br />
| ambassador_from = {{{ambassador_from8|}}}<br />
| appointer = {{#if: {{{appointer8|}}} | {{{appointer8}}} | {{{appointed8|}}} }}<br />
| assembly = {{{assembly8|}}}<br />
| chancellor = {{{chancellor8|}}}<br />
| co-leader = {{{co-leader8|}}}<br />
| constituency_{{#if:{{{constituency_AM8|}}}|AM|MP}} = {{#if: {{{constituency_AM8|}}} | {{{constituency_AM8}}} | {{{constituency_MP8|}}} }}<br />
| constituency = {{{constituency8|}}}<br />
| convocation = {{{convocation8|}}}<br />
| country = {{{country8|}}}<br />
| deputy = {{{deputy8|}}}<br />
| district = {{{district8|}}}<br />
| firstminister = {{{firstminister8|}}}<br />
| governor-general = {{{governor-general8|}}}<br />
| governor_general = {{{governor_general8|}}}<br />
| governor = {{{governor8|}}}<br />
| jr/sr = {{{jr/sr8|}}}<br />
| jr/sr and state = {{{jr/sr and state8|}}}<br />
| leader = {{{leader8|}}}<br />
| legislature = {{{legislature8|}}}<br />
| lieutenant_governor = {{{lieutenant_governor8|}}}<br />
| lieutenant = {{{lieutenant8|}}}<br />
| minister_from = {{{minister_from8|}}}<br />
| minority_floor_leader = {{{minority_floor_leader8|}}}<br />
| majority_floor_leader = {{{majority_floor_leader8|}}}<br />
| majority_leader = {{#if: {{{majorityleader8|}}} | {{{majorityleader8}}} | {{{majority_leader8|}}} }}<br />
| majority = {{{majority8|}}}<br />
| minister = {{{minister8|}}}<br />
| minority_leader = {{#if: {{{minorityleader8|}}} | {{{minorityleader8}}} | {{{minority_leader8|}}} }}<br />
| monarch = {{{monarch8|}}}<br />
| nominator = {{{nominator8|}}}<br />
| office = {{{office8|}}}<br />
| order = {{{order8|}}}<br />
| parliament = {{{parliament8|}}}<br />
| parliamentarygroup = {{{parliamentarygroup8|}}}<br />
| predecessor = {{{predecessor8|}}}<br />
| preceding = {{{preceding8|}}}<br />
| preceded = {{{preceded8|}}}<br />
| premier = {{{premier8|}}}<br />
| president = {{{president8|}}}<br />
| primeminister = {{{primeminister8|}}}<br />
| riding = {{{riding8|}}}<br />
| state_assembly = {{{state_assembly8|}}}<br />
| state_delegate = {{{state_delegate8|}}}<br />
| state_house = {{{state_house8|}}}<br />
| state_legislature = {{{state_legislature8|}}}<br />
| state_senate = {{{state_senate8|}}}<br />
| state = {{{state8|}}}<br />
| succeeded = {{{succeeded8|}}}<br />
| succeeding = {{{succeeding8|}}}<br />
| successor = {{{successor8|}}}<br />
| taoiseach = {{{taoiseach8|}}}<br />
| termlabel = {{{term_label8|{{{termlabel8|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend8|}}}|{{{termend8}}}|{{{term_end8|}}}}}<br />
| termstart = {{#if:{{{termstart8|}}}|{{{termstart8}}}|{{{term_start8|}}}}}<br />
| term = {{{term8|}}}<br />
| title = {{{title8|}}}<br />
| vicegovernor = {{{vicegovernor8|}}}<br />
| vicepresident = {{{vicepresident8|}}}<br />
| vicepremier = {{{vicepremier8|}}}<br />
| viceprimeminister = {{{viceprimeminister8|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term8|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname9|}}}<br />
| 1namedata = {{{1namedata9|}}}<br />
| 2blankname = {{{2blankname9|}}}<br />
| 2namedata = {{{2namedata9|}}}<br />
| 3blankname = {{{3blankname9|}}}<br />
| 3namedata = {{{3namedata9|}}}<br />
| 4blankname = {{{4blankname9|}}}<br />
| 4namedata = {{{4namedata9|}}}<br />
| 5blankname = {{{5blankname9|}}}<br />
| 5namedata = {{{5namedata9|}}}<br />
| alongside = {{{alongside9|}}}<br />
| ambassador_from = {{{ambassador_from9|}}}<br />
| appointer = {{#if: {{{appointer9|}}} | {{{appointer9}}} | {{{appointed9|}}} }}<br />
| assembly = {{{assembly9|}}}<br />
| chancellor = {{{chancellor9|}}}<br />
| co-leader = {{{co-leader9|}}}<br />
| constituency_{{#if:{{{constituency_AM9|}}}|AM|MP}} = {{#if: {{{constituency_AM9|}}} | {{{constituency_AM9}}} | {{{constituency_MP9|}}} }}<br />
| constituency = {{{constituency9|}}}<br />
| convocation = {{{convocation9|}}}<br />
| country = {{{country9|}}}<br />
| deputy = {{{deputy9|}}}<br />
| district = {{{district9|}}}<br />
| firstminister = {{{firstminister9|}}}<br />
| governor-general = {{{governor-general9|}}}<br />
| governor_general = {{{governor_general9|}}}<br />
| governor = {{{governor9|}}}<br />
| jr/sr = {{{jr/sr9|}}}<br />
| jr/sr and state = {{{jr/sr and state9|}}}<br />
| leader = {{{leader9|}}}<br />
| legislature = {{{legislature9|}}}<br />
| lieutenant_governor = {{{lieutenant_governor9|}}}<br />
| lieutenant = {{{lieutenant9|}}}<br />
| minister_from = {{{minister_from9|}}}<br />
| minority_floor_leader = {{{minority_floor_leader9|}}}<br />
| majority_floor_leader = {{{majority_floor_leader9|}}}<br />
| majority_leader = {{#if: {{{majorityleader9|}}} | {{{majorityleader9}}} | {{{majority_leader9|}}} }}<br />
| majority = {{{majority9|}}}<br />
| minister = {{{minister9|}}}<br />
| minority_leader = {{#if: {{{minorityleader9|}}} | {{{minorityleader9}}} | {{{minority_leader9|}}} }}<br />
| monarch = {{{monarch9|}}}<br />
| nominator = {{{nominator9|}}}<br />
| office = {{{office9|}}}<br />
| order = {{{order9|}}}<br />
| parliament = {{{parliament9|}}}<br />
| parliamentarygroup = {{{parliamentarygroup9|}}}<br />
| predecessor = {{{predecessor9|}}}<br />
| preceding = {{{preceding9|}}}<br />
| preceded = {{{preceded9|}}}<br />
| premier = {{{premier9|}}}<br />
| president = {{{president9|}}}<br />
| primeminister = {{{primeminister9|}}}<br />
| riding = {{{riding9|}}}<br />
| state_assembly = {{{state_assembly9|}}}<br />
| state_delegate = {{{state_delegate9|}}}<br />
| state_house = {{{state_house9|}}}<br />
| state_legislature = {{{state_legislature9|}}}<br />
| state_senate = {{{state_senate9|}}}<br />
| state = {{{state9|}}}<br />
| succeeded = {{{succeeded9|}}}<br />
| succeeding = {{{succeeding9|}}}<br />
| successor = {{{successor9|}}}<br />
| taoiseach = {{{taoiseach9|}}}<br />
| termlabel = {{{term_label9|{{{termlabel9|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend9|}}}|{{{termend9}}}|{{{term_end9|}}}}}<br />
| termstart = {{#if:{{{termstart9|}}}|{{{termstart9}}}|{{{term_start9|}}}}}<br />
| term = {{{term9|}}}<br />
| title = {{{title9|}}}<br />
| vicegovernor = {{{vicegovernor9|}}}<br />
| vicepresident = {{{vicepresident9|}}}<br />
| vicepremier = {{{vicepremier9|}}}<br />
| viceprimeminister = {{{viceprimeminister9|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term9|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname10|}}}<br />
| 1namedata = {{{1namedata10|}}}<br />
| 2blankname = {{{2blankname10|}}}<br />
| 2namedata = {{{2namedata10|}}}<br />
| 3blankname = {{{3blankname10|}}}<br />
| 3namedata = {{{3namedata10|}}}<br />
| 4blankname = {{{4blankname10|}}}<br />
| 4namedata = {{{4namedata10|}}}<br />
| 5blankname = {{{5blankname10|}}}<br />
| 5namedata = {{{5namedata10|}}}<br />
| alongside = {{{alongside10|}}}<br />
| ambassador_from = {{{ambassador_from10|}}}<br />
| appointer = {{#if: {{{appointer10|}}} | {{{appointer10}}} | {{{appointed10|}}} }}<br />
| assembly = {{{assembly10|}}}<br />
| chancellor = {{{chancellor10|}}}<br />
| co-leader = {{{co-leader10|}}}<br />
| constituency_{{#if:{{{constituency_AM10|}}}|AM|MP}} = {{#if: {{{constituency_AM10|}}} | {{{constituency_AM10}}} | {{{constituency_MP10|}}} }}<br />
| constituency = {{{constituency10|}}}<br />
| convocation = {{{convocation10|}}}<br />
| country = {{{country10|}}}<br />
| deputy = {{{deputy10|}}}<br />
| district = {{{district10|}}}<br />
| firstminister = {{{firstminister10|}}}<br />
| governor-general = {{{governor-general10|}}}<br />
| governor_general = {{{governor_general10|}}}<br />
| governor = {{{governor10|}}}<br />
| jr/sr = {{{jr/sr10|}}}<br />
| jr/sr and state = {{{jr/sr and state10|}}}<br />
| leader = {{{leader10|}}}<br />
| legislature = {{{legislature10|}}}<br />
| lieutenant_governor = {{{lieutenant_governor10|}}}<br />
| lieutenant = {{{lieutenant10|}}}<br />
| minister_from = {{{minister_from10|}}}<br />
| minority_floor_leader = {{{minority_floor_leader10|}}}<br />
| majority_floor_leader = {{{majority_floor_leader10|}}}<br />
| majority_leader = {{#if: {{{majorityleader10|}}} | {{{majorityleader10}}} | {{{majority_leader10|}}} }}<br />
| majority = {{{majority10|}}}<br />
| minister = {{{minister10|}}}<br />
| minority_leader = {{#if: {{{minorityleader10|}}} | {{{minorityleader10}}} | {{{minority_leader10|}}} }}<br />
| monarch = {{{monarch10|}}}<br />
| nominator = {{{nominator10|}}}<br />
| office = {{{office10|}}}<br />
| order = {{{order10|}}}<br />
| parliament = {{{parliament10|}}}<br />
| parliamentarygroup = {{{parliamentarygroup10|}}}<br />
| predecessor = {{{predecessor10|}}}<br />
| preceding = {{{preceding10|}}}<br />
| preceded = {{{preceded10|}}}<br />
| premier = {{{premier10|}}}<br />
| president = {{{president10|}}}<br />
| primeminister = {{{primeminister10|}}}<br />
| riding = {{{riding10|}}}<br />
| state_assembly = {{{state_assembly10|}}}<br />
| state_delegate = {{{state_delegate10|}}}<br />
| state_house = {{{state_house10|}}}<br />
| state_legislature = {{{state_legislature10|}}}<br />
| state_senate = {{{state_senate10|}}}<br />
| state = {{{state10|}}}<br />
| succeeded = {{{succeeded10|}}}<br />
| succeeding = {{{succeeding10|}}}<br />
| successor = {{{successor10|}}}<br />
| taoiseach = {{{taoiseach10|}}}<br />
| termlabel = {{{term_label10|{{{termlabel10|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend10|}}}|{{{termend10}}}|{{{term_end10|}}}}}<br />
| termstart = {{#if:{{{termstart10|}}}|{{{termstart10}}}|{{{term_start10|}}}}}<br />
| term = {{{term10|}}}<br />
| title = {{{title10|}}}<br />
| vicegovernor = {{{vicegovernor10|}}}<br />
| vicepresident = {{{vicepresident10|}}}<br />
| vicepremier = {{{vicepremier10|}}}<br />
| viceprimeminister = {{{viceprimeminister10|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term10|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname11|}}}<br />
| 1namedata = {{{1namedata11|}}}<br />
| 2blankname = {{{2blankname11|}}}<br />
| 2namedata = {{{2namedata11|}}}<br />
| 3blankname = {{{3blankname11|}}}<br />
| 3namedata = {{{3namedata11|}}}<br />
| 4blankname = {{{4blankname11|}}}<br />
| 4namedata = {{{4namedata11|}}}<br />
| 5blankname = {{{5blankname11|}}}<br />
| 5namedata = {{{5namedata11|}}}<br />
| alongside = {{{alongside11|}}}<br />
| ambassador_from = {{{ambassador_from11|}}}<br />
| appointer = {{#if: {{{appointer11|}}} | {{{appointer11}}} | {{{appointed11|}}} }}<br />
| assembly = {{{assembly11|}}}<br />
| chancellor = {{{chancellor11|}}}<br />
| co-leader = {{{co-leader11|}}}<br />
| constituency_{{#if:{{{constituency_AM11|}}}|AM|MP}} = {{#if: {{{constituency_AM11|}}} | {{{constituency_AM11}}} | {{{constituency_MP11|}}} }}<br />
| constituency = {{{constituency11|}}}<br />
| convocation = {{{convocation11|}}}<br />
| country = {{{country11|}}}<br />
| deputy = {{{deputy11|}}}<br />
| district = {{{district11|}}}<br />
| firstminister = {{{firstminister11|}}}<br />
| governor-general = {{{governor-general11|}}}<br />
| governor_general = {{{governor_general11|}}}<br />
| governor = {{{governor11|}}}<br />
| jr/sr = {{{jr/sr11|}}}<br />
| jr/sr and state = {{{jr/sr and state11|}}}<br />
| leader = {{{leader11|}}}<br />
| legislature = {{{legislature11|}}}<br />
| lieutenant_governor = {{{lieutenant_governor11|}}}<br />
| lieutenant = {{{lieutenant11|}}}<br />
| minister_from = {{{minister_from11|}}}<br />
| minority_floor_leader = {{{minority_floor_leader11|}}}<br />
| majority_floor_leader = {{{majority_floor_leader11|}}}<br />
| majority_leader = {{#if: {{{majorityleader11|}}} | {{{majorityleader11}}} | {{{majority_leader11|}}} }}<br />
| majority = {{{majority11|}}}<br />
| minister = {{{minister11|}}}<br />
| minority_leader = {{#if: {{{minorityleader11|}}} | {{{minorityleader11}}} | {{{minority_leader11|}}} }}<br />
| monarch = {{{monarch11|}}}<br />
| nominator = {{{nominator11|}}}<br />
| office = {{{office11|}}}<br />
| order = {{{order11|}}}<br />
| parliament = {{{parliament11|}}}<br />
| parliamentarygroup = {{{parliamentarygroup11|}}}<br />
| predecessor = {{{predecessor11|}}}<br />
| preceding = {{{preceding11|}}}<br />
| preceded = {{{preceded11|}}}<br />
| premier = {{{premier11|}}}<br />
| president = {{{president11|}}}<br />
| primeminister = {{{primeminister11|}}}<br />
| riding = {{{riding11|}}}<br />
| state_assembly = {{{state_assembly11|}}}<br />
| state_delegate = {{{state_delegate11|}}}<br />
| state_house = {{{state_house11|}}}<br />
| state_legislature = {{{state_legislature11|}}}<br />
| state_senate = {{{state_senate11|}}}<br />
| state = {{{state11|}}}<br />
| succeeded = {{{succeeded11|}}}<br />
| succeeding = {{{succeeding11|}}}<br />
| successor = {{{successor11|}}}<br />
| taoiseach = {{{taoiseach11|}}}<br />
| termlabel = {{{term_label11|{{{termlabel11|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend11|}}}|{{{termend11}}}|{{{term_end11|}}}}}<br />
| termstart = {{#if:{{{termstart11|}}}|{{{termstart11}}}|{{{term_start11|}}}}}<br />
| term = {{{term11|}}}<br />
| title = {{{title11|}}}<br />
| vicegovernor = {{{vicegovernor11|}}}<br />
| vicepresident = {{{vicepresident11|}}}<br />
| vicepremier = {{{vicepremier11|}}}<br />
| viceprimeminister = {{{viceprimeminister11|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term11|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname12|}}}<br />
| 1namedata = {{{1namedata12|}}}<br />
| 2blankname = {{{2blankname12|}}}<br />
| 2namedata = {{{2namedata12|}}}<br />
| 3blankname = {{{3blankname12|}}}<br />
| 3namedata = {{{3namedata12|}}}<br />
| 4blankname = {{{4blankname12|}}}<br />
| 4namedata = {{{4namedata12|}}}<br />
| 5blankname = {{{5blankname12|}}}<br />
| 5namedata = {{{5namedata12|}}}<br />
| alongside = {{{alongside12|}}}<br />
| ambassador_from = {{{ambassador_from12|}}}<br />
| appointer = {{#if: {{{appointer12|}}} | {{{appointer12}}} | {{{appointed12|}}} }}<br />
| assembly = {{{assembly12|}}}<br />
| chancellor = {{{chancellor12|}}}<br />
| co-leader = {{{co-leader12|}}}<br />
| constituency_{{#if:{{{constituency_AM12|}}}|AM|MP}} = {{#if: {{{constituency_AM12|}}} | {{{constituency_AM12}}} | {{{constituency_MP12|}}} }}<br />
| constituency = {{{constituency12|}}}<br />
| convocation = {{{convocation12|}}}<br />
| country = {{{country12|}}}<br />
| deputy = {{{deputy12|}}}<br />
| district = {{{district12|}}}<br />
| firstminister = {{{firstminister12|}}}<br />
| governor-general = {{{governor-general12|}}}<br />
| governor_general = {{{governor_general12|}}}<br />
| governor = {{{governor12|}}}<br />
| jr/sr = {{{jr/sr12|}}}<br />
| jr/sr and state = {{{jr/sr and state12|}}}<br />
| leader = {{{leader12|}}}<br />
| legislature = {{{legislature12|}}}<br />
| lieutenant_governor = {{{lieutenant_governor12|}}}<br />
| lieutenant = {{{lieutenant12|}}}<br />
| minister_from = {{{minister_from12|}}}<br />
| minority_floor_leader = {{{minority_floor_leader12|}}}<br />
| majority_floor_leader = {{{majority_floor_leader12|}}}<br />
| majority_leader = {{#if: {{{majorityleader12|}}} | {{{majorityleader12}}} | {{{majority_leader12|}}} }}<br />
| majority = {{{majority12|}}}<br />
| minister = {{{minister12|}}}<br />
| minority_leader = {{#if: {{{minorityleader12|}}} | {{{minorityleader12}}} | {{{minority_leader12|}}} }}<br />
| monarch = {{{monarch12|}}}<br />
| nominator = {{{nominator12|}}}<br />
| office = {{{office12|}}}<br />
| order = {{{order12|}}}<br />
| parliament = {{{parliament12|}}}<br />
| parliamentarygroup = {{{parliamentarygroup12|}}}<br />
| predecessor = {{{predecessor12|}}}<br />
| preceding = {{{preceding12|}}}<br />
| preceded = {{{preceded12|}}}<br />
| premier = {{{premier12|}}}<br />
| president = {{{president12|}}}<br />
| primeminister = {{{primeminister12|}}}<br />
| riding = {{{riding12|}}}<br />
| state_assembly = {{{state_assembly12|}}}<br />
| state_delegate = {{{state_delegate12|}}}<br />
| state_house = {{{state_house12|}}}<br />
| state_legislature = {{{state_legislature12|}}}<br />
| state_senate = {{{state_senate12|}}}<br />
| state = {{{state12|}}}<br />
| succeeded = {{{succeeded12|}}}<br />
| succeeding = {{{succeeding12|}}}<br />
| successor = {{{successor12|}}}<br />
| taoiseach = {{{taoiseach12|}}}<br />
| termlabel = {{{term_label12|{{{termlabel12|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend12|}}}|{{{termend12}}}|{{{term_end12|}}}}}<br />
| termstart = {{#if:{{{termstart12|}}}|{{{termstart12}}}|{{{term_start12|}}}}}<br />
| term = {{{term12|}}}<br />
| title = {{{title12|}}}<br />
| vicegovernor = {{{vicegovernor12|}}}<br />
| vicepresident = {{{vicepresident12|}}}<br />
| vicepremier = {{{vicepremier12|}}}<br />
| viceprimeminister = {{{viceprimeminister12|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term12|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname13|}}}<br />
| 1namedata = {{{1namedata13|}}}<br />
| 2blankname = {{{2blankname13|}}}<br />
| 2namedata = {{{2namedata13|}}}<br />
| 3blankname = {{{3blankname13|}}}<br />
| 3namedata = {{{3namedata13|}}}<br />
| 4blankname = {{{4blankname13|}}}<br />
| 4namedata = {{{4namedata13|}}}<br />
| 5blankname = {{{5blankname13|}}}<br />
| 5namedata = {{{5namedata13|}}}<br />
| alongside = {{{alongside13|}}}<br />
| ambassador_from = {{{ambassador_from13|}}}<br />
| appointer = {{#if: {{{appointer13|}}} | {{{appointer13}}} | {{{appointed13|}}} }}<br />
| assembly = {{{assembly13|}}}<br />
| chancellor = {{{chancellor13|}}}<br />
| co-leader = {{{co-leader13|}}}<br />
| constituency_{{#if:{{{constituency_AM13|}}}|AM|MP}} = {{#if: {{{constituency_AM13|}}} | {{{constituency_AM13}}} | {{{constituency_MP13|}}} }}<br />
| constituency = {{{constituency13|}}}<br />
| convocation = {{{convocation13|}}}<br />
| country = {{{country13|}}}<br />
| deputy = {{{deputy13|}}}<br />
| district = {{{district13|}}}<br />
| firstminister = {{{firstminister13|}}}<br />
| governor-general = {{{governor-general13|}}}<br />
| governor_general = {{{governor_general13|}}}<br />
| governor = {{{governor13|}}}<br />
| jr/sr = {{{jr/sr13|}}}<br />
| jr/sr and state = {{{jr/sr and state13|}}}<br />
| leader = {{{leader13|}}}<br />
| legislature = {{{legislature13|}}}<br />
| lieutenant_governor = {{{lieutenant_governor13|}}}<br />
| lieutenant = {{{lieutenant13|}}}<br />
| minister_from = {{{minister_from13|}}}<br />
| minority_floor_leader = {{{minority_floor_leader13|}}}<br />
| majority_floor_leader = {{{majority_floor_leader13|}}}<br />
| majority_leader = {{#if: {{{majorityleader13|}}} | {{{majorityleader13}}} | {{{majority_leader13|}}} }}<br />
| majority = {{{majority13|}}}<br />
| minister = {{{minister13|}}}<br />
| minority_leader = {{#if: {{{minorityleader13|}}} | {{{minorityleader13}}} | {{{minority_leader13|}}} }}<br />
| monarch = {{{monarch13|}}}<br />
| nominator = {{{nominator13|}}}<br />
| office = {{{office13|}}}<br />
| order = {{{order13|}}}<br />
| parliament = {{{parliament13|}}}<br />
| parliamentarygroup = {{{parliamentarygroup13|}}}<br />
| predecessor = {{{predecessor13|}}}<br />
| preceding = {{{preceding13|}}}<br />
| preceded = {{{preceded13|}}}<br />
| premier = {{{premier13|}}}<br />
| president = {{{president13|}}}<br />
| primeminister = {{{primeminister13|}}}<br />
| riding = {{{riding13|}}}<br />
| state_assembly = {{{state_assembly13|}}}<br />
| state_delegate = {{{state_delegate13|}}}<br />
| state_house = {{{state_house13|}}}<br />
| state_legislature = {{{state_legislature13|}}}<br />
| state_senate = {{{state_senate13|}}}<br />
| state = {{{state13|}}}<br />
| succeeded = {{{succeeded13|}}}<br />
| succeeding = {{{succeeding13|}}}<br />
| successor = {{{successor13|}}}<br />
| taoiseach = {{{taoiseach13|}}}<br />
| termlabel = {{{term_label13|{{{termlabel13|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend13|}}}|{{{termend13}}}|{{{term_end13|}}}}}<br />
| termstart = {{#if:{{{termstart13|}}}|{{{termstart13}}}|{{{term_start13|}}}}}<br />
| term = {{{term13|}}}<br />
| title = {{{title13|}}}<br />
| vicegovernor = {{{vicegovernor13|}}}<br />
| vicepresident = {{{vicepresident13|}}}<br />
| vicepremier = {{{vicepremier13|}}}<br />
| viceprimeminister = {{{viceprimeminister13|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term13|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname14|}}}<br />
| 1namedata = {{{1namedata14|}}}<br />
| 2blankname = {{{2blankname14|}}}<br />
| 2namedata = {{{2namedata14|}}}<br />
| 3blankname = {{{3blankname14|}}}<br />
| 3namedata = {{{3namedata14|}}}<br />
| 4blankname = {{{4blankname14|}}}<br />
| 4namedata = {{{4namedata14|}}}<br />
| 5blankname = {{{5blankname14|}}}<br />
| 5namedata = {{{5namedata14|}}}<br />
| alongside = {{{alongside14|}}}<br />
| ambassador_from = {{{ambassador_from14|}}}<br />
| appointer = {{#if: {{{appointer14|}}} | {{{appointer14}}} | {{{appointed14|}}} }}<br />
| assembly = {{{assembly14|}}}<br />
| chancellor = {{{chancellor14|}}}<br />
| co-leader = {{{co-leader14|}}}<br />
| constituency_{{#if:{{{constituency_AM14|}}}|AM|MP}} = {{#if: {{{constituency_AM14|}}} | {{{constituency_AM14}}} | {{{constituency_MP14|}}} }}<br />
| constituency = {{{constituency14|}}}<br />
| convocation = {{{convocation14|}}}<br />
| country = {{{country14|}}}<br />
| deputy = {{{deputy14|}}}<br />
| district = {{{district14|}}}<br />
| firstminister = {{{firstminister14|}}}<br />
| governor-general = {{{governor-general14|}}}<br />
| governor_general = {{{governor_general14|}}}<br />
| governor = {{{governor14|}}}<br />
| jr/sr = {{{jr/sr14|}}}<br />
| jr/sr and state = {{{jr/sr and state14|}}}<br />
| leader = {{{leader14|}}}<br />
| legislature = {{{legislature14|}}}<br />
| lieutenant_governor = {{{lieutenant_governor14|}}}<br />
| lieutenant = {{{lieutenant14|}}}<br />
| minister_from = {{{minister_from14|}}}<br />
| minority_floor_leader = {{{minority_floor_leader14|}}}<br />
| majority_floor_leader = {{{majority_floor_leader14|}}}<br />
| majority_leader = {{#if: {{{majorityleader14|}}} | {{{majorityleader14}}} | {{{majority_leader14|}}} }}<br />
| majority = {{{majority14|}}}<br />
| minister = {{{minister14|}}}<br />
| minority_leader = {{#if: {{{minorityleader14|}}} | {{{minorityleader14}}} | {{{minority_leader14|}}} }}<br />
| monarch = {{{monarch14|}}}<br />
| nominator = {{{nominator14|}}}<br />
| office = {{{office14|}}}<br />
| order = {{{order14|}}}<br />
| parliament = {{{parliament14|}}}<br />
| parliamentarygroup = {{{parliamentarygroup14|}}}<br />
| predecessor = {{{predecessor14|}}}<br />
| preceding = {{{preceding14|}}}<br />
| preceded = {{{preceded14|}}}<br />
| premier = {{{premier14|}}}<br />
| president = {{{president14|}}}<br />
| primeminister = {{{primeminister14|}}}<br />
| riding = {{{riding14|}}}<br />
| state_assembly = {{{state_assembly14|}}}<br />
| state_delegate = {{{state_delegate14|}}}<br />
| state_house = {{{state_house14|}}}<br />
| state_legislature = {{{state_legislature14|}}}<br />
| state_senate = {{{state_senate14|}}}<br />
| state = {{{state14|}}}<br />
| succeeded = {{{succeeded14|}}}<br />
| succeeding = {{{succeeding14|}}}<br />
| successor = {{{successor14|}}}<br />
| taoiseach = {{{taoiseach14|}}}<br />
| termlabel = {{{term_label14|{{{termlabel14|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend14|}}}|{{{termend14}}}|{{{term_end14|}}}}}<br />
| termstart = {{#if:{{{termstart14|}}}|{{{termstart14}}}|{{{term_start14|}}}}}<br />
| term = {{{term14|}}}<br />
| title = {{{title14|}}}<br />
| vicegovernor = {{{vicegovernor14|}}}<br />
| vicepresident = {{{vicepresident14|}}}<br />
| vicepremier = {{{vicepremier14|}}}<br />
| viceprimeminister = {{{viceprimeminister14|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term14|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname15|}}}<br />
| 1namedata = {{{1namedata15|}}}<br />
| 2blankname = {{{2blankname15|}}}<br />
| 2namedata = {{{2namedata15|}}}<br />
| 3blankname = {{{3blankname15|}}}<br />
| 3namedata = {{{3namedata15|}}}<br />
| 4blankname = {{{4blankname15|}}}<br />
| 4namedata = {{{4namedata15|}}}<br />
| 5blankname = {{{5blankname15|}}}<br />
| 5namedata = {{{5namedata15|}}}<br />
| alongside = {{{alongside15|}}}<br />
| ambassador_from = {{{ambassador_from15|}}}<br />
| appointer = {{#if: {{{appointer15|}}} | {{{appointer15}}} | {{{appointed15|}}} }}<br />
| assembly = {{{assembly15|}}}<br />
| chancellor = {{{chancellor15|}}}<br />
| co-leader = {{{co-leader15|}}}<br />
| constituency_{{#if:{{{constituency_AM15|}}}|AM|MP}} = {{#if: {{{constituency_AM15|}}} | {{{constituency_AM15}}} | {{{constituency_MP15|}}} }}<br />
| constituency = {{{constituency15|}}}<br />
| convocation = {{{convocation15|}}}<br />
| country = {{{country15|}}}<br />
| deputy = {{{deputy15|}}}<br />
| district = {{{district15|}}}<br />
| firstminister = {{{firstminister15|}}}<br />
| governor-general = {{{governor-general15|}}}<br />
| governor_general = {{{governor_general15|}}}<br />
| governor = {{{governor15|}}}<br />
| jr/sr = {{{jr/sr15|}}}<br />
| jr/sr and state = {{{jr/sr and state15|}}}<br />
| leader = {{{leader15|}}}<br />
| legislature = {{{legislature15|}}}<br />
| lieutenant_governor = {{{lieutenant_governor15|}}}<br />
| lieutenant = {{{lieutenant15|}}}<br />
| minister_from = {{{minister_from15|}}}<br />
| minority_floor_leader = {{{minority_floor_leader15|}}}<br />
| majority_floor_leader = {{{majority_floor_leader15|}}}<br />
| majority_leader = {{#if: {{{majorityleader15|}}} | {{{majorityleader15}}} | {{{majority_leader15|}}} }}<br />
| majority = {{{majority15|}}}<br />
| minister = {{{minister15|}}}<br />
| minority_leader = {{#if: {{{minorityleader15|}}} | {{{minorityleader15}}} | {{{minority_leader15|}}} }}<br />
| monarch = {{{monarch15|}}}<br />
| nominator = {{{nominator15|}}}<br />
| office = {{{office15|}}}<br />
| order = {{{order15|}}}<br />
| parliament = {{{parliament15|}}}<br />
| parliamentarygroup = {{{parliamentarygroup15|}}}<br />
| predecessor = {{{predecessor15|}}}<br />
| preceding = {{{preceding15|}}}<br />
| preceded = {{{preceded15|}}}<br />
| premier = {{{premier15|}}}<br />
| president = {{{president15|}}}<br />
| primeminister = {{{primeminister15|}}}<br />
| riding = {{{riding15|}}}<br />
| state_assembly = {{{state_assembly15|}}}<br />
| state_delegate = {{{state_delegate15|}}}<br />
| state_house = {{{state_house15|}}}<br />
| state_legislature = {{{state_legislature15|}}}<br />
| state_senate = {{{state_senate15|}}}<br />
| state = {{{state15|}}}<br />
| succeeded = {{{succeeded15|}}}<br />
| succeeding = {{{succeeding15|}}}<br />
| successor = {{{successor15|}}}<br />
| taoiseach = {{{taoiseach15|}}}<br />
| termlabel = {{{term_label15|{{{termlabel15|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend15|}}}|{{{termend15}}}|{{{term_end15|}}}}}<br />
| termstart = {{#if:{{{termstart15|}}}|{{{termstart15}}}|{{{term_start15|}}}}}<br />
| term = {{{term15|}}}<br />
| title = {{{title15|}}}<br />
| vicegovernor = {{{vicegovernor15|}}}<br />
| vicepresident = {{{vicepresident15|}}}<br />
| vicepremier = {{{vicepremier15|}}}<br />
| viceprimeminister = {{{viceprimeminister15|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term15|}}}<br />
}}}}<!--<br />
-->{{#if:{{{nominee|}}}{{{candidate|}}}||<br />
{{Infobox officeholder/office|color={{#ifeq:{{lc:{{{embed}}}}}|yes|#eee|lavender}}<br />
| 1blankname = {{{1blankname16|}}}<br />
| 1namedata = {{{1namedata16|}}}<br />
| 2blankname = {{{2blankname16|}}}<br />
| 2namedata = {{{2namedata16|}}}<br />
| 3blankname = {{{3blankname16|}}}<br />
| 3namedata = {{{3namedata16|}}}<br />
| 4blankname = {{{4blankname16|}}}<br />
| 4namedata = {{{4namedata16|}}}<br />
| 5blankname = {{{5blankname16|}}}<br />
| 5namedata = {{{5namedata16|}}}<br />
| alongside = {{{alongside16|}}}<br />
| ambassador_from = {{{ambassador_from16|}}}<br />
| appointer = {{#if: {{{appointer16|}}} | {{{appointer16}}} | {{{appointed16|}}} }}<br />
| assembly = {{{assembly16|}}}<br />
| chancellor = {{{chancellor16|}}}<br />
| co-leader = {{{co-leader16|}}}<br />
| constituency_{{#if:{{{constituency_AM16|}}}|AM|MP}} = {{#if: {{{constituency_AM16|}}} | {{{constituency_AM16}}} | {{{constituency_MP16|}}} }}<br />
| constituency = {{{constituency16|}}}<br />
| convocation = {{{convocation16|}}}<br />
| country = {{{country16|}}}<br />
| deputy = {{{deputy16|}}}<br />
| district = {{{district16|}}}<br />
| firstminister = {{{firstminister16|}}}<br />
| governor-general = {{{governor-general16|}}}<br />
| governor_general = {{{governor_general16|}}}<br />
| governor = {{{governor16|}}}<br />
| jr/sr = {{{jr/sr16|}}}<br />
| jr/sr and state = {{{jr/sr and state16|}}}<br />
| leader = {{{leader16|}}}<br />
| legislature = {{{legislature16|}}}<br />
| lieutenant_governor = {{{lieutenant_governor16|}}}<br />
| lieutenant = {{{lieutenant16|}}}<br />
| minister_from = {{{minister_from16|}}}<br />
| minority_floor_leader = {{{minority_floor_leader16|}}}<br />
| majority_floor_leader = {{{majority_floor_leader16|}}}<br />
| majority_leader = {{#if: {{{majorityleader16|}}} | {{{majorityleader16}}} | {{{majority_leader16|}}} }}<br />
| majority = {{{majority16|}}}<br />
| minister = {{{minister16|}}}<br />
| minority_leader = {{#if: {{{minorityleader16|}}} | {{{minorityleader16}}} | {{{minority_leader16|}}} }}<br />
| monarch = {{{monarch16|}}}<br />
| nominator = {{{nominator16|}}}<br />
| office = {{{office16|}}}<br />
| order = {{{order16|}}}<br />
| parliament = {{{parliament16|}}}<br />
| parliamentarygroup = {{{parliamentarygroup16|}}}<br />
| predecessor = {{{predecessor16|}}}<br />
| preceding = {{{preceding16|}}}<br />
| preceded = {{{preceded16|}}}<br />
| premier = {{{premier16|}}}<br />
| president = {{{president16|}}}<br />
| primeminister = {{{primeminister16|}}}<br />
| riding = {{{riding16|}}}<br />
| state_assembly = {{{state_assembly16|}}}<br />
| state_delegate = {{{state_delegate16|}}}<br />
| state_house = {{{state_house16|}}}<br />
| state_legislature = {{{state_legislature16|}}}<br />
| state_senate = {{{state_senate16|}}}<br />
| state = {{{state16|}}}<br />
| succeeded = {{{succeeded16|}}}<br />
| succeeding = {{{succeeding16|}}}<br />
| successor = {{{successor16|}}}<br />
| taoiseach = {{{taoiseach16|}}}<br />
| termlabel = {{{term_label16|{{{termlabel16|Masa jabatan}}}}}}<br />
| termend = {{#if:{{{termend16|}}}|{{{termend16}}}|{{{term_end16|}}}}}<br />
| termstart = {{#if:{{{termstart16|}}}|{{{termstart16}}}|{{{term_start16|}}}}}<br />
| term = {{{term16|}}}<br />
| title = {{{title16|}}}<br />
| vicegovernor = {{{vicegovernor16|}}}<br />
| vicepresident = {{{vicepresident16|}}}<br />
| vicepremier = {{{vicepremier16|}}}<br />
| viceprimeminister = {{{viceprimeminister16|}}}<br />
| party = {{{party|}}}<br />
| prior_term = {{{prior_term16|}}}<br />
}}}}<br />
<br />
| data19 = {{{module0|}}}<br />
<!----------Personal data----------><br />
| header20 = {{#if:{{{pronunciation|}}}{{{birth_name|{{{birthname|}}}}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{resting_place|{{{restingplace|}}}}}}{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}{{{citizenship|}}}{{{nationality|}}}{{{party|}}}{{{otherparty|}}}{{{spouse|}}}{{{partner|}}}{{{relations|}}}{{{children|}}}{{{parents|}}}{{{mother|}}}{{{father|}}}{{{relatives|}}}{{{residence|}}}{{{education|}}}{{{alma_mater|}}}{{{occupation|}}}{{{profession|}}}{{{known_for|}}}{{{salary|}}}{{{net_worth|}}}{{{cabinet|}}}{{{committees|}}}{{{portfolio|}}}{{{awards|}}}{{{data1|}}}{{{data2|}}}{{{data3|}}}{{{data4|}}}{{{data5|}}}|Informasi pribadi}}<br />
| label21 = Pengucapan<br />
| data21 = {{{pronunciation|}}}<br />
<br />
| label22 = Lahir<br />
| data22 = {{br separated entries<br />
|1 = {{#if:{{{birth_name|{{{birthname|}}}}}}|<span class="nickname">{{{birth_name|{{{birthname}}}}}}</span>}}<br />
|2 = {{{birth_date|}}}<br />
|3 = {{{birth_place|}}}<br />
}}<br />
<br />
| label23 = Meninggal dunia<br />
| data23 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}<br />
<br />
| label24 = Sebab&nbsp;kematian<br />
| data24 = {{{death_cause|}}}<br />
<br />
| label25 = Makam<br />
| class25 = label<br />
| data25 = {{br separated entries|{{{resting_place|{{{restingplace|}}}}}}|{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}}}<br />
<br />
| label26 = Kewarganegaraan<br />
| data26 = {{{citizenship|}}}<br />
<br />
| label27 = Kebangsaan<br />
| data27 = {{{nationality|}}}<br />
<br />
| label28 = Partai politik<br />
| data28 = {{#switch:{{{party|}}}<br />
| =<br />
| [[Partai Demokrat Amerika Serikat|Demokrat]]<br />
| [[Partai Demokrat (Amerika Serikat)|Demokratik]]<br />
| [[Partai Demokrat (Amerika Serikat)|Demokrat]] = [[Partai Demokrat (Amerika Serikat)|Demokrat]]<br />
| [[Partai Republik (Amerika Serikat)|Republik]]<br />
| [[Partai Republik Amerika Serikat]]<br />
| [[Partai Republik Amerika Serikat|Republik]]<br />
| [[Partai Republik (Amerika Serikat)|Partai Republik]] = [[Partai Republik (Amerika Serikat)|Republik]]<br />
| [[Partai Konservatif (Britania Raya)|Partai Konservatif]]<br />
| [[Partai Konservatif (Britania Raya)|Konservatif]] = [[Partai Konservatif (Britania Raya)|Konservatif]]<br />
| [[Partai Buruh (Britania Raya)|Partai Buruh]]<br />
| [[Partai Buruh (Britania Raya)|Buruh]] = [[Partai Buruh (Britania Raya)|Buruh]]<br />
| [[Partai Konservatif Kanada|Partai Konservatif]]<br />
| [[Partai Konservatif Kanada|Konservatif]] = [[Partai Konservatif Kanada|Konservatif]]<br />
| [[Partai Liberal Kanada|Partai Liberal]]<br />
| [[Partai Liberal Kanada|Liberal]] = [[Partai Liberal Kanada|Liberal]]<br />
| KMT<br />
| Kuomintang<br />
| [[KMT]]<br />
| [[Kuomintang|KMT]]<br />
| [[Kuomintang]]<br />
| Kuomintang (KMT)<br />
| [[Kuomintang]] (KMT)<br />
| {{KMT}} (KMT)<br />
| {{KMT}} = [[Kuomintang]]<br />
| DPP<br />
| [[Partai Progresif Demokratik|DPP]]<br />
| [[Partai Progresif Demokratik]]<br />
| {{DPP}} = [[Partai Progresif Demokratik]]<br />
| #default = {{{party|}}} {{main other|{{#invoke:Officeholder party tracking|tracking|party={{{party|}}}}}}}}}<br />
<br />
| label29 = Afiliasi<br />politik lain<br />
| data29 = {{{otherparty|}}}<br />
<br />
| label30 = Tinggi<br />
| data30 = {{#if:{{{height|}}}|{{infobox person/height|{{{height|}}}}}}}<br />
<br />
| label31 = Pasangan<br />
| data31 = {{{spouse|}}}<br />
<br />
| label32 = Pasangan serumah<br />
| data32 = {{{partner|}}}<br />
<br />
| label33 = Hubungan<br />
| data33 = {{{relations|}}}<br />
<br />
| label34 = Anak<br />
| data34 = {{{children|}}}<br />
<br />
| label35 = Orang tua<br />
| data35 = {{{parents|}}}<br />
<br />
| label36 = Ibu<br />
| data36 = {{{mother|}}}<br />
<br />
| label37 = Bapak<br />
| data37 = {{{father|}}}<br />
<br />
| label38 = Kerabat<br />
| data38 = {{{relatives|}}}<br />
<br />
| label39 = Tempat tinggal<br />
| class39 = {{#if:{{{death_date|}}}{{{death_place|}}}||label}}<br />
| data39 = {{{residence|}}}<br />
<br />
| label40 = Pendidikan<br />
| data40 = {{{education|}}}<br />
<br />
| label41 = [[Alma mater]]<br />
| data41 = {{{alma_mater|}}}<br />
<br />
| label42 = Pekerjaan<br />
| data42 = {{{occupation|}}}<br />
<br />
| label43 = Profesi<br />
| data43 = {{{profession|}}}<br />
<br />
| label44 = Dikenal karena<br />
| data44 = {{{known_for|}}}<br />
<br />
| label45 = Upah<br />
| data45 = {{{salary|}}}<br />
<br />
| label46 = Kekayaan bersih<br />
| data46 = {{{net_worth|}}}<br />
<br />
| label47 = Kabinet<br />
| data47 = {{{cabinet|}}}<br />
<br />
| label48 = Komite<br />
| data48 = {{{committees|}}}<br />
<br />
| label49 = Portofolio<br />
| data49 = {{{portfolio|}}}<!--<br />
| label50 = Agama<br />
| data50 = {{{religion|}}}--><br />
<br />
| label51 = {{#if:{{{mawards|}}}|Penghargaan|Penghargaan sipil}}<br />
| data51 = {{{awards|}}}<br />
<br />
| label52 = {{{blank1}}}<br />
| data52 = {{{data1|}}}<br />
<br />
| label53 = {{{blank2}}}<br />
| data53 = {{{data2|}}}<br />
<br />
| label54 = {{{blank3}}}<br />
| data54 = {{{data3|}}}<br />
<br />
| label55 = {{{blank4}}}<br />
| data55 = {{{data4|}}}<br />
<br />
| label56 = {{{blank5}}}<br />
| data56 = {{{data5|}}}<br />
<br />
| label57 = Tanda tangan<br />
| data57 = {{#if:{{{signature|}}}|[[File:{{{signature}}}|128x80px|alt={{{signature_alt|}}}|Tanda tangan {{PAGENAME}}]]}}<br />
<br />
| label58 = Situs web<br />
| data58 = {{{website|}}}<br />
<br />
| header59 = {{#if:{{{allegiance|}}}{{{branch|}}}{{{serviceyears|}}}{{{rank|}}}{{{unit|}}}{{{commands|}}}{{{battles|}}}{{{military_blank1|}}}|Dinas militer}}<br />
<br />
| label60 = Julukan<br />
| data60 = {{{nickname|}}}<br />
<br />
| label61 = Pihak<br />
| data61 = {{{allegiance|}}}<br />
<br />
| label62 = Dinas/cabang<br />
| data62 = {{{branch|}}}<br />
<br />
| label63 = Masa dinas<br />
| data63 = {{{serviceyears|}}}<br />
<br />
| label64 = Pangkat<br />
| data64 = {{{rank|}}}<br />
<br />
| label65 = Satuan<br />
| data65 = {{{unit|}}}<br />
<br />
| label66 = Komando<br />
| data66 = {{{commands|}}}<br />
<br />
| label67 = Pertempuran/perang<br />
| data67 = {{{battles|}}}<br />
<br />
| label68 = {{#if:{{{awards|}}}|Penghargaan|Penghargaan militer}}<br />
| data68 = {{{mawards|}}}<br />
<br />
| label69 = {{{military_blank1}}}<br />
| data69 = {{{military_data1|}}}<br />
<br />
| label70 = {{{military_blank2}}}<br />
| data70 = {{{military_data2|}}}<br />
<br />
| label71 = {{{military_blank3}}}<br />
| data71 = {{{military_data3|}}}<br />
<br />
| label72 = {{{military_blank4}}}<br />
| data72 = {{{military_data4|}}}<br />
<br />
| label73 = {{{military_blank5}}}<br />
| data73 = {{{military_data5|}}}<br />
<br />
| data74 = {{{module|}}}<br />
| data75 = {{{module2|}}}<br />
| data76 = {{{module3|}}}<br />
| data77 = {{{module4|}}}<br />
| data78 = {{{module5|}}}<br />
| data79 = {{{footnotes|}}}<br />
| belowstyle = border-top: 1px solid right; font-size: 90%<br />
| below = {{#if:{{{date|}}}| Per {{{date}}}{{#if:{{{year|}}}|, {{{year}}}}}{{#if:{{{source|}}}|<br />Sumber: [{{{source}}}]}} }}<br />
<br />
}}{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]<br />
}}{{#if:{{{1blankname0|}}}{{{1namedata0|}}}{{{2blankname0|}}}{{{2namedata0|}}}{{{3blankname0|}}}{{{3namedata0|}}}{{{4blankname0|}}}{{{4namedata0|}}}{{{5blankname0|}}}{{{5namedata0|}}}{{{alongside0|}}}{{{ambassador_from0|}}}{{{appointer0|}}}{{{assembly0|}}}{{{chancellor0|}}}{{{co-leader0|}}}{{{constituency_AM0|}}}{{{constituency0|}}}{{{country0|}}}{{{deputy0|}}}{{{district0|}}}{{{firstminister0|}}}{{{governor-general0|}}}{{{governor0|}}}{{{jr/sr0|}}}{{{jr/sr and state0|}}}{{{leader0|}}}{{{legislature0|}}}{{{lieutenant_governor0|}}}{{{lieutenant0|}}}{{{minister_from0|}}}{{{minority_floor_leader0|}}}{{{majority_floor_leader0|}}}{{{majorityleader0|}}}{{{majority0|}}}{{{minister0|}}}{{{minorityleader0|}}}{{{monarch0|}}}{{{nominator0|}}}{{{office0|}}}{{{order0|}}}{{{parliament0|}}}{{{predecessor0|}}}{{{preceding0|}}}{{{preceded0|}}}{{{premier0|}}}{{{president0|}}}{{{primeminister0|}}}{{{riding0|}}}{{{state_assembly0|}}}{{{state_delegate0|}}}{{{state_house0|}}}{{{state_legislature0|}}}{{{state_senate0|}}}{{{state0|}}}{{{succeeded0|}}}{{{succeeding0|}}}{{{successor0|}}}{{{taoiseach0|}}}{{{termend0|}}}{{{termstart0|}}}{{{term0|}}}{{{title0|}}}{{{vicegovernor0|}}}{{{vicepresident0|}}}{{{vicepremier0|}}}{{{viceprimeminister0|}}}{{{prior_term0|}}}{{{appointe0|}}}{{{constituency_0|}}}|[[Category:Pages using infobox officeholder with office0]]<br />
}}{{#if:{{{speaker|}}}|{{#if:{{{nominee|}}}{{{candidate|}}}||[[Category:Pages using infobox officeholder with speaker and without nominee or candidate]]}}<br />
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox officeholder with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox officeholder]] with unknown parameter "_VALUE_"|ignoreblank=y| 1blankname | 1blankname1 | 1blankname10 | 1blankname11 | 1blankname12 | 1blankname13 | 1blankname14 | 1blankname15 | 1blankname16 | 1blankname2 | 1blankname3 | 1blankname4 | 1blankname5 | 1blankname6 | 1blankname7 | 1blankname8 | 1blankname9 | 1namedata | 1namedata1 | 1namedata10 | 1namedata11 | 1namedata12 | 1namedata13 | 1namedata14 | 1namedata15 | 1namedata16 | 1namedata2 | 1namedata3 | 1namedata4 | 1namedata5 | 1namedata6 | 1namedata7 | 1namedata8 | 1namedata9 | 2blankname | 2blankname1 | 2blankname10 | 2blankname11 | 2blankname12 | 2blankname13 | 2blankname14 | 2blankname15 | 2blankname16 | 2blankname2 | 2blankname3 | 2blankname4 | 2blankname5 | 2blankname6 | 2blankname7 | 2blankname8 | 2blankname9 | 2namedata | 2namedata1 | 2namedata10 | 2namedata11 | 2namedata12 | 2namedata13 | 2namedata14 | 2namedata15 | 2namedata16 | 2namedata2 | 2namedata3 | 2namedata4 | 2namedata5 | 2namedata6 | 2namedata7 | 2namedata8 | 2namedata9 | 3blankname | 3blankname1 | 3blankname10 | 3blankname11 | 3blankname12 | 3blankname13 | 3blankname14 | 3blankname15 | 3blankname16 | 3blankname2 | 3blankname3 | 3blankname4 | 3blankname5 | 3blankname6 | 3blankname7 | 3blankname8 | 3blankname9 | 3namedata | 3namedata1 | 3namedata10 | 3namedata11 | 3namedata12 | 3namedata13 | 3namedata14 | 3namedata15 | 3namedata16 | 3namedata2 | 3namedata3 | 3namedata4 | 3namedata5 | 3namedata6 | 3namedata7 | 3namedata8 | 3namedata9 | 4blankname | 4blankname1 | 4blankname10 | 4blankname11 | 4blankname12 | 4blankname13 | 4blankname14 | 4blankname15 | 4blankname16 | 4blankname2 | 4blankname3 | 4blankname4 | 4blankname5 | 4blankname6 | 4blankname7 | 4blankname8 | 4blankname9 | 4namedata | 4namedata1 | 4namedata10 | 4namedata11 | 4namedata12 | 4namedata13 | 4namedata14 | 4namedata15 | 4namedata16 | 4namedata2 | 4namedata3 | 4namedata4 | 4namedata5 | 4namedata6 | 4namedata7 | 4namedata8 | 4namedata9 | 5blankname | 5blankname1 | 5blankname10 | 5blankname11 | 5blankname12 | 5blankname13 | 5blankname14 | 5blankname15 | 5blankname16 | 5blankname2 | 5blankname3 | 5blankname4 | 5blankname5 | 5blankname6 | 5blankname7 | 5blankname8 | 5blankname9 | 5namedata | 5namedata1 | 5namedata10 | 5namedata11 | 5namedata12 | 5namedata13 | 5namedata14 | 5namedata15 | 5namedata16 | 5namedata2 | 5namedata3 | 5namedata4 | 5namedata5 | 5namedata6 | 5namedata7 | 5namedata8 | 5namedata9 | allegiance | alma_mater | alongside | alongside1 | alongside10 | alongside11 | alongside12 | alongside13 | alongside14 | alongside15 | alongside16 | alongside2 | alongside3 | alongside4 | alongside5 | alongside6 | alongside7 | alongside8 | alongside9 | alt | ambassador_from | ambassador_from1 | ambassador_from10 | ambassador_from11 | ambassador_from12 | ambassador_from13 | ambassador_from14 | ambassador_from15 | ambassador_from16 | ambassador_from2 | ambassador_from3 | ambassador_from4 | ambassador_from5 | ambassador_from6 | ambassador_from7 | ambassador_from8 | ambassador_from9 | appointed | appointed1 | appointed10 | appointed11 | appointed12 | appointed13 | appointed14 | appointed15 | appointed16 | appointed2 | appointed3 | appointed4 | appointed5 | appointed6 | appointed7 | appointed8 | appointed9 | appointer | appointer1 | appointer10 | appointer11 | appointer12 | appointer13 | appointer14 | appointer15 | appointer16 | appointer2 | appointer3 | appointer4 | appointer5 | appointer6 | appointer7 | appointer8 | appointer9 | assembly | assembly1 | assembly10 | assembly11 | assembly12 | assembly13 | assembly14 | assembly15 | assembly16 | assembly2 | assembly3 | assembly4 | assembly5 | assembly6 | assembly7 | assembly8 | assembly9 | awards | battles | birth_date | birth_name | birth_place | birthname | blank1 | blank2 | blank3 | blank4 | blank5 | bodyclass | branch | cabinet | candidate | caption | chancellor | chancellor1 | chancellor10 | chancellor11 | chancellor12 | chancellor13 | chancellor14 | chancellor15 | chancellor16 | chancellor2 | chancellor3 | chancellor4 | chancellor5 | chancellor6 | chancellor7 | chancellor8 | chancellor9 | children | citizenship | co-leader | co-leader1 | co-leader10 | co-leader11 | co-leader12 | co-leader13 | co-leader14 | co-leader15 | co-leader16 | co-leader2 | co-leader3 | co-leader4 | co-leader5 | co-leader6 | co-leader7 | co-leader8 | co-leader9 | commands | committees | constituency | constituency_AM | constituency_AM1 | constituency_AM10 | constituency_AM11 | constituency_AM12 | constituency_AM13 | constituency_AM14 | constituency_AM15 | constituency_AM16 | constituency_AM2 | constituency_AM3 | constituency_AM4 | constituency_AM5 | constituency_AM6 | constituency_AM7 | constituency_AM8 | constituency_AM9 | constituency_MP | constituency_MP1 | constituency_MP10 | constituency_MP11 | constituency_MP12 | constituency_MP13 | constituency_MP14 | constituency_MP15 | constituency_MP16 | constituency_MP2 | constituency_MP3 | constituency_MP4 | constituency_MP5 | constituency_MP6 | constituency_MP7 | constituency_MP8 | constituency_MP9 | constituency1 | constituency10 | constituency11 | constituency12 | constituency13 | constituency14 | constituency15 | constituency16 | constituency2 | constituency3 | constituency4 | constituency5 | constituency6 | constituency7 | constituency8 | constituency9 | convocation | convocation1 | convocation2 | convocation3 | convocation4 | convocation5 | convocation6 | convocation7 | convocation8 | convocation9 | convocation10 | convocation11 | convocation12 | convocation13 | convocation14 | convocation15 | convocation16 | country | country1 | country10 | country11 | country12 | country13 | country14 | country15 | country16 | country2 | country3 | country4 | country5 | country6 | country7 | country8 | country9 | data1 | data2 | data3 | data4 | data5 | date | death_cause | death_date | death_place | deputy | deputy1 | deputy10 | deputy11 | deputy12 | deputy13 | deputy14 | deputy15 | deputy16 | deputy2 | deputy3 | deputy4 | deputy5 | deputy6 | deputy7 | deputy8 | deputy9 | district | district1 | district10 | district11 | district12 | district13 | district14 | district15 | district16 | district2 | district3 | district4 | district5 | district6 | district7 | district8 | district9 | education | election_date | embed | father | firstminister | firstminister1 | firstminister10 | firstminister11 | firstminister12 | firstminister13 | firstminister14 | firstminister15 | firstminister16 | firstminister2 | firstminister3 | firstminister4 | firstminister5 | firstminister6 | firstminister7 | firstminister8 | firstminister9 | footnotes | governor | governor_general | governor_general1 | governor_general10 | governor_general11 | governor_general12 | governor_general13 | governor_general14 | governor_general15 | governor_general16 | governor_general2 | governor_general3 | governor_general4 | governor_general5 | governor_general6 | governor_general7 | governor_general8 | governor_general9 | governor-general | governor-general1 | governor-general10 | governor-general11 | governor-general12 | governor-general13 | governor-general14 | governor-general15 | governor-general16 | governor-general2 | governor-general3 | governor-general4 | governor-general5 | governor-general6 | governor-general7 | governor-general8 | governor-general9 | governor1 | governor10 | governor11 | governor12 | governor13 | governor14 | governor15 | governor16 | governor2 | governor3 | governor4 | governor5 | governor6 | governor7 | governor8 | governor9 | height | honorific_prefix | honorific-prefix | honorific_suffix | honorific-suffix | image | image name | image_size | imagesize | image_upright | incumbent | jr/sr | jr/sr and state | jr/sr and state1 | jr/sr and state10 | jr/sr and state11 | jr/sr and state12 | jr/sr and state13 | jr/sr and state14 | jr/sr and state15 | jr/sr and state16 | jr/sr and state2 | jr/sr and state3 | jr/sr and state4 | jr/sr and state5 | jr/sr and state6 | jr/sr and state7 | jr/sr and state8 | jr/sr and state9 | jr/sr1 | jr/sr10 | jr/sr11 | jr/sr12 | jr/sr13 | jr/sr14 | jr/sr15 | jr/sr16 | jr/sr2 | jr/sr3 | jr/sr4 | jr/sr5 | jr/sr6 | jr/sr7 | jr/sr8 | jr/sr9 | known_for | leader | leader1 | leader10 | leader11 | leader12 | leader13 | leader14 | leader15 | leader16 | leader2 | leader3 | leader4 | leader5 | leader6 | leader7 | leader8 | leader9 | legislature | legislature1 | legislature10 | legislature11 | legislature12 | legislature13 | legislature14 | legislature15 | legislature16 | legislature2 | legislature3 | legislature4 | legislature5 | legislature6 | legislature7 | legislature8 | legislature9 | lieutenant | lieutenant_governor | lieutenant_governor1 | lieutenant_governor10 | lieutenant_governor11 | lieutenant_governor12 | lieutenant_governor13 | lieutenant_governor14 | lieutenant_governor15 | lieutenant_governor16 | lieutenant_governor2 | lieutenant_governor3 | lieutenant_governor4 | lieutenant_governor5 | lieutenant_governor6 | lieutenant_governor7 | lieutenant_governor8 | lieutenant_governor9 | lieutenant1 | lieutenant10 | lieutenant11 | lieutenant12 | lieutenant13 | lieutenant14 | lieutenant15 | lieutenant16 | lieutenant2 | lieutenant3 | lieutenant4 | lieutenant5 | lieutenant6 | lieutenant7 | lieutenant8 | lieutenant9 | mainwidth | majority | majority_floor_leader | majority_floor_leader1 | majority_floor_leader10 | majority_floor_leader11 | majority_floor_leader12 | majority_floor_leader13 | majority_floor_leader14 | majority_floor_leader15 | majority_floor_leader16 | majority_floor_leader2 | majority_floor_leader3 | majority_floor_leader4 | majority_floor_leader5 | majority_floor_leader6 | majority_floor_leader7 | majority_floor_leader8 | majority_floor_leader9 | majority_leader | majority_leader1 | majority_leader10 | majority_leader11 | majority_leader12 | majority_leader13 | majority_leader14 | majority_leader15 | majority_leader16 | majority_leader2 | majority_leader3 | majority_leader4 | majority_leader5 | majority_leader6 | majority_leader7 | majority_leader8 | majority_leader9 | majority1 | majority10 | majority11 | majority12 | majority13 | majority14 | majority15 | majority16 | majority2 | majority3 | majority4 | majority5 | majority6 | majority7 | majority8 | majority9 | majorityleader | majorityleader1 | majorityleader10 | majorityleader11 | majorityleader12 | majorityleader13 | majorityleader14 | majorityleader15 | majorityleader16 | majorityleader2 | majorityleader3 | majorityleader4 | majorityleader5 | majorityleader6 | majorityleader7 | majorityleader8 | majorityleader9 | mawards | military_blank1 | military_blank2 | military_blank3 | military_blank4 | military_blank5 | military_data1 | military_data2 | military_data3 | military_data4 | military_data5 | minister | minister_from | minister_from1 | minister_from10 | minister_from11 | minister_from12 | minister_from13 | minister_from14 | minister_from15 | minister_from16 | minister_from2 | minister_from3 | minister_from4 | minister_from5 | minister_from6 | minister_from7 | minister_from8 | minister_from9 | minister1 | minister10 | minister11 | minister12 | minister13 | minister14 | minister15 | minister16 | minister2 | minister3 | minister4 | minister5 | minister6 | minister7 | minister8 | minister9 | minority_floor_leader | minority_floor_leader1 | minority_floor_leader10 | minority_floor_leader11 | minority_floor_leader12 | minority_floor_leader13 | minority_floor_leader14 | minority_floor_leader15 | minority_floor_leader16 | minority_floor_leader2 | minority_floor_leader3 | minority_floor_leader4 | minority_floor_leader5 | minority_floor_leader6 | minority_floor_leader7 | minority_floor_leader8 | minority_floor_leader9 | minority_leader | minority_leader1 | minority_leader10 | minority_leader11 | minority_leader12 | minority_leader13 | minority_leader14 | minority_leader15 | minority_leader16 | minority_leader2 | minority_leader3 | minority_leader4 | minority_leader5 | minority_leader6 | minority_leader7 | minority_leader8 | minority_leader9 | minorityleader | minorityleader1 | minorityleader10 | minorityleader11 | minorityleader12 | minorityleader13 | minorityleader14 | minorityleader15 | minorityleader16 | minorityleader2 | minorityleader3 | minorityleader4 | minorityleader5 | minorityleader6 | minorityleader7 | minorityleader8 | minorityleader9 | module | module0 | module2 | module3 | module4 | module5 | monarch | monarch1 | monarch10 | monarch11 | monarch12 | monarch13 | monarch14 | monarch15 | monarch16 | monarch2 | monarch3 | monarch4 | monarch5 | monarch6 | monarch7 | monarch8 | monarch9 | mother | name | nationality | native_name | native_name_lang | net_worth | nickname | nominator | nominator1 | nominator10 | nominator11 | nominator12 | nominator13 | nominator14 | nominator15 | nominator16 | nominator2 | nominator3 | nominator4 | nominator5 | nominator6 | nominator7 | nominator8 | nominator9 | nominee | occupation | office | office1 | office10 | office11 | office12 | office13 | office14 | office15 | office16 | office2 | office3 | office4 | office5 | office6 | office7 | office8 | office9 | opponent | order | order1 | order10 | order11 | order12 | order13 | order14 | order15 | order16 | order2 | order3 | order4 | order5 | order6 | order7 | order8 | order9 | otherparty | parents | parliament | parliament1 | parliament10 | parliament11 | parliament12 | parliament13 | parliament14 | parliament15 | parliament16 | parliament2 | parliament3 | parliament4 | parliament5 | parliament6 | parliament7 | parliament8 | parliament9 | parliamentarygroup | parliamentarygroup1 | parliamentarygroup10 | parliamentarygroup11 | parliamentarygroup12 | parliamentarygroup13 | parliamentarygroup14 | parliamentarygroup15 | parliamentarygroup16 | parliamentarygroup2 | parliamentarygroup3 | parliamentarygroup4 | parliamentarygroup5 | parliamentarygroup6 | parliamentarygroup7 | parliamentarygroup8 | parliamentarygroup9 | partner | party | party_election | portfolio | preceded | preceded1 | preceded10 | preceded11 | preceded12 | preceded13 | preceded14 | preceded15 | preceded16 | preceded2 | preceded3 | preceded4 | preceded5 | preceded6 | preceded7 | preceded8 | preceded9 | preceding | preceding1 | preceding10 | preceding11 | preceding12 | preceding13 | preceding14 | preceding15 | preceding16 | preceding2 | preceding3 | preceding4 | preceding5 | preceding6 | preceding7 | preceding8 | preceding9 | predecessor | predecessor1 | predecessor10 | predecessor11 | predecessor12 | predecessor13 | predecessor14 | predecessor15 | predecessor16 | predecessor2 | predecessor3 | predecessor4 | predecessor5 | predecessor6 | predecessor7 | predecessor8 | predecessor9 | premier | premier1 | premier10 | premier11 | premier12 | premier13 | premier14 | premier15 | premier16 | premier2 | premier3 | premier4 | premier5 | premier6 | premier7 | premier8 | premier9 | president | president1 | president10 | president11 | president12 | president13 | president14 | president15 | president16 | president2 | president3 | president4 | president5 | president6 | president7 | president8 | president9 | primeminister | primeminister1 | primeminister10 | primeminister11 | primeminister12 | primeminister13 | primeminister14 | primeminister15 | primeminister16 | primeminister2 | primeminister3 | primeminister4 | primeminister5 | primeminister6 | primeminister7 | primeminister8 | primeminister9 | prior_term | prior_term1 | prior_term10 | prior_term11 | prior_term12 | prior_term13 | prior_term14 | prior_term15 | prior_term16 | prior_term2 | prior_term3 | prior_term4 | prior_term5 | prior_term6 | prior_term7 | prior_term8 | prior_term9 | profession | pronunciation | rank | relations | relatives | residence | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | riding | riding1 | riding10 | riding11 | riding12 | riding13 | riding14 | riding15 | riding16 | riding2 | riding3 | riding4 | riding5 | riding6 | riding7 | riding8 | riding9 | runningmate | salary | serviceyears | signature | signature_alt | smallimage | source | speaker | speaker_office | spouse | state | state_assembly | state_assembly1 | state_assembly10 | state_assembly11 | state_assembly12 | state_assembly13 | state_assembly14 | state_assembly15 | state_assembly16 | state_assembly2 | state_assembly3 | state_assembly4 | state_assembly5 | state_assembly6 | state_assembly7 | state_assembly8 | state_assembly9 | state_delegate | state_delegate1 | state_delegate10 | state_delegate11 | state_delegate12 | state_delegate13 | state_delegate14 | state_delegate15 | state_delegate16 | state_delegate2 | state_delegate3 | state_delegate4 | state_delegate5 | state_delegate6 | state_delegate7 | state_delegate8 | state_delegate9 | state_house | state_house1 | state_house10 | state_house11 | state_house12 | state_house13 | state_house14 | state_house15 | state_house16 | state_house2 | state_house3 | state_house4 | state_house5 | state_house6 | state_house7 | state_house8 | state_house9 | state_legislature | state_legislature1 | state_legislature10 | state_legislature11 | state_legislature12 | state_legislature13 | state_legislature14 | state_legislature15 | state_legislature16 | state_legislature2 | state_legislature3 | state_legislature4 | state_legislature5 | state_legislature6 | state_legislature7 | state_legislature8 | state_legislature9 | state_senate | state_senate1 | state_senate10 | state_senate11 | state_senate12 | state_senate13 | state_senate14 | state_senate15 | state_senate16 | state_senate2 | state_senate3 | state_senate4 | state_senate5 | state_senate6 | state_senate7 | state_senate8 | state_senate9 | state1 | state10 | state11 | state12 | state13 | state14 | state15 | state16 | state2 | state3 | state4 | state5 | state6 | state7 | state8 | state9 | succeeded | succeeded1 | succeeded10 | succeeded11 | succeeded12 | succeeded13 | succeeded14 | succeeded15 | succeeded16 | succeeded2 | succeeded3 | succeeded4 | succeeded5 | succeeded6 | succeeded7 | succeeded8 | succeeded9 | succeeding | succeeding1 | succeeding10 | succeeding11 | succeeding12 | succeeding13 | succeeding14 | succeeding15 | succeeding16 | succeeding2 | succeeding3 | succeeding4 | succeeding5 | succeeding6 | succeeding7 | succeeding8 | succeeding9 | successor | successor1 | successor10 | successor11 | successor12 | successor13 | successor14 | successor15 | successor16 | successor2 | successor3 | successor4 | successor5 | successor6 | successor7 | successor8 | successor9 | taoiseach | taoiseach1 | taoiseach10 | taoiseach11 | taoiseach12 | taoiseach13 | taoiseach14 | taoiseach15 | taoiseach16 | taoiseach2 | taoiseach3 | taoiseach4 | taoiseach5 | taoiseach6 | taoiseach7 | taoiseach8 | taoiseach9 | term | term_end | term_end1 | term_end10 | term_end11 | term_end12 | term_end13 | term_end14 | term_end15 | term_end16 | term_end2 | term_end3 | term_end4 | term_end5 | term_end6 | term_end7 | term_end8 | term_end9 | term_label | term_label1 | term_label10 | term_label11 | term_label12 | term_label13 | term_label14 | term_label15 | term_label16 | term_label2 | term_label3 | term_label4 | term_label5 | term_label6 | term_label7 | term_label8 | term_label9 | term_start | term_start1 | term_start10 | term_start11 | term_start12 | term_start13 | term_start14 | term_start15 | term_start16 | term_start2 | term_start3 | term_start4 | term_start5 | term_start6 | term_start7 | term_start8 | term_start9 | term1 | term10 | term11 | term12 | term13 | term14 | term15 | term16 | term2 | term3 | term4 | term5 | term6 | term7 | term8 | term9 | termend | termend1 | termend10 | termend11 | termend12 | termend13 | termend14 | termend15 | termend16 | termend2 | termend3 | termend4 | termend5 | termend6 | termend7 | termend8 | termend9 | termlabel | termlabel1 | termlabel10 | termlabel11 | termlabel12 | termlabel13 | termlabel14 | termlabel15 | termlabel16 | termlabel2 | termlabel3 | termlabel4 | termlabel5 | termlabel6 | termlabel7 | termlabel8 | termlabel9 | termstart | termstart1 | termstart10 | termstart11 | termstart12 | termstart13 | termstart14 | termstart15 | termstart16 | termstart2 | termstart3 | termstart4 | termstart5 | termstart6 | termstart7 | termstart8 | termstart9 | title | title1 | title10 | title11 | title12 | title13 | title14 | title15 | title16 | title2 | title3 | title4 | title5 | title6 | title7 | title8 | title9 | unit | vicegovernor | vicegovernor1 | vicegovernor10 | vicegovernor11 | vicegovernor12 | vicegovernor13 | vicegovernor14 | vicegovernor15 | vicegovernor16 | vicegovernor2 | vicegovernor3 | vicegovernor4 | vicegovernor5 | vicegovernor6 | vicegovernor7 | vicegovernor8 | vicegovernor9 | vicepremier | vicepremier1 | vicepremier10 | vicepremier11 | vicepremier12 | vicepremier13 | vicepremier14 | vicepremier15 | vicepremier16 | vicepremier2 | vicepremier3 | vicepremier4 | vicepremier5 | vicepremier6 | vicepremier7 | vicepremier8 | vicepremier9 | vicepresident | vicepresident1 | vicepresident10 | vicepresident11 | vicepresident12 | vicepresident13 | vicepresident14 | vicepresident15 | vicepresident16 | vicepresident2 | vicepresident3 | vicepresident4 | vicepresident5 | vicepresident6 | vicepresident7 | vicepresident8 | vicepresident9 | viceprimeminister | viceprimeminister1 | viceprimeminister10 | viceprimeminister11 | viceprimeminister12 | viceprimeminister13 | viceprimeminister14 | viceprimeminister15 | viceprimeminister16 | viceprimeminister2 | viceprimeminister3 | viceprimeminister4 | viceprimeminister5 | viceprimeminister6 | viceprimeminister7 | viceprimeminister8 | viceprimeminister9 | website | width | year }}<noinclude>{{Documentation}}</noinclude></div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Citation/CS1/Identifiers&diff=818Modul:Citation/CS1/Identifiers2019-08-09T03:36:12Z<p>Adminwiki: 1 revisi diimpor: Templat:Cite web</p>
<hr />
<div><br />
local identifiers = {};<br />
<br />
<br />
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------<br />
]]<br />
<br />
local is_set, in_array, set_error, select_one, add_maint_cat, substitute, make_wikilink; -- functions in Module:Citation/CS1/Utilities<br />
<br />
local z; -- table of tables defined in Module:Citation/CS1/Utilities<br />
<br />
local cfg; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration<br />
<br />
<br />
--============================<< H E L P E R F U N C T I O N S >>============================================<br />
<br />
--[[--------------------------< E X T E R N A L _ L I N K _ I D >----------------------------------------------<br />
<br />
Formats a wiki style external link<br />
<br />
]]<br />
<br />
local function external_link_id(options)<br />
local url_string = options.id;<br />
local ext_link;<br />
<br />
if options.encode == true or options.encode == nil then<br />
url_string = mw.uri.encode( url_string );<br />
end<br />
<br />
ext_link = mw.ustring.format ('[%s%s%s %s]', options.prefix, url_string, options.suffix or "", mw.text.nowiki(options.id));<br />
if is_set(options.access) then<br />
ext_link = substitute (cfg.presentation['access-signal'], {ext_link, cfg.presentation[options.access]}); -- add the free-to-read / paywall lock<br />
end<br />
<br />
return table.concat ({<br />
make_wikilink (options.link, options.label),<br />
options.separator or '&nbsp;',<br />
ext_link<br />
});<br />
end<br />
<br />
<br />
--[[--------------------------< I N T E R N A L _ L I N K _ I D >----------------------------------------------<br />
<br />
Formats a wiki style internal link<br />
<br />
]]<br />
<br />
local function internal_link_id(options)<br />
<br />
return table.concat (<br />
{<br />
make_wikilink (options.link, options.label),<br />
options.separator or '&nbsp;',<br />
make_wikilink (<br />
table.concat (<br />
{<br />
options.prefix,<br />
options.id,<br />
options.suffix or ''<br />
}),<br />
mw.text.nowiki (options.id)<br />
);<br />
});<br />
end<br />
<br />
<br />
--[[--------------------------< I S _ E M B A R G O E D >------------------------------------------------------<br />
<br />
Determines if a PMC identifier's online version is embargoed. Compares the date in |embargo= against today's date. If embargo date is<br />
in the future, returns the content of |embargo=; otherwise, returns and empty string because the embargo has expired or because<br />
|embargo= was not set in this cite.<br />
<br />
]]<br />
<br />
local function is_embargoed (embargo)<br />
if is_set (embargo) then<br />
local lang = mw.getContentLanguage();<br />
local good1, embargo_date, good2, todays_date;<br />
good1, embargo_date = pcall( lang.formatDate, lang, 'U', embargo );<br />
good2, todays_date = pcall( lang.formatDate, lang, 'U' );<br />
<br />
if good1 and good2 then -- if embargo date and today's date are good dates<br />
if tonumber( embargo_date ) >= tonumber( todays_date ) then -- is embargo date is in the future?<br />
return embargo; -- still embargoed<br />
else<br />
add_maint_cat ('embargo')<br />
return ''; -- unset because embargo has expired<br />
end<br />
end<br />
end<br />
return ''; -- |embargo= not set return empty string<br />
end<br />
<br />
<br />
--[[--------------------------< IS _ V A L I D _ I S X N >-----------------------------------------------------<br />
<br />
ISBN-10 and ISSN validator code calculates checksum across all isbn/issn digits including the check digit.<br />
ISBN-13 is checked in isbn().<br />
<br />
If the number is valid the result will be 0. Before calling this function, issbn/issn must be checked for length<br />
and stripped of dashes, spaces and other non-isxn characters.<br />
<br />
]]<br />
<br />
local function is_valid_isxn (isxn_str, len)<br />
local temp = 0;<br />
isxn_str = { isxn_str:byte(1, len) }; -- make a table of byte values '0' → 0x30 .. '9' → 0x39, 'X' → 0x58<br />
len = len+1; -- adjust to be a loop counter<br />
for i, v in ipairs( isxn_str ) do -- loop through all of the bytes and calculate the checksum<br />
if v == string.byte( "X" ) then -- if checkdigit is X (compares the byte value of 'X' which is 0x58)<br />
temp = temp + 10*( len - i ); -- it represents 10 decimal<br />
else<br />
temp = temp + tonumber( string.char(v) )*(len-i);<br />
end<br />
end<br />
return temp % 11 == 0; -- returns true if calculation result is zero<br />
end<br />
<br />
<br />
--[[--------------------------< IS _ V A L I D _ I S X N _ 1 3 >-----------------------------------------------<br />
<br />
ISBN-13 and ISMN validator code calculates checksum across all 13 isbn/ismn digits including the check digit.<br />
If the number is valid, the result will be 0. Before calling this function, isbn-13/ismn must be checked for length<br />
and stripped of dashes, spaces and other non-isxn-13 characters.<br />
<br />
]]<br />
<br />
local function is_valid_isxn_13 (isxn_str)<br />
local temp=0;<br />
<br />
isxn_str = { isxn_str:byte(1, 13) }; -- make a table of byte values '0' → 0x30 .. '9' → 0x39<br />
for i, v in ipairs( isxn_str ) do<br />
temp = temp + (3 - 2*(i % 2)) * tonumber( string.char(v) ); -- multiply odd index digits by 1, even index digits by 3 and sum; includes check digit<br />
end<br />
return temp % 10 == 0; -- sum modulo 10 is zero when isbn-13/ismn is correct<br />
end<br />
<br />
<br />
--[[--------------------------< N O R M A L I Z E _ L C C N >--------------------------------------------------<br />
<br />
lccn normalization (http://www.loc.gov/marc/lccn-namespace.html#normalization)<br />
1. Remove all blanks.<br />
2. If there is a forward slash (/) in the string, remove it, and remove all characters to the right of the forward slash.<br />
3. If there is a hyphen in the string:<br />
a. Remove it.<br />
b. Inspect the substring following (to the right of) the (removed) hyphen. Then (and assuming that steps 1 and 2 have been carried out):<br />
1. All these characters should be digits, and there should be six or less. (not done in this function)<br />
2. If the length of the substring is less than 6, left-fill the substring with zeroes until the length is six.<br />
<br />
Returns a normalized lccn for lccn() to validate. There is no error checking (step 3.b.1) performed in this function.<br />
]]<br />
<br />
local function normalize_lccn (lccn)<br />
lccn = lccn:gsub ("%s", ""); -- 1. strip whitespace<br />
<br />
if nil ~= string.find (lccn,'/') then<br />
lccn = lccn:match ("(.-)/"); -- 2. remove forward slash and all character to the right of it<br />
end<br />
<br />
local prefix<br />
local suffix<br />
prefix, suffix = lccn:match ("(.+)%-(.+)"); -- 3.a remove hyphen by splitting the string into prefix and suffix<br />
<br />
if nil ~= suffix then -- if there was a hyphen<br />
suffix=string.rep("0", 6-string.len (suffix)) .. suffix; -- 3.b.2 left fill the suffix with 0s if suffix length less than 6<br />
lccn=prefix..suffix; -- reassemble the lccn<br />
end<br />
<br />
return lccn;<br />
end<br />
<br />
--============================<< I D E N T I F I E R F U N C T I O N S >>====================================<br />
<br />
--[[--------------------------< A R X I V >--------------------------------------------------------------------<br />
<br />
See: http://arxiv.org/help/arxiv_identifier<br />
<br />
format and error check arXiv identifier. There are three valid forms of the identifier:<br />
the first form, valid only between date codes 9108 and 0703 is:<br />
arXiv:<archive>.<class>/<date code><number><version><br />
where:<br />
<archive> is a string of alpha characters - may be hyphenated; no other punctuation<br />
<class> is a string of alpha characters - may be hyphenated; no other punctuation<br />
<date code> is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01<br />
first digit of YY for this form can only 9 and 0<br />
<number> is a three-digit number<br />
<version> is a 1 or more digit number preceded with a lowercase v; no spaces (undocumented)<br />
<br />
the second form, valid from April 2007 through December 2014 is:<br />
arXiv:<date code>.<number><version><br />
where:<br />
<date code> is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01<br />
<number> is a four-digit number<br />
<version> is a 1 or more digit number preceded with a lowercase v; no spaces<br />
<br />
the third form, valid from January 2015 is:<br />
arXiv:<date code>.<number><version><br />
where:<br />
<date code> and <version> are as defined for 0704-1412<br />
<number> is a five-digit number<br />
]]<br />
<br />
local function arxiv (id, class)<br />
local handler = cfg.id_handlers['ARXIV'];<br />
local year, month, version;<br />
local err_cat = '';<br />
local text;<br />
<br />
if id:match("^%a[%a%.%-]+/[90]%d[01]%d%d%d%d$") or id:match("^%a[%a%.%-]+/[90]%d[01]%d%d%d%dv%d+$") then -- test for the 9108-0703 format w/ & w/o version<br />
year, month = id:match("^%a[%a%.%-]+/([90]%d)([01]%d)%d%d%d[v%d]*$");<br />
year = tonumber(year);<br />
month = tonumber(month);<br />
if ((not (90 < year or 8 > year)) or (1 > month or 12 < month)) or -- if invalid year or invalid month<br />
((91 == year and 7 > month) or (7 == year and 3 < month)) then -- if years ok, are starting and ending months ok?<br />
err_cat = ' ' .. set_error( 'bad_arxiv' ); -- set error message<br />
end<br />
elseif id:match("^%d%d[01]%d%.%d%d%d%d$") or id:match("^%d%d[01]%d%.%d%d%d%dv%d+$") then -- test for the 0704-1412 w/ & w/o version<br />
year, month = id:match("^(%d%d)([01]%d)%.%d%d%d%d[v%d]*$");<br />
year = tonumber(year);<br />
month = tonumber(month);<br />
if ((7 > year) or (14 < year) or (1 > month or 12 < month)) or -- is year invalid or is month invalid? (doesn't test for future years)<br />
((7 == year) and (4 > month)) then --or -- when year is 07, is month invalid (before April)?<br />
err_cat = ' ' .. set_error( 'bad_arxiv' ); -- set error message<br />
end<br />
elseif id:match("^%d%d[01]%d%.%d%d%d%d%d$") or id:match("^%d%d[01]%d%.%d%d%d%d%dv%d+$") then -- test for the 1501- format w/ & w/o version<br />
year, month = id:match("^(%d%d)([01]%d)%.%d%d%d%d%d[v%d]*$");<br />
year = tonumber(year);<br />
month = tonumber(month);<br />
if ((15 > year) or (1 > month or 12 < month)) then -- is year invalid or is month invalid? (doesn't test for future years)<br />
err_cat = ' ' .. set_error( 'bad_arxiv' ); -- set error message<br />
end<br />
else<br />
err_cat = ' ' .. set_error( 'bad_arxiv' ); -- arXiv id doesn't match any format<br />
end<br />
<br />
text = external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=handler.access}) .. err_cat;<br />
<br />
if is_set (class) then<br />
class = ' [[' .. '//arxiv.org/archive/' .. class .. ' ' .. class .. ']]'; -- external link within square brackets, not wikilink<br />
else<br />
class = ''; -- empty string for concatenation<br />
end<br />
<br />
return text .. class;<br />
end<br />
<br />
<br />
--[[--------------------------< B I B C O D E >--------------------------------------------------------------------<br />
<br />
Validates (sort of) and formats a bibcode id.<br />
<br />
Format for bibcodes is specified here: http://adsabs.harvard.edu/abs_doc/help_pages/data.html#bibcodes<br />
<br />
But, this: 2015arXiv151206696F is apparently valid so apparently, the only things that really matter are length, 19 characters<br />
and first four digits must be a year. This function makes these tests:<br />
length must be 19 characters<br />
characters in position<br />
1–4 must be digits and must represent a year in the range of 1000 – next year<br />
5 must be a letter<br />
6 must be letter, ampersand, or dot (ampersand cannot directly precede a dot; &. )<br />
7–8 must be letter, digit, ampersand, or dot (ampersand cannot directly precede a dot; &. )<br />
9–18 must be letter, digit, or dot<br />
19 must be a letter or dot<br />
<br />
]]<br />
<br />
local function bibcode (id, access)<br />
local handler = cfg.id_handlers['BIBCODE'];<br />
local err_type;<br />
local year;<br />
<br />
local text = external_link_id({link=handler.link, label=handler.label,<br />
prefix=handler.prefix, id=id, separator=handler.separator, encode=handler.encode,<br />
access=access});<br />
<br />
if 19 ~= id:len() then<br />
err_type = 'length';<br />
else<br />
year = id:match ("^(%d%d%d%d)[%a][%a&%.][%a&%.%d][%a&%.%d][%a%d%.]+[%a%.]$") -- <br />
if not year then -- if nil then no pattern match<br />
err_type = 'value'; -- so value error<br />
else<br />
local next_year = tonumber(os.date ('%Y'))+1; -- get the current year as a number and add one for next year<br />
year = tonumber (year); -- convert year portion of bibcode to a number<br />
if (1000 > year) or (year > next_year) then<br />
err_type = 'year'; -- year out of bounds<br />
end<br />
if id:find('&%.') then<br />
err_type = 'journal'; -- journal abbreviation must not have '&.' (if it does its missing a letter)<br />
end<br />
end<br />
end<br />
<br />
if is_set (err_type) then -- if there was an error detected<br />
text = text .. ' ' .. set_error( 'bad_bibcode', {err_type});<br />
end<br />
return text;<br />
end<br />
<br />
<br />
--[[--------------------------< B I O R X I V >-----------------------------------------------------------------<br />
<br />
Format bioRxiv id and do simple error checking. BiorXiv ids are exactly 6 digits.<br />
The bioRxiv id is the number following the last slash in the bioRxiv-issued DOI:<br />
https://doi.org/10.1101/078733 -> 078733<br />
<br />
]]<br />
<br />
local function biorxiv(id)<br />
local handler = cfg.id_handlers['BIORXIV'];<br />
local err_cat = ''; -- presume that bioRxiv id is valid<br />
<br />
if nil == id:match("^%d%d%d%d%d%d$") then -- if bioRxiv id has anything but six digits<br />
err_cat = ' ' .. set_error( 'bad_biorxiv'); -- set an error message<br />
end<br />
<br />
return external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator,<br />
encode=handler.encode, access=handler.access}) .. err_cat;<br />
end<br />
<br />
<br />
--[[--------------------------< C I T E S E E R X >------------------------------------------------------------<br />
<br />
CiteSeerX use their own notion of "doi" (not to be confused with the identifiers resolved via doi.org).<br />
<br />
The description of the structure of this identifier can be found at Help_talk:Citation_Style_1/Archive_26#CiteSeerX_id_structure<br />
]]<br />
<br />
local function citeseerx (id)<br />
local handler = cfg.id_handlers['CITESEERX'];<br />
local matched;<br />
<br />
local text = external_link_id({link=handler.link, label=handler.label,<br />
prefix=handler.prefix, id=id, separator=handler.separator, encode=handler.encode,<br />
access=handler.access});<br />
<br />
matched = id:match ("^10%.1%.1%.[1-9]%d?%d?%d?%.[1-9]%d?%d?%d?$");<br />
if not matched then<br />
text = text .. ' ' .. set_error( 'bad_citeseerx' );<br />
end<br />
return text;<br />
end<br />
<br />
<br />
--[[--------------------------< D O I >------------------------------------------------------------------------<br />
<br />
Formats a DOI and checks for DOI errors.<br />
<br />
DOI names contain two parts: prefix and suffix separated by a forward slash.<br />
Prefix: directory indicator '10.' followed by a registrant code<br />
Suffix: character string of any length chosen by the registrant<br />
<br />
This function checks a DOI name for: prefix/suffix. If the doi name contains spaces or endashes, or, if it ends<br />
with a period or a comma, this function will emit a bad_doi error message.<br />
<br />
DOI names are case-insensitive and can incorporate any printable Unicode characters so the test for spaces, endash,<br />
and terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely<br />
if ever used in doi names.<br />
<br />
]]<br />
<br />
local function doi(id, inactive, access)<br />
local cat = ""<br />
local handler = cfg.id_handlers['DOI'];<br />
<br />
local text;<br />
if is_set(inactive) then<br />
local inactive_year = inactive:match("%d%d%d%d") or ''; -- try to get the year portion from the inactive date<br />
if is_set(inactive_year) then<br />
table.insert( z.error_categories, "Pages with DOIs inactive since " .. inactive_year );<br />
else<br />
table.insert( z.error_categories, "Pages with inactive DOIs" ); -- when inactive doesn't contain a recognizable year<br />
end<br />
inactive = " (" .. cfg.messages['inactive'] .. " " .. inactive .. ")" <br />
end<br />
text = external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=access}) .. (inactive or '')<br />
<br />
if nil == id:match("^10%.[^%s–]-/[^%s–]-[^%.,]$") then -- doi must begin with '10.', must contain a fwd slash, must not contain spaces or endashes, and must not end with period or comma<br />
cat = ' ' .. set_error( 'bad_doi' );<br />
end<br />
<br />
return text .. cat <br />
end<br />
<br />
<br />
--[[--------------------------< H D L >------------------------------------------------------------------------<br />
<br />
Formats an HDL with minor error checking.<br />
<br />
HDL names contain two parts: prefix and suffix separated by a forward slash.<br />
Prefix: character string using any character in the UCS-2 character set except '/'<br />
Suffix: character string of any length using any character in the UCS-2 character set chosen by the registrant<br />
<br />
This function checks a HDL name for: prefix/suffix. If the HDL name contains spaces, endashes, or, if it ends<br />
with a period or a comma, this function will emit a bad_hdl error message.<br />
<br />
HDL names are case-insensitive and can incorporate any printable Unicode characters so the test for endashes and<br />
terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely<br />
if ever used in HDLs.<br />
<br />
]]<br />
<br />
local function hdl(id, access)<br />
local handler = cfg.id_handlers['HDL'];<br />
<br />
local text = external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=access})<br />
<br />
if nil == id:match("^[^%s–]-/[^%s–]-[^%.,]$") then -- hdl must contain a fwd slash, must not contain spaces, endashes, and must not end with period or comma<br />
text = text .. ' ' .. set_error( 'bad_hdl' );<br />
end<br />
return text;<br />
end<br />
<br />
<br />
--[[--------------------------< I S B N >----------------------------------------------------------------------<br />
<br />
Determines whether an ISBN string is valid<br />
<br />
]]<br />
<br />
local function isbn( isbn_str )<br />
if nil ~= isbn_str:match("[^%s-0-9X]") then<br />
return false, 'invalid character'; -- fail if isbn_str contains anything but digits, hyphens, or the uppercase X<br />
end<br />
isbn_str = isbn_str:gsub( "-", "" ):gsub( " ", "" ); -- remove hyphens and spaces<br />
local len = isbn_str:len();<br />
<br />
if len ~= 10 and len ~= 13 then<br />
return false, 'length'; -- fail if incorrect length<br />
end<br />
<br />
if len == 10 then<br />
if isbn_str:match( "^%d*X?$" ) == nil then -- fail if isbn_str has 'X' anywhere but last position<br />
return false, 'invalid form'; <br />
end<br />
return is_valid_isxn(isbn_str, 10), 'checksum';<br />
else<br />
if isbn_str:match( "^%d+$" ) == nil then<br />
return false, 'invalid character'; -- fail if isbn13 is not all digits<br />
end<br />
if isbn_str:match( "^97[89]%d*$" ) == nil then<br />
return false, 'invalid prefix'; -- fail when isbn13 does not begin with 978 or 979<br />
end<br />
return is_valid_isxn_13 (isbn_str), 'checksum';<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< A M A Z O N >------------------------------------------------------------------<br />
<br />
Formats a link to Amazon. Do simple error checking: asin must be mix of 10 numeric or uppercase alpha<br />
characters. If a mix, first character must be uppercase alpha; if all numeric, asins must be 10-digit<br />
isbn. If 10-digit isbn, add a maintenance category so a bot or awb script can replace |asin= with |isbn=.<br />
Error message if not 10 characters, if not isbn10, if mixed and first character is a digit.<br />
<br />
This function is positioned here because it calls isbn()<br />
<br />
]]<br />
<br />
local function asin(id, domain)<br />
local err_cat = ""<br />
<br />
if not id:match("^[%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u]$") then<br />
err_cat = ' ' .. set_error ('bad_asin'); -- asin is not a mix of 10 uppercase alpha and numeric characters<br />
else<br />
if id:match("^%d%d%d%d%d%d%d%d%d[%dX]$") then -- if 10-digit numeric (or 9 digits with terminal X)<br />
if isbn( id ) then -- see if asin value is isbn10<br />
add_maint_cat ('ASIN');<br />
elseif not is_set (err_cat) then<br />
err_cat = ' ' .. set_error ('bad_asin'); -- asin is not isbn10<br />
end<br />
elseif not id:match("^%u[%d%u]+$") then<br />
err_cat = ' ' .. set_error ('bad_asin'); -- asin doesn't begin with uppercase alpha<br />
end<br />
end<br />
if not is_set(domain) then <br />
domain = "com";<br />
elseif in_array (domain, {'jp', 'uk'}) then -- Japan, United Kingdom<br />
domain = "co." .. domain;<br />
elseif in_array (domain, {'au', 'br', 'mx'}) then -- Australia, Brazil, Mexico<br />
domain = "com." .. domain;<br />
end<br />
local handler = cfg.id_handlers['ASIN'];<br />
return external_link_id({link=handler.link,<br />
label=handler.label, prefix=handler.prefix .. domain .. "/dp/",<br />
id=id, encode=handler.encode, separator = handler.separator}) .. err_cat;<br />
end<br />
<br />
<br />
--[[--------------------------< I S M N >----------------------------------------------------------------------<br />
<br />
Determines whether an ISMN string is valid. Similar to isbn-13, ismn is 13 digits begining 979-0-... and uses the<br />
same check digit calculations. See http://www.ismn-international.org/download/Web_ISMN_Users_Manual_2008-6.pdf<br />
section 2, pages 9–12.<br />
<br />
]]<br />
<br />
local function ismn (id)<br />
local handler = cfg.id_handlers['ISMN'];<br />
local text;<br />
local valid_ismn = true;<br />
local id_copy;<br />
<br />
id_copy = id; -- save a copy because this testing is destructive<br />
id=id:gsub( "[%s-–]", "" ); -- strip spaces, hyphens, and endashes from the ismn<br />
<br />
if 13 ~= id:len() or id:match( "^9790%d*$" ) == nil then -- ismn must be 13 digits and begin 9790<br />
valid_ismn = false;<br />
else<br />
valid_ismn=is_valid_isxn_13 (id); -- validate ismn<br />
end<br />
<br />
-- text = internal_link_id({link = handler.link, label = handler.label, -- use this (or external version) when there is some place to link to<br />
-- prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode})<br />
<br />
text = table.concat (<br />
{<br />
make_wikilink (handler.link, handler.label),<br />
handler.separator,<br />
id_copy<br />
}); -- because no place to link to yet<br />
<br />
if false == valid_ismn then<br />
text = text .. ' ' .. set_error( 'bad_ismn' ) -- add an error message if the ismn is invalid<br />
end <br />
<br />
return text;<br />
end<br />
<br />
<br />
--[[--------------------------< I S S N >----------------------------------------------------------------------<br />
<br />
Validate and format an issn. This code fixes the case where an editor has included an ISSN in the citation but<br />
has separated the two groups of four digits with a space. When that condition occurred, the resulting link looked<br />
like this:<br />
<br />
|issn=0819 4327 gives: [http://www.worldcat.org/issn/0819 4327 0819 4327] -- can't have spaces in an external link<br />
<br />
This code now prevents that by inserting a hyphen at the issn midpoint. It also validates the issn for length<br />
and makes sure that the checkdigit agrees with the calculated value. Incorrect length (8 digits), characters<br />
other than 0-9 and X, or checkdigit / calculated value mismatch will all cause a check issn error message. The<br />
issn is always displayed with a hyphen, even if the issn was given as a single group of 8 digits.<br />
<br />
]]<br />
<br />
local function issn(id, e)<br />
local issn_copy = id; -- save a copy of unadulterated issn; use this version for display if issn does not validate<br />
local handler;<br />
local text;<br />
local valid_issn = true;<br />
<br />
if e then<br />
handler = cfg.id_handlers['EISSN'];<br />
else<br />
handler = cfg.id_handlers['ISSN'];<br />
end<br />
<br />
id=id:gsub( "[%s-–]", "" ); -- strip spaces, hyphens, and endashes from the issn<br />
<br />
if 8 ~= id:len() or nil == id:match( "^%d*X?$" ) then -- validate the issn: 8 digits long, containing only 0-9 or X in the last position<br />
valid_issn=false; -- wrong length or improper character<br />
else<br />
valid_issn=is_valid_isxn(id, 8); -- validate issn<br />
end<br />
<br />
if true == valid_issn then<br />
id = string.sub( id, 1, 4 ) .. "-" .. string.sub( id, 5 ); -- if valid, display correctly formatted version<br />
else<br />
id = issn_copy; -- if not valid, use the show the invalid issn with error message<br />
end<br />
<br />
text = external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode})<br />
<br />
if false == valid_issn then<br />
text = text .. ' ' .. set_error( 'bad_issn', e and 'e' or '' ) -- add an error message if the issn is invalid<br />
end <br />
<br />
return text<br />
end<br />
<br />
<br />
--[[--------------------------< J F M >-----------------------------------------------------------------------<br />
<br />
A numerical identifier in the form nn.nnnn.nn<br />
<br />
]]<br />
<br />
local function jfm (id)<br />
local handler = cfg.id_handlers['JFM'];<br />
local id_num;<br />
local err_cat = '';<br />
<br />
id_num = id:match ('^[Jj][Ff][Mm](.*)$'); -- identifier with jfm prefix; extract identifier<br />
<br />
if is_set (id_num) then<br />
add_maint_cat ('jfm_format');<br />
else -- plain number without mr prefix<br />
id_num = id; -- if here id does not have prefix<br />
end<br />
<br />
if id_num and id_num:match('^%d%d%.%d%d%d%d%.%d%d$') then<br />
id = id_num; -- jfm matches pattern<br />
else<br />
err_cat = ' ' .. set_error( 'bad_jfm' ); -- set an error message<br />
end<br />
<br />
return external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;<br />
end<br />
<br />
<br />
--[[--------------------------< L C C N >----------------------------------------------------------------------<br />
<br />
Format LCCN link and do simple error checking. LCCN is a character string 8-12 characters long. The length of<br />
the LCCN dictates the character type of the first 1-3 characters; the rightmost eight are always digits.<br />
http://info-uri.info/registry/OAIHandler?verb=GetRecord&metadataPrefix=reg&identifier=info:lccn/<br />
<br />
length = 8 then all digits<br />
length = 9 then lccn[1] is lower case alpha<br />
length = 10 then lccn[1] and lccn[2] are both lower case alpha or both digits<br />
length = 11 then lccn[1] is lower case alpha, lccn[2] and lccn[3] are both lower case alpha or both digits<br />
length = 12 then lccn[1] and lccn[2] are both lower case alpha<br />
<br />
]]<br />
<br />
local function lccn(lccn)<br />
local handler = cfg.id_handlers['LCCN'];<br />
local err_cat = ''; -- presume that LCCN is valid<br />
local id = lccn; -- local copy of the lccn<br />
<br />
id = normalize_lccn (id); -- get canonical form (no whitespace, hyphens, forward slashes)<br />
local len = id:len(); -- get the length of the lccn<br />
<br />
if 8 == len then<br />
if id:match("[^%d]") then -- if LCCN has anything but digits (nil if only digits)<br />
err_cat = ' ' .. set_error( 'bad_lccn' ); -- set an error message<br />
end<br />
elseif 9 == len then -- LCCN should be adddddddd<br />
if nil == id:match("%l%d%d%d%d%d%d%d%d") then -- does it match our pattern?<br />
err_cat = ' ' .. set_error( 'bad_lccn' ); -- set an error message<br />
end<br />
elseif 10 == len then -- LCCN should be aadddddddd or dddddddddd<br />
if id:match("[^%d]") then -- if LCCN has anything but digits (nil if only digits) ...<br />
if nil == id:match("^%l%l%d%d%d%d%d%d%d%d") then -- ... see if it matches our pattern<br />
err_cat = ' ' .. set_error( 'bad_lccn' ); -- no match, set an error message<br />
end<br />
end<br />
elseif 11 == len then -- LCCN should be aaadddddddd or adddddddddd<br />
if not (id:match("^%l%l%l%d%d%d%d%d%d%d%d") or id:match("^%l%d%d%d%d%d%d%d%d%d%d")) then -- see if it matches one of our patterns<br />
err_cat = ' ' .. set_error( 'bad_lccn' ); -- no match, set an error message<br />
end<br />
elseif 12 == len then -- LCCN should be aadddddddddd<br />
if not id:match("^%l%l%d%d%d%d%d%d%d%d%d%d") then -- see if it matches our pattern<br />
err_cat = ' ' .. set_error( 'bad_lccn' ); -- no match, set an error message<br />
end<br />
else<br />
err_cat = ' ' .. set_error( 'bad_lccn' ); -- wrong length, set an error message<br />
end<br />
<br />
if not is_set (err_cat) and nil ~= lccn:find ('%s') then<br />
err_cat = ' ' .. set_error( 'bad_lccn' ); -- lccn contains a space, set an error message<br />
end<br />
<br />
return external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=lccn,separator=handler.separator, encode=handler.encode}) .. err_cat;<br />
end<br />
<br />
<br />
--[[--------------------------< M R >--------------------------------------------------------------------------<br />
<br />
A seven digit number; if not seven digits, zero-fill leading digits to make seven digits.<br />
<br />
]]<br />
<br />
local function mr (id)<br />
local handler = cfg.id_handlers['MR'];<br />
local id_num;<br />
local id_len;<br />
local err_cat = '';<br />
<br />
id_num = id:match ('^[Mm][Rr](%d+)$'); -- identifier with mr prefix<br />
<br />
if is_set (id_num) then<br />
add_maint_cat ('mr_format');<br />
else -- plain number without mr prefix<br />
id_num = id:match ('^%d+$'); -- if here id is all digits<br />
end<br />
<br />
id_len = id_num and id_num:len() or 0;<br />
if (7 >= id_len) and (0 ~= id_len) then<br />
id = string.rep ('0', 7-id_len ) .. id_num; -- zero-fill leading digits<br />
else<br />
err_cat = ' ' .. set_error( 'bad_mr' ); -- set an error message<br />
end<br />
<br />
return external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;<br />
end<br />
<br />
<br />
--[[--------------------------< O C L C >----------------------------------------------------------------------<br />
<br />
Validate and format an oclc id. https://www.oclc.org/batchload/controlnumber.en.html<br />
<br />
]]<br />
<br />
local function oclc (id)<br />
local handler = cfg.id_handlers['OCLC'];<br />
local number;<br />
local err_msg = ''; -- empty string for concatenation<br />
<br />
if id:match('^ocm%d%d%d%d%d%d%d%d$') then -- ocm prefix and 8 digits; 001 field (12 characters)<br />
number = id:match('ocm(%d+)'); -- get the number<br />
elseif id:match('^ocn%d%d%d%d%d%d%d%d%d$') then -- ocn prefix and 9 digits; 001 field (12 characters)<br />
number = id:match('ocn(%d+)'); -- get the number<br />
elseif id:match('^on%d%d%d%d%d%d%d%d%d%d+$') then -- on prefix and 10 or more digits; 001 field (12 characters)<br />
number = id:match('^on(%d%d%d%d%d%d%d%d%d%d+)$'); -- get the number<br />
elseif id:match('^%(OCoLC%)[1-9]%d*$') then -- (OCoLC) prefix and variable number digits; no leading zeros; 035 field<br />
number = id:match('%(OCoLC%)([1-9]%d*)'); -- get the number<br />
if 9 < number:len() then<br />
number = nil; -- contrain to 1 to 9 digits; change this when oclc issues 10-digit numbers<br />
end<br />
elseif id:match('^%d+$') then -- no prefix<br />
number = id; -- get the number<br />
if 10 < number:len() then<br />
number = nil; -- contrain to 1 to 10 digits; change this when oclc issues 11-digit numbers<br />
end<br />
end<br />
<br />
if number then -- proper format<br />
id = number; -- exclude prefix, if any, from external link<br />
else<br />
err_msg = ' ' .. set_error( 'bad_oclc' ) -- add an error message if the id is malformed<br />
end<br />
<br />
local text = external_link_id({link=handler.link, label=handler.label,<br />
prefix=handler.prefix, id=id, separator=handler.separator, encode=handler.encode}) .. err_msg;<br />
<br />
return text;<br />
end<br />
<br />
<br />
--[[--------------------------< O P E N L I B R A R Y >--------------------------------------------------------<br />
<br />
Formats an OpenLibrary link, and checks for associated errors.<br />
<br />
]]<br />
<br />
local function openlibrary(id, access)<br />
local code;<br />
local handler = cfg.id_handlers['OL'];<br />
local ident;<br />
<br />
ident, code = id:gsub('^OL', ''):match("^(%d+([AMW]))$"); -- optional OL prefix followed immediately by digits followed by 'A', 'M', or 'W'; remove OL prefix<br />
<br />
if not is_set (ident) then -- if malformed return an error<br />
return external_link_id({link=handler.link, label=handler.label,<br />
prefix=handler.prefix .. 'OL',<br />
id=id, separator=handler.separator, encode = handler.encode,<br />
access = access}) .. ' ' .. set_error( 'bad_ol' );<br />
end<br />
<br />
id = ident; -- use ident without the optional OL prefix (it has been removed)<br />
<br />
if ( code == "A" ) then<br />
return external_link_id({link=handler.link, label=handler.label,<br />
prefix=handler.prefix .. 'authors/OL',<br />
id=id, separator=handler.separator, encode = handler.encode,<br />
access = access})<br />
end<br />
<br />
if ( code == "M" ) then<br />
return external_link_id({link=handler.link, label=handler.label,<br />
prefix=handler.prefix .. 'books/OL',<br />
id=id, separator=handler.separator, encode = handler.encode,<br />
access = access})<br />
end<br />
<br />
if ( code == "W" ) then<br />
return external_link_id({link=handler.link, label=handler.label,<br />
prefix=handler.prefix .. 'works/OL',<br />
id=id, separator=handler.separator, encode = handler.encode,<br />
access = access})<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< P M C >------------------------------------------------------------------------<br />
<br />
Format a PMC, do simple error checking, and check for embargoed articles.<br />
<br />
The embargo parameter takes a date for a value. If the embargo date is in the future the PMC identifier will not<br />
be linked to the article. If the embargo date is today or in the past, or if it is empty or omitted, then the<br />
PMC identifier is linked to the article through the link at cfg.id_handlers['PMC'].prefix.<br />
<br />
PMC embargo date testing is done in function is_embargoed () which is called earlier because when the citation<br />
has |pmc=<value> but does not have a |url= then |title= is linked with the PMC link. Function is_embargoed ()<br />
returns the embargo date if the PMC article is still embargoed, otherwise it returns an empty string.<br />
<br />
PMCs are sequential numbers beginning at 1 and counting up. This code checks the PMC to see that it contains only digits and is less<br />
than test_limit; the value in local variable test_limit will need to be updated periodically as more PMCs are issued.<br />
<br />
]]<br />
<br />
local function pmc(id, embargo)<br />
local test_limit = 6000000; -- update this value as PMCs approach<br />
local handler = cfg.id_handlers['PMC'];<br />
local err_cat = ''; -- presume that PMC is valid<br />
local id_num;<br />
local text;<br />
<br />
id_num = id:match ('^[Pp][Mm][Cc](%d+)$'); -- identifier with pmc prefix<br />
<br />
if is_set (id_num) then<br />
add_maint_cat ('pmc_format');<br />
else -- plain number without pmc prefix<br />
id_num = id:match ('^%d+$'); -- if here id is all digits<br />
end<br />
<br />
if is_set (id_num) then -- id_num has a value so test it<br />
id_num = tonumber(id_num); -- convert id_num to a number for range testing<br />
if 1 > id_num or test_limit < id_num then -- if PMC is outside test limit boundaries<br />
err_cat = ' ' .. set_error( 'bad_pmc' ); -- set an error message<br />
else<br />
id = tostring (id_num); -- make sure id is a string<br />
end<br />
else -- when id format incorrect<br />
err_cat = ' ' .. set_error( 'bad_pmc' ); -- set an error message<br />
end<br />
<br />
if is_set (embargo) then -- is PMC is still embargoed?<br />
text = table.concat ( -- still embargoed so no external link<br />
{<br />
make_wikilink (handler.link, handler.label),<br />
handler.separator,<br />
id,<br />
err_cat<br />
});<br />
else<br />
text = external_link_id({link = handler.link, label = handler.label, -- no embargo date or embargo has expired, ok to link to article<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=handler.access}) .. err_cat;<br />
end<br />
return text;<br />
end<br />
<br />
<br />
--[[--------------------------< P M I D >----------------------------------------------------------------------<br />
<br />
Format PMID and do simple error checking. PMIDs are sequential numbers beginning at 1 and counting up. This<br />
code checks the PMID to see that it contains only digits and is less than test_limit; the value in local variable<br />
test_limit will need to be updated periodically as more PMIDs are issued.<br />
<br />
]]<br />
<br />
local function pmid(id)<br />
local test_limit = 32000000; -- update this value as PMIDs approach<br />
local handler = cfg.id_handlers['PMID'];<br />
local err_cat = ''; -- presume that PMID is valid<br />
<br />
if id:match("[^%d]") then -- if PMID has anything but digits<br />
err_cat = ' ' .. set_error( 'bad_pmid' ); -- set an error message<br />
else -- PMID is only digits<br />
local id_num = tonumber(id); -- convert id to a number for range testing<br />
if 1 > id_num or test_limit < id_num then -- if PMID is outside test limit boundaries<br />
err_cat = ' ' .. set_error( 'bad_pmid' ); -- set an error message<br />
end<br />
end<br />
<br />
return external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;<br />
end<br />
<br />
<br />
--[[--------------------------< S S R N >----------------------------------------------------------------------<br />
<br />
Format an ssrn, do simple error checking<br />
<br />
SSRNs are sequential numbers beginning at 100? and counting up. This code checks the ssrn to see that it is<br />
only digits and is greater than 99 and less than test_limit; the value in local variable test_limit will need<br />
to be updated periodically as more SSRNs are issued.<br />
<br />
]]<br />
<br />
local function ssrn (id)<br />
local test_limit = 3500000; -- update this value as SSRNs approach<br />
local handler = cfg.id_handlers['SSRN'];<br />
local err_cat = ''; -- presume that SSRN is valid<br />
local id_num;<br />
local text;<br />
<br />
id_num = id:match ('^%d+$'); -- id must be all digits<br />
<br />
if is_set (id_num) then -- id_num has a value so test it<br />
id_num = tonumber(id_num); -- convert id_num to a number for range testing<br />
if 100 > id_num or test_limit < id_num then -- if SSRN is outside test limit boundaries<br />
err_cat = ' ' .. set_error( 'bad_ssrn' ); -- set an error message<br />
end<br />
else -- when id format incorrect<br />
err_cat = ' ' .. set_error( 'bad_ssrn' ); -- set an error message<br />
end<br />
<br />
text = external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=handler.access}) .. err_cat;<br />
<br />
return text;<br />
end<br />
<br />
<br />
--[[--------------------------< U S E N E T _ I D >------------------------------------------------------------<br />
<br />
Validate and format a usenet message id. Simple error checking, looks for 'id-left@id-right' not enclosed in<br />
'<' and/or '>' angle brackets.<br />
<br />
]]<br />
<br />
local function usenet_id (id)<br />
local handler = cfg.id_handlers['USENETID'];<br />
<br />
local text = external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode})<br />
<br />
if not id:match('^.+@.+$') or not id:match('^[^<].*[^>]$')then -- doesn't have '@' or has one or first or last character is '< or '>'<br />
text = text .. ' ' .. set_error( 'bad_usenet_id' ) -- add an error message if the message id is invalid<br />
end <br />
<br />
return text<br />
end<br />
<br />
<br />
--[[--------------------------< Z B L >-----------------------------------------------------------------------<br />
<br />
A numerical identifier in the form nnnn.nnnnn - leading zeros in the first quartet optional<br />
<br />
]]<br />
<br />
local function zbl (id)<br />
local handler = cfg.id_handlers['ZBL'];<br />
local id_num;<br />
local err_cat = '';<br />
<br />
id_num = id:match ('^[Zz][Bb][Ll](.*)$'); -- identifier with zbl prefix; extract identifier<br />
<br />
if is_set (id_num) then<br />
add_maint_cat ('zbl_format');<br />
else -- plain number without zbl prefix<br />
id_num = id; -- if here id does not have prefix<br />
end<br />
<br />
if id_num:match('^%d?%d?%d?%d%.%d%d%d%d%d$') then<br />
id = id_num; -- id matches pattern<br />
else<br />
err_cat = ' ' .. set_error( 'bad_zbl' ); -- set an error message<br />
end<br />
<br />
return external_link_id({link = handler.link, label = handler.label,<br />
prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;<br />
end<br />
<br />
<br />
--============================<< I N T E R F A C E F U N C T I O N S >>==========================================<br />
<br />
--[[--------------------------< B U I L D _ I D _ L I S T >--------------------------------------------------------<br />
<br />
Takes a table of IDs created by extract_ids() and turns it into a table of formatted ID outputs.<br />
<br />
inputs:<br />
id_list – table of identifiers built by extract_ids()<br />
options – table of various template parameter values used to modify some manually handled identifiers<br />
<br />
]]<br />
<br />
local function build_id_list( id_list, options )<br />
local new_list, handler = {};<br />
<br />
local function fallback(k) return { __index = function(t,i) return cfg.id_handlers[k][i] end } end;<br />
<br />
for k, v in pairs( id_list ) do -- k is uc identifier name as index to cfg.id_handlers; e.g. cfg.id_handlers['ISBN'], v is a table<br />
-- fallback to read-only cfg<br />
handler = setmetatable( { ['id'] = v, ['access'] = options.IdAccessLevels[k] }, fallback(k) );<br />
<br />
if handler.mode == 'external' then<br />
table.insert( new_list, {handler.label, external_link_id( handler ) } );<br />
elseif handler.mode == 'internal' then<br />
table.insert( new_list, {handler.label, internal_link_id( handler ) } );<br />
elseif handler.mode ~= 'manual' then<br />
error( cfg.messages['unknown_ID_mode'] );<br />
elseif k == 'ARXIV' then<br />
table.insert( new_list, {handler.label, arxiv( v, options.Class ) } ); <br />
elseif k == 'ASIN' then<br />
table.insert( new_list, {handler.label, asin( v, options.ASINTLD ) } ); <br />
elseif k == 'BIBCODE' then<br />
table.insert( new_list, {handler.label, bibcode( v, handler.access ) } );<br />
elseif k == 'BIORXIV' then<br />
table.insert( new_list, {handler.label, biorxiv( v ) } );<br />
elseif k == 'CITESEERX' then<br />
table.insert( new_list, {handler.label, citeseerx( v ) } );<br />
elseif k == 'DOI' then<br />
table.insert( new_list, {handler.label, doi( v, options.DoiBroken, handler.access ) } );<br />
elseif k == 'EISSN' then<br />
table.insert( new_list, {handler.label, issn( v, true ) } ); -- true distinguishes eissn from issn<br />
elseif k == 'HDL' then<br />
table.insert( new_list, {handler.label, hdl( v, handler.access ) } );<br />
elseif k == 'ISBN' then<br />
local ISBN = internal_link_id( handler );<br />
local check;<br />
local err_type = '';<br />
check, err_type = isbn( v );<br />
if not check then<br />
if is_set(options.IgnoreISBN) then -- ISBN is invalid; if |ignore-isbn-error= set<br />
add_maint_cat ('ignore_isbn_err'); -- ad a maint category<br />
else<br />
ISBN = ISBN .. set_error( 'bad_isbn', {err_type}, false, " ", "" ); -- else display an error message<br />
end<br />
elseif is_set(options.IgnoreISBN) then -- ISBN is OK; if |ignore-isbn-error= set<br />
add_maint_cat ('ignore_isbn_err'); -- because |ignore-isbn-error= unnecessary<br />
end<br />
table.insert( new_list, {handler.label, ISBN } ); <br />
elseif k == 'ISMN' then<br />
table.insert( new_list, {handler.label, ismn( v ) } );<br />
elseif k == 'ISSN' then<br />
table.insert( new_list, {handler.label, issn( v ) } );<br />
elseif k == 'JFM' then<br />
table.insert( new_list, {handler.label, jfm( v ) } );<br />
elseif k == 'LCCN' then<br />
table.insert( new_list, {handler.label, lccn( v ) } );<br />
elseif k == 'MR' then<br />
table.insert( new_list, {handler.label, mr( v ) } );<br />
elseif k == 'OCLC' then<br />
table.insert( new_list, {handler.label, oclc( v ) } );<br />
elseif k == 'OL' or k == 'OLA' then<br />
table.insert( new_list, {handler.label, openlibrary( v, handler.access ) } );<br />
elseif k == 'PMC' then<br />
table.insert( new_list, {handler.label, pmc( v, options.Embargo ) } );<br />
elseif k == 'PMID' then<br />
table.insert( new_list, {handler.label, pmid( v ) } );<br />
elseif k == 'SSRN' then<br />
table.insert( new_list, {handler.label, ssrn( v ) } );<br />
elseif k == 'USENETID' then<br />
table.insert( new_list, {handler.label, usenet_id( v ) } );<br />
elseif k == 'ZBL' then<br />
table.insert( new_list, {handler.label, zbl( v ) } );<br />
else<br />
error( cfg.messages['unknown_manual_ID'] );<br />
end<br />
end<br />
<br />
local function comp( a, b ) -- used in following table.sort()<br />
return a[1]:lower() < b[1]:lower();<br />
end<br />
<br />
table.sort( new_list, comp );<br />
for k, v in ipairs( new_list ) do<br />
new_list[k] = v[2];<br />
end<br />
<br />
return new_list;<br />
end<br />
<br />
<br />
--[[--------------------------< E X T R A C T _ I D S >------------------------------------------------------------<br />
<br />
Populates ID table from arguments using configuration settings. Loops through cfg.id_handlers and searches args for<br />
any of the parameters listed in each cfg.id_handlers['...'].parameters. If found, adds the parameter and value to<br />
the identifier list. Emits redundant error message is more than one alias exists in args<br />
<br />
]]<br />
<br />
local function extract_ids( args )<br />
local id_list = {}; -- list of identifiers found in args<br />
for k, v in pairs( cfg.id_handlers ) do -- k is uc identifier name as index to cfg.id_handlers; e.g. cfg.id_handlers['ISBN'], v is a table<br />
v = select_one( args, v.parameters, 'redundant_parameters' ); -- v.parameters is a table of aliases for k; here we pick one from args if present<br />
if is_set(v) then id_list[k] = v; end -- if found in args, add identifier to our list<br />
end<br />
return id_list;<br />
end<br />
<br />
<br />
--[[--------------------------< E X T R A C T _ I D _ A C C E S S _ L E V E L S >--------------------------------------<br />
<br />
Fetches custom id access levels from arguments using configuration settings.<br />
Parameters which have a predefined access level (e.g. arxiv) do not use this<br />
function as they are directly rendered as free without using an additional parameter.<br />
<br />
]]<br />
<br />
local function extract_id_access_levels( args, id_list )<br />
local id_accesses_list = {};<br />
for k, v in pairs( cfg.id_handlers ) do<br />
local access_param = v.custom_access;<br />
local k_lower = string.lower(k);<br />
if is_set(access_param) then<br />
local access_level = args[access_param];<br />
if is_set(access_level) then<br />
if not in_array (access_level:lower(), cfg.keywords['id-access']) then<br />
table.insert( z.message_tail, { set_error( 'invalid_param_val', {access_param, access_level}, true ) } ); <br />
access_level = nil;<br />
end<br />
if not is_set(id_list[k]) then<br />
table.insert( z.message_tail, { set_error( 'param_access_requires_param', {k_lower}, true ) } );<br />
end<br />
if is_set(access_level) then<br />
access_level = access_level:lower();<br />
end<br />
id_accesses_list[k] = access_level;<br />
end<br />
end<br />
end<br />
return id_accesses_list;<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------<br />
<br />
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.<br />
<br />
]]<br />
<br />
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)<br />
cfg = cfg_table_ptr;<br />
<br />
is_set = utilities_page_ptr.is_set; -- import functions from select Module:Citation/CS1/Utilities module<br />
in_array = utilities_page_ptr.in_array;<br />
set_error = utilities_page_ptr.set_error;<br />
select_one = utilities_page_ptr.select_one;<br />
add_maint_cat = utilities_page_ptr.add_maint_cat;<br />
substitute = utilities_page_ptr.substitute;<br />
make_wikilink = utilities_page_ptr.make_wikilink;<br />
<br />
z = utilities_page_ptr.z; -- table of tables in Module:Citation/CS1/Utilities<br />
end<br />
<br />
<br />
return {<br />
build_id_list = build_id_list,<br />
extract_ids = extract_ids,<br />
extract_id_access_levels = extract_id_access_levels,<br />
is_embargoed = is_embargoed;<br />
set_selected_modules = set_selected_modules;<br />
}</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Citation/CS1/Utilities&diff=820Modul:Citation/CS1/Utilities2019-08-09T03:36:12Z<p>Adminwiki: 1 revisi diimpor: Templat:Cite web</p>
<hr />
<div>local u = {}<br />
<br />
local z = {<br />
error_categories = {}; -- for categorizing citations that contain errors<br />
error_ids = {};<br />
message_tail = {};<br />
maintenance_cats = {}; -- for categorizing citations that aren't erroneous per se, but could use a little work<br />
properties_cats = {}; -- for categorizing citations based on certain properties, language of source for instance<br />
};<br />
<br />
<br />
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------<br />
]]<br />
<br />
local cfg; -- table of tables imported from selected Module:Citation/CS1/Configuration<br />
<br />
<br />
--[[--------------------------< I S _ S E T >------------------------------------------------------------------<br />
<br />
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.<br />
<br />
]]<br />
<br />
local function is_set( var )<br />
return not (var == nil or var == '');<br />
end<br />
<br />
<br />
--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------<br />
<br />
Whether needle is in haystack<br />
<br />
]]<br />
<br />
local function in_array( needle, haystack )<br />
if needle == nil then<br />
return false;<br />
end<br />
for n,v in ipairs( haystack ) do<br />
if v == needle then<br />
return n;<br />
end<br />
end<br />
return false;<br />
end<br />
<br />
<br />
--[[--------------------------< S U B S T I T U T E >----------------------------------------------------------<br />
<br />
Populates numbered arguments in a message string using an argument table.<br />
<br />
]]<br />
<br />
local function substitute( msg, args )<br />
return args and mw.message.newRawMessage( msg, args ):plain() or msg;<br />
end<br />
<br />
<br />
--[[--------------------------< E R R O R _ C O M M E N T >----------------------------------------------------<br />
<br />
Wraps error messages with css markup according to the state of hidden.<br />
<br />
]]<br />
<br />
local function error_comment( content, hidden )<br />
return substitute( hidden and cfg.presentation['hidden-error'] or cfg.presentation['visible-error'], content );<br />
end<br />
<br />
<br />
--[=[-------------------------< M A K E _ W I K I L I N K >----------------------------------------------------<br />
<br />
Makes a wikilink; when bot link and display text is provided, returns a wikilink in the form [[L|D]]; if only<br />
link is provided, returns a wikilink in the form [[L]]; if neither are provided or link is omitted, returns an<br />
empty string.<br />
<br />
]=]<br />
<br />
local function make_wikilink (link, display)<br />
if is_set (link) then<br />
if is_set (display) then<br />
return table.concat ({'[[', link, '|', display, ']]'});<br />
else<br />
return table.concat ({'[[', link, ']]'});<br />
end<br />
else<br />
return '';<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ E R R O R >--------------------------------------------------------------<br />
<br />
Sets an error condition and returns the appropriate error message. The actual placement of the error message in the output is<br />
the responsibility of the calling function.<br />
<br />
]]<br />
<br />
local function set_error( error_id, arguments, raw, prefix, suffix )<br />
local error_state = cfg.error_conditions[ error_id ];<br />
<br />
prefix = prefix or "";<br />
suffix = suffix or "";<br />
<br />
if error_state == nil then<br />
error( cfg.messages['undefined_error'] ); -- because missing error handler in Module:Citation/CS1/Configuration<br />
elseif is_set( error_state.category ) then<br />
table.insert( z.error_categories, error_state.category );<br />
end<br />
<br />
local message = substitute( error_state.message, arguments );<br />
<br />
message = table.concat (<br />
{<br />
message,<br />
' (',<br />
make_wikilink (<br />
table.concat (<br />
{<br />
cfg.messages['help page link'],<br />
'#',<br />
error_state.anchor<br />
}),<br />
cfg.messages['help page label']),<br />
')'<br />
});<br />
<br />
-- message = table.concat ({message, ' (', substitute (cfg.presentation['wikilink'], <br />
-- {cfg.messages['help page link'] .. '#' .. error_state.anchor, cfg.messages['help page label']}), ')'});<br />
-- message = message .. " ([[" .. cfg.messages['help page link'] .. <br />
-- "#" .. error_state.anchor .. "|" ..<br />
-- cfg.messages['help page label'] .. "]])";<br />
<br />
z.error_ids[ error_id ] = true;<br />
if in_array( error_id, { 'bare_url_missing_title', 'trans_missing_title' } )<br />
and z.error_ids['citation_missing_title'] then<br />
return '', false;<br />
end<br />
<br />
message = table.concat({ prefix, message, suffix });<br />
<br />
if raw == true then<br />
return message, error_state.hidden;<br />
end <br />
<br />
return error_comment( message, error_state.hidden );<br />
end<br />
<br />
<br />
--[[-------------------------< I S _ A L I A S _ U S E D >-----------------------------------------------------<br />
<br />
This function is used by select_one() to determine if one of a list of alias parameters is in the argument list<br />
provided by the template.<br />
<br />
Input:<br />
args – pointer to the arguments table from calling template<br />
alias – one of the list of possible aliases in the aliases lists from Module:Citation/CS1/Configuration<br />
index – for enumerated parameters, identifies which one<br />
enumerated – true/false flag used choose how enumerated aliases are examined<br />
value – value associated with an alias that has previously been selected; nil if not yet selected<br />
selected – the alias that has previously been selected; nil if not yet selected<br />
error_list – list of aliases that are duplicates of the alias already selected<br />
<br />
Returns:<br />
value – value associated with alias we selected or that was previously selected or nil if an alias not yet selected<br />
selected – the alias we selected or the alias that was previously selected or nil if an alias not yet selected<br />
<br />
]]<br />
<br />
local function is_alias_used (args, alias, index, enumerated, value, selected, error_list)<br />
if enumerated then -- is this a test for an enumerated parameters?<br />
alias = alias:gsub ('#', index); -- replace '#' with the value in index<br />
else<br />
alias = alias:gsub ('#', ''); -- remove '#' if it exists<br />
end<br />
<br />
if is_set(args[alias]) then -- alias is in the template's argument list<br />
if value ~= nil and selected ~= alias then -- if we have already selected one of the aliases<br />
local skip;<br />
for _, v in ipairs(error_list) do -- spin through the error list to see if we've added this alias<br />
if v == alias then<br />
skip = true;<br />
break; -- has been added so stop looking <br />
end<br />
end<br />
if not skip then -- has not been added so<br />
table.insert( error_list, alias ); -- add error alias to the error list<br />
end<br />
else<br />
value = args[alias]; -- not yet selected an alias, so select this one<br />
selected = alias;<br />
end<br />
end<br />
return value, selected; -- return newly selected alias, or previously selected alias<br />
end<br />
<br />
<br />
--[[--------------------------< A D D _ M A I N T _ C A T >------------------------------------------------------<br />
<br />
Adds a category to z.maintenance_cats using names from the configuration file with additional text if any.<br />
To prevent duplication, the added_maint_cats table lists the categories by key that have been added to z.maintenance_cats.<br />
<br />
]]<br />
<br />
local added_maint_cats = {} -- list of maintenance categories that have been added to z.maintenance_cats<br />
local function add_maint_cat (key, arguments)<br />
if not added_maint_cats [key] then<br />
added_maint_cats [key] = true; -- note that we've added this category<br />
table.insert( z.maintenance_cats, substitute (cfg.maint_cats [key], arguments)); -- make name then add to table<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< S A F E _ F O R _ I T A L I C S >----------------------------------------------<br />
<br />
Protects a string that will be wrapped in wiki italic markup '' ... ''<br />
<br />
Note: We cannot use <i> for italics, as the expected behavior for italics specified by ''...'' in the title is that<br />
they will be inverted (i.e. unitalicized) in the resulting references. In addition, <i> and '' tend to interact<br />
poorly under Mediawiki's HTML tidy.<br />
<br />
]]<br />
<br />
local function safe_for_italics( str )<br />
if not is_set(str) then<br />
return str;<br />
else<br />
if str:sub(1,1) == "'" then str = "<span></span>" .. str; end<br />
if str:sub(-1,-1) == "'" then str = str .. "<span></span>"; end<br />
<br />
-- Remove newlines as they break italics.<br />
return str:gsub( '\n', ' ' );<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< W R A P _ S T Y L E >----------------------------------------------------------<br />
<br />
Applies styling to various parameters. Supplied string is wrapped using a message_list configuration taking one<br />
argument; protects italic styled parameters. Additional text taken from citation_config.presentation - the reason<br />
this function is similar to but separate from wrap_msg().<br />
<br />
]]<br />
<br />
local function wrap_style (key, str)<br />
if not is_set( str ) then<br />
return "";<br />
elseif in_array( key, { 'italic-title', 'trans-italic-title' } ) then<br />
str = safe_for_italics( str );<br />
end<br />
<br />
return substitute( cfg.presentation[key], {str} );<br />
end<br />
<br />
<br />
--[[--------------------------< S E L E C T _ O N E >----------------------------------------------------------<br />
<br />
Chooses one matching parameter from a list of parameters to consider. The list of parameters to consider is just<br />
names. For parameters that may be enumerated, the position of the numerator in the parameter name is identified<br />
by the '#' so |author-last1= and |author1-last= are represented as 'author-last#' and 'author#-last'.<br />
<br />
Because enumerated parameter |<param>1= is an alias of |<param>= we must test for both possibilities.<br />
<br />
<br />
Generates an error if more than one match is present.<br />
<br />
]]<br />
<br />
local function select_one( args, aliases_list, error_condition, index )<br />
local value = nil; -- the value assigned to the selected parameter<br />
local selected = ''; -- the name of the parameter we have chosen<br />
local error_list = {};<br />
<br />
if index ~= nil then index = tostring(index); end<br />
<br />
for _, alias in ipairs( aliases_list ) do -- for each alias in the aliases list<br />
if alias:match ('#') then -- if this alias can be enumerated<br />
if '1' == index then -- when index is 1 test for enumerated and non-enumerated aliases<br />
value, selected = is_alias_used (args, alias, index, false, value, selected, error_list); -- first test for non-enumerated alias<br />
end<br />
value, selected = is_alias_used (args, alias, index, true, value, selected, error_list); -- test for enumerated alias<br />
else<br />
value, selected = is_alias_used (args, alias, index, false, value, selected, error_list); --test for non-enumerated alias<br />
end<br />
end<br />
<br />
if #error_list > 0 and 'none' ~= error_condition then -- for cases where this code is used outside of extract_names()<br />
local error_str = "";<br />
for _, k in ipairs( error_list ) do<br />
if error_str ~= "" then error_str = error_str .. cfg.messages['parameter-separator'] end<br />
error_str = error_str .. wrap_style ('parameter', k);<br />
end<br />
if #error_list > 1 then<br />
error_str = error_str .. cfg.messages['parameter-final-separator'];<br />
else<br />
error_str = error_str .. cfg.messages['parameter-pair-separator'];<br />
end<br />
error_str = error_str .. wrap_style ('parameter', selected);<br />
table.insert( z.message_tail, { set_error( error_condition, {error_str}, true ) } );<br />
end<br />
<br />
return value, selected;<br />
end<br />
<br />
<br />
--[=[-------------------------< R E M O V E _ W I K I _ L I N K >----------------------------------------------<br />
<br />
Gets the display text from a wikilink like [[A|B]] or [[B]] gives B<br />
<br />
The str:gsub() returns either A|B froma [[A|B]] or B from [[B]] or B from B (no wikilink markup).<br />
<br />
In l(), l:gsub() removes the link and pipe (if they exist); the second :gsub() trims white space from the label<br />
if str was wrapped in wikilink markup. Presumably, this is because without wikimarkup in str, there is no match<br />
in the initial gsub, the replacement function l() doesn't get called.<br />
<br />
]=]<br />
<br />
local function remove_wiki_link (str)<br />
return (str:gsub( "%[%[([^%[%]]*)%]%]", function(l)<br />
return l:gsub( "^[^|]*|(.*)$", "%1" ):gsub("^%s*(.-)%s*$", "%1");<br />
end));<br />
end<br />
<br />
<br />
--[=[-------------------------< I S _ W I K I L I N K >--------------------------------------------------------<br />
<br />
Determines if str is a wikilink, extracts, and returns the the wikilink type, link text, and display text parts.<br />
If str is a complex wikilink ([[L|D]]):<br />
returns wl_type 2 and D and L from [[L|D]];<br />
if str is a simple wikilink ([[D]])<br />
returns wl_type 1 and D from [[D]] and L as empty string;<br />
if not a wikilink:<br />
returns wl_type 0, str as D, and L as empty string.<br />
<br />
trims leading and trailing white space and pipes from L and D ([[L|]] and [[|D]] are accepted by MediaWiki and<br />
treated like [[D]]; while [[|D|]] is not accepted by MediaWiki, here, we accept it and return D without the pipes).<br />
<br />
]=]<br />
<br />
local function is_wikilink (str)<br />
local D, L<br />
local wl_type = 2; -- assume that str is a complex wikilink [[L|D]]<br />
<br />
L, D = str:match ('%[%[([^|]+)|([^%]]+)%]%]'); -- get L and D from [[L|D]] <br />
<br />
if not is_set (D) then -- if no separate link<br />
D = str:match ('%[%[([^%]]*)|*%]%]'); -- get D from [[D]]<br />
wl_type = 1; <br />
end<br />
<br />
if not is_set (D) then -- no wikilink markup<br />
D = str; -- return the string as D<br />
wl_type = 0; -- but say that it is not a wikilink<br />
end<br />
<br />
D = mw.text.trim (D, '%s|'); -- trim white space and pipe characters <br />
L = L and mw.text.trim (L, '%s|');<br />
<br />
return wl_type, D, L or '';<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------<br />
<br />
Sets local cfg table to same (live or sandbox) as that used by the other modules.<br />
<br />
]]<br />
<br />
local function set_selected_modules (cfg_table_ptr)<br />
cfg = cfg_table_ptr;<br />
<br />
end<br />
<br />
<br />
<br />
return { -- return exported functions and tables<br />
is_set = is_set,<br />
in_array = in_array,<br />
substitute = substitute,<br />
error_comment = error_comment,<br />
set_error = set_error,<br />
select_one = select_one,<br />
add_maint_cat = add_maint_cat,<br />
wrap_style = wrap_style,<br />
safe_for_italics = safe_for_italics,<br />
remove_wiki_link = remove_wiki_link,<br />
is_wikilink = is_wikilink,<br />
make_wikilink = make_wikilink,<br />
set_selected_modules = set_selected_modules,<br />
z = z,<br />
}</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Citation/CS1/Whitelist&diff=822Modul:Citation/CS1/Whitelist2019-08-09T03:36:12Z<p>Adminwiki: 1 revisi diimpor: Templat:Cite web</p>
<hr />
<div><br />
--[[--------------------------< P A R A M E T E R S N O T S U P P O R T E D >------------------------------<br />
<br />
This is a list of parameters that once were but now are no longer supported:<br />
<br />
['albumlink'] = nil, -- unique alias of titlelink used by old cite AV media notes<br />
['albumtype'] = nil, -- controled inappropriate functionality in the old cite AV media notes<br />
['artist'] = nil, -- unique alias of others used by old cite AV media notes<br />
['ARXIV'] = nil, -- not an initialization<br />
['Author'] = nil, -- non-standard capitalization<br />
['authorformat'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['author-format'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['author-name-separator'] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['author-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['began'] = nil, -- module handles date ranges; cite episode and cite series<br />
['BIBCODE'] = nil, -- not an initialization<br />
['callsign'] = nil, -- cite interview removed<br />
['call-sign'] = nil, -- cite interview removed<br />
['chapterlink'] = nil, -- if ever necessary to link to a chapter article, |chapter= can be wikilinked <br />
['chapter-link'] = nil, -- <br />
['city'] = nil, -- cite interview removed<br />
['coauthor'] = nil, -- redundant to |authorn=; not made part of metadata<br />
['coauthors'] = nil, -- redundant to |authorn=; not made part of metadata<br />
['cointerviewers'] = nil, -- unique alias of others used by old cite interview<br />
['day'] = nil, -- deprecated in {{citation/core}} and somehow undeprecated in Module:Citation/CS1 and now finally removed<br />
['director'] = nil, -- unique alias of author used by old cite DVD-notes<br />
['doi_brokendate'] = nil, -- alias of doi-broken-date<br />
['doi_inactivedate'] = nil, -- alias of doi-inactive-date<br />
['DoiBroken'] = nil, -- not used, non-standard captialization<br />
['Editor'] = nil, -- non-standard capitalization<br />
['editorformat'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['EditorSurname'] = nil, -- non-standard capitalization<br />
['editor-format'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['EditorGiven'] = nil, -- non-standard capitalization<br />
['editor-name-separator'] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['editor-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['Embargo'] = nil, -- not used, non-standard capitalization<br />
['ended'] = nil, -- module handles date ranges; cite episode and cite series<br />
['month'] = nil, -- functionality supported by |date=<br />
['name-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['notestitle'] = nil, -- unique alias of chapter used by old cite AV media notes<br />
['PPrefix'] = nil, -- non-standard capitalization<br />
['PPPrefix'] = nil, -- not used, non-standard capitalization<br />
['pp-prefix'] = nil, -- not used, not documented<br />
['p-prefix'] = nil, -- not used, not documented<br />
['program'] = nil, -- cite interview removed<br />
['publisherid'] = nil, -- unique alias of id used by old cite AV media notes and old cite DVD-notes<br />
['Ref'] = nil, -- non-standard capitalization<br />
['separator'] = nil, -- this functionality now provided by |mode=<br />
['template doc demo'] = nil, -- alias of template doc demo<br />
['titleyear'] = nil, -- unique alias of origyear used by old cite DVD-notes<br />
['trans_chapter'] = nil, -- alias of trans-chapter<br />
['trans_title'] = nil, -- alias of trans-title<br />
<br />
['Author#'] = nil, -- non-standard capitalization<br />
['authors#'] = nil, -- no need for multiple lists of author names<br />
['Editor#'] = nil, -- non-standard capitalization<br />
['editors#'] = nil, -- no need for multiple lists of editor names<br />
['EditorGiven#'] = nil, -- non-standard capitalization<br />
['EditorSurname#'] = nil, -- non-standard capitalization<br />
<br />
]]<br />
<br />
--[[--------------------------< S U P P O R T E D P A R A M E T E R S >--------------------------------------<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local whitelist = {}<br />
<br />
local basic_arguments = {<br />
['accessdate'] = true,<br />
['access-date'] = true,<br />
['agency'] = true,<br />
['airdate'] = true,<br />
['air-date'] = true,<br />
['archivedate'] = true,<br />
['archive-date'] = true,<br />
['archive-format'] = true,<br />
['archiveurl'] = true,<br />
['archive-url'] = true,<br />
['article'] = true,<br />
['arxiv'] = true,<br />
['asin'] = true,<br />
['ASIN'] = true,<br />
['asin-tld'] = true,<br />
['ASIN-TLD'] = true,<br />
['at'] = true,<br />
['author'] = true,<br />
['author-first'] = true,<br />
['author-last'] = true,<br />
['authorlink'] = true,<br />
['author-link'] = true,<br />
['authormask'] = true,<br />
['author-mask'] = true,<br />
['authors'] = true,<br />
['bibcode'] = true,<br />
['bibcode-access'] = true,<br />
['biorxiv'] = true,<br />
['booktitle'] = true,<br />
['book-title'] = true,<br />
['cartography'] = true,<br />
['chapter'] = true,<br />
['chapter-format'] = true,<br />
['chapterurl'] = true,<br />
['chapter-url'] = true,<br />
['chapter-url-access'] = true,<br />
['citeseerx'] = true,<br />
['class'] = true, -- cite arxiv and arxiv identifiers<br />
['collaboration'] = true,<br />
['conference'] = true,<br />
['conference-format'] = true,<br />
['conferenceurl'] = true,<br />
['conference-url'] = true,<br />
['contribution'] = true,<br />
['contribution-format'] = true,<br />
['contributionurl'] = true,<br />
['contribution-url'] = true,<br />
['contributor'] = true,<br />
['contributor-first'] = true,<br />
['contributor-last'] = true,<br />
['contributor-given'] = true,<br />
['contributor-surname'] = true,<br />
['contributor-link'] = true,<br />
['contributor-mask'] = true,<br />
['credits'] = true, -- cite episode, cite serial<br />
['date'] = true,<br />
['deadurl'] = true,<br />
['dead-url'] = true,<br />
['degree'] = true,<br />
['department'] = true,<br />
['df'] = true,<br />
['dictionary'] = true,<br />
['displayauthors'] = true,<br />
['display-authors'] = true,<br />
['displayeditors'] = true,<br />
['display-editors'] = true,<br />
['docket'] = true,<br />
['doi'] = true,<br />
['DOI'] = true,<br />
['doi-access'] = true,<br />
['doi-broken'] = true,<br />
['doi-broken-date'] = true,<br />
['doi-inactive-date'] = true,<br />
['edition'] = true,<br />
['editor'] = true,<br />
['editor-first'] = true,<br />
['editor-given'] = true,<br />
['editor-last'] = true,<br />
['editorlink'] = true,<br />
['editor-link'] = true,<br />
['editormask'] = true,<br />
['editor-mask'] = true,<br />
['editors'] = true,<br />
['editor-surname'] = true,<br />
['eissn'] = true,<br />
['EISSN'] = true,<br />
['embargo'] = true,<br />
['encyclopaedia'] = true,<br />
['encyclopedia'] = true,<br />
['entry'] = true,<br />
['episode'] = true, -- cite serial only TODO: make available to cite episode?<br />
['episodelink'] = true, -- cite episode and cite serial<br />
['episode-link'] = true, -- cite episode and cite serial<br />
['eprint'] = true, -- cite arxiv and arxiv identifiers<br />
['event'] = true,<br />
['event-format'] = true,<br />
['eventurl'] = true,<br />
['event-url'] = true,<br />
['first'] = true,<br />
['format'] = true,<br />
['given'] = true,<br />
['hdl'] = true,<br />
['HDL'] = true,<br />
['hdl-access'] = true,<br />
['host'] = true,<br />
['id'] = true,<br />
['ID'] = true,<br />
['ignoreisbnerror'] = true,<br />
['ignore-isbn-error'] = true,<br />
['in'] = false,<br />
['inset'] = true,<br />
['institution'] = true,<br />
['interviewer'] = true,<br />
['interviewer-first'] = true,<br />
['interviewer-last'] = true,<br />
['interviewerlink'] = true,<br />
['interviewer-link'] = true,<br />
['interviewermask'] = true,<br />
['interviewer-mask'] = true,<br />
['interviewers'] = true,<br />
['isbn'] = true,<br />
['ISBN'] = true,<br />
['isbn13'] = true,<br />
['ISBN13'] = true,<br />
['ismn'] = true,<br />
['ISMN'] = true,<br />
['issn'] = true,<br />
['ISSN'] = true,<br />
['issue'] = true,<br />
['jfm'] = true,<br />
['JFM'] = true,<br />
['journal'] = true,<br />
['jstor'] = true,<br />
['JSTOR'] = true,<br />
['jstor-access'] = true,<br />
['lang'] = true,<br />
['language'] = true,<br />
['last'] = true,<br />
['lastauthoramp'] = true,<br />
['last-author-amp'] = true,<br />
['laydate'] = true,<br />
['lay-date'] = true,<br />
['laysource'] = true,<br />
['lay-source'] = true,<br />
['laysummary'] = true,<br />
['lay-summary'] = true,<br />
['lay-format'] = true,<br />
['layurl'] = true,<br />
['lay-url'] = true,<br />
['lccn'] = true,<br />
['LCCN'] = true,<br />
['location'] = true,<br />
['magazine'] = true,<br />
['mailinglist'] = true, -- cite mailing list only<br />
['mailing-list'] = true, -- cite mailing list only<br />
['map'] = true, -- cite map only<br />
['map-format'] = true, -- cite map only<br />
['mapurl'] = true, -- cite map only<br />
['map-url'] = true, -- cite map only<br />
['medium'] = true,<br />
['message-id'] = true, -- cite newsgroup<br />
['minutes'] = true,<br />
['mode'] = true,<br />
['mr'] = true,<br />
['MR'] = true,<br />
['name-list-format'] = true,<br />
['network'] = true,<br />
['newsgroup'] = true,<br />
['newspaper'] = true,<br />
['nocat'] = true,<br />
['no-cat'] = true,<br />
['nopp'] = true,<br />
['no-pp'] = true,<br />
['notracking'] = true,<br />
['no-tracking'] = true,<br />
['number'] = true,<br />
['oclc'] = true,<br />
['OCLC'] = true,<br />
['ol'] = true,<br />
['OL'] = true,<br />
['ol-access'] = true,<br />
['origyear'] = true,<br />
['orig-year'] = true,<br />
['osti'] = true,<br />
['OSTI'] = true,<br />
['osti-access'] = true,<br />
['others'] = true,<br />
['p'] = true,<br />
['page'] = true,<br />
['pages'] = true,<br />
['people'] = true,<br />
['periodical'] = true,<br />
['place'] = true,<br />
['pmc'] = true,<br />
['PMC'] = true,<br />
['pmid'] = true,<br />
['PMID'] = true,<br />
['postscript'] = true,<br />
['pp'] = true,<br />
['publicationdate'] = true,<br />
['publication-date'] = true,<br />
['publicationplace'] = true,<br />
['publication-place'] = true,<br />
['publisher'] = true,<br />
['quotation'] = true,<br />
['quote'] = true,<br />
['ref'] = true,<br />
['registration'] = true,<br />
['rfc'] = true,<br />
['RFC'] = true,<br />
['scale'] = true,<br />
['script-chapter'] = true,<br />
['script-title'] = true,<br />
['season'] = true,<br />
['section'] = true,<br />
['section-format'] = true,<br />
['sections'] = true, -- cite map only<br />
['sectionurl'] = true,<br />
['section-url'] = true,<br />
['series'] = true,<br />
['serieslink'] = true,<br />
['series-link'] = true,<br />
['seriesno'] = true,<br />
['series-no'] = true,<br />
['seriesnumber'] = true,<br />
['series-number'] = true,<br />
['series-separator'] = true,<br />
['sheet'] = true, -- cite map only<br />
['sheets'] = true, -- cite map only<br />
['ssrn'] = true,<br />
['SSRN'] = true,<br />
['station'] = true,<br />
['subject'] = true,<br />
['subjectlink'] = true,<br />
['subject-link'] = true,<br />
['subscription'] = true,<br />
['surname'] = true,<br />
['template-doc-demo'] = true,<br />
['time'] = true,<br />
['timecaption'] = true,<br />
['time-caption'] = true,<br />
['title'] = true,<br />
['titlelink'] = true,<br />
['title-link'] = true,<br />
['trans-chapter'] = true,<br />
['trans-map'] = true,<br />
['transcript'] = true,<br />
['transcript-format'] = true,<br />
['transcripturl'] = true,<br />
['transcript-url'] = true,<br />
['trans-title'] = true,<br />
['translator'] = true,<br />
['translator-first'] = true,<br />
['translator-last'] = true,<br />
['translator-given'] = true,<br />
['translator-surname'] = true,<br />
['translator-link'] = true,<br />
['translator-mask'] = true,<br />
['type'] = true,<br />
['url'] = true,<br />
['URL'] = true,<br />
['url-access'] = true,<br />
['vauthors'] = true,<br />
['veditors'] = true,<br />
['version'] = true,<br />
['via'] = true,<br />
['volume'] = true,<br />
['website'] = true,<br />
['work'] = true,<br />
['year'] = true,<br />
['zbl'] = true,<br />
['ZBL'] = true,<br />
}<br />
<br />
local numbered_arguments = {<br />
['author#'] = true,<br />
['author-first#'] = true,<br />
['author#-first'] = true,<br />
['author-last#'] = true,<br />
['author#-last'] = true,<br />
['author-link#'] = true,<br />
['author#link'] = true,<br />
['author#-link'] = true,<br />
['authorlink#'] = true,<br />
['author-mask#'] = true,<br />
['author#mask'] = true,<br />
['author#-mask'] = true,<br />
['authormask#'] = true,<br />
['contributor#'] = true,<br />
['contributor-first#'] = true,<br />
['contributor#-first'] = true,<br />
['contributor-last#'] = true,<br />
['contributor#-last'] = true,<br />
['contributor-given#'] = true,<br />
['contributor#-given'] = true,<br />
['contributor-surname#'] = true,<br />
['contributor#-surname'] = true,<br />
['contributor-link#'] = true,<br />
['contributor#-link'] = true,<br />
['contributor-mask#'] = true,<br />
['contributor#-mask'] = true,<br />
['editor#'] = true,<br />
['editor-first#'] = true,<br />
['editor#-first'] = true,<br />
['editor#-given'] = true,<br />
['editor-given#'] = true,<br />
['editor-last#'] = true,<br />
['editor#-last'] = true,<br />
['editor-link#'] = true,<br />
['editor#link'] = true,<br />
['editor#-link'] = true,<br />
['editorlink#'] = true,<br />
['editor-mask#'] = true,<br />
['editor#mask'] = true,<br />
['editor#-mask'] = true,<br />
['editormask#'] = true,<br />
['editor#-surname'] = true,<br />
['editor-surname#'] = true,<br />
['first#'] = true,<br />
['given#'] = true,<br />
['interviewer#'] = true,<br />
['interviewer-first#'] = true,<br />
['interviewer#-first'] = true,<br />
['interviewer-last#'] = true,<br />
['interviewer#-last'] = true,<br />
['interviewer-link#'] = true,<br />
['interviewer#-link'] = true,<br />
['interviewer-mask#'] = true,<br />
['interviewer#-mask'] = true,<br />
['last#'] = true,<br />
['subject#'] = true,<br />
['subject-link#'] = true,<br />
['subject#link'] = true,<br />
['subject#-link'] = true,<br />
['subjectlink#'] = true,<br />
['surname#'] = true,<br />
['translator#'] = true,<br />
['translator-first#'] = true,<br />
['translator#-first'] = true,<br />
['translator-last#'] = true,<br />
['translator#-last'] = true,<br />
['translator-given#'] = true,<br />
['translator#-given'] = true,<br />
['translator-surname#'] = true,<br />
['translator#-surname'] = true,<br />
['translator-link#'] = true,<br />
['translator#-link'] = true,<br />
['translator-mask#'] = true,<br />
['translator#-mask'] = true,<br />
}<br />
<br />
--[[--------------------------< C I T E A R X I V S U P P O R T E D P A R A M E T E R S >----------------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite arxiv template. This method might be expanded to other templates being considered.<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
--[[<br />
This is a list of parameters that once were but now are no longer supported:<br />
['ARXIV'] = nil, -- not an initialization<br />
['version'] = nil, -- this is the cite arxiv parameter; |version= still supported by other cs1|2 templates<br />
<br />
]]<br />
<br />
local arxiv_basic_arguments = {<br />
['arxiv'] = true,<br />
['class'] = true, -- cite arxiv and arxiv identifiers<br />
['eprint'] = true, -- cite arxiv and arxiv identifiers<br />
}<br />
<br />
<br />
--[[--------------------------< C I T E B I O R X I V S U P P O R T E D P A R A M E T E R S >------------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite biorxiv template. This method might be expanded to other templates being considered.<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local biorxiv_basic_arguments = {<br />
['biorxiv'] = true,<br />
}<br />
<br />
<br />
--[[--------------------------< C I T E C I T E S E E R X S U P P O R T E D P A R A M E T E R S >--------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite citeseerx template. This method might be expanded to other templates being considered.<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local citeseerx_basic_arguments = {<br />
['citeseerx'] = true,<br />
}<br />
<br />
<br />
--[[--------------------------< L I M I T E D S U P P O R T E D P A R A M E T E R S >----------------------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite arxiv, cite biorxiv, or cite citeseerx templates. These parameters are common to<br />
all three templates<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local limited_basic_arguments = {<br />
['at'] = true,<br />
['author'] = true,<br />
['author-first'] = true,<br />
['author-last'] = true,<br />
['authorlink'] = true,<br />
['author-link'] = true,<br />
['authormask'] = true,<br />
['author-mask'] = true,<br />
['authors'] = true,<br />
['collaboration'] = true,<br />
['date'] = true,<br />
['df'] = true,<br />
['display-authors'] = true,<br />
['first'] = true,<br />
['given'] = true,<br />
['language'] = true,<br />
['last'] = true,<br />
['lastauthoramp'] = true,<br />
['last-author-amp'] = true,<br />
['mode'] = true,<br />
['name-list-format'] = true,<br />
['nocat'] = true,<br />
['no-cat'] = true,<br />
['notracking'] = true,<br />
['no-tracking'] = true,<br />
['p'] = true,<br />
['page'] = true,<br />
['pages'] = true,<br />
['postscript'] = true,<br />
['pp'] = true,<br />
['quotation'] = true,<br />
['quote'] = true,<br />
['ref'] = true,<br />
['surname'] = true,<br />
['template-doc-demo'] = true,<br />
['title'] = true,<br />
['url'] = true,<br />
['URL'] = true,<br />
['vauthors'] = true,<br />
['year'] = true,<br />
}<br />
local limited_numbered_arguments = {<br />
['author#'] = true,<br />
['author-first#'] = true,<br />
['author#-first'] = true,<br />
['author-last#'] = true,<br />
['author#-last'] = true,<br />
['author-link#'] = true,<br />
['author#link'] = true,<br />
['author#-link'] = true,<br />
['authorlink#'] = true,<br />
['author-mask#'] = true,<br />
['author#mask'] = true,<br />
['author#-mask'] = true,<br />
['authormask#'] = true,<br />
['first#'] = true,<br />
['given#'] = true,<br />
['last#'] = true,<br />
['surname#'] = true,<br />
}<br />
<br />
return {<br />
basic_arguments = basic_arguments,<br />
numbered_arguments = numbered_arguments,<br />
limited_basic_arguments = limited_basic_arguments,<br />
limited_numbered_arguments = limited_numbered_arguments,<br />
arxiv_basic_arguments = arxiv_basic_arguments,<br />
biorxiv_basic_arguments = biorxiv_basic_arguments,<br />
citeseerx_basic_arguments = citeseerx_basic_arguments<br />
};</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Hatnote_inline&diff=824Modul:Hatnote inline2019-08-09T03:36:12Z<p>Adminwiki: 1 revisi diimpor: Templat:Cite web</p>
<hr />
<div>--------------------------------------------------------------------------------<br />
-- Module:Hatnote-inline --<br />
-- --<br />
-- This module produces hatnote-style links and links to related articles, --<br />
-- but inside a <span>, instead of the <div> used by Module:Hatnote. It --<br />
-- implements the {{hatnote-inline}} meta-template. --<br />
--------------------------------------------------------------------------------<br />
<br />
local mHatnote = require('Module:Hatnote')<br />
local mArguments = require('Module:Arguments')<br />
local yesno = require('Module:Yesno')<br />
local p = {}<br />
<br />
function p.hatnoteInline (frame)<br />
local args = mArguments.getArgs(frame)<br />
local hatnote = mHatnote.hatnote(frame)<br />
if args.inline == nil or yesno(args.inline, true) then<br />
local subs = {<br />
['^<div'] = '<span',<br />
['</div>$'] = '</span>'<br />
}<br />
for k, v in pairs(subs) do hatnote = string.gsub(hatnote, k, v) end<br />
end<br />
return hatnote<br />
end<br />
<br />
p.hatnote = p.hatnoteInline --alias<br />
<br />
return p</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Citation/CS1&diff=810Modul:Citation/CS12019-08-09T03:36:11Z<p>Adminwiki: 1 revisi diimpor: Templat:Cite web</p>
<hr />
<div><br />
local cs1 ={};<br />
<br />
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------<br />
]]<br />
<br />
local dates, year_date_check, reformat_dates, date_hyphen_to_dash, -- functions in Module:Citation/CS1/Date_validation<br />
date_name_xlate<br />
<br />
local is_set, in_array, substitute, error_comment, set_error, select_one, -- functions in Module:Citation/CS1/Utilities<br />
add_maint_cat, wrap_style, safe_for_italics, is_wikilink, make_wikilink;<br />
<br />
local z ={}; -- tables in Module:Citation/CS1/Utilities<br />
<br />
local extract_ids, extract_id_access_levels, build_id_list, is_embargoed; -- functions in Module:Citation/CS1/Identifiers<br />
<br />
local make_coins_title, get_coins_pages, COinS; -- functions in Module:Citation/CS1/COinS<br />
<br />
local cfg = {}; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration<br />
local whitelist = {}; -- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist<br />
<br />
<br />
--[[--------------------------< P A G E S C O P E V A R I A B L E S >--------------------------------------<br />
<br />
delare variables here that have page-wide scope that are not brought in from other modules; thatare created here<br />
and used here<br />
<br />
]]<br />
<br />
local added_deprecated_cat; -- boolean flag so that the category is added only once<br />
local added_prop_cats = {}; -- list of property categories that have been added to z.properties_cats<br />
local added_vanc_errs; -- boolean flag so we only emit one Vancouver error / category<br />
<br />
local Frame; -- holds the module's frame table<br />
<br />
<br />
--[[--------------------------< F I R S T _ S E T >------------------------------------------------------------<br />
<br />
Locates and returns the first set value in a table of values where the order established in the table,<br />
left-to-right (or top-to-bottom), is the order in which the values are evaluated. Returns nil if none are set.<br />
<br />
This version replaces the original 'for _, val in pairs do' and a similar version that used ipairs. With the pairs<br />
version the order of evaluation could not be guaranteed. With the ipairs version, a nil value would terminate<br />
the for-loop before it reached the actual end of the list.<br />
<br />
]]<br />
<br />
local function first_set (list, count)<br />
local i = 1;<br />
while i <= count do -- loop through all items in list<br />
if is_set( list[i] ) then<br />
return list[i]; -- return the first set list member<br />
end<br />
i = i + 1; -- point to next<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< A D D _ P R O P _ C A T >--------------------------------------------------------<br />
<br />
Adds a category to z.properties_cats using names from the configuration file with additional text if any.<br />
<br />
foreign_lang_source and foreign_lang_source_2 keys have a language code appended to them so that multiple languages<br />
may be categorized but multiples of the same language are not categorized.<br />
<br />
added_prop_cats is a table declared in page scope variables above<br />
<br />
]]<br />
<br />
local function add_prop_cat (key, arguments)<br />
if not added_prop_cats [key] then<br />
added_prop_cats [key] = true; -- note that we've added this category<br />
key = key:gsub ('(foreign_lang_source_?2?)%a%a%a?', '%1'); -- strip lang code from keyname<br />
table.insert( z.properties_cats, substitute (cfg.prop_cats [key], arguments)); -- make name then add to table<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< A D D _ V A N C _ E R R O R >----------------------------------------------------<br />
<br />
Adds a single Vancouver system error message to the template's output regardless of how many error actually exist.<br />
To prevent duplication, added_vanc_errs is nil until an error message is emitted.<br />
<br />
added_vanc_errs is a boolean declared in page scope variables above<br />
<br />
]]<br />
<br />
local function add_vanc_error (source)<br />
if not added_vanc_errs then<br />
added_vanc_errs = true; -- note that we've added this category<br />
table.insert( z.message_tail, { set_error( 'vancouver', {source}, true ) } );<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< I S _ S C H E M E >------------------------------------------------------------<br />
<br />
does this thing that purports to be a uri scheme seem to be a valid scheme? The scheme is checked to see if it<br />
is in agreement with http://tools.ietf.org/html/std66#section-3.1 which says:<br />
Scheme names consist of a sequence of characters beginning with a<br />
letter and followed by any combination of letters, digits, plus<br />
("+"), period ("."), or hyphen ("-").<br />
<br />
returns true if it does, else false<br />
<br />
]]<br />
<br />
local function is_scheme (scheme)<br />
return scheme and scheme:match ('^%a[%a%d%+%.%-]*:'); -- true if scheme is set and matches the pattern<br />
end<br />
<br />
<br />
--[=[-------------------------< I S _ D O M A I N _ N A M E >--------------------------------------------------<br />
<br />
Does this thing that purports to be a domain name seem to be a valid domain name?<br />
<br />
Syntax defined here: http://tools.ietf.org/html/rfc1034#section-3.5<br />
BNF defined here: https://tools.ietf.org/html/rfc4234<br />
Single character names are generally reserved; see https://tools.ietf.org/html/draft-ietf-dnsind-iana-dns-01#page-15;<br />
see also [[Single-letter second-level domain]]<br />
list of tlds: https://www.iana.org/domains/root/db<br />
<br />
rfc952 (modified by rfc 1123) requires the first and last character of a hostname to be a letter or a digit. Between<br />
the first and last characters the name may use letters, digits, and the hyphen.<br />
<br />
Also allowed are IPv4 addresses. IPv6 not supported<br />
<br />
domain is expected to be stripped of any path so that the last character in the last character of the tld. tld<br />
is two or more alpha characters. Any preceding '//' (from splitting a url with a scheme) will be stripped<br />
here. Perhaps not necessary but retained incase it is necessary for IPv4 dot decimal.<br />
<br />
There are several tests:<br />
the first character of the whole domain name including subdomains must be a letter or a digit<br />
internationalized domain name (ascii characters with .xn-- ASCII Compatible Encoding (ACE) prefix xn-- in the tld) see https://tools.ietf.org/html/rfc3490<br />
single-letter/digit second-level domains in the .org and .cash TLDs<br />
q, x, and z SL domains in the .com TLD<br />
i and q SL domains in the .net TLD<br />
single-letter SL domains in the ccTLDs (where the ccTLD is two letters)<br />
two-character SL domains in gTLDs (where the gTLD is two or more letters)<br />
three-plus-character SL domains in gTLDs (where the gTLD is two or more letters)<br />
IPv4 dot-decimal address format; TLD not allowed<br />
<br />
returns true if domain appears to be a proper name and tld or IPv4 address, else false<br />
<br />
]=]<br />
<br />
local function is_domain_name (domain)<br />
if not domain then<br />
return false; -- if not set, abandon<br />
end<br />
<br />
domain = domain:gsub ('^//', ''); -- strip '//' from domain name if present; done here so we only have to do it once<br />
<br />
if not domain:match ('^[%a%d]') then -- first character must be letter or digit<br />
return false;<br />
end<br />
-- Do most common case first<br />
if domain:match ('%f[%a%d][%a%d][%a%d%-]+[%a%d]%.%a%a+$') then -- three or more character hostname.hostname or hostname.tld<br />
return true;<br />
elseif domain:match ('%f[%a%d][%a%d][%a%d%-]+[%a%d]%.xn%-%-[%a%d]+$') then -- internationalized domain name with ACE prefix<br />
return true;<br />
elseif domain:match ('%f[%a%d][%a%d]%.cash$') then -- one character/digit .cash hostname<br />
return true;<br />
elseif domain:match ('%f[%a%d][%a%d]%.org$') then -- one character/digit .org hostname<br />
return true;<br />
elseif domain:match ('%f[%a][qxz]%.com$') then -- assigned one character .com hostname (x.com times out 2015-12-10)<br />
return true;<br />
elseif domain:match ('%f[%a][iq]%.net$') then -- assigned one character .net hostname (q.net registered but not active 2015-12-10)<br />
return true;<br />
elseif domain:match ('%f[%a%d][%a%d]%.%a%a$') then -- one character hostname and cctld (2 chars)<br />
return true;<br />
elseif domain:match ('%f[%a%d][%a%d][%a%d]%.%a%a+$') then -- two character hostname and tld<br />
return true;<br />
elseif domain:match ('^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?') then -- IPv4 address<br />
return true;<br />
else<br />
return false;<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< I S _ U R L >------------------------------------------------------------------<br />
<br />
returns true if the scheme and domain parts of a url appear to be a valid url; else false.<br />
<br />
This function is the last step in the validation process. This function is separate because there are cases that<br />
are not covered by split_url(), for example is_parameter_ext_wikilink() which is looking for bracketted external<br />
wikilinks.<br />
<br />
]]<br />
<br />
local function is_url (scheme, domain)<br />
if is_set (scheme) then -- if scheme is set check it and domain<br />
return is_scheme (scheme) and is_domain_name (domain);<br />
else<br />
return is_domain_name (domain); -- scheme not set when url is protocol relative<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< S P L I T _ U R L >------------------------------------------------------------<br />
<br />
Split a url into a scheme, authority indicator, and domain.<br />
<br />
First remove Fully Qualified Domain Name terminator (a dot following tld) (if any) and any path(/), query(?) or fragment(#).<br />
<br />
If protocol relative url, return nil scheme and domain else return nil for both scheme and domain.<br />
<br />
When not protocol relative, get scheme, authority indicator, and domain. If there is an authority indicator (one<br />
or more '/' characters immediately following the scheme's colon), make sure that there are only 2.<br />
<br />
Strip off any port and path;<br />
<br />
]]<br />
<br />
local function split_url (url_str)<br />
local scheme, authority, domain;<br />
<br />
url_str = url_str:gsub ('([%a%d])%.?[/%?#].*$', '%1'); -- strip FQDN terminator and path(/), query(?), fragment (#) (the capture prevents false replacement of '//')<br />
<br />
if url_str:match ('^//%S*') then -- if there is what appears to be a protocol relative url<br />
domain = url_str:match ('^//(%S*)')<br />
elseif url_str:match ('%S-:/*%S+') then -- if there is what appears to be a scheme, optional authority indicator, and domain name<br />
scheme, authority, domain = url_str:match ('(%S-:)(/*)(%S+)'); -- extract the scheme, authority indicator, and domain portions<br />
authority = authority:gsub ('//', '', 1); -- replace place 1 pair of '/' with nothing;<br />
if is_set(authority) then -- if anything left (1 or 3+ '/' where authority should be) then<br />
return scheme; -- return scheme only making domain nil which will cause an error message<br />
end<br />
domain = domain:gsub ('(%a):%d+', '%1'); -- strip port number if present<br />
end<br />
<br />
return scheme, domain;<br />
end<br />
<br />
<br />
--[[--------------------------< L I N K _ P A R A M _ O K >---------------------------------------------------<br />
<br />
checks the content of |title-link=, |series-link=, |author-link= etc for properly formatted content: no wikilinks, no urls<br />
<br />
Link parameters are to hold the title of a wikipedia article so none of the WP:TITLESPECIALCHARACTERS are allowed:<br />
# < > [ ] | { } _<br />
except the underscore which is used as a space in wiki urls and # which is used for section links<br />
<br />
returns false when the value contains any of these characters.<br />
<br />
When there are no illegal characters, this function returns TRUE if value DOES NOT appear to be a valid url (the<br />
|<param>-link= parameter is ok); else false when value appears to be a valid url (the |<param>-link= parameter is NOT ok).<br />
<br />
]]<br />
<br />
local function link_param_ok (value)<br />
local scheme, domain;<br />
if value:find ('[<>%[%]|{}]') then -- if any prohibited characters<br />
return false;<br />
end<br />
<br />
scheme, domain = split_url (value); -- get scheme or nil and domain or nil from url; <br />
return not is_url (scheme, domain); -- return true if value DOES NOT appear to be a valid url<br />
end<br />
<br />
<br />
--[[--------------------------< L I N K _ T I T L E _ O K >---------------------------------------------------<br />
<br />
Use link_param_ok() to validate |<param>-link= value and its matching |<title>= value.<br />
<br />
|<title>= may be wikilinked but not when |<param>-link= has a value. This function emits an error message when<br />
that condition exists<br />
<br />
]]<br />
<br />
local function link_title_ok (link, lorig, title, torig)<br />
local orig;<br />
<br />
if is_set (link) then -- don't bother if <param>-link doesn't have a value<br />
if not link_param_ok (link) then -- check |<param>-link= markup<br />
orig = lorig; -- identify the failing link parameter<br />
elseif title:find ('%[%[') then -- check |title= for wikilink markup<br />
orig = torig; -- identify the failing |title= parameter<br />
end<br />
end<br />
<br />
if is_set (orig) then<br />
table.insert( z.message_tail, { set_error( 'bad_paramlink', orig)}); -- url or wikilink in |title= with |title-link=;<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< C H E C K _ U R L >------------------------------------------------------------<br />
<br />
Determines whether a URL string appears to be valid.<br />
<br />
First we test for space characters. If any are found, return false. Then split the url into scheme and domain<br />
portions, or for protocol relative (//example.com) urls, just the domain. Use is_url() to validate the two<br />
portions of the url. If both are valid, or for protocol relative if domain is valid, return true, else false.<br />
<br />
Because it is different from a standard url, and because this module used external_link() to make external links<br />
that work for standard and news: links, we validate newsgroup names here. The specification for a newsgroup name<br />
is at https://tools.ietf.org/html/rfc5536#section-3.1.4<br />
<br />
]]<br />
<br />
local function check_url( url_str )<br />
if nil == url_str:match ("^%S+$") then -- if there are any spaces in |url=value it can't be a proper url<br />
return false;<br />
end<br />
local scheme, domain;<br />
<br />
scheme, domain = split_url (url_str); -- get scheme or nil and domain or nil from url;<br />
<br />
if 'news:' == scheme then -- special case for newsgroups<br />
return domain:match('^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$');<br />
end<br />
<br />
return is_url (scheme, domain); -- return true if value appears to be a valid url<br />
end<br />
<br />
<br />
--[=[-------------------------< I S _ P A R A M E T E R _ E X T _ W I K I L I N K >----------------------------<br />
<br />
Return true if a parameter value has a string that begins and ends with square brackets [ and ] and the first<br />
non-space characters following the opening bracket appear to be a url. The test will also find external wikilinks<br />
that use protocol relative urls. Also finds bare urls.<br />
<br />
The frontier pattern prevents a match on interwiki links which are similar to scheme:path urls. The tests that<br />
find bracketed urls are required because the parameters that call this test (currently |title=, |chapter=, |work=,<br />
and |publisher=) may have wikilinks and there are articles or redirects like '//Hus' so, while uncommon, |title=[[//Hus]]<br />
is possible as might be [[en://Hus]].<br />
<br />
]=]<br />
<br />
local function is_parameter_ext_wikilink (value)<br />
local scheme, domain;<br />
<br />
if value:match ('%f[%[]%[%a%S*:%S+.*%]') then -- if ext wikilink with scheme and domain: [xxxx://yyyyy.zzz]<br />
scheme, domain = split_url (value:match ('%f[%[]%[(%a%S*:%S+).*%]'));<br />
elseif value:match ('%f[%[]%[//%S+.*%]') then -- if protocol relative ext wikilink: [//yyyyy.zzz]<br />
scheme, domain = split_url (value:match ('%f[%[]%[(//%S+).*%]'));<br />
elseif value:match ('%a%S*:%S+') then -- if bare url with scheme; may have leading or trailing plain text<br />
scheme, domain = split_url (value:match ('(%a%S*:%S+)'));<br />
elseif value:match ('//%S+') then -- if protocol relative bare url: //yyyyy.zzz; may have leading or trailing plain text<br />
scheme, domain = split_url (value:match ('(//%S+)')); -- what is left should be the domain<br />
else<br />
return false; -- didn't find anything that is obviously a url<br />
end<br />
<br />
return is_url (scheme, domain); -- return true if value appears to be a valid url<br />
end<br />
<br />
<br />
--[[-------------------------< C H E C K _ F O R _ U R L >-----------------------------------------------------<br />
<br />
loop through a list of parameters and their values. Look at the value and if it has an external link, emit an error message.<br />
<br />
]]<br />
<br />
local function check_for_url (parameter_list)<br />
local error_message = '';<br />
for k, v in pairs (parameter_list) do -- for each parameter in the list<br />
if is_parameter_ext_wikilink (v) then -- look at the value; if there is a url add an error message<br />
if is_set(error_message) then -- once we've added the first portion of the error message ...<br />
error_message=error_message .. ", "; -- ... add a comma space separator<br />
end<br />
error_message=error_message .. "&#124;" .. k .. "="; -- add the failed parameter<br />
end<br />
end<br />
if is_set (error_message) then -- done looping, if there is an error message, display it<br />
table.insert( z.message_tail, { set_error( 'param_has_ext_link', {error_message}, true ) } );<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< S A F E _ F O R _ U R L >------------------------------------------------------<br />
<br />
Escape sequences for content that will be used for URL descriptions<br />
<br />
]]<br />
<br />
local function safe_for_url( str )<br />
if str:match( "%[%[.-%]%]" ) ~= nil then <br />
table.insert( z.message_tail, { set_error( 'wikilink_in_url', {}, true ) } );<br />
end<br />
<br />
return str:gsub( '[%[%]\n]', { <br />
['['] = '&#91;',<br />
[']'] = '&#93;',<br />
['\n'] = ' ' } );<br />
end<br />
<br />
<br />
--[[--------------------------< E X T E R N A L _ L I N K >----------------------------------------------------<br />
<br />
Format an external link with error checking<br />
<br />
]]<br />
<br />
local function external_link( URL, label, source, access)<br />
local error_str = "";<br />
local domain;<br />
local path;<br />
local base_url;<br />
<br />
if not is_set( label ) then<br />
label = URL;<br />
if is_set( source ) then<br />
error_str = set_error( 'bare_url_missing_title', { wrap_style ('parameter', source) }, false, " " );<br />
else<br />
error( cfg.messages["bare_url_no_origin"] );<br />
end <br />
end<br />
if not check_url( URL ) then<br />
error_str = set_error( 'bad_url', {wrap_style ('parameter', source)}, false, " " ) .. error_str;<br />
end<br />
<br />
domain, path = URL:match ('^([/%.%-%+:%a%d]+)([/%?#].*)$'); -- split the url into scheme plus domain and path<br />
if path then -- if there is a path portion<br />
path = path:gsub ('[%[%]]', {['[']='%5b',[']']='%5d'}); -- replace '[' and ']' with their percent encoded values<br />
URL=domain..path; -- and reassemble<br />
end<br />
<br />
if is_set (access) then -- access level (subscription, registration, limited)<br />
label = safe_for_url (label); -- replace square brackets and newlines<br />
<br />
base_url = table.concat ( -- assemble external link with access signal<br />
{<br />
'<span class="plainlinks">[', -- opening css and url markup<br />
URL, -- the url<br />
' ', -- the required space<br />
label,<br />
'<span style="padding-left:0.15em">', -- signal spacing css<br />
cfg.presentation[access], -- the appropriate icon<br />
'</span>', -- close signal spacing span<br />
']</span>' -- close url markup and plain links span<br />
});<br />
else<br />
base_url = table.concat({ "[", URL, " ", safe_for_url( label ), "]" }); -- no signal markup<br />
end<br />
<br />
return table.concat({ base_url, error_str });<br />
end<br />
<br />
<br />
--[[--------------------------< D E P R E C A T E D _ P A R A M E T E R >--------------------------------------<br />
<br />
Categorize and emit an error message when the citation contains one or more deprecated parameters. The function includes the<br />
offending parameter name to the error message. Only one error message is emitted regardless of the number of deprecated<br />
parameters in the citation.<br />
<br />
added_deprecated_cat is a boolean declared in page scope variables above<br />
<br />
]]<br />
<br />
local function deprecated_parameter(name)<br />
if not added_deprecated_cat then<br />
added_deprecated_cat = true; -- note that we've added this category<br />
table.insert( z.message_tail, { set_error( 'deprecated_params', {name}, true ) } ); -- add error message<br />
end<br />
end<br />
<br />
<br />
--[=[-------------------------< K E R N _ Q U O T E S >--------------------------------------------------------<br />
<br />
Apply kerning to open the space between the quote mark provided by the Module and a leading or trailing quote<br />
mark contained in a |title= or |chapter= parameter's value.<br />
<br />
This function will positive kern either single or double quotes:<br />
"'Unkerned title with leading and trailing single quote marks'"<br />
" 'Kerned title with leading and trailing single quote marks' " (in real life the kerning isn't as wide as this example)<br />
Double single quotes (italic or bold wikimarkup) are not kerned.<br />
<br />
Replaces unicode quotemarks in plain text or in the label portion of a [[L|D]] style wikilink with typewriter<br />
quote marks regardless of the need for kerning. Unicode quote marks are not replaced in simple [[D]] wikilinks.<br />
<br />
Call this function for chapter titles, for website titles, etc; not for book titles.<br />
<br />
]=]<br />
<br />
local function kern_quotes (str)<br />
local cap='';<br />
local cap2='';<br />
local wl_type, label, link;<br />
<br />
wl_type, label, link = is_wikilink (str); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]<br />
<br />
if 1 == wl_type then -- [[D]] simple wikilink with or without quote marks<br />
if mw.ustring.match (str, '%[%[[\"“”\'‘’].+[\"“”\'‘’]%]%]') then -- leading and trailing quote marks<br />
str = substitute (cfg.presentation['kern-wl-both'], str);<br />
elseif mw.ustring.match (str, '%[%[[\"“”\'‘’].+%]%]') then -- leading quote marks<br />
str = substitute (cfg.presentation['kern-wl-left'], str);<br />
elseif mw.ustring.match (str, '%[%[.+[\"“”\'‘’]%]%]') then -- trailing quote marks<br />
str = substitute (cfg.presentation['kern-wl-right'], str);<br />
end<br />
<br />
else -- plain text or [[L|D]]; text in label variable<br />
label= mw.ustring.gsub (label, '[“”]', '\"'); -- replace “” (U+201C & U+201D) with " (typewriter double quote mark)<br />
label= mw.ustring.gsub (label, '[‘’]', '\''); -- replace ‘’ (U+2018 & U+2019) with ' (typewriter single quote mark)<br />
<br />
cap, cap2 = mw.ustring.match (label, "^([\"\'])([^\'].+)"); -- match leading double or single quote but not doubled single quotes (italic markup)<br />
if is_set (cap) then<br />
label = substitute (cfg.presentation['kern-left'], {cap, cap2});<br />
end<br />
<br />
cap, cap2 = mw.ustring.match (label, "^(.+[^\'])([\"\'])$") -- match trailing double or single quote but not doubled single quotes (italic markup)<br />
if is_set (cap) then<br />
label = substitute (cfg.presentation['kern-right'], {cap, cap2});<br />
end<br />
<br />
if 2 == wl_type then<br />
str = make_wikilink (link, label); -- reassemble the wikilink<br />
else<br />
str = label;<br />
end<br />
end<br />
return str;<br />
end<br />
<br />
<br />
--[[--------------------------< F O R M A T _ S C R I P T _ V A L U E >----------------------------------------<br />
<br />
|script-title= holds title parameters that are not written in Latin based scripts: Chinese, Japanese, Arabic, Hebrew, etc. These scripts should<br />
not be italicized and may be written right-to-left. The value supplied by |script-title= is concatenated onto Title after Title has been wrapped<br />
in italic markup.<br />
<br />
Regardless of language, all values provided by |script-title= are wrapped in <bdi>...</bdi> tags to isolate rtl languages from the English left to right.<br />
<br />
|script-title= provides a unique feature. The value in |script-title= may be prefixed with a two-character ISO639-1 language code and a colon:<br />
|script-title=ja:*** *** (where * represents a Japanese character)<br />
Spaces between the two-character code and the colon and the colon and the first script character are allowed:<br />
|script-title=ja : *** ***<br />
|script-title=ja: *** ***<br />
|script-title=ja :*** ***<br />
Spaces preceding the prefix are allowed: |script-title = ja:*** ***<br />
<br />
The prefix is checked for validity. If it is a valid ISO639-1 language code, the lang attribute (lang="ja") is added to the <bdi> tag so that browsers can<br />
know the language the tag contains. This may help the browser render the script more correctly. If the prefix is invalid, the lang attribute<br />
is not added. At this time there is no error message for this condition.<br />
<br />
Supports |script-title= and |script-chapter=<br />
<br />
TODO: error messages when prefix is invalid ISO639-1 code; when script_value has prefix but no script;<br />
]]<br />
<br />
local function format_script_value (script_value)<br />
local lang=''; -- initialize to empty string<br />
local name;<br />
if script_value:match('^%l%l%s*:') then -- if first 3 non-space characters are script language prefix<br />
lang = script_value:match('^(%l%l)%s*:%s*%S.*'); -- get the language prefix or nil if there is no script<br />
if not is_set (lang) then<br />
return ''; -- script_value was just the prefix so return empty string<br />
end<br />
-- if we get this far we have prefix and script<br />
name = cfg.lang_code_remap[lang] or mw.language.fetchLanguageName( lang, "en" ); -- get language name so that we can use it to categorize<br />
if is_set (name) then -- is prefix a proper ISO 639-1 language code?<br />
script_value = script_value:gsub ('^%l%l%s*:%s*', ''); -- strip prefix from script<br />
-- is prefix one of these language codes?<br />
if in_array (lang, cfg.script_lang_codes) then<br />
add_prop_cat ('script_with_name', {name, lang})<br />
else<br />
add_prop_cat ('script')<br />
end<br />
lang = ' lang="' .. lang .. '" '; -- convert prefix into a lang attribute<br />
else<br />
lang = ''; -- invalid so set lang to empty string<br />
end<br />
end<br />
script_value = substitute (cfg.presentation['bdi'], {lang, script_value}); -- isolate in case script is rtl<br />
<br />
return script_value;<br />
end<br />
<br />
<br />
--[[--------------------------< S C R I P T _ C O N C A T E N A T E >------------------------------------------<br />
<br />
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script value has been <br />
wrapped in <bdi> tags.<br />
]]<br />
<br />
local function script_concatenate (title, script)<br />
if is_set (script) then<br />
script = format_script_value (script); -- <bdi> tags, lang atribute, categorization, etc; returns empty string on error<br />
if is_set (script) then<br />
title = title .. ' ' .. script; -- concatenate title and script title<br />
end<br />
end<br />
return title;<br />
end<br />
<br />
<br />
--[[--------------------------< W R A P _ M S G >--------------------------------------------------------------<br />
<br />
Applies additional message text to various parameter values. Supplied string is wrapped using a message_list<br />
configuration taking one argument. Supports lower case text for {{citation}} templates. Additional text taken<br />
from citation_config.messages - the reason this function is similar to but separate from wrap_style().<br />
<br />
]]<br />
<br />
local function wrap_msg (key, str, lower)<br />
if not is_set( str ) then<br />
return "";<br />
end<br />
if true == lower then<br />
local msg;<br />
msg = cfg.messages[key]:lower(); -- set the message to lower case before <br />
return substitute( msg, str ); -- including template text<br />
else<br />
return substitute( cfg.messages[key], str );<br />
end <br />
end<br />
<br />
<br />
--[[--------------------------< F O R M A T _ C H A P T E R _ T I T L E >--------------------------------------<br />
<br />
Format the four chapter parameters: |script-chapter=, |chapter=, |trans-chapter=, and |chapter-url= into a single Chapter meta-<br />
parameter (chapter_url_source used for error messages).<br />
<br />
]]<br />
<br />
local function format_chapter_title (scriptchapter, chapter, transchapter, chapterurl, chapter_url_source, no_quotes, access)<br />
local chapter_error = '';<br />
<br />
if not is_set (chapter) then<br />
chapter = ''; -- to be safe for concatenation<br />
else<br />
if false == no_quotes then<br />
chapter = kern_quotes (chapter); -- if necessary, separate chapter title's leading and trailing quote marks from Module provided quote marks<br />
chapter = wrap_style ('quoted-title', chapter);<br />
end<br />
end<br />
<br />
chapter = script_concatenate (chapter, scriptchapter) -- <bdi> tags, lang atribute, categorization, etc; must be done after title is wrapped<br />
<br />
if is_set (chapterurl) then<br />
chapter = external_link (chapterurl, chapter, chapter_url_source, access); -- adds bare_url_missing_title error if appropriate<br />
end<br />
<br />
if is_set (transchapter) then<br />
transchapter = wrap_style ('trans-quoted-title', transchapter);<br />
if is_set (chapter) then<br />
chapter = chapter .. ' ' .. transchapter;<br />
else -- here when transchapter without chapter or script-chapter<br />
chapter = transchapter; -- <br />
chapter_error = ' ' .. set_error ('trans_missing_title', {'chapter'});<br />
end<br />
end<br />
<br />
-- if is_set (chapterurl) then<br />
-- chapter = external_link (chapterurl, chapter, chapter_url_source, access); -- adds bare_url_missing_title error if appropriate<br />
-- end<br />
<br />
return chapter .. chapter_error;<br />
end<br />
<br />
<br />
--[[--------------------------< H A S _ I N V I S I B L E _ C H A R S >----------------------------------------<br />
<br />
This function searches a parameter's value for nonprintable or invisible characters. The search stops at the<br />
first match.<br />
<br />
This function will detect the visible replacement character when it is part of the wikisource.<br />
<br />
Detects but ignores nowiki and math stripmarkers. Also detects other named stripmarkers (gallery, math, pre, ref)<br />
and identifies them with a slightly different error message. See also coins_cleanup().<br />
<br />
Detects but ignores the character pattern that results from the transclusion of {{'}} templates.<br />
<br />
Output of this function is an error message that identifies the character or the Unicode group, or the stripmarker<br />
that was detected along with its position (or, for multi-byte characters, the position of its first byte) in the<br />
parameter value.<br />
<br />
]]<br />
<br />
local function has_invisible_chars (param, v)<br />
local position = ''; -- position of invisible char or starting position of stripmarker<br />
local dummy; -- end of matching string; not used but required to hold end position when a capture is returned<br />
local capture; -- used by stripmarker detection to hold name of the stripmarker<br />
local i=1;<br />
local stripmarker, apostrophe;<br />
<br />
capture = string.match (v, '[%w%p ]*'); -- Test for values that are simple ASCII text and bypass other tests if true<br />
if capture == v then -- if same there are no unicode characters<br />
return;<br />
end<br />
<br />
while cfg.invisible_chars[i] do<br />
local char=cfg.invisible_chars[i][1] -- the character or group name<br />
local pattern=cfg.invisible_chars[i][2] -- the pattern used to find it<br />
position, dummy, capture = mw.ustring.find (v, pattern) -- see if the parameter value contains characters that match the pattern<br />
<br />
if position and (char == 'zero width joiner') then -- if we found a zero width joiner character<br />
if mw.ustring.find (v, cfg.indic_script) then -- its ok if one of the indic scripts<br />
position = nil; -- unset position<br />
end<br />
end<br />
<br />
if position then<br />
if 'nowiki' == capture or 'math' == capture then -- nowiki, math stripmarker (not an error condition)<br />
stripmarker = true; -- set a flag<br />
elseif true == stripmarker and 'delete' == char then -- because stripmakers begin and end with the delete char, assume that we've found one end of a stripmarker<br />
position = nil; -- unset<br />
else<br />
local err_msg;<br />
if capture then<br />
err_msg = capture .. ' ' .. char;<br />
else<br />
err_msg = char .. ' ' .. 'character';<br />
end<br />
<br />
table.insert( z.message_tail, { set_error( 'invisible_char', {err_msg, wrap_style ('parameter', param), position}, true ) } ); -- add error message<br />
return; -- and done with this parameter<br />
end<br />
end<br />
i=i+1; -- bump our index<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< A R G U M E N T _ W R A P P E R >----------------------------------------------<br />
<br />
Argument wrapper. This function provides support for argument mapping defined in the configuration file so that<br />
multiple names can be transparently aliased to single internal variable.<br />
<br />
]]<br />
<br />
local function argument_wrapper( args )<br />
local origin = {};<br />
<br />
return setmetatable({<br />
ORIGIN = function( self, k )<br />
local dummy = self[k]; --force the variable to be loaded.<br />
return origin[k];<br />
end<br />
},<br />
{<br />
__index = function ( tbl, k )<br />
if origin[k] ~= nil then<br />
return nil;<br />
end<br />
<br />
local args, list, v = args, cfg.aliases[k];<br />
<br />
if type( list ) == 'table' then<br />
v, origin[k] = select_one( args, list, 'redundant_parameters' );<br />
if origin[k] == nil then<br />
origin[k] = ''; -- Empty string, not nil<br />
end<br />
elseif list ~= nil then<br />
v, origin[k] = args[list], list;<br />
else<br />
-- maybe let through instead of raising an error?<br />
-- v, origin[k] = args[k], k;<br />
error( cfg.messages['unknown_argument_map'] );<br />
end<br />
<br />
-- Empty strings, not nil;<br />
if v == nil then<br />
v = cfg.defaults[k] or '';<br />
origin[k] = '';<br />
end<br />
<br />
tbl = rawset( tbl, k, v );<br />
return v;<br />
end,<br />
});<br />
end<br />
<br />
<br />
--[[--------------------------< V A L I D A T E >--------------------------------------------------------------<br />
<br />
Looks for a parameter's name in one of several whitelists.<br />
<br />
Parameters in the whitelist can have three values:<br />
true - active, supported parameters<br />
false - deprecated, supported parameters<br />
nil - unsupported parameters<br />
<br />
]]<br />
<br />
local function validate( name, cite_class )<br />
local name = tostring( name );<br />
local state;<br />
<br />
if in_array (cite_class, {'arxiv', 'biorxiv', 'citeseerx'}) then -- limited parameter sets allowed for these templates<br />
state = whitelist.limited_basic_arguments[ name ];<br />
if true == state then return true; end -- valid actively supported parameter<br />
if false == state then<br />
deprecated_parameter (name); -- parameter is deprecated but still supported<br />
return true;<br />
end<br />
<br />
if 'arxiv' == cite_class then -- basic parameters unique to these templates<br />
state = whitelist.arxiv_basic_arguments[name];<br />
end<br />
if 'biorxiv' == cite_class then<br />
state = whitelist.biorxiv_basic_arguments[name];<br />
end<br />
if 'citeseerx' == cite_class then<br />
state = whitelist.citeseerx_basic_arguments[name];<br />
end<br />
<br />
if true == state then return true; end -- valid actively supported parameter<br />
if false == state then<br />
deprecated_parameter (name); -- parameter is deprecated but still supported<br />
return true;<br />
end<br />
-- limited enumerated parameters list<br />
name = name:gsub("%d+", "#" ); -- replace digit(s) with # (last25 becomes last#) (mw.ustring because non-Western 'local' digits)<br />
state = whitelist.limited_numbered_arguments[ name ];<br />
if true == state then return true; end -- valid actively supported parameter<br />
if false == state then<br />
deprecated_parameter (name); -- parameter is deprecated but still supported<br />
return true;<br />
end<br />
<br />
return false; -- not supported because not found or name is set to nil<br />
end -- end limited parameter-set templates<br />
<br />
state = whitelist.basic_arguments[ name ]; -- all other templates; all normal parameters allowed<br />
<br />
if true == state then return true; end -- valid actively supported parameter<br />
if false == state then<br />
deprecated_parameter (name); -- parameter is deprecated but still supported<br />
return true;<br />
end<br />
-- all enumerated parameters allowed<br />
name = name:gsub("%d+", "#" ); -- replace digit(s) with # (last25 becomes last#) (mw.ustring because non-Western 'local' digits)<br />
state = whitelist.numbered_arguments[ name ];<br />
<br />
if true == state then return true; end -- valid actively supported parameter<br />
if false == state then<br />
deprecated_parameter (name); -- parameter is deprecated but still supported<br />
return true;<br />
end<br />
<br />
return false; -- not supported because not found or name is set to nil<br />
end<br />
<br />
<br />
--[[--------------------------< N O W R A P _ D A T E >--------------------------------------------------------<br />
<br />
When date is YYYY-MM-DD format wrap in nowrap span: <span ...>YYYY-MM-DD</span>. When date is DD MMMM YYYY or is<br />
MMMM DD, YYYY then wrap in nowrap span: <span ...>DD MMMM</span> YYYY or <span ...>MMMM DD,</span> YYYY<br />
<br />
DOES NOT yet support MMMM YYYY or any of the date ranges.<br />
<br />
]]<br />
<br />
local function nowrap_date (date)<br />
local cap='';<br />
local cap2='';<br />
<br />
if date:match("^%d%d%d%d%-%d%d%-%d%d$") then<br />
date = substitute (cfg.presentation['nowrap1'], date);<br />
<br />
elseif date:match("^%a+%s*%d%d?,%s+%d%d%d%d$") or date:match ("^%d%d?%s*%a+%s+%d%d%d%d$") then<br />
cap, cap2 = string.match (date, "^(.*)%s+(%d%d%d%d)$");<br />
date = substitute (cfg.presentation['nowrap2'], {cap, cap2});<br />
end<br />
<br />
return date;<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ T I T L E T Y P E >----------------------------------------------------<br />
<br />
This function sets default title types (equivalent to the citation including |type=<default value>) for those templates that have defaults.<br />
Also handles the special case where it is desirable to omit the title type from the rendered citation (|type=none).<br />
<br />
]]<br />
<br />
local function set_titletype (cite_class, title_type)<br />
if is_set(title_type) then<br />
if "none" == title_type then<br />
title_type = ""; -- if |type=none then type parameter not displayed<br />
end<br />
return title_type; -- if |type= has been set to any other value use that value<br />
end<br />
<br />
return cfg.title_types [cite_class] or ''; -- set template's default title type; else empty string for concatenation<br />
end<br />
<br />
<br />
--[[--------------------------< H Y P H E N _ T O _ D A S H >--------------------------------------------------<br />
<br />
Converts a hyphen to a dash<br />
<br />
]]<br />
<br />
local function hyphen_to_dash( str )<br />
if not is_set(str) or str:match( "[%[%]{}<>]" ) ~= nil then<br />
return str;<br />
end <br />
return str:gsub( '-', '–' );<br />
end<br />
<br />
<br />
--[[--------------------------< S A F E _ J O I N >------------------------------------------------------------<br />
<br />
Joins a sequence of strings together while checking for duplicate separation characters.<br />
<br />
]]<br />
<br />
local function safe_join( tbl, duplicate_char )<br />
local f = {}; -- create a function table appropriate to type of 'dupicate character'<br />
if 1 == #duplicate_char then -- for single byte ascii characters use the string library functions<br />
f.gsub=string.gsub<br />
f.match=string.match<br />
f.sub=string.sub<br />
else -- for multi-byte characters use the ustring library functions<br />
f.gsub=mw.ustring.gsub<br />
f.match=mw.ustring.match<br />
f.sub=mw.ustring.sub<br />
end<br />
<br />
local str = ''; -- the output string<br />
local comp = ''; -- what does 'comp' mean?<br />
local end_chr = '';<br />
local trim;<br />
for _, value in ipairs( tbl ) do<br />
if value == nil then value = ''; end<br />
<br />
if str == '' then -- if output string is empty<br />
str = value; -- assign value to it (first time through the loop)<br />
elseif value ~= '' then<br />
if value:sub(1,1) == '<' then -- Special case of values enclosed in spans and other markup.<br />
comp = value:gsub( "%b<>", "" ); -- remove html markup (<span>string</span> -> string)<br />
else<br />
comp = value;<br />
end<br />
-- typically duplicate_char is sepc<br />
if f.sub(comp, 1,1) == duplicate_char then -- is first character same as duplicate_char? why test first character?<br />
-- Because individual string segments often (always?) begin with terminal punct for the<br />
-- preceding segment: 'First element' .. 'sepc next element' .. etc?<br />
trim = false;<br />
end_chr = f.sub(str, -1,-1); -- get the last character of the output string<br />
-- str = str .. "<HERE(enchr=" .. end_chr.. ")" -- debug stuff?<br />
if end_chr == duplicate_char then -- if same as separator<br />
str = f.sub(str, 1,-2); -- remove it<br />
elseif end_chr == "'" then -- if it might be wikimarkup<br />
if f.sub(str, -3,-1) == duplicate_char .. "''" then -- if last three chars of str are sepc'' <br />
str = f.sub(str, 1, -4) .. "''"; -- remove them and add back ''<br />
elseif f.sub(str, -5,-1) == duplicate_char .. "]]''" then -- if last five chars of str are sepc]]'' <br />
trim = true; -- why? why do this and next differently from previous?<br />
elseif f.sub(str, -4,-1) == duplicate_char .. "]''" then -- if last four chars of str are sepc]'' <br />
trim = true; -- same question<br />
end<br />
elseif end_chr == "]" then -- if it might be wikimarkup<br />
if f.sub(str, -3,-1) == duplicate_char .. "]]" then -- if last three chars of str are sepc]] wikilink <br />
trim = true;<br />
elseif f.sub(str, -3,-1) == duplicate_char .. '"]' then -- if last three chars of str are sepc"] quoted external link <br />
trim = true;<br />
elseif f.sub(str, -2,-1) == duplicate_char .. "]" then -- if last two chars of str are sepc] external link<br />
trim = true;<br />
elseif f.sub(str, -4,-1) == duplicate_char .. "'']" then -- normal case when |url=something & |title=Title.<br />
trim = true;<br />
end<br />
elseif end_chr == " " then -- if last char of output string is a space<br />
if f.sub(str, -2,-1) == duplicate_char .. " " then -- if last two chars of str are <sepc><space><br />
str = f.sub(str, 1,-3); -- remove them both<br />
end<br />
end<br />
<br />
if trim then<br />
if value ~= comp then -- value does not equal comp when value contains html markup<br />
local dup2 = duplicate_char;<br />
if f.match(dup2, "%A" ) then dup2 = "%" .. dup2; end -- if duplicate_char not a letter then escape it<br />
<br />
value = f.gsub(value, "(%b<>)" .. dup2, "%1", 1 ) -- remove duplicate_char if it follows html markup<br />
else<br />
value = f.sub(value, 2, -1 ); -- remove duplicate_char when it is first character<br />
end<br />
end<br />
end<br />
str = str .. value; --add it to the output string<br />
end<br />
end<br />
return str;<br />
end<br />
<br />
<br />
--[[--------------------------< I S _ S U F F I X >------------------------------------------------------------<br />
<br />
returns true is suffix is properly formed Jr, Sr, or ordinal in the range 2–9. Puncutation not allowed.<br />
<br />
]]<br />
<br />
local function is_suffix (suffix)<br />
if in_array (suffix, {'Jr', 'Sr', '2nd', '3rd'}) or suffix:match ('^%dth$') then<br />
return true;<br />
end<br />
return false;<br />
end<br />
<br />
<br />
--[[--------------------------< I S _ G O O D _ V A N C _ N A M E >--------------------------------------------<br />
<br />
For Vancouver Style, author/editor names are supposed to be rendered in Latin (read ASCII) characters. When a name<br />
uses characters that contain diacritical marks, those characters are to converted to the corresponding Latin character.<br />
When a name is written using a non-Latin alphabet or logogram, that name is to be transliterated into Latin characters.<br />
These things are not currently possible in this module so are left to the editor to do.<br />
<br />
This test allows |first= and |last= names to contain any of the letters defined in the four Unicode Latin character sets<br />
[http://www.unicode.org/charts/PDF/U0000.pdf C0 Controls and Basic Latin] 0041–005A, 0061–007A<br />
[http://www.unicode.org/charts/PDF/U0080.pdf C1 Controls and Latin-1 Supplement] 00C0–00D6, 00D8–00F6, 00F8–00FF<br />
[http://www.unicode.org/charts/PDF/U0100.pdf Latin Extended-A] 0100–017F<br />
[http://www.unicode.org/charts/PDF/U0180.pdf Latin Extended-B] 0180–01BF, 01C4–024F<br />
<br />
|lastn= also allowed to contain hyphens, spaces, and apostrophes. (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)<br />
|firstn= also allowed to contain hyphens, spaces, apostrophes, and periods<br />
<br />
This original test:<br />
if nil == mw.ustring.find (last, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%']*$") or nil == mw.ustring.find (first, "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%'%.]+[2-6%a]*$") then<br />
was written ouside of the code editor and pasted here because the code editor gets confused between character insertion point and cursor position.<br />
The test has been rewritten to use decimal character escape sequence for the individual bytes of the unicode characters so that it is not necessary<br />
to use an external editor to maintain this code.<br />
<br />
\195\128-\195\150 – À-Ö (U+00C0–U+00D6 – C0 controls)<br />
\195\152-\195\182 – Ø-ö (U+00D8-U+00F6 – C0 controls)<br />
\195\184-\198\191 – ø-ƿ (U+00F8-U+01BF – C0 controls, Latin extended A & B)<br />
\199\132-\201\143 – DŽ-ɏ (U+01C4-U+024F – Latin extended B)<br />
<br />
]]<br />
<br />
local function is_good_vanc_name (last, first)<br />
local first, suffix = first:match ('(.-),?%s*([%dJS][%drndth]+)%.?$') or first; -- if first has something that looks like a generational suffix, get it<br />
<br />
if is_set (suffix) then<br />
if not is_suffix (suffix) then<br />
add_vanc_error ('suffix');<br />
return false; -- not a name with an appropriate suffix<br />
end<br />
end<br />
if nil == mw.ustring.find (last, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%']*$") or<br />
nil == mw.ustring.find (first, "^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%'%.]*$") then<br />
add_vanc_error ('non-Latin character');<br />
return false; -- not a string of latin characters; Vancouver requires Romanization<br />
end;<br />
return true;<br />
end<br />
<br />
<br />
--[[--------------------------< R E D U C E _ T O _ I N I T I A L S >------------------------------------------<br />
<br />
Attempts to convert names to initials in support of |name-list-format=vanc. <br />
<br />
Names in |firstn= may be separated by spaces or hyphens, or for initials, a period. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35062/.<br />
<br />
Vancouver style requires family rank designations (Jr, II, III, etc) to be rendered as Jr, 2nd, 3rd, etc. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35085/.<br />
This code only accepts and understands generational suffix in the Vancouver format because Roman numerals look like, and can be mistaken for, initials.<br />
<br />
This function uses ustring functions because firstname initials may be any of the unicode Latin characters accepted by is_good_vanc_name ().<br />
<br />
]]<br />
<br />
local function reduce_to_initials(first)<br />
local name, suffix = mw.ustring.match(first, "^(%u+) ([%dJS][%drndth]+)$");<br />
<br />
if not name then -- if not initials and a suffix<br />
name = mw.ustring.match(first, "^(%u+)$"); -- is it just intials?<br />
end<br />
<br />
if name then -- if first is initials with or without suffix<br />
if 3 > mw.ustring.len (name) then -- if one or two initials<br />
if suffix then -- if there is a suffix<br />
if is_suffix (suffix) then -- is it legitimate?<br />
return first; -- one or two initials and a valid suffix so nothing to do<br />
else<br />
add_vanc_error ('suffix'); -- one or two initials with invalid suffix so error message<br />
return first; -- and return first unmolested<br />
end<br />
else<br />
return first; -- one or two initials without suffix; nothing to do<br />
end<br />
end<br />
end -- if here then name has 3 or more uppercase letters so treat them as a word<br />
<br />
<br />
local initials, names = {}, {}; -- tables to hold name parts and initials<br />
local i = 1; -- counter for number of initials<br />
<br />
names = mw.text.split (first, '[%s,]+'); -- split into a table of names and possible suffix<br />
<br />
while names[i] do -- loop through the table<br />
if 1 < i and names[i]:match ('[%dJS][%drndth]+%.?$') then -- if not the first name, and looks like a suffix (may have trailing dot)<br />
names[i] = names[i]:gsub ('%.', ''); -- remove terminal dot if present<br />
if is_suffix (names[i]) then -- if a legitimate suffix<br />
table.insert (initials, ' ' .. names[i]); -- add a separator space, insert at end of initials table<br />
break; -- and done because suffix must fall at the end of a name<br />
end -- no error message if not a suffix; possibly because of Romanization<br />
end<br />
if 3 > i then<br />
table.insert (initials, mw.ustring.sub(names[i],1,1)); -- insert the intial at end of initials table<br />
end<br />
i = i+1; -- bump the counter<br />
end<br />
<br />
return table.concat(initials) -- Vancouver format does not include spaces.<br />
end<br />
<br />
<br />
--[[--------------------------< L I S T _ P E O P L E >-------------------------------------------------------<br />
<br />
Formats a list of people (e.g. authors / editors) <br />
<br />
]]<br />
<br />
local function list_people(control, people, etal)<br />
local sep;<br />
local namesep;<br />
local format = control.format<br />
local maximum = control.maximum<br />
local lastauthoramp = control.lastauthoramp;<br />
local text = {}<br />
<br />
if 'vanc' == format then -- Vancouver-like author/editor name styling?<br />
sep = cfg.presentation['sep_nl_vanc']; -- name-list separator between authors is a comma<br />
namesep = cfg.presentation['sep_name_vanc']; -- last/first separator is a space<br />
else<br />
sep = cfg.presentation['sep_nl']; -- name-list separator between authors is a semicolon<br />
namesep = cfg.presentation['sep_name']; -- last/first separator is <comma><space><br />
end<br />
<br />
if sep:sub(-1,-1) ~= " " then sep = sep .. " " end<br />
if is_set (maximum) and maximum < 1 then return "", 0; end -- returned 0 is for EditorCount; not used for authors<br />
<br />
for i,person in ipairs(people) do<br />
if is_set(person.last) then<br />
local mask = person.mask<br />
local one<br />
local sep_one = sep;<br />
if is_set (maximum) and i > maximum then<br />
etal = true;<br />
break;<br />
elseif (mask ~= nil) then<br />
local n = tonumber(mask)<br />
if (n ~= nil) then<br />
one = string.rep("&mdash;",n)<br />
else<br />
one = mask;<br />
sep_one = " ";<br />
end<br />
else<br />
one = person.last<br />
local first = person.first<br />
if is_set(first) then<br />
if ( "vanc" == format ) then -- if vancouver format<br />
one = one:gsub ('%.', ''); -- remove periods from surnames (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)<br />
if not person.corporate and is_good_vanc_name (one, first) then -- and name is all Latin characters; corporate authors not tested<br />
first = reduce_to_initials(first) -- attempt to convert first name(s) to initials<br />
end<br />
end<br />
one = one .. namesep .. first;<br />
end<br />
if is_set(person.link) and person.link ~= control.page_name then<br />
one = make_wikilink (person.link, one); -- link author/editor if this page is not the author's/editor's page<br />
end<br />
end<br />
table.insert( text, one )<br />
table.insert( text, sep_one )<br />
end<br />
end<br />
<br />
local count = #text / 2; -- (number of names + number of separators) divided by 2<br />
if count > 0 then <br />
if count > 1 and is_set(lastauthoramp) and not etal then<br />
text[#text-2] = " & "; -- replace last separator with ampersand text<br />
end<br />
text[#text] = nil; -- erase the last separator<br />
end<br />
<br />
local result = table.concat(text) -- construct list<br />
if etal and is_set (result) then -- etal may be set by |display-authors=etal but we might not have a last-first list<br />
result = result .. sep .. ' ' .. cfg.messages['et al']; -- we've go a last-first list and etal so add et al.<br />
end<br />
<br />
return result, count<br />
end<br />
<br />
<br />
--[[--------------------------< A N C H O R _ I D >------------------------------------------------------------<br />
<br />
Generates a CITEREF anchor ID if we have at least one name or a date. Otherwise returns an empty string.<br />
<br />
namelist is one of the contributor-, author-, or editor-name lists chosen in that order. year is Year or anchor_year.<br />
<br />
]]<br />
local function anchor_id (namelist, year)<br />
local names={}; -- a table for the one to four names and year<br />
for i,v in ipairs (namelist) do -- loop through the list and take up to the first four last names<br />
names[i] = v.last <br />
if i == 4 then break end -- if four then done<br />
end<br />
table.insert (names, year); -- add the year at the end<br />
local id = table.concat(names); -- concatenate names and year for CITEREF id<br />
if is_set (id) then -- if concatenation is not an empty string<br />
return "CITEREF" .. id; -- add the CITEREF portion<br />
else<br />
return ''; -- return an empty string; no reason to include CITEREF id in this citation<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< N A M E _ H A S _ E T A L >----------------------------------------------------<br />
<br />
Evaluates the content of author and editor name parameters for variations on the theme of et al. If found,<br />
the et al. is removed, a flag is set to true and the function returns the modified name and the flag.<br />
<br />
This function never sets the flag to false but returns it's previous state because it may have been set by<br />
previous passes through this function or by the parameters |display-authors=etal or |display-editors=etal<br />
<br />
]]<br />
<br />
local function name_has_etal (name, etal, nocat)<br />
<br />
if is_set (name) then -- name can be nil in which case just return<br />
local etal_pattern = "[;,]? *[\"']*%f[%a][Ee][Tt] *[Aa][Ll][%.\"']*$" -- variations on the 'et al' theme<br />
local others_pattern = "[;,]? *%f[%a]and [Oo]thers"; -- and alternate to et al.<br />
<br />
if name:match (etal_pattern) then -- variants on et al.<br />
name = name:gsub (etal_pattern, ''); -- if found, remove<br />
etal = true; -- set flag (may have been set previously here or by |display-authors=etal)<br />
if not nocat then -- no categorization for |vauthors=<br />
add_maint_cat ('etal'); -- and add a category if not already added<br />
end<br />
elseif name:match (others_pattern) then -- if not 'et al.', then 'and others'?<br />
name = name:gsub (others_pattern, ''); -- if found, remove<br />
etal = true; -- set flag (may have been set previously here or by |display-authors=etal)<br />
if not nocat then -- no categorization for |vauthors=<br />
add_maint_cat ('etal'); -- and add a category if not already added<br />
end<br />
end<br />
end<br />
return name, etal; -- <br />
end<br />
<br />
<br />
--[[--------------------------< N A M E _ H A S _ E D _ M A R K U P >------------------------------------------<br />
<br />
Evaluates the content of author and editor parameters for extranious editor annotations: ed, ed., eds, (Ed.), etc.<br />
These annotation do not belong in author parameters and are redundant in editor parameters. If found, the function<br />
adds the editor markup maintenance category.<br />
<br />
]]<br />
<br />
local function name_has_ed_markup (name, list_name)<br />
local _, pattern;<br />
local patterns = { -- these patterns match annotations at end of name<br />
'%f[%(%[][%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]?$', -- (ed) or (eds): leading '(', case insensitive 'ed', optional 's', '.' and/or ')'<br />
'[,%.%s]%f[e]eds?%.?$', -- ed or eds: without '('or ')'; case sensitive (ED could be initials Ed could be name)<br />
'%f[%(%[][%(%[]%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?%s*[%)%]]?$', -- (editor) or (editors): leading '(', case insensitive, optional '.' and/or ')'<br />
'[,%.%s]%f[Ee][Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?$', -- editor or editors: without '('or ')'; case insensitive<br />
<br />
-- these patterns match annotations at beginning of name<br />
'^eds?[%.,;]', -- ed. or eds.: lower case only, optional 's', requires '.'<br />
'^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]', -- (ed) or (eds): also sqare brackets, case insensitive, optional 's', '.'<br />
'^[%(%[]?%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%A', -- (editor or (editors: also sq brackets, case insensitive, optional brackets, 's'<br />
'^[%(%[]?%s*[Ee][Dd][Ii][Tt][Ee][Dd]%A', -- (edited: also sq brackets, case insensitive, optional brackets<br />
}<br />
<br />
if is_set (name) then<br />
for _, pattern in ipairs (patterns) do -- spin through patterns table and<br />
if name:match (pattern) then<br />
add_maint_cat ('extra_text_names', cfg.special_case_translation [list_name]); -- add a maint cat for this template<br />
break;<br />
end<br />
end<br />
end<br />
return name; -- and done<br />
end<br />
<br />
<br />
--[[--------------------------< N A M E _ H A S _ M U L T _ N A M E S >----------------------------------------<br />
<br />
Evaluates the content of author and editor (surnames only) parameters for multiple names. Multiple names are<br />
indicated if there is more than one comma and or semicolon. If found, the function adds the multiple name<br />
(author or editor) maintenance category.<br />
<br />
]]<br />
<br />
local function name_has_mult_names (name, list_name)<br />
local count, _;<br />
if is_set (name) then<br />
_, count = name:gsub ('[;,]', ''); -- count the number of separator-like characters<br />
<br />
if 1 < count then -- param could be |author= or |editor= so one separator character is acceptable<br />
add_maint_cat ('mult_names', cfg.special_case_translation [list_name]); -- more than one separator indicates multiple names so add a maint cat for this template<br />
end<br />
end<br />
return name; -- and done<br />
end<br />
<br />
<br />
--[[--------------------------< N A M E _ C H E C K S >--------------------------------------------------------<br />
This function calls various name checking functions used to validate the content of the various name-holding<br />
parameters.<br />
<br />
]]<br />
<br />
local function name_checks (last, first, list_name)<br />
if is_set (last) then<br />
if last:match ('^%(%(.*%)%)$') then -- if wrapped in doubled parentheses, accept as written <br />
last = last:match ('^%(%((.*)%)%)$'); -- strip parens<br />
else<br />
last = name_has_mult_names (last, list_name); -- check for multiple names in the parameter (last only)<br />
last = name_has_ed_markup (last, list_name); -- check for extraneous 'editor' annotation<br />
end<br />
end<br />
if is_set (first) then<br />
if first:match ('^%(%(.*%)%)$') then -- if wrapped in doubled parentheses, accept as written <br />
first = first:match ('^%(%((.*)%)%)$'); -- strip parens<br />
else<br />
first = name_has_ed_markup (first, list_name); -- check for extraneous 'editor' annotation<br />
end<br />
end<br />
return last, first; -- done<br />
end<br />
<br />
<br />
--[[--------------------------< E X T R A C T _ N A M E S >----------------------------------------------------<br />
Gets name list from the input arguments<br />
<br />
Searches through args in sequential order to find |lastn= and |firstn= parameters (or their aliases), and their matching link and mask parameters.<br />
Stops searching when both |lastn= and |firstn= are not found in args after two sequential attempts: found |last1=, |last2=, and |last3= but doesn't<br />
find |last4= and |last5= then the search is done.<br />
<br />
This function emits an error message when there is a |firstn= without a matching |lastn=. When there are 'holes' in the list of last names, |last1= and |last3=<br />
are present but |last2= is missing, an error message is emitted. |lastn= is not required to have a matching |firstn=.<br />
<br />
When an author or editor parameter contains some form of 'et al.', the 'et al.' is stripped from the parameter and a flag (etal) returned<br />
that will cause list_people() to add the static 'et al.' text from Module:Citation/CS1/Configuration. This keeps 'et al.' out of the <br />
template's metadata. When this occurs, the page is added to a maintenance category.<br />
<br />
]]<br />
<br />
local function extract_names(args, list_name)<br />
local names = {}; -- table of names<br />
local last; -- individual name components<br />
local first;<br />
local link;<br />
local mask;<br />
local i = 1; -- loop counter/indexer<br />
local n = 1; -- output table indexer<br />
local count = 0; -- used to count the number of times we haven't found a |last= (or alias for authors, |editor-last or alias for editors)<br />
local etal=false; -- return value set to true when we find some form of et al. in an author parameter<br />
<br />
local err_msg_list_name = list_name:match ("(%w+)List") .. 's list'; -- modify AuthorList or EditorList for use in error messages if necessary<br />
while true do<br />
last = select_one( args, cfg.aliases[list_name .. '-Last'], 'redundant_parameters', i ); -- search through args for name components beginning at 1<br />
first = select_one( args, cfg.aliases[list_name .. '-First'], 'redundant_parameters', i );<br />
link = select_one( args, cfg.aliases[list_name .. '-Link'], 'redundant_parameters', i );<br />
mask = select_one( args, cfg.aliases[list_name .. '-Mask'], 'redundant_parameters', i );<br />
<br />
last, etal = name_has_etal (last, etal, false); -- find and remove variations on et al.<br />
first, etal = name_has_etal (first, etal, false); -- find and remove variations on et al.<br />
last, first= name_checks (last, first, list_name); -- multiple names, extraneous annotation, etc checks<br />
<br />
if first and not last then -- if there is a firstn without a matching lastn<br />
table.insert( z.message_tail, { set_error( 'first_missing_last', {err_msg_list_name, i}, true ) } ); -- add this error message<br />
elseif not first and not last then -- if both firstn and lastn aren't found, are we done?<br />
count = count + 1; -- number of times we haven't found last and first<br />
if 2 <= count then -- two missing names and we give up<br />
break; -- normal exit or there is a two-name hole in the list; can't tell which<br />
end<br />
else -- we have last with or without a first<br />
link_title_ok (link, list_name:match ("(%w+)List"):lower() .. '-link' .. i, last, list_name:match ("(%w+)List"):lower() .. '-last' .. i); -- check for improper wikimarkup<br />
<br />
names[n] = {last = last, first = first, link = link, mask = mask, corporate=false}; -- add this name to our names list (corporate for |vauthors= only)<br />
n = n + 1; -- point to next location in the names table<br />
if 1 == count then -- if the previous name was missing<br />
table.insert( z.message_tail, { set_error( 'missing_name', {err_msg_list_name, i-1}, true ) } ); -- add this error message<br />
end<br />
count = 0; -- reset the counter, we're looking for two consecutive missing names<br />
end<br />
i = i + 1; -- point to next args location<br />
end<br />
<br />
return names, etal; -- all done, return our list of names<br />
end<br />
<br />
<br />
--[[--------------------------< G E T _ I S O 6 3 9 _ C O D E >------------------------------------------------<br />
<br />
Validates language names provided in |language= parameter if not an ISO639-1 or 639-2 code.<br />
<br />
Returns the language name and associated two- or three-character code. Because case of the source may be incorrect<br />
or different from the case that WikiMedia uses, the name comparisons are done in lower case and when a match is<br />
found, the Wikimedia version (assumed to be correct) is returned along with the code. When there is no match, we<br />
return the original language name string.<br />
<br />
mw.language.fetchLanguageNames(<local wiki language>, 'all') returns a list of languages that in some cases may include<br />
extensions. For example, code 'cbk-zam' and its associated name 'Chavacano de Zamboanga' (MediaWiki does not support<br />
code 'cbk' or name 'Chavacano'. Most (all?) of these languages are not used a 'language' codes per se, rather they<br />
are used as sub-domain names: cbk-zam.wikipedia.org. These names can be found (for the time being) at<br />
https://phabricator.wikimedia.org/diffusion/ECLD/browse/master/LocalNames/LocalNamesEn.php<br />
<br />
Names but that are included in the list will be found if that name is provided in the |language= parameter. For example,<br />
if |language=Chavacano de Zamboanga, that name will be found with the associated code 'cbk-zam'. When names are found<br />
and the associated code is not two or three characters, this function returns only the Wikimedia language name.<br />
<br />
Adapted from code taken from Module:Check ISO 639-1.<br />
<br />
]]<br />
<br />
local function get_iso639_code (lang, this_wiki_code)<br />
if cfg.lang_name_remap[lang:lower()] then -- if there is a remapped name (because MediaWiki uses something that we don't think is correct)<br />
return cfg.lang_name_remap[lang:lower()][1], cfg.lang_name_remap[lang:lower()][2]; -- for this language 'name', return a possibly new name and appropriate code<br />
end<br />
<br />
local languages = mw.language.fetchLanguageNames(this_wiki_code, 'all') -- get a list of language names known to Wikimedia<br />
-- ('all' is required for North Ndebele, South Ndebele, and Ojibwa)<br />
local langlc = mw.ustring.lower(lang); -- lower case version for comparisons<br />
<br />
for code, name in pairs(languages) do -- scan the list to see if we can find our language<br />
if langlc == mw.ustring.lower(name) then<br />
if 2 ~= code:len() and 3 ~= code:len() then -- two- or three-character codes only; extensions not supported<br />
return name; -- so return the name but not the code<br />
end<br />
return name, code; -- found it, return name to ensure proper capitalization and the the code<br />
end<br />
end<br />
return lang; -- not valid language; return language in original case and nil for the code<br />
end<br />
<br />
<br />
--[[--------------------------< L A N G U A G E _ P A R A M E T E R >------------------------------------------<br />
<br />
Gets language name from a provided two- or three-character ISO 639 code. If a code is recognized by MediaWiki,<br />
use the returned name; if not, then use the value that was provided with the language parameter.<br />
<br />
When |language= contains a recognized language (either code or name), the page is assigned to the category for<br />
that code: Category:Norwegian-language sources (no). For valid three-character code languages, the page is assigned<br />
to the single category for '639-2' codes: Category:CS1 ISO 639-2 language sources.<br />
<br />
Languages that are the same as the local wiki are not categorized. MediaWiki does not recognize three-character<br />
equivalents of two-character codes: code 'ar' is recognized bit code 'ara' is not.<br />
<br />
This function supports multiple languages in the form |language=nb, French, th where the language names or codes are<br />
separated from each other by commas.<br />
<br />
]]<br />
<br />
local function language_parameter (lang)<br />
local code; -- the two- or three-character language code<br />
local name; -- the language name<br />
local language_list = {}; -- table of language names to be rendered<br />
local names_table = {}; -- table made from the value assigned to |language=<br />
<br />
local this_wiki = mw.getContentLanguage(); -- get a language object for this wiki<br />
local this_wiki_code = this_wiki:getCode() -- get this wiki's language code<br />
local this_wiki_name = mw.language.fetchLanguageName(this_wiki_code, this_wiki_code); -- get this wiki's language name<br />
<br />
names_table = mw.text.split (lang, '%s*,%s*'); -- names should be a comma separated list<br />
<br />
for _, lang in ipairs (names_table) do -- reuse lang<br />
<br />
if lang:match ('^%a%a%-') then -- strip ietf language tags from code; TODO: is there a need to support 3-char with tag?<br />
lang = lang:match ('(%a%a)%-') -- keep only 639-1 code portion to lang; TODO: do something with 3166 alpha 2 country code?<br />
end<br />
if 2 == lang:len() or 3 == lang:len() then -- if two-or three-character code<br />
name = mw.language.fetchLanguageName( lang:lower(), this_wiki_code); -- get language name if |language= is a proper code<br />
if not is_set (name) then<br />
name = cfg.lang_code_remap[lang]; -- not supported by MediaWiki; is it in remap?<br />
end<br />
end<br />
<br />
if is_set (name) then -- if |language= specified a valid code<br />
code = lang:lower(); -- save it<br />
else<br />
name, code = get_iso639_code (lang, this_wiki_code); -- attempt to get code from name (assign name here so that we are sure of proper capitalization)<br />
end<br />
<br />
if is_set (code) then -- only 2- or 3-character codes<br />
name = cfg.lang_code_remap[code] or name; -- override wikimedia when they misuse language codes/names<br />
<br />
if this_wiki_code ~= code then -- when the language is not the same as this wiki's language<br />
if 2 == code:len() then -- and is a two-character code<br />
add_prop_cat ('foreign_lang_source' .. code, {name, code}) -- categorize it<br />
else -- or is a recognized language (but has a three-character code)<br />
add_prop_cat ('foreign_lang_source_2' .. code, {code}) -- categorize it differently TODO: support mutliple three-character code categories per cs1|2 template<br />
end<br />
end<br />
else<br />
add_maint_cat ('unknown_lang'); -- add maint category if not already added<br />
end<br />
<br />
table.insert (language_list, name);<br />
name = ''; -- so we can reuse it<br />
end<br />
<br />
code = #language_list -- reuse code as number of languages in the list<br />
if 2 >= code then<br />
name = table.concat (language_list, ' and ') -- insert '<space>and<space>' between two language names<br />
elseif 2 < code then<br />
language_list[code] = 'and ' .. language_list[code]; -- prepend last name with 'and<space>'<br />
name = table.concat (language_list, ', ') -- and concatenate with '<comma><space>' separators<br />
end<br />
if this_wiki_name == name then<br />
return ''; -- if one language and that language is this wiki's return an empty string (no annotation)<br />
end<br />
return (" " .. wrap_msg ('language', name)); -- otherwise wrap with '(in ...)'<br />
--[[ TODO: should only return blank or name rather than full list<br />
so we can clean up the bunched parenthetical elements Language, Type, Format<br />
]]<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ C S 1 _ S T Y L E >----------------------------------------------------<br />
<br />
Set style settings for CS1 citation templates. Returns separator and postscript settings<br />
At en.wiki, for cs1:<br />
ps gets: '.'<br />
sep gets: '.'<br />
<br />
]]<br />
<br />
local function set_cs1_style (ps)<br />
if not is_set (ps) then -- unless explicitely set to something<br />
ps = cfg.presentation['ps_cs1']; -- terminate the rendered citation<br />
end<br />
return cfg.presentation['sep_cs1'], ps; -- element separator<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ C S 2 _ S T Y L E >----------------------------------------------------<br />
<br />
Set style settings for CS2 citation templates. Returns separator, postscript, ref settings<br />
At en.wiki, for cs2:<br />
ps gets: '' (empty string - no terminal punctuation)<br />
sep gets: ','<br />
<br />
]]<br />
<br />
local function set_cs2_style (ps, ref)<br />
if not is_set (ps) then -- if |postscript= has not been set, set cs2 default<br />
ps = cfg.presentation['ps_cs2']; -- terminate the rendered citation<br />
end<br />
if not is_set (ref) then -- if |ref= is not set<br />
ref = "harv"; -- set default |ref=harv<br />
end<br />
return cfg.presentation['sep_cs2'], ps, ref; -- element separator<br />
end<br />
<br />
<br />
--[[--------------------------< G E T _ S E T T I N G S _ F R O M _ C I T E _ C L A S S >----------------------<br />
<br />
When |mode= is not set or when its value is invalid, use config.CitationClass and parameter values to establish<br />
rendered style.<br />
<br />
]]<br />
<br />
local function get_settings_from_cite_class (ps, ref, cite_class)<br />
local sep;<br />
if (cite_class == "citation") then -- for citation templates (CS2)<br />
sep, ps, ref = set_cs2_style (ps, ref);<br />
else -- not a citation template so CS1<br />
sep, ps = set_cs1_style (ps);<br />
end<br />
<br />
return sep, ps, ref -- return them all<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ S T Y L E >------------------------------------------------------------<br />
<br />
Establish basic style settings to be used when rendering the citation. Uses |mode= if set and valid or uses<br />
config.CitationClass from the template's #invoke: to establish style.<br />
<br />
]]<br />
<br />
local function set_style (mode, ps, ref, cite_class)<br />
local sep;<br />
if 'cs2' == mode then -- if this template is to be rendered in CS2 (citation) style<br />
sep, ps, ref = set_cs2_style (ps, ref);<br />
elseif 'cs1' == mode then -- if this template is to be rendered in CS1 (cite xxx) style<br />
sep, ps = set_cs1_style (ps);<br />
else -- anything but cs1 or cs2<br />
sep, ps, ref = get_settings_from_cite_class (ps, ref, cite_class); -- get settings based on the template's CitationClass<br />
end<br />
if 'none' == ps:lower() then -- if assigned value is 'none' then<br />
ps = ''; -- set to empty string<br />
end<br />
<br />
return sep, ps, ref<br />
end<br />
<br />
<br />
--[=[-------------------------< I S _ P D F >------------------------------------------------------------------<br />
<br />
Determines if a url has the file extension that is one of the pdf file extensions used by [[MediaWiki:Common.css]] when<br />
applying the pdf icon to external links.<br />
<br />
returns true if file extension is one of the recognized extensions, else false<br />
<br />
]=]<br />
<br />
local function is_pdf (url)<br />
return url:match ('%.pdf$') or url:match ('%.PDF$') or url:match ('%.pdf[%?#]') or url:match ('%.PDF[%?#]');<br />
end<br />
<br />
<br />
--[[--------------------------< S T Y L E _ F O R M A T >------------------------------------------------------<br />
<br />
Applies css style to |format=, |chapter-format=, etc. Also emits an error message if the format parameter does<br />
not have a matching url parameter. If the format parameter is not set and the url contains a file extension that<br />
is recognized as a pdf document by MediaWiki's commons.css, this code will set the format parameter to (PDF) with<br />
the appropriate styling.<br />
<br />
]]<br />
<br />
local function style_format (format, url, fmt_param, url_param)<br />
if is_set (format) then<br />
format = wrap_style ('format', format); -- add leading space, parentheses, resize<br />
if not is_set (url) then<br />
format = format .. set_error( 'format_missing_url', {fmt_param, url_param} ); -- add an error message<br />
end<br />
elseif is_pdf (url) then -- format is not set so if url is a pdf file then<br />
format = wrap_style ('format', 'PDF'); -- set format to pdf<br />
else<br />
format = ''; -- empty string for concatenation<br />
end<br />
return format;<br />
end<br />
<br />
<br />
--[[--------------------------< G E T _ D I S P L A Y _ A U T H O R S _ E D I T O R S >------------------------<br />
<br />
Returns a number that defines the number of names displayed for author and editor name lists and a boolean flag<br />
to indicate when et al. should be appended to the name list.<br />
<br />
When the value assigned to |display-xxxxors= is a number greater than or equal to zero, return the number and<br />
the previous state of the 'etal' flag (false by default but may have been set to true if the name list contains<br />
some variant of the text 'et al.').<br />
<br />
When the value assigned to |display-xxxxors= is the keyword 'etal', return a number that is one greater than the<br />
number of authors in the list and set the 'etal' flag true. This will cause the list_people() to display all of<br />
the names in the name list followed by 'et al.'<br />
<br />
In all other cases, returns nil and the previous state of the 'etal' flag.<br />
<br />
inputs:<br />
max: A['DisplayAuthors'] or A['DisplayEditors']; a number or some flavor of etal<br />
count: #a or #e<br />
list_name: 'authors' or 'editors'<br />
etal: author_etal or editor_etal<br />
<br />
]]<br />
<br />
local function get_display_authors_editors (max, count, list_name, etal)<br />
if is_set (max) then<br />
if 'etal' == max:lower():gsub("[ '%.]", '') then -- the :gsub() portion makes 'etal' from a variety of 'et al.' spellings and stylings<br />
max = count + 1; -- number of authors + 1 so display all author name plus et al.<br />
etal = true; -- overrides value set by extract_names()<br />
elseif max:match ('^%d+$') then -- if is a string of numbers<br />
max = tonumber (max); -- make it a number<br />
if max >= count then -- if |display-xxxxors= value greater than or equal to number of authors/editors<br />
add_maint_cat ('disp_auth_ed', cfg.special_case_translation [list_name]);<br />
end<br />
else -- not a valid keyword or number<br />
table.insert( z.message_tail, { set_error( 'invalid_param_val', {'display-' .. list_name, max}, true ) } ); -- add error message<br />
max = nil; -- unset; as if |display-xxxxors= had not been set<br />
end<br />
end<br />
<br />
return max, etal;<br />
end<br />
<br />
<br />
--[[--------------------------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >------------------------------<br />
<br />
Adds page to Category:CS1 maint: extra text if |page= or |pages= has what appears to be some form of p. or pp. <br />
abbreviation in the first characters of the parameter content.<br />
<br />
check Page and Pages for extraneous p, p., pp, and pp. at start of parameter value:<br />
good pattern: '^P[^%.P%l]' matches when |page(s)= begins PX or P# but not Px where x and X are letters and # is a dgiit<br />
bad pattern: '^[Pp][Pp]' matches matches when |page(s)= begins pp or pP or Pp or PP<br />
<br />
]]<br />
<br />
local function extra_text_in_page_check (page)<br />
local good_pattern = '^P[^%.Pp]'; -- ok to begin with uppercase P: P7 (pg 7 of section P) but not p123 (page 123) TODO: add Gg for PG or Pg?<br />
local bad_pattern = '^[Pp]?[Pp]%.?[ %d]';<br />
<br />
if not page:match (good_pattern) and (page:match (bad_pattern) or page:match ('^[Pp]ages?')) then<br />
add_maint_cat ('extra_text');<br />
end<br />
end<br />
<br />
<br />
--[=[-------------------------< G E T _ V _ N A M E _ T A B L E >----------------------------------------------<br />
<br />
split apart a |vauthors= or |veditors= parameter. This function allows for corporate names, wrapped in doubled<br />
parentheses to also have commas; in the old version of the code, the doubled parnetheses were included in the<br />
rendered citation and in the metadata. Individual author names may be wikilinked<br />
<br />
|vauthors=Jones AB, [[E. B. White|White EB]], ((Black, Brown, and Co.))<br />
<br />
]=]<br />
<br />
local function get_v_name_table (vparam, output_table, output_link_table)<br />
local name_table = mw.text.split(vparam, "%s*,%s*"); -- names are separated by commas<br />
local wl_type, label, link; -- wl_type not used here; just a place holder<br />
<br />
local i = 1;<br />
<br />
while name_table[i] do<br />
if name_table[i]:match ('^%(%(.*[^%)][^%)]$') then -- first segment of corporate with one or more commas; this segment has the opening doubled parens<br />
local name = name_table[i];<br />
i=i+1; -- bump indexer to next segment<br />
while name_table[i] do<br />
name = name .. ', ' .. name_table[i]; -- concatenate with previous segments<br />
if name_table[i]:match ('^.*%)%)$') then -- if this table member has the closing doubled parens<br />
break; -- and done reassembling so<br />
end<br />
i=i+1; -- bump indexer<br />
end<br />
table.insert (output_table, name); -- and add corporate name to the output table<br />
table.insert (output_link_table, ''); -- no wikilink<br />
else<br />
wl_type, label, link = is_wikilink (name_table[i]); -- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]<br />
table.insert (output_table, label); -- add this name<br />
if 1 == wl_type then<br />
table.insert (output_link_table, label); -- simple wikilink [[D]]<br />
else<br />
table.insert (output_link_table, link); -- no wikilink or [[L|D]]; add this link if there is one, else empty string<br />
end<br />
end<br />
i = i+1;<br />
end <br />
return output_table;<br />
end<br />
<br />
<br />
--[[--------------------------< P A R S E _ V A U T H O R S _ V E D I T O R S >--------------------------------<br />
<br />
This function extracts author / editor names from |vauthors= or |veditors= and finds matching |xxxxor-maskn= and<br />
|xxxxor-linkn= in args. It then returns a table of assembled names just as extract_names() does.<br />
<br />
Author / editor names in |vauthors= or |veditors= must be in Vancouver system style. Corporate or institutional names<br />
may sometimes be required and because such names will often fail the is_good_vanc_name() and other format compliance<br />
tests, are wrapped in doubled paranethese ((corporate name)) to suppress the format tests.<br />
<br />
Supports generational suffixes Jr, 2nd, 3rd, 4th–6th.<br />
<br />
This function sets the vancouver error when a reqired comma is missing and when there is a space between an author's initials.<br />
<br />
]]<br />
<br />
local function parse_vauthors_veditors (args, vparam, list_name)<br />
local names = {}; -- table of names assembled from |vauthors=, |author-maskn=, |author-linkn=<br />
local v_name_table = {};<br />
local v_link_table = {}; -- when name is wikilinked, targets go in this table<br />
local etal = false; -- return value set to true when we find some form of et al. vauthors parameter<br />
local last, first, link, mask, suffix;<br />
local corporate = false;<br />
<br />
vparam, etal = name_has_etal (vparam, etal, true); -- find and remove variations on et al. do not categorize (do it here because et al. might have a period)<br />
v_name_table = get_v_name_table (vparam, v_name_table, v_link_table); -- names are separated by commas<br />
<br />
for i, v_name in ipairs(v_name_table) do<br />
if v_name:match ('^%(%(.+%)%)$') then -- corporate authors are wrapped in doubled parentheses to supress vanc formatting and error detection<br />
first = ''; -- set to empty string for concatenation and because it may have been set for previous author/editor<br />
last = v_name:match ('^%(%((.+)%)%)$') -- remove doubled parntheses<br />
corporate = true; -- flag used in list_people()<br />
elseif string.find(v_name, "%s") then<br />
if v_name:find('[;%.]') then -- look for commonly occurring punctuation characters; <br />
add_vanc_error ('punctuation');<br />
end<br />
local lastfirstTable = {}<br />
lastfirstTable = mw.text.split(v_name, "%s")<br />
first = table.remove(lastfirstTable); -- removes and returns value of last element in table which should be author intials<br />
if is_suffix (first) then -- if a valid suffix<br />
suffix = first -- save it as a suffix and<br />
first = table.remove(lastfirstTable); -- get what should be the initials from the table<br />
end -- no suffix error message here because letter combination may be result of Romanization; check for digits?<br />
last = table.concat(lastfirstTable, " ") -- returns a string that is the concatenation of all other names that are not initials<br />
if mw.ustring.match (last, '%a+%s+%u+%s+%a+') then<br />
add_vanc_error ('missing comma'); -- matches last II last; the case when a comma is missing<br />
end<br />
if mw.ustring.match (v_name, ' %u %u$') then -- this test is in the wrong place TODO: move or replace with a more appropriate test<br />
add_vanc_error ('name'); -- matches a space between two intiials<br />
end<br />
else<br />
first = ''; -- set to empty string for concatenation and because it may have been set for previous author/editor<br />
last = v_name; -- last name or single corporate name? Doesn't support multiword corporate names? do we need this?<br />
end<br />
<br />
if is_set (first) then<br />
if not mw.ustring.match (first, "^%u?%u$") then -- first shall contain one or two upper-case letters, nothing else<br />
add_vanc_error ('initials'); -- too many initials; mixed case initials (which may be ok Romanization); hyphenated initials<br />
end<br />
is_good_vanc_name (last, first); -- check first and last before restoring the suffix which may have a non-Latin digit<br />
if is_set (suffix) then<br />
first = first .. ' ' .. suffix; -- if there was a suffix concatenate with the initials<br />
suffix = ''; -- unset so we don't add this suffix to all subsequent names<br />
end<br />
else<br />
if not corporate then<br />
is_good_vanc_name (last, '');<br />
end<br />
end<br />
<br />
link = select_one( args, cfg.aliases[list_name .. '-Link'], 'redundant_parameters', i ) or v_link_table[i];<br />
mask = select_one( args, cfg.aliases[list_name .. '-Mask'], 'redundant_parameters', i );<br />
names[i] = {last = last, first = first, link = link, mask = mask, corporate=corporate}; -- add this assembled name to our names list<br />
end<br />
return names, etal; -- all done, return our list of names<br />
end<br />
<br />
<br />
--[[--------------------------< S E L E C T _ A U T H O R _ E D I T O R _ S O U R C E >------------------------<br />
<br />
Select one of |authors=, |authorn= / |lastn / firstn=, or |vauthors= as the source of the author name list or<br />
select one of |editors=, |editorn= / editor-lastn= / |editor-firstn= or |veditors= as the source of the editor name list.<br />
<br />
Only one of these appropriate three will be used. The hierarchy is: |authorn= (and aliases) highest and |authors= lowest and<br />
similarly, |editorn= (and aliases) highest and |editors= lowest<br />
<br />
When looking for |authorn= / |editorn= parameters, test |xxxxor1= and |xxxxor2= (and all of their aliases); stops after the second<br />
test which mimicks the test used in extract_names() when looking for a hole in the author name list. There may be a better<br />
way to do this, I just haven't discovered what that way is.<br />
<br />
Emits an error message when more than one xxxxor name source is provided.<br />
<br />
In this function, vxxxxors = vauthors or veditors; xxxxors = authors or editors as appropriate.<br />
<br />
]]<br />
<br />
local function select_author_editor_source (vxxxxors, xxxxors, args, list_name)<br />
local lastfirst = false;<br />
if select_one( args, cfg.aliases[list_name .. '-Last'], 'none', 1 ) or -- do this twice incase we have a |first1= without a |last1=; this ...<br />
select_one( args, cfg.aliases[list_name .. '-First'], 'none', 1 ) or -- ... also catches the case where |first= is used with |vauthors=<br />
select_one( args, cfg.aliases[list_name .. '-Last'], 'none', 2 ) or<br />
select_one( args, cfg.aliases[list_name .. '-First'], 'none', 2 ) then<br />
lastfirst=true;<br />
end<br />
<br />
if (is_set (vxxxxors) and true == lastfirst) or -- these are the three error conditions<br />
(is_set (vxxxxors) and is_set (xxxxors)) or<br />
(true == lastfirst and is_set (xxxxors)) then<br />
local err_name;<br />
if 'AuthorList' == list_name then -- figure out which name should be used in error message<br />
err_name = 'author';<br />
else<br />
err_name = 'editor';<br />
end<br />
table.insert( z.message_tail, { set_error( 'redundant_parameters',<br />
{err_name .. '-name-list parameters'}, true ) } ); -- add error message<br />
end<br />
<br />
if true == lastfirst then return 1 end; -- return a number indicating which author name source to use<br />
if is_set (vxxxxors) then return 2 end;<br />
if is_set (xxxxors) then return 3 end;<br />
return 1; -- no authors so return 1; this allows missing author name test to run in case there is a first without last <br />
end<br />
<br />
<br />
--[[--------------------------< I S _ V A L I D _ P A R A M E T E R _ V A L U E >------------------------------<br />
<br />
This function is used to validate a parameter's assigned value for those parameters that have only a limited number<br />
of allowable values (yes, y, true, no, etc). When the parameter value has not been assigned a value (missing or empty<br />
in the source template) the function returns true. If the parameter value is one of the list of allowed values returns<br />
true; else, emits an error message and returns false.<br />
<br />
]]<br />
<br />
local function is_valid_parameter_value (value, name, possible)<br />
if not is_set (value) then<br />
return true; -- an empty parameter is ok<br />
elseif in_array(value:lower(), possible) then<br />
return true;<br />
else<br />
table.insert( z.message_tail, { set_error( 'invalid_param_val', {name, value}, true ) } ); -- not an allowed value so add error message<br />
return false<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< T E R M I N A T E _ N A M E _ L I S T >----------------------------------------<br />
<br />
This function terminates a name list (author, contributor, editor) with a separator character (sepc) and a space<br />
when the last character is not a sepc character or when the last three characters are not sepc followed by two<br />
closing square brackets (close of a wikilink). When either of these is true, the name_list is terminated with a<br />
single space character.<br />
<br />
]]<br />
<br />
local function terminate_name_list (name_list, sepc)<br />
if (string.sub (name_list,-3,-1) == sepc .. '. ') then -- if already properly terminated<br />
return name_list; -- just return the name list<br />
elseif (string.sub (name_list,-1,-1) == sepc) or (string.sub (name_list,-3,-1) == sepc .. ']]') then -- if last name in list ends with sepc char<br />
return name_list .. " "; -- don't add another<br />
else<br />
return name_list .. sepc .. ' '; -- otherwise terninate the name list<br />
end<br />
end<br />
<br />
<br />
--[[-------------------------< F O R M A T _ V O L U M E _ I S S U E >----------------------------------------<br />
<br />
returns the concatenation of the formatted volume and issue parameters as a single string; or formatted volume<br />
or formatted issue, or an empty string if neither are set.<br />
<br />
]]<br />
<br />
local function format_volume_issue (volume, issue, cite_class, origin, sepc, lower)<br />
if not is_set (volume) and not is_set (issue) then<br />
return '';<br />
end<br />
<br />
if 'magazine' == cite_class or (in_array (cite_class, {'citation', 'map'}) and 'magazine' == origin) then<br />
if is_set (volume) and is_set (issue) then<br />
return wrap_msg ('vol-no', {sepc, volume, issue}, lower);<br />
elseif is_set (volume) then<br />
return wrap_msg ('vol', {sepc, volume}, lower);<br />
else<br />
return wrap_msg ('issue', {sepc, issue}, lower);<br />
end<br />
end<br />
<br />
local vol = '';<br />
<br />
if is_set (volume) then<br />
if (4 < mw.ustring.len(volume)) then<br />
vol = substitute (cfg.messages['j-vol'], {sepc, volume});<br />
else<br />
vol = substitute (cfg.presentation['vol-bold'], {sepc, hyphen_to_dash(volume)});<br />
end<br />
end<br />
if is_set (issue) then<br />
return vol .. substitute (cfg.messages['j-issue'], issue);<br />
end<br />
return vol;<br />
end<br />
<br />
<br />
--[[-------------------------< F O R M A T _ P A G E S _ S H E E T S >-----------------------------------------<br />
<br />
adds static text to one of |page(s)= or |sheet(s)= values and returns it with all of the others set to empty strings.<br />
The return order is:<br />
page, pages, sheet, sheets<br />
<br />
Singular has priority over plural when both are provided.<br />
<br />
]]<br />
<br />
local function format_pages_sheets (page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)<br />
if 'map' == cite_class then -- only cite map supports sheet(s) as in-source locators<br />
if is_set (sheet) then<br />
if 'journal' == origin then<br />
return '', '', wrap_msg ('j-sheet', sheet, lower), '';<br />
else<br />
return '', '', wrap_msg ('sheet', {sepc, sheet}, lower), '';<br />
end<br />
elseif is_set (sheets) then<br />
if 'journal' == origin then<br />
return '', '', '', wrap_msg ('j-sheets', sheets, lower);<br />
else<br />
return '', '', '', wrap_msg ('sheets', {sepc, sheets}, lower);<br />
end<br />
end<br />
end<br />
<br />
local is_journal = 'journal' == cite_class or (in_array (cite_class, {'citation', 'map', 'interview'}) and 'journal' == origin);<br />
<br />
if is_set (page) then<br />
if is_journal then<br />
return substitute (cfg.messages['j-page(s)'], page), '', '', '';<br />
elseif not nopp then<br />
return substitute (cfg.messages['p-prefix'], {sepc, page}), '', '', '';<br />
else<br />
return substitute (cfg.messages['nopp'], {sepc, page}), '', '', '';<br />
end<br />
elseif is_set(pages) then<br />
if is_journal then<br />
return substitute (cfg.messages['j-page(s)'], pages), '', '', '';<br />
elseif tonumber(pages) ~= nil and not nopp then -- if pages is only digits, assume a single page number<br />
return '', substitute (cfg.messages['p-prefix'], {sepc, pages}), '', '';<br />
elseif not nopp then<br />
return '', substitute (cfg.messages['pp-prefix'], {sepc, pages}), '', '';<br />
else<br />
return '', substitute (cfg.messages['nopp'], {sepc, pages}), '', '';<br />
end<br />
end<br />
<br />
return '', '', '', ''; -- return empty strings<br />
end<br />
<br />
<br />
--[=[-------------------------< A R C H I V E _ U R L _ C H E C K >--------------------------------------------<br />
<br />
Check archive.org urls to make sure they at least look like they are pointing at valid archives and not to the <br />
save snapshot url or to calendar pages. When the archive url is 'https://web.archive.org/save/' (or http://...)<br />
archive.org saves a snapshot of the target page in the url. That is something that Wikipedia should not allow<br />
unwitting readers to do.<br />
<br />
When the archive.org url does not have a complete timestamp, archive.org chooses a snapshot according to its own<br />
algorithm or provides a calendar 'search' result. [[WP:ELNO]] discourages links to search results.<br />
<br />
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and<br />
|archive-date= and an error message when:<br />
|archive-url= holds an archive.org save command url<br />
|archive-url= is an archive.org url that does not have a complete timestamp (YYYYMMDDhhmmss 14 digits) in the<br />
correct place<br />
otherwise returns |archive-url= and |archive-date=<br />
<br />
There are two mostly compatible archive.org urls:<br />
//web.archive.org/<timestamp>... -- the old form<br />
//web.archive.org/web/<timestamp>... -- the new form<br />
<br />
The old form does not support or map to the new form when it contains a display flag. There are four identified flags<br />
('id_', 'js_', 'cs_', 'im_') but since archive.org ignores others following the same form (two letters and an underscore)<br />
we don't check for these specific flags but we do check the form.<br />
<br />
This function supports a preview mode. When the article is rendered in preview mode, this funct may return a modified<br />
archive url:<br />
for save command errors, return undated wildcard (/*/)<br />
for timestamp errors when the timestamp has a wildcard, return the url unmodified<br />
for timestamp errors when the timestamp does not have a wildcard, return with timestamp limited to six digits plus wildcard (/yyyymm*/)<br />
<br />
]=]<br />
<br />
local function archive_url_check (url, date)<br />
local err_msg = ''; -- start with the error message empty<br />
local path, timestamp, flag; -- portions of the archive.or url<br />
<br />
if (not url:match('//web%.archive%.org/')) and (not url:match('//liveweb%.archive%.org/')) then -- also deprecated liveweb Wayback machine url<br />
return url, date; -- not an archive.org archive, return ArchiveURL and ArchiveDate<br />
end<br />
<br />
if url:match('//web%.archive%.org/save/') then -- if a save command url, we don't want to allow saving of the target page <br />
err_msg = 'save command';<br />
url = url:gsub ('(//web%.archive%.org)/save/', '%1/*/', 1); -- for preview mode: modify ArchiveURL<br />
elseif url:match('//liveweb%.archive%.org/') then<br />
err_msg = 'liveweb';<br />
else<br />
path, timestamp, flag = url:match('//web%.archive%.org/([^%d]*)(%d+)([^/]*)/'); -- split out some of the url parts for evaluation<br />
<br />
if not is_set(timestamp) or 14 ~= timestamp:len() then -- path and flag optional, must have 14-digit timestamp here<br />
err_msg = 'timestamp';<br />
if '*' ~= flag then<br />
url=url:gsub ('(//web%.archive%.org/[^%d]*%d?%d?%d?%d?%d?%d?)[^/]*', '%1*', 1) -- for preview, modify ts to be yearmo* max (0-6 digits plus splat)<br />
end<br />
elseif is_set(path) and 'web/' ~= path then -- older archive urls do not have the extra 'web/' path element<br />
err_msg = 'path';<br />
elseif is_set (flag) and not is_set (path) then -- flag not allowed with the old form url (without the 'web/' path element)<br />
err_msg = 'flag';<br />
elseif is_set (flag) and not flag:match ('%a%a_') then -- flag if present must be two alpha characters and underscore (requires 'web/' path element)<br />
err_msg = 'flag';<br />
else<br />
return url, date; -- return archiveURL and ArchiveDate<br />
end<br />
end<br />
-- if here, something not right so<br />
table.insert( z.message_tail, { set_error( 'archive_url', {err_msg}, true ) } ); -- add error message and<br />
if is_set (Frame:preprocess('{{REVISIONID}}')) then<br />
return '', ''; -- return empty strings for archiveURL and ArchiveDate<br />
else<br />
return url, date; -- preview mode so return archiveURL and ArchiveDate<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< M I S S I N G _ P I P E _ C H E C K >------------------------------------------<br />
<br />
Look at the contents of a parameter. If the content has a string of characters and digits followed by an equal<br />
sign, compare the alphanumeric string to the list of cs1|2 parameters. If found, then the string is possibly a<br />
parameter that is missing its pipe:<br />
{{cite ... |title=Title access-date=2016-03-17}}<br />
<br />
cs1|2 shares some parameter names with xml/html atributes: class=, title=, etc. To prevent false positives xml/html<br />
tags are removed before the search.<br />
<br />
If a missing pipe is detected, this function adds the missing pipe maintenance category.<br />
<br />
]]<br />
<br />
local function missing_pipe_check (value)<br />
local capture;<br />
value = value:gsub ('%b<>', ''); -- remove xml/html tags because attributes: class=, title=, etc <br />
<br />
capture = value:match ('%s+(%a[%a%d]+)%s*=') or value:match ('^(%a[%a%d]+)%s*='); -- find and categorize parameters with possible missing pipes<br />
if capture and validate (capture) then -- if the capture is a valid parameter name<br />
add_maint_cat ('missing_pipe');<br />
end<br />
end<br />
<br />
<br />
--[[--------------------------< C I T A T I O N 0 >------------------------------------------------------------<br />
<br />
This is the main function doing the majority of the citation formatting.<br />
<br />
]]<br />
<br />
local function citation0( config, args)<br />
--[[ <br />
Load Input Parameters<br />
The argument_wrapper facilitates the mapping of multiple aliases to single internal variable.<br />
]]<br />
local A = argument_wrapper( args );<br />
local i <br />
<br />
-- Pick out the relevant fields from the arguments. Different citation templates<br />
-- define different field names for the same underlying things. <br />
<br />
-- set default parameter values defined by |mode= parameter.<br />
local Mode = A['Mode'];<br />
if not is_valid_parameter_value (Mode, 'mode', cfg.keywords['mode']) then<br />
Mode = '';<br />
end<br />
<br />
local author_etal;<br />
local a = {}; -- authors list from |lastn= / |firstn= pairs or |vauthors=<br />
local Authors;<br />
local NameListFormat = A['NameListFormat'];<br />
local Collaboration = A['Collaboration'];<br />
<br />
do -- to limit scope of selected<br />
local selected = select_author_editor_source (A['Vauthors'], A['Authors'], args, 'AuthorList');<br />
if 1 == selected then<br />
a, author_etal = extract_names (args, 'AuthorList'); -- fetch author list from |authorn= / |lastn= / |firstn=, |author-linkn=, and |author-maskn=<br />
elseif 2 == selected then<br />
NameListFormat = 'vanc'; -- override whatever |name-list-format= might be<br />
a, author_etal = parse_vauthors_veditors (args, args.vauthors, 'AuthorList'); -- fetch author list from |vauthors=, |author-linkn=, and |author-maskn=<br />
elseif 3 == selected then<br />
Authors = A['Authors']; -- use content of |authors=<br />
if 'authors' == A:ORIGIN('Authors') then -- but add a maint cat if the parameter is |authors=<br />
add_maint_cat ('authors'); -- because use of this parameter is discouraged; what to do about the aliases is a TODO:<br />
end<br />
end<br />
if is_set (Collaboration) then<br />
author_etal = true; -- so that |display-authors=etal not required<br />
end<br />
end<br />
<br />
local Others = A['Others'];<br />
<br />
local editor_etal;<br />
local e = {}; -- editors list from |editor-lastn= / |editor-firstn= pairs or |veditors=<br />
local Editors;<br />
<br />
do -- to limit scope of selected<br />
local selected = select_author_editor_source (A['Veditors'], A['Editors'], args, 'EditorList');<br />
if 1 == selected then<br />
e, editor_etal = extract_names (args, 'EditorList'); -- fetch editor list from |editorn= / |editor-lastn= / |editor-firstn=, |editor-linkn=, and |editor-maskn=<br />
elseif 2 == selected then<br />
NameListFormat = 'vanc'; -- override whatever |name-list-format= might be<br />
e, editor_etal = parse_vauthors_veditors (args, args.veditors, 'EditorList'); -- fetch editor list from |veditors=, |editor-linkn=, and |editor-maskn=<br />
elseif 3 == selected then<br />
Editors = A['Editors']; -- use content of |editors=<br />
add_maint_cat ('editors'); -- but add a maint cat because use of this parameter is discouraged<br />
end<br />
end<br />
<br />
local t = {}; -- translators list from |translator-lastn= / translator-firstn= pairs<br />
local Translators; -- assembled translators name list<br />
t = extract_names (args, 'TranslatorList'); -- fetch translator list from |translatorn= / |translator-lastn=, -firstn=, -linkn=, -maskn=<br />
<br />
local interviewers_list = {};<br />
local Interviewers = A['Interviewers']<br />
if is_set (Interviewers) then -- add a maint cat if the |interviewers= is used<br />
add_maint_cat ('interviewers'); -- because use of this parameter is discouraged<br />
else<br />
interviewers_list = extract_names (args, 'InterviewerList'); -- else, process preferred interviewers parameters<br />
end<br />
<br />
local c = {}; -- contributors list from |contributor-lastn= / contributor-firstn= pairs<br />
local Contributors; -- assembled contributors name list<br />
local Contribution = A['Contribution'];<br />
if in_array(config.CitationClass, {"book","citation"}) and not is_set(A['Periodical']) then -- |contributor= and |contribution= only supported in book cites<br />
c = extract_names (args, 'ContributorList'); -- fetch contributor list from |contributorn= / |contributor-lastn=, -firstn=, -linkn=, -maskn=<br />
<br />
if 0 < #c then<br />
if not is_set (Contribution) then -- |contributor= requires |contribution=<br />
table.insert( z.message_tail, { set_error( 'contributor_missing_required_param', 'contribution')}); -- add missing contribution error message<br />
c = {}; -- blank the contributors' table; it is used as a flag later<br />
end<br />
if 0 == #a then -- |contributor= requires |author=<br />
table.insert( z.message_tail, { set_error( 'contributor_missing_required_param', 'author')}); -- add missing author error message<br />
c = {}; -- blank the contributors' table; it is used as a flag later<br />
end<br />
end<br />
else -- if not a book cite<br />
if select_one (args, cfg.aliases['ContributorList-Last'], 'redundant_parameters', 1 ) then -- are there contributor name list parameters?<br />
table.insert( z.message_tail, { set_error( 'contributor_ignored')}); -- add contributor ignored error message<br />
end<br />
Contribution = nil; -- unset<br />
end<br />
<br />
if not is_valid_parameter_value (NameListFormat, 'name-list-format', cfg.keywords['name-list-format']) then -- only accepted value for this parameter is 'vanc'<br />
NameListFormat = ''; -- anything else, set to empty string<br />
end<br />
<br />
local Year = A['Year'];<br />
local PublicationDate = A['PublicationDate'];<br />
local OrigYear = A['OrigYear'];<br />
local Date = A['Date'];<br />
local LayDate = A['LayDate'];<br />
------------------------------------------------- Get title data<br />
local Title = A['Title'];<br />
local ScriptTitle = A['ScriptTitle'];<br />
local BookTitle = A['BookTitle'];<br />
local Conference = A['Conference'];<br />
local TransTitle = A['TransTitle'];<br />
local TitleNote = A['TitleNote'];<br />
local TitleLink = A['TitleLink'];<br />
link_title_ok (TitleLink, A:ORIGIN ('TitleLink'), Title, 'title'); -- check for wikimarkup in |title-link= or wikimarkup in |title= when |title-link= is set<br />
<br />
local Chapter = A['Chapter'];<br />
local ScriptChapter = A['ScriptChapter'];<br />
local ChapterLink -- = A['ChapterLink']; -- deprecated as a parameter but still used internally by cite episode<br />
local TransChapter = A['TransChapter'];<br />
local TitleType = A['TitleType'];<br />
local Degree = A['Degree'];<br />
local Docket = A['Docket'];<br />
local ArchiveFormat = A['ArchiveFormat'];<br />
<br />
local ArchiveDate;<br />
local ArchiveURL;<br />
<br />
ArchiveURL, ArchiveDate = archive_url_check (A['ArchiveURL'], A['ArchiveDate'])<br />
<br />
local DeadURL = A['DeadURL']<br />
if not is_valid_parameter_value (DeadURL, 'dead-url', cfg.keywords ['deadurl']) then -- set in config.defaults to 'yes'<br />
DeadURL = ''; -- anything else, set to empty string<br />
end<br />
<br />
local URL = A['URL']<br />
local URLorigin = A:ORIGIN('URL'); -- get name of parameter that holds URL<br />
local ChapterURL = A['ChapterURL'];<br />
local ChapterURLorigin = A:ORIGIN('ChapterURL'); -- get name of parameter that holds ChapterURL<br />
local ConferenceFormat = A['ConferenceFormat'];<br />
local ConferenceURL = A['ConferenceURL'];<br />
local ConferenceURLorigin = A:ORIGIN('ConferenceURL'); -- get name of parameter that holds ConferenceURL<br />
local Periodical = A['Periodical'];<br />
local Periodical_origin = A:ORIGIN('Periodical'); -- get the name of the periodical parameter<br />
<br />
local Series = A['Series'];<br />
<br />
local Volume;<br />
local Issue;<br />
local Page;<br />
local Pages;<br />
local At;<br />
<br />
if in_array (config.CitationClass, cfg.templates_using_volume) then<br />
Volume = A['Volume'];<br />
end<br />
-- conference & map books do not support issue<br />
if in_array (config.CitationClass, cfg.templates_using_issue) and not (in_array (config.CitationClass, {'conference', 'map'}) and not is_set (Periodical))then<br />
Issue = A['Issue'];<br />
end<br />
local Position = '';<br />
if not in_array (config.CitationClass, cfg.templates_not_using_page) then<br />
Page = A['Page'];<br />
Pages = hyphen_to_dash( A['Pages'] ); <br />
At = A['At'];<br />
end<br />
<br />
local Edition = A['Edition'];<br />
local PublicationPlace = A['PublicationPlace']<br />
local Place = A['Place'];<br />
<br />
local PublisherName = A['PublisherName'];<br />
local RegistrationRequired = A['RegistrationRequired'];<br />
if not is_valid_parameter_value (RegistrationRequired, 'registration', cfg.keywords ['yes_true_y']) then<br />
RegistrationRequired=nil;<br />
end<br />
<br />
local SubscriptionRequired = A['SubscriptionRequired'];<br />
if not is_valid_parameter_value (SubscriptionRequired, 'subscription', cfg.keywords ['yes_true_y']) then<br />
SubscriptionRequired=nil;<br />
end<br />
<br />
local UrlAccess = A['UrlAccess'];<br />
if not is_valid_parameter_value (UrlAccess, 'url-access', cfg.keywords ['url-access']) then<br />
UrlAccess = nil;<br />
end<br />
if not is_set(URL) and is_set(UrlAccess) then<br />
UrlAccess = nil;<br />
table.insert( z.message_tail, { set_error( 'param_access_requires_param', {'url'}, true ) } );<br />
end<br />
<br />
if is_set (UrlAccess) and is_set (SubscriptionRequired) then -- while not aliases, these are much the same so if both are set<br />
table.insert( z.message_tail, { set_error( 'redundant_parameters', {wrap_style ('parameter', 'url-access') .. ' and ' .. wrap_style ('parameter', 'subscription')}, true ) } ); -- add error message<br />
SubscriptionRequired = nil; -- unset; prefer |access= over |subscription=<br />
end<br />
if is_set (UrlAccess) and is_set (RegistrationRequired) then -- these are not the same but contradictory so if both are set<br />
table.insert( z.message_tail, { set_error( 'redundant_parameters', {wrap_style ('parameter', 'url-access') .. ' and ' .. wrap_style ('parameter', 'registration')}, true ) } ); -- add error message<br />
RegistrationRequired = nil; -- unset; prefer |access= over |registration=<br />
end<br />
<br />
local ChapterUrlAccess = A['ChapterUrlAccess'];<br />
if not is_valid_parameter_value (ChapterUrlAccess, 'chapter-url-access', cfg.keywords ['url-access']) then -- same as url-access<br />
ChapterUrlAccess = nil;<br />
end<br />
if not is_set(ChapterURL) and is_set(ChapterUrlAccess) then<br />
ChapterUrlAccess = nil;<br />
table.insert( z.message_tail, { set_error( 'param_access_requires_param', {'chapter-url'}, true ) } );<br />
end<br />
<br />
local Via = A['Via'];<br />
local AccessDate = A['AccessDate'];<br />
local Agency = A['Agency'];<br />
<br />
local Language = A['Language'];<br />
local Format = A['Format'];<br />
local ChapterFormat = A['ChapterFormat'];<br />
local DoiBroken = A['DoiBroken'];<br />
local ID = A['ID'];<br />
local ASINTLD = A['ASINTLD'];<br />
local IgnoreISBN = A['IgnoreISBN'];<br />
if not is_valid_parameter_value (IgnoreISBN, 'ignore-isbn-error', cfg.keywords ['yes_true_y']) then<br />
IgnoreISBN = nil; -- anything else, set to empty string<br />
end<br />
local Embargo = A['Embargo'];<br />
local Class = A['Class']; -- arxiv class identifier<br />
<br />
local ID_list = extract_ids( args );<br />
local ID_access_levels = extract_id_access_levels( args, ID_list );<br />
<br />
local Quote = A['Quote'];<br />
<br />
local LayFormat = A['LayFormat'];<br />
local LayURL = A['LayURL'];<br />
local LaySource = A['LaySource'];<br />
local Transcript = A['Transcript'];<br />
local TranscriptFormat = A['TranscriptFormat'];<br />
local TranscriptURL = A['TranscriptURL'] <br />
local TranscriptURLorigin = A:ORIGIN('TranscriptURL'); -- get name of parameter that holds TranscriptURL<br />
<br />
local LastAuthorAmp = A['LastAuthorAmp'];<br />
if not is_valid_parameter_value (LastAuthorAmp, 'last-author-amp', cfg.keywords ['yes_true_y']) then<br />
LastAuthorAmp = nil; -- set to empty string<br />
end<br />
<br />
local no_tracking_cats = A['NoTracking'];<br />
if not is_valid_parameter_value (no_tracking_cats, 'no-tracking', cfg.keywords ['yes_true_y']) then<br />
no_tracking_cats = nil; -- set to empty string<br />
end<br />
<br />
--local variables that are not cs1 parameters<br />
local use_lowercase; -- controls capitalization of certain static text<br />
local this_page = mw.title.getCurrentTitle(); -- also used for COinS and for language<br />
local anchor_year; -- used in the CITEREF identifier<br />
local COinS_date = {}; -- holds date info extracted from |date= for the COinS metadata by Module:Date verification<br />
<br />
local DF = A['DF']; -- date format set in cs1|2 template<br />
if not is_valid_parameter_value (DF, 'df', cfg.keywords['date-format']) then -- validate reformatting keyword<br />
DF = ''; -- not valid, set to empty string<br />
end<br />
<br />
local sepc; -- separator between citation elements for CS1 a period, for CS2, a comma<br />
local PostScript;<br />
local Ref;<br />
sepc, PostScript, Ref = set_style (Mode:lower(), A['PostScript'], A['Ref'], config.CitationClass);<br />
use_lowercase = ( sepc == ',' ); -- used to control capitalization for certain static text<br />
<br />
--check this page to see if it is in one of the namespaces that cs1 is not supposed to add to the error categories<br />
if not is_set (no_tracking_cats) then -- ignore if we are already not going to categorize this page<br />
if in_array (this_page.nsText, cfg.uncategorized_namespaces) then<br />
no_tracking_cats = "true"; -- set no_tracking_cats<br />
end<br />
for _,v in ipairs (cfg.uncategorized_subpages) do -- cycle through page name patterns<br />
if this_page.text:match (v) then -- test page name against each pattern<br />
no_tracking_cats = "true"; -- set no_tracking_cats<br />
break; -- bail out if one is found<br />
end<br />
end<br />
end<br />
<br />
-- check for extra |page=, |pages= or |at= parameters. (also sheet and sheets while we're at it)<br />
select_one( args, {'page', 'p', 'pp', 'pages', 'at', 'sheet', 'sheets'}, 'redundant_parameters' ); -- this is a dummy call simply to get the error message and category<br />
<br />
local NoPP = A['NoPP'] <br />
if is_set (NoPP) and is_valid_parameter_value (NoPP, 'nopp', cfg.keywords ['yes_true_y']) then<br />
NoPP = true;<br />
else<br />
NoPP = nil; -- unset, used as a flag later<br />
end<br />
<br />
if is_set(Page) then<br />
if is_set(Pages) or is_set(At) then<br />
Pages = ''; -- unset the others<br />
At = '';<br />
end<br />
extra_text_in_page_check (Page); -- add this page to maint cat if |page= value begins with what looks like p. or pp.<br />
elseif is_set(Pages) then<br />
if is_set(At) then<br />
At = ''; -- unset<br />
end<br />
extra_text_in_page_check (Pages); -- add this page to maint cat if |pages= value begins with what looks like p. or pp.<br />
end <br />
<br />
-- both |publication-place= and |place= (|location=) allowed if different<br />
if not is_set(PublicationPlace) and is_set(Place) then<br />
PublicationPlace = Place; -- promote |place= (|location=) to |publication-place<br />
end<br />
<br />
if PublicationPlace == Place then Place = ''; end -- don't need both if they are the same<br />
<br />
--[[<br />
Parameter remapping for cite encyclopedia:<br />
When the citation has these parameters:<br />
|encyclopedia and |title then map |title to |article and |encyclopedia to |title<br />
|encyclopedia and |article then map |encyclopedia to |title<br />
|encyclopedia then map |encyclopedia to |title<br />
<br />
|trans-title maps to |trans-chapter when |title is re-mapped<br />
|url maps to |chapterurl when |title is remapped<br />
<br />
All other combinations of |encyclopedia, |title, and |article are not modified<br />
<br />
]]<br />
<br />
local Encyclopedia = A['Encyclopedia'];<br />
<br />
if ( config.CitationClass == "encyclopaedia" ) or ( config.CitationClass == "citation" and is_set (Encyclopedia)) then -- test code for citation<br />
if is_set(Periodical) then -- Periodical is set when |encyclopedia is set<br />
if is_set(Title) or is_set (ScriptTitle) then<br />
if not is_set(Chapter) then<br />
Chapter = Title; -- |encyclopedia and |title are set so map |title to |article and |encyclopedia to |title<br />
ScriptChapter = ScriptTitle;<br />
TransChapter = TransTitle;<br />
ChapterURL = URL;<br />
ChapterUrlAccess = UrlAccess;<br />
<br />
if not is_set (ChapterURL) and is_set (TitleLink) then<br />
Chapter = make_wikilink (TitleLink, Chapter);<br />
end<br />
Title = Periodical;<br />
ChapterFormat = Format;<br />
Periodical = ''; -- redundant so unset<br />
TransTitle = '';<br />
URL = '';<br />
Format = '';<br />
TitleLink = '';<br />
ScriptTitle = '';<br />
end<br />
else -- |title not set<br />
Title = Periodical; -- |encyclopedia set and |article set or not set so map |encyclopedia to |title<br />
Periodical = ''; -- redundant so unset<br />
end<br />
end<br />
end<br />
<br />
-- Special case for cite techreport.<br />
if (config.CitationClass == "techreport") then -- special case for cite techreport<br />
if is_set(A['Number']) then -- cite techreport uses 'number', which other citations alias to 'issue'<br />
if not is_set(ID) then -- can we use ID for the "number"?<br />
ID = A['Number']; -- yes, use it<br />
else -- ID has a value so emit error message<br />
table.insert( z.message_tail, { set_error('redundant_parameters', {wrap_style ('parameter', 'id') .. ' and ' .. wrap_style ('parameter', 'number')}, true )});<br />
end<br />
end <br />
end<br />
<br />
-- special case for cite mailing list<br />
if (config.CitationClass == "mailinglist") then<br />
Periodical = A ['MailingList'];<br />
elseif 'mailinglist' == A:ORIGIN('Periodical') then<br />
Periodical = ''; -- unset because mailing list is only used for cite mailing list<br />
end<br />
<br />
-- Account for the oddity that is {{cite conference}}, before generation of COinS data.<br />
if 'conference' == config.CitationClass then<br />
if is_set(BookTitle) then<br />
Chapter = Title;<br />
-- ChapterLink = TitleLink; -- |chapterlink= is deprecated<br />
ChapterURL = URL;<br />
ChapterUrlAccess = UrlAccess;<br />
ChapterURLorigin = URLorigin;<br />
URLorigin = '';<br />
ChapterFormat = Format;<br />
TransChapter = TransTitle;<br />
Title = BookTitle;<br />
Format = '';<br />
-- TitleLink = '';<br />
TransTitle = '';<br />
URL = '';<br />
end<br />
elseif 'speech' ~= config.CitationClass then<br />
Conference = ''; -- not cite conference or cite speech so make sure this is empty string<br />
end<br />
<br />
-- cite map oddities<br />
local Cartography = "";<br />
local Scale = "";<br />
local Sheet = A['Sheet'] or '';<br />
local Sheets = A['Sheets'] or '';<br />
if config.CitationClass == "map" then<br />
Chapter = A['Map'];<br />
ChapterURL = A['MapURL'];<br />
ChapterUrlAccess = UrlAccess;<br />
TransChapter = A['TransMap'];<br />
ChapterURLorigin = A:ORIGIN('MapURL');<br />
ChapterFormat = A['MapFormat'];<br />
<br />
Cartography = A['Cartography'];<br />
if is_set( Cartography ) then<br />
Cartography = sepc .. " " .. wrap_msg ('cartography', Cartography, use_lowercase);<br />
end <br />
Scale = A['Scale'];<br />
if is_set( Scale ) then<br />
Scale = sepc .. " " .. Scale;<br />
end<br />
end<br />
<br />
-- Account for the oddities that are {{cite episode}} and {{cite serial}}, before generation of COinS data.<br />
if 'episode' == config.CitationClass or 'serial' == config.CitationClass then<br />
local AirDate = A['AirDate'];<br />
local SeriesLink = A['SeriesLink'];<br />
<br />
link_title_ok (SeriesLink, A:ORIGIN ('SeriesLink'), Series, 'series'); -- check for wikimarkup in |series-link= or wikimarkup in |series= when |series-link= is set<br />
<br />
local Network = A['Network'];<br />
local Station = A['Station'];<br />
local s, n = {}, {};<br />
-- do common parameters first<br />
if is_set(Network) then table.insert(n, Network); end<br />
if is_set(Station) then table.insert(n, Station); end<br />
ID = table.concat(n, sepc .. ' ');<br />
<br />
if not is_set (Date) and is_set (AirDate) then -- promote airdate to date<br />
Date = AirDate;<br />
end<br />
<br />
if 'episode' == config.CitationClass then -- handle the oddities that are strictly {{cite episode}}<br />
local Season = A['Season'];<br />
local SeriesNumber = A['SeriesNumber'];<br />
<br />
if is_set (Season) and is_set (SeriesNumber) then -- these are mutually exclusive so if both are set<br />
table.insert( z.message_tail, { set_error( 'redundant_parameters', {wrap_style ('parameter', 'season') .. ' and ' .. wrap_style ('parameter', 'seriesno')}, true ) } ); -- add error message<br />
SeriesNumber = ''; -- unset; prefer |season= over |seriesno=<br />
end<br />
-- assemble a table of parts concatenated later into Series<br />
if is_set(Season) then table.insert(s, wrap_msg ('season', Season, use_lowercase)); end<br />
if is_set(SeriesNumber) then table.insert(s, wrap_msg ('series', SeriesNumber, use_lowercase)); end<br />
if is_set(Issue) then table.insert(s, wrap_msg ('episode', Issue, use_lowercase)); end<br />
Issue = ''; -- unset because this is not a unique parameter<br />
<br />
Chapter = Title; -- promote title parameters to chapter<br />
ScriptChapter = ScriptTitle;<br />
ChapterLink = TitleLink; -- alias episodelink<br />
TransChapter = TransTitle;<br />
ChapterURL = URL;<br />
ChapterUrlAccess = UrlAccess;<br />
ChapterURLorigin = A:ORIGIN('URL');<br />
<br />
Title = Series; -- promote series to title<br />
TitleLink = SeriesLink;<br />
Series = table.concat(s, sepc .. ' '); -- this is concatenation of season, seriesno, episode number<br />
<br />
if is_set (ChapterLink) and not is_set (ChapterURL) then -- link but not URL<br />
Chapter = make_wikilink (ChapterLink, Chapter);<br />
elseif is_set (ChapterLink) and is_set (ChapterURL) then -- if both are set, URL links episode;<br />
Series = make_wikilink (ChapterLink, Series);<br />
end<br />
URL = ''; -- unset<br />
TransTitle = '';<br />
ScriptTitle = '';<br />
<br />
else -- now oddities that are cite serial<br />
Issue = ''; -- unset because this parameter no longer supported by the citation/core version of cite serial<br />
Chapter = A['Episode']; -- TODO: make |episode= available to cite episode someday?<br />
if is_set (Series) and is_set (SeriesLink) then<br />
Series = make_wikilink (SeriesLink, Series);<br />
end<br />
Series = wrap_style ('italic-title', Series); -- series is italicized<br />
end <br />
end<br />
-- end of {{cite episode}} stuff<br />
<br />
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, before generation of COinS data.<br />
do<br />
if in_array (config.CitationClass, {'arxiv', 'biorxiv', 'citeseerx'}) then<br />
if not is_set (ID_list[config.CitationClass:upper()]) then -- |arxiv= or |eprint= required for cite arxiv; |biorxiv= & |citeseerx= required for their templates<br />
table.insert( z.message_tail, { set_error( config.CitationClass .. '_missing', {}, true ) } ); -- add error message<br />
end<br />
<br />
if 'arxiv' == config.CitationClass then<br />
Periodical = 'arXiv'; -- set to arXiv for COinS; after that, must be set to empty string<br />
end<br />
<br />
if 'biorxiv' == config.CitationClass then<br />
Periodical = 'bioRxiv'; -- set to bioRxiv for COinS; after that, must be set to empty string<br />
end<br />
<br />
if 'citeseerx' == config.CitationClass then<br />
Periodical = 'CiteSeerX'; -- set to CiteSeerX for COinS; after that, must be set to empty string<br />
end<br />
end<br />
end<br />
<br />
-- handle type parameter for those CS1 citations that have default values<br />
if in_array(config.CitationClass, {"AV-media-notes", "interview", "mailinglist", "map", "podcast", "pressrelease", "report", "techreport", "thesis"}) then<br />
TitleType = set_titletype (config.CitationClass, TitleType);<br />
if is_set(Degree) and "Thesis" == TitleType then -- special case for cite thesis<br />
TitleType = Degree .. ' ' .. cfg.title_types ['thesis']:lower();<br />
end<br />
end<br />
<br />
if is_set(TitleType) then -- if type parameter is specified<br />
TitleType = substitute( cfg.messages['type'], TitleType); -- display it in parentheses<br />
-- TODO: Hack on TitleType to fix bunched parentheses problem<br />
end<br />
<br />
-- legacy: promote PublicationDate to Date if neither Date nor Year are set.<br />
local Date_origin; -- to hold the name of parameter promoted to Date; required for date error messaging<br />
<br />
if not is_set (Date) then<br />
Date = Year; -- promote Year to Date<br />
Year = nil; -- make nil so Year as empty string isn't used for CITEREF<br />
if not is_set (Date) and is_set(PublicationDate) then -- use PublicationDate when |date= and |year= are not set<br />
Date = PublicationDate; -- promote PublicationDate to Date<br />
PublicationDate = ''; -- unset, no longer needed<br />
Date_origin = A:ORIGIN('PublicationDate'); -- save the name of the promoted parameter<br />
else<br />
Date_origin = A:ORIGIN('Year'); -- save the name of the promoted parameter<br />
end<br />
else<br />
Date_origin = A:ORIGIN('Date'); -- not a promotion; name required for error messaging<br />
end<br />
<br />
if PublicationDate == Date then PublicationDate = ''; end -- if PublicationDate is same as Date, don't display in rendered citation<br />
<br />
--[[<br />
Go test all of the date-holding parameters for valid MOS:DATE format and make sure that dates are real dates. This must be done before we do COinS because here is where<br />
we get the date used in the metadata.<br />
<br />
Date validation supporting code is in Module:Citation/CS1/Date_validation<br />
]]<br />
do -- create defined block to contain local variables error_message, date_parameters_list, mismatch<br />
local error_message = '';<br />
-- AirDate has been promoted to Date so not necessary to check it<br />
-- local date_parameters_list = {['access-date']=AccessDate, ['archive-date']=ArchiveDate, ['date']=Date, ['doi-broken-date']=DoiBroken,<br />
-- ['embargo']=Embargo, ['lay-date']=LayDate, ['publication-date']=PublicationDate, ['year']=Year};<br />
<br />
local date_parameters_list = {<br />
['access-date'] = {val=AccessDate, name=A:ORIGIN ('AccessDate')},<br />
['archive-date'] = {val=ArchiveDate, name=A:ORIGIN ('ArchiveDate')},<br />
['date'] = {val=Date, name=Date_origin},<br />
['doi-broken-date'] = {val=DoiBroken, name=A:ORIGIN ('DoiBroken')},<br />
['embargo'] = {val=Embargo, name=A:ORIGIN ('Embargo')},<br />
['lay-date'] = {val=LayDate, name=A:ORIGIN ('LayDate')},<br />
['publication-date'] ={val=PublicationDate, name=A:ORIGIN ('PublicationDate')},<br />
['year'] = {val=Year, name=A:ORIGIN ('Year')},<br />
};<br />
anchor_year, Embargo, error_message = dates(date_parameters_list, COinS_date);<br />
<br />
-- start temporary Julian / Gregorian calendar uncertainty categorization<br />
if COinS_date.inter_cal_cat then<br />
add_prop_cat ('jul_greg_uncertainty');<br />
end<br />
-- end temporary Julian / Gregorian calendar uncertainty categorization<br />
<br />
if is_set (Year) and is_set (Date) then -- both |date= and |year= not normally needed; <br />
local mismatch = year_date_check (Year, Date)<br />
if 0 == mismatch then -- |year= does not match a year-value in |date=<br />
if is_set (error_message) then -- if there is already an error message<br />
error_message = error_message .. ', '; -- tack on this additional message<br />
end<br />
error_message = error_message .. '&#124;year= / &#124;date= mismatch';<br />
elseif 1 == mismatch then -- |year= matches year-value in |date=<br />
add_maint_cat ('date_year');<br />
end<br />
end<br />
<br />
if not is_set(error_message) then -- error free dates only<br />
local modified = false; -- flag<br />
<br />
if is_set (DF) then -- if we need to reformat dates<br />
modified = reformat_dates (date_parameters_list, DF, false); -- reformat to DF format, use long month names if appropriate<br />
end<br />
<br />
if true == date_hyphen_to_dash (date_parameters_list) then -- convert hyphens to dashes where appropriate<br />
modified = true;<br />
add_maint_cat ('date_format'); -- hyphens were converted so add maint category<br />
end<br />
<br />
-- for those wikis that can and want to have English date names translated to the local language,<br />
-- uncomment these three lines. Not supported by en.wiki (for obvious reasons)<br />
-- set date_name_xlate() second argument to true to translate English digits to local digits (will translate ymd dates)<br />
-- if date_name_xlate (date_parameters_list, false) then<br />
-- modified = true;<br />
-- end<br />
<br />
if modified then -- if the date_parameters_list values were modified<br />
AccessDate = date_parameters_list['access-date'].val; -- overwrite date holding parameters with modified values<br />
ArchiveDate = date_parameters_list['archive-date'].val;<br />
Date = date_parameters_list['date'].val;<br />
DoiBroken = date_parameters_list['doi-broken-date'].val;<br />
LayDate = date_parameters_list['lay-date'].val;<br />
PublicationDate = date_parameters_list['publication-date'].val;<br />
end<br />
else<br />
table.insert( z.message_tail, { set_error( 'bad_date', {error_message}, true ) } ); -- add this error message<br />
end<br />
end -- end of do<br />
<br />
-- Account for the oddity that is {{cite journal}} with |pmc= set and |url= not set. Do this after date check but before COInS.<br />
-- Here we unset Embargo if PMC not embargoed (|embargo= not set in the citation) or if the embargo time has expired. Otherwise, holds embargo date<br />
Embargo = is_embargoed (Embargo);<br />
<br />
if config.CitationClass == "journal" and not is_set(URL) and is_set(ID_list['PMC']) then<br />
if not is_set (Embargo) then -- if not embargoed or embargo has expired<br />
URL=cfg.id_handlers['PMC'].prefix .. ID_list['PMC']; -- set url to be the same as the PMC external link if not embargoed<br />
URLorigin = cfg.id_handlers['PMC'].parameters[1]; -- set URLorigin to parameter name for use in error message if citation is missing a |title=<br />
if is_set(AccessDate) then -- access date requires |url=; pmc created url is not |url=<br />
table.insert( z.message_tail, { set_error( 'accessdate_missing_url', {}, true ) } );<br />
AccessDate = ''; -- unset<br />
end<br />
<br />
end<br />
end<br />
<br />
-- At this point fields may be nil if they weren't specified in the template use. We can use that fact.<br />
-- Test if citation has no title<br />
if not is_set(Title) and<br />
not is_set(TransTitle) and<br />
not is_set(ScriptTitle) then<br />
if 'episode' == config.CitationClass then -- special case for cite episode; TODO: is there a better way to do this?<br />
table.insert( z.message_tail, { set_error( 'citation_missing_title', {'series'}, true ) } );<br />
else<br />
table.insert( z.message_tail, { set_error( 'citation_missing_title', {'title'}, true ) } );<br />
end<br />
end<br />
<br />
if 'none' == Title and in_array (config.CitationClass, {'journal', 'citation'}) and is_set (Periodical) and 'journal' == A:ORIGIN('Periodical') then -- special case for journal cites<br />
Title = ''; -- set title to empty string<br />
add_maint_cat ('untitled');<br />
end<br />
<br />
check_for_url ({ -- add error message when any of these parameters contains a URL<br />
['title']=Title,<br />
[A:ORIGIN('Chapter')]=Chapter,<br />
[A:ORIGIN('Periodical')]=Periodical,<br />
[A:ORIGIN('PublisherName')] = PublisherName<br />
});<br />
<br />
-- COinS metadata (see <http://ocoins.info/>) for automated parsing of citation information.<br />
-- handle the oddity that is cite encyclopedia and {{citation |encyclopedia=something}}. Here we presume that<br />
-- when Periodical, Title, and Chapter are all set, then Periodical is the book (encyclopedia) title, Title<br />
-- is the article title, and Chapter is a section within the article. So, we remap <br />
<br />
local coins_chapter = Chapter; -- default assuming that remapping not required<br />
local coins_title = Title; -- et tu<br />
if 'encyclopaedia' == config.CitationClass or ('citation' == config.CitationClass and is_set (Encyclopedia)) then<br />
if is_set (Chapter) and is_set (Title) and is_set (Periodical) then -- if all are used then<br />
coins_chapter = Title; -- remap<br />
coins_title = Periodical;<br />
end<br />
end<br />
local coins_author = a; -- default for coins rft.au <br />
if 0 < #c then -- but if contributor list<br />
coins_author = c; -- use that instead<br />
end<br />
<br />
-- this is the function call to COinS()<br />
local OCinSoutput = COinS({<br />
['Periodical'] = Periodical,<br />
['Encyclopedia'] = Encyclopedia,<br />
['Chapter'] = make_coins_title (coins_chapter, ScriptChapter), -- Chapter and ScriptChapter stripped of bold / italic wikimarkup<br />
['Degree'] = Degree; -- cite thesis only<br />
['Title'] = make_coins_title (coins_title, ScriptTitle), -- Title and ScriptTitle stripped of bold / italic wikimarkup<br />
['PublicationPlace'] = PublicationPlace,<br />
['Date'] = COinS_date.rftdate, -- COinS_date has correctly formatted date if Date is valid;<br />
['Season'] = COinS_date.rftssn,<br />
['Chron'] = COinS_date.rftchron or (not COinS_date.rftdate and Date) or '', -- chron but if not set and invalid date format use Date; keep this last bit?<br />
['Series'] = Series,<br />
['Volume'] = Volume,<br />
['Issue'] = Issue,<br />
['Pages'] = get_coins_pages (first_set ({Sheet, Sheets, Page, Pages, At}, 5)), -- pages stripped of external links<br />
['Edition'] = Edition,<br />
['PublisherName'] = PublisherName,<br />
['URL'] = first_set ({ChapterURL, URL}, 2),<br />
['Authors'] = coins_author,<br />
['ID_list'] = ID_list,<br />
['RawPage'] = this_page.prefixedText,<br />
}, config.CitationClass);<br />
<br />
-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, and {{cite citeseerx}} AFTER generation of COinS data.<br />
if in_array (config.CitationClass, {'arxiv', 'biorxiv', 'citeseerx'}) then -- we have set rft.jtitle in COinS to arXiv, bioRxiv, or CiteSeerX now unset so it isn't displayed<br />
Periodical = ''; -- periodical not allowed in these templates; if article has been published, use cite journal<br />
end<br />
<br />
-- special case for cite newsgroup. Do this after COinS because we are modifying Publishername to include some static text<br />
if 'newsgroup' == config.CitationClass then<br />
if is_set (PublisherName) then<br />
PublisherName = substitute (cfg.messages['newsgroup'], external_link( 'news:' .. PublisherName, PublisherName, A:ORIGIN('PublisherName'), nil ));<br />
end<br />
end<br />
<br />
<br />
<br />
-- Now perform various field substitutions.<br />
-- We also add leading spaces and surrounding markup and punctuation to the<br />
-- various parts of the citation, but only when they are non-nil.<br />
local EditorCount; -- used only for choosing {ed.) or (eds.) annotation at end of editor name-list<br />
do<br />
local last_first_list;<br />
local control = { <br />
format = NameListFormat, -- empty string or 'vanc'<br />
maximum = nil, -- as if display-authors or display-editors not set<br />
lastauthoramp = LastAuthorAmp,<br />
page_name = this_page.text, -- get current page name so that we don't wikilink to it via editorlinkn<br />
mode = Mode<br />
};<br />
<br />
do -- do editor name list first because the now unsupported coauthors used to modify control table<br />
control.maximum , editor_etal = get_display_authors_editors (A['DisplayEditors'], #e, 'editors', editor_etal);<br />
last_first_list, EditorCount = list_people(control, e, editor_etal);<br />
<br />
if is_set (Editors) then<br />
if editor_etal then<br />
Editors = Editors .. ' ' .. cfg.messages['et al']; -- add et al. to editors parameter beause |display-editors=etal<br />
EditorCount = 2; -- with et al., |editors= is multiple names; spoof to display (eds.) annotation<br />
else<br />
EditorCount = 2; -- we don't know but assume |editors= is multiple names; spoof to display (eds.) annotation<br />
end<br />
else<br />
Editors = last_first_list; -- either an author name list or an empty string<br />
end<br />
<br />
if 1 == EditorCount and (true == editor_etal or 1 < #e) then -- only one editor displayed but includes etal then <br />
EditorCount = 2; -- spoof to display (eds.) annotation<br />
end<br />
end<br />
do -- now do interviewers<br />
control.maximum = #interviewers_list; -- number of interviewerss<br />
Interviewers = list_people(control, interviewers_list, false); -- et al not currently supported<br />
end<br />
do -- now do translators<br />
control.maximum = #t; -- number of translators<br />
Translators = list_people(control, t, false); -- et al not currently supported<br />
end<br />
do -- now do contributors<br />
control.maximum = #c; -- number of contributors<br />
Contributors = list_people(control, c, false); -- et al not currently supported<br />
end<br />
do -- now do authors<br />
control.maximum , author_etal = get_display_authors_editors (A['DisplayAuthors'], #a, 'authors', author_etal);<br />
<br />
last_first_list = list_people(control, a, author_etal);<br />
<br />
if is_set (Authors) then<br />
Authors, author_etal = name_has_etal (Authors, author_etal, false); -- find and remove variations on et al.<br />
if author_etal then<br />
Authors = Authors .. ' ' .. cfg.messages['et al']; -- add et al. to authors parameter<br />
end<br />
else<br />
Authors = last_first_list; -- either an author name list or an empty string<br />
end<br />
end -- end of do<br />
<br />
if is_set (Authors) and is_set (Collaboration) then<br />
Authors = Authors .. ' (' .. Collaboration .. ')'; -- add collaboration after et al.<br />
end<br />
<br />
end<br />
<br />
-- apply |[xx-]format= styling; at the end, these parameters hold correctly styled format annotation,<br />
-- an error message if the associated url is not set, or an empty string for concatenation<br />
ArchiveFormat = style_format (ArchiveFormat, ArchiveURL, 'archive-format', 'archive-url');<br />
ConferenceFormat = style_format (ConferenceFormat, ConferenceURL, 'conference-format', 'conference-url');<br />
Format = style_format (Format, URL, 'format', 'url');<br />
LayFormat = style_format (LayFormat, LayURL, 'lay-format', 'lay-url');<br />
TranscriptFormat = style_format (TranscriptFormat, TranscriptURL, 'transcript-format', 'transcripturl');<br />
<br />
-- special case for chapter format so no error message or cat when chapter not supported<br />
if not (in_array(config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx'}) or<br />
('citation' == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia))) then<br />
ChapterFormat = style_format (ChapterFormat, ChapterURL, 'chapter-format', 'chapter-url');<br />
end<br />
<br />
if not is_set(URL) then<br />
if in_array(config.CitationClass, {"web","podcast", "mailinglist"}) then -- |url= required for cite web, cite podcast, and cite mailinglist<br />
table.insert( z.message_tail, { set_error( 'cite_web_url', {}, true ) } );<br />
end<br />
<br />
-- do we have |accessdate= without either |url= or |chapter-url=?<br />
if is_set(AccessDate) and not is_set(ChapterURL)then -- ChapterURL may be set when URL is not set;<br />
table.insert( z.message_tail, { set_error( 'accessdate_missing_url', {}, true ) } );<br />
AccessDate = '';<br />
end<br />
end<br />
<br />
local OriginalURL, OriginalURLorigin, OriginalFormat, OriginalAccess;<br />
DeadURL = DeadURL:lower(); -- used later when assembling archived text<br />
if is_set( ArchiveURL ) then<br />
if is_set (ChapterURL) then -- if chapter-url is set apply archive url to it<br />
OriginalURL = ChapterURL; -- save copy of source chapter's url for archive text<br />
OriginalURLorigin = ChapterURLorigin; -- name of chapter-url parameter for error messages<br />
OriginalFormat = ChapterFormat; -- and original |chapter-format=<br />
if 'no' ~= DeadURL then<br />
ChapterURL = ArchiveURL -- swap-in the archive's url<br />
ChapterURLorigin = A:ORIGIN('ArchiveURL') -- name of archive-url parameter for error messages<br />
ChapterFormat = ArchiveFormat or ''; -- swap in archive's format<br />
ChapterUrlAccess = nil; -- restricted access levels do not make sense for archived urls<br />
end<br />
elseif is_set (URL) then<br />
OriginalURL = URL; -- save copy of original source URL<br />
OriginalURLorigin = URLorigin; -- name of url parameter for error messages<br />
OriginalFormat = Format; -- and original |format=<br />
OriginalAccess = UrlAccess;<br />
if 'no' ~= DeadURL then -- if URL set then archive-url applies to it<br />
URL = ArchiveURL -- swap-in the archive's url<br />
URLorigin = A:ORIGIN('ArchiveURL') -- name of archive url parameter for error messages<br />
Format = ArchiveFormat or ''; -- swap in archive's format<br />
UrlAccess = nil; -- restricted access levels do not make sense for archived urls<br />
end<br />
end<br />
end<br />
<br />
if in_array(config.CitationClass, {'web','news','journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'arxiv', 'biorxiv', 'citeseerx'}) or -- if any of the 'periodical' cites except encyclopedia<br />
('citation' == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia)) then<br />
local chap_param;<br />
if is_set (Chapter) then -- get a parameter name from one of these chapter related meta-parameters<br />
chap_param = A:ORIGIN ('Chapter')<br />
elseif is_set (TransChapter) then<br />
chap_param = A:ORIGIN ('TransChapter')<br />
elseif is_set (ChapterURL) then<br />
chap_param = A:ORIGIN ('ChapterURL')<br />
elseif is_set (ScriptChapter) then<br />
chap_param = A:ORIGIN ('ScriptChapter')<br />
else is_set (ChapterFormat)<br />
chap_param = A:ORIGIN ('ChapterFormat')<br />
end<br />
<br />
if is_set (chap_param) then -- if we found one<br />
table.insert( z.message_tail, { set_error( 'chapter_ignored', {chap_param}, true ) } ); -- add error message<br />
Chapter = ''; -- and set them to empty string to be safe with concatenation<br />
TransChapter = '';<br />
ChapterURL = '';<br />
ScriptChapter = '';<br />
ChapterFormat = '';<br />
end<br />
else -- otherwise, format chapter / article title<br />
local no_quotes = false; -- default assume that we will be quoting the chapter parameter value<br />
if is_set (Contribution) and 0 < #c then -- if this is a contribution with contributor(s)<br />
if in_array (Contribution:lower(), cfg.keywords.contribution) then -- and a generic contribution title<br />
no_quotes = true; -- then render it unquoted<br />
end<br />
end<br />
<br />
Chapter = format_chapter_title (ScriptChapter, Chapter, TransChapter, ChapterURL, ChapterURLorigin, no_quotes, ChapterUrlAccess); -- Contribution is also in Chapter<br />
if is_set (Chapter) then<br />
Chapter = Chapter .. ChapterFormat ;<br />
if 'map' == config.CitationClass and is_set (TitleType) then<br />
Chapter = Chapter .. ' ' .. TitleType; -- map annotation here; not after title<br />
end<br />
Chapter = Chapter.. sepc .. ' ';<br />
elseif is_set (ChapterFormat) then -- |chapter= not set but |chapter-format= is so ...<br />
Chapter = ChapterFormat .. sepc .. ' '; -- ... ChapterFormat has error message, we want to see it<br />
end<br />
end<br />
<br />
-- Format main title.<br />
if '...' == Title:sub (-3) then -- if elipsis is the last three characters of |title=<br />
Title = mw.ustring.gsub (Title, '(%.%.%.)%.+$', '%1'); -- limit the number of dots to three<br />
elseif not mw.ustring.find (Title, '%.%s*%a%.') then -- end of title is not a 'dot-(optional space-)letter-dot' initialism<br />
Title = mw.ustring.gsub(Title, '%'..sepc..'$', ''); -- remove any trailing separator character<br />
end<br />
if is_set(TitleLink) and is_set(Title) then<br />
Title = make_wikilink (TitleLink, Title);<br />
end<br />
<br />
if in_array(config.CitationClass, {'web', 'news', 'journal', 'magazine', 'pressrelease', 'podcast', 'newsgroup', 'mailinglist', 'interview', 'arxiv', 'biorxiv', 'citeseerx'}) or<br />
('citation' == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia)) or<br />
('map' == config.CitationClass and is_set (Periodical)) then -- special case for cite map when the map is in a periodical treat as an article<br />
Title = kern_quotes (Title); -- if necessary, separate title's leading and trailing quote marks from Module provided quote marks<br />
Title = wrap_style ('quoted-title', Title);<br />
Title = script_concatenate (Title, ScriptTitle); -- <bdi> tags, lang atribute, categorization, etc; must be done after title is wrapped<br />
TransTitle= wrap_style ('trans-quoted-title', TransTitle );<br />
elseif 'report' == config.CitationClass then -- no styling for cite report<br />
Title = script_concatenate (Title, ScriptTitle); -- <bdi> tags, lang atribute, categorization, etc; must be done after title is wrapped<br />
TransTitle= wrap_style ('trans-quoted-title', TransTitle ); -- for cite report, use this form for trans-title<br />
else<br />
Title = wrap_style ('italic-title', Title);<br />
Title = script_concatenate (Title, ScriptTitle); -- <bdi> tags, lang atribute, categorization, etc; must be done after title is wrapped<br />
TransTitle = wrap_style ('trans-italic-title', TransTitle);<br />
end<br />
<br />
local TransError = "";<br />
if is_set(TransTitle) then<br />
if is_set(Title) then<br />
TransTitle = " " .. TransTitle;<br />
else<br />
TransError = " " .. set_error( 'trans_missing_title', {'title'} );<br />
end<br />
end<br />
<br />
if is_set(Title) then<br />
if not is_set(TitleLink) and is_set(URL) then<br />
<br />
Title = external_link( URL, Title, URLorigin, UrlAccess ) .. TransTitle .. TransError .. Format;<br />
URL = ''; -- unset these because no longer needed<br />
Format = "";<br />
else<br />
Title = Title .. TransTitle .. TransError;<br />
end<br />
else<br />
Title = TransTitle .. TransError;<br />
end<br />
<br />
if is_set(Place) then<br />
Place = " " .. wrap_msg ('written', Place, use_lowercase) .. sepc .. " ";<br />
end<br />
<br />
if is_set (Conference) then<br />
if is_set (ConferenceURL) then<br />
Conference = external_link( ConferenceURL, Conference, ConferenceURLorigin, nil );<br />
end<br />
Conference = sepc .. " " .. Conference .. ConferenceFormat;<br />
elseif is_set(ConferenceURL) then<br />
Conference = sepc .. " " .. external_link( ConferenceURL, nil, ConferenceURLorigin, nil );<br />
end<br />
<br />
if not is_set(Position) then<br />
local Minutes = A['Minutes'];<br />
local Time = A['Time'];<br />
<br />
if is_set(Minutes) then<br />
if is_set (Time) then<br />
table.insert( z.message_tail, { set_error( 'redundant_parameters', {wrap_style ('parameter', 'minutes') .. ' and ' .. wrap_style ('parameter', 'time')}, true ) } );<br />
end<br />
Position = " " .. Minutes .. " " .. cfg.messages['minutes'];<br />
else<br />
if is_set(Time) then<br />
local TimeCaption = A['TimeCaption']<br />
if not is_set(TimeCaption) then<br />
TimeCaption = cfg.messages['event'];<br />
if sepc ~= '.' then<br />
TimeCaption = TimeCaption:lower();<br />
end<br />
end<br />
Position = " " .. TimeCaption .. " " .. Time;<br />
end<br />
end<br />
else<br />
Position = " " .. Position;<br />
At = '';<br />
end<br />
<br />
Page, Pages, Sheet, Sheets = format_pages_sheets (Page, Pages, Sheet, Sheets, config.CitationClass, Periodical_origin, sepc, NoPP, use_lowercase);<br />
<br />
At = is_set(At) and (sepc .. " " .. At) or "";<br />
Position = is_set(Position) and (sepc .. " " .. Position) or "";<br />
if config.CitationClass == 'map' then<br />
local Section = A['Section'];<br />
local Sections = A['Sections'];<br />
local Inset = A['Inset'];<br />
<br />
if is_set( Inset ) then<br />
Inset = sepc .. " " .. wrap_msg ('inset', Inset, use_lowercase);<br />
end <br />
<br />
if is_set( Sections ) then<br />
Section = sepc .. " " .. wrap_msg ('sections', Sections, use_lowercase);<br />
elseif is_set( Section ) then<br />
Section = sepc .. " " .. wrap_msg ('section', Section, use_lowercase);<br />
end<br />
At = At .. Inset .. Section; <br />
end <br />
<br />
if is_set (Language) then<br />
Language = language_parameter (Language); -- format, categories, name from ISO639-1, etc<br />
else<br />
Language=""; -- language not specified so make sure this is an empty string;<br />
--[[ TODO: need to extract the wrap_msg from language_parameter<br />
so that we can solve parentheses bunching problem with Format/Language/TitleType<br />
]]<br />
end<br />
<br />
Others = is_set(Others) and (sepc .. " " .. Others) or "";<br />
<br />
if is_set (Translators) then<br />
Others = safe_join ({sepc .. ' ', wrap_msg ('translated', Translators, use_lowercase), Others}, sepc);<br />
end<br />
if is_set (Interviewers) then<br />
Others = safe_join ({sepc .. ' ', wrap_msg ('interview', Interviewers, use_lowercase), Others}, sepc);<br />
end<br />
<br />
TitleNote = is_set(TitleNote) and (sepc .. " " .. TitleNote) or "";<br />
if is_set (Edition) then<br />
if Edition:match ('%f[%a][Ee]d%.?$') or Edition:match ('%f[%a][Ee]dition$') then<br />
add_maint_cat ('extra_text', 'edition');<br />
end<br />
Edition = " " .. wrap_msg ('edition', Edition);<br />
else<br />
Edition = '';<br />
end<br />
<br />
Series = is_set(Series) and (sepc .. " " .. Series) or "";<br />
OrigYear = is_set(OrigYear) and (" [" .. OrigYear .. "]") or ""; -- TODO: presentation<br />
<br />
Agency = is_set(Agency) and (sepc .. " " .. Agency) or "";<br />
<br />
Volume = format_volume_issue (Volume, Issue, config.CitationClass, Periodical_origin, sepc, use_lowercase);<br />
<br />
------------------------------------ totally unrelated data<br />
if is_set(Via) then<br />
Via = " " .. wrap_msg ('via', Via);<br />
end<br />
<br />
--[[<br />
Subscription implies paywall; Registration does not. If both are used in a citation, the subscription required link<br />
note is displayed. There are no error messages for this condition.<br />
<br />
]]<br />
if is_set (SubscriptionRequired) then<br />
SubscriptionRequired = sepc .. " " .. cfg.messages['subscription']; -- subscription required message<br />
elseif is_set (RegistrationRequired) then<br />
SubscriptionRequired = sepc .. " " .. cfg.messages['registration']; -- registration required message<br />
else<br />
SubscriptionRequired = ''; -- either or both might be set to something other than yes true y<br />
end<br />
<br />
if is_set(AccessDate) then<br />
local retrv_text = " " .. cfg.messages['retrieved']<br />
<br />
AccessDate = nowrap_date (AccessDate); -- wrap in nowrap span if date in appropriate format<br />
if (sepc ~= ".") then retrv_text = retrv_text:lower() end -- if mode is cs2, lower case<br />
AccessDate = substitute (retrv_text, AccessDate); -- add retrieved text<br />
<br />
AccessDate = substitute (cfg.presentation['accessdate'], {sepc, AccessDate}); -- allow editors to hide accessdates<br />
end<br />
<br />
if is_set(ID) then ID = sepc .." ".. ID; end<br />
if "thesis" == config.CitationClass and is_set(Docket) then<br />
ID = sepc .." Docket ".. Docket .. ID;<br />
end<br />
if "report" == config.CitationClass and is_set(Docket) then -- for cite report when |docket= is set<br />
ID = sepc .. ' ' .. Docket; -- overwrite ID even if |id= is set<br />
end<br />
<br />
ID_list = build_id_list( ID_list, {IdAccessLevels=ID_access_levels, DoiBroken = DoiBroken, ASINTLD = ASINTLD, IgnoreISBN = IgnoreISBN, Embargo=Embargo, Class = Class} );<br />
<br />
if is_set(URL) then<br />
URL = " " .. external_link( URL, nil, URLorigin, UrlAccess );<br />
end<br />
<br />
if is_set(Quote) then<br />
if Quote:sub(1,1) == '"' and Quote:sub(-1,-1) == '"' then -- if first and last characters of quote are quote marks<br />
Quote = Quote:sub(2,-2); -- strip them off<br />
end<br />
Quote = sepc .." " .. wrap_style ('quoted-text', Quote ); -- wrap in <q>...</q> tags<br />
PostScript = ""; -- cs1|2 does not supply terminal punctuation when |quote= is set<br />
end<br />
<br />
local Archived<br />
if is_set(ArchiveURL) then<br />
if not is_set(ArchiveDate) then<br />
ArchiveDate = set_error('archive_missing_date');<br />
end<br />
if "no" == DeadURL then<br />
local arch_text = cfg.messages['archived'];<br />
if sepc ~= "." then arch_text = arch_text:lower() end<br />
Archived = sepc .. " " .. substitute( cfg.messages['archived-not-dead'],<br />
{ external_link( ArchiveURL, arch_text, A:ORIGIN('ArchiveURL'), nil ) .. ArchiveFormat, ArchiveDate } );<br />
if not is_set(OriginalURL) then<br />
Archived = Archived .. " " .. set_error('archive_missing_url'); <br />
end<br />
elseif is_set(OriginalURL) then -- DeadURL is empty, 'yes', 'true', 'y', 'unfit', 'usurped'<br />
local arch_text = cfg.messages['archived-dead'];<br />
if sepc ~= "." then arch_text = arch_text:lower() end<br />
if in_array (DeadURL, {'unfit', 'usurped', 'bot: unknown'}) then<br />
Archived = sepc .. " " .. 'Archived from the original on ' .. ArchiveDate; -- format already styled<br />
if 'bot: unknown' == DeadURL then<br />
add_maint_cat ('bot:_unknown'); -- and add a category if not already added<br />
else<br />
add_maint_cat ('unfit'); -- and add a category if not already added<br />
end<br />
else -- DeadURL is empty, 'yes', 'true', or 'y'<br />
Archived = sepc .. " " .. substitute( arch_text,<br />
{ external_link( OriginalURL, cfg.messages['original'], OriginalURLorigin, OriginalAccess ) .. OriginalFormat, ArchiveDate } ); -- format already styled<br />
end <br />
else<br />
local arch_text = cfg.messages['archived-missing'];<br />
if sepc ~= "." then arch_text = arch_text:lower() end<br />
Archived = sepc .. " " .. substitute( arch_text, <br />
{ set_error('archive_missing_url'), ArchiveDate } );<br />
end<br />
elseif is_set (ArchiveFormat) then<br />
Archived = ArchiveFormat; -- if set and ArchiveURL not set ArchiveFormat has error message<br />
else<br />
Archived = ""<br />
end<br />
<br />
local Lay = '';<br />
if is_set(LayURL) then<br />
if is_set(LayDate) then LayDate = " (" .. LayDate .. ")" end<br />
if is_set(LaySource) then <br />
LaySource = " &ndash; ''" .. safe_for_italics(LaySource) .. "''";<br />
else<br />
LaySource = "";<br />
end<br />
if sepc == '.' then<br />
Lay = sepc .. " " .. external_link( LayURL, cfg.messages['lay summary'], A:ORIGIN('LayURL'), nil ) .. LayFormat .. LaySource .. LayDate<br />
else<br />
Lay = sepc .. " " .. external_link( LayURL, cfg.messages['lay summary']:lower(), A:ORIGIN('LayURL'), nil ) .. LayFormat .. LaySource .. LayDate<br />
end <br />
elseif is_set (LayFormat) then -- Test if |lay-format= is given without giving a |lay-url=<br />
Lay = sepc .. LayFormat; -- if set and LayURL not set, then LayFormat has error message<br />
end<br />
<br />
if is_set(Transcript) then<br />
if is_set(TranscriptURL) then<br />
Transcript = external_link( TranscriptURL, Transcript, TranscriptURLorigin, nil );<br />
end<br />
Transcript = sepc .. ' ' .. Transcript .. TranscriptFormat;<br />
elseif is_set(TranscriptURL) then<br />
Transcript = external_link( TranscriptURL, nil, TranscriptURLorigin, nil );<br />
end<br />
<br />
local Publisher;<br />
if is_set(PublicationDate) then<br />
PublicationDate = wrap_msg ('published', PublicationDate);<br />
end<br />
if is_set(PublisherName) then<br />
if is_set(PublicationPlace) then<br />
Publisher = sepc .. " " .. PublicationPlace .. ": " .. PublisherName .. PublicationDate;<br />
else<br />
Publisher = sepc .. " " .. PublisherName .. PublicationDate; <br />
end <br />
elseif is_set(PublicationPlace) then <br />
Publisher= sepc .. " " .. PublicationPlace .. PublicationDate;<br />
else <br />
Publisher = PublicationDate;<br />
end<br />
<br />
-- Several of the above rely upon detecting this as nil, so do it last.<br />
if is_set(Periodical) then<br />
if is_set(Title) or is_set(TitleNote) then <br />
Periodical = sepc .. " " .. wrap_style ('italic-title', Periodical) <br />
else <br />
Periodical = wrap_style ('italic-title', Periodical)<br />
end<br />
end<br />
<br />
--[[<br />
Handle the oddity that is cite speech. This code overrides whatever may be the value assigned to TitleNote (through |department=) and forces it to be " (Speech)" so that<br />
the annotation directly follows the |title= parameter value in the citation rather than the |event= parameter value (if provided).<br />
]]<br />
if "speech" == config.CitationClass then -- cite speech only<br />
TitleNote = " (Speech)"; -- annotate the citation<br />
if is_set (Periodical) then -- if Periodical, perhaps because of an included |website= or |journal= parameter <br />
if is_set (Conference) then -- and if |event= is set<br />
Conference = Conference .. sepc .. " "; -- then add appropriate punctuation to the end of the Conference variable before rendering<br />
end<br />
end<br />
end<br />
<br />
-- Piece all bits together at last. Here, all should be non-nil.<br />
-- We build things this way because it is more efficient in LUA<br />
-- not to keep reassigning to the same string variable over and over.<br />
<br />
local tcommon;<br />
local tcommon2; -- used for book cite when |contributor= is set<br />
<br />
if in_array(config.CitationClass, {"journal","citation"}) and is_set(Periodical) then<br />
if is_set(Others) then Others = safe_join ({Others, sepc .. " "}, sepc) end -- add terminal punctuation & space; check for dup sepc; TODO why do we need to do this here?<br />
tcommon = safe_join( {Others, Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, Edition, Publisher, Agency, Volume}, sepc );<br />
elseif in_array(config.CitationClass, {"book","citation"}) and not is_set(Periodical) then -- special cases for book cites<br />
if is_set (Contributors) then -- when we are citing foreword, preface, introduction, etc<br />
tcommon = safe_join( {Title, TitleNote}, sepc ); -- author and other stuff will come after this and before tcommon2<br />
tcommon2 = safe_join( {Conference, Periodical, Format, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc );<br />
else<br />
tcommon = safe_join( {Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc );<br />
end<br />
<br />
elseif 'map' == config.CitationClass then -- special cases for cite map<br />
if is_set (Chapter) then -- map in a book; TitleType is part of Chapter<br />
tcommon = safe_join( {Title, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc );<br />
elseif is_set (Periodical) then -- map in a periodical<br />
tcommon = safe_join( {Title, TitleType, Format, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc );<br />
else -- a sheet or stand-alone map<br />
tcommon = safe_join( {Title, TitleType, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher}, sepc );<br />
end<br />
<br />
elseif 'episode' == config.CitationClass then -- special case for cite episode<br />
tcommon = safe_join( {Title, TitleNote, TitleType, Series, Transcript, Language, Edition, Publisher}, sepc );<br />
<br />
else -- all other CS1 templates<br />
tcommon = safe_join( {Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, <br />
Volume, Others, Edition, Publisher, Agency}, sepc );<br />
end<br />
<br />
if #ID_list > 0 then<br />
ID_list = safe_join( { sepc .. " ", table.concat( ID_list, sepc .. " " ), ID }, sepc );<br />
else<br />
ID_list = ID;<br />
end<br />
<br />
local idcommon = safe_join( { ID_list, URL, Archived, AccessDate, Via, SubscriptionRequired, Lay, Quote }, sepc );<br />
local text;<br />
local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;<br />
<br />
if is_set(Date) then<br />
if is_set (Authors) or is_set (Editors) then -- date follows authors or editors when authors not set<br />
Date = " (" .. Date ..")" .. OrigYear .. sepc .. " "; -- in paranetheses<br />
else -- neither of authors and editors set<br />
if (string.sub(tcommon,-1,-1) == sepc) then -- if the last character of tcommon is sepc<br />
Date = " " .. Date .. OrigYear; -- Date does not begin with sepc<br />
else<br />
Date = sepc .. " " .. Date .. OrigYear; -- Date begins with sepc<br />
end<br />
end<br />
end <br />
if is_set(Authors) then<br />
if (not is_set (Date)) then -- when date is set it's in parentheses; no Authors termination<br />
Authors = terminate_name_list (Authors, sepc); -- when no date, terminate with 0 or 1 sepc and a space<br />
end<br />
if is_set(Editors) then<br />
local in_text = " ";<br />
local post_text = "";<br />
if is_set(Chapter) and 0 == #c then<br />
in_text = in_text .. cfg.messages['in'] .. " "<br />
if (sepc ~= '.') then<br />
in_text = in_text:lower() -- lowercase for cs2<br />
end<br />
else<br />
if EditorCount <= 1 then<br />
post_text = ", " .. cfg.messages['editor'];<br />
else<br />
post_text = ", " .. cfg.messages['editors'];<br />
end<br />
end <br />
Editors = terminate_name_list (in_text .. Editors .. post_text, sepc); -- terminate with 0 or 1 sepc and a space<br />
end<br />
if is_set (Contributors) then -- book cite and we're citing the intro, preface, etc<br />
local by_text = sepc .. ' ' .. cfg.messages['by'] .. ' ';<br />
if (sepc ~= '.') then by_text = by_text:lower() end -- lowercase for cs2<br />
Authors = by_text .. Authors; -- author follows title so tweak it here<br />
if is_set (Editors) and is_set (Date) then -- when Editors make sure that Authors gets terminated<br />
Authors = terminate_name_list (Authors, sepc); -- terminate with 0 or 1 sepc and a space<br />
end<br />
if (not is_set (Date)) then -- when date is set it's in parentheses; no Contributors termination<br />
Contributors = terminate_name_list (Contributors, sepc); -- terminate with 0 or 1 sepc and a space<br />
end<br />
text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon }, sepc );<br />
else<br />
text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon }, sepc );<br />
end<br />
elseif is_set(Editors) then<br />
if is_set(Date) then<br />
if EditorCount <= 1 then<br />
Editors = Editors .. ", " .. cfg.messages['editor'];<br />
else<br />
Editors = Editors .. ", " .. cfg.messages['editors'];<br />
end<br />
else<br />
if EditorCount <= 1 then<br />
Editors = Editors .. " (" .. cfg.messages['editor'] .. ")" .. sepc .. " "<br />
else<br />
Editors = Editors .. " (" .. cfg.messages['editors'] .. ")" .. sepc .. " "<br />
end<br />
end<br />
text = safe_join( {Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc );<br />
else<br />
if in_array(config.CitationClass, {"journal","citation"}) and is_set(Periodical) then<br />
text = safe_join( {Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc );<br />
else<br />
text = safe_join( {Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc );<br />
end<br />
end<br />
<br />
if is_set(PostScript) and PostScript ~= sepc then<br />
text = safe_join( {text, sepc}, sepc ); --Deals with italics, spaces, etc.<br />
text = text:sub(1,-sepc:len()-1);<br />
end <br />
<br />
text = safe_join( {text, PostScript}, sepc );<br />
<br />
-- Now enclose the whole thing in a <cite/> element<br />
local options = {};<br />
<br />
if is_set(config.CitationClass) and config.CitationClass ~= "citation" then<br />
options.class = config.CitationClass;<br />
options.class = "citation " .. config.CitationClass; -- class=citation required for blue highlight when used with |ref=<br />
else<br />
options.class = "citation";<br />
end<br />
<br />
if is_set(Ref) and Ref:lower() ~= "none" then -- set reference anchor if appropriate<br />
local id = Ref<br />
if ('harv' == Ref ) then<br />
local namelist = {}; -- holds selected contributor, author, editor name list<br />
local year = first_set ({Year, anchor_year}, 2); -- Year first for legacy citations and for YMD dates that require disambiguation<br />
<br />
if #c > 0 then -- if there is a contributor list<br />
namelist = c; -- select it<br />
elseif #a > 0 then -- or an author list<br />
namelist = a;<br />
elseif #e > 0 then -- or an editor list<br />
namelist = e;<br />
end<br />
if #namelist > 0 then -- if there are names in namelist<br />
id = anchor_id (namelist, year); -- go make the CITEREF anchor<br />
else<br />
id = ''; -- unset<br />
end<br />
end<br />
options.id = id;<br />
end<br />
<br />
if string.len(text:gsub("<span[^>/]*>(.-)</span>", "%1"):gsub("%b<>","")) <= 2 then -- remove <span> tags and other html-like markup; then get length of what remains<br />
z.error_categories = {};<br />
text = set_error('empty_citation');<br />
z.message_tail = {};<br />
end<br />
<br />
local render = {}; -- here we collect the final bits for concatenation into the rendered citation<br />
<br />
if is_set(options.id) then -- here we wrap the rendered citation in <cite ...>...</cite> tags<br />
table.insert (render, substitute (cfg.presentation['cite-id'], {mw.uri.anchorEncode(options.id), mw.text.nowiki(options.class), text})); -- when |ref= is set<br />
else<br />
table.insert (render, substitute (cfg.presentation['cite'], {mw.text.nowiki(options.class), text})); -- all other cases<br />
end <br />
<br />
table.insert (render, substitute (cfg.presentation['ocins'], {OCinSoutput})); -- append metadata to the citation<br />
<br />
if #z.message_tail ~= 0 then<br />
table.insert (render, ' ');<br />
for i,v in ipairs( z.message_tail ) do<br />
if is_set(v[1]) then<br />
if i == #z.message_tail then<br />
table.insert (render, error_comment( v[1], v[2] ));<br />
else<br />
table.insert (render, error_comment( v[1] .. "; ", v[2] ));<br />
end<br />
end<br />
end<br />
end<br />
<br />
if #z.maintenance_cats ~= 0 then<br />
table.insert (render, '<span class="citation-comment" style="display:none; color:#33aa33; margin-left:0.3em">');<br />
for _, v in ipairs( z.maintenance_cats ) do -- append maintenance categories<br />
table.insert (render, v);<br />
table.insert (render, ' (');<br />
table.insert (render, make_wikilink (':Category:' .. v, 'link'));<br />
table.insert (render, ') ');<br />
end<br />
table.insert (render, '</span>');<br />
end<br />
<br />
no_tracking_cats = no_tracking_cats:lower();<br />
if in_array(no_tracking_cats, {"", "no", "false", "n"}) then<br />
for _, v in ipairs( z.error_categories ) do<br />
table.insert (render, make_wikilink ('Category:' .. v));<br />
end<br />
for _, v in ipairs( z.maintenance_cats ) do -- append maintenance categories<br />
table.insert (render, make_wikilink ('Category:' .. v));<br />
end<br />
for _, v in ipairs( z.properties_cats ) do -- append properties categories<br />
table.insert (render, make_wikilink ('Category:' .. v));<br />
end<br />
end<br />
<br />
return table.concat (render); <br />
end<br />
<br />
<br />
--[[--------------------------< C S 1 . C I T A T I O N >------------------------------------------------------<br />
<br />
This is used by templates such as {{cite book}} to create the actual citation text.<br />
<br />
]]<br />
<br />
function cs1.citation(frame)<br />
Frame = frame; -- save a copy incase we need to display an error message in preview mode<br />
local pframe = frame:getParent()<br />
local validation, utilities, identifiers, metadata;<br />
<br />
if nil ~= string.find (frame:getTitle(), 'sandbox', 1, true) then -- did the {{#invoke:}} use sandbox version?<br />
cfg = mw.loadData ('Module:Citation/CS1/Configuration/sandbox'); -- load sandbox versions of support modules<br />
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist/sandbox');<br />
utilities = require ('Module:Citation/CS1/Utilities/sandbox');<br />
validation = require ('Module:Citation/CS1/Date_validation/sandbox');<br />
identifiers = require ('Module:Citation/CS1/Identifiers/sandbox');<br />
metadata = require ('Module:Citation/CS1/COinS/sandbox');<br />
<br />
else -- otherwise<br />
cfg = mw.loadData ('Module:Citation/CS1/Configuration'); -- load live versions of support modules<br />
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist');<br />
utilities = require ('Module:Citation/CS1/Utilities');<br />
validation = require ('Module:Citation/CS1/Date_validation');<br />
identifiers = require ('Module:Citation/CS1/Identifiers');<br />
metadata = require ('Module:Citation/CS1/COinS');<br />
end<br />
<br />
utilities.set_selected_modules (cfg); -- so that functions in Utilities can see the cfg tables<br />
identifiers.set_selected_modules (cfg, utilities); -- so that functions in Identifiers can see the selected cfg tables and selected Utilities module<br />
validation.set_selected_modules (cfg, utilities); -- so that functions in Date validataion can see selected cfg tables and the selected Utilities module<br />
metadata.set_selected_modules (cfg, utilities); -- so that functions in COinS can see the selected cfg tables and selected Utilities module<br />
<br />
dates = validation.dates; -- imported functions from Module:Citation/CS1/Date validation<br />
year_date_check = validation.year_date_check;<br />
reformat_dates = validation.reformat_dates;<br />
date_hyphen_to_dash = validation.date_hyphen_to_dash;<br />
date_name_xlate = validation.date_name_xlate;<br />
<br />
is_set = utilities.is_set; -- imported functions from Module:Citation/CS1/Utilities<br />
in_array = utilities.in_array;<br />
substitute = utilities.substitute;<br />
error_comment = utilities.error_comment;<br />
set_error = utilities.set_error;<br />
select_one = utilities.select_one;<br />
add_maint_cat = utilities.add_maint_cat;<br />
wrap_style = utilities.wrap_style;<br />
safe_for_italics = utilities.safe_for_italics;<br />
is_wikilink = utilities.is_wikilink;<br />
make_wikilink = utilities.make_wikilink;<br />
<br />
z = utilities.z; -- table of error and category tables in Module:Citation/CS1/Utilities<br />
<br />
extract_ids = identifiers.extract_ids; -- imported functions from Module:Citation/CS1/Identifiers<br />
build_id_list = identifiers.build_id_list;<br />
is_embargoed = identifiers.is_embargoed;<br />
extract_id_access_levels = identifiers.extract_id_access_levels;<br />
<br />
make_coins_title = metadata.make_coins_title; -- imported functions from Module:Citation/CS1/COinS<br />
get_coins_pages = metadata.get_coins_pages;<br />
COinS = metadata.COinS;<br />
<br />
local args = {}; -- table where we store all of the template's arguments<br />
local suggestions = {}; -- table where we store suggestions if we need to loadData them<br />
local error_text, error_state;<br />
<br />
local config = {}; -- table to store parameters from the module {{#invoke:}}<br />
for k, v in pairs( frame.args ) do<br />
config[k] = v;<br />
-- args[k] = v; -- debug tool that allows us to render a citation from module {{#invoke:}}<br />
end <br />
<br />
local capture; -- the single supported capture when matching unknown parameters using patterns<br />
for k, v in pairs( pframe.args ) do<br />
if v ~= '' then<br />
if ('string' == type (k)) then<br />
k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- for enumerated parameters, translate 'local' digits to Western 0-9<br />
end<br />
if not validate( k, config.CitationClass ) then <br />
error_text = "";<br />
if type( k ) ~= 'string' then<br />
-- Exclude empty numbered parameters<br />
if v:match("%S+") ~= nil then<br />
error_text, error_state = set_error( 'text_ignored', {v}, true );<br />
end<br />
elseif validate( k:lower(), config.CitationClass ) then <br />
error_text, error_state = set_error( 'parameter_ignored_suggest', {k, k:lower()}, true );<br />
else<br />
if nil == suggestions.suggestions then -- if this table is nil then we need to load it<br />
if nil ~= string.find (frame:getTitle(), 'sandbox', 1, true) then -- did the {{#invoke:}} use sandbox version?<br />
suggestions = mw.loadData( 'Module:Citation/CS1/Suggestions/sandbox' ); -- use the sandbox version<br />
else<br />
suggestions = mw.loadData( 'Module:Citation/CS1/Suggestions' ); -- use the live version<br />
end<br />
end<br />
for pattern, param in pairs (suggestions.patterns) do -- loop through the patterns to see if we can suggest a proper parameter<br />
capture = k:match (pattern); -- the whole match if no caputre in pattern else the capture if a match<br />
if capture then -- if the pattern matches <br />
param = substitute( param, capture ); -- add the capture to the suggested parameter (typically the enumerator)<br />
error_text, error_state = set_error( 'parameter_ignored_suggest', {k, param}, true ); -- set the error message<br />
end<br />
end<br />
if not is_set (error_text) then -- couldn't match with a pattern, is there an expicit suggestion?<br />
if suggestions.suggestions[ k:lower() ] ~= nil then<br />
error_text, error_state = set_error( 'parameter_ignored_suggest', {k, suggestions.suggestions[ k:lower() ]}, true );<br />
else<br />
error_text, error_state = set_error( 'parameter_ignored', {k}, true );<br />
v = ''; -- unset value assigned to unrecognized parameters (this for the limited parameter lists)<br />
end<br />
end<br />
end <br />
if error_text ~= '' then<br />
table.insert( z.message_tail, {error_text, error_state} );<br />
end <br />
end<br />
missing_pipe_check (v); -- do we think that there is a parameter that is missing a pipe?<br />
-- TODO: is this the best place for this translation?<br />
args[k] = v;<br />
elseif args[k] ~= nil or (k == 'postscript') then -- here when v is empty string<br />
args[k] = v; -- why do we do this? we don't support 'empty' parameters<br />
end <br />
end <br />
<br />
for k, v in pairs( args ) do<br />
if 'string' == type (k) then -- don't evaluate positional parameters<br />
has_invisible_chars (k, v);<br />
end<br />
end<br />
return citation0( config, args)<br />
end<br />
<br />
return cs1;</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Citation/CS1/COinS&diff=812Modul:Citation/CS1/COinS2019-08-09T03:36:11Z<p>Adminwiki: 1 revisi diimpor: Templat:Cite web</p>
<hr />
<div><br />
local coins = {};<br />
<br />
<br />
--[[--------------------------< F O R W A R D D E C L A R A T I O N S >--------------------------------------<br />
]]<br />
local is_set, in_array, remove_wiki_link; -- functions in Module:Citation/CS1/Utilities<br />
<br />
local cfg; -- table of configuration tables that are defined in Module:Citation/CS1/Configuration<br />
<br />
<br />
--[[--------------------------< S T R I P _ A P O S T R O P H E _ M A R K U P >--------------------------------<br />
<br />
Strip wiki italic and bold markup from argument so that it doesn't contaminate COinS metadata.<br />
This function strips common patterns of apostrophe markup. We presume that editors who have taken the time to<br />
markup a title have, as a result, provided valid markup. When they don't, some single apostrophes are left behind.<br />
<br />
]]<br />
<br />
local function strip_apostrophe_markup (argument)<br />
if not is_set (argument) then return argument; end<br />
<br />
if argument:find ( "''", 1, true ) == nil then -- Is there at least one double apostrophe? If not, exit.<br />
return argument;<br />
end<br />
<br />
while true do<br />
if argument:find ( "'''''", 1, true ) then -- bold italic (5)<br />
argument=argument:gsub("%'%'%'%'%'", ""); -- remove all instances of it<br />
elseif argument:find ( "''''", 1, true ) then -- italic start and end without content (4)<br />
argument=argument:gsub("%'%'%'%'", "");<br />
elseif argument:find ( "'''", 1, true ) then -- bold (3)<br />
argument=argument:gsub("%'%'%'", "");<br />
elseif argument:find ( "''", 1, true ) then -- italic (2)<br />
argument=argument:gsub("%'%'", "");<br />
else<br />
break;<br />
end<br />
end<br />
return argument; -- done<br />
end<br />
<br />
<br />
--[[--------------------------< M A K E _ C O I N S _ T I T L E >----------------------------------------------<br />
<br />
Makes a title for COinS from Title and / or ScriptTitle (or any other name-script pairs)<br />
<br />
Apostrophe markup (bold, italics) is stripped from each value so that the COinS metadata isn't corrupted with strings<br />
of %27%27...<br />
<br />
]]<br />
<br />
local function make_coins_title (title, script)<br />
if is_set (title) then<br />
title = strip_apostrophe_markup (title); -- strip any apostrophe markup<br />
else<br />
title=''; -- if not set, make sure title is an empty string<br />
end<br />
if is_set (script) then<br />
script = script:gsub ('^%l%l%s*:%s*', ''); -- remove language prefix if present (script value may now be empty string)<br />
script = strip_apostrophe_markup (script); -- strip any apostrophe markup<br />
else<br />
script=''; -- if not set, make sure script is an empty string<br />
end<br />
if is_set (title) and is_set (script) then<br />
script = ' ' .. script; -- add a space before we concatenate<br />
end<br />
return title .. script; -- return the concatenation<br />
end<br />
<br />
<br />
--[[--------------------------< E S C A P E _ L U A _ M A G I C _ C H A R S >----------------------------------<br />
<br />
Returns a string where all of lua's magic characters have been escaped. This is important because functions like<br />
string.gsub() treat their pattern and replace strings as patterns, not literal strings.<br />
]]<br />
<br />
local function escape_lua_magic_chars (argument)<br />
argument = argument:gsub("%%", "%%%%"); -- replace % with %%<br />
argument = argument:gsub("([%^%$%(%)%.%[%]%*%+%-%?])", "%%%1"); -- replace all other lua magic pattern characters<br />
return argument;<br />
end<br />
<br />
<br />
--[[--------------------------< G E T _ C O I N S _ P A G E S >------------------------------------------------<br />
<br />
Extract page numbers from external wikilinks in any of the |page=, |pages=, or |at= parameters for use in COinS.<br />
<br />
]]<br />
<br />
local function get_coins_pages (pages)<br />
local pattern;<br />
if not is_set (pages) then return pages; end -- if no page numbers then we're done<br />
<br />
while true do<br />
pattern = pages:match("%[(%w*:?//[^ ]+%s+)[%w%d].*%]"); -- pattern is the opening bracket, the url and following space(s): "[url "<br />
if nil == pattern then break; end -- no more urls<br />
pattern = escape_lua_magic_chars (pattern); -- pattern is not a literal string; escape lua's magic pattern characters<br />
pages = pages:gsub(pattern, ""); -- remove as many instances of pattern as possible<br />
end<br />
pages = pages:gsub("[%[%]]", ""); -- remove the brackets<br />
pages = pages:gsub("–", "-" ); -- replace endashes with hyphens<br />
pages = pages:gsub("&%w+;", "-" ); -- and replace html entities (&ndash; etc.) with hyphens; do we need to replace numerical entities like &#32; and the like?<br />
return pages;<br />
end<br />
<br />
<br />
--[=[-------------------------< C O I N S _ R E P L A C E _ M A T H _ S T R I P M A R K E R >------------------<br />
<br />
There are three options for math markup rendering that depend on the editor's math preference settings. These<br />
settings are at [[Special:Preferences#mw-prefsection-rendering]] and are<br />
PNG images<br />
TeX source<br />
MathML with SVG or PNG fallback<br />
<br />
All three are heavy with html and css which doesn't belong in the metadata.<br />
<br />
Without this function, the metadata saved in the raw wikitext contained the rendering determined by the settings<br />
of the last editor to save the page.<br />
<br />
This function gets the rendered form of an equation according to the editor's preference before the page is saved. It<br />
then searches the rendering for the text equivalent of the rendered equation and replaces the rendering with that so<br />
that the page is saved without extraneous html/css markup and with a reasonably readable text form of the equation.<br />
<br />
When a replacement is made, this function returns true and the value with replacement; otherwise false and the intital<br />
value. To replace multipe equations it is necesary to call this function from within a loop.<br />
<br />
]=]<br />
<br />
local function coins_replace_math_stripmarker (value)<br />
local stripmarker = cfg.stripmarkers['math'];<br />
local rendering = value:match (stripmarker); -- is there a math stripmarker<br />
<br />
if not rendering then -- when value doesn't have a math stripmarker, abandon this test<br />
return false, value;<br />
end<br />
<br />
rendering = mw.text.unstripNoWiki (rendering); -- convert stripmarker into rendered value (or nil? ''? when math render error)<br />
<br />
if rendering:match ('alt="[^"]+"') then -- if PNG math option<br />
rendering = rendering:match ('alt="([^"]+)"'); -- extract just the math text<br />
elseif rendering:match ('$%s+.+%s+%$') then -- if TeX math option; $ is legit character that is escapes as \$<br />
rendering = rendering:match ('$%s+(.+)%s+%$') -- extract just the math text<br />
elseif rendering:match ('<annotation[^>]+>.+</annotation>') then -- if MathML math option<br />
rendering = rendering:match ('<annotation[^>]+>(.+)</annotation>') -- extract just the math text<br />
else<br />
return false, value; -- had math stripmarker but not one of the three defined forms<br />
end<br />
<br />
return true, value:gsub (stripmarker, rendering, 1);<br />
end<br />
<br />
<br />
--[[--------------------------< C O I N S _ C L E A N U P >----------------------------------------------------<br />
<br />
Cleanup parameter values for the metadata by removing or replacing invisible characters and certain html entities.<br />
<br />
2015-12-10: there is a bug in mw.text.unstripNoWiki (). It replaces math stripmarkers with the appropriate content<br />
when it shouldn't. See https://phabricator.wikimedia.org/T121085 and Wikipedia_talk:Lua#stripmarkers_and_mw.text.unstripNoWiki.28.29<br />
<br />
TODO: move the replacement patterns and replacement values into a table in /Configuration similar to the invisible<br />
characters table?<br />
<br />
]]<br />
<br />
local function coins_cleanup (value)<br />
local replaced = true; -- default state to get the do loop running<br />
<br />
while replaced do -- loop until all math stripmarkers replaced<br />
replaced, value = coins_replace_math_stripmarker (value); -- replace math stripmarker with text representation of the equation<br />
end<br />
<br />
value = value:gsub (cfg.stripmarkers['math'], "MATH RENDER ERROR"); -- one or more couldn't be replaced; insert vague error message<br />
<br />
value = mw.text.unstripNoWiki (value); -- replace nowiki stripmarkers with their content<br />
value = value:gsub ('<span class="nowrap" style="padding%-left:0%.1em;">&#39;(s?)</span>', "'%1"); -- replace {{'}} or {{'s}} with simple apostrophe or apostrophe-s<br />
value = value:gsub ('&nbsp;', ' '); -- replace &nbsp; entity with plain space<br />
value = value:gsub ('\226\128\138', ' '); -- replace hair space with plain space<br />
if not mw.ustring.find (value, cfg.indic_script) then -- don't remove zero width joiner characters from indic script<br />
value = value:gsub ('&zwj;', ''); -- remove &zwj; entities<br />
value = mw.ustring.gsub (value, '[\226\128\141\226\128\139\194\173]', ''); -- remove zero-width joiner, zero-width space, soft hyphen<br />
end<br />
value = value:gsub ('[\009\010\013]', ' '); -- replace horizontal tab, line feed, carriage return with plain space<br />
return value;<br />
end<br />
<br />
<br />
--[[--------------------------< C O I N S >--------------------------------------------------------------------<br />
<br />
COinS metadata (see <http://ocoins.info/>) allows automated tools to parse the citation information.<br />
<br />
]]<br />
<br />
local function COinS(data, class)<br />
if 'table' ~= type(data) or nil == next(data) then<br />
return '';<br />
end<br />
<br />
for k, v in pairs (data) do -- spin through all of the metadata parameter values<br />
if 'ID_list' ~= k and 'Authors' ~= k then -- except the ID_list and Author tables (author nowiki stripmarker done when Author table processed)<br />
data[k] = coins_cleanup (v);<br />
end<br />
end<br />
<br />
local ctx_ver = "Z39.88-2004";<br />
<br />
-- treat table strictly as an array with only set values.<br />
local OCinSoutput = setmetatable( {}, {<br />
__newindex = function(self, key, value)<br />
if is_set(value) then<br />
rawset( self, #self+1, table.concat{ key, '=', mw.uri.encode( remove_wiki_link( value ) ) } );<br />
end<br />
end<br />
});<br />
<br />
if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'journal', 'news', 'magazine'}) or (in_array (class, {'conference', 'interview', 'map', 'press release', 'web'}) and is_set(data.Periodical)) or <br />
('citation' == class and is_set(data.Periodical) and not is_set (data.Encyclopedia)) then<br />
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:journal"; -- journal metadata identifier<br />
if in_array (class, {'arxiv', 'biorxiv', 'citeseerx'}) then -- set genre according to the type of citation template we are rendering<br />
OCinSoutput["rft.genre"] = "preprint"; -- cite arxiv, cite biorxiv, cite citeseerx<br />
elseif 'conference' == class then<br />
OCinSoutput["rft.genre"] = "conference"; -- cite conference (when Periodical set)<br />
elseif 'web' == class then<br />
OCinSoutput["rft.genre"] = "unknown"; -- cite web (when Periodical set)<br />
else<br />
OCinSoutput["rft.genre"] = "article"; -- journal and other 'periodical' articles<br />
end<br />
OCinSoutput["rft.jtitle"] = data.Periodical; -- journal only<br />
OCinSoutput["rft.atitle"] = data.Title; -- 'periodical' article titles<br />
<br />
-- these used only for periodicals<br />
OCinSoutput["rft.ssn"] = data.Season; -- keywords: winter, spring, summer, fall<br />
OCinSoutput["rft.chron"] = data.Chron; -- free-form date components<br />
OCinSoutput["rft.volume"] = data.Volume; -- does not apply to books<br />
OCinSoutput["rft.issue"] = data.Issue;<br />
OCinSoutput["rft.pages"] = data.Pages; -- also used in book metadata<br />
<br />
elseif 'thesis' ~= class then -- all others except cite thesis are treated as 'book' metadata; genre distinguishes<br />
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:book"; -- book metadata identifier<br />
if 'report' == class or 'techreport' == class then -- cite report and cite techreport<br />
OCinSoutput["rft.genre"] = "report";<br />
elseif 'conference' == class then -- cite conference when Periodical not set<br />
OCinSoutput["rft.genre"] = "conference";<br />
OCinSoutput["rft.atitle"] = data.Chapter; -- conference paper as chapter in proceedings (book)<br />
elseif in_array (class, {'book', 'citation', 'encyclopaedia', 'interview', 'map'}) then<br />
if is_set (data.Chapter) then<br />
OCinSoutput["rft.genre"] = "bookitem";<br />
OCinSoutput["rft.atitle"] = data.Chapter; -- book chapter, encyclopedia article, interview in a book, or map title<br />
else<br />
if 'map' == class or 'interview' == class then<br />
OCinSoutput["rft.genre"] = 'unknown'; -- standalone map or interview<br />
else<br />
OCinSoutput["rft.genre"] = 'book'; -- book and encyclopedia<br />
end<br />
end<br />
else --{'audio-visual', 'AV-media-notes', 'DVD-notes', 'episode', 'interview', 'mailinglist', 'map', 'newsgroup', 'podcast', 'press release', 'serial', 'sign', 'speech', 'web'}<br />
OCinSoutput["rft.genre"] = "unknown";<br />
end<br />
OCinSoutput["rft.btitle"] = data.Title; -- book only<br />
OCinSoutput["rft.place"] = data.PublicationPlace; -- book only<br />
OCinSoutput["rft.series"] = data.Series; -- book only<br />
OCinSoutput["rft.pages"] = data.Pages; -- book, journal<br />
OCinSoutput["rft.edition"] = data.Edition; -- book only<br />
OCinSoutput["rft.pub"] = data.PublisherName; -- book and dissertation<br />
<br />
else -- cite thesis<br />
OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:dissertation"; -- dissertation metadata identifier<br />
OCinSoutput["rft.title"] = data.Title; -- dissertation (also patent but that is not yet supported)<br />
OCinSoutput["rft.degree"] = data.Degree; -- dissertation only<br />
OCinSoutput['rft.inst'] = data.PublisherName; -- book and dissertation<br />
end<br />
-- and now common parameters (as much as possible)<br />
OCinSoutput["rft.date"] = data.Date; -- book, journal, dissertation<br />
<br />
for k, v in pairs( data.ID_list ) do -- what to do about these? For now assume that they are common to all?<br />
-- if k == 'ISBN' then v = clean_isbn( v ) end<br />
if k == 'ISBN' then v = v:gsub( "[^-0-9X]", "" ); end<br />
local id = cfg.id_handlers[k].COinS;<br />
if string.sub( id or "", 1, 4 ) == 'info' then -- for ids that are in the info:registry<br />
OCinSoutput["rft_id"] = table.concat{ id, "/", v };<br />
elseif string.sub (id or "", 1, 3 ) == 'rft' then -- for isbn, issn, eissn, etc that have defined COinS keywords<br />
OCinSoutput[ id ] = v;<br />
elseif id then -- when cfg.id_handlers[k].COinS is not nil<br />
OCinSoutput["rft_id"] = table.concat{ cfg.id_handlers[k].prefix, v }; -- others; provide a url<br />
end<br />
end<br />
<br />
--[[ <br />
for k, v in pairs( data.ID_list ) do -- what to do about these? For now assume that they are common to all?<br />
local id, value = cfg.id_handlers[k].COinS;<br />
if k == 'ISBN' then value = clean_isbn( v ); else value = v; end<br />
if string.sub( id or "", 1, 4 ) == 'info' then<br />
OCinSoutput["rft_id"] = table.concat{ id, "/", v };<br />
else<br />
OCinSoutput[ id ] = value;<br />
end<br />
end<br />
]]<br />
local last, first;<br />
for k, v in ipairs( data.Authors ) do<br />
last, first = coins_cleanup (v.last), coins_cleanup (v.first or ''); -- replace any nowiki strip markers, non-printing or invisible characers<br />
if k == 1 then -- for the first author name only<br />
if is_set(last) and is_set(first) then -- set these COinS values if |first= and |last= specify the first author name<br />
OCinSoutput["rft.aulast"] = last; -- book, journal, dissertation<br />
OCinSoutput["rft.aufirst"] = first; -- book, journal, dissertation<br />
elseif is_set(last) then <br />
OCinSoutput["rft.au"] = last; -- book, journal, dissertation -- otherwise use this form for the first name<br />
end<br />
else -- for all other authors<br />
if is_set(last) and is_set(first) then<br />
OCinSoutput["rft.au"] = table.concat{ last, ", ", first }; -- book, journal, dissertation<br />
elseif is_set(last) then<br />
OCinSoutput["rft.au"] = last; -- book, journal, dissertation<br />
end<br />
end<br />
end<br />
<br />
OCinSoutput.rft_id = data.URL;<br />
OCinSoutput.rfr_id = table.concat{ "info:sid/", mw.site.server:match( "[^/]*$" ), ":", data.RawPage };<br />
OCinSoutput = setmetatable( OCinSoutput, nil );<br />
<br />
-- sort with version string always first, and combine.<br />
--table.sort( OCinSoutput );<br />
table.insert( OCinSoutput, 1, "ctx_ver=" .. ctx_ver ); -- such as "Z39.88-2004"<br />
return table.concat(OCinSoutput, "&");<br />
end<br />
<br />
<br />
--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------<br />
<br />
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.<br />
<br />
]]<br />
<br />
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)<br />
cfg = cfg_table_ptr;<br />
<br />
is_set = utilities_page_ptr.is_set; -- import functions from select Module:Citation/CS1/Utilities module<br />
in_array = utilities_page_ptr.in_array;<br />
remove_wiki_link = utilities_page_ptr.remove_wiki_link;<br />
end<br />
<br />
<br />
<br />
return {<br />
make_coins_title = make_coins_title,<br />
get_coins_pages = get_coins_pages,<br />
COinS = COinS,<br />
set_selected_modules = set_selected_modules,<br />
}</div>Adminwikihttps://wiki.latbangdjogja.web.id/index.php?title=Modul:Citation/CS1/Configuration&diff=814Modul:Citation/CS1/Configuration2019-08-09T03:36:11Z<p>Adminwiki: 1 revisi diimpor: Templat:Cite web</p>
<hr />
<div><br />
local citation_config = {};<br />
<br />
-- override <code>...</code> styling to remove color, border, and padding. <code> css is specified here:<br />
-- https://git.wikimedia.org/blob/mediawiki%2Fcore.git/69cd73811f7aadd093050dbf20ed70ef0b42a713/skins%2Fcommon%2FcommonElements.css#L199<br />
local code_style="color:inherit; border:inherit; padding:inherit;";<br />
<br />
--[[--------------------------< U N C A T E G O R I Z E D _ N A M E S P A C E S >------------------------------<br />
<br />
List of namespaces that should not be included in citation error categories. Same as setting notracking = true by default<br />
<br />
Note: Namespace names should use underscores instead of spaces.<br />
<br />
]]<br />
local uncategorized_namespaces = { 'User', 'Talk', 'User_talk', 'Wikipedia_talk', 'File_talk', 'Template_talk', 'Help_talk', 'Category_talk', 'Portal_talk', 'Book_talk', 'Draft_talk', 'Education_Program_talk', 'Module_talk', 'MediaWiki_talk' };<br />
<br />
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases'}; -- list of Lua patterns found in page names of pages we should not categorize<br />
<br />
<br />
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------<br />
<br />
Translation table<br />
<br />
The following contains fixed text that may be output as part of a citation.<br />
This is separated from the main body to aid in future translations of this<br />
module.<br />
<br />
]]<br />
<br />
local messages = {<br />
['archived-dead'] = 'Diarsipkan dari $1 tanggal $2',<br />
['archived-not-dead'] = '$1 dari versi asli tanggal $2',<br />
['archived-missing'] = 'Diarsipkan dari versi asli $1 tanggal $2',<br />
['archived'] = 'Diarsipkan',<br />
['by'] = 'oleh', -- contributions to authored works: introduction, foreword, afterword<br />
['cartography'] = 'Kartografi oleh $1',<br />
['editor'] = 'ed.',<br />
['editors'] = 'ed.',<br />
['edition'] = '(edisi ke-$1)',<br />
['episode'] = 'Episode ke-$1',<br />
['et al'] = 'et al.',<br />
['in'] = 'Dalam', -- edited works<br />
['inactive'] = 'tidak aktif',<br />
['inset'] = '$1 inset',<br />
['interview'] = 'Wawancara dengan $1', <br />
['lay summary'] = 'Ringkasan',<br />
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]:&nbsp;$1',<br />
['original'] = 'versi asli',<br />
['published'] = ' (dipublikasikan tanggal $1)',<br />
['retrieved'] = 'Diakses tanggal $1',<br />
['season'] = 'Musim ke-$1',<br />
['section'] = '§ $1',<br />
['sections'] = '§§ $1',<br />
['series'] = 'Seri ke-$1',<br />
['translated'] = 'Diterjemahkan oleh $1',<br />
['type'] = ' ($1)', -- for titletype<br />
['written'] = 'Ditulis di $1',<br />
<br />
['vol'] = '$1 Vol.&nbsp;$2', -- $1 is sepc; bold journal style volume is in presentation{}<br />
['vol-no'] = '$1 Vol.&nbsp;$2 no.&nbsp;$3', -- sepc, volume, issue<br />
['issue'] = '$1 No.&nbsp;$2', -- $1 is sepc<br />
<br />
['j-vol'] = '$1 $2', -- sepc, volume; bold journal volume is in presentation{}<br />
['j-issue'] = ' ($1)',<br />
<br />
['nopp'] = '$1 $2'; -- page(s) without prefix; $1 is sepc<br />
<br />
['p-prefix'] = "$1 hlm.&nbsp;$2", -- $1 is sepc<br />
['pp-prefix'] = "$1 hlm.&nbsp;$2", -- $1 is sepc<br />
['j-page(s)'] = ': $1', -- same for page and pages<br />
<br />
['sheet'] = '$1 Sheet&nbsp;$2', -- $1 is sepc<br />
['sheets'] = '$1 Sheets&nbsp;$2', -- $1 is sepc<br />
['j-sheet'] = ': Sheet&nbsp;$1',<br />
['j-sheets'] = ': Sheets&nbsp;$1',<br />
<br />
['subscription'] = '<span style="font-size:90%; color:#555">((Perlu berlangganan (<span title="Situs ini membutuhkan langganan berbayar untuk mengakses halaman ini." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..<br />
'[[Kategori:Halaman yang mengandung pranala ke konten yang hanya dapat diakses dengan berlangganan]]',<br />
<br />
['registration']='<span style="font-size:90%; color:#555">(Perlu mendaftar (<span title="Situs ini memerlukan pendaftaran untuk mengakses halaman ini." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..<br />
'[[Kategori:Halaman dengan rujukan atau sumber yang hanya dapat diakses dengan masuk log]]',<br />
<br />
['language'] = '(dalam bahasa $1)',<br />
['via'] = " &ndash; via $1",<br />
['event'] = 'Berlangsung pada',<br />
['minutes'] = 'menit berlalu', --konteksnya?<br />
<br />
['parameter-separator'] = ', ',<br />
['parameter-final-separator'] = ', dan ',<br />
['parameter-pair-separator'] = ' dan ',<br />
<br />
-- Determines the location of the help page<br />
['help page link'] = 'Bantuan:Galat CS1',<br />
['help page label'] = 'bantuan',<br />
<br />
-- Internal errors (should only occur if configuration is bad)<br />
['undefined_error'] = 'Called with an undefined error condition',<br />
['unknown_manual_ID'] = 'Unrecognized manual ID mode',<br />
['unknown_ID_mode'] = 'Unrecognized ID mode',<br />
['unknown_argument_map'] = 'Argument map not defined for this variable',<br />
['bare_url_no_origin'] = 'Bare url found but origin indicator is nil or empty',<br />
}<br />
<br />
<br />
--[[--------------------------< P R E S E N T A T I O N >------------------------------------------------------<br />
<br />
Fixed presentation markup. Originally part of citation_config.messages it has been moved into its own, more semantically<br />
correct place.<br />
<br />
]]<br />
<br />
local presentation = <br />
{<br />
-- Error output<br />
-- .error class is specified at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/9553bd02a5595da05c184f7521721fb1b79b3935/skins%2Fcommon%2Fshared.css#L538<br />
-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display<br />
['hidden-error'] = '<span style="display:none;font-size:100%" class="error citation-comment">$1</span>',<br />
['visible-error'] = '<span style="font-size:100%" class="error citation-comment">$1</span>',<br />
<br />
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal css<br />
<br />
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like<br />
<br />
['cite'] = '<cite class="$1">$2</cite>'; -- |ref= not set so no id="..." attribute<br />
['cite-id'] = '<cite id="$1" class="$2">$3</cite>'; -- for use when |ref= is set<br />
<br />
['format'] = ' <span style="font-size:85%;">($1)</span>', -- for |format=, |chapter-format=, etc<br />
<br />
-- various access levels, for |access=, |doi-access=, |arxiv=, ...<br />
-- narrow no-break space &#8239; may work better than nowrap css. Or not? browser support?<br />
<br />
['access-signal'] = '<span class="plainlinks">$1&#8239;$2</span>', -- external link with appropriate lock icon<br />
['free'] = '[[File:Lock-green.svg|9px|link=|alt=alt=Dapat diakses gratis|Dapat diakses gratis]]',<br />
['registration'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=Perlu mendaftar (gratis)|Perlu mendaftar (gratis)]]',<br />
['limited'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=Akses gratis dibatasi (uji coba), biasanya perlu berlangganan|Akses gratis dibatasi (uji coba), biasanya perlu berlangganan]]',<br />
['subscription'] = '[[File:Lock-red-L.svg|9px|link=|alt=Perlu langganan berbayar|Perlu langganan berbayar]]',<br />
<br />
['italic-title'] = "''$1''",<br />
<br />
['kern-left'] = '<span style="padding-left:0.2em;">$1</span>$2', -- spacing to use when title contains leading single or double quote mark<br />
['kern-right'] = '$1<span style="padding-right:0.2em;">$2</span>', -- spacing to use when title contains trailing single or double quote mark<br />
<br />
-- these for simple wikilinked titles [["text]], [[text"]] and [["text"]]<br />
-- span wraps entire wikilink<br />
['kern-wl-left'] = '<span style="padding-left:0.2em;">$1</span>', -- when title contains leading single or double quote mark<br />
['kern-wl-right'] = '<span style="padding-right:0.2em;">$1</span>', -- when title contains trailing single or double quote mark<br />
['kern-wl-both'] = '<span style="padding-left:0.2em;padding-right:0.2em;">$1</span>', -- when title contains leading and trailing single or double quote marks<br />
<br />
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span><br />
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)<br />
<br />
['ocins'] = '<span title="$1" class="Z3988"><span style="display:none;">&nbsp;</span></span>', -- Note: Using display: none on the COinS span breaks some clients<br />
<br />
['parameter'] = '<code style="'..code_style..'">&#124;$1=</code>',<br />
<br />
['ps_cs1'] = '.'; -- cs1 style postscript (terminal) character<br />
['ps_cs2'] = ''; -- cs2 style postscript (terminal) character (empty string)<br />
<br />
['quoted-text'] = '<q>$1</q>', -- for wrapping |quote= content<br />
['quoted-title'] = '"$1"',<br />
<br />
['sep_cs1'] = '.', -- cs1 element separator<br />
['sep_cs2'] = ',', -- cs2 separator<br />
['sep_nl'] = ';', -- cs1|2 style name-list separator between authors is a semicolon<br />
['sep_name'] = ', ', -- cs1|2 style last/first separator is <comma><space><br />
['sep_nl_vanc'] = ',', -- Vancouver style name-list separator between authors is a comma<br />
['sep_name_vanc'] = ' ', -- Vancouver style last/first separator is a space<br />
<br />
['trans-italic-title'] = "&#91;''$1''&#93;",<br />
['trans-quoted-title'] = "&#91;$1&#93;",<br />
['vol-bold'] = '$1 <b>$2</b>', -- sepc, volume; for bold journal cites; for other cites ['vol'] in messages{}<br />
}<br />
<br />
<br />
--[[--------------------------< A L I A S E S >----------------------------------------------------------------<br />
<br />
Aliases table for commonly passed parameters<br />
<br />
]]<br />
<br />
local aliases = {<br />
['AccessDate'] = {'access-date', 'accessdate'},<br />
['Agency'] = 'agency',<br />
['AirDate'] = {'air-date', 'airdate'},<br />
['ArchiveDate'] = {'archive-date', 'archivedate'},<br />
['ArchiveFormat'] = 'archive-format',<br />
['ArchiveURL'] = {'archive-url', 'archiveurl'},<br />
['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},<br />
['At'] = 'at',<br />
['Authors'] = {'authors', 'people', 'host', 'credits'},<br />
['BookTitle'] = {'book-title', 'booktitle'},<br />
['Cartography'] = 'cartography',<br />
['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section'},<br />
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'entry-format', 'article-format', 'section-format'};<br />
['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'entry-url', 'article-url', 'section-url', 'sectionurl'},<br />
['ChapterUrlAccess'] = {'chapter-url-access', 'contribution-url-access', 'entry-url-access', 'article-url-access', 'section-url-access'},<br />
['Class'] = 'class', -- cite arxiv and arxiv identifiers<br />
['Collaboration'] = 'collaboration',<br />
['Conference'] = {'conference', 'event'},<br />
['ConferenceFormat'] = {'conference-format', 'event-format'},<br />
['ConferenceURL'] = {'conference-url', 'conferenceurl', 'event-url', 'eventurl'},<br />
['Contribution'] = 'contribution', -- introduction, foreword, afterword, etc; required when |contributor= set<br />
['Date'] = 'date',<br />
['DeadURL'] = {'dead-url', 'deadurl'},<br />
['Degree'] = 'degree',<br />
['DF'] = 'df',<br />
['DisplayAuthors'] = {'display-authors', 'displayauthors'},<br />
['DisplayEditors'] = {'display-editors', 'displayeditors'},<br />
['Docket'] = 'docket',<br />
['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date'},<br />
['Edition'] = 'edition',<br />
['Editors'] = 'editors',<br />
['Embargo'] = 'embargo',<br />
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia'}, -- this one only used by citation<br />
['Episode'] = 'episode', -- cite serial only TODO: make available to cite episode?<br />
['Format'] = 'format',<br />
['ID'] = {'id', 'ID'},<br />
['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'},<br />
['Inset'] = 'inset',<br />
['Issue'] = {'issue', 'number'},<br />
['Interviewers'] = 'interviewers',<br />
['Language'] = {'language', 'in', 'lang'},<br />
['LastAuthorAmp'] = {'last-author-amp', 'lastauthoramp'},<br />
['LayDate'] = {'lay-date', 'laydate'},<br />
['LayFormat'] = 'lay-format',<br />
['LaySource'] = {'lay-source', 'laysource'},<br />
['LayURL'] = {'lay-url', 'lay-summary', 'layurl', 'laysummary'},<br />
['MailingList'] = {'mailinglist', 'mailing-list'}, -- cite mailing list only<br />
['Map'] = 'map', -- cite map only<br />
['MapFormat'] = 'map-format', -- cite map only<br />
['MapURL'] = {'mapurl', 'map-url'}, -- cite map only<br />
['MessageID'] = 'message-id',<br />
['Minutes'] = 'minutes',<br />
['Mode'] = 'mode',<br />
['NameListFormat'] = 'name-list-format',<br />
['Network'] = 'network',<br />
['NoPP'] = {'no-pp', 'nopp'},<br />
['NoTracking'] = {'template-doc-demo', 'no-cat', 'nocat',<br />
'no-tracking', 'notracking'},<br />
['Number'] = 'number', -- this case only for cite techreport<br />
['OrigYear'] = {'orig-year', 'origyear'},<br />
['Others'] = 'others',<br />
['Page'] = {'p', 'page'},<br />
['Pages'] = {'pp', 'pages'},<br />
['Periodical'] = {'journal', 'newspaper', 'magazine', 'work',<br />
'website', 'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary', 'mailinglist'},<br />
['Place'] = {'place', 'location'},<br />
['PostScript'] = 'postscript',<br />
['PublicationDate'] = {'publicationdate', 'publication-date'},<br />
['PublicationPlace'] = {'publication-place', 'publicationplace'},<br />
['PublisherName'] = {'publisher', 'distributor', 'institution', 'newsgroup'},<br />
['Quote'] = {'quote', 'quotation'},<br />
['Ref'] = 'ref',<br />
['RegistrationRequired'] = 'registration',<br />
['Scale'] = 'scale',<br />
['ScriptChapter'] = 'script-chapter',<br />
['ScriptTitle'] = 'script-title',<br />
['Section'] = 'section',<br />
['Season'] = 'season',<br />
['Sections'] = 'sections', -- cite map only<br />
['Series'] = {'series', 'version'},<br />
['SeriesSeparator'] = 'series-separator',<br />
['SeriesLink'] = {'series-link', 'serieslink'},<br />
['SeriesNumber'] = {'series-number', 'series-no', 'seriesnumber', 'seriesno'},<br />
['Sheet'] = 'sheet', -- cite map only<br />
['Sheets'] = 'sheets', -- cite map only<br />
['Station'] = 'station',<br />
['SubscriptionRequired'] = 'subscription',<br />
['Time'] = 'time',<br />
['TimeCaption'] = {'time-caption', 'timecaption'},<br />
['Title'] = 'title',<br />
['TitleLink'] = {'title-link', 'episode-link', 'titlelink', 'episodelink'},<br />
['TitleNote'] = 'department',<br />
['TitleType'] = {'type', 'medium'},<br />
['TransChapter'] = 'trans-chapter',<br />
['TransMap'] = 'trans-map', -- cite map only<br />
['Transcript'] = 'transcript',<br />
['TranscriptFormat'] = 'transcript-format',<br />
['TranscriptURL'] = {'transcript-url', 'transcripturl'},<br />
['TransTitle'] = 'trans-title',<br />
['URL'] = {'url', 'URL'},<br />
['UrlAccess'] = {'url-access'},<br />
['Vauthors'] = 'vauthors',<br />
['Veditors'] = 'veditors',<br />
['Via'] = 'via',<br />
['Volume'] = 'volume',<br />
['Year'] = 'year',<br />
<br />
['AuthorList-First'] = {"first#", "given#", "author-first#", "author#-first"},<br />
['AuthorList-Last'] = {"last#", "author#", "surname#", "author-last#", "author#-last", "subject#"},<br />
['AuthorList-Link'] = {"authorlink#", "author-link#", "author#-link", "subjectlink#", "author#link", "subject-link#", "subject#-link", "subject#link"},<br />
['AuthorList-Mask'] = {"author-mask#", "authormask#", "author#mask", "author#-mask"},<br />
<br />
['ContributorList-First'] = {'contributor-first#', 'contributor#-first', 'contributor-given#', 'contributor#-given'},<br />
['ContributorList-Last'] = {'contributor#', 'contributor-last#', 'contributor#-last', 'contributor-surname#', 'contributor#-surname'},<br />
['ContributorList-Link'] = {'contributor-link#', 'contributor#-link'},<br />
['ContributorList-Mask'] = {'contributor-mask#', 'contributor#-mask'},<br />
<br />
['EditorList-First'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given"},<br />
['EditorList-Last'] = {"editor#", "editor-last#", "editor#-last", "editor-surname#", "editor#-surname"},<br />
['EditorList-Link'] = {"editor-link#", "editor#-link", "editorlink#", "editor#link"},<br />
['EditorList-Mask'] = {"editor-mask#", "editor#-mask", "editormask#", "editor#mask"},<br />
<br />
['InterviewerList-First'] = {'interviewer-first#', 'interviewer#-first'},<br />
['InterviewerList-Last'] = {'interviewer#', 'interviewer-last#', 'interviewer#-last'},<br />
['InterviewerList-Link'] = {'interviewer-link#', 'interviewer#-link'},<br />
['InterviewerList-Mask'] = {'interviewer-mask#', 'interviewer#-mask'},<br />
<br />
['TranslatorList-First'] = {'translator-first#', 'translator#-first', 'translator-given#', 'translator#-given'},<br />
['TranslatorList-Last'] = {'translator#', 'translator-last#', 'translator#-last', 'translator-surname#', 'translator#-surname'},<br />
['TranslatorList-Link'] = {'translator-link#', 'translator#-link'},<br />
['TranslatorList-Mask'] = {'translator-mask#', 'translator#-mask'},<br />
}<br />
<br />
<br />
--[[--------------------------< S P E C I A L C A S E T R A N S L A T I O N S >----------------------------<br />
<br />
This table is primarily here to support internationalization. Translations in this table are used, for example,<br />
when an error message, category name, etc is extracted from the English alias key. There may be other cases where<br />
this translation table may be useful.<br />
<br />
]]<br />
<br />
local special_case_translation = {<br />
['AuthorList'] = "authors list", -- these for multiple names maint categories<br />
['ContributorList'] = "contributors list",<br />
['EditorList'] = "editors list",<br />
['InterviewerList'] = "interviewers list",<br />
['TranslatorList'] = "translators list",<br />
<br />
['authors'] = "authors", -- used in get_display_authors_editors()<br />
['editors'] = "editors",<br />
}<br />
<br />
<br />
--[[--------------------------< D E F A U L T S >--------------------------------------------------------------<br />
<br />
Default parameter values<br />
<br />
TODO: keep this? Only one default?<br />
]]<br />
<br />
local defaults = {<br />
['DeadURL'] = 'yes',<br />
}<br />
<br />
<br />
--[[--------------------------< D A T E _ N A M E S >----------------------------------------------------------<br />
<br />
This table of tables lists local language date names and fallback English date names. The code in Date_validation<br />
will look first in the local table for valid date names. If date names are not found in the local table, the code<br />
will look in the English table.<br />
<br />
Because citations can be copied to the local wiki from en.wiki, the English is required when the date-name translation<br />
function date_name_xlate() is used.<br />
<br />
In these tables, season numbering is defined by ISO DIS 8601:2016 part 2 §4.7 'Divisions of a year'. The standard<br />
defines various divisions using numbers 21-41. cs1|2 only supports generic seasons. ISO DIS 8601:2016 does support<br />
the distinction between north and south hemispere seasons but cs1|2 has no way to make that distinction.<br />
<br />
The standard does not address 'named' dates so, for the purposes of cs1|2, Christmas is defined here as 99, which<br />
should be out of the ISO DIS 8601:2016 range of uses for a while.<br />
<br />
]]<br />
<br />
local date_names = {<br />
['en'] = { -- English<br />
['long'] = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12};<br />
['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12};<br />
['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23};<br />
['named'] = {['Christmas']=99};<br />
},<br />
['local'] = { -- replace these English date names with the local language equivalents<br />
['long'] = {['Januari']=1, ['Februari']=2, ['Maret']=3, ['April']=4, ['Mei']=5, ['Juni']=6, ['Juli']=7, ['Agustus']=8, ['September']=9, ['Oktober']=10, ['November']=11, ['Desember']=12};<br />
['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['Mei']=5, ['Jun']=6, ['Jul']=7, ['Agu']=8, ['Sep']=9, ['Okt']=10, ['Nov']=11, ['Des']=12};<br />
['season'] = {['Musim dingin']=24, ['Musim semi']=21, ['Musim panas']=22, ['Musim gugur']=23};<br />
['named'] = {['Natal']=99};<br />
},<br />
['local_digits'] = {['0'] = '0', ['1'] = '1', ['2'] = '2', ['3'] = '3', ['4'] = '4', ['5'] = '5', ['6'] = '6', ['7'] = '7', ['8'] = '8', ['9'] = '9'}; -- used to convert local language digits to Western 0-9<br />
['xlate_digits'] = {};<br />
}<br />
<br />
for ld, ed in pairs (date_names.local_digits) do -- make a digit translation table for simple date translation from en to local language using local_digits table<br />
date_names.xlate_digits [ed] = ld; -- en digit becomes index with local digit as the value<br />
end<br />
<br />
<br />
--[[--------------------------< V O L U M E , I S S U E , P A G E S >----------------------------------------<br />
<br />
These tables hold cite class values (from the template invocation) and identify those templates that support<br />
|volume=, |issue=, and |page(s)= parameters. Cite conference and cite map require further qualification which<br />
is handled in the main module.<br />
<br />
]]<br />
<br />
local templates_using_volume = {'citation', 'audio-visual', 'book', 'conference', 'encyclopaedia', 'interview', 'journal', 'magazine', 'map', 'news', 'report', 'techreport', 'thesis'}<br />
local templates_using_issue = {'citation', 'conference', 'episode', 'interview', 'journal', 'magazine', 'map', 'news'}<br />
local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}<br />
<br />
<br />
--[[--------------------------< K E Y W O R D S >--------------------------------------------------------------<br />
<br />
This table holds keywords for those parameters that have defined sets of acceptible keywords.<br />
<br />
]]<br />
<br />
local keywords = {<br />
['yes_true_y'] = {'yes', 'true', 'y'}, -- ignore-isbn-error, last-author-amp, no-tracking, nopp, registration, subscription<br />
-- ['deadurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped', 'unfit no archive', 'usurped no archive'}, -- hidden 2016-04-10; see Help_talk:Citation_Style_1#Recycled_urls<br />
['deadurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped', 'bot: unknown'},<br />
['mode'] = {'cs1', 'cs2', 'mla'},<br />
['name-list-format'] = {'vanc'},<br />
['contribution'] = {'afterword', 'foreword', 'introduction', 'preface'}, -- generic contribution titles that are rendered unquoted in the 'chapter' position<br />
['date-format'] = {'dmy', 'dmy-all', 'mdy', 'mdy-all', 'ymd', 'ymd-all'},<br />
['url-access'] = {'subscription', 'limited', 'registration'}, -- access level of a URL (subscription required, limited access, free registration required), free to read by default<br />
['id-access'] = {'free'}, -- access level of an identifier (free to read), subscription required (or no full text) by default<br />
}<br />
<br />
<br />
--[[--------------------------< S T R I P M A R K E R S >------------------------------------------------------<br />
<br />
Common pattern definition location for stripmarkers so that we don't have to go hunting for them if (when)<br />
MediaWiki changes their form.<br />
<br />
]]<br />
<br />
local stripmarkers = {<br />
['any'] = '\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127', -- capture returns name of stripmarker<br />
['math'] = '\127[^\127]*UNIQ%-%-math%-[%a%d]+%-QINU[^\127]*\127' -- math stripmarkers used in coins_cleanup() and coins_replace_math_stripmarker()<br />
}<br />
<br />
<br />
--[[--------------------------< I N V I S I B L E _ C H A R A C T E R S >--------------------------------------<br />
<br />
This table holds non-printing or invisible characters indexed either by name or by Unicode group. Values are decimal<br />
representations of UTF-8 codes. The table is organized as a table of tables because the lua pairs keyword returns<br />
table data in an arbitrary order. Here, we want to process the table from top to bottom because the entries at<br />
the top of the table are also found in the ranges specified by the entries at the bottom of the table.<br />
<br />
This list contains patterns for templates like {{'}} which isn't an error but transcludes characters that are<br />
invisible. These kinds of patterns must be recognized by the functions that use this list.<br />
<br />
Also here is a pattern that recognizes stripmarkers that begin and end with the delete characters. The nowiki<br />
stripmarker is not an error but some others are because the parameter values that include them become part of the<br />
template's metadata before stripmarker replacement.<br />
<br />
]]<br />
<br />
local invisible_chars = {<br />
{'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD<br />
{'zero width joiner', '\226\128\141'}, -- U+200D, E2 80 8D<br />
{'zero width space', '\226\128\139'}, -- U+200B, E2 80 8B<br />
{'hair space', '\226\128\138'}, -- U+200A, E2 80 8A<br />
{'soft hyphen', '\194\173'}, -- U+00AD, C2 AD<br />
{'horizontal tab', '\009'}, -- U+0009 (HT), 09<br />
{'line feed', '\010'}, -- U+000A (LF), 0A<br />
{'carriage return', '\013'}, -- U+000D (CR), 0D<br />
{'stripmarker', stripmarkers.any}, -- stripmarker; may or may not be an error; capture returns the stripmaker type<br />
{'delete', '\127'}, -- U+007F (DEL), 7F; must be done after stripmarker test<br />
{'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))<br />
{'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F<br />
-- {'Specials', '[\239\191\185-\239\191\191]'}, -- U+FFF9-U+FFFF, EF BF B9 – EF BF BF<br />
-- {'Private use area', '[\238\128\128-\239\163\191]'}, -- U+E000–U+F8FF, EE 80 80 – EF A3 BF<br />
-- {'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'}, -- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD<br />
-- {'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'}, -- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD<br />
}<br />
<br />
<br />
-- Indic script makes use of zero width joiner as a character modifier so zwj characters must be left in. This<br />
-- pattern covers all of the unicode characters for these languages:<br />
-- Devanagari 0900–097F – https://unicode.org/charts/PDF/U0900.pdf<br />
-- Devanagari extended A8E0–A8FF – https://unicode.org/charts/PDF/UA8E0.pdf<br />
-- Bengali 0980–09FF – https://unicode.org/charts/PDF/U0980.pdf<br />
-- Gurmukhi 0A00–0A7F – https://unicode.org/charts/PDF/U0A00.pdf<br />
-- Gujarati 0A80–0AFF – https://unicode.org/charts/PDF/U0A80.pdf<br />
-- Oriya 0B00–0B7F – https://unicode.org/charts/PDF/U0B00.pdf<br />
-- Tamil 0B80–0BFF – https://unicode.org/charts/PDF/U0B80.pdf<br />
-- Telugu 0C00–0C7F – https://unicode.org/charts/PDF/U0C00.pdf<br />
-- Kannada 0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf<br />
-- Malayalam 0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf<br />
-- plus the not-necessarily Indic scripts for Sinhala and Burmese:<br />
-- Sinhala 0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf<br />
-- Myanmar 1000-109F - https://unicode.org/charts/PDF/U1000.pdf<br />
-- Myanmar extended A AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf<br />
-- Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf<br />
-- the pattern is used by has_invisible_chars() and coins_cleanup()<br />
-- TODO: find a better place for this?<br />
<br />
local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]';<br />
<br />
<br />
--[[--------------------------< L A N G U A G E S >------------------------------------------------------------<br />
<br />
This table is used to hold ISO 639-1 two-character language codes that apply only to |script-title= and |script-chapter=<br />
<br />
]]<br />
<br />
local script_lang_codes = {<br />
'am', 'ar', 'be', 'bg', 'bn', 'bs', 'dv', 'el', 'fa', -- ISO 639-1 codes only for |script-title= and |script-chapter=<br />
'gu', 'he', 'hy', 'ja', 'ka', 'kn', 'ko', 'ku',<br />
'mk', 'ml', 'mn', 'mr', 'my', 'ps', 'ru', 'sd',<br />
'sr', 'tg', 'th', 'uk', 'ug', 'ur', 'yi', 'zh'<br />
};<br />
<br />
<br />
--[[--------------------------< L A N G U A G E R E M A P P I N G >------------------------------------------<br />
<br />
These tables hold language information that is different (correct) from MediaWiki's definitions<br />
<br />
]]<br />
<br />
local lang_code_remap = { -- used for |language= and |script-title= / |script-chapter=<br />
['bh'] = 'Bihari', -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri wWikipedia: bh.wikipedia.org<br />
['bn'] = 'Bengali', -- MediaWiki returns Bangla<br />
['cnr'] = 'Montenegrin', -- 'new' 639 code that MediaWiki does not yet understand<br />
}<br />
<br />
local lang_name_remap = { -- used for |language=<br />
['bangla'] = {'Bengali', 'bn'}, -- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap<br />
['bengali'] = {'Bengali', 'bn'}, -- MediaWiki doesn't use exonym so here we provide correct language name and 639-1 code<br />
['bihari'] = {'Bihari', 'bh'}, -- MediaWiki replaces 'Bihari' with 'Bhojpuri' so 'Bihari' cannot be found<br />
['bhojpuri'] = {'Bhojpuri', 'bho'}, -- MediaWiki uses 'bh' as a subdomain name for Bhojpuri wWikipedia: bh.wikipedia.org<br />
['montenegrin'] = {'Montenegrin', 'cnr'}, -- 'new' 639 code that MediaWiki does not yet understand<br />
}<br />
<br />
--[[--------------------------< M A I N T E N A N C E _ C A T E G O R I E S >----------------------------------<br />
<br />
Here we name maintenance categories to be used in maintenance messages.<br />
<br />
]]<br />
<br />
local maint_cats = {<br />
['ASIN'] = 'Pemeliharaan CS1: ASIN menggunakan ISBN',<br />
['authors'] = 'Pemeliharaan CS1: Menggunakan parameter penulis',<br />
['bot:_unknown'] = 'Pemeliharaan CS1: BOT: status url asli tidak diketahui',<br />
['date_format'] = 'Pemeliharaan CS1: Format tanggal',<br />
['date_year'] = 'Pemeliharaan CS1: Tanggal dan tahun',<br />
['disp_auth_ed'] = 'Pemeliharaan CS1: Tampilkan $1', -- $1 is authors or editors; gets value from special_case_translation table<br />
['editors'] = 'Pemeliharaan CS1: Menggunakan parameter penyunting',<br />
['embargo'] = 'Pemeliharaan CS1: Embargo PMC kedaluwarsa',<br />
['english'] = 'Pemeliharaan CS1: English language specified',<br />
['etal'] = 'Pemeliharaan CS1: Penggunaan et al. yang eksplisit',<br />
['extra_text'] = 'Pemeliharaan CS1: Teks tambahan',<br />
['extra_text_names'] = 'Pemeliharaan CS1: Teks tambahan: $1', -- $1 is <name>s list; gets value from special_case_translation table<br />
['ignore_isbn_err'] = 'Pemeliharaan CS1: Galat ISBN yang diabaikan',<br />
['interviewers'] = 'Pemeliharaan CS1: Menggunakan parameter pewawancara',<br />
['missing_pipe'] = 'Pemeliharaan CS1: Tanpa pipa',<br />
['mult_names'] = 'Pemeliharaan CS1: Banyak nama: $1', -- $1 is <name>s list; gets value from special_case_translation table<br />
['pmc_format'] = 'Pemeliharaan CS1: Format PMC',<br />
['unfit'] = 'Pemeliharaan CS1: Url tak layak',<br />
['unknown_lang'] = 'Pemeliharaan CS1: Bahasa yang tidak diketahui',<br />
['untitled'] = 'Pemeliharaan CS1: Terbitan berkala tanpa judul',<br />
}<br />
<br />
<br />
--[[--------------------------< P R O P E R T I E S _ C A T E G O R I E S >------------------------------------<br />
<br />
Here we name properties categories<br />
<br />
]]<br />
<br />
local prop_cats = {<br />
['foreign_lang_source'] = 'CS1 sumber berbahasa $1 ($2)', -- |language= categories; $1 is language name, $2 is ISO639-1 code<br />
['foreign_lang_source_2'] = 'CS1 sumber berbahasa (ISO 639-2)|$1', -- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code<br />
['script'] = 'CS1 menggunakan skrip bahasa asing', -- when language specified by |script-title=xx: doesn't have its own category<br />
['script_with_name'] = 'CS1 uses $1-language script ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code<br />
['jul_greg_uncertainty'] = 'CS1: Ketidakpastian Julian–Gregorian', -- probably temporary cat to identify scope of template with dates 1 October 1582 – 1 January 1926<br />
}<br />
<br />
<br />
--[[--------------------------< T I T L E _ T Y P E S >--------------------------------------------------------<br />
<br />
Here we map a template's CitationClass to TitleType (default values for |type= parameter)<br />
<br />
]]<br />
<br />
local title_types = {<br />
['AV-media-notes'] = 'Catatan media',<br />
['interview'] = 'Wawancara',<br />
['mailinglist'] = 'Milis',<br />
['map'] = 'Peta',<br />
['podcast'] = 'Podcast',<br />
['pressrelease'] = 'Siaran pers',<br />
['report'] = 'Laporan',<br />
['techreport'] = 'Laporan teknis',<br />
['thesis'] = 'Tesis',<br />
}<br />
<br />
<br />
--[[--------------------------< E R R O R _ C O N D I T I O N S >----------------------------------------------<br />
<br />
Error condition table<br />
<br />
The following contains a list of IDs for various error conditions defined in the code. For each ID, we specify a<br />
text message to display, an error category to include, and whether the error message should be wrapped as a hidden comment.<br />
<br />
Anchor changes require identical changes to matching anchor in Help:CS1 errors<br />
<br />
]]<br />
<br />
local error_conditions = {<br />
accessdate_missing_url = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;access-date=</code> membutuhkan <code style="'..code_style..'">&#124;url=</code>',<br />
anchor = 'accessdate_missing_url',<br />
category = 'Halaman yang menggunakan rujukan dengan accessdate dan tanpa URL',<br />
hidden = true },<br />
archive_missing_date = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;archive-url=</code> membutuhkan <code style="'..code_style..'">&#124;archive-date=</code>',<br />
anchor = 'archive_missing_date',<br />
category = 'Halaman dengan galat rujukan archiveurl',<br />
hidden = false },<br />
archive_missing_url = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;archive-url=</code> membutuhkan <code style="'..code_style..'">&#124;url=</code>',<br />
anchor = 'archive_missing_url',<br />
category = 'Halaman dengan galat rujukan archiveurl',<br />
hidden = false },<br />
archive_url = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;archive-url=</code> mengalami cacat: $1',<br />
anchor = 'archive_url',<br />
category = 'Halaman dengan galat rujukan archiveurl',<br />
hidden = false },<br />
arxiv_missing = {<br />
message = 'Membutuhkan parameter <code style="'..code_style..'">&#124;arxiv=</code>',<br />
anchor = 'arxiv_missing',<br />
category = 'Galat CS1: arXiv', -- same as bad arxiv<br />
hidden = false },<br />
arxiv_params_not_supported = {<br />
message = 'Parameter yang tidak didukung dalam merujuk arXiv',<br />
anchor = 'arxiv_params_not_supported',<br />
category = 'Galat CS1: arXiv', -- same as bad arxiv<br />
hidden = false },<br />
bad_arxiv = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;arxiv=</code>',<br />
anchor = 'bad_arxiv',<br />
category = 'Galat CS1: arXiv',<br />
hidden = true },<br />
bad_asin = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;asin=</code>',<br />
anchor = 'bad_asin',<br />
category ='Galat CS1: ASIN',<br />
hidden = false },<br />
bad_bibcode = {<br />
message = 'Periksa $1 <code style="'..code_style..'">&#124;bibcode=</code>',<br />
anchor = 'bad_bibcode',<br />
category = 'Galat CS1: bibcode',<br />
hidden = false },<br />
bad_biorxiv = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;biorxiv=</code>',<br />
anchor = 'bad_biorxiv',<br />
category = 'Galat CS1: bioRxiv',<br />
hidden = false },<br />
bad_citeseerx = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;citeseerx=</code>',<br />
anchor = 'bad_citeseerx',<br />
category = 'Galat CS1: citeseerx',<br />
hidden = false },<br />
bad_date = {<br />
message = 'Periksa nilai tanggal di: <code style="'..code_style..'">$1</code>',<br />
anchor = 'bad_date',<br />
category = 'Galat CS1: tanggal',<br />
hidden = true },<br />
bad_doi = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;doi=</code>',<br />
anchor = 'bad_doi',<br />
category = 'Galat CS1: DOI',<br />
hidden = false },<br />
bad_hdl = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;hdl=</code>',<br />
anchor = 'bad_hdl',<br />
category = 'Galat CS1: HDL',<br />
hidden = false },<br />
bad_isbn = {<br />
message = 'Periksa nilai: $1 <code style="'..code_style..'">&#124;isbn=</code>',<br />
anchor = 'bad_isbn',<br />
category = 'Galat CS1: ISBN',<br />
hidden = false },<br />
bad_ismn = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;ismn=</code>',<br />
anchor = 'bad_ismn',<br />
category = 'Galat CS1: ISMN',<br />
hidden = false },<br />
bad_issn = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;$1issn=</code>',<br />
anchor = 'bad_issn',<br />
category = 'Galat CS1: ISSN',<br />
hidden = false },<br />
bad_jfm = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;jfm=</code>',<br />
anchor = 'bad_jfm',<br />
category = 'Galat CS1: JFM',<br />
hidden = false },<br />
bad_lccn = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;lccn=</code>',<br />
anchor = 'bad_lccn',<br />
category = 'Galat CS1: LCCN',<br />
hidden = false },<br />
bad_usenet_id = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;message-id=</code>',<br />
anchor = 'bad_message_id',<br />
category = 'Galat CS1: message-id',<br />
hidden = false },<br />
bad_mr = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;mr=</code>',<br />
anchor = 'bad_mr',<br />
category = 'Galat CS1: MR',<br />
hidden = false },<br />
bad_ol = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;ol=</code>',<br />
anchor = 'bad_ol',<br />
category = 'Galat CS1: OL',<br />
hidden = false },<br />
bad_paramlink = { -- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link=<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;$1=</code>',<br />
anchor = 'bad_paramlink',<br />
category = 'Galat CS1: pranala parameter',<br />
hidden = false },<br />
bad_pmc = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;pmc=</code>',<br />
anchor = 'bad_pmc',<br />
category = 'Galat CS1: PMC',<br />
hidden = false },<br />
bad_pmid = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;pmid=</code>',<br />
anchor = 'bad_pmid',<br />
category = 'Galat CS1: PMID',<br />
hidden = false },<br />
bad_oclc = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;oclc=</code>',<br />
anchor = 'bad_oclc',<br />
category = 'Galat CS1: OCLC',<br />
hidden = false },<br />
bad_ssrn = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;ssrn=</code>',<br />
anchor = 'bad_ssrn',<br />
category = 'Galat CS1: SSRN',<br />
hidden = false },<br />
bad_url = {<br />
message = 'Periksa nilai $1',<br />
anchor = 'bad_url',<br />
category = 'Halaman dengan galat URL',<br />
hidden = false },<br />
bad_zbl = {<br />
message = 'Periksa nilai <code style="'..code_style..'">&#124;zbl=</code>',<br />
anchor = 'bad_zbl',<br />
category = 'Galat CS1: ZBL',<br />
hidden = false },<br />
bare_url_missing_title = {<br />
message = '$1 tidak memiliki judul',<br />
anchor = 'bare_url_missing_title',<br />
category = 'Halaman dengan rujukan yang memiliki URL kosong',<br />
hidden = false },<br />
biorxiv_missing = {<br />
message = 'Membutuhkan parameter <code style="'..code_style..'">&#124;biorxiv=</code>',<br />
anchor = 'biorxiv_missing',<br />
category = 'Galat CS1: bioRxiv', -- same as bad bioRxiv<br />
hidden = false },<br />
chapter_ignored = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;$1=</code> akan diabaikan',<br />
anchor = 'chapter_ignored',<br />
category = 'Galat CS1: bab diabaikan',<br />
hidden = false },<br />
citation_missing_title = {<br />
message = 'Tidak memiliki atau tanpa <code style="'..code_style..'">&#124;$1=</code>',<br />
anchor = 'citation_missing_title',<br />
category = 'Halaman dengan rujukan yang tidak memiliki judul',<br />
hidden = false },<br />
citeseerx_missing = {<br />
message = 'Membutuhkan parameter <code style="'..code_style..'">&#124;citeseerx=</code>',<br />
anchor = 'citeseerx_missing',<br />
category = 'Galat CS1: citeseerx', -- same as bad citeseerx<br />
hidden = false },<br />
cite_web_url = { -- this error applies to cite web and to cite podcast<br />
message = 'Tidak memiliki atau membutuhkan <code style="'..code_style..'">&#124;url=</code>',<br />
anchor = 'cite_web_url',<br />
category = 'Halaman yang menggunakan rujukan web tanpa URL',<br />
hidden = true },<br />
contributor_ignored = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;contributor=</code> akan diabaikan</code>',<br />
anchor = 'contributor_ignored',<br />
category = 'Galat CS1: kontributor',<br />
hidden = true },<br />
contributor_missing_required_param = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;contributor=</code> membutuhkan <code style="'..code_style..'">&#124;$1=</code>',<br />
anchor = 'contributor_missing_required_param',<br />
category = 'Galat CS1: kontributor',<br />
hidden = false },<br />
deprecated_params = {<br />
message = 'Rujukan yang menggunakan parameter <code style="'..code_style..'">&#124;$1=</code> yang tidak digunakan lagi',<br />
anchor = 'deprecated_params',<br />
category = 'Galat CS1: parameter yang tidak digunakan lagi',<br />
hidden = false },<br />
empty_citation = {<br />
message = 'Rujukan kosong',<br />
anchor = 'empty_citation',<br />
category = 'Halaman dengan rujukan yang kosong',<br />
hidden = false },<br />
first_missing_last = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;first$2=</code> tanpa <code style="'..code_style..'">&#124;last$2=</code> di $1',<br />
anchor = 'first_missing_last',<br />
category = 'Galat CS1: tidak memiliki penulis atau penyunting',<br />
hidden = true },<br />
format_missing_url = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;$1=</code> membutuhkan <code style="'..code_style..'">&#124;$2=</code>',<br />
anchor = 'format_missing_url',<br />
category = 'Halaman yang menggunakan rujukan dengan format dan tanpa URL',<br />
hidden = true },<br />
invalid_param_val = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;$1=$2</code> tidak valid',<br />
anchor = 'invalid_param_val',<br />
category = 'Galat CS1: nilai parameter tidak valid',<br />
hidden = false },<br />
invisible_char = {<br />
message = '$1 di $2 pada posisi $3',<br />
anchor = 'invisible_char',<br />
category = 'Galat CS1: karakter tidak terlihat',<br />
hidden = false },<br />
missing_name = {<br />
message = 'Tidak memiliki parameter <code style="'..code_style..'">&#124;last$2=</code> di $1',<br />
anchor = 'missing_name',<br />
category = 'Galat CS1: tidak memiliki penulis atau penyunting',<br />
hidden = false },<br />
param_access_requires_param = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;$1-access=</code> membutuhkan <code style="'..code_style..'">&#124;$1=</code>',<br />
anchor = 'param_access_requires_param',<br />
category = 'Galat CS1: param-access',<br />
hidden = false },<br />
param_has_ext_link = {<br />
message = 'Hapus pranala luar di parameter <code style="'..code_style..'">$1</code>',<br />
anchor = 'param_has_ext_link',<br />
category = 'Galat CS1: pranala luar',<br />
hidden = false },<br />
parameter_ignored = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;$1=</code> yang tidak diketahui akan diabaikan',<br />
anchor = 'parameter_ignored',<br />
category = 'Halaman dengan rujukan yang menggunakan parameter yang tidak didukung',<br />
hidden = true },<br />
parameter_ignored_suggest = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;$1=</code> yang tidak diketahui mengabaikan (<code style="'..code_style..'">&#124;$2=</code> yang disarankan)',<br />
anchor = 'parameter_ignored_suggest',<br />
category = 'Halaman dengan rujukan yang menggunakan parameter yang tidak didukung',<br />
hidden = true },<br />
redundant_parameters = {<br />
message = 'Lebih dari satu parameter $1 yang digunakan',<br />
anchor = 'redundant_parameters',<br />
category = 'Halaman dengan rujukan yang memiliki parameter duplikat',<br />
hidden = true },<br />
text_ignored = {<br />
message = 'Teks "$1" akan diabaikan',<br />
anchor = 'text_ignored',<br />
category = 'Halaman dengan rujukan yang menggunakan parameter tanpa nama',<br />
hidden = false },<br />
trans_missing_title = {<br />
message = 'Parameter <code style="'..code_style..'">&#124;trans-$1=</code> membutuhkan <code style="'..code_style..'">&#124;$1=</code>',<br />
anchor = 'trans_missing_title',<br />
category = 'Galat CS1: judul yang diterjemahkan',<br />
hidden = false },<br />
vancouver = {<br />
message = 'Galat gaya Vancouver: $1',<br />
anchor = 'vancouver',<br />
category = 'Galat CS1: gaya Vancouver',<br />
hidden = false },<br />
wikilink_in_url = {<br />
message = 'Konflik URL–wikilink', -- uses ndash<br />
anchor = 'wikilink_in_url',<br />
category = 'Galat CS1: konflik URL–wikilink', -- uses ndash<br />
hidden = false },<br />
}<br />
<br />
<br />
--[[--------------------------< I D _ H A N D L E R S >--------------------------------------------------------<br />
<br />
The following contains a list of values for various defined identifiers. For each identifier we specify a<br />
variety of information necessary to properly render the identifier in the citation.<br />
<br />
parameters: a list of parameter aliases for this identifier<br />
link: Wikipedia article name<br />
q: wikidata q number for the identifier<br />
label: the alternate name to apply to link<br />
mode: 'manual' when there is a specific function in the code to handle the identifier;<br />
'external' for identifiers that link outside of Wikipedia;<br />
prefix: the first part of a url that will be concatenated with a second part which usually contains the identifier<br />
encode: true if uri should be percent encoded; otherwise false<br />
COinS: identifier link or keyword for use in COinS:<br />
for identifiers registered at info-uri.info use: info:....<br />
for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn<br />
for others make a url using the value in prefix, use the keyword: pre (not checked; any text other than 'info' or 'rft' works here)<br />
set to nil to leave the identifier out of the COinS<br />
separator: character or text between label and the identifier in the rendered citation<br />
access: use this parameter to set the access level for all instances of this identifier.<br />
the value must be a valid access level for an identifier (see ['id-access'] in this file).<br />
custom_access: to enable custom access level for an identifier, set this parameter<br />
to the parameter that should control it (normally 'id-access')<br />
]]<br />
<br />
local id_handlers = {<br />
['ARXIV'] = {<br />
parameters = {'arxiv', 'eprint'},<br />
link = 'arXiv',<br />
q = 'Q118398',<br />
label = 'arXiv',<br />
mode = 'manual',<br />
prefix = '//arxiv.org/abs/', -- protocol relative tested 2013-09-04<br />
encode = false,<br />
COinS = 'info:arxiv',<br />
separator = ':',<br />
access = 'free', -- free to read<br />
},<br />
['ASIN'] = {<br />
parameters = { 'asin', 'ASIN' },<br />
link = 'Amazon Standard Identification Number',<br />
q = 'Q1753278',<br />
label = 'ASIN',<br />
mode = 'manual',<br />
prefix = '//www.amazon.',<br />
COinS = nil, -- no COinS for this id (needs thinking on implementation because |asin-tld=)<br />
separator = '&nbsp;',<br />
encode = false;<br />
},<br />
['BIBCODE'] = {<br />
parameters = {'bibcode'},<br />
link = 'Bibcode',<br />
q = 'Q25754',<br />
label = 'Bibcode',<br />
mode = 'manual',<br />
prefix = 'http://adsabs.harvard.edu/abs/',<br />
encode = false,<br />
COinS = 'info:bibcode',<br />
separator = ':',<br />
custom_access = 'bibcode-access',<br />
},<br />
['BIORXIV'] = {<br />
parameters = {'biorxiv'},<br />
link = 'bioRxiv',<br />
q = 'Q19835482',<br />
label = 'bioRxiv',<br />
mode = 'manual',<br />
prefix = '//doi.org/10.1101/',<br />
COinS = 'pre', -- use prefix value<br />
access = 'free', -- free to read<br />
encode = true,<br />
separator = '&nbsp;',<br />
},<br />
['CITESEERX'] = {<br />
parameters = {'citeseerx'},<br />
link = 'CiteSeerX',<br />
q = 'Q2715061',<br />
label = 'CiteSeerX',<br />
mode = 'manual', -- manual for custom validation of the "doi"<br />
prefix = '//citeseerx.ist.psu.edu/viewdoc/summary?doi=',<br />
COinS = 'pre', -- use prefix value<br />
access = 'free', -- free to read<br />
encode = true,<br />
separator = '&nbsp;',<br />
},<br />
['DOI'] = {<br />
parameters = { 'doi', 'DOI' },<br />
link = 'Digital object identifier',<br />
q = 'Q25670',<br />
label = 'doi',<br />
mode = 'manual',<br />
prefix = '//doi.org/',<br />
COinS = 'info:doi',<br />
separator = ':',<br />
encode = true,<br />
custom_access = 'doi-access',<br />
},<br />
['EISSN'] = {<br />
parameters = {'eissn', 'EISSN'},<br />
link = 'International_Standard_Serial_Number#Electronic_ISSN',<br />
q = 'Q46339674',<br />
label = 'eISSN',<br />
mode = 'manual',<br />
prefix = '//www.worldcat.org/issn/',<br />
COinS = 'rft.eissn',<br />
encode = false,<br />
separator = '&nbsp;',<br />
},<br />
['HDL'] = {<br />
parameters = { 'hdl', 'HDL' },<br />
link = 'Handle System',<br />
q = 'Q3126718',<br />
label = 'hdl',<br />
mode = 'manual',<br />
prefix = '//hdl.handle.net/',<br />
COinS = 'info:hdl',<br />
separator = ':',<br />
encode = true,<br />
custom_access = 'hdl-access',<br />
},<br />
['ISBN'] = {<br />
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},<br />
link = 'International Standard Book Number',<br />
q = 'Q33057',<br />
label = 'ISBN',<br />
mode = 'manual',<br />
prefix = 'Special:BookSources/',<br />
COinS = 'rft.isbn',<br />
separator = '&nbsp;',<br />
},<br />
['ISMN'] = {<br />
parameters = {'ismn', 'ISMN'},<br />
link = 'International Standard Music Number',<br />
q = 'Q1666938',<br />
label = 'ISMN',<br />
mode = 'manual',<br />
prefix = '', -- not currently used;<br />
COinS = 'nil', -- nil because we can't use pre or rft or info:<br />
separator = '&nbsp;',<br />
},<br />
['ISSN'] = {<br />
parameters = {'issn', 'ISSN'},<br />
link = 'International Standard Serial Number',<br />
q = 'Q131276',<br />
label = 'ISSN',<br />
mode = 'manual',<br />
prefix = '//www.worldcat.org/issn/',<br />
COinS = 'rft.issn',<br />
encode = false,<br />
separator = '&nbsp;',<br />
},<br />
['JFM'] = {<br />
parameters = {'jfm', 'JFM'},<br />
link = 'Jahrbuch über die Fortschritte der Mathematik',<br />
q = '',<br />
label = 'JFM',<br />
mode = 'manual',<br />
prefix = '//zbmath.org/?format=complete&q=an:',<br />
COinS = 'pre', -- use prefix value<br />
encode = true,<br />
separator = '&nbsp;',<br />
},<br />
['JSTOR'] = {<br />
parameters = {'jstor', 'JSTOR'},<br />
link = 'JSTOR',<br />
q = 'Q1420342',<br />
label = 'JSTOR',<br />
mode = 'external',<br />
prefix = '//www.jstor.org/stable/', -- protocol relative tested 2013-09-04<br />
COinS = 'pre', -- use prefix value<br />
encode = false,<br />
separator = '&nbsp;',<br />
custom_access = 'jstor-access',<br />
},<br />
['LCCN'] = {<br />
parameters = {'LCCN', 'lccn'},<br />
link = 'Library of Congress Control Number',<br />
q = 'Q620946',<br />
label = 'LCCN',<br />
mode = 'manual',<br />
prefix = '//lccn.loc.gov/', -- protocol relative tested 2015-12-28<br />
COinS = 'info:lccn', -- use prefix value<br />
encode = false,<br />
separator = '&nbsp;',<br />
},<br />
['MR'] = {<br />
parameters = {'MR', 'mr'},<br />
link = 'Mathematical Reviews',<br />
q = 'Q211172',<br />
label = 'MR',<br />
mode = 'manual',<br />
prefix = '//www.ams.org/mathscinet-getitem?mr=', -- protocol relative tested 2013-09-04<br />
COinS = 'pre', -- use prefix value<br />
encode = true,<br />
separator = '&nbsp;',<br />
},<br />
['OCLC'] = {<br />
parameters = {'OCLC', 'oclc'},<br />
link = 'OCLC',<br />
q = 'Q190593',<br />
label = 'OCLC',<br />
mode = 'manual',<br />
prefix = '//www.worldcat.org/oclc/',<br />
COinS = 'info:oclcnum',<br />
encode = true,<br />
separator = '&nbsp;',<br />
},<br />
['OL'] = {<br />
parameters = { 'ol', 'OL' },<br />
link = 'Open Library',<br />
q = 'Q1201876',<br />
label = 'OL',<br />
mode = 'manual',<br />
prefix = '//openlibrary.org/',<br />
COinS = nil, -- no COinS for this id (needs thinking on implementation because /authors/books/works/OL)<br />
separator = '&nbsp;',<br />
encode = true,<br />
custom_access = 'ol-access',<br />
},<br />
['OSTI'] = {<br />
parameters = {'OSTI', 'osti'},<br />
link = 'Office of Scientific and Technical Information',<br />
q = 'Q2015776',<br />
label = 'OSTI',<br />
mode = 'external',<br />
prefix = '//www.osti.gov/energycitations/product.biblio.jsp?osti_id=', -- protocol relative tested 2013-09-04<br />
COinS = 'pre', -- use prefix value<br />
encode = true,<br />
separator = '&nbsp;',<br />
custom_access = 'osti-access',<br />
},<br />
['PMC'] = {<br />
parameters = {'PMC', 'pmc'},<br />
link = 'PubMed Central',<br />
q = 'Q229883',<br />
label = 'PMC',<br />
mode = 'manual',<br />
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',<br />
suffix = " ",<br />
COinS = 'pre', -- use prefix value<br />
encode = true,<br />
separator = '&nbsp;',<br />
access = 'free', -- free to read<br />
},<br />
['PMID'] = {<br />
parameters = {'PMID', 'pmid'},<br />
link = 'PubMed Identifier',<br />
q = '',<br />
label = 'PMID',<br />
mode = 'manual',<br />
prefix = '//www.ncbi.nlm.nih.gov/pubmed/',<br />
COinS = 'info:pmid',<br />
encode = false,<br />
separator = '&nbsp;',<br />
},<br />
['RFC'] = {<br />
parameters = {'RFC', 'rfc'},<br />
link = 'Request for Comments',<br />
q = 'Q212971',<br />
label = 'RFC',<br />
mode = 'external',<br />
prefix = '//tools.ietf.org/html/rfc',<br />
COinS = 'pre', -- use prefix value<br />
encode = false,<br />
separator = '&nbsp;',<br />
access = 'free', -- free to read<br />
},<br />
['SSRN'] = {<br />
parameters = {'SSRN', 'ssrn'},<br />
link = 'Social Science Research Network',<br />
q = 'Q7550801',<br />
label = 'SSRN',<br />
mode = 'manual',<br />
prefix = '//ssrn.com/abstract=', -- protocol relative tested 2013-09-04<br />
COinS = 'pre', -- use prefix value<br />
encode = true,<br />
separator = '&nbsp;',<br />
access = 'free', -- always free to read<br />
},<br />
['USENETID'] = {<br />
parameters = {'message-id'},<br />
link = 'Usenet',<br />
q = 'Q193162',<br />
label = 'Usenet:',<br />
mode = 'manual',<br />
prefix = 'news:',<br />
encode = false,<br />
COinS = 'pre', -- use prefix value<br />
separator = '&nbsp;',<br />
},<br />
['ZBL'] = {<br />
parameters = {'ZBL', 'zbl'},<br />
link = 'Zentralblatt MATH',<br />
q = 'Q190269',<br />
label = 'Zbl',<br />
mode = 'manual',<br />
prefix = '//zbmath.org/?format=complete&q=an:',<br />
COinS = 'pre', -- use prefix value<br />
encode = true,<br />
separator = '&nbsp;',<br />
},<br />
}<br />
<br />
<br />
return {<br />
aliases = aliases,<br />
special_case_translation = special_case_translation,<br />
defaults = defaults,<br />
date_names = date_names,<br />
error_conditions = error_conditions,<br />
id_handlers = id_handlers,<br />
keywords = keywords,<br />
stripmarkers=stripmarkers,<br />
invisible_chars = invisible_chars,<br />
indic_script = indic_script,<br />
maint_cats = maint_cats,<br />
messages = messages,<br />
presentation = presentation,<br />
prop_cats = prop_cats,<br />
script_lang_codes = script_lang_codes,<br />
lang_code_remap = lang_code_remap,<br />
lang_name_remap = lang_name_remap,<br />
title_types = title_types,<br />
uncategorized_namespaces = uncategorized_namespaces,<br />
uncategorized_subpages = uncategorized_subpages,<br />
templates_using_volume = templates_using_volume,<br />
templates_using_issue = templates_using_issue,<br />
templates_not_using_page = templates_not_using_page,<br />
}</div>Adminwiki