<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://primaryhealthcare.in/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Akshay</id>
	<title>PHCpedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://primaryhealthcare.in/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Akshay"/>
	<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/w/Special:Contributions/Akshay"/>
	<updated>2026-04-20T10:03:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=240</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=240"/>
		<updated>2026-04-14T18:58:28Z</updated>

		<summary type="html">&lt;p&gt;Akshay: make date sortable&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination, sexual harassment, and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Course&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-10-06}}&lt;br /&gt;
|[[Sugirtha Sivakumar]]&lt;br /&gt;
|&lt;br /&gt;
|Sree Mookambika Institute of Medical Sciences, Kanyakumari&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-14}}&lt;br /&gt;
|[[Athira S]]&lt;br /&gt;
|&lt;br /&gt;
|Nemam Victory Girls Higher Secondary&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2011-04-16}}&lt;br /&gt;
|Linesh Mohan Gawle&lt;br /&gt;
|PhD&lt;br /&gt;
|National Institute of Immunology, New Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2011-02-13}}&lt;br /&gt;
|Manish Kumar&lt;br /&gt;
|IIIrd Year B.Tech&lt;br /&gt;
|IIT Roorkee&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2011-01-30}}&lt;br /&gt;
|G. Varalakshmi&lt;br /&gt;
|B.Tech first year&lt;br /&gt;
|Vignan Engineering College, Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2010-11-17}}&lt;br /&gt;
|Madhuri Sale&lt;br /&gt;
|Final year B.Tech&lt;br /&gt;
|IIT Kanpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2010-07-01}}&lt;br /&gt;
|JK Ramesh&lt;br /&gt;
|Second year, BSc&lt;br /&gt;
|University of Agricultural Sciences, Bangalore&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2010-03-03}}&lt;br /&gt;
|Balmukund Bharti&lt;br /&gt;
|Final year MBBS&lt;br /&gt;
|All India Institute of Medical Sciences (AIIMS), New Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2010-01-31}}&lt;br /&gt;
|Sushil Kumar Chaudhary&lt;br /&gt;
|Final year MBBS&lt;br /&gt;
|Chattrapati Shahuji Maharaj Medical University (formerly KGMC)&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2010-01-30}}&lt;br /&gt;
|Pushpanjali Poorty&lt;br /&gt;
|First year, MBA&lt;br /&gt;
|Visvesvaraiah Technological University, Bangalore&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2009-11-05}}&lt;br /&gt;
|Bandi Anusha&lt;br /&gt;
|B.Com final year&lt;br /&gt;
|Villa Mary College, Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2009-11-04}}&lt;br /&gt;
|S. Amravathi&lt;br /&gt;
|National level young woman boxer&lt;br /&gt;
|Centre of Excellence, Sports Authority of Andhra Pradesh, Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2009-08-13}}&lt;br /&gt;
|D Syam Kumar&lt;br /&gt;
|First year B.Tech&lt;br /&gt;
|Sarojini Institute of Engineering and Technology, Vijayawada&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2009-04-20}}&lt;br /&gt;
|Ankita Veghda&lt;br /&gt;
|First year, BSc Nursing&lt;br /&gt;
|Singhi Institute of Nursing, Ahmedabad&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2009-01-02}}&lt;br /&gt;
|G. Suman&lt;br /&gt;
|Final year, M.Tech&lt;br /&gt;
|IIT Kanpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2008-04-19}}&lt;br /&gt;
|Prashant Kureel&lt;br /&gt;
|First year, B.Tech&lt;br /&gt;
|IIT Kanpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2008-02-23}}&lt;br /&gt;
|Senthil Kumar&lt;br /&gt;
|PhD, School of Physics&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2008-01-27}}&lt;br /&gt;
|Jaspreet Singh&lt;br /&gt;
|Final year MBBS&lt;br /&gt;
|Government Medical College, Chandigarh&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2007-08-26}}&lt;br /&gt;
|Ajay S. Chandra&lt;br /&gt;
|Integrated PhD&lt;br /&gt;
|Indian Institute of Sciences (IISc), Bangalore&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2007-01-01}}&lt;br /&gt;
|M. Shrikant&lt;br /&gt;
|Final year, B.Tech&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|}&lt;br /&gt;
Note: Names before 2012 are sourced from https://thedeathofmeritinindia.wordpress.com/2011/04/25/list-of-dalit-students-committing-suicide-in-last-four-years-in-indias-premier-institutions/&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=239</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=239"/>
		<updated>2026-04-14T18:56:41Z</updated>

		<summary type="html">&lt;p&gt;Akshay: add people from https://thedeathofmeritinindia.wordpress.com/2011/04/25/list-of-dalit-students-committing-suicide-in-last-four-years-in-indias-premier-institutions/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination, sexual harassment, and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Course&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-10-06}}&lt;br /&gt;
|[[Sugirtha Sivakumar]]&lt;br /&gt;
|&lt;br /&gt;
|Sree Mookambika Institute of Medical Sciences, Kanyakumari&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-14}}&lt;br /&gt;
|[[Athira S]]&lt;br /&gt;
|&lt;br /&gt;
|Nemam Victory Girls Higher Secondary&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|2011-04-16&lt;br /&gt;
|Linesh Mohan Gawle&lt;br /&gt;
|PhD&lt;br /&gt;
|National Institute of Immunology, New Delhi&lt;br /&gt;
|-&lt;br /&gt;
|2011-02-13&lt;br /&gt;
|Manish Kumar&lt;br /&gt;
|IIIrd Year B.Tech&lt;br /&gt;
|IIT Roorkee&lt;br /&gt;
|-&lt;br /&gt;
|2011-01-30&lt;br /&gt;
|G. Varalakshmi&lt;br /&gt;
|B.Tech first year&lt;br /&gt;
|Vignan Engineering College, Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|2010-11-17&lt;br /&gt;
|Madhuri Sale&lt;br /&gt;
|Final year B.Tech&lt;br /&gt;
|IIT Kanpur&lt;br /&gt;
|-&lt;br /&gt;
|2010-07-01&lt;br /&gt;
|JK Ramesh&lt;br /&gt;
|Second year, BSc&lt;br /&gt;
|University of Agricultural Sciences, Bangalore&lt;br /&gt;
|-&lt;br /&gt;
|2010-03-03&lt;br /&gt;
|Balmukund Bharti&lt;br /&gt;
|Final year MBBS&lt;br /&gt;
|All India Institute of Medical Sciences (AIIMS), New Delhi&lt;br /&gt;
|-&lt;br /&gt;
|2010-01-31&lt;br /&gt;
|Sushil Kumar Chaudhary&lt;br /&gt;
|Final year MBBS&lt;br /&gt;
|Chattrapati Shahuji Maharaj Medical University (formerly KGMC)&lt;br /&gt;
|-&lt;br /&gt;
|2010-01-30&lt;br /&gt;
|Pushpanjali Poorty&lt;br /&gt;
|First year, MBA&lt;br /&gt;
|Visvesvaraiah Technological University, Bangalore&lt;br /&gt;
|-&lt;br /&gt;
|2009-11-05&lt;br /&gt;
|Bandi Anusha&lt;br /&gt;
|B.Com final year&lt;br /&gt;
|Villa Mary College, Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|2009-11-04&lt;br /&gt;
|S. Amravathi&lt;br /&gt;
|National level young woman boxer&lt;br /&gt;
|Centre of Excellence, Sports Authority of Andhra Pradesh, Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|2009-08-13&lt;br /&gt;
|D Syam Kumar&lt;br /&gt;
|First year B.Tech&lt;br /&gt;
|Sarojini Institute of Engineering and Technology, Vijayawada&lt;br /&gt;
|-&lt;br /&gt;
|2009-04-20&lt;br /&gt;
|Ankita Veghda&lt;br /&gt;
|First year, BSc Nursing&lt;br /&gt;
|Singhi Institute of Nursing, Ahmedabad&lt;br /&gt;
|-&lt;br /&gt;
|2009-01-02&lt;br /&gt;
|G. Suman&lt;br /&gt;
|Final year, M.Tech&lt;br /&gt;
|IIT Kanpur&lt;br /&gt;
|-&lt;br /&gt;
|2008-04-19&lt;br /&gt;
|Prashant Kureel&lt;br /&gt;
|First year, B.Tech&lt;br /&gt;
|IIT Kanpur&lt;br /&gt;
|-&lt;br /&gt;
|2008-02-23&lt;br /&gt;
|Senthil Kumar&lt;br /&gt;
|PhD, School of Physics&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|-&lt;br /&gt;
|2008-01-27&lt;br /&gt;
|Jaspreet Singh&lt;br /&gt;
|Final year MBBS&lt;br /&gt;
|Government Medical College, Chandigarh&lt;br /&gt;
|-&lt;br /&gt;
|2007-08-26&lt;br /&gt;
|Ajay S. Chandra&lt;br /&gt;
|Integrated PhD&lt;br /&gt;
|Indian Institute of Sciences (IISc), Bangalore&lt;br /&gt;
|-&lt;br /&gt;
|2007-01-01&lt;br /&gt;
|M. Shrikant&lt;br /&gt;
|Final year, B.Tech&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|}&lt;br /&gt;
Note: Names before 2012 are sourced from https://thedeathofmeritinindia.wordpress.com/2011/04/25/list-of-dalit-students-committing-suicide-in-last-four-years-in-indias-premier-institutions/&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=238</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=238"/>
		<updated>2026-04-14T18:42:40Z</updated>

		<summary type="html">&lt;p&gt;Akshay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination, sexual harassment, and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-10-06}}&lt;br /&gt;
|[[Sugirtha Sivakumar]]&lt;br /&gt;
|Sree Mookambika Institute of Medical Sciences, Kanyakumari&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-14}}&lt;br /&gt;
|[[Athira S]]&lt;br /&gt;
|Nemam Victory Girls Higher Secondary&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=237</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=237"/>
		<updated>2026-04-14T18:36:02Z</updated>

		<summary type="html">&lt;p&gt;Akshay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination, sexual harassment, and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-10-06}}&lt;br /&gt;
|[[Sugirtha Sivakumar]]&lt;br /&gt;
|Sree Mookambika Institute of Medical Sciences, Kanyakumari&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=236</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=236"/>
		<updated>2026-04-14T18:35:28Z</updated>

		<summary type="html">&lt;p&gt;Akshay: add sugirtha&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-10-06}}&lt;br /&gt;
|[[Sugirtha Sivakumar]]&lt;br /&gt;
|Sree Mookambika Institute of Medical Sciences, Kanyakumari&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=235</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=235"/>
		<updated>2026-04-14T18:32:00Z</updated>

		<summary type="html">&lt;p&gt;Akshay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=234</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=234"/>
		<updated>2026-04-14T18:31:30Z</updated>

		<summary type="html">&lt;p&gt;Akshay: make table sortable&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=233</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=233"/>
		<updated>2026-04-14T18:31:00Z</updated>

		<summary type="html">&lt;p&gt;Akshay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-08-09}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|Jadavpur University&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-02-12}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|IIT Bombay&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=232</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=232"/>
		<updated>2026-04-14T18:29:07Z</updated>

		<summary type="html">&lt;p&gt;Akshay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10}}&lt;br /&gt;
|[[Faizan Ahmed]]&lt;br /&gt;
|IIT Kharagpur&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-10-09}}&lt;br /&gt;
|[[Gudla Mahesh Sai Raj]]&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2022-09-16}}&lt;br /&gt;
|student from Kerala&lt;br /&gt;
|IIT Guwahati&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2019-05-22}}&lt;br /&gt;
|[[wikipedia:Suicide_of_Payal_Tadvi|Payal Salim Tadvi]]&lt;br /&gt;
|Topiwala National Medical College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=231</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=231"/>
		<updated>2026-04-14T18:13:19Z</updated>

		<summary type="html">&lt;p&gt;Akshay: link to wiki&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[wikipedia:Rohith_Vemula|Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=230</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=230"/>
		<updated>2026-04-14T18:12:46Z</updated>

		<summary type="html">&lt;p&gt;Akshay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
!Institution&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|Kannur Dental College&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|Kerala Veterinary and Animal Sciences University, Pookode&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|IIT Delhi&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2016-01-17}}&lt;br /&gt;
|[[Rohith Vemula]]&lt;br /&gt;
|University of Hyderabad&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=229</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=229"/>
		<updated>2026-04-14T18:08:28Z</updated>

		<summary type="html">&lt;p&gt;Akshay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024-02-14}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-09-01}}&lt;br /&gt;
|[[Anil Kumar]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023-07-08}}&lt;br /&gt;
|[[Ayush Ashna]]&lt;br /&gt;
|-&lt;br /&gt;
|2016&lt;br /&gt;
|[[Rohith Vemula]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=228</id>
		<title>Institutional murders</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Institutional_murders&amp;diff=228"/>
		<updated>2026-04-14T17:41:09Z</updated>

		<summary type="html">&lt;p&gt;Akshay: convert to table&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will serve as a list of people murdered by institutions due to caste discrimination and other power hierarchies in India.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Date&lt;br /&gt;
!Name&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2026-04-10}}&lt;br /&gt;
|[[Nithin Raj]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2024}}&lt;br /&gt;
|[[J.S. Sidharthan]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Swapnadeep Kundu]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Darshan Solanki]]&lt;br /&gt;
|-&lt;br /&gt;
|{{Date table sorting|2023}}&lt;br /&gt;
|[[Rohith Vemula]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Shortcut/styles.css&amp;diff=227</id>
		<title>Module:Shortcut/styles.css</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Shortcut/styles.css&amp;diff=227"/>
		<updated>2026-04-14T17:35:30Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp-template}} */&lt;br /&gt;
.module-shortcutboxplain {&lt;br /&gt;
	float: right;&lt;br /&gt;
	margin: 0 0 0 1em;&lt;br /&gt;
	border: 1px solid var(--border-color-base, #a2a9b1);&lt;br /&gt;
	background-color: var(--background-color-base, #fff);&lt;br /&gt;
	padding: 0.3em 0.6em 0.2em 0.6em;&lt;br /&gt;
	text-align: center;&lt;br /&gt;
	font-size: 85%;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.module-shortcutboxleft {&lt;br /&gt;
	float: left;&lt;br /&gt;
	margin: 0 1em 0 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.module-shortcutlist {&lt;br /&gt;
	display: inline-block;&lt;br /&gt;
	border-bottom: 1px solid var(--border-color-base, #a2a9b1);&lt;br /&gt;
	margin-bottom: 0.2em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.module-shortcutboxplain ul {&lt;br /&gt;
	font-weight: bold;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.module-shortcutanchordiv {&lt;br /&gt;
	position: relative;&lt;br /&gt;
	top: -3em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
li .module-shortcutanchordiv {&lt;br /&gt;
	float: right; /* IE/Edge in list items */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.mbox-imageright .module-shortcutboxplain {&lt;br /&gt;
	padding: 0.4em 1em;&lt;br /&gt;
	line-height: 1.3;&lt;br /&gt;
	margin: 0;&lt;br /&gt;
	float: initial;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Plainlist/styles.css&amp;diff=225</id>
		<title>Template:Plainlist/styles.css</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Plainlist/styles.css&amp;diff=225"/>
		<updated>2026-04-14T17:35:29Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp-template|small=yes}} */&lt;br /&gt;
.plainlist ol,&lt;br /&gt;
.plainlist ul {&lt;br /&gt;
	line-height: inherit;&lt;br /&gt;
	list-style: none;&lt;br /&gt;
	margin: 0;&lt;br /&gt;
	padding: 0; /* Reset Minerva default */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.plainlist ol li,&lt;br /&gt;
.plainlist ul li {&lt;br /&gt;
	margin-bottom: 0;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Date_table_sorting/testcases/row&amp;diff=223</id>
		<title>Template:Date table sorting/testcases/row</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Date_table_sorting/testcases/row&amp;diff=223"/>
		<updated>2026-04-14T17:35:28Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{testcases notice}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;|-&lt;br /&gt;
{{#if:{{{a|}}}|&lt;br /&gt;
{{!}} style=&amp;quot;vertical-align:top;&amp;quot; rowspan={{{span|1}}}{{!}}{{{a}}}{{!}}&lt;br /&gt;
}}{{#if:{{{b|}}}|&lt;br /&gt;
{{!}} style=&amp;quot;vertical-align:top; white-space:nowrap;&amp;quot; rowspan={{{span|1}}}{{!}}{{{b}}}{{!}}&lt;br /&gt;
}}|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Date table sorting&amp;lt;/nowiki&amp;gt;{{#if:{{{4|}}}&lt;br /&gt;
   |&amp;amp;#124;{{{1|}}}&amp;amp;#124;{{{2|}}}&amp;amp;#124;{{{3|}}}&amp;amp;#124;{{{4}}}&lt;br /&gt;
   |{{#if:{{{3|}}}&lt;br /&gt;
      |&amp;amp;#124;{{{1|}}}&amp;amp;#124;{{{2|}}}&amp;amp;#124;{{{3}}}&lt;br /&gt;
      |{{#if:{{{2|}}}&lt;br /&gt;
         |&amp;amp;#124;{{{1|}}}&amp;amp;#124;{{{2}}}&lt;br /&gt;
         |{{#if:{{{1|&amp;lt;noinclude&amp;gt;X&amp;lt;/noinclude&amp;gt;}}}&lt;br /&gt;
            |&amp;amp;#124;{{{1|{{#time:j M Y}}}}}&lt;br /&gt;
          }}&lt;br /&gt;
       }}&lt;br /&gt;
    }}&lt;br /&gt;
 }}{{#if:{{{format|}}}&lt;br /&gt;
   |&amp;amp;#124;format={{{format|}}}&lt;br /&gt;
 }}{{#if:{{{abbr|}}}&lt;br /&gt;
   |&amp;amp;#124;abbr={{{abbr|}}}&lt;br /&gt;
 }}{{#if:{{{addkey|}}}&lt;br /&gt;
   |&amp;amp;#124;addkey={{{addkey|}}}&lt;br /&gt;
 }}}}&amp;lt;/code&amp;gt;&lt;br /&gt;
{{#if:{{{test|}}}&lt;br /&gt;
   |{{Date table sorting/testcases/colour&lt;br /&gt;
      |{{Date table sorting&lt;br /&gt;
         |{{{1|&amp;lt;noinclude&amp;gt;{{#time:j M Y}}&amp;lt;/noinclude&amp;gt;}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|debug=yes&lt;br /&gt;
         |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format={{{format|}}}&lt;br /&gt;
       }}&lt;br /&gt;
      |{{Date table sorting/sandbox&lt;br /&gt;
         |{{{1|&amp;lt;noinclude&amp;gt;{{#time:j M Y}}&amp;lt;/noinclude&amp;gt;}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|debug=yes&lt;br /&gt;
         |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format={{{format|}}}&lt;br /&gt;
      }}&lt;br /&gt;
    }}&lt;br /&gt;
   |{{!}}{{Date table sorting&lt;br /&gt;
      |{{{1|&amp;lt;noinclude&amp;gt;{{#time:j M Y}}&amp;lt;/noinclude&amp;gt;}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|debug=yes&lt;br /&gt;
      |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=hide&lt;br /&gt;
    }}{{!}}{{!}}{{Date table sorting&lt;br /&gt;
      |{{{1|&amp;lt;noinclude&amp;gt;{{#time:j M Y}}&amp;lt;/noinclude&amp;gt;}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}&lt;br /&gt;
      |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format={{{format|}}}&lt;br /&gt;
    }}&lt;br /&gt;
 }}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Date_table_sorting/doc&amp;diff=221</id>
		<title>Template:Date table sorting/doc</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Date_table_sorting/doc&amp;diff=221"/>
		<updated>2026-04-14T17:35:24Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt;&lt;br /&gt;
{{High-use| 27900 }}&lt;br /&gt;
{{Mbox|type=content|text=Please check that you do actually need this template before using it. Default date sorting does not work for spelled-out month–year or year–month combos and dates before the year 100, but it works in most other circumstances. For more information, see {{Section link|Help:Sortable tables|Date sorting problems}}.}}&lt;br /&gt;
{{COinS safe|n}}&lt;br /&gt;
{{template shortcut|dts}}&lt;br /&gt;
{{lua|Module:Date table sorting}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Date table sorting&#039;&#039;&#039; is used to correctly sort and display dates in a sortable table (see [[Help:Sortable tables]]).&lt;br /&gt;
&lt;br /&gt;
==What it solves==&lt;br /&gt;
Dates in their customary formats, if simply treated as alphanumeric text strings, sort in nonsensical ways:&lt;br /&gt;
*1 September 1998 sorts alphanumerically before 5 March 1967, because &#039;&#039;1&#039;&#039; is less than &#039;&#039;5&#039;&#039;;&lt;br /&gt;
*February 5, 1922 sorts alphanumerically before January 3, 1922, because &#039;&#039;F&#039;&#039; comes before &#039;&#039;J&#039;&#039;.&lt;br /&gt;
Use of the YYYY-MM-DD format would solve this problem, but with minor exceptions that format is not used in articles (see [[WP:DATEFORMAT]]).&lt;br /&gt;
&lt;br /&gt;
This template automatically attaches a &amp;quot;hidden key&amp;quot; to dates, causing them to sort correctly while still being displayed in one of the customary display formats such as &#039;&#039;February 5, 1922,&#039;&#039; or &#039;&#039;5 Feb 1922&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
===Dates===&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
|+The year, month and day can either be entered separately or as a single date.&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width: 50%;&amp;quot; |{{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;year&#039;&#039;|&#039;&#039;month&#039;&#039;|&#039;&#039;day&#039;&#039;|&#039;&#039;BC&#039;&#039;}}&lt;br /&gt;
! style=&amp;quot;width: 50%;&amp;quot; |{{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;date&#039;&#039;}}&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
* 1st parameter – Year (optional if month is given)&lt;br /&gt;
** Positive numbers (1 to 999,999,999,999) represent years AD or BC (dependant on the fourth parameter).&lt;br /&gt;
** Negative numbers (−1 to −999,999,999,999) represent years BC (without the fourth parameter).&lt;br /&gt;
** Year numbers must not contain commas or other formatting.&lt;br /&gt;
* 2nd parameter – Month (optional if the day is not given either)&lt;br /&gt;
** Full month name – e.g. February&lt;br /&gt;
** Abbreviated month name – e.g. Feb&lt;br /&gt;
** Month number – (either zero-padded or not) e.g. 2 or 02&lt;br /&gt;
* 3rd parameter – Day (optional)&lt;br /&gt;
** Day number – (either zero-padded or not) e.g. 7 or 07&lt;br /&gt;
* 4th parameter – (optional)&lt;br /&gt;
** May be BC, AD, BCE or CE&lt;br /&gt;
** Used with a positive year number&lt;br /&gt;
|&lt;br /&gt;
* 1st parameter – the full date&lt;br /&gt;
** By default YYYY-MM-DD format becomes month-day-year format and DD-MM-YYYY format becomes day-month-year while other formats remain in the order they are input.&lt;br /&gt;
** Abbreviated months are accepted and are abbreviated in the output.&lt;br /&gt;
** Capitalisation and comma mistakes are corrected.&lt;br /&gt;
** A single number is interpreted as a year, otherwise the date is parsed by the module. The following formats are accepted:&lt;br /&gt;
*** YYYY-MM-DD&lt;br /&gt;
*** DD-MM-YYYY&lt;br /&gt;
*** DD Month YYYY&lt;br /&gt;
*** Month DD, YYYY&lt;br /&gt;
*** YYYY-MM&lt;br /&gt;
*** DD Month&lt;br /&gt;
*** Month DD&lt;br /&gt;
*** Month YYYY&lt;br /&gt;
*** YYYY&lt;br /&gt;
*** Month&lt;br /&gt;
** Day and month numbers may be 1 or 2 digits, and year numbers may only be 3 or 4 digits. If you need to input a number less than 1000, use leading zeroes (e.g. &amp;quot;0700&amp;quot;).&lt;br /&gt;
** BC years can only be parsed if the date is only the year number.&lt;br /&gt;
** If you need to include the day or month for BC years or years greater than 9999, you must use separate parameters for year, month and day.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Examples&lt;br /&gt;
!input style&lt;br /&gt;
!input code&lt;br /&gt;
!hidden sort key&lt;br /&gt;
!visible output&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=5|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;year&#039;&#039;}}|1893}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|-89}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|-10000}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|-1}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row| 1}} {{efn|Year 0 does not exist and gives error message}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;month&#039;&#039;}}|Oct}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;month year&#039;&#039;}}|February 1767}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;day month year&#039;&#039;}}|12 Aug 1987}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;month day, year&#039;&#039;}}|July 1, 1867}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;day month&#039;&#039;}}|25 October}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;month day&#039;&#039;}}|Jan 1}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;YYYY-MM-DD&#039;&#039;}}|2014-12-09}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;DD-MM-YYYY&#039;&#039;}}|15-05-2019}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=3|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;year&#039;&#039;|&#039;&#039;month&#039;&#039;}}|1990|10}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|1980|Dec}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|1970|August}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=2|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;year&#039;&#039;|&#039;&#039;month&#039;&#039;|&#039;&#039;day&#039;&#039;}}|2024|Jun|12}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|-204|11|22}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=2|a={{tlf|code=on|{{BASEPAGENAME}}|&#039;&#039;year&#039;&#039;|&#039;&#039;month&#039;&#039;|&#039;&#039;day&#039;&#039;|&#039;&#039;era&#039;&#039;}}|44|3|15|BC}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|94|Oct|17|AD}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}||&#039;&#039;month&#039;&#039;}}||May}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a={{tlf|code=on|{{BASEPAGENAME}}||&#039;&#039;month&#039;&#039;|&#039;&#039;day&#039;&#039;}}||Sep|12}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Formatting===&lt;br /&gt;
Using a format in the {{para|format}} parameter, such as &amp;lt;code&amp;gt;dmy&amp;lt;/code&amp;gt;, produces a format that depends on, but is not necessarily equal to the format of the supplied date. The {{para|format}} parameter can take nine values.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Examples&lt;br /&gt;
|-&lt;br /&gt;
!value&lt;br /&gt;
!function&lt;br /&gt;
!input code&lt;br /&gt;
!hidden sort key&lt;br /&gt;
!visible output&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=3|a=&amp;amp;nbsp;|b=format depends on the input|26 Jan 1788}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|March 12, 1557}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|1975-02-13}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=2|a=&amp;lt;code&amp;gt;dmy&amp;lt;/code&amp;gt;|b=displays the date in day-month-year format|Sep 13, 1888|format=dmy}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|1983-01-03|format=dmy}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=2|a=&amp;lt;code&amp;gt;dm&amp;lt;/code&amp;gt;|b=displays only the day and month in day-month format|Feb 26, 1788|format=dm}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2020-10-15|format=dm}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=2|a=&amp;lt;code&amp;gt;mdy&amp;lt;/code&amp;gt;|b=displays the date in month-day-year format|August 31, 1901|format=mdy}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2006-11-08|format=mdy}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=2|a=&amp;lt;code&amp;gt;md&amp;lt;/code&amp;gt;|b=displays only the day and month in month-day format|26 Jun 1988|format=md}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2002-02-27|format=md}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a=&amp;lt;code&amp;gt;my&amp;lt;/code&amp;gt;|b=displays only the month and year in month-year format|16 November 1488|format=my}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a=&amp;lt;code&amp;gt;d&amp;lt;/code&amp;gt;|b=displays only the day|6 July 1666|format=d}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a=&amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt;|b=displays only the month|1980-02-12|format=m}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a=&amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;|b=displays only the year|-26|Jan|18|format=y}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|a=&amp;lt;code&amp;gt;hide&amp;lt;/code&amp;gt;|b=hides the date|15 October 1800|format=hide}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Abbreviation===&lt;br /&gt;
There are two ways of abbreviating the month name.&lt;br /&gt;
# Directly input an abbreviated month name.&lt;br /&gt;
# Use the {{para|abbr|on}} parameter. It can be placed before or after the date in the template. This allows one to abbreviate the month later if the table becomes too wide. It is easy to use find-and-replace in a text editor, or the wikitext editor, to replace &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Date table sorting|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Date table sorting|abbr=on|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Examples&lt;br /&gt;
|-&lt;br /&gt;
!abbreviation method&lt;br /&gt;
!input code&lt;br /&gt;
!hidden sort key&lt;br /&gt;
!visible output&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=4|a=none|2000-01-01}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2000|1|1}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|1 January 2000}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2000|January|1}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=2|a=abbreviated input|1 Jan 2000}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2000|Jan|1}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|span=4|a=&amp;lt;code&amp;gt;abbr{{=}}on&amp;lt;/code&amp;gt;|1 January 2000|abbr=on}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2000|January|1|abbr=on}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2000-01-01|abbr=on}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2000|1|1|abbr=on}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Additional sort key===&lt;br /&gt;
In case two dates in a table are identical they may be ordered using the &amp;lt;code&amp;gt;addkey&amp;lt;/code&amp;gt; parameter.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ Examples&lt;br /&gt;
|-&lt;br /&gt;
!input code&lt;br /&gt;
!hidden sort key&lt;br /&gt;
!visible output&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2010-10-10|addkey=3}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2010-10-09}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2010-10-10|addkey=1}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2010-10-10}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2010-10-10|addkey=4}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2010-10-11}}&lt;br /&gt;
{{{{BASEPAGENAME}}/testcases/row|2010-10-10|addkey=2}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Wrapping===&lt;br /&gt;
Wrapping of the date can help narrow a column and table. To allow wrapping use the {{para|nowrap|off}} parameter. For further narrowing use the {{para|abbr|on}} parameter as described elsewhere. Both of these parameters help with wide tables, narrow screens, cell phones, etc..&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Full date or year&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Full date if second to fourth parameters are not specfied, otherwise year. Full date can be either in \&amp;quot;YYYY-MM-DD\&amp;quot;, \&amp;quot;DD-MM-YYYY\&amp;quot;, \&amp;quot;DD Month YYYY\&amp;quot;, \&amp;quot;Month DD, YYYY\&amp;quot;, \&amp;quot;YYYY-MM\&amp;quot;, \&amp;quot;DD Month\&amp;quot;, \&amp;quot;Month DD\&amp;quot;, \&amp;quot;Month YYYY\&amp;quot; or \&amp;quot;Month\&amp;quot; format. Year is either a positive number or a negative number. If fourth parameter is not specified negative numbers are interpreted as years of BC era. Parameter is optional if the second parameter is specified.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;\&amp;quot;1893\&amp;quot;, \&amp;quot;-89\&amp;quot;, \&amp;quot;-10000\&amp;quot;, \&amp;quot;Oct\&amp;quot;, \&amp;quot;February 1767\&amp;quot;, \&amp;quot;12 Aug 1987\&amp;quot;, \&amp;quot;July 1, 1867\&amp;quot;, \&amp;quot;25 October\&amp;quot;, \&amp;quot;Jan 1\&amp;quot;, \&amp;quot;2014-12-09\&amp;quot;&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Month&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Full or abbreviated month name or alternatively, a month number which can be zero-padded. Parameter is optional if the third parameter is not specified.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;February, Feb, 2 or 02&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Day&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Day, optionally zero-padded&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;7 or 07&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Era&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;BC, AD, BCE or CE. Takes effect only if the first parameter is a positive number.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;format&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Format&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Controls the output format. Can be \&amp;quot;dmy\&amp;quot;, \&amp;quot;dm\&amp;quot;, \&amp;quot;mdy\&amp;quot;, \&amp;quot;md\&amp;quot;, \&amp;quot;my\&amp;quot;, \&amp;quot;d\&amp;quot;, \&amp;quot;m\&amp;quot;, \&amp;quot;y\&amp;quot; or \&amp;quot;hide\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;abbr&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Abbreviation&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Abbreviates the month name&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;on&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;off&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;addkey&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Additional sort key&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Adds another sort key to resolve conflicts between rows with the same date&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;3&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;nowrap&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Wrapping&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;To allow wrapping use the &#039;&#039;nowrap=off&#039;&#039; parameter.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;off&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;on&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Date table sorting is used to correctly sort and display dates in a sortable table.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
===Sorting for incomplete dates===&lt;br /&gt;
* &#039;&#039;&#039;Whole months or years&#039;&#039;&#039;: A whole year or month (and year) is sorted according to its first day.&lt;br /&gt;
* &#039;&#039;&#039;Missing years&#039;&#039;&#039;: If the year is not specified, the date will be sorted as if the year were the current year.&lt;br /&gt;
* &#039;&#039;&#039;Blank dates&#039;&#039;&#039;: For no date input at all, the maximum possible sort key is used, so the entry will sort last.&lt;br /&gt;
&lt;br /&gt;
===Calendar choice===&lt;br /&gt;
The template is not capable of distinguishing Julian and Gregorian calendar dates. Also, it is not capable of taking a date in one calendar as input and outputting a date in the other calendar. Thus, to ensure proper sorting, editors must either use one calendar for all dates, or pick a specific changeover date (e.g. deciding that 4 October 1582 is Julian and all later dates are Gregorian.); this would be done on an article-by article basis. Editors are also responsible for explaining to the reader whether the visible dates are Julian or Gregorian, if there is any possibility of confusion.&lt;br /&gt;
&lt;br /&gt;
===Linking===&lt;br /&gt;
The template formerly linked dates automatically, with {{para|link|off}} used to suppress linking. In accordance with current guidelines, [[WP:DATELINK|linking of dates]] is no longer supported and instances of {{para|link|off}} should be removed.&lt;br /&gt;
&lt;br /&gt;
===Error handling===&lt;br /&gt;
Errors are tracked in [[:Category:Date table sorting templates with errors]].&lt;br /&gt;
&lt;br /&gt;
{{notelist}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{tl|sort}}, sorting by a specified key (also good for complicated numbers, e.g. scientific notation)&lt;br /&gt;
* {{tl|sortname}}, full name sorting (using &amp;quot;last name, first name&amp;quot; as default sort key)&lt;br /&gt;
* {{tl|tts}}, for sorting times in result tables of athletic events (only needed in certain cases - see template documentation)&lt;br /&gt;
* {{tl|Number table sorting}}, for numbers&lt;br /&gt;
* {{tl|Year in date-sorted table}}, to sort years in a column with {{para|data-sort-type|date}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Sorting templates|{{BASEPAGENAME}}]]&lt;br /&gt;
[[Category:Date mathematics templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Transclusion_count/data/D&amp;diff=219</id>
		<title>Module:Transclusion count/data/D</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Transclusion_count/data/D&amp;diff=219"/>
		<updated>2026-04-14T17:35:18Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;return {&lt;br /&gt;
[&amp;quot;D&amp;amp;D_to-do&amp;quot;] = 6600,&lt;br /&gt;
[&amp;quot;DANFS&amp;quot;] = 8100,&lt;br /&gt;
[&amp;quot;DBCatsURL&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;DCS_Sri_Lanka&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;DDR&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;DEC&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;DECADE&amp;quot;] = 320000,&lt;br /&gt;
[&amp;quot;DEN&amp;quot;] = 7400,&lt;br /&gt;
[&amp;quot;DEU&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;DGRBM&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;DMC&amp;quot;] = 55000,&lt;br /&gt;
[&amp;quot;DMCA&amp;quot;] = 3180000,&lt;br /&gt;
[&amp;quot;DNB&amp;quot;] = 9500,&lt;br /&gt;
[&amp;quot;DNB-Portal&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;DNB_portal&amp;quot;] = 3600,&lt;br /&gt;
[&amp;quot;DNK&amp;quot;] = 8500,&lt;br /&gt;
[&amp;quot;DNZB&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;DOM&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;DOWs&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;DRV_links&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;DWT&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;DYKC&amp;quot;] = 6700,&lt;br /&gt;
[&amp;quot;DYKF&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;DYK_blue&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;DYK_checklist&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;DYK_conditions&amp;quot;] = 64000,&lt;br /&gt;
[&amp;quot;DYK_files&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;DYK_header&amp;quot;] = 55000,&lt;br /&gt;
[&amp;quot;DYK_nompage_links&amp;quot;] = 99000,&lt;br /&gt;
[&amp;quot;DYK_talk&amp;quot;] = 110000,&lt;br /&gt;
[&amp;quot;DYK_talk/date&amp;quot;] = 110000,&lt;br /&gt;
[&amp;quot;DYK_tools&amp;quot;] = 79000,&lt;br /&gt;
[&amp;quot;DYK_tools/styles.css&amp;quot;] = 79000,&lt;br /&gt;
[&amp;quot;DYKfile&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;DZA&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Dab&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Dagger&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Dark_red&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Darkred&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Dash&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_assignment&amp;quot;] = 34000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_bibliography/bibliography&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_bibliography/guide&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_bibliography/outline&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_course_header&amp;quot;] = 8000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_course_header/edit-note&amp;quot;] = 8000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_draft_template/about_this_sandbox&amp;quot;] = 20000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_evaluate_article/guide&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_peer_review/guide&amp;quot;] = 26000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_sandbox&amp;quot;] = 130000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_student_editor&amp;quot;] = 118000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_student_program_sandbox&amp;quot;] = 129000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_talk_course_link&amp;quot;] = 119000,&lt;br /&gt;
[&amp;quot;Dashboard.wikiedu.org_user_talk&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Date&amp;quot;] = 51000,&lt;br /&gt;
[&amp;quot;Date-mf&amp;quot;] = 63000,&lt;br /&gt;
[&amp;quot;Date_table_sorting&amp;quot;] = 45000,&lt;br /&gt;
[&amp;quot;Dated_maintenance_category&amp;quot;] = 3280000,&lt;br /&gt;
[&amp;quot;Dated_maintenance_category_(articles)&amp;quot;] = 3220000,&lt;br /&gt;
[&amp;quot;Dated_maintenance_category_by_type_(articles)&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Davis_Cup_player&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Day+1&amp;quot;] = 6900,&lt;br /&gt;
[&amp;quot;Day-1&amp;quot;] = 8300,&lt;br /&gt;
[&amp;quot;Db-meta&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Dbox&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Dda&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Dead_YouTube_link&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Dead_link&amp;quot;] = 363000,&lt;br /&gt;
[&amp;quot;Deadlink&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Deadweight_tonnage&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Death-date_and_age&amp;quot;] = 6800,&lt;br /&gt;
[&amp;quot;Death_date&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Death_date_and_age&amp;quot;] = 519000,&lt;br /&gt;
[&amp;quot;Death_date_and_given_age&amp;quot;] = 4400,&lt;br /&gt;
[&amp;quot;Death_date_text&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;Death_year&amp;quot;] = 4400,&lt;br /&gt;
[&amp;quot;Death_year_and_age&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Death_year_category_header&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Decade_link&amp;quot;] = 38000,&lt;br /&gt;
[&amp;quot;Decimals&amp;quot;] = 3600,&lt;br /&gt;
[&amp;quot;Declination&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Decline&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;Declined&amp;quot;] = 3600,&lt;br /&gt;
[&amp;quot;Decrease&amp;quot;] = 49000,&lt;br /&gt;
[&amp;quot;Define&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;Deg2DMS&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;Deleted_on_Commons&amp;quot;] = 5000,&lt;br /&gt;
[&amp;quot;Deletion_review_log_header&amp;quot;] = 6600,&lt;br /&gt;
[&amp;quot;Deletion_review_log_header/Core&amp;quot;] = 6600,&lt;br /&gt;
[&amp;quot;Delink&amp;quot;] = 1930000,&lt;br /&gt;
[&amp;quot;Delink_question_hyphen-minus&amp;quot;] = 437000,&lt;br /&gt;
[&amp;quot;Delrevxfd&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Democratic_Party_(US)/meta/shading&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;Description_missing&amp;quot;] = 5700,&lt;br /&gt;
[&amp;quot;Designation/text&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Designation_list&amp;quot;] = 7500,&lt;br /&gt;
[&amp;quot;Details&amp;quot;] = 3600,&lt;br /&gt;
[&amp;quot;DetailsLink&amp;quot;] = 5400,&lt;br /&gt;
[&amp;quot;Details_link&amp;quot;] = 6400,&lt;br /&gt;
[&amp;quot;Detect_singular&amp;quot;] = 248000,&lt;br /&gt;
[&amp;quot;Deutsche_Bahn_station_codes&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;DfE_performance_tables&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Dictionary_of_National_Biography&amp;quot;] = 9500,&lt;br /&gt;
[&amp;quot;Diff&amp;quot;] = 33000,&lt;br /&gt;
[&amp;quot;Diff2&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Diffusing_occupation_by_nationality_and_century_category_header&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;Diffusing_occupation_by_nationality_and_century_category_header/core&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;Digits&amp;quot;] = 5300,&lt;br /&gt;
[&amp;quot;Directories_box&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Disamb&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Disambig&amp;quot;] = 63000,&lt;br /&gt;
[&amp;quot;Disambig-Class&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Disambiguation&amp;quot;] = 232000,&lt;br /&gt;
[&amp;quot;Disambiguation/cat&amp;quot;] = 232000,&lt;br /&gt;
[&amp;quot;Disambiguation_page_short_description&amp;quot;] = 377000,&lt;br /&gt;
[&amp;quot;Discogs_artist&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Discogs_master&amp;quot;] = 16000,&lt;br /&gt;
[&amp;quot;Discogs_release&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Discussion_bottom&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Discussion_top&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Disestablishment_category_in_country&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Disestablishment_category_in_country/core&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Disestablishment_category_in_country_by_decade&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Disestablishment_category_in_country_by_decade/core&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;DisestcatCountry&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;DisestcatCountry/core&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;DisestcatUSstate&amp;quot;] = 5200,&lt;br /&gt;
[&amp;quot;DisestcatUSstate/core&amp;quot;] = 5200,&lt;br /&gt;
[&amp;quot;Disputed&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Distinguish&amp;quot;] = 124000,&lt;br /&gt;
[&amp;quot;Disused_Rail_Start&amp;quot;] = 4000,&lt;br /&gt;
[&amp;quot;Disused_rail_start&amp;quot;] = 4300,&lt;br /&gt;
[&amp;quot;Div_col&amp;quot;] = 482000,&lt;br /&gt;
[&amp;quot;Div_col/styles.css&amp;quot;] = 484000,&lt;br /&gt;
[&amp;quot;Div_col_end&amp;quot;] = 350000,&lt;br /&gt;
[&amp;quot;Divbox&amp;quot;] = 470000,&lt;br /&gt;
[&amp;quot;Divbox/styles.css&amp;quot;] = 470000,&lt;br /&gt;
[&amp;quot;Dividing_line&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Dmbox&amp;quot;] = 503000,&lt;br /&gt;
[&amp;quot;Dmbox/styles.css&amp;quot;] = 503000,&lt;br /&gt;
[&amp;quot;Do_not_move_to_Commons&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Doc&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Documentation&amp;quot;] = 145000,&lt;br /&gt;
[&amp;quot;Documentation_subpage&amp;quot;] = 100000,&lt;br /&gt;
[&amp;quot;Dog_opentask&amp;quot;] = 4100,&lt;br /&gt;
[&amp;quot;Doi&amp;quot;] = 29000,&lt;br /&gt;
[&amp;quot;Doing&amp;quot;] = 4100,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line&amp;quot;] = 148000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_always_display&amp;quot;] = 644000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_extinct&amp;quot;] = 644000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_link_target&amp;quot;] = 644000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_link_text&amp;quot;] = 644000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_parent&amp;quot;] = 644000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_rank&amp;quot;] = 644000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_refs&amp;quot;] = 148000,&lt;br /&gt;
[&amp;quot;Don&#039;t_edit_this_line_same_as&amp;quot;] = 644000,&lt;br /&gt;
[&amp;quot;Done&amp;quot;] = 122000,&lt;br /&gt;
[&amp;quot;Doppelganger&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Double+single&amp;quot;] = 4300,&lt;br /&gt;
[&amp;quot;Double-dagger&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Dow_tooltip&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Dr&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Dr-logno&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Dr-make&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Dr-yr&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Draft_article&amp;quot;] = 9700,&lt;br /&gt;
[&amp;quot;Draft_article_check&amp;quot;] = 9800,&lt;br /&gt;
[&amp;quot;Draft_categories&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Draft_other&amp;quot;] = 116000,&lt;br /&gt;
[&amp;quot;Draft_topics&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Drafts_moved_from_mainspace&amp;quot;] = 9400,&lt;br /&gt;
[&amp;quot;Draw&amp;quot;] = 4700,&lt;br /&gt;
[&amp;quot;Draw_key&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Draw_links&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Drep&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;DriverDB_driver&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Drugbankcite&amp;quot;] = 4300,&lt;br /&gt;
[&amp;quot;Drugbox&amp;quot;] = 6300,&lt;br /&gt;
[&amp;quot;Drugs.com&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;Dts&amp;quot;] = 43000,&lt;br /&gt;
[&amp;quot;Dubious&amp;quot;] = 8600,&lt;br /&gt;
[&amp;quot;Duck&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Dummytab&amp;quot;] = 6500,&lt;br /&gt;
[&amp;quot;Duration&amp;quot;] = 43000,&lt;br /&gt;
[&amp;quot;Dutch_municipality&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;Dyktalk&amp;quot;] = 39000,&lt;br /&gt;
[&amp;quot;Dynamic_list&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Module:DYK_checklist&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Module:DYK_checklist/data&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Module:DYK_nompage_links&amp;quot;] = 99000,&lt;br /&gt;
[&amp;quot;Module:Data&amp;quot;] = 109000,&lt;br /&gt;
[&amp;quot;Module:Date&amp;quot;] = 2080000,&lt;br /&gt;
[&amp;quot;Module:DateI18n&amp;quot;] = 46000,&lt;br /&gt;
[&amp;quot;Module:Date_table_sorting&amp;quot;] = 47000,&lt;br /&gt;
[&amp;quot;Module:Date_time&amp;quot;] = 553000,&lt;br /&gt;
[&amp;quot;Module:DecodeEncode&amp;quot;] = 145000,&lt;br /&gt;
[&amp;quot;Module:Delink&amp;quot;] = 3550000,&lt;br /&gt;
[&amp;quot;Module:Designation&amp;quot;] = 105000,&lt;br /&gt;
[&amp;quot;Module:Designation/list&amp;quot;] = 105000,&lt;br /&gt;
[&amp;quot;Module:Designation/lookup&amp;quot;] = 25000,&lt;br /&gt;
[&amp;quot;Module:Detect_singular&amp;quot;] = 2830000,&lt;br /&gt;
[&amp;quot;Module:Diff&amp;quot;] = 2900,&lt;br /&gt;
[&amp;quot;Module:Disambiguation&amp;quot;] = 312000,&lt;br /&gt;
[&amp;quot;Module:Disambiguation/templates&amp;quot;] = 13200000,&lt;br /&gt;
[&amp;quot;Module:Distinguish&amp;quot;] = 124000,&lt;br /&gt;
[&amp;quot;Module:Documentation&amp;quot;] = 199000,&lt;br /&gt;
[&amp;quot;Module:Documentation/config&amp;quot;] = 199000,&lt;br /&gt;
[&amp;quot;Module:Documentation/styles.css&amp;quot;] = 198000,&lt;br /&gt;
[&amp;quot;Module:Domain_handler&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Module:Draft_topics&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Module:Dts&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Module:Duration&amp;quot;] = 251000,&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Message_box/ombox.css&amp;diff=217</id>
		<title>Module:Message box/ombox.css</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Message_box/ombox.css&amp;diff=217"/>
		<updated>2026-04-14T17:35:18Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp|small=y}} */&lt;br /&gt;
.ombox {&lt;br /&gt;
	margin: 4px 0;&lt;br /&gt;
	border-collapse: collapse;&lt;br /&gt;
	border: 1px solid #a2a9b1;    /* Default &amp;quot;notice&amp;quot; gray */&lt;br /&gt;
	background-color: var(--background-color-neutral-subtle, #f8f9fa);&lt;br /&gt;
	box-sizing: border-box;&lt;br /&gt;
    color: var(--color-base, #202122);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* For the &amp;quot;small=yes&amp;quot; option. */&lt;br /&gt;
.ombox.mbox-small {&lt;br /&gt;
	font-size: 88%;&lt;br /&gt;
	line-height: 1.25em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-speedy {&lt;br /&gt;
	border: 2px solid #b32424;    /* Red */&lt;br /&gt;
	background-color: #fee7e6;    /* Pink */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-delete {&lt;br /&gt;
	border: 2px solid #b32424;    /* Red */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-content {&lt;br /&gt;
	border: 1px solid #f28500;    /* Orange */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-style {&lt;br /&gt;
	border: 1px solid #fc3;       /* Yellow */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-move {&lt;br /&gt;
	border: 1px solid #9932cc;    /* Purple */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-protection {&lt;br /&gt;
	border: 2px solid #a2a9b1;    /* Gray-gold */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox .mbox-text {&lt;br /&gt;
	border: none;&lt;br /&gt;
	/* @noflip */&lt;br /&gt;
	padding: 0.25em 0.9em;&lt;br /&gt;
	width: 100%;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox .mbox-image {&lt;br /&gt;
	border: none;&lt;br /&gt;
	/* @noflip */&lt;br /&gt;
	padding: 2px 0 2px 0.9em;&lt;br /&gt;
	text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox .mbox-imageright {&lt;br /&gt;
	border: none;&lt;br /&gt;
	/* @noflip */&lt;br /&gt;
	padding: 2px 0.9em 2px 0;&lt;br /&gt;
	text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* An empty narrow cell */&lt;br /&gt;
.ombox .mbox-empty-cell {&lt;br /&gt;
	border: none;&lt;br /&gt;
	padding: 0;&lt;br /&gt;
	width: 1px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* keep synced with each other type of message box as this isn&#039;t qualified */&lt;br /&gt;
.mbox-invalid-type {&lt;br /&gt;
	text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
@media (min-width: 720px) {&lt;br /&gt;
	.ombox {&lt;br /&gt;
		margin: 4px 10%;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	.ombox.mbox-small {&lt;br /&gt;
		/* @noflip */&lt;br /&gt;
		clear: right;&lt;br /&gt;
		/* @noflip */&lt;br /&gt;
		float: right;&lt;br /&gt;
		/* @noflip */&lt;br /&gt;
		margin: 4px 0 4px 1em;&lt;br /&gt;
		width: 238px;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/** T367463 */&lt;br /&gt;
body.skin--responsive table.ombox img {&lt;br /&gt;
	max-width: none !important;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
@media screen {&lt;br /&gt;
	html.skin-theme-clientpref-night .ombox-speedy {&lt;br /&gt;
		background-color: #310402;    /* Dark red, same hue/saturation as light */&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
@media screen and (prefers-color-scheme: dark) {&lt;br /&gt;
	html.skin-theme-clientpref-os .ombox-speedy {&lt;br /&gt;
		background-color: #310402; /* Dark red, same hue/saturation as light */&lt;br /&gt;
	}&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Template_shortcut&amp;diff=215</id>
		<title>Template:Template shortcut</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Template_shortcut&amp;diff=215"/>
		<updated>2026-04-14T17:35:17Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#invoke:Shortcut|main|template=yes}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:COinS_safe&amp;diff=213</id>
		<title>Template:COinS safe</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:COinS_safe&amp;diff=213"/>
		<updated>2026-04-14T17:35:15Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ombox&lt;br /&gt;
  |type={{#ifeq: {{{1|}}}|n|content|notice}}&lt;br /&gt;
  |image={{#ifeq: {{{1|}}}|n|[[File:Commons-emblem-hand-orange.svg|50px|alt=icon]]|[[File:Commons-emblem-success.svg|50px|alt=icon]]}}&lt;br /&gt;
  |text={{#ifeq: {{{1|}}}|n&lt;br /&gt;
    |This template &#039;&#039;&#039;should not be used in [[WP:Citation templates|citation templates]]&#039;&#039;&#039; such as [[Help:Citation Style 1|Citation Style 1]] and [[Help:Citation Style 2|Citation Style 2]], because it includes markup that will pollute the [[COinS]] metadata they produce; see [[Wikipedia:COinS]]. {{{addtext|}}}{{Sandbox other||{{category handler&lt;br /&gt;
      |all=[[Category:Templates not safe for use in citation templates]]&lt;br /&gt;
      |nocat={{{nocat|}}}&lt;br /&gt;
      }}}}&lt;br /&gt;
    |This template is &#039;&#039;&#039;safe for use in [[WP:Citation templates|citation templates]]&#039;&#039;&#039; that produce [[COinS]] metadata; see [[Wikipedia:COinS]]. If HTML or other markup is added, then its use must be reevaluated. {{{addtext|}}}&lt;br /&gt;
  }}&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --&amp;gt; &lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Lua&amp;diff=211</id>
		<title>Template:Lua</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Lua&amp;diff=211"/>
		<updated>2026-04-14T17:35:12Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#invoke:Lua banner|main}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Lua|Module:Lua banner}}&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Categories go on the /doc subpage and interwikis go on Wikidata. --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Lua_banner&amp;diff=209</id>
		<title>Module:Lua banner</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Lua_banner&amp;diff=209"/>
		<updated>2026-04-14T17:35:10Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements the {{lua}} template.&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
local mList = require(&#039;Module:List&#039;)&lt;br /&gt;
local mTableTools = require(&#039;Module:TableTools&#039;)&lt;br /&gt;
local mMessageBox = require(&#039;Module:Message box&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local origArgs = frame:getParent().args&lt;br /&gt;
	local args = {}&lt;br /&gt;
	for k, v in pairs(origArgs) do&lt;br /&gt;
		v = v:match(&#039;^%s*(.-)%s*$&#039;)&lt;br /&gt;
		if v ~= &#039;&#039; then&lt;br /&gt;
			args[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local modules = mTableTools.compressSparseArray(args)&lt;br /&gt;
	local box = p.renderBox(modules)&lt;br /&gt;
	local trackingCategories = p.renderTrackingCategories(args, modules)&lt;br /&gt;
	return box .. trackingCategories&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.renderBox(modules)&lt;br /&gt;
	local boxArgs = {}&lt;br /&gt;
	if #modules &amp;lt; 1 then&lt;br /&gt;
		boxArgs.text = &#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;Error: no modules specified&amp;lt;/strong&amp;gt;&#039;&lt;br /&gt;
	else&lt;br /&gt;
		local moduleLinks = {}&lt;br /&gt;
		for i, module in ipairs(modules) do&lt;br /&gt;
			moduleLinks[i] = string.format(&#039;[[:%s]]&#039;, module)&lt;br /&gt;
			local maybeSandbox = mw.title.new(module .. &#039;/sandbox&#039;)&lt;br /&gt;
			if maybeSandbox and maybeSandbox.exists then&lt;br /&gt;
				moduleLinks[i] = moduleLinks[i] .. string.format(&#039; ([[:%s|sandbox]])&#039;, maybeSandbox.fullText)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		local moduleList = mList.makeList(&#039;bulleted&#039;, moduleLinks)&lt;br /&gt;
		local title = mw.title.getCurrentTitle()&lt;br /&gt;
		if title.subpageText == &amp;quot;doc&amp;quot; then&lt;br /&gt;
			title = title.basePageTitle&lt;br /&gt;
		end&lt;br /&gt;
		if title.contentModel == &amp;quot;Scribunto&amp;quot; then&lt;br /&gt;
			boxArgs.text = &#039;This module depends on the following other modules:&#039; .. moduleList&lt;br /&gt;
		else&lt;br /&gt;
			boxArgs.text = &#039;This template  uses [[Wikipedia:Lua|Lua]]:\n&#039; .. moduleList&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	boxArgs.type = &#039;notice&#039;&lt;br /&gt;
	boxArgs.small = true&lt;br /&gt;
	boxArgs.image = &#039;[[File:Lua-Logo.svg|30px|alt=|link=]]&#039;&lt;br /&gt;
	return mMessageBox.main(&#039;mbox&#039;, boxArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.renderTrackingCategories(args, modules, titleObj)&lt;br /&gt;
	if yesno(args.nocat) then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local cats = {}&lt;br /&gt;
&lt;br /&gt;
	-- Error category&lt;br /&gt;
	if #modules &amp;lt; 1 then&lt;br /&gt;
		cats[#cats + 1] = &#039;Lua templates with errors&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Lua templates category&lt;br /&gt;
	titleObj = titleObj or mw.title.getCurrentTitle()&lt;br /&gt;
	local subpageBlacklist = {&lt;br /&gt;
		doc = true,&lt;br /&gt;
		sandbox = true,&lt;br /&gt;
		sandbox2 = true,&lt;br /&gt;
		testcases = true&lt;br /&gt;
	}&lt;br /&gt;
	if not subpageBlacklist[titleObj.subpageText] then&lt;br /&gt;
		local protCatName&lt;br /&gt;
		if titleObj.namespace == 10 then&lt;br /&gt;
			local category = args.category&lt;br /&gt;
			if not category then&lt;br /&gt;
				local categories = {&lt;br /&gt;
					[&#039;Module:String&#039;] = &#039;Templates based on the String Lua module&#039;,&lt;br /&gt;
					[&#039;Module:Math&#039;] = &#039;Templates based on the Math Lua module&#039;,&lt;br /&gt;
					[&#039;Module:BaseConvert&#039;] = &#039;Templates based on the BaseConvert Lua module&#039;,&lt;br /&gt;
					[&#039;Module:Citation/CS1&#039;] = &#039;Templates based on the Citation/CS1 Lua module&#039;&lt;br /&gt;
				}&lt;br /&gt;
				category = modules[1] and categories[modules[1]]&lt;br /&gt;
				category = category or &#039;Lua-based templates&#039;&lt;br /&gt;
			end	&lt;br /&gt;
			cats[#cats + 1] = category&lt;br /&gt;
			protCatName = &amp;quot;Templates using under-protected Lua modules&amp;quot;&lt;br /&gt;
		elseif titleObj.namespace == 828 then&lt;br /&gt;
			protCatName = &amp;quot;Modules depending on under-protected modules&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		if not args.noprotcat and protCatName then&lt;br /&gt;
			local protLevels = {&lt;br /&gt;
				autoconfirmed = 1,&lt;br /&gt;
				extendedconfirmed = 2,&lt;br /&gt;
				templateeditor = 3,&lt;br /&gt;
				sysop = 4&lt;br /&gt;
			}&lt;br /&gt;
			local currentProt&lt;br /&gt;
			if titleObj.id ~= 0 then&lt;br /&gt;
				-- id is 0 (page does not exist) if am previewing before creating a template.&lt;br /&gt;
				currentProt = titleObj.protectionLevels[&amp;quot;edit&amp;quot;][1]&lt;br /&gt;
			end&lt;br /&gt;
			if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end&lt;br /&gt;
			for i, module in ipairs(modules) do&lt;br /&gt;
				if module ~= &amp;quot;WP:libraryUtil&amp;quot; then&lt;br /&gt;
					local moduleTitle = mw.title.new(module)&lt;br /&gt;
					local moduleProt = moduleTitle and moduleTitle.protectionLevels[&amp;quot;edit&amp;quot;][1]&lt;br /&gt;
					if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end&lt;br /&gt;
					if moduleProt &amp;lt; currentProt then&lt;br /&gt;
						cats[#cats + 1] = protCatName&lt;br /&gt;
						break&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	for i, cat in ipairs(cats) do&lt;br /&gt;
		cats[i] = string.format(&#039;[[Category:%s]]&#039;, cat)&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(cats)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Transclusion_count&amp;diff=207</id>
		<title>Module:Transclusion count</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Transclusion_count&amp;diff=207"/>
		<updated>2026-04-14T17:35:10Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._fetch(args)&lt;br /&gt;
	local template = nil&lt;br /&gt;
	local return_value = nil&lt;br /&gt;
&lt;br /&gt;
	-- Use demo parameter if it exists, otherwise use current template name&lt;br /&gt;
	local namespace = mw.title.getCurrentTitle().namespace&lt;br /&gt;
	if args[&amp;quot;demo&amp;quot;] and args[&amp;quot;demo&amp;quot;] ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		template = mw.ustring.gsub(args[&amp;quot;demo&amp;quot;],&amp;quot;^[Tt]emplate:&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt;
	elseif namespace == 10 then -- Template namespace&lt;br /&gt;
		template = mw.title.getCurrentTitle().text&lt;br /&gt;
	elseif namespace == 828 then -- Module namespace&lt;br /&gt;
		template = (mw.site.namespaces[828].name .. &amp;quot;:&amp;quot; .. mw.title.getCurrentTitle().text)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- If in template or module namespace, look up count in /data&lt;br /&gt;
	if template ~= nil then&lt;br /&gt;
		namespace = mw.title.new(template, &amp;quot;Template&amp;quot;).namespace&lt;br /&gt;
		if namespace == 10 or namespace == 828 then&lt;br /&gt;
			template =  mw.ustring.gsub(template, &amp;quot;/doc$&amp;quot;, &amp;quot;&amp;quot;) -- strip /doc from end&lt;br /&gt;
			template =  mw.ustring.gsub(template, &amp;quot;/sandbox$&amp;quot;, &amp;quot;&amp;quot;) -- strip /sandbox from end&lt;br /&gt;
			local index = mw.ustring.sub(mw.title.new(template).text,1,1)&lt;br /&gt;
			local status, data = pcall(function ()&lt;br /&gt;
				return(mw.loadData(&#039;Module:Transclusion_count/data/&#039; .. (mw.ustring.find(index, &amp;quot;%a&amp;quot;) and index or &amp;quot;other&amp;quot;)))&lt;br /&gt;
			end)&lt;br /&gt;
			if status then&lt;br /&gt;
				return_value = tonumber(data[mw.ustring.gsub(template, &amp;quot; &amp;quot;, &amp;quot;_&amp;quot;)])&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- If database value doesn&#039;t exist, use value passed to template&lt;br /&gt;
	if return_value == nil and args[1] ~= nil then&lt;br /&gt;
		local arg1=mw.ustring.match(args[1], &#039;[%d,]+&#039;)&lt;br /&gt;
		if arg1 and arg1 ~= &#039;&#039; then&lt;br /&gt;
			return_value = tonumber(mw.getCurrentFrame():callParserFunction(&#039;formatnum&#039;, arg1, &#039;R&#039;))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return return_value	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.fetch(frame)&lt;br /&gt;
	return p._fetch(frame.args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Tabulate this data for [[Wikipedia:Database reports/Templates transcluded on the most pages]]&lt;br /&gt;
function p.tabulate()&lt;br /&gt;
	local list = {}&lt;br /&gt;
	for i = 65, 91 do&lt;br /&gt;
		local data = mw.loadData(&#039;Module:Transclusion count/data/&#039; .. ((i == 91) and &#039;other&#039; or string.char(i)))&lt;br /&gt;
		for name, count in pairs(data) do&lt;br /&gt;
			local title = mw.title.new(name, &amp;quot;Template&amp;quot;)&lt;br /&gt;
			table.insert(list, {title, count})&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(list, function(a, b)&lt;br /&gt;
		return (a[2] == b[2]) and (a[1] &amp;lt; b[1]) or (a[2] &amp;gt; b[2])&lt;br /&gt;
	end)&lt;br /&gt;
	local lang = mw.getContentLanguage();&lt;br /&gt;
	for i = 1, #list do&lt;br /&gt;
		local protLevel = &amp;quot;&amp;quot;&lt;br /&gt;
		local title = list[i][1]&lt;br /&gt;
		if i &amp;lt; 400 then&lt;br /&gt;
			-- Stop at 400 to avoid breaching the expensive parser function call limit&lt;br /&gt;
			protLevel = title.protectionLevels.edit[1] or &amp;quot;(unprotected)&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		list[i] = (&#039;|-\n| %d || [[%s]] || %s || %s \n&#039;):format(i, title.fullText:gsub(&#039;_&#039;, &#039; &#039;), lang:formatNum(list[i][2]), protLevel)&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(list)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:High-use&amp;diff=205</id>
		<title>Module:High-use</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:High-use&amp;diff=205"/>
		<updated>2026-04-14T17:35:09Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;require(&#039;strict&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
local getArgs = require(&#039;Module:Arguments&#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
local _fetch = require(&#039;Module:Transclusion_count&#039;)._fetch -- _fetch looks at the &#039;demo&#039; argument&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
&lt;br /&gt;
local lang_obj = mw.getContentLanguage() -- this here because the language object is used multiple places in the module&lt;br /&gt;
local large_count_cutoff = 100000&lt;br /&gt;
local approx_num_total_pages = 63000000&lt;br /&gt;
&lt;br /&gt;
local user_subpage_info_page = &#039;Wikipedia:User pages#SUB&#039;&lt;br /&gt;
local sandbox_module_page = &#039;Module:Sandbox&#039;&lt;br /&gt;
local system_messages_cat = &#039;Pages used in system messages needing protection&#039;&lt;br /&gt;
local sandbox_word = &#039;sandbox&#039;&lt;br /&gt;
local testcases_word = &#039;testcases&#039;&lt;br /&gt;
local doc_word = &#039;doc&#039;&lt;br /&gt;
&lt;br /&gt;
local function count_from_args(args)&lt;br /&gt;
	if tonumber(args.count) then -- check if function has already been used&lt;br /&gt;
		return tonumber(args.count) -- early exit if so&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local count&lt;br /&gt;
	&lt;br /&gt;
	if yesno(args[&#039;fetch&#039;]) ~= false then&lt;br /&gt;
		count = _fetch(args) -- fetch transclusion count&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- use explicitly-provided count when fetch fails&lt;br /&gt;
	if count == nil and args[1] ~= nil and args[1] ~= &#039;&#039; then&lt;br /&gt;
		-- convert local language number string to a number understandable by Lua&lt;br /&gt;
		count = mw.ustring.gsub(args[1], &#039;+$&#039;, &#039;&#039;)&lt;br /&gt;
		count = lang_obj:parseFormattedNumber(args[1])&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- in case someone writes a non-positive number&lt;br /&gt;
	if count and count &amp;gt; 0 then&lt;br /&gt;
		return count&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Actions if there is a large (greater than or equal to 100,000) transclusion count&lt;br /&gt;
local function risk_boolean(args)&lt;br /&gt;
	if args.risk == true or args.risk == false then&lt;br /&gt;
		return args.risk&lt;br /&gt;
	elseif args[1]  == &#039;risk&#039; then&lt;br /&gt;
		return true&lt;br /&gt;
	else&lt;br /&gt;
		local count = count_from_args(args)&lt;br /&gt;
		if count and count &amp;gt;= large_count_cutoff then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- function retained for backwards compatibility&lt;br /&gt;
function p._risk(args)&lt;br /&gt;
	return risk_boolean(args) and &#039;risk&#039; or &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- function retained for backwards compatibility&lt;br /&gt;
function p.risk(frame)&lt;br /&gt;
	return p._risk(getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- count and no_percent arguments retained for backwards compatibility&lt;br /&gt;
function p._num(args, count, no_percent)&lt;br /&gt;
	if count == nil then&lt;br /&gt;
		count = count_from_args(args)&lt;br /&gt;
	end&lt;br /&gt;
	args.count = count&lt;br /&gt;
	args.risk = risk_boolean(args)&lt;br /&gt;
	&lt;br /&gt;
	-- Build output string&lt;br /&gt;
	local return_value = &#039;&#039;&lt;br /&gt;
	if args.count == nil and args.risk then&lt;br /&gt;
		return &#039;a very large number of&#039;&lt;br /&gt;
	elseif args.count == nil then&lt;br /&gt;
		return &#039;many&#039;&lt;br /&gt;
	else&lt;br /&gt;
		-- Use 2 significant figures for smaller numbers and 3 for larger ones&lt;br /&gt;
		local sigfig = 2&lt;br /&gt;
		if args.count &amp;gt;= large_count_cutoff then&lt;br /&gt;
			sigfig = 3&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- Prepare to round to appropriate number of sigfigs&lt;br /&gt;
		local f = math.floor(math.log10(args.count)) - sigfig + 1&lt;br /&gt;
		&lt;br /&gt;
		-- Round and insert &#039;approximately&#039; or &#039;+&#039; when appropriate&lt;br /&gt;
		if yesno(args[2]) == true or (type(args[1]) == &#039;string&#039; and (mw.ustring.sub(args[1], -1) == &#039;+&#039;)) then&lt;br /&gt;
			-- Round down&lt;br /&gt;
			return_value = string.format(&#039;%s+&#039;, lang_obj:formatNum(math.floor( (args.count / 10^(f)) ) * (10^(f))) )&lt;br /&gt;
		else&lt;br /&gt;
			-- Round to nearest&lt;br /&gt;
			return_value = string.format(&#039;approximately&amp;amp;#x20;%s&#039;, lang_obj:formatNum(math.floor( (args.count / 10^(f)) + 0.5) * (10^(f))) )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- Insert percentage of pages if that is likely to be &amp;gt;= 1% and when |no-percent= not set to yes&lt;br /&gt;
		no_percent = yesno(no_percent or args[&#039;no-percent&#039;])&lt;br /&gt;
		if args.count and args.count &amp;gt;= approx_num_total_pages/100 and not no_percent then&lt;br /&gt;
			local num_total_pages = mw.getCurrentFrame():callParserFunction(&#039;NUMBEROFPAGES&#039;, &#039;R&#039;)&lt;br /&gt;
			local total_percent = math.floor( ( ( args.count/num_total_pages ) * 100) + 0.5)&lt;br /&gt;
			&lt;br /&gt;
			if total_percent &amp;gt;= 1 then&lt;br /&gt;
				return_value = string.format(&#039;%s&amp;amp;#x20;pages, or roughly %s%% of all&#039;, return_value, total_percent)&lt;br /&gt;
			end&lt;br /&gt;
		end	&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return return_value&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- used by [[Template:Stub documentation]] and other pages&lt;br /&gt;
-- count argument retained for backwards compatibility&lt;br /&gt;
function p.num(frame, count)&lt;br /&gt;
	return p._num(getArgs(frame), count)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- count argument retained for backwards compatibility&lt;br /&gt;
function p._text(args, count)&lt;br /&gt;
	--[=[&lt;br /&gt;
		Only show the information about how this template gets updated&lt;br /&gt;
		if someone is actually editing the page and maybe trying to update the count.&lt;br /&gt;
	]=]&lt;br /&gt;
	local bot_text = (mw.getCurrentFrame():preprocess(&#039;{{REVISIONID}}&#039;) == &#039;&#039;) and (&amp;quot;\n\n----\n&#039;&#039;&#039;Preview message&#039;&#039;&#039;:&amp;quot; .. &#039; Transclusion count updated automatically ([[Template:High-use/doc#Technical details|see documentation]]).&#039;) or &#039;&#039;&lt;br /&gt;
	&lt;br /&gt;
	if count == nil then&lt;br /&gt;
		count = count_from_args(args)&lt;br /&gt;
	end&lt;br /&gt;
	args.count = count&lt;br /&gt;
	args.risk = risk_boolean(args)&lt;br /&gt;
	&lt;br /&gt;
	-- trim /doc, /sandbox and /testcases&lt;br /&gt;
	local title = args.title or (args.demo and args.demo ~= &#039;&#039; and mw.title.new(args.demo, &#039;Template&#039;)) or mw.title.getCurrentTitle()&lt;br /&gt;
	if title.subpageText == doc_word or title.subpageText == sandbox_word or title.subpageText == testcases_word then&lt;br /&gt;
		title = title.basePageTitle&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- use /testcases of base template&lt;br /&gt;
	local testcases_page = mw.title.new(title.prefixedText .. &#039;/&#039; .. testcases_word)&lt;br /&gt;
	-- exists is expensive&lt;br /&gt;
	while testcases_page.basePageTitle.isSubpage and not testcases_page.exists do&lt;br /&gt;
		testcases_page = mw.title.new(testcases_page.basePageTitle.basePageTitle.prefixedText .. &#039;/&#039; .. testcases_word)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local systemMessages = (args[&#039;system&#039;] or &#039;&#039;) ~= &#039;&#039;&lt;br /&gt;
	&lt;br /&gt;
	-- This retrieves the project URL automatically to simplify localization.&lt;br /&gt;
	local templateCount = (&#039;on [https://linkcount.toolforge.org/?project=%s&amp;amp;page=%s#transclusions %s pages]&#039;):format(&lt;br /&gt;
		title:fullUrl():gsub(&#039;//(.-)/.*&#039;, &#039;%1&#039;),&lt;br /&gt;
		mw.uri.encode(title.fullText), p._num(args))&lt;br /&gt;
	local used_on_text = &amp;quot;&#039;&#039;&#039;This &amp;quot; .. (title:inNamespace(&#039;Module&#039;) and &#039;Lua module&#039; or &#039;template&#039;) .. &#039; is used &#039;&lt;br /&gt;
	if systemMessages then&lt;br /&gt;
		used_on_text = used_on_text .. args[&#039;system&#039;] ..&lt;br /&gt;
			((args.count and args.count &amp;gt; 2000) and (&amp;quot;&#039;&#039;&#039;, and &amp;quot; .. templateCount) or (&amp;quot;&#039;&#039;&#039;&amp;quot;))&lt;br /&gt;
	else&lt;br /&gt;
		used_on_text = used_on_text .. templateCount .. &amp;quot;&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local sandbox_text = (&#039;%s\&#039;s [[%s/sandbox|/sandbox]] or [[%s|/testcases]] subpages, or in your own [[%s]]. &#039;):format(&lt;br /&gt;
		title:inNamespace(&#039;Module&#039;) and &#039;module&#039; or &#039;template&#039;,&lt;br /&gt;
		title.fullText,&lt;br /&gt;
		testcases_page.fullText,&lt;br /&gt;
		title:inNamespace(&#039;Module&#039;) and (sandbox_module_page .. &#039;|module sandbox&#039;) or (user_subpage_info_page .. &#039;|user subpage&#039;)&lt;br /&gt;
	)&lt;br /&gt;
	&lt;br /&gt;
	local infoArg = args[&#039;info&#039;] ~= &#039;&#039; and args[&#039;info&#039;]&lt;br /&gt;
	if (systemMessages or args.risk) then&lt;br /&gt;
		local info = &#039;.&#039;&lt;br /&gt;
		if systemMessages then&lt;br /&gt;
			info = info .. &#039;&amp;lt;br /&amp;gt;Changes to it can cause immediate changes to the &#039; .. mw.site.namespaces.Project.name .. &#039; user interface.&#039;&lt;br /&gt;
		end&lt;br /&gt;
		if infoArg then&lt;br /&gt;
			info = info .. &#039;&amp;lt;br /&amp;gt;&#039; .. infoArg&lt;br /&gt;
		end&lt;br /&gt;
		sandbox_text = info .. &#039;&amp;lt;br /&amp;gt; To avoid major disruption&#039; ..&lt;br /&gt;
			(args.count and args.count &amp;gt;= large_count_cutoff and &#039; and server load&#039; or &#039;&#039;) .. -- should this use args.risk?&lt;br /&gt;
			&#039;, any changes should be tested in the &#039; .. sandbox_text ..&lt;br /&gt;
			&#039;The tested changes can be added to this page in a single edit. &#039;&lt;br /&gt;
	else&lt;br /&gt;
		sandbox_text = (infoArg and (&#039;.&amp;lt;br /&amp;gt;&#039; .. infoArg .. &#039; C&#039;) or &#039; and c&#039;) ..&lt;br /&gt;
			&#039;hanges may be widely noticed. Test changes in the &#039; .. sandbox_text&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local discussion_text = systemMessages and &#039;Please discuss changes &#039; or &#039;Consider discussing changes &#039;&lt;br /&gt;
	if args[2] ~= nil and args[2] ~= &#039;&#039; and yesno(args[2]) == nil then&lt;br /&gt;
		discussion_text = string.format(&#039;%sat [[%s]]&#039;, discussion_text, args[2])&lt;br /&gt;
	else&lt;br /&gt;
		discussion_text = string.format(&#039;%son the [[%s|talk page]]&#039;, discussion_text, title.talkPageTitle.fullText)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return used_on_text .. sandbox_text .. discussion_text .. &#039; before implementing them.&#039; .. bot_text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- used by [[Template:R from high-use template]]&lt;br /&gt;
-- count argument retained for backwards compatibility&lt;br /&gt;
function p.text(frame, count)&lt;br /&gt;
	return p._text(getArgs(frame), count)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- nocat argument retained for backwards compatibility&lt;br /&gt;
function p._main(args, nocat)&lt;br /&gt;
	args.count = count_from_args(args)&lt;br /&gt;
	args.risk = risk_boolean(args)&lt;br /&gt;
	args.title = (args.demo and args.demo ~= &#039;&#039; and mw.title.new(args.demo, &#039;Template&#039;)) or mw.title.getCurrentTitle()&lt;br /&gt;
	&lt;br /&gt;
	local image = &#039;Ambox warning yellow.svg&#039;&lt;br /&gt;
	local type_param = &#039;style&#039;&lt;br /&gt;
	local epilogue = &#039;&#039;&lt;br /&gt;
	&lt;br /&gt;
	if args[&#039;system&#039;] and args[&#039;system&#039;] ~= &#039;&#039; then&lt;br /&gt;
		image = &#039;Ambox important.svg&#039;&lt;br /&gt;
		type_param = &#039;content&#039;&lt;br /&gt;
		if yesno(nocat or args[&#039;nocat&#039;]) ~= true and not args.title.isRedirect then&lt;br /&gt;
			local protection_action = (args.title:inNamespace(&#039;File&#039;) and &#039;upload&#039;) or &#039;edit&#039;&lt;br /&gt;
			local protection_level = require(&#039;Module:Effective protection level&#039;)._main(protection_action, args.title.fullText)&lt;br /&gt;
			&lt;br /&gt;
			if protection_level ~= &#039;sysop&#039; and protection_level ~= &#039;templateeditor&#039; and protection_level ~= &#039;interfaceadmin&#039; then&lt;br /&gt;
				epilogue = mw.getCurrentFrame():expandTemplate {&lt;br /&gt;
					title = &#039;sandbox other&#039;,&lt;br /&gt;
					args = {&lt;br /&gt;
						[2] = &#039;[[Category:&#039; .. system_messages_cat .. &#039;]]&#039;&lt;br /&gt;
					}&lt;br /&gt;
				}&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	elseif args.risk then&lt;br /&gt;
		image = &#039;Ambox warning orange.svg&#039;&lt;br /&gt;
		type_param = &#039;content&#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	image = &#039;[[File:&#039; .. image .. &#039;|40px|alt=Warning|link=]]&#039;&lt;br /&gt;
	if args[&#039;form&#039;] == &#039;editnotice&#039; then&lt;br /&gt;
		return mw.getCurrentFrame():expandTemplate{&lt;br /&gt;
				title = &#039;editnotice&#039;,&lt;br /&gt;
				args = {&lt;br /&gt;
						[&#039;image&#039;] = image,&lt;br /&gt;
						[&#039;text&#039;] = p._text(args),&lt;br /&gt;
						[&#039;expiry&#039;] = (args[&#039;expiry&#039;] or &#039;&#039;)&lt;br /&gt;
				}&lt;br /&gt;
		} .. epilogue&lt;br /&gt;
	else&lt;br /&gt;
		return require(&#039;Module:Message box&#039;).main(&#039;ombox&#039;, {&lt;br /&gt;
			type = type_param,&lt;br /&gt;
			image = image,&lt;br /&gt;
			text = p._text(args),&lt;br /&gt;
			expiry = (args[&#039;expiry&#039;] or &#039;&#039;)&lt;br /&gt;
		}) .. epilogue&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	return p._main(getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:High-use&amp;diff=203</id>
		<title>Template:High-use</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:High-use&amp;diff=203"/>
		<updated>2026-04-14T17:35:08Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Shortcut/config&amp;diff=201</id>
		<title>Module:Shortcut/config</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Shortcut/config&amp;diff=201"/>
		<updated>2026-04-14T17:35:08Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module holds configuration data for [[Module:Shortcut]].&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
&lt;br /&gt;
-- The heading at the top of the shortcut box. It accepts the following parameter:&lt;br /&gt;
-- $1 - the total number of shortcuts. (required)&lt;br /&gt;
[&#039;shortcut-heading&#039;] = &#039;[[Wikipedia:Shortcut|{{PLURAL:$1|Shortcut|Shortcuts}}]]&#039;,&lt;br /&gt;
&lt;br /&gt;
-- The heading when |redirect=yes is given. It accepts the following parameter:&lt;br /&gt;
-- $1 - the total number of shortcuts. (required)&lt;br /&gt;
[&#039;redirect-heading&#039;] = &#039;[[Wikipedia:Redirect|{{PLURAL:$1|Redirect|Redirects}}]]&#039;,&lt;br /&gt;
&lt;br /&gt;
-- The error message to display when a shortcut is invalid (is not a string, or&lt;br /&gt;
-- is the blank string). It accepts the following parameter:&lt;br /&gt;
-- $1 - the number of the shortcut in the argument list. (required)&lt;br /&gt;
[&#039;invalid-shortcut-error&#039;] = &#039;shortcut #$1 was invalid (shortcuts must be &#039; ..&lt;br /&gt;
	&#039;strings of at least one character in length)&#039;,&lt;br /&gt;
&lt;br /&gt;
-- The error message to display when no shortcuts or other displayable content&lt;br /&gt;
-- were specified. (required)&lt;br /&gt;
[&#039;no-content-error&#039;] = &#039;Error: no shortcuts were specified and the &#039; ..&lt;br /&gt;
	mw.text.nowiki(&#039;|msg=&#039;) ..&lt;br /&gt;
	&#039; parameter was not set.&#039;,&lt;br /&gt;
&lt;br /&gt;
-- A category to add when the no-content-error message is displayed. (optional)&lt;br /&gt;
[&#039;no-content-error-category&#039;] = &#039;Shortcut templates with missing parameters&#039;,&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Shortcut&amp;diff=199</id>
		<title>Module:Shortcut</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Shortcut&amp;diff=199"/>
		<updated>2026-04-14T17:35:07Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements {{shortcut}}.&lt;br /&gt;
&lt;br /&gt;
-- Set constants&lt;br /&gt;
local CONFIG_MODULE = &#039;Module:Shortcut/config&#039;&lt;br /&gt;
&lt;br /&gt;
-- Load required modules&lt;br /&gt;
local checkType = require(&#039;libraryUtil&#039;).checkType&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function message(msg, ...)&lt;br /&gt;
	return mw.message.newRawMessage(msg, ...):plain()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeCategoryLink(cat)&lt;br /&gt;
	return string.format(&#039;[[%s:%s]]&#039;, mw.site.namespaces[14].name, cat)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(shortcuts, options, frame, cfg)&lt;br /&gt;
	checkType(&#039;_main&#039;, 1, shortcuts, &#039;table&#039;)&lt;br /&gt;
	checkType(&#039;_main&#039;, 2, options, &#039;table&#039;, true)&lt;br /&gt;
	options = options or {}&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
	cfg = cfg or mw.loadData(CONFIG_MODULE)&lt;br /&gt;
	local templateMode = options.template and yesno(options.template)&lt;br /&gt;
	local redirectMode = options.redirect and yesno(options.redirect)&lt;br /&gt;
	local isCategorized = not options.category or yesno(options.category) ~= false&lt;br /&gt;
&lt;br /&gt;
	-- Validate shortcuts&lt;br /&gt;
	for i, shortcut in ipairs(shortcuts) do&lt;br /&gt;
		if type(shortcut) ~= &#039;string&#039; or #shortcut &amp;lt; 1 then&lt;br /&gt;
			error(message(cfg[&#039;invalid-shortcut-error&#039;], i), 2)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Make the list items. These are the shortcuts plus any extra lines such&lt;br /&gt;
	-- as options.msg.&lt;br /&gt;
	local listItems = {}&lt;br /&gt;
	for i, shortcut in ipairs(shortcuts) do&lt;br /&gt;
		local templatePath, prefix&lt;br /&gt;
		if templateMode then&lt;br /&gt;
			-- Namespace detection&lt;br /&gt;
			local titleObj = mw.title.new(shortcut, 10)&lt;br /&gt;
			if titleObj.namespace == 10 then&lt;br /&gt;
				templatePath = titleObj.fullText&lt;br /&gt;
			else&lt;br /&gt;
				templatePath = shortcut&lt;br /&gt;
			end&lt;br /&gt;
			prefix = options[&#039;pre&#039; .. i] or options.pre or &#039;&#039;&lt;br /&gt;
		end&lt;br /&gt;
		if options.target and yesno(options.target) then&lt;br /&gt;
			listItems[i] = templateMode&lt;br /&gt;
				and string.format(&amp;quot;&amp;amp;#123;&amp;amp;#123;%s[[%s|%s]]&amp;amp;#125;&amp;amp;#125;&amp;quot;, prefix, templatePath, shortcut)&lt;br /&gt;
				or string.format(&amp;quot;[[%s]]&amp;quot;, shortcut)&lt;br /&gt;
		else&lt;br /&gt;
			listItems[i] = frame:expandTemplate{&lt;br /&gt;
				title = &#039;No redirect&#039;,&lt;br /&gt;
				args = templateMode and {templatePath, shortcut} or {shortcut, shortcut}&lt;br /&gt;
			}&lt;br /&gt;
			if templateMode then&lt;br /&gt;
				listItems[i] = string.format(&amp;quot;&amp;amp;#123;&amp;amp;#123;%s%s&amp;amp;#125;&amp;amp;#125;&amp;quot;, prefix, listItems[i])&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(listItems, options.msg)&lt;br /&gt;
&lt;br /&gt;
	-- Return an error if we have nothing to display&lt;br /&gt;
	if #listItems &amp;lt; 1 then&lt;br /&gt;
		local msg = cfg[&#039;no-content-error&#039;]&lt;br /&gt;
		msg = string.format(&#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;%s&amp;lt;/strong&amp;gt;&#039;, msg)&lt;br /&gt;
		if isCategorized and cfg[&#039;no-content-error-category&#039;] then&lt;br /&gt;
			msg = msg .. makeCategoryLink(cfg[&#039;no-content-error-category&#039;])&lt;br /&gt;
		end&lt;br /&gt;
		return msg&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local root = mw.html.create()&lt;br /&gt;
	root:wikitext(frame:extensionTag{ name = &#039;templatestyles&#039;, args = { src = &#039;Module:Shortcut/styles.css&#039;} })&lt;br /&gt;
	-- Anchors&lt;br /&gt;
	local anchorDiv = root&lt;br /&gt;
		:tag(&#039;div&#039;)&lt;br /&gt;
			:addClass(&#039;module-shortcutanchordiv&#039;)&lt;br /&gt;
	for i, shortcut in ipairs(shortcuts) do&lt;br /&gt;
		local anchor = mw.uri.anchorEncode(shortcut)&lt;br /&gt;
		anchorDiv:tag(&#039;span&#039;):attr(&#039;id&#039;, anchor)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Shortcut heading&lt;br /&gt;
	local shortcutHeading&lt;br /&gt;
	do&lt;br /&gt;
		local nShortcuts = #shortcuts&lt;br /&gt;
		if nShortcuts &amp;gt; 0 then&lt;br /&gt;
			local headingMsg = options[&#039;shortcut-heading&#039;] or&lt;br /&gt;
				redirectMode and cfg[&#039;redirect-heading&#039;] or&lt;br /&gt;
				cfg[&#039;shortcut-heading&#039;]&lt;br /&gt;
			shortcutHeading = message(headingMsg, nShortcuts)&lt;br /&gt;
			shortcutHeading = frame:preprocess(shortcutHeading)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Shortcut box&lt;br /&gt;
	local shortcutList = root&lt;br /&gt;
		:tag(&#039;div&#039;)&lt;br /&gt;
			:addClass(&#039;module-shortcutboxplain noprint&#039;)&lt;br /&gt;
			:attr(&#039;role&#039;, &#039;note&#039;)&lt;br /&gt;
	if options.float and options.float:lower() == &#039;left&#039; then&lt;br /&gt;
		shortcutList:addClass(&#039;module-shortcutboxleft&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	if options.clear and options.clear ~= &#039;&#039; then&lt;br /&gt;
		shortcutList:css(&#039;clear&#039;, options.clear)&lt;br /&gt;
	end&lt;br /&gt;
	if shortcutHeading then&lt;br /&gt;
		shortcutList&lt;br /&gt;
			:tag(&#039;div&#039;)&lt;br /&gt;
				:addClass(&#039;module-shortcutlist&#039;)&lt;br /&gt;
				:wikitext(shortcutHeading)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local ubl = require(&#039;Module:List&#039;).unbulleted(listItems)&lt;br /&gt;
	shortcutList:wikitext(ubl)&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&#039;Module:Arguments&#039;).getArgs(frame)&lt;br /&gt;
&lt;br /&gt;
	-- Separate shortcuts from options&lt;br /&gt;
	local shortcuts, options = {}, {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &#039;number&#039; then&lt;br /&gt;
			shortcuts[k] = v&lt;br /&gt;
		else&lt;br /&gt;
			options[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Compress the shortcut array, which may contain nils.&lt;br /&gt;
	local function compressArray(t)&lt;br /&gt;
		local nums, ret = {}, {}&lt;br /&gt;
		for k in pairs(t) do&lt;br /&gt;
			nums[#nums + 1] = k&lt;br /&gt;
		end&lt;br /&gt;
		table.sort(nums)&lt;br /&gt;
		for i, num in ipairs(nums) do&lt;br /&gt;
			ret[i] = t[num]&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
	shortcuts = compressArray(shortcuts)&lt;br /&gt;
&lt;br /&gt;
	return p._main(shortcuts, options, frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Tlf&amp;diff=197</id>
		<title>Template:Tlf</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Tlf&amp;diff=197"/>
		<updated>2026-04-14T17:35:06Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Template:Template link with link off]]&lt;br /&gt;
&lt;br /&gt;
{{Redirect category shell|&lt;br /&gt;
{{R from move}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Template_link_with_link_off&amp;diff=195</id>
		<title>Template:Template link with link off</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Template_link_with_link_off&amp;diff=195"/>
		<updated>2026-04-14T17:35:06Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#Invoke:Template link general|main|nowrap=yes|nolink=yes}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation|1=Template:Tlg/doc&lt;br /&gt;
|content = {{tlg/doc|tlf}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!-- Add categories to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Documentation_subpage&amp;diff=193</id>
		<title>Template:Documentation subpage</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Documentation_subpage&amp;diff=193"/>
		<updated>2026-04-14T17:35:04Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
 --&amp;gt;{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}}&lt;br /&gt;
     | &amp;lt;!--(this template has been transcluded on a /doc or /{{{override}}} page)--&amp;gt;&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
      --&amp;gt;{{#ifeq:{{{doc-notice|show}}} |show&lt;br /&gt;
          | {{Mbox&lt;br /&gt;
             | type = notice&lt;br /&gt;
             | style = margin-bottom:1.0em;&lt;br /&gt;
             | image = [[File:Edit-copy green.svg|40px|alt=icon]]&lt;br /&gt;
             | text =&lt;br /&gt;
{{strong|This is a [[Wikipedia:Template documentation|documentation subpage]]}} for {{terminate sentence|{{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}}}&amp;lt;br /&amp;gt;It may contain usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. &lt;br /&gt;
            }}&lt;br /&gt;
         }}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
      --&amp;gt;{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
      --&amp;gt;{{#if:{{{nocat|}}}{{{inhibit|}}}|&amp;lt;!--(don&#039;t categorize)--&amp;gt;&lt;br /&gt;
          |&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
               --&amp;gt;{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}&lt;br /&gt;
                   | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]&lt;br /&gt;
                   | [[Category:Documentation subpages without corresponding pages]]&lt;br /&gt;
                  }}&amp;lt;!--&lt;br /&gt;
           --&amp;gt;&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
         }}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
(completing initial #ifeq: at start of template:)&lt;br /&gt;
--&amp;gt;&amp;lt;includeonly&amp;gt;&lt;br /&gt;
     | &amp;lt;!--(this template has not been transcluded on a /doc or /{{{override}}} page)--&amp;gt;&lt;br /&gt;
    }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Sandbox_other&amp;diff=191</id>
		<title>Template:Sandbox other</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Sandbox_other&amp;diff=191"/>
		<updated>2026-04-14T17:35:02Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;onlyinclude&amp;gt;{{safesubst:&amp;lt;noinclude/&amp;gt;#if:{{safesubst:&amp;lt;noinclude/&amp;gt;#ifeq:{{safesubst:&amp;lt;noinclude/&amp;gt;#invoke:String|sublength|s={{safesubst:&amp;lt;noinclude/&amp;gt;SUBPAGENAME}}|i=0|len=7}}|sandbox|1}}{{safesubst:&amp;lt;noinclude/&amp;gt;#ifeq:{{safesubst:&amp;lt;noinclude/&amp;gt;SUBPAGENAME}}|doc|1}}{{safesubst:&amp;lt;noinclude/&amp;gt;#invoke:String|match|{{safesubst:&amp;lt;noinclude/&amp;gt;PAGENAME}}|/sandbox/styles.css$|plain=false|nomatch=}}|{{{1|}}}|{{{2|}}}}}&amp;lt;/onlyinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{documentation}}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Date_table_sorting&amp;diff=189</id>
		<title>Module:Date table sorting</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Date_table_sorting&amp;diff=189"/>
		<updated>2026-04-14T17:35:01Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
local lang = mw.language.getContentLanguage()&lt;br /&gt;
local N_YEAR_DIGITS = 12&lt;br /&gt;
local MAX_YEAR = 10^N_YEAR_DIGITS - 1&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Dts class&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local Dts = {}&lt;br /&gt;
Dts.__index = Dts&lt;br /&gt;
&lt;br /&gt;
Dts.months = {&lt;br /&gt;
	&amp;quot;January&amp;quot;,&lt;br /&gt;
	&amp;quot;February&amp;quot;,&lt;br /&gt;
	&amp;quot;March&amp;quot;,&lt;br /&gt;
	&amp;quot;April&amp;quot;,&lt;br /&gt;
	&amp;quot;May&amp;quot;,&lt;br /&gt;
	&amp;quot;June&amp;quot;,&lt;br /&gt;
	&amp;quot;July&amp;quot;,&lt;br /&gt;
	&amp;quot;August&amp;quot;,&lt;br /&gt;
	&amp;quot;September&amp;quot;,&lt;br /&gt;
	&amp;quot;October&amp;quot;,&lt;br /&gt;
	&amp;quot;November&amp;quot;,&lt;br /&gt;
	&amp;quot;December&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Dts.monthsAbbr = {&lt;br /&gt;
	&amp;quot;Jan&amp;quot;,&lt;br /&gt;
	&amp;quot;Feb&amp;quot;,&lt;br /&gt;
	&amp;quot;Mar&amp;quot;,&lt;br /&gt;
	&amp;quot;Apr&amp;quot;,&lt;br /&gt;
	&amp;quot;May&amp;quot;,&lt;br /&gt;
	&amp;quot;Jun&amp;quot;,&lt;br /&gt;
	&amp;quot;Jul&amp;quot;,&lt;br /&gt;
	&amp;quot;Aug&amp;quot;,&lt;br /&gt;
	&amp;quot;Sep&amp;quot;,&lt;br /&gt;
	&amp;quot;Oct&amp;quot;,&lt;br /&gt;
	&amp;quot;Nov&amp;quot;,&lt;br /&gt;
	&amp;quot;Dec&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Dts._makeMonthSearch(t)&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for i, month in ipairs(t) do&lt;br /&gt;
		ret[month:lower()] = i&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
Dts.monthSearch = Dts._makeMonthSearch(Dts.months)&lt;br /&gt;
Dts.monthSearchAbbr = Dts._makeMonthSearch(Dts.monthsAbbr)&lt;br /&gt;
Dts.monthSearchAbbr[&#039;sept&#039;] = 9 -- Allow &amp;quot;Sept&amp;quot; to match September&lt;br /&gt;
&lt;br /&gt;
Dts.formats = {&lt;br /&gt;
	dmy = true,&lt;br /&gt;
	mdy = true,&lt;br /&gt;
	dm = true,&lt;br /&gt;
	md = true,&lt;br /&gt;
	my = true,&lt;br /&gt;
	y = true,&lt;br /&gt;
	m = true,&lt;br /&gt;
	d = true,&lt;br /&gt;
	hide = true&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Dts.new(args)&lt;br /&gt;
	local self = setmetatable({}, Dts)&lt;br /&gt;
&lt;br /&gt;
	-- Parse date parameters.&lt;br /&gt;
	-- In this step we also record whether the date was in DMY or YMD format,&lt;br /&gt;
	-- and whether the month name was abbreviated.&lt;br /&gt;
	if args[2] or args[3] or args[4] then&lt;br /&gt;
		self:parseDateParts(args[1], args[2], args[3], args[4])&lt;br /&gt;
	elseif args[1] then&lt;br /&gt;
		self:parseDate(args[1])&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Raise an error on invalid values&lt;br /&gt;
	if self.year then&lt;br /&gt;
		if self.year == 0 then&lt;br /&gt;
			error(&#039;years cannot be zero&#039;, 0)&lt;br /&gt;
		elseif self.year &amp;lt; -MAX_YEAR then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&#039;years cannot be less than %s&#039;,&lt;br /&gt;
				lang:formatNum(-MAX_YEAR)&lt;br /&gt;
			), 0)&lt;br /&gt;
		elseif self.year &amp;gt; MAX_YEAR then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&#039;years cannot be greater than %s&#039;,&lt;br /&gt;
				lang:formatNum(MAX_YEAR)&lt;br /&gt;
			), 0)&lt;br /&gt;
		elseif math.floor(self.year) ~= self.year then&lt;br /&gt;
			error(&#039;years must be an integer&#039;, 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if self.month and (&lt;br /&gt;
		self.month &amp;lt; 1&lt;br /&gt;
		or self.month &amp;gt; 12&lt;br /&gt;
		or math.floor(self.month) ~= self.month&lt;br /&gt;
	) then&lt;br /&gt;
		error(&#039;months must be an integer between 1 and 12&#039;, 0)&lt;br /&gt;
	end&lt;br /&gt;
	if self.day and (&lt;br /&gt;
		self.day &amp;lt; 1&lt;br /&gt;
		or self.day &amp;gt; 31&lt;br /&gt;
		or math.floor(self.day) ~= self.day&lt;br /&gt;
	) then&lt;br /&gt;
		error(&#039;days must be an integer between 1 and 31&#039;, 0)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set month abbreviation behaviour, i.e. whether we are outputting&lt;br /&gt;
	-- &amp;quot;January&amp;quot; or &amp;quot;Jan&amp;quot;.&lt;br /&gt;
	if args.abbr then&lt;br /&gt;
		self.isAbbreviated = args.abbr == &#039;on&#039; or yesno(args.abbr) or false&lt;br /&gt;
	else&lt;br /&gt;
		self.isAbbreviated = self.isAbbreviated or false&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set the format string&lt;br /&gt;
	if args.format then&lt;br /&gt;
		self.format = args.format&lt;br /&gt;
	else&lt;br /&gt;
		self.format = self.format or &#039;mdy&#039;&lt;br /&gt;
	end&lt;br /&gt;
	if not Dts.formats[self.format] then&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;&#039;%s&#039; is not a valid format&amp;quot;,&lt;br /&gt;
			tostring(self.format)&lt;br /&gt;
		), 0)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set addkey. This adds a value at the end of the sort key, allowing users&lt;br /&gt;
	-- to manually distinguish between identical dates.&lt;br /&gt;
	if args.addkey then&lt;br /&gt;
		self.addkey = tonumber(args.addkey)&lt;br /&gt;
		if not self.addkey or&lt;br /&gt;
			self.addkey &amp;lt; 0 or&lt;br /&gt;
			self.addkey &amp;gt; 9999 or&lt;br /&gt;
			math.floor(self.addkey) ~= self.addkey&lt;br /&gt;
		then&lt;br /&gt;
			error(&amp;quot;the &#039;addkey&#039; parameter must be an integer between 0 and 9999&amp;quot;, 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set whether the displayed date is allowed to wrap or not.&lt;br /&gt;
	self.isWrapping = args.nowrap == &#039;off&#039; or yesno(args.nowrap) == false&lt;br /&gt;
&lt;br /&gt;
	return self&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Dts:hasDate()&lt;br /&gt;
	return (self.year or self.month or self.day) ~= nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Find the month number for a month name, and set the isAbbreviated flag as&lt;br /&gt;
-- appropriate.&lt;br /&gt;
function Dts:parseMonthName(s)&lt;br /&gt;
	s = s:lower()&lt;br /&gt;
	local month = Dts.monthSearch[s]&lt;br /&gt;
	if month then&lt;br /&gt;
		return month&lt;br /&gt;
	else&lt;br /&gt;
		month = Dts.monthSearchAbbr[s]&lt;br /&gt;
		if month then&lt;br /&gt;
			self.isAbbreviated = true&lt;br /&gt;
			return month&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Parses separate parameters for year, month, day, and era.&lt;br /&gt;
function Dts:parseDateParts(year, month, day, bc)&lt;br /&gt;
	if year then&lt;br /&gt;
		self.year = tonumber(year)&lt;br /&gt;
		if not self.year then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&amp;quot;&#039;%s&#039; is not a valid year&amp;quot;,&lt;br /&gt;
				tostring(year)&lt;br /&gt;
			), 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if month then&lt;br /&gt;
		if tonumber(month) then&lt;br /&gt;
			self.month = tonumber(month)&lt;br /&gt;
		elseif type(month) == &#039;string&#039; then&lt;br /&gt;
			self.month = self:parseMonthName(month)&lt;br /&gt;
		end&lt;br /&gt;
		if not self.month then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&amp;quot;&#039;%s&#039; is not a valid month&amp;quot;,&lt;br /&gt;
				tostring(month)&lt;br /&gt;
			), 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if day then&lt;br /&gt;
		self.day = tonumber(day)&lt;br /&gt;
		if not self.day then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&amp;quot;&#039;%s&#039; is not a valid day&amp;quot;,&lt;br /&gt;
				tostring(day)&lt;br /&gt;
			), 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if bc then&lt;br /&gt;
		local bcLower = type(bc) == &#039;string&#039; and bc:lower()&lt;br /&gt;
		if bcLower == &#039;bc&#039; or bcLower == &#039;bce&#039; then&lt;br /&gt;
			if self.year and self.year &amp;gt; 0 then&lt;br /&gt;
				self.year = -self.year&lt;br /&gt;
			end&lt;br /&gt;
		elseif bcLower ~= &#039;ad&#039; and bcLower ~= &#039;ce&#039; then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&amp;quot;&#039;%s&#039; is not a valid era code (expected &#039;BC&#039;, &#039;BCE&#039;, &#039;AD&#039; or &#039;CE&#039;)&amp;quot;,&lt;br /&gt;
				tostring(bc)&lt;br /&gt;
			), 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- This method parses date strings. This is a poor man&#039;s alternative to&lt;br /&gt;
-- mw.language:formatDate, but it ends up being easier for us to parse the date&lt;br /&gt;
-- here than to use mw.language:formatDate and then try to figure out after the&lt;br /&gt;
-- fact whether the month was abbreviated and whether we were DMY or MDY.&lt;br /&gt;
function Dts:parseDate(date)&lt;br /&gt;
	-- Generic error message.&lt;br /&gt;
	local function dateError()&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;&#039;%s&#039; is an invalid date&amp;quot;,&lt;br /&gt;
			date&lt;br /&gt;
		), 0)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function parseDayOrMonth(s)&lt;br /&gt;
		if s:find(&#039;^%d%d?$&#039;) then&lt;br /&gt;
			return tonumber(s)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function parseYear(s)&lt;br /&gt;
		if s:find(&#039;^%d%d%d%d?$&#039;) then&lt;br /&gt;
			return tonumber(s)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Deal with year-only dates first, as they can have hyphens in, and later&lt;br /&gt;
	-- we need to split the string by all non-word characters, including&lt;br /&gt;
	-- hyphens. Also, we don&#039;t need to restrict years to 3 or 4 digits, as on&lt;br /&gt;
	-- their own they can&#039;t be confused as a day or a month number.&lt;br /&gt;
	self.year = tonumber(date)&lt;br /&gt;
	if self.year then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Split the string using non-word characters as boundaries.&lt;br /&gt;
	date = tostring(date)&lt;br /&gt;
	local parts = mw.text.split(date, &#039;%W+&#039;)&lt;br /&gt;
	local nParts = #parts&lt;br /&gt;
	if parts[1] == &#039;&#039; or parts[nParts] == &#039;&#039; or nParts &amp;gt; 3 then&lt;br /&gt;
		-- We are parsing a maximum of three elements, so raise an error if we&lt;br /&gt;
		-- have more. If the first or last elements were blank, then the start&lt;br /&gt;
		-- or end of the string was a non-word character, which we will also&lt;br /&gt;
		-- treat as an error.&lt;br /&gt;
		dateError()&lt;br /&gt;
	elseif nParts &amp;lt; 1 then&lt;br /&gt;
	 	-- If we have less than one element, then something has gone horribly&lt;br /&gt;
	 	-- wrong.&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;an unknown error occurred while parsing the date &#039;%s&#039;&amp;quot;,&lt;br /&gt;
			date&lt;br /&gt;
		), 0)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if nParts == 1 then&lt;br /&gt;
		-- This can be either a month name or a year.&lt;br /&gt;
		self.month = self:parseMonthName(parts[1])&lt;br /&gt;
		if not self.month then&lt;br /&gt;
			self.year = parseYear(parts[1])&lt;br /&gt;
			if not self.year then&lt;br /&gt;
				dateError()&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	elseif nParts == 2 then&lt;br /&gt;
		-- This can be any of the following formats:&lt;br /&gt;
		-- DD Month&lt;br /&gt;
		-- Month DD&lt;br /&gt;
		-- Month YYYY&lt;br /&gt;
		-- YYYY-MM&lt;br /&gt;
		self.month = self:parseMonthName(parts[1])&lt;br /&gt;
		if self.month then&lt;br /&gt;
			-- This is either Month DD or Month YYYY.&lt;br /&gt;
			self.year = parseYear(parts[2])&lt;br /&gt;
			if not self.year then&lt;br /&gt;
				-- This is Month DD.&lt;br /&gt;
				self.format = &#039;mdy&#039;&lt;br /&gt;
				self.day = parseDayOrMonth(parts[2])&lt;br /&gt;
				if not self.day then&lt;br /&gt;
					dateError()&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			self.month = self:parseMonthName(parts[2])&lt;br /&gt;
			if self.month then&lt;br /&gt;
				-- This is DD Month.&lt;br /&gt;
				self.format = &#039;dmy&#039;&lt;br /&gt;
				self.day = parseDayOrMonth(parts[1])&lt;br /&gt;
				if not self.day then&lt;br /&gt;
					dateError()&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				-- This is YYYY-MM.&lt;br /&gt;
				self.year = parseYear(parts[1])&lt;br /&gt;
				self.month = parseDayOrMonth(parts[2])&lt;br /&gt;
				if not self.year or not self.month then&lt;br /&gt;
					dateError()&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	elseif nParts == 3 then&lt;br /&gt;
		-- This can be any of the following formats:&lt;br /&gt;
		-- DD Month YYYY&lt;br /&gt;
		-- Month DD, YYYY&lt;br /&gt;
		-- YYYY-MM-DD&lt;br /&gt;
		-- DD-MM-YYYY&lt;br /&gt;
		self.month = self:parseMonthName(parts[1])&lt;br /&gt;
		if self.month then&lt;br /&gt;
			-- This is Month DD, YYYY.&lt;br /&gt;
			self.format = &#039;mdy&#039;&lt;br /&gt;
			self.day = parseDayOrMonth(parts[2])&lt;br /&gt;
			self.year = parseYear(parts[3])&lt;br /&gt;
			if not self.day or not self.year then&lt;br /&gt;
				dateError()&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			self.day = parseDayOrMonth(parts[1])&lt;br /&gt;
			if self.day then&lt;br /&gt;
				self.month = self:parseMonthName(parts[2])&lt;br /&gt;
				if self.month then&lt;br /&gt;
					-- This is DD Month YYYY.&lt;br /&gt;
					self.format = &#039;dmy&#039;&lt;br /&gt;
					self.year = parseYear(parts[3])&lt;br /&gt;
					if not self.year then&lt;br /&gt;
						dateError()&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					-- This is DD-MM-YYYY.&lt;br /&gt;
					self.format = &#039;dmy&#039;&lt;br /&gt;
					self.month = parseDayOrMonth(parts[2])&lt;br /&gt;
					self.year = parseYear(parts[3])&lt;br /&gt;
					if not self.month or not self.year then&lt;br /&gt;
						dateError()&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				-- This is YYYY-MM-DD&lt;br /&gt;
				self.year = parseYear(parts[1])&lt;br /&gt;
				self.month = parseDayOrMonth(parts[2])&lt;br /&gt;
				self.day = parseDayOrMonth(parts[3])&lt;br /&gt;
				if not self.year or not self.month or not self.day then&lt;br /&gt;
					dateError()&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Dts:makeSortKey()&lt;br /&gt;
	local year, month, day&lt;br /&gt;
	local nYearDigits = N_YEAR_DIGITS&lt;br /&gt;
	if self:hasDate() then&lt;br /&gt;
		year = self.year or os.date(&amp;quot;*t&amp;quot;).year&lt;br /&gt;
		if year &amp;lt; 0 then&lt;br /&gt;
			year = -MAX_YEAR - 1 - year&lt;br /&gt;
			nYearDigits = nYearDigits + 1 -- For the minus sign&lt;br /&gt;
		end&lt;br /&gt;
		month = self.month or 1&lt;br /&gt;
		day = self.day or 1&lt;br /&gt;
	else&lt;br /&gt;
		-- Blank {{dts}} transclusions should sort last.&lt;br /&gt;
		year = MAX_YEAR&lt;br /&gt;
		month = 99&lt;br /&gt;
		day = 99&lt;br /&gt;
	end&lt;br /&gt;
	return string.format(&lt;br /&gt;
		&#039;%0&#039; .. nYearDigits .. &#039;d-%02d-%02d-%04d&#039;,&lt;br /&gt;
		year, month, day, self.addkey or 0&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Dts:getMonthName()&lt;br /&gt;
	if not self.month then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	if self.isAbbreviated then&lt;br /&gt;
		return self.monthsAbbr[self.month]&lt;br /&gt;
	else&lt;br /&gt;
		return self.months[self.month]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Dts:makeDisplay()&lt;br /&gt;
	if self.format == &#039;hide&#039; then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	local hasYear = self.year and self.format:find(&#039;y&#039;)&lt;br /&gt;
	local hasMonth = self.month and self.format:find(&#039;m&#039;)&lt;br /&gt;
	local hasDay = self.day and self.format:find(&#039;d&#039;)&lt;br /&gt;
	local isMonthFirst = self.format:find(&#039;md&#039;)&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	if hasDay and hasMonth and isMonthFirst then&lt;br /&gt;
		ret[#ret + 1] = self:getMonthName()&lt;br /&gt;
		ret[#ret + 1] = &#039; &#039;&lt;br /&gt;
		ret[#ret + 1] = self.day&lt;br /&gt;
		if hasYear then&lt;br /&gt;
			ret[#ret + 1] = &#039;,&#039;&lt;br /&gt;
		end&lt;br /&gt;
	elseif hasDay and hasMonth then&lt;br /&gt;
		ret[#ret + 1] = self.day&lt;br /&gt;
		ret[#ret + 1] = &#039; &#039;&lt;br /&gt;
		ret[#ret + 1] = self:getMonthName()&lt;br /&gt;
	elseif hasDay then&lt;br /&gt;
		ret[#ret + 1] = self.day&lt;br /&gt;
	elseif hasMonth then&lt;br /&gt;
		ret[#ret + 1] = self:getMonthName()&lt;br /&gt;
	end&lt;br /&gt;
	if hasYear then&lt;br /&gt;
		if hasDay or hasMonth then&lt;br /&gt;
			ret[#ret + 1] = &#039; &#039;&lt;br /&gt;
		end&lt;br /&gt;
		local displayYear = math.abs(self.year)&lt;br /&gt;
		if displayYear &amp;gt; 9999 then&lt;br /&gt;
			displayYear = lang:formatNum(displayYear)&lt;br /&gt;
		else&lt;br /&gt;
			displayYear = tostring(displayYear)&lt;br /&gt;
		end&lt;br /&gt;
		ret[#ret + 1] = displayYear&lt;br /&gt;
		if self.year &amp;lt; 0 then&lt;br /&gt;
			ret[#ret + 1] = &#039;&amp;amp;nbsp;BC&#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(ret)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Dts:__tostring()&lt;br /&gt;
	local root = mw.html.create()&lt;br /&gt;
	local span = root:tag(&#039;span&#039;)&lt;br /&gt;
		:attr(&#039;data-sort-value&#039;, self:makeSortKey())&lt;br /&gt;
&lt;br /&gt;
	-- Display&lt;br /&gt;
	if self:hasDate() and self.format ~= &#039;hide&#039; then&lt;br /&gt;
		span:wikitext(self:makeDisplay())&lt;br /&gt;
		if not self.isWrapping then&lt;br /&gt;
			span:css(&#039;white-space&#039;, &#039;nowrap&#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Exports&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._exportClasses()&lt;br /&gt;
	return {&lt;br /&gt;
		Dts = Dts&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local success, ret = pcall(function ()&lt;br /&gt;
		local dts = Dts.new(args)&lt;br /&gt;
		return tostring(dts)&lt;br /&gt;
	end)&lt;br /&gt;
	if success then&lt;br /&gt;
		return ret&lt;br /&gt;
	else&lt;br /&gt;
		ret = string.format(&lt;br /&gt;
			&#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;Error in [[Template:Date table sorting]]: %s&amp;lt;/strong&amp;gt;&#039;,&lt;br /&gt;
			ret&lt;br /&gt;
		)&lt;br /&gt;
		if mw.title.getCurrentTitle().namespace == 0 then&lt;br /&gt;
			-- Only categorise in the main namespace&lt;br /&gt;
			ret = ret .. &#039;[[Category:Date table sorting templates with errors]]&#039;&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&#039;Module:Arguments&#039;).getArgs(frame, {&lt;br /&gt;
		wrappers = &#039;Template:Date table sorting&#039;,&lt;br /&gt;
	})&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Documentation/styles.css&amp;diff=187</id>
		<title>Module:Documentation/styles.css</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Documentation/styles.css&amp;diff=187"/>
		<updated>2026-04-14T17:35:00Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp|small=yes}} */&lt;br /&gt;
.documentation,&lt;br /&gt;
.documentation-metadata {&lt;br /&gt;
	border: 1px solid var( --border-color-base, #a2a9b1 );&lt;br /&gt;
	background-color: #ecfcf4; color:inherit;&lt;br /&gt;
	clear: both;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.documentation {&lt;br /&gt;
	margin: 1em 0 0 0;&lt;br /&gt;
	padding: 1em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.documentation-metadata {&lt;br /&gt;
	margin: 0.2em 0; /* same margin left-right as .documentation */&lt;br /&gt;
    font-style: italic;&lt;br /&gt;
    padding: 0.4em 1em; /* same padding left-right as .documentation */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.documentation-startbox {&lt;br /&gt;
	padding-bottom: 3px;&lt;br /&gt;
	border-bottom: 1px solid var( --border-color-base, #a2a9b1 );&lt;br /&gt;
	margin-bottom: 1ex;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.documentation-heading {&lt;br /&gt;
	font-weight: bold;&lt;br /&gt;
	font-size: 125%;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.documentation-clear { /* Don&#039;t want things to stick out where they shouldn&#039;t. */&lt;br /&gt;
	clear: both;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.documentation-toolbar {&lt;br /&gt;
	font-style: normal;&lt;br /&gt;
	font-size: 85%;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@media screen {&lt;br /&gt;
    html.skin-theme-clientpref-night .documentation,&lt;br /&gt;
	html.skin-theme-clientpref-night .documentation-metadata {&lt;br /&gt;
	    background-color: #0b1e1c; color:inherit;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@media screen and ( prefers-color-scheme: dark ) {&lt;br /&gt;
    html.skin-theme-clientpref-os .documentation,&lt;br /&gt;
    html.skin-theme-clientpref-os .documentation-metadata {&lt;br /&gt;
        background-color: #0b1e1c; color:inherit;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Documentation/config&amp;diff=185</id>
		<title>Module:Documentation/config</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Documentation/config&amp;diff=185"/>
		<updated>2026-04-14T17:34:59Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;----------------------------------------------------------------------------------------------------&lt;br /&gt;
--&lt;br /&gt;
--                               Configuration for Module:Documentation&lt;br /&gt;
--&lt;br /&gt;
-- Here you can set the values of the parameters and messages used in Module:Documentation to&lt;br /&gt;
-- localise it to your wiki and your language. Unless specified otherwise, values given here&lt;br /&gt;
-- should be string values.&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local cfg = {} -- Do not edit this line.&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Protection template configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;protection-reason-edit&#039;]&lt;br /&gt;
-- The protection reason for edit-protected templates to pass to&lt;br /&gt;
-- [[Module:Protection banner]].&lt;br /&gt;
cfg[&#039;protection-reason-edit&#039;] = &#039;template&#039;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Sandbox notice configuration&lt;br /&gt;
--&lt;br /&gt;
-- On sandbox pages the module can display a template notifying users that the current page is a&lt;br /&gt;
-- sandbox, and the location of test cases pages, etc. The module decides whether the page is a&lt;br /&gt;
-- sandbox or not based on the value of cfg[&#039;sandbox-subpage&#039;]. The following settings configure the&lt;br /&gt;
-- messages that the notices contains.&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;sandbox-notice-image&#039;]&lt;br /&gt;
-- The image displayed in the sandbox notice.&lt;br /&gt;
cfg[&#039;sandbox-notice-image&#039;] = &#039;[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]&#039;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;sandbox-notice-pagetype-template&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-pagetype-module&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-pagetype-other&#039;]&lt;br /&gt;
-- The page type of the sandbox page. The message that is displayed depends on the current subject&lt;br /&gt;
-- namespace. This message is used in either cfg[&#039;sandbox-notice-blurb&#039;] or&lt;br /&gt;
-- cfg[&#039;sandbox-notice-diff-blurb&#039;].&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;sandbox-notice-pagetype-template&#039;] = &#039;[[Wikipedia:Template test cases|template sandbox]] page&#039;&lt;br /&gt;
cfg[&#039;sandbox-notice-pagetype-module&#039;] = &#039;[[Wikipedia:Template test cases|module sandbox]] page&#039;&lt;br /&gt;
cfg[&#039;sandbox-notice-pagetype-other&#039;] = &#039;sandbox page&#039;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;sandbox-notice-blurb&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-diff-blurb&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-diff-display&#039;]&lt;br /&gt;
-- Either cfg[&#039;sandbox-notice-blurb&#039;] or cfg[&#039;sandbox-notice-diff-blurb&#039;] is the opening sentence&lt;br /&gt;
-- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page&lt;br /&gt;
-- type, which is either cfg[&#039;sandbox-notice-pagetype-template&#039;],&lt;br /&gt;
-- cfg[&#039;sandbox-notice-pagetype-module&#039;] or cfg[&#039;sandbox-notice-pagetype-other&#039;] depending what&lt;br /&gt;
-- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between&lt;br /&gt;
-- the sandbox and the main template. The display value of the diff link is set by &lt;br /&gt;
-- cfg[&#039;sandbox-notice-compare-link-display&#039;].&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;sandbox-notice-blurb&#039;] = &#039;This is the $1 for $2.&#039;&lt;br /&gt;
cfg[&#039;sandbox-notice-diff-blurb&#039;] = &#039;This is the $1 for $2 ($3).&#039;&lt;br /&gt;
cfg[&#039;sandbox-notice-compare-link-display&#039;] = &#039;diff&#039;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-blurb&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-link-display&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-run-blurb&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-run-link-display&#039;]&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-blurb&#039;] is a sentence notifying the user that there is a test cases page&lt;br /&gt;
-- corresponding to this sandbox that they can edit. $1 is a link to the test cases page.&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-link-display&#039;] is the display value for that link.&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-run-blurb&#039;] is a sentence notifying the user that there is a test cases page&lt;br /&gt;
-- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test&lt;br /&gt;
-- cases page, and $2 is a link to the page to run it.&lt;br /&gt;
-- cfg[&#039;sandbox-notice-testcases-run-link-display&#039;] is the display value for the link to run the test&lt;br /&gt;
-- cases.&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;sandbox-notice-testcases-blurb&#039;] = &#039;See also the companion subpage for $1.&#039;&lt;br /&gt;
cfg[&#039;sandbox-notice-testcases-link-display&#039;] = &#039;test cases&#039;&lt;br /&gt;
cfg[&#039;sandbox-notice-testcases-run-blurb&#039;] = &#039;See also the companion subpage for $1 ($2).&#039;&lt;br /&gt;
cfg[&#039;sandbox-notice-testcases-run-link-display&#039;] = &#039;run&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;sandbox-category&#039;] - A category to add to all template sandboxes.&lt;br /&gt;
-- cfg[&#039;module-sandbox-category&#039;] - A category to add to all module sandboxes.&lt;br /&gt;
-- cfg[&#039;module-sandbox-category&#039;] - A category to add to all sandboxe not in templates or modules.&lt;br /&gt;
cfg[&#039;sandbox-category&#039;] = &#039;Template sandboxes&#039;&lt;br /&gt;
cfg[&#039;module-sandbox-category&#039;] = &#039;Module sandboxes&#039;&lt;br /&gt;
cfg[&#039;other-sandbox-category&#039;] = &#039;Sandboxes outside of template or module namespace&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Start box configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;documentation-icon-wikitext&#039;]&lt;br /&gt;
-- The wikitext for the icon shown at the top of the template.&lt;br /&gt;
cfg[&#039;documentation-icon-wikitext&#039;] = &#039;[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;template-namespace-heading&#039;]&lt;br /&gt;
-- The heading shown in the template namespace.&lt;br /&gt;
cfg[&#039;template-namespace-heading&#039;] = &#039;Template documentation&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;module-namespace-heading&#039;]&lt;br /&gt;
-- The heading shown in the module namespace.&lt;br /&gt;
cfg[&#039;module-namespace-heading&#039;] = &#039;Module documentation&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;file-namespace-heading&#039;]&lt;br /&gt;
-- The heading shown in the file namespace.&lt;br /&gt;
cfg[&#039;file-namespace-heading&#039;] = &#039;Summary&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;other-namespaces-heading&#039;]&lt;br /&gt;
-- The heading shown in other namespaces.&lt;br /&gt;
cfg[&#039;other-namespaces-heading&#039;] = &#039;Documentation&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;view-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;view&amp;quot; links.&lt;br /&gt;
cfg[&#039;view-link-display&#039;] = &#039;view&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;edit-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;edit&amp;quot; links.&lt;br /&gt;
cfg[&#039;edit-link-display&#039;] = &#039;edit&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;history-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;history&amp;quot; links.&lt;br /&gt;
cfg[&#039;history-link-display&#039;] = &#039;history&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;purge-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;purge&amp;quot; links.&lt;br /&gt;
cfg[&#039;purge-link-display&#039;] = &#039;purge&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;create-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;create&amp;quot; links.&lt;br /&gt;
cfg[&#039;create-link-display&#039;] = &#039;create&#039;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Link box (end box) configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;transcluded-from-blurb&#039;]&lt;br /&gt;
-- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page.&lt;br /&gt;
cfg[&#039;transcluded-from-blurb&#039;] = &#039;The above [[Wikipedia:Template documentation|documentation]] is [[Help:Transclusion|transcluded]] from $1.&#039;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;create-module-doc-blurb&#039;]&lt;br /&gt;
-- Notice displayed in the module namespace when the documentation subpage does not exist.&lt;br /&gt;
-- $1 is a link to create the documentation page with the preload cfg[&#039;module-preload&#039;] and the&lt;br /&gt;
-- display cfg[&#039;create-link-display&#039;].&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;create-module-doc-blurb&#039;] = &#039;You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].&#039;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Experiment blurb configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;experiment-blurb-template&#039;]&lt;br /&gt;
-- cfg[&#039;experiment-blurb-module&#039;]&lt;br /&gt;
-- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages.&lt;br /&gt;
-- It is only shown in the template and module namespaces. With the default English settings, it&lt;br /&gt;
-- might look like this:&lt;br /&gt;
--&lt;br /&gt;
-- Editors can experiment in this template&#039;s sandbox (edit | diff) and testcases (edit) pages.&lt;br /&gt;
--&lt;br /&gt;
-- In this example, &amp;quot;sandbox&amp;quot;, &amp;quot;edit&amp;quot;, &amp;quot;diff&amp;quot;, &amp;quot;testcases&amp;quot;, and &amp;quot;edit&amp;quot; would all be links.&lt;br /&gt;
--&lt;br /&gt;
-- There are two versions, cfg[&#039;experiment-blurb-template&#039;] and cfg[&#039;experiment-blurb-module&#039;], depending&lt;br /&gt;
-- on what namespace we are in.&lt;br /&gt;
-- &lt;br /&gt;
-- Parameters:&lt;br /&gt;
--&lt;br /&gt;
-- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format:&lt;br /&gt;
--&lt;br /&gt;
--     cfg[&#039;sandbox-link-display&#039;] (cfg[&#039;sandbox-edit-link-display&#039;] | cfg[&#039;compare-link-display&#039;])&lt;br /&gt;
-- &lt;br /&gt;
-- If the sandbox doesn&#039;t exist, it is in the format:&lt;br /&gt;
--&lt;br /&gt;
--     cfg[&#039;sandbox-link-display&#039;] (cfg[&#039;sandbox-create-link-display&#039;] | cfg[&#039;mirror-link-display&#039;])&lt;br /&gt;
-- &lt;br /&gt;
-- The link for cfg[&#039;sandbox-create-link-display&#039;] link preloads the page with cfg[&#039;template-sandbox-preload&#039;]&lt;br /&gt;
-- or cfg[&#039;module-sandbox-preload&#039;], depending on the current namespace. The link for cfg[&#039;mirror-link-display&#039;]&lt;br /&gt;
-- loads a default edit summary of cfg[&#039;mirror-edit-summary&#039;].&lt;br /&gt;
--&lt;br /&gt;
-- $2 is a link to the test cases page. If the test cases page exists, it is in the following format:&lt;br /&gt;
--&lt;br /&gt;
--     cfg[&#039;testcases-link-display&#039;] (cfg[&#039;testcases-edit-link-display&#039;] | cfg[&#039;testcases-run-link-display&#039;])&lt;br /&gt;
--&lt;br /&gt;
-- If the test cases page doesn&#039;t exist, it is in the format:&lt;br /&gt;
-- &lt;br /&gt;
--     cfg[&#039;testcases-link-display&#039;] (cfg[&#039;testcases-create-link-display&#039;])&lt;br /&gt;
--&lt;br /&gt;
-- If the test cases page doesn&#039;t exist, the link for cfg[&#039;testcases-create-link-display&#039;] preloads the&lt;br /&gt;
-- page with cfg[&#039;template-testcases-preload&#039;] or cfg[&#039;module-testcases-preload&#039;], depending on the current&lt;br /&gt;
-- namespace.&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;experiment-blurb-template&#039;] = &amp;quot;Editors can experiment in this template&#039;s $1 and $2 pages.&amp;quot;&lt;br /&gt;
cfg[&#039;experiment-blurb-module&#039;] = &amp;quot;Editors can experiment in this module&#039;s $1 and $2 pages.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Sandbox link configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;sandbox-subpage&#039;]&lt;br /&gt;
-- The name of the template subpage typically used for sandboxes.&lt;br /&gt;
cfg[&#039;sandbox-subpage&#039;] = &#039;sandbox&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;template-sandbox-preload&#039;]&lt;br /&gt;
-- Preload file for template sandbox pages.&lt;br /&gt;
cfg[&#039;template-sandbox-preload&#039;] = &#039;Template:Documentation/preload-sandbox&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;module-sandbox-preload&#039;]&lt;br /&gt;
-- Preload file for Lua module sandbox pages.&lt;br /&gt;
cfg[&#039;module-sandbox-preload&#039;] = &#039;Template:Documentation/preload-module-sandbox&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;sandbox-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;sandbox&amp;quot; links.&lt;br /&gt;
cfg[&#039;sandbox-link-display&#039;] = &#039;sandbox&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;sandbox-edit-link-display&#039;]&lt;br /&gt;
-- The text to display for sandbox &amp;quot;edit&amp;quot; links.&lt;br /&gt;
cfg[&#039;sandbox-edit-link-display&#039;] = &#039;edit&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;sandbox-create-link-display&#039;]&lt;br /&gt;
-- The text to display for sandbox &amp;quot;create&amp;quot; links.&lt;br /&gt;
cfg[&#039;sandbox-create-link-display&#039;] = &#039;create&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;compare-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;compare&amp;quot; links.&lt;br /&gt;
cfg[&#039;compare-link-display&#039;] = &#039;diff&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;mirror-edit-summary&#039;]&lt;br /&gt;
-- The default edit summary to use when a user clicks the &amp;quot;mirror&amp;quot; link. $1 is a wikilink to the&lt;br /&gt;
-- template page.&lt;br /&gt;
cfg[&#039;mirror-edit-summary&#039;] = &#039;Create sandbox version of $1&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;mirror-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;mirror&amp;quot; links.&lt;br /&gt;
cfg[&#039;mirror-link-display&#039;] = &#039;mirror&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;mirror-link-preload&#039;]&lt;br /&gt;
-- The page to preload when a user clicks the &amp;quot;mirror&amp;quot; link.&lt;br /&gt;
cfg[&#039;mirror-link-preload&#039;] = &#039;Template:Documentation/mirror&#039;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Test cases link configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;testcases-subpage&#039;]&lt;br /&gt;
-- The name of the template subpage typically used for test cases.&lt;br /&gt;
cfg[&#039;testcases-subpage&#039;] = &#039;testcases&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;template-testcases-preload&#039;]&lt;br /&gt;
-- Preload file for template test cases pages.&lt;br /&gt;
cfg[&#039;template-testcases-preload&#039;] = &#039;Template:Documentation/preload-testcases&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;module-testcases-preload&#039;]&lt;br /&gt;
-- Preload file for Lua module test cases pages.&lt;br /&gt;
cfg[&#039;module-testcases-preload&#039;] = &#039;Template:Documentation/preload-module-testcases&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;testcases-link-display&#039;]&lt;br /&gt;
-- The text to display for &amp;quot;testcases&amp;quot; links.&lt;br /&gt;
cfg[&#039;testcases-link-display&#039;] = &#039;testcases&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;testcases-edit-link-display&#039;]&lt;br /&gt;
-- The text to display for test cases &amp;quot;edit&amp;quot; links.&lt;br /&gt;
cfg[&#039;testcases-edit-link-display&#039;] = &#039;edit&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;testcases-run-link-display&#039;]&lt;br /&gt;
-- The text to display for test cases &amp;quot;run&amp;quot; links.&lt;br /&gt;
cfg[&#039;testcases-run-link-display&#039;] = &#039;run&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;testcases-create-link-display&#039;]&lt;br /&gt;
-- The text to display for test cases &amp;quot;create&amp;quot; links.&lt;br /&gt;
cfg[&#039;testcases-create-link-display&#039;] = &#039;create&#039;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Add categories blurb configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;add-categories-blurb&#039;]&lt;br /&gt;
-- Text to direct users to add categories to the /doc subpage. Not used if the &amp;quot;content&amp;quot; or&lt;br /&gt;
-- &amp;quot;docname fed&amp;quot; arguments are set, as then it is not clear where to add the categories. $1 is a&lt;br /&gt;
-- link to the /doc subpage with a display value of cfg[&#039;doc-link-display&#039;].&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;add-categories-blurb&#039;] = &#039;Add categories to the $1 subpage.&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;doc-link-display&#039;]&lt;br /&gt;
-- The text to display when linking to the /doc subpage.&lt;br /&gt;
cfg[&#039;doc-link-display&#039;] = &#039;/doc&#039;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Subpages link configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;subpages-blurb&#039;]&lt;br /&gt;
-- The &amp;quot;Subpages of this template&amp;quot; blurb. $1 is a link to the main template&#039;s subpages with a&lt;br /&gt;
-- display value of cfg[&#039;subpages-link-display&#039;]. In the English version this blurb is simply&lt;br /&gt;
-- the link followed by a period, and the link display provides the actual text.&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;subpages-blurb&#039;] = &#039;$1.&#039;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- cfg[&#039;subpages-link-display&#039;]&lt;br /&gt;
-- The text to display for the &amp;quot;subpages of this page&amp;quot; link. $1 is cfg[&#039;template-pagetype&#039;],&lt;br /&gt;
-- cfg[&#039;module-pagetype&#039;] or cfg[&#039;default-pagetype&#039;], depending on whether the current page is in&lt;br /&gt;
-- the template namespace, the module namespace, or another namespace.&lt;br /&gt;
--]]&lt;br /&gt;
cfg[&#039;subpages-link-display&#039;] = &#039;Subpages of this $1&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;template-pagetype&#039;]&lt;br /&gt;
-- The pagetype to display for template pages.&lt;br /&gt;
cfg[&#039;template-pagetype&#039;] = &#039;template&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;module-pagetype&#039;]&lt;br /&gt;
-- The pagetype to display for Lua module pages.&lt;br /&gt;
cfg[&#039;module-pagetype&#039;] = &#039;module&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;default-pagetype&#039;]&lt;br /&gt;
-- The pagetype to display for pages other than templates or Lua modules.&lt;br /&gt;
cfg[&#039;default-pagetype&#039;] = &#039;page&#039;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Doc link configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;doc-subpage&#039;]&lt;br /&gt;
-- The name of the subpage typically used for documentation pages.&lt;br /&gt;
cfg[&#039;doc-subpage&#039;] = &#039;doc&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;docpage-preload&#039;]&lt;br /&gt;
-- Preload file for template documentation pages in all namespaces.&lt;br /&gt;
cfg[&#039;docpage-preload&#039;] = &#039;Template:Documentation/preload&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;module-preload&#039;]&lt;br /&gt;
-- Preload file for Lua module documentation pages.&lt;br /&gt;
cfg[&#039;module-preload&#039;] = &#039;Template:Documentation/preload-module-doc&#039;&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- HTML and CSS configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;templatestyles&#039;]&lt;br /&gt;
-- The name of the TemplateStyles page where CSS is kept.&lt;br /&gt;
-- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed.&lt;br /&gt;
cfg[&#039;templatestyles&#039;] = &#039;Module:Documentation/styles.css&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;container&#039;]&lt;br /&gt;
-- Class which can be used to set flex or grid CSS on the&lt;br /&gt;
-- two child divs documentation and documentation-metadata&lt;br /&gt;
cfg[&#039;container&#039;] = &#039;documentation-container&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;main-div-classes&#039;]&lt;br /&gt;
-- Classes added to the main HTML &amp;quot;div&amp;quot; tag.&lt;br /&gt;
cfg[&#039;main-div-classes&#039;] = &#039;documentation&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;main-div-heading-class&#039;]&lt;br /&gt;
-- Class for the main heading for templates and modules and assoc. talk spaces&lt;br /&gt;
cfg[&#039;main-div-heading-class&#039;] = &#039;documentation-heading&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;start-box-class&#039;]&lt;br /&gt;
-- Class for the start box&lt;br /&gt;
cfg[&#039;start-box-class&#039;] = &#039;documentation-startbox&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;start-box-link-classes&#039;]&lt;br /&gt;
-- Classes used for the [view][edit][history] or [create] links in the start box.&lt;br /&gt;
-- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]]&lt;br /&gt;
cfg[&#039;start-box-link-classes&#039;] = &#039;mw-editsection-like plainlinks&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;end-box-class&#039;]&lt;br /&gt;
-- Class for the end box.&lt;br /&gt;
cfg[&#039;end-box-class&#039;] = &#039;documentation-metadata&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;end-box-plainlinks&#039;]&lt;br /&gt;
-- Plainlinks&lt;br /&gt;
cfg[&#039;end-box-plainlinks&#039;] = &#039;plainlinks&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;toolbar-class&#039;]&lt;br /&gt;
-- Class added for toolbar links.&lt;br /&gt;
cfg[&#039;toolbar-class&#039;] = &#039;documentation-toolbar&#039;&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;clear&#039;]&lt;br /&gt;
-- Just used to clear things.&lt;br /&gt;
cfg[&#039;clear&#039;] = &#039;documentation-clear&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Tracking category configuration&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;display-strange-usage-category&#039;]&lt;br /&gt;
-- Set to true to enable output of cfg[&#039;strange-usage-category&#039;] if the module is used on a /doc subpage&lt;br /&gt;
-- or a /testcases subpage. This should be a boolean value (either true or false).&lt;br /&gt;
cfg[&#039;display-strange-usage-category&#039;] = true&lt;br /&gt;
&lt;br /&gt;
-- cfg[&#039;strange-usage-category&#039;]&lt;br /&gt;
-- Category to output if cfg[&#039;display-strange-usage-category&#039;] is set to true and the module is used on a&lt;br /&gt;
-- /doc subpage or a /testcases subpage.&lt;br /&gt;
cfg[&#039;strange-usage-category&#039;] = &#039;Wikipedia pages with strange ((documentation)) usage&#039;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- End configuration&lt;br /&gt;
--&lt;br /&gt;
-- Don&#039;t edit anything below this line.&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
return cfg&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Documentation&amp;diff=183</id>
		<title>Module:Documentation</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Documentation&amp;diff=183"/>
		<updated>2026-04-14T17:34:59Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements {{documentation}}.&lt;br /&gt;
&lt;br /&gt;
-- Get required modules.&lt;br /&gt;
local getArgs = require(&#039;Module:Arguments&#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
-- Get the config table.&lt;br /&gt;
local cfg = mw.loadData(&#039;Module:Documentation/config&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Often-used functions.&lt;br /&gt;
local ugsub = mw.ustring.gsub&lt;br /&gt;
local format = mw.ustring.format&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
--&lt;br /&gt;
-- These are defined as local functions, but are made available in the p&lt;br /&gt;
-- table for testing purposes.&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function message(cfgKey, valArray, expectType)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Gets a message from the cfg table and formats it if appropriate.&lt;br /&gt;
	-- The function raises an error if the value from the cfg table is not&lt;br /&gt;
	-- of the type expectType. The default type for expectType is &#039;string&#039;.&lt;br /&gt;
	-- If the table valArray is present, strings such as $1, $2 etc. in the&lt;br /&gt;
	-- message are substituted with values from the table keys [1], [2] etc.&lt;br /&gt;
	-- For example, if the message &amp;quot;foo-message&amp;quot; had the value &#039;Foo $2 bar $1.&#039;,&lt;br /&gt;
	-- message(&#039;foo-message&#039;, {&#039;baz&#039;, &#039;qux&#039;}) would return &amp;quot;Foo qux bar baz.&amp;quot;&lt;br /&gt;
	--]]&lt;br /&gt;
	local msg = cfg[cfgKey]&lt;br /&gt;
	expectType = expectType or &#039;string&#039;&lt;br /&gt;
	if type(msg) ~= expectType then&lt;br /&gt;
		error(&#039;message: type error in message cfg.&#039; .. cfgKey .. &#039; (&#039; .. expectType .. &#039; expected, got &#039; .. type(msg) .. &#039;)&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	if not valArray then&lt;br /&gt;
		return msg&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function getMessageVal(match)&lt;br /&gt;
		match = tonumber(match)&lt;br /&gt;
		return valArray[match] or error(&#039;message: no value found for key $&#039; .. match .. &#039; in message cfg.&#039; .. cfgKey, 4)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return ugsub(msg, &#039;$([1-9][0-9]*)&#039;, getMessageVal)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.message = message&lt;br /&gt;
&lt;br /&gt;
local function makeWikilink(page, display)&lt;br /&gt;
	if display then&lt;br /&gt;
		return format(&#039;[[%s|%s]]&#039;, page, display)&lt;br /&gt;
	else&lt;br /&gt;
		return format(&#039;[[%s]]&#039;, page)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.makeWikilink = makeWikilink&lt;br /&gt;
&lt;br /&gt;
local function makeCategoryLink(cat, sort)&lt;br /&gt;
	local catns = mw.site.namespaces[14].name&lt;br /&gt;
	return makeWikilink(catns .. &#039;:&#039; .. cat, sort)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.makeCategoryLink = makeCategoryLink&lt;br /&gt;
&lt;br /&gt;
local function makeUrlLink(url, display)&lt;br /&gt;
	return format(&#039;[%s %s]&#039;, url, display)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.makeUrlLink = makeUrlLink&lt;br /&gt;
&lt;br /&gt;
local function makeToolbar(...)&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	local lim = select(&#039;#&#039;, ...)&lt;br /&gt;
	if lim &amp;lt; 1 then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	for i = 1, lim do&lt;br /&gt;
		ret[#ret + 1] = select(i, ...)&lt;br /&gt;
	end&lt;br /&gt;
	-- &#039;documentation-toolbar&#039;&lt;br /&gt;
	return format(&lt;br /&gt;
		&#039;&amp;lt;span class=&amp;quot;%s&amp;quot;&amp;gt;(%s)&amp;lt;/span&amp;gt;&#039;,&lt;br /&gt;
		message(&#039;toolbar-class&#039;),&lt;br /&gt;
		table.concat(ret, &#039; &amp;amp;#124; &#039;)&lt;br /&gt;
	)&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
p.makeToolbar = makeToolbar&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Argument processing&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function makeInvokeFunc(funcName)&lt;br /&gt;
	return function (frame)&lt;br /&gt;
		local args = getArgs(frame, {&lt;br /&gt;
			valueFunc = function (key, value)&lt;br /&gt;
				if type(value) == &#039;string&#039; then&lt;br /&gt;
					value = value:match(&#039;^%s*(.-)%s*$&#039;) -- Remove whitespace.&lt;br /&gt;
					if key == &#039;heading&#039; or value ~= &#039;&#039; then&lt;br /&gt;
						return value&lt;br /&gt;
					else&lt;br /&gt;
						return nil&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					return value&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		})&lt;br /&gt;
		return p[funcName](args)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Entry points&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.nonexistent(frame)&lt;br /&gt;
	if mw.title.getCurrentTitle().subpageText == &#039;testcases&#039; then&lt;br /&gt;
		return frame:expandTemplate{title = &#039;module test cases notice&#039;}&lt;br /&gt;
	else&lt;br /&gt;
		return p.main(frame)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.main = makeInvokeFunc(&#039;_main&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- This function defines logic flow for the module.&lt;br /&gt;
	-- @args - table of arguments passed by the user&lt;br /&gt;
	--]]&lt;br /&gt;
	local env = p.getEnvironment(args)&lt;br /&gt;
	local root = mw.html.create()&lt;br /&gt;
	root&lt;br /&gt;
		:wikitext(p._getModuleWikitext(args, env))&lt;br /&gt;
		:wikitext(p.protectionTemplate(env))&lt;br /&gt;
		:wikitext(p.sandboxNotice(args, env))&lt;br /&gt;
		:tag(&#039;div&#039;)&lt;br /&gt;
			-- &#039;documentation-container&#039;&lt;br /&gt;
			:addClass(message(&#039;container&#039;))&lt;br /&gt;
			:attr(&#039;role&#039;, &#039;complementary&#039;)&lt;br /&gt;
			:attr(&#039;aria-labelledby&#039;, args.heading ~= &#039;&#039; and &#039;documentation-heading&#039; or nil)&lt;br /&gt;
			:attr(&#039;aria-label&#039;, args.heading == &#039;&#039; and &#039;Documentation&#039; or nil)&lt;br /&gt;
			:newline()&lt;br /&gt;
			:tag(&#039;div&#039;)&lt;br /&gt;
				-- &#039;documentation&#039;&lt;br /&gt;
				:addClass(message(&#039;main-div-classes&#039;))&lt;br /&gt;
				:newline()&lt;br /&gt;
				:wikitext(p._startBox(args, env))&lt;br /&gt;
				:wikitext(p._content(args, env))&lt;br /&gt;
				:tag(&#039;div&#039;)&lt;br /&gt;
					-- &#039;documentation-clear&#039;&lt;br /&gt;
					:addClass(message(&#039;clear&#039;))&lt;br /&gt;
					:done()&lt;br /&gt;
				:newline()&lt;br /&gt;
				:done()&lt;br /&gt;
			:wikitext(p._endBox(args, env))&lt;br /&gt;
			:done()&lt;br /&gt;
		:wikitext(p.addTrackingCategories(env))&lt;br /&gt;
	-- &#039;Module:Documentation/styles.css&#039;&lt;br /&gt;
	return mw.getCurrentFrame():extensionTag (&lt;br /&gt;
		&#039;templatestyles&#039;, &#039;&#039;, {src=cfg[&#039;templatestyles&#039;]&lt;br /&gt;
	}) .. tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Environment settings&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.getEnvironment(args)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Returns a table with information about the environment, including title&lt;br /&gt;
	-- objects and other namespace- or path-related data.&lt;br /&gt;
	-- @args - table of arguments passed by the user&lt;br /&gt;
	--&lt;br /&gt;
	-- Title objects include:&lt;br /&gt;
	-- env.title - the page we are making documentation for (usually the current title)&lt;br /&gt;
	-- env.templateTitle - the template (or module, file, etc.)&lt;br /&gt;
	-- env.docTitle - the /doc subpage.&lt;br /&gt;
	-- env.sandboxTitle - the /sandbox subpage.&lt;br /&gt;
	-- env.testcasesTitle - the /testcases subpage.&lt;br /&gt;
	--&lt;br /&gt;
	-- Data includes:&lt;br /&gt;
	-- env.protectionLevels - the protection levels table of the title object.&lt;br /&gt;
	-- env.subjectSpace - the number of the title&#039;s subject namespace.&lt;br /&gt;
	-- env.docSpace - the number of the namespace the title puts its documentation in.&lt;br /&gt;
	-- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace.&lt;br /&gt;
	-- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template.&lt;br /&gt;
	-- &lt;br /&gt;
	-- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value&lt;br /&gt;
	-- returned will be nil.&lt;br /&gt;
	--]]&lt;br /&gt;
	&lt;br /&gt;
	local env, envFuncs = {}, {}&lt;br /&gt;
&lt;br /&gt;
	-- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value&lt;br /&gt;
	-- returned by that function is memoized in the env table so that we don&#039;t call any of the functions&lt;br /&gt;
	-- more than once. (Nils won&#039;t be memoized.)&lt;br /&gt;
	setmetatable(env, {&lt;br /&gt;
		__index = function (t, key)&lt;br /&gt;
			local envFunc = envFuncs[key]&lt;br /&gt;
			if envFunc then&lt;br /&gt;
				local success, val = pcall(envFunc)&lt;br /&gt;
				if success then&lt;br /&gt;
					env[key] = val -- Memoise the value.&lt;br /&gt;
					return val&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
	})	&lt;br /&gt;
&lt;br /&gt;
	function envFuncs.title()&lt;br /&gt;
		-- The title object for the current page, or a test page passed with args.page.&lt;br /&gt;
		local title&lt;br /&gt;
		local titleArg = args.page&lt;br /&gt;
		if titleArg then&lt;br /&gt;
			title = mw.title.new(titleArg)&lt;br /&gt;
		else&lt;br /&gt;
			title = mw.title.getCurrentTitle()&lt;br /&gt;
		end&lt;br /&gt;
		return title&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	function envFuncs.templateTitle()&lt;br /&gt;
		--[[&lt;br /&gt;
		-- The template (or module, etc.) title object.&lt;br /&gt;
		-- Messages:&lt;br /&gt;
		-- &#039;sandbox-subpage&#039; --&amp;gt; &#039;sandbox&#039;&lt;br /&gt;
		-- &#039;testcases-subpage&#039; --&amp;gt; &#039;testcases&#039;&lt;br /&gt;
		--]]&lt;br /&gt;
		local subjectSpace = env.subjectSpace&lt;br /&gt;
		local title = env.title&lt;br /&gt;
		local subpage = title.subpageText&lt;br /&gt;
		if subpage == message(&#039;sandbox-subpage&#039;) or subpage == message(&#039;testcases-subpage&#039;) or (subpage == message(&#039;doc-subpage&#039;) and mw.title.getCurrentTitle().namespace == env.docSpace) then&lt;br /&gt;
			return mw.title.makeTitle(subjectSpace, title.baseText)&lt;br /&gt;
		else&lt;br /&gt;
			return mw.title.makeTitle(subjectSpace, title.text)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	function envFuncs.docTitle()&lt;br /&gt;
		--[[&lt;br /&gt;
		-- Title object of the /doc subpage.&lt;br /&gt;
		-- Messages:&lt;br /&gt;
		-- &#039;doc-subpage&#039; --&amp;gt; &#039;doc&#039;&lt;br /&gt;
		--]]&lt;br /&gt;
		local title = env.title&lt;br /&gt;
		local docname = args[1] -- User-specified doc page.&lt;br /&gt;
		local docpage&lt;br /&gt;
		if docname then&lt;br /&gt;
			docpage = docname&lt;br /&gt;
		else&lt;br /&gt;
			docpage = env.docpageBase .. &#039;/&#039; .. message(&#039;doc-subpage&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		return mw.title.new(docpage)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	function envFuncs.sandboxTitle()&lt;br /&gt;
		--[[&lt;br /&gt;
		-- Title object for the /sandbox subpage.&lt;br /&gt;
		-- Messages:&lt;br /&gt;
		-- &#039;sandbox-subpage&#039; --&amp;gt; &#039;sandbox&#039;&lt;br /&gt;
		--]]&lt;br /&gt;
		return mw.title.new(env.docpageBase .. &#039;/&#039; .. message(&#039;sandbox-subpage&#039;))&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	function envFuncs.testcasesTitle()&lt;br /&gt;
		--[[&lt;br /&gt;
		-- Title object for the /testcases subpage.&lt;br /&gt;
		-- Messages:&lt;br /&gt;
		-- &#039;testcases-subpage&#039; --&amp;gt; &#039;testcases&#039;&lt;br /&gt;
		--]]&lt;br /&gt;
		return mw.title.new(env.docpageBase .. &#039;/&#039; .. message(&#039;testcases-subpage&#039;))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	function envFuncs.protectionLevels()&lt;br /&gt;
		-- The protection levels table of the title object.&lt;br /&gt;
		return env.title.protectionLevels&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	function envFuncs.subjectSpace()&lt;br /&gt;
		-- The subject namespace number.&lt;br /&gt;
		return mw.site.namespaces[env.title.namespace].subject.id&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	function envFuncs.docSpace()&lt;br /&gt;
		-- The documentation namespace number. For most namespaces this is the&lt;br /&gt;
		-- same as the subject namespace. However, pages in the Article, File,&lt;br /&gt;
		-- MediaWiki or Category namespaces must have their /doc, /sandbox and&lt;br /&gt;
		-- /testcases pages in talk space.&lt;br /&gt;
		local subjectSpace = env.subjectSpace&lt;br /&gt;
		if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then&lt;br /&gt;
			return subjectSpace + 1&lt;br /&gt;
		else&lt;br /&gt;
			return subjectSpace&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	function envFuncs.docpageBase()&lt;br /&gt;
		-- The base page of the /doc, /sandbox, and /testcases subpages.&lt;br /&gt;
		-- For some namespaces this is the talk page, rather than the template page.&lt;br /&gt;
		local templateTitle = env.templateTitle&lt;br /&gt;
		local docSpace = env.docSpace&lt;br /&gt;
		local docSpaceText = mw.site.namespaces[docSpace].name&lt;br /&gt;
		-- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon.&lt;br /&gt;
		return docSpaceText .. &#039;:&#039; .. templateTitle.text&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	function envFuncs.compareUrl()&lt;br /&gt;
		-- Diff link between the sandbox and the main template using [[Special:ComparePages]].&lt;br /&gt;
		local templateTitle = env.templateTitle&lt;br /&gt;
		local sandboxTitle = env.sandboxTitle&lt;br /&gt;
		if templateTitle.exists and sandboxTitle.exists then&lt;br /&gt;
			local compareUrl = mw.uri.canonicalUrl(&lt;br /&gt;
				&#039;Special:ComparePages&#039;,&lt;br /&gt;
				{ page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText}&lt;br /&gt;
			)&lt;br /&gt;
			return tostring(compareUrl)&lt;br /&gt;
		else&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
	end		&lt;br /&gt;
&lt;br /&gt;
	return env&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Auxiliary templates&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
p.getModuleWikitext = makeInvokeFunc(&#039;_getModuleWikitext&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._getModuleWikitext(args, env)&lt;br /&gt;
	local currentTitle = mw.title.getCurrentTitle()&lt;br /&gt;
	if currentTitle.contentModel ~= &#039;Scribunto&#039; then return end&lt;br /&gt;
	pcall(require, currentTitle.prefixedText) -- if it fails, we don&#039;t care&lt;br /&gt;
	local moduleWikitext =  package.loaded[&amp;quot;Module:Module wikitext&amp;quot;]&lt;br /&gt;
	if moduleWikitext then&lt;br /&gt;
		return moduleWikitext.main()&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.sandboxNotice(args, env)&lt;br /&gt;
	--[=[&lt;br /&gt;
	-- Generates a sandbox notice for display above sandbox pages.&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- &lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;sandbox-notice-image&#039; --&amp;gt; &#039;[[File:Sandbox.svg|50px|alt=|link=]]&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-blurb&#039; --&amp;gt; &#039;This is the $1 for $2.&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-diff-blurb&#039; --&amp;gt; &#039;This is the $1 for $2 ($3).&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-pagetype-template&#039; --&amp;gt; &#039;[[Wikipedia:Template test cases|template sandbox]] page&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-pagetype-module&#039; --&amp;gt; &#039;[[Wikipedia:Template test cases|module sandbox]] page&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-pagetype-other&#039; --&amp;gt; &#039;sandbox page&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-compare-link-display&#039; --&amp;gt; &#039;diff&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-testcases-blurb&#039; --&amp;gt; &#039;See also the companion subpage for $1.&#039;&lt;br /&gt;
	-- &#039;sandbox-notice-testcases-link-display&#039; --&amp;gt; &#039;test cases&#039;&lt;br /&gt;
	-- &#039;sandbox-category&#039; --&amp;gt; &#039;Template sandboxes&#039;&lt;br /&gt;
	-- &#039;module-sandbox-category&#039; --&amp;gt; &#039;Module sandboxes&#039;&lt;br /&gt;
	-- &#039;other-sandbox-category&#039; --&amp;gt; &#039;Sandboxes outside of template or module namespace&#039;&lt;br /&gt;
	--]=]&lt;br /&gt;
	local title = env.title&lt;br /&gt;
	local sandboxTitle = env.sandboxTitle&lt;br /&gt;
	local templateTitle = env.templateTitle&lt;br /&gt;
	local subjectSpace = env.subjectSpace&lt;br /&gt;
	if not (subjectSpace and title and sandboxTitle and templateTitle&lt;br /&gt;
		and mw.title.equals(title, sandboxTitle)) then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	-- Build the table of arguments to pass to {{ombox}}. We need just two fields, &amp;quot;image&amp;quot; and &amp;quot;text&amp;quot;.&lt;br /&gt;
	local omargs = {}&lt;br /&gt;
	omargs.image = message(&#039;sandbox-notice-image&#039;)&lt;br /&gt;
	-- Get the text. We start with the opening blurb, which is something like&lt;br /&gt;
	-- &amp;quot;This is the template sandbox for [[Template:Foo]] (diff).&amp;quot;&lt;br /&gt;
	local text = &#039;__EXPECTUNUSEDTEMPLATE__&#039;&lt;br /&gt;
	local pagetype, sandboxCat&lt;br /&gt;
	if subjectSpace == 10 then&lt;br /&gt;
		pagetype = message(&#039;sandbox-notice-pagetype-template&#039;)&lt;br /&gt;
		sandboxCat = message(&#039;sandbox-category&#039;)&lt;br /&gt;
	elseif subjectSpace == 828 then&lt;br /&gt;
		pagetype = message(&#039;sandbox-notice-pagetype-module&#039;)&lt;br /&gt;
		sandboxCat = message(&#039;module-sandbox-category&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		pagetype = message(&#039;sandbox-notice-pagetype-other&#039;)&lt;br /&gt;
		sandboxCat = message(&#039;other-sandbox-category&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	local templateLink = makeWikilink(templateTitle.prefixedText)&lt;br /&gt;
	local compareUrl = env.compareUrl&lt;br /&gt;
	if compareUrl then&lt;br /&gt;
		local compareDisplay = message(&#039;sandbox-notice-compare-link-display&#039;)&lt;br /&gt;
		local compareLink = makeUrlLink(compareUrl, compareDisplay)&lt;br /&gt;
		text = text .. message(&#039;sandbox-notice-diff-blurb&#039;, {pagetype, templateLink, compareLink})&lt;br /&gt;
	else&lt;br /&gt;
		text = text .. message(&#039;sandbox-notice-blurb&#039;, {pagetype, templateLink})&lt;br /&gt;
	end&lt;br /&gt;
	-- Get the test cases page blurb if the page exists. This is something like&lt;br /&gt;
	-- &amp;quot;See also the companion subpage for [[Template:Foo/testcases|test cases]].&amp;quot;&lt;br /&gt;
	local testcasesTitle = env.testcasesTitle&lt;br /&gt;
	if testcasesTitle and testcasesTitle.exists then&lt;br /&gt;
		if testcasesTitle.contentModel == &amp;quot;Scribunto&amp;quot; then&lt;br /&gt;
			local testcasesLinkDisplay = message(&#039;sandbox-notice-testcases-link-display&#039;)&lt;br /&gt;
			local testcasesRunLinkDisplay = message(&#039;sandbox-notice-testcases-run-link-display&#039;)&lt;br /&gt;
			local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)&lt;br /&gt;
			local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)&lt;br /&gt;
			text = text .. &#039;&amp;lt;br /&amp;gt;&#039; .. message(&#039;sandbox-notice-testcases-run-blurb&#039;, {testcasesLink, testcasesRunLink})&lt;br /&gt;
		else&lt;br /&gt;
			local testcasesLinkDisplay = message(&#039;sandbox-notice-testcases-link-display&#039;)&lt;br /&gt;
			local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)&lt;br /&gt;
			text = text .. &#039;&amp;lt;br /&amp;gt;&#039; .. message(&#039;sandbox-notice-testcases-blurb&#039;, {testcasesLink})&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Add the sandbox to the sandbox category.&lt;br /&gt;
	omargs.text = text .. makeCategoryLink(sandboxCat)&lt;br /&gt;
&lt;br /&gt;
	-- &#039;documentation-clear&#039;&lt;br /&gt;
	return &#039;&amp;lt;div class=&amp;quot;&#039; .. message(&#039;clear&#039;) .. &#039;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#039;&lt;br /&gt;
		.. require(&#039;Module:Message box&#039;).main(&#039;ombox&#039;, omargs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.protectionTemplate(env)&lt;br /&gt;
	-- Generates the padlock icon in the top right.&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;protection-template&#039; --&amp;gt; &#039;pp-template&#039;&lt;br /&gt;
	-- &#039;protection-template-args&#039; --&amp;gt; {docusage = &#039;yes&#039;}&lt;br /&gt;
	local protectionLevels = env.protectionLevels&lt;br /&gt;
	if not protectionLevels then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local editProt = protectionLevels.edit and protectionLevels.edit[1]&lt;br /&gt;
	local moveProt = protectionLevels.move and protectionLevels.move[1]&lt;br /&gt;
	if editProt then&lt;br /&gt;
		-- The page is edit-protected.&lt;br /&gt;
		return require(&#039;Module:Protection banner&#039;)._main{&lt;br /&gt;
			message(&#039;protection-reason-edit&#039;), small = true&lt;br /&gt;
		}&lt;br /&gt;
	elseif moveProt and moveProt ~= &#039;autoconfirmed&#039; then&lt;br /&gt;
		-- The page is move-protected but not edit-protected. Exclude move&lt;br /&gt;
		-- protection with the level &amp;quot;autoconfirmed&amp;quot;, as this is equivalent to&lt;br /&gt;
		-- no move protection at all.&lt;br /&gt;
		return require(&#039;Module:Protection banner&#039;)._main{&lt;br /&gt;
			action = &#039;move&#039;, small = true&lt;br /&gt;
		}&lt;br /&gt;
	else&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Start box&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
p.startBox = makeInvokeFunc(&#039;_startBox&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._startBox(args, env)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- This function generates the start box.&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- &lt;br /&gt;
	-- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make&lt;br /&gt;
	-- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox&lt;br /&gt;
	-- which generate the box HTML.&lt;br /&gt;
	--]]&lt;br /&gt;
	env = env or p.getEnvironment(args)&lt;br /&gt;
	local links&lt;br /&gt;
	local content = args.content&lt;br /&gt;
	if not content or args[1] then&lt;br /&gt;
		-- No need to include the links if the documentation is on the template page itself.&lt;br /&gt;
		local linksData = p.makeStartBoxLinksData(args, env)&lt;br /&gt;
		if linksData then&lt;br /&gt;
			links = p.renderStartBoxLinks(linksData)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- Generate the start box html.&lt;br /&gt;
	local data = p.makeStartBoxData(args, env, links)&lt;br /&gt;
	if data then&lt;br /&gt;
		return p.renderStartBox(data)&lt;br /&gt;
	else&lt;br /&gt;
		-- User specified no heading.&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeStartBoxLinksData(args, env)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Does initial processing of data to make the [view] [edit] [history] [purge] links.&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- &lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;view-link-display&#039; --&amp;gt; &#039;view&#039;&lt;br /&gt;
	-- &#039;edit-link-display&#039; --&amp;gt; &#039;edit&#039;&lt;br /&gt;
	-- &#039;history-link-display&#039; --&amp;gt; &#039;history&#039;&lt;br /&gt;
	-- &#039;purge-link-display&#039; --&amp;gt; &#039;purge&#039;&lt;br /&gt;
	-- &#039;module-preload&#039; --&amp;gt; &#039;Template:Documentation/preload-module-doc&#039;&lt;br /&gt;
	-- &#039;docpage-preload&#039; --&amp;gt; &#039;Template:Documentation/preload&#039;&lt;br /&gt;
	-- &#039;create-link-display&#039; --&amp;gt; &#039;create&#039;&lt;br /&gt;
	--]]&lt;br /&gt;
	local subjectSpace = env.subjectSpace&lt;br /&gt;
	local title = env.title&lt;br /&gt;
	local docTitle = env.docTitle&lt;br /&gt;
	if not title or not docTitle then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if docTitle.isRedirect then &lt;br /&gt;
		docTitle = docTitle.redirectTarget&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Create link if /doc doesn&#039;t exist.&lt;br /&gt;
	local preload = args.preload&lt;br /&gt;
	if not preload then&lt;br /&gt;
		if subjectSpace == 828 then -- Module namespace&lt;br /&gt;
			preload = message(&#039;module-preload&#039;)&lt;br /&gt;
		else&lt;br /&gt;
			preload = message(&#039;docpage-preload&#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return {&lt;br /&gt;
		title = title,&lt;br /&gt;
		docTitle = docTitle,&lt;br /&gt;
		-- View, display, edit, and purge links if /doc exists.&lt;br /&gt;
		viewLinkDisplay = message(&#039;view-link-display&#039;),&lt;br /&gt;
		editLinkDisplay = message(&#039;edit-link-display&#039;),&lt;br /&gt;
		historyLinkDisplay = message(&#039;history-link-display&#039;),&lt;br /&gt;
		purgeLinkDisplay = message(&#039;purge-link-display&#039;),&lt;br /&gt;
		preload = preload,&lt;br /&gt;
		createLinkDisplay = message(&#039;create-link-display&#039;)&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.renderStartBoxLinks(data)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Generates the [view][edit][history][purge] or [create][purge] links from the data table.&lt;br /&gt;
	-- @data - a table of data generated by p.makeStartBoxLinksData&lt;br /&gt;
	--]]&lt;br /&gt;
	local docTitle = data.docTitle&lt;br /&gt;
	-- yes, we do intend to purge the template page on which the documentation appears&lt;br /&gt;
	local purgeLink = makeWikilink(&amp;quot;Special:Purge/&amp;quot; .. data.title.prefixedText, data.purgeLinkDisplay)&lt;br /&gt;
	&lt;br /&gt;
	if docTitle.exists then&lt;br /&gt;
		local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay)&lt;br /&gt;
		local editLink = makeWikilink(&amp;quot;Special:EditPage/&amp;quot; .. docTitle.prefixedText, data.editLinkDisplay)&lt;br /&gt;
		local historyLink = makeWikilink(&amp;quot;Special:PageHistory/&amp;quot; .. docTitle.prefixedText, data.historyLinkDisplay)&lt;br /&gt;
		return &amp;quot;&amp;amp;#91;&amp;quot; .. viewLink .. &amp;quot;&amp;amp;#93; &amp;amp;#91;&amp;quot; .. editLink .. &amp;quot;&amp;amp;#93; &amp;amp;#91;&amp;quot; .. historyLink .. &amp;quot;&amp;amp;#93; &amp;amp;#91;&amp;quot; .. purgeLink .. &amp;quot;&amp;amp;#93;&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		local createLink = makeUrlLink(docTitle:canonicalUrl{action = &#039;edit&#039;, preload = data.preload}, data.createLinkDisplay)&lt;br /&gt;
		return  &amp;quot;&amp;amp;#91;&amp;quot; .. createLink .. &amp;quot;&amp;amp;#93; &amp;amp;#91;&amp;quot; .. purgeLink .. &amp;quot;&amp;amp;#93;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeStartBoxData(args, env, links)&lt;br /&gt;
	--[=[&lt;br /&gt;
	-- Does initial processing of data to pass to the start-box render function, p.renderStartBox.&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- @links - a string containing the [view][edit][history][purge] links - could be nil if there&#039;s an error.&lt;br /&gt;
	--&lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;documentation-icon-wikitext&#039; --&amp;gt; &#039;[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]&#039;&lt;br /&gt;
	-- &#039;template-namespace-heading&#039; --&amp;gt; &#039;Template documentation&#039;&lt;br /&gt;
	-- &#039;module-namespace-heading&#039; --&amp;gt; &#039;Module documentation&#039;&lt;br /&gt;
	-- &#039;file-namespace-heading&#039; --&amp;gt; &#039;Summary&#039;&lt;br /&gt;
	-- &#039;other-namespaces-heading&#039; --&amp;gt; &#039;Documentation&#039;&lt;br /&gt;
	-- &#039;testcases-create-link-display&#039; --&amp;gt; &#039;create&#039;&lt;br /&gt;
	--]=]&lt;br /&gt;
	local subjectSpace = env.subjectSpace&lt;br /&gt;
	if not subjectSpace then&lt;br /&gt;
		-- Default to an &amp;quot;other namespaces&amp;quot; namespace, so that we get at least some output&lt;br /&gt;
		-- if an error occurs.&lt;br /&gt;
		subjectSpace = 2&lt;br /&gt;
	end&lt;br /&gt;
	local data = {}&lt;br /&gt;
	&lt;br /&gt;
	-- Heading&lt;br /&gt;
	local heading = args.heading -- Blank values are not removed.&lt;br /&gt;
	if heading == &#039;&#039; then&lt;br /&gt;
		-- Don&#039;t display the start box if the heading arg is defined but blank.&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if heading then&lt;br /&gt;
		data.heading = heading&lt;br /&gt;
	elseif subjectSpace == 10 then -- Template namespace&lt;br /&gt;
		data.heading = message(&#039;documentation-icon-wikitext&#039;) .. &#039; &#039; .. message(&#039;template-namespace-heading&#039;)&lt;br /&gt;
	elseif subjectSpace == 828 then -- Module namespace&lt;br /&gt;
		data.heading = message(&#039;documentation-icon-wikitext&#039;) .. &#039; &#039; .. message(&#039;module-namespace-heading&#039;)&lt;br /&gt;
	elseif subjectSpace == 6 then -- File namespace&lt;br /&gt;
		data.heading = message(&#039;file-namespace-heading&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		data.heading = message(&#039;other-namespaces-heading&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Heading CSS&lt;br /&gt;
	local headingStyle = args[&#039;heading-style&#039;]&lt;br /&gt;
	if headingStyle then&lt;br /&gt;
		data.headingStyleText = headingStyle&lt;br /&gt;
	else&lt;br /&gt;
		-- &#039;documentation-heading&#039;&lt;br /&gt;
		data.headingClass = message(&#039;main-div-heading-class&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Data for the [view][edit][history][purge] or [create] links.&lt;br /&gt;
	if links then&lt;br /&gt;
		-- &#039;mw-editsection-like plainlinks&#039;&lt;br /&gt;
		data.linksClass = message(&#039;start-box-link-classes&#039;)&lt;br /&gt;
		data.links = links&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return data&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.renderStartBox(data)&lt;br /&gt;
	-- Renders the start box html.&lt;br /&gt;
	-- @data - a table of data generated by p.makeStartBoxData.&lt;br /&gt;
	local sbox = mw.html.create(&#039;div&#039;)&lt;br /&gt;
	sbox&lt;br /&gt;
		-- &#039;documentation-startbox&#039;&lt;br /&gt;
		:addClass(message(&#039;start-box-class&#039;))&lt;br /&gt;
		:newline()&lt;br /&gt;
		:tag(&#039;span&#039;)&lt;br /&gt;
			:addClass(data.headingClass)&lt;br /&gt;
			:attr(&#039;id&#039;, &#039;documentation-heading&#039;)&lt;br /&gt;
			:cssText(data.headingStyleText)&lt;br /&gt;
			:wikitext(data.heading)&lt;br /&gt;
	local links = data.links&lt;br /&gt;
	if links then&lt;br /&gt;
		sbox:tag(&#039;span&#039;)&lt;br /&gt;
			:addClass(data.linksClass)&lt;br /&gt;
			:attr(&#039;id&#039;, data.linksId)&lt;br /&gt;
			:wikitext(links)&lt;br /&gt;
	end&lt;br /&gt;
	return tostring(sbox)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Documentation content&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
p.content = makeInvokeFunc(&#039;_content&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._content(args, env)&lt;br /&gt;
	-- Displays the documentation contents&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	env = env or p.getEnvironment(args)&lt;br /&gt;
	local docTitle = env.docTitle&lt;br /&gt;
	local content = args.content&lt;br /&gt;
	if not content and docTitle and docTitle.exists then&lt;br /&gt;
		content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText}&lt;br /&gt;
	end&lt;br /&gt;
	-- The line breaks below are necessary so that &amp;quot;=== Headings ===&amp;quot; at the start and end&lt;br /&gt;
	-- of docs are interpreted correctly.&lt;br /&gt;
	return &#039;\n&#039; .. (content or &#039;&#039;) .. &#039;\n&#039; &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.contentTitle = makeInvokeFunc(&#039;_contentTitle&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._contentTitle(args, env)&lt;br /&gt;
	env = env or p.getEnvironment(args)&lt;br /&gt;
	local docTitle = env.docTitle&lt;br /&gt;
	if not args.content and docTitle and docTitle.exists then&lt;br /&gt;
		return docTitle.prefixedText&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- End box&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
p.endBox = makeInvokeFunc(&#039;_endBox&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._endBox(args, env)&lt;br /&gt;
	--[=[&lt;br /&gt;
	-- This function generates the end box (also known as the link box).&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- &lt;br /&gt;
	--]=]&lt;br /&gt;
	&lt;br /&gt;
	-- Get environment data.&lt;br /&gt;
	env = env or p.getEnvironment(args)&lt;br /&gt;
	local subjectSpace = env.subjectSpace&lt;br /&gt;
	local docTitle = env.docTitle&lt;br /&gt;
	if not subjectSpace or not docTitle then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
		&lt;br /&gt;
	-- Check whether we should output the end box at all. Add the end&lt;br /&gt;
	-- box by default if the documentation exists or if we are in the&lt;br /&gt;
	-- user, module or template namespaces.&lt;br /&gt;
	local linkBox = args[&#039;link box&#039;]&lt;br /&gt;
	if linkBox == &#039;off&#039;&lt;br /&gt;
		or not (&lt;br /&gt;
			docTitle.exists&lt;br /&gt;
			or subjectSpace == 2&lt;br /&gt;
			or subjectSpace == 828&lt;br /&gt;
			or subjectSpace == 10&lt;br /&gt;
		)&lt;br /&gt;
	then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Assemble the link box.&lt;br /&gt;
	local text = &#039;&#039;&lt;br /&gt;
	if linkBox then&lt;br /&gt;
		text = text .. linkBox&lt;br /&gt;
	else&lt;br /&gt;
		text = text .. (p.makeDocPageBlurb(args, env) or &#039;&#039;) -- &amp;quot;This documentation is transcluded from [[Foo]].&amp;quot; &lt;br /&gt;
		if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then&lt;br /&gt;
			-- We are in the user, template or module namespaces.&lt;br /&gt;
			-- Add sandbox and testcases links.&lt;br /&gt;
			-- &amp;quot;Editors can experiment in this template&#039;s sandbox and testcases pages.&amp;quot;&lt;br /&gt;
			text = text .. (p.makeExperimentBlurb(args, env) or &#039;&#039;) .. &#039;&amp;lt;br /&amp;gt;&#039;&lt;br /&gt;
			if not args.content and not args[1] then&lt;br /&gt;
				-- &amp;quot;Please add categories to the /doc subpage.&amp;quot;&lt;br /&gt;
				-- Don&#039;t show this message with inline docs or with an explicitly specified doc page,&lt;br /&gt;
				-- as then it is unclear where to add the categories.&lt;br /&gt;
				text = text .. (p.makeCategoriesBlurb(args, env) or &#039;&#039;)&lt;br /&gt;
			end&lt;br /&gt;
			text = text .. &#039; &#039; .. (p.makeSubpagesBlurb(args, env) or &#039;&#039;) --&amp;quot;Subpages of this template&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local box = mw.html.create(&#039;div&#039;)&lt;br /&gt;
	-- &#039;documentation-metadata&#039;&lt;br /&gt;
	box:attr(&#039;role&#039;, &#039;note&#039;)&lt;br /&gt;
		:addClass(message(&#039;end-box-class&#039;))&lt;br /&gt;
		-- &#039;plainlinks&#039;&lt;br /&gt;
		:addClass(message(&#039;end-box-plainlinks&#039;))&lt;br /&gt;
		:wikitext(text)&lt;br /&gt;
		:done()&lt;br /&gt;
&lt;br /&gt;
	return &#039;\n&#039; .. tostring(box)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeDocPageBlurb(args, env)&lt;br /&gt;
	--[=[&lt;br /&gt;
	-- Makes the blurb &amp;quot;This documentation is transcluded from [[Template:Foo]] (edit, history)&amp;quot;.&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- &lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;edit-link-display&#039; --&amp;gt; &#039;edit&#039;&lt;br /&gt;
	-- &#039;history-link-display&#039; --&amp;gt; &#039;history&#039;&lt;br /&gt;
	-- &#039;transcluded-from-blurb&#039; --&amp;gt; &lt;br /&gt;
	-- &#039;The above [[Wikipedia:Template documentation|documentation]] &lt;br /&gt;
	-- is [[Help:Transclusion|transcluded]] from $1.&#039;&lt;br /&gt;
	-- &#039;module-preload&#039; --&amp;gt; &#039;Template:Documentation/preload-module-doc&#039;&lt;br /&gt;
	-- &#039;create-link-display&#039; --&amp;gt; &#039;create&#039;&lt;br /&gt;
	-- &#039;create-module-doc-blurb&#039; --&amp;gt;&lt;br /&gt;
	-- &#039;You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].&#039;&lt;br /&gt;
	--]=]&lt;br /&gt;
	local docTitle = env.docTitle&lt;br /&gt;
	if not docTitle then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if docTitle.exists then&lt;br /&gt;
		-- /doc exists; link to it.&lt;br /&gt;
		local docLink = makeWikilink(docTitle.prefixedText)&lt;br /&gt;
		local editDisplay = message(&#039;edit-link-display&#039;)&lt;br /&gt;
		local editLink = makeWikilink(&amp;quot;Special:EditPage/&amp;quot; .. docTitle.prefixedText, editDisplay)&lt;br /&gt;
		local historyDisplay = message(&#039;history-link-display&#039;)&lt;br /&gt;
		local historyLink = makeWikilink(&amp;quot;Special:PageHistory/&amp;quot; .. docTitle.prefixedText, historyDisplay)&lt;br /&gt;
		return message(&#039;transcluded-from-blurb&#039;, {docLink})&lt;br /&gt;
			.. &#039; &#039;&lt;br /&gt;
			.. makeToolbar(editLink, historyLink)&lt;br /&gt;
			.. &#039;&amp;lt;br /&amp;gt;&#039;&lt;br /&gt;
	elseif env.subjectSpace == 828 then&lt;br /&gt;
		-- /doc does not exist; ask to create it.&lt;br /&gt;
		local createUrl = docTitle:canonicalUrl{action = &#039;edit&#039;, preload = message(&#039;module-preload&#039;)}&lt;br /&gt;
		local createDisplay = message(&#039;create-link-display&#039;)&lt;br /&gt;
		local createLink = makeUrlLink(createUrl, createDisplay)&lt;br /&gt;
		return message(&#039;create-module-doc-blurb&#039;, {createLink})&lt;br /&gt;
			.. &#039;&amp;lt;br /&amp;gt;&#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeExperimentBlurb(args, env)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Renders the text &amp;quot;Editors can experiment in this template&#039;s sandbox (edit | diff) and testcases (edit) pages.&amp;quot;&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- &lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;sandbox-link-display&#039; --&amp;gt; &#039;sandbox&#039;&lt;br /&gt;
	-- &#039;sandbox-edit-link-display&#039; --&amp;gt; &#039;edit&#039;&lt;br /&gt;
	-- &#039;compare-link-display&#039; --&amp;gt; &#039;diff&#039;&lt;br /&gt;
	-- &#039;module-sandbox-preload&#039; --&amp;gt; &#039;Template:Documentation/preload-module-sandbox&#039;&lt;br /&gt;
	-- &#039;template-sandbox-preload&#039; --&amp;gt; &#039;Template:Documentation/preload-sandbox&#039;&lt;br /&gt;
	-- &#039;sandbox-create-link-display&#039; --&amp;gt; &#039;create&#039;&lt;br /&gt;
	-- &#039;mirror-edit-summary&#039; --&amp;gt; &#039;Create sandbox version of $1&#039;&lt;br /&gt;
	-- &#039;mirror-link-display&#039; --&amp;gt; &#039;mirror&#039;&lt;br /&gt;
	-- &#039;mirror-link-preload&#039; --&amp;gt; &#039;Template:Documentation/mirror&#039;&lt;br /&gt;
	-- &#039;sandbox-link-display&#039; --&amp;gt; &#039;sandbox&#039;&lt;br /&gt;
	-- &#039;testcases-link-display&#039; --&amp;gt; &#039;testcases&#039;&lt;br /&gt;
	-- &#039;testcases-edit-link-display&#039;--&amp;gt; &#039;edit&#039;&lt;br /&gt;
	-- &#039;template-sandbox-preload&#039; --&amp;gt; &#039;Template:Documentation/preload-sandbox&#039;&lt;br /&gt;
	-- &#039;testcases-create-link-display&#039; --&amp;gt; &#039;create&#039;&lt;br /&gt;
	-- &#039;testcases-link-display&#039; --&amp;gt; &#039;testcases&#039;&lt;br /&gt;
	-- &#039;testcases-edit-link-display&#039; --&amp;gt; &#039;edit&#039;&lt;br /&gt;
	-- &#039;module-testcases-preload&#039; --&amp;gt; &#039;Template:Documentation/preload-module-testcases&#039;&lt;br /&gt;
	-- &#039;template-testcases-preload&#039; --&amp;gt; &#039;Template:Documentation/preload-testcases&#039;&lt;br /&gt;
	-- &#039;experiment-blurb-module&#039; --&amp;gt; &#039;Editors can experiment in this module&#039;s $1 and $2 pages.&#039;&lt;br /&gt;
	-- &#039;experiment-blurb-template&#039; --&amp;gt; &#039;Editors can experiment in this template&#039;s $1 and $2 pages.&#039;&lt;br /&gt;
	--]]&lt;br /&gt;
	local subjectSpace = env.subjectSpace&lt;br /&gt;
	local templateTitle = env.templateTitle&lt;br /&gt;
	local sandboxTitle = env.sandboxTitle&lt;br /&gt;
	local testcasesTitle = env.testcasesTitle&lt;br /&gt;
	local templatePage = templateTitle.prefixedText&lt;br /&gt;
	if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	-- Make links.&lt;br /&gt;
	local sandboxLinks, testcasesLinks&lt;br /&gt;
	if sandboxTitle.exists then&lt;br /&gt;
		local sandboxPage = sandboxTitle.prefixedText&lt;br /&gt;
		local sandboxDisplay = message(&#039;sandbox-link-display&#039;)&lt;br /&gt;
		local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay)&lt;br /&gt;
		local sandboxEditDisplay = message(&#039;sandbox-edit-link-display&#039;)&lt;br /&gt;
		local sandboxEditLink = makeWikilink(&amp;quot;Special:EditPage/&amp;quot; .. sandboxPage, sandboxEditDisplay)&lt;br /&gt;
		local compareUrl = env.compareUrl&lt;br /&gt;
		local compareLink&lt;br /&gt;
		if compareUrl then&lt;br /&gt;
			local compareDisplay = message(&#039;compare-link-display&#039;)&lt;br /&gt;
			compareLink = makeUrlLink(compareUrl, compareDisplay)&lt;br /&gt;
		end&lt;br /&gt;
		sandboxLinks = sandboxLink .. &#039; &#039; .. makeToolbar(sandboxEditLink, compareLink)&lt;br /&gt;
	else&lt;br /&gt;
		local sandboxPreload&lt;br /&gt;
		if subjectSpace == 828 then&lt;br /&gt;
			sandboxPreload = message(&#039;module-sandbox-preload&#039;)&lt;br /&gt;
		else&lt;br /&gt;
			sandboxPreload = message(&#039;template-sandbox-preload&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = &#039;edit&#039;, preload = sandboxPreload}&lt;br /&gt;
		local sandboxCreateDisplay = message(&#039;sandbox-create-link-display&#039;)&lt;br /&gt;
		local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay)&lt;br /&gt;
		local mirrorSummary = message(&#039;mirror-edit-summary&#039;, {makeWikilink(templatePage)})&lt;br /&gt;
		local mirrorPreload = message(&#039;mirror-link-preload&#039;)&lt;br /&gt;
		local mirrorUrl = sandboxTitle:canonicalUrl{action = &#039;edit&#039;, preload = mirrorPreload, summary = mirrorSummary}&lt;br /&gt;
		if subjectSpace == 828 then&lt;br /&gt;
			mirrorUrl = sandboxTitle:canonicalUrl{action = &#039;edit&#039;, preload = templateTitle.prefixedText, summary = mirrorSummary}&lt;br /&gt;
		end&lt;br /&gt;
		local mirrorDisplay = message(&#039;mirror-link-display&#039;)&lt;br /&gt;
		local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay)&lt;br /&gt;
		sandboxLinks = message(&#039;sandbox-link-display&#039;) .. &#039; &#039; .. makeToolbar(sandboxCreateLink, mirrorLink)&lt;br /&gt;
	end&lt;br /&gt;
	if testcasesTitle.exists then&lt;br /&gt;
		local testcasesPage = testcasesTitle.prefixedText&lt;br /&gt;
		local testcasesDisplay = message(&#039;testcases-link-display&#039;)&lt;br /&gt;
		local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay)&lt;br /&gt;
		local testcasesEditUrl = testcasesTitle:canonicalUrl{action = &#039;edit&#039;}&lt;br /&gt;
		local testcasesEditDisplay = message(&#039;testcases-edit-link-display&#039;)&lt;br /&gt;
		local testcasesEditLink = makeWikilink(&amp;quot;Special:EditPage/&amp;quot; .. testcasesPage, testcasesEditDisplay)&lt;br /&gt;
		-- for Modules, add testcases run link if exists&lt;br /&gt;
		if testcasesTitle.contentModel == &amp;quot;Scribunto&amp;quot;  and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then&lt;br /&gt;
			local testcasesRunLinkDisplay = message(&#039;testcases-run-link-display&#039;)&lt;br /&gt;
			local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)&lt;br /&gt;
			testcasesLinks = testcasesLink .. &#039; &#039; .. makeToolbar(testcasesEditLink, testcasesRunLink)&lt;br /&gt;
		else&lt;br /&gt;
			testcasesLinks = testcasesLink .. &#039; &#039; .. makeToolbar(testcasesEditLink)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		local testcasesPreload&lt;br /&gt;
		if subjectSpace == 828 then&lt;br /&gt;
			testcasesPreload = message(&#039;module-testcases-preload&#039;)&lt;br /&gt;
		else&lt;br /&gt;
			testcasesPreload = message(&#039;template-testcases-preload&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = &#039;edit&#039;, preload = testcasesPreload}&lt;br /&gt;
		local testcasesCreateDisplay = message(&#039;testcases-create-link-display&#039;)&lt;br /&gt;
		local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay)&lt;br /&gt;
		testcasesLinks = message(&#039;testcases-link-display&#039;) .. &#039; &#039; .. makeToolbar(testcasesCreateLink)&lt;br /&gt;
	end&lt;br /&gt;
	local messageName&lt;br /&gt;
	if subjectSpace == 828 then&lt;br /&gt;
		messageName = &#039;experiment-blurb-module&#039;&lt;br /&gt;
	else&lt;br /&gt;
		messageName = &#039;experiment-blurb-template&#039;&lt;br /&gt;
	end&lt;br /&gt;
	return message(messageName, {sandboxLinks, testcasesLinks})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeCategoriesBlurb(args, env)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Generates the text &amp;quot;Please add categories to the /doc subpage.&amp;quot;&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;doc-link-display&#039; --&amp;gt; &#039;/doc&#039;&lt;br /&gt;
	-- &#039;add-categories-blurb&#039; --&amp;gt; &#039;Please add categories to the $1 subpage.&#039;&lt;br /&gt;
	--]]&lt;br /&gt;
	local docTitle = env.docTitle&lt;br /&gt;
	if not docTitle then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local docPathLink = makeWikilink(docTitle.prefixedText, message(&#039;doc-link-display&#039;))&lt;br /&gt;
	return message(&#039;add-categories-blurb&#039;, {docPathLink})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeSubpagesBlurb(args, env)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Generates the &amp;quot;Subpages of this template&amp;quot; link.&lt;br /&gt;
	-- @args - a table of arguments passed by the user&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	&lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;template-pagetype&#039; --&amp;gt; &#039;template&#039;&lt;br /&gt;
	-- &#039;module-pagetype&#039; --&amp;gt; &#039;module&#039;&lt;br /&gt;
	-- &#039;default-pagetype&#039; --&amp;gt; &#039;page&#039;&lt;br /&gt;
	-- &#039;subpages-link-display&#039; --&amp;gt; &#039;Subpages of this $1&#039;&lt;br /&gt;
	--]]&lt;br /&gt;
	local subjectSpace = env.subjectSpace&lt;br /&gt;
	local templateTitle = env.templateTitle&lt;br /&gt;
	if not subjectSpace or not templateTitle then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local pagetype&lt;br /&gt;
	if subjectSpace == 10 then&lt;br /&gt;
		pagetype = message(&#039;template-pagetype&#039;)&lt;br /&gt;
	elseif subjectSpace == 828 then&lt;br /&gt;
		pagetype = message(&#039;module-pagetype&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		pagetype = message(&#039;default-pagetype&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	local subpagesLink = makeWikilink(&lt;br /&gt;
		&#039;Special:PrefixIndex/&#039; .. templateTitle.prefixedText .. &#039;/&#039;,&lt;br /&gt;
		message(&#039;subpages-link-display&#039;, {pagetype})&lt;br /&gt;
	)&lt;br /&gt;
	return message(&#039;subpages-blurb&#039;, {subpagesLink})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
-- Tracking categories&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.addTrackingCategories(env)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Check if {{documentation}} is transcluded on a /doc or /testcases page.&lt;br /&gt;
	-- @env - environment table containing title objects, etc., generated with p.getEnvironment&lt;br /&gt;
	&lt;br /&gt;
	-- Messages:&lt;br /&gt;
	-- &#039;display-strange-usage-category&#039; --&amp;gt; true&lt;br /&gt;
	-- &#039;doc-subpage&#039; --&amp;gt; &#039;doc&#039;&lt;br /&gt;
	-- &#039;testcases-subpage&#039; --&amp;gt; &#039;testcases&#039;&lt;br /&gt;
	-- &#039;strange-usage-category&#039; --&amp;gt; &#039;Wikipedia pages with strange ((documentation)) usage&#039;&lt;br /&gt;
	-- &lt;br /&gt;
	-- /testcases pages in the module namespace are not categorised, as they may have&lt;br /&gt;
	-- {{documentation}} transcluded automatically.&lt;br /&gt;
	--]]&lt;br /&gt;
	local title = env.title&lt;br /&gt;
	local subjectSpace = env.subjectSpace&lt;br /&gt;
	if not title or not subjectSpace then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local subpage = title.subpageText&lt;br /&gt;
	if message(&#039;display-strange-usage-category&#039;, nil, &#039;boolean&#039;)&lt;br /&gt;
		and (&lt;br /&gt;
			subpage == message(&#039;doc-subpage&#039;)&lt;br /&gt;
			or subjectSpace ~= 828 and subpage == message(&#039;testcases-subpage&#039;)&lt;br /&gt;
		)&lt;br /&gt;
	then&lt;br /&gt;
		return makeCategoryLink(message(&#039;strange-usage-category&#039;))&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Documentation&amp;diff=181</id>
		<title>Template:Documentation</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Documentation&amp;diff=181"/>
		<updated>2026-04-14T17:34:58Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- Add categories to the /doc subpage --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:No_redirect&amp;diff=179</id>
		<title>Template:No redirect</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:No_redirect&amp;diff=179"/>
		<updated>2026-04-14T17:34:58Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{safesubst:&amp;lt;noinclude/&amp;gt;#if: {{safesubst:&amp;lt;noinclude/&amp;gt;#invoke:Redirect|isRedirect|{{{1}}}}}&lt;br /&gt;
| &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{safesubst:&amp;lt;noinclude/&amp;gt;fullurl:{{{1}}}|redirect=no}} {{{2|{{{1}}}}}}]&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;display: none&amp;quot;&amp;gt;[[:{{{1}}}]]&amp;lt;/span&amp;gt;&lt;br /&gt;
| [[:{{safesubst:&amp;lt;noinclude/&amp;gt;FULLPAGENAME:{{{1}}}}}|{{{2|{{{1}}}}}}]]&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Section_link&amp;diff=177</id>
		<title>Module:Section link</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Section_link&amp;diff=177"/>
		<updated>2026-04-14T17:34:57Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements {{section link}}.&lt;br /&gt;
require(&#039;strict&#039;);&lt;br /&gt;
&lt;br /&gt;
local checkType = require(&#039;libraryUtil&#039;).checkType&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function makeSectionLink(page, section, display)&lt;br /&gt;
	display = display or section&lt;br /&gt;
	page = page or &#039;&#039;&lt;br /&gt;
	-- MediaWiki doesn&#039;t allow these in &#039;page&#039;, so only need to do for &#039;section&#039;&lt;br /&gt;
	if type(section) == &#039;string&#039; then&lt;br /&gt;
		section = string.gsub(section, &amp;quot;{&amp;quot;, &amp;quot;&amp;amp;#x7B;&amp;quot;)&lt;br /&gt;
		section = string.gsub(section, &amp;quot;}&amp;quot;, &amp;quot;&amp;amp;#x7D;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	return string.format(&#039;[[%s#%s|%s]]&#039;, page, section, display)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function normalizeTitle(title)&lt;br /&gt;
	title = mw.ustring.gsub(mw.ustring.gsub(title, &amp;quot;&#039;&amp;quot;, &amp;quot;&amp;quot;), &#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	title = mw.ustring.gsub(title, &amp;quot;%b&amp;lt;&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	return mw.title.new(title).prefixedText&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(page, sections, options, title)&lt;br /&gt;
	-- Validate input.&lt;br /&gt;
	checkType(&#039;_main&#039;, 1, page, &#039;string&#039;, true)&lt;br /&gt;
	checkType(&#039;_main&#039;, 3, options, &#039;table&#039;, true)&lt;br /&gt;
	if sections == nil then&lt;br /&gt;
		sections = {}&lt;br /&gt;
	elseif type(sections) == &#039;string&#039; then&lt;br /&gt;
		sections = {sections}&lt;br /&gt;
	elseif type(sections) ~= &#039;table&#039; then&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;type error in argument #2 to &#039;_main&#039; &amp;quot; ..&lt;br /&gt;
			&amp;quot;(string, table or nil expected, got %s)&amp;quot;,&lt;br /&gt;
			type(sections)&lt;br /&gt;
		), 2)&lt;br /&gt;
	end&lt;br /&gt;
	options = options or {}&lt;br /&gt;
	title = title or mw.title.getCurrentTitle()&lt;br /&gt;
&lt;br /&gt;
	-- Deal with blank page names elegantly&lt;br /&gt;
	if page and not page:find(&#039;%S&#039;) then&lt;br /&gt;
		page = nil&lt;br /&gt;
		options.nopage = true&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Make the link(s).&lt;br /&gt;
	local isShowingPage = not options.nopage&lt;br /&gt;
	if #sections &amp;lt;= 1 then&lt;br /&gt;
		local linkPage = page or &#039;&#039;&lt;br /&gt;
		if options.permalink then												-- when oldid provided&lt;br /&gt;
			linkPage = &#039;Special:Permalink/&#039; .. options.permalink;				-- make Special:Permalink/oldid wikilink&lt;br /&gt;
		end&lt;br /&gt;
		local section = sections[1];											-- sections[1] must have a value&lt;br /&gt;
		local display = &#039;§&amp;amp;nbsp;&#039; .. section&lt;br /&gt;
		if isShowingPage then&lt;br /&gt;
			page = page or title.prefixedText&lt;br /&gt;
			if options.display and options.display ~= &#039;&#039; then&lt;br /&gt;
				if normalizeTitle(options.display) == normalizeTitle(page) then&lt;br /&gt;
					display = options.display .. &#039; &#039; .. display&lt;br /&gt;
				else&lt;br /&gt;
					error(string.format(&lt;br /&gt;
						&#039;Display title &amp;quot;%s&amp;quot; was ignored since it is &#039; ..&lt;br /&gt;
						&amp;quot;not equivalent to the page&#039;s actual title&amp;quot;,&lt;br /&gt;
						options.display&lt;br /&gt;
					), 0)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				display = page .. &#039; &#039; .. display&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return makeSectionLink(linkPage, section, display)&lt;br /&gt;
	else&lt;br /&gt;
		-- Multiple sections. First, make a list of the links to display.&lt;br /&gt;
		local ret = {}&lt;br /&gt;
		for i, section in ipairs(sections) do&lt;br /&gt;
			ret[i] = makeSectionLink(page, section)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Assemble the list of links into a string with mw.text.listToText.&lt;br /&gt;
		-- We use the default separator for mw.text.listToText, but a custom&lt;br /&gt;
		-- conjunction. There is also a special case conjunction if we only&lt;br /&gt;
		-- have two links.&lt;br /&gt;
		local conjunction&lt;br /&gt;
		if #sections == 2 then&lt;br /&gt;
			conjunction = &#039;&amp;amp;#8203; and &#039;&lt;br /&gt;
		else&lt;br /&gt;
			conjunction = &#039;, and &#039;&lt;br /&gt;
		end&lt;br /&gt;
		ret = mw.text.listToText(ret, nil, conjunction)&lt;br /&gt;
&lt;br /&gt;
		-- Add the intro text.&lt;br /&gt;
		local intro = &#039;§§&amp;amp;nbsp;&#039;&lt;br /&gt;
		if isShowingPage then&lt;br /&gt;
			intro = (page or title.prefixedText) .. &#039; &#039; .. intro&lt;br /&gt;
		end&lt;br /&gt;
		ret = intro .. ret&lt;br /&gt;
&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
	local args = require(&#039;Module:Arguments&#039;).getArgs(frame, {&lt;br /&gt;
		wrappers = &#039;Template:Section link&#039;,&lt;br /&gt;
		valueFunc = function (key, value)&lt;br /&gt;
			value = value:match(&#039;^%s*(.-)%s*$&#039;) -- Trim whitespace&lt;br /&gt;
			-- Allow blank first parameters, as the wikitext template does this.&lt;br /&gt;
			if value ~= &#039;&#039; or key == 1 then&lt;br /&gt;
				return value&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	})&lt;br /&gt;
&lt;br /&gt;
	for k, v in pairs(args) do													-- replace underscores in the positional parameter values&lt;br /&gt;
		if &#039;number&#039; == type(k) then&lt;br /&gt;
			if not yesno (args[&#039;keep-underscores&#039;]) then						-- unless |keep-underscores=yes&lt;br /&gt;
				args[k] = mw.uri.decode (v, &#039;WIKI&#039;);							-- percent-decode; replace underscores with space characters&lt;br /&gt;
			else&lt;br /&gt;
				args[k] = mw.uri.decode (v, &#039;PATH&#039;);							-- percent-decode; retain underscores&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Sort the arguments.&lt;br /&gt;
	local page&lt;br /&gt;
	local sections, options = {}, {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if k == 1 then&lt;br /&gt;
			-- Doing this in the loop because of a bug in [[Module:Arguments]]&lt;br /&gt;
			-- when using pairs with deleted arguments.&lt;br /&gt;
			page = mw.text.decode(v, true)&lt;br /&gt;
		elseif type(k) == &#039;number&#039; then&lt;br /&gt;
			sections[k] = v&lt;br /&gt;
		else&lt;br /&gt;
			options[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	options.nopage = yesno (options.nopage);									-- make boolean&lt;br /&gt;
	&lt;br /&gt;
	-- Extract section from page, if present&lt;br /&gt;
	if page then&lt;br /&gt;
		local p, s = page:match(&#039;^(.-)#(.*)$&#039;)&lt;br /&gt;
		if p then page, sections[1] = p, s end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Compress the sections array.&lt;br /&gt;
	local function compressArray(t)&lt;br /&gt;
		local nums, ret = {}, {}&lt;br /&gt;
		for num in pairs(t) do&lt;br /&gt;
			nums[#nums + 1] = num&lt;br /&gt;
		end&lt;br /&gt;
		table.sort(nums)&lt;br /&gt;
		for i, num in ipairs(nums) do&lt;br /&gt;
			ret[i] = t[num]&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
	sections = compressArray(sections)&lt;br /&gt;
&lt;br /&gt;
	if not sections[1] then														-- empty section parameter makes {{Section link}} meaningless&lt;br /&gt;
		return (&#039;&amp;lt;span style=&amp;quot;color:#d33&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-family:monospace&amp;quot;&amp;gt;{{[[Template:Section link|Section link]]}}&amp;lt;/span&amp;gt;: required section parameter(s) missing&amp;lt;/span&amp;gt;&#039;);	-- emit error message and abandon&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return p._main(page, sections, options)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Section_link&amp;diff=175</id>
		<title>Template:Section link</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Section_link&amp;diff=175"/>
		<updated>2026-04-14T17:34:57Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{SAFESUBST:&amp;lt;noinclude /&amp;gt;#invoke:Section link|main}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Categories go on the /doc subpage and interwikis go on Wikidata. --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Para&amp;diff=173</id>
		<title>Template:Para</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Para&amp;diff=173"/>
		<updated>2026-04-14T17:34:57Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Requested move notice|1=TM:parameter|2=Template talk:Para#Requested move 12 April 2026}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;code class=&amp;quot;tpl-para&amp;quot; style=&amp;quot;word-break:break-word;{{SAFESUBST:&amp;lt;noinclude /&amp;gt;#if:{{{plain|}}}|border: none; background-color: inherit;}} {{SAFESUBST:&amp;lt;noinclude /&amp;gt;#if:{{{plain|}}}{{{mxt|}}}{{{green|}}}{{{!mxt|}}}{{{red|}}}|color: {{SAFESUBST:&amp;lt;noinclude /&amp;gt;#if:{{{mxt|}}}{{{green|}}}|#006400|{{SAFESUBST:&amp;lt;noinclude /&amp;gt;#if:{{{!mxt|}}}{{{red|}}}|#8B0000|inherit}}}};}} {{SAFESUBST:&amp;lt;noinclude /&amp;gt;#if:{{{style|}}}|{{{style}}}}}&amp;quot;&amp;gt;&amp;amp;#124;{{SAFESUBST:&amp;lt;noinclude /&amp;gt;#if:{{{1|}}}|{{{1}}}&amp;amp;#61;}}{{{2|}}}&amp;lt;/code&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;!--Categories and interwikis go near the bottom of the /doc subpage.--&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Notelist&amp;diff=171</id>
		<title>Template:Notelist</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Notelist&amp;diff=171"/>
		<updated>2026-04-14T17:34:56Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{reflist|{{{1|{{{colwidth|}}}}}}|refs={{{refs|{{{notes|}}}}}}|group={{safesubst&amp;lt;noinclude /&amp;gt;:#switch: {{{group|}}}&lt;br /&gt;
    | note&lt;br /&gt;
    | upper-alpha&lt;br /&gt;
    | upper-roman&lt;br /&gt;
    | lower-alpha&lt;br /&gt;
    | lower-greek&lt;br /&gt;
    | lower-roman = {{{group|}}}&lt;br /&gt;
    | #default = lower-alpha&lt;br /&gt;
   }}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using notelist with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Notelist]] with unknown parameter &amp;quot;_VALUE_&amp;quot;|ignoreblank=y| 1 | colwidth | group | notes | refs }}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Efn&amp;diff=169</id>
		<title>Template:Efn</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Efn&amp;diff=169"/>
		<updated>2026-04-14T17:34:56Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{safesubst&amp;lt;noinclude /&amp;gt;:#if:{{{name|}}}&lt;br /&gt;
 |{{#tag:ref|{{{1|{{{reference|{{{content|{{{text|}}}}}}}}}}}}|name={{{name|}}}|group={{safesubst&amp;lt;noinclude /&amp;gt;:#switch: {{{group|}}}&lt;br /&gt;
    | note&lt;br /&gt;
    | upper-alpha&lt;br /&gt;
    | upper-roman&lt;br /&gt;
    | lower-alpha&lt;br /&gt;
    | lower-greek&lt;br /&gt;
    | lower-roman = {{{group|}}}&lt;br /&gt;
    | #default = lower-alpha&lt;br /&gt;
   }}}}&lt;br /&gt;
 |{{#tag:ref|{{{1|{{{reference|{{{content|{{{text|}}}}}}}}}}}}|group={{safesubst&amp;lt;noinclude /&amp;gt;:#switch: {{{group|}}}&lt;br /&gt;
    | note&lt;br /&gt;
    | upper-alpha&lt;br /&gt;
    | upper-roman&lt;br /&gt;
    | lower-alpha&lt;br /&gt;
    | lower-greek&lt;br /&gt;
    | lower-roman = {{{group|}}}&lt;br /&gt;
    | #default = lower-alpha&lt;br /&gt;
   }}}}&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Ombox&amp;diff=167</id>
		<title>Template:Ombox</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Ombox&amp;diff=167"/>
		<updated>2026-04-14T17:34:56Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#invoke:Message box|ombox}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Protection_banner/config&amp;diff=165</id>
		<title>Module:Protection banner/config</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Protection_banner/config&amp;diff=165"/>
		<updated>2026-04-14T17:34:55Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module provides configuration data for [[Module:Protection banner]].&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
--&lt;br /&gt;
--                                BANNER DATA&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- Banner data consists of six fields:&lt;br /&gt;
-- * text - the main protection text that appears at the top of protection&lt;br /&gt;
--   banners.&lt;br /&gt;
-- * explanation - the text that appears below the main protection text, used&lt;br /&gt;
--   to explain the details of the protection.&lt;br /&gt;
-- * tooltip - the tooltip text you see when you move the mouse over a small&lt;br /&gt;
--   padlock icon.&lt;br /&gt;
-- * link - the page that the small padlock icon links to.&lt;br /&gt;
-- * alt - the alt text for the small padlock icon. This is also used as tooltip&lt;br /&gt;
--   text for the large protection banners.&lt;br /&gt;
-- * image - the padlock image used in both protection banners and small padlock&lt;br /&gt;
--   icons.&lt;br /&gt;
--&lt;br /&gt;
-- The module checks in three separate tables to find a value for each field.&lt;br /&gt;
-- First it checks the banners table, which has values specific to the reason&lt;br /&gt;
-- for the page being protected. Then the module checks the defaultBanners&lt;br /&gt;
-- table, which has values specific to each protection level. Finally, the&lt;br /&gt;
-- module checks the masterBanner table, which holds data for protection&lt;br /&gt;
-- templates to use if no data has been found in the previous two tables.&lt;br /&gt;
--&lt;br /&gt;
-- The values in the banner data can take parameters. These are specified&lt;br /&gt;
-- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name&lt;br /&gt;
-- enclosed in curly braces).&lt;br /&gt;
--&lt;br /&gt;
--                          Available parameters:&lt;br /&gt;
--&lt;br /&gt;
-- ${CURRENTVERSION} - a link to the page history or the move log, with the&lt;br /&gt;
-- display message &amp;quot;current-version-edit-display&amp;quot; or&lt;br /&gt;
-- &amp;quot;current-version-move-display&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- ${EDITREQUEST} - a link to create an edit request for the current page.&lt;br /&gt;
--&lt;br /&gt;
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. &amp;quot;Please discuss any changes&lt;br /&gt;
-- on the talk page; you may submit a request to ask an administrator to make&lt;br /&gt;
-- an edit if it is minor or supported by consensus.&amp;quot;&lt;br /&gt;
--&lt;br /&gt;
-- ${IMAGELINK} - a link to set the image to, depending on the protection&lt;br /&gt;
-- action and protection level.&lt;br /&gt;
--&lt;br /&gt;
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry&lt;br /&gt;
-- is set. E.g. &amp;quot;Editing of this page by new or unregistered users is currently &lt;br /&gt;
-- disabled until dd Month YYYY.&amp;quot;&lt;br /&gt;
--&lt;br /&gt;
-- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation&lt;br /&gt;
-- so that it can be used in run-on sentences.&lt;br /&gt;
--&lt;br /&gt;
-- ${PAGETYPE} - the type of the page, e.g. &amp;quot;article&amp;quot; or &amp;quot;template&amp;quot;.&lt;br /&gt;
-- Defined in the cfg.pagetypes table.&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g.&lt;br /&gt;
-- &amp;quot;Editing of this page by new or unregistered users is currently disabled&amp;quot;&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONDATE} - the protection date, if it has been supplied to the&lt;br /&gt;
-- template.&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONLEVEL} - the protection level, e.g. &amp;quot;fully protected&amp;quot; or&lt;br /&gt;
-- &amp;quot;semi-protected&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,&lt;br /&gt;
-- depending on the protection action.&lt;br /&gt;
--&lt;br /&gt;
-- ${TALKPAGE} - a link to the talk page. If a section is specified, links&lt;br /&gt;
-- straight to that talk page section.&lt;br /&gt;
--&lt;br /&gt;
-- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to&lt;br /&gt;
-- create a blurb like &amp;quot;This template is semi-protected&amp;quot;, or &amp;quot;This article is&lt;br /&gt;
-- move-protected until DD Month YYYY&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- ${VANDAL} - links for the specified username (or the root page name)&lt;br /&gt;
-- using Module:Vandal-m.&lt;br /&gt;
--&lt;br /&gt;
--                                 Functions&lt;br /&gt;
--&lt;br /&gt;
-- For advanced users, it is possible to use Lua functions instead of strings&lt;br /&gt;
-- in the banner config tables. Using functions gives flexibility that is not&lt;br /&gt;
-- possible just by using parameters. Functions take two arguments, the&lt;br /&gt;
-- protection object and the template arguments, and they must output a string.&lt;br /&gt;
--&lt;br /&gt;
-- For example:&lt;br /&gt;
--&lt;br /&gt;
-- text = function (protectionObj, args)&lt;br /&gt;
--     if protectionObj.level == &#039;autoconfirmed&#039; then&lt;br /&gt;
--         return &#039;foo&#039;&lt;br /&gt;
--     else&lt;br /&gt;
--         return &#039;bar&#039;&lt;br /&gt;
--     end&lt;br /&gt;
-- end&lt;br /&gt;
--&lt;br /&gt;
-- Some protection object properties and methods that may be useful:&lt;br /&gt;
-- protectionObj.action - the protection action&lt;br /&gt;
-- protectionObj.level - the protection level&lt;br /&gt;
-- protectionObj.reason - the protection reason&lt;br /&gt;
-- protectionObj.expiry - the expiry. Nil if unset, the string &amp;quot;indef&amp;quot; if set&lt;br /&gt;
--     to indefinite, and the protection time in unix time if temporary.&lt;br /&gt;
-- protectionObj.protectionDate - the protection date in unix time, or nil if&lt;br /&gt;
--     unspecified.&lt;br /&gt;
-- protectionObj.bannerConfig - the banner config found by the module. Beware&lt;br /&gt;
--     of editing the config field used by the function, as it could create an&lt;br /&gt;
--     infinite loop.&lt;br /&gt;
-- protectionObj:isProtected - returns a boolean showing whether the page is&lt;br /&gt;
--     protected.&lt;br /&gt;
-- protectionObj:isTemporary - returns a boolean showing whether the expiry is&lt;br /&gt;
--     temporary.&lt;br /&gt;
-- protectionObj:isIncorrect - returns a boolean showing whether the protection&lt;br /&gt;
--     template is incorrect.&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
-- The master banner data, used if no values have been found in banners or&lt;br /&gt;
-- defaultBanners.&lt;br /&gt;
masterBanner = {&lt;br /&gt;
	text = &#039;${INTROBLURB}&#039;,&lt;br /&gt;
	explanation = &#039;${EXPLANATIONBLURB}&#039;,&lt;br /&gt;
	tooltip = &#039;${TOOLTIPBLURB}&#039;,&lt;br /&gt;
	link = &#039;${IMAGELINK}&#039;,&lt;br /&gt;
	alt = &#039;Page ${PROTECTIONLEVEL}&#039;&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- The default banner data. This holds banner data for different protection&lt;br /&gt;
-- levels.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
defaultBanners = {&lt;br /&gt;
	edit = {},&lt;br /&gt;
	move = {},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		default = {&lt;br /&gt;
			alt = &#039;Page protected with pending changes&#039;,&lt;br /&gt;
			tooltip = &#039;All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users&#039;,&lt;br /&gt;
			image = &#039;Pending-protection-shackle.svg&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	upload = {}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- The banner data. This holds banner data for different protection reasons.&lt;br /&gt;
-- In fact, the reasons specified in this table control which reasons are&lt;br /&gt;
-- valid inputs to the first positional parameter.&lt;br /&gt;
--&lt;br /&gt;
-- There is also a non-standard &amp;quot;description&amp;quot; field that can be used for items&lt;br /&gt;
-- in this table. This is a description of the protection reason for use in the&lt;br /&gt;
-- module documentation.&lt;br /&gt;
--&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
banners = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		blp = {&lt;br /&gt;
			description = &#039;For pages protected to promote compliance with the&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Biographies of living persons&#039;&lt;br /&gt;
				.. &#039;|biographies of living persons]] policy&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} to promote compliance with&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Biographies of living persons&#039;&lt;br /&gt;
				.. &amp;quot;|Wikipedia&#039;s&amp;amp;nbsp;policy on&amp;amp;nbsp;the&amp;amp;nbsp;biographies&amp;quot;&lt;br /&gt;
				.. &#039; of&amp;amp;nbsp;living&amp;amp;nbsp;people]].&#039;,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} to promote compliance with the policy on&#039;&lt;br /&gt;
				.. &#039; biographies of living persons&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		dmca = {&lt;br /&gt;
			description = &#039;For pages protected by the Wikimedia Foundation&#039;&lt;br /&gt;
				.. &#039; due to [[Digital Millennium Copyright Act]] takedown requests&#039;,&lt;br /&gt;
			explanation = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;Pursuant to a rights owner notice under the Digital&#039;&lt;br /&gt;
					.. &#039; Millennium Copyright Act (DMCA) regarding some content&#039;&lt;br /&gt;
					.. &#039; in this article, the Wikimedia Foundation acted under&#039;&lt;br /&gt;
					.. &#039; applicable law and took down and restricted the content&#039;&lt;br /&gt;
					.. &#039; in question.&#039;&lt;br /&gt;
				if args.notice then&lt;br /&gt;
					ret = ret .. &#039; A copy of the received notice can be found here: &#039;&lt;br /&gt;
						.. args.notice .. &#039;.&#039;&lt;br /&gt;
				end&lt;br /&gt;
				ret = ret .. &#039; For more information, including websites discussing&#039;&lt;br /&gt;
					.. &#039; how to file a counter-notice, please see&#039;&lt;br /&gt;
					.. &amp;quot; [[Wikipedia:Office actions]] and the article&#039;s ${TALKPAGE}.&amp;quot;&lt;br /&gt;
					.. &amp;quot;&#039;&#039;&#039;Do not remove this template from the article until the&amp;quot;&lt;br /&gt;
					.. &amp;quot; restrictions are withdrawn&#039;&#039;&#039;.&amp;quot;&lt;br /&gt;
				return ret&lt;br /&gt;
			end,&lt;br /&gt;
			image = &#039;Office-protection-shackle.svg&#039;,&lt;br /&gt;
			link = &#039;Wikipedia:Protection policy#office&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		dispute = {&lt;br /&gt;
			description = &#039;For pages protected due to editing disputes&#039;,&lt;br /&gt;
			text = function (protectionObj, args)&lt;br /&gt;
				-- Find the value of &amp;quot;disputes&amp;quot;.&lt;br /&gt;
				local display = &#039;disputes&#039;&lt;br /&gt;
				local disputes&lt;br /&gt;
				if args.section then&lt;br /&gt;
					disputes = string.format(&lt;br /&gt;
						&#039;[[%s:%s#%s|%s]]&#039;,&lt;br /&gt;
						mw.site.namespaces[protectionObj.title.namespace].talk.name,&lt;br /&gt;
						protectionObj.title.text,&lt;br /&gt;
						args.section,&lt;br /&gt;
						display&lt;br /&gt;
					)&lt;br /&gt;
				else&lt;br /&gt;
					disputes = display&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				-- Make the blurb, depending on the expiry.&lt;br /&gt;
				local msg&lt;br /&gt;
				if type(protectionObj.expiry) == &#039;number&#039; then&lt;br /&gt;
					msg = &#039;${INTROFRAGMENT} or until editing %s have been resolved.&#039;&lt;br /&gt;
				else&lt;br /&gt;
					msg = &#039;${INTROFRAGMENT} until editing %s have been resolved.&#039;&lt;br /&gt;
				end&lt;br /&gt;
				return string.format(msg, disputes)&lt;br /&gt;
			end,&lt;br /&gt;
			explanation = &amp;quot;This protection is &#039;&#039;&#039;not&#039;&#039;&#039; an endorsement of the&amp;quot;&lt;br /&gt;
				.. &#039; ${CURRENTVERSION}. ${EXPLANATIONBLURB}&#039;,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} due to editing disputes&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		ecp = {&lt;br /&gt;
			description = &#039;For articles in topic areas authorized by&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Arbitration Committee|ArbCom]] or&#039;&lt;br /&gt;
				.. &#039; meets the criteria for community use&#039;,&lt;br /&gt;
			tooltip = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL}&#039;,&lt;br /&gt;
			alt = &#039;Extended-protected ${PAGETYPE}&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		mainpage = {&lt;br /&gt;
			description = &#039;For pages protected for being displayed on the [[Main Page]]&#039;,&lt;br /&gt;
			text = &#039;This file is currently&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:This page is protected|protected]] from&#039;&lt;br /&gt;
				.. &#039; editing because it is currently or will soon be displayed&#039;&lt;br /&gt;
				.. &#039; on the [[Main Page]].&#039;,&lt;br /&gt;
			explanation = &#039;Images on the Main Page are protected due to their high&#039;&lt;br /&gt;
				.. &#039; visibility. Please discuss any necessary changes on the ${TALKPAGE}.&#039;&lt;br /&gt;
				.. &#039;&amp;lt;br /&amp;gt;&amp;lt;span style=&amp;quot;font-size:90%;&amp;quot;&amp;gt;&#039;&lt;br /&gt;
				.. &amp;quot;&#039;&#039;&#039;Administrators:&#039;&#039;&#039; Once this image is definitely off the Main Page,&amp;quot;&lt;br /&gt;
				.. &#039; please unprotect this file, or reduce to semi-protection,&#039;&lt;br /&gt;
				.. &#039; as appropriate.&amp;lt;/span&amp;gt;&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		office = {&lt;br /&gt;
			description = &#039;For pages protected by the Wikimedia Foundation&#039;,&lt;br /&gt;
			text = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;This ${PAGETYPE} is currently under the&#039;&lt;br /&gt;
					.. &#039; scrutiny of the&#039;&lt;br /&gt;
					.. &#039; [[Wikipedia:Office actions|Wikimedia Foundation Office]]&#039;&lt;br /&gt;
					.. &#039; and is protected.&#039;&lt;br /&gt;
				if protectionObj.protectionDate then&lt;br /&gt;
					ret = ret .. &#039; It has been protected since ${PROTECTIONDATE}.&#039;&lt;br /&gt;
				end&lt;br /&gt;
				return ret&lt;br /&gt;
			end,&lt;br /&gt;
			explanation = &amp;quot;If you can edit this page, please discuss all changes and&amp;quot;&lt;br /&gt;
				.. &amp;quot; additions on the ${TALKPAGE} first. &#039;&#039;&#039;Do not remove protection from this&amp;quot;&lt;br /&gt;
				.. &amp;quot; page unless you are authorized by the Wikimedia Foundation to do&amp;quot;&lt;br /&gt;
				.. &amp;quot; so.&#039;&#039;&#039;&amp;quot;,&lt;br /&gt;
			image = &#039;Office-protection-shackle.svg&#039;,&lt;br /&gt;
			link = &#039;Wikipedia:Protection policy#office&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		reset = {&lt;br /&gt;
			description = &#039;For pages protected by the Wikimedia Foundation and&#039;&lt;br /&gt;
				.. &#039; &amp;quot;reset&amp;quot; to a bare-bones version&#039;,&lt;br /&gt;
 			text = &#039;This ${PAGETYPE} is currently under the&#039;&lt;br /&gt;
					.. &#039; scrutiny of the&#039;&lt;br /&gt;
					.. &#039; [[Wikipedia:Office actions|Wikimedia Foundation Office]]&#039;&lt;br /&gt;
					.. &#039; and is protected.&#039;,&lt;br /&gt;
			explanation = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;&#039;&lt;br /&gt;
				if protectionObj.protectionDate then&lt;br /&gt;
					ret = ret .. &#039;On ${PROTECTIONDATE} this ${PAGETYPE} was&#039;&lt;br /&gt;
				else&lt;br /&gt;
					ret = ret .. &#039;This ${PAGETYPE} has been&#039;&lt;br /&gt;
				end&lt;br /&gt;
				ret = ret .. &#039; reduced to a&#039;&lt;br /&gt;
				.. &#039; simplified, &amp;quot;bare bones&amp;quot; version so that it may be completely&#039;&lt;br /&gt;
				.. &#039; rewritten to ensure it meets the policies of&#039;&lt;br /&gt;
				.. &#039; [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].&#039;&lt;br /&gt;
				.. &#039; Standard Wikipedia policies will apply to its rewriting—which&#039;&lt;br /&gt;
				.. &#039; will eventually be open to all editors—and will be strictly&#039;&lt;br /&gt;
				.. &#039; enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while&#039;&lt;br /&gt;
				.. &#039; it is being rebuilt.\n\n&#039;&lt;br /&gt;
				.. &#039;Any insertion of material directly from&#039;&lt;br /&gt;
				.. &#039; pre-protection revisions of the ${PAGETYPE} will be removed, as&#039;&lt;br /&gt;
				.. &#039; will any material added to the ${PAGETYPE} that is not properly&#039;&lt;br /&gt;
				.. &#039; sourced. The associated talk page(s) were also cleared on the&#039;&lt;br /&gt;
				.. &amp;quot; same date.\n\n&amp;quot;&lt;br /&gt;
				.. &amp;quot;If you can edit this page, please discuss all changes and&amp;quot;&lt;br /&gt;
				.. &amp;quot; additions on the ${TALKPAGE} first. &#039;&#039;&#039;Do not override&amp;quot;&lt;br /&gt;
				.. &amp;quot; this action, and do not remove protection from this page,&amp;quot;&lt;br /&gt;
				.. &amp;quot; unless you are authorized by the Wikimedia Foundation&amp;quot;&lt;br /&gt;
				.. &amp;quot; to do so. No editor may remove this notice.&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
				return ret&lt;br /&gt;
			end,&lt;br /&gt;
			image = &#039;Office-protection-shackle.svg&#039;,&lt;br /&gt;
			link = &#039;Wikipedia:Protection policy#office&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		sock = {&lt;br /&gt;
			description = &#039;For pages protected due to&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Sock puppetry|sock puppetry]]&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Blocking policy|blocked]] or&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Banning policy|banned users]]&#039;&lt;br /&gt;
				.. &#039; from editing it.&#039;,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from&#039;&lt;br /&gt;
				.. &#039; editing it&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		template = {&lt;br /&gt;
			description = &#039;For [[Wikipedia:High-risk templates|high-risk]]&#039;&lt;br /&gt;
				.. &#039; templates and Lua modules&#039;,&lt;br /&gt;
			text = &#039;This is a permanently [[Help:Protection|protected]] ${PAGETYPE},&#039;&lt;br /&gt;
				.. &#039; as it is [[Wikipedia:High-risk templates|high-risk]].&#039;,&lt;br /&gt;
			explanation = &#039;Please discuss any changes on the ${TALKPAGE}; you may&#039;&lt;br /&gt;
				.. &#039; ${EDITREQUEST} to ask an&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Administrators|administrator]] or&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Template editor|template editor]] to make an edit if&#039;&lt;br /&gt;
				.. &#039; it is [[Help:Minor edit#When to mark an edit as a minor edit&#039;&lt;br /&gt;
				.. &#039;|uncontroversial]] or supported by&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Consensus|consensus]]. You can also&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection|request]] that the page be&#039;&lt;br /&gt;
				.. &#039; unprotected.&#039;,&lt;br /&gt;
			tooltip = &#039;This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}&#039;&lt;br /&gt;
				.. &#039; to prevent vandalism&#039;,&lt;br /&gt;
			alt = &#039;Permanently protected ${PAGETYPE}&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		usertalk = {&lt;br /&gt;
			description = &#039;For pages protected against disruptive edits by a&#039;&lt;br /&gt;
				.. &#039; particular user&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,&#039;&lt;br /&gt;
				.. &#039; such as abusing the&#039;&lt;br /&gt;
				.. &#039; &amp;amp;#123;&amp;amp;#123;[[Template:unblock|unblock]]&amp;amp;#125;&amp;amp;#125; template.&#039;,&lt;br /&gt;
			explanation = &#039;If you cannot edit this user talk page and you need to&#039;&lt;br /&gt;
				.. &#039; make a change or leave a message, you can&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for edits to a protected page&#039;&lt;br /&gt;
				.. &#039;|request an edit]],&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]],&#039;&lt;br /&gt;
				.. &#039; [[Special:Userlogin|log in]],&#039;&lt;br /&gt;
				.. &#039; or [[Special:UserLogin/signup|create an account]].&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		vandalism = {&lt;br /&gt;
			description = &#039;For pages protected against&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Vandalism|vandalism]]&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].&#039;,&lt;br /&gt;
			explanation = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;&#039;&lt;br /&gt;
				if protectionObj.level == &#039;sysop&#039; then&lt;br /&gt;
					ret = ret .. &amp;quot;This protection is &#039;&#039;&#039;not&#039;&#039;&#039; an endorsement of the&amp;quot;&lt;br /&gt;
						.. &#039; ${CURRENTVERSION}. &#039;&lt;br /&gt;
				end&lt;br /&gt;
				return ret .. &#039;${EXPLANATIONBLURB}&#039;&lt;br /&gt;
			end,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} due to vandalism&#039;,&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		dispute = {&lt;br /&gt;
			description = &#039;For pages protected against page moves due to&#039;&lt;br /&gt;
				.. &#039; disputes over the page title&#039;,&lt;br /&gt;
			explanation = &amp;quot;This protection is &#039;&#039;&#039;not&#039;&#039;&#039; an endorsement of the&amp;quot;&lt;br /&gt;
				.. &#039; ${CURRENTVERSION}. ${EXPLANATIONBLURB}&#039;,&lt;br /&gt;
			image = &#039;Move-protection-shackle.svg&#039;&lt;br /&gt;
		},&lt;br /&gt;
		vandalism = {&lt;br /&gt;
			description = &#039;For pages protected against&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Vandalism#Page-move vandalism&#039;&lt;br /&gt;
				.. &#039; |page-move vandalism]]&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {},&lt;br /&gt;
	upload = {}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
--&lt;br /&gt;
--                            GENERAL DATA TABLES&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection blurbs&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table produces the protection blurbs available with the&lt;br /&gt;
-- ${PROTECTIONBLURB} parameter. It is sorted by protection action and&lt;br /&gt;
-- protection level, and is checked by the module in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
-- 3. &amp;quot;edit&amp;quot; protection action, default protection level&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
protectionBlurbs = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;This ${PAGETYPE} is currently [[Help:Protection|&#039;&lt;br /&gt;
			.. &#039;protected]] from editing&#039;,&lt;br /&gt;
		autoconfirmed = &#039;Editing of this ${PAGETYPE} by [[Wikipedia:User access&#039;&lt;br /&gt;
			.. &#039; levels#New users|new]] or [[Wikipedia:User access levels#Unregistered&#039;&lt;br /&gt;
			.. &#039; users|unregistered]] users is currently [[Help:Protection|disabled]]&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;This ${PAGETYPE} is currently under extended confirmed protection&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;This ${PAGETYPE} is currently [[Help:Protection|protected]]&#039;&lt;br /&gt;
			.. &#039; from [[Help:Moving a page|page moves]]&#039;&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		default = &#039;All edits made to this ${PAGETYPE} by&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:User access levels#New users|new]] or&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:User access levels#Unregistered users|unregistered]]&#039;&lt;br /&gt;
			.. &#039; users are currently&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:Pending changes|subject to review]]&#039;&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;Uploading new versions of this ${PAGETYPE} is currently disabled&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Explanation blurbs&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table produces the explanation blurbs available with the&lt;br /&gt;
-- ${EXPLANATIONBLURB} parameter. It is sorted by protection action,&lt;br /&gt;
-- protection level, and whether the page is a talk page or not. If the page is&lt;br /&gt;
-- a talk page it will have a talk key of &amp;quot;talk&amp;quot;; otherwise it will have a talk&lt;br /&gt;
-- key of &amp;quot;subject&amp;quot;. The table is checked in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level, page&#039;s talk key&lt;br /&gt;
-- 2. page&#039;s protection action, page&#039;s protection level, default talk key&lt;br /&gt;
-- 3. page&#039;s protection action, default protection level, page&#039;s talk key&lt;br /&gt;
-- 4. page&#039;s protection action, default protection level, default talk key&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
explanationBlurbs = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		autoconfirmed = {&lt;br /&gt;
			subject = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details. If you&#039;&lt;br /&gt;
				.. &#039; cannot edit this ${PAGETYPE} and you wish to make a change, you can&#039;&lt;br /&gt;
				.. &#039; ${EDITREQUEST}, discuss changes on the ${TALKPAGE},&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]], [[Special:Userlogin|log in]], or&#039;&lt;br /&gt;
				.. &#039; [[Special:UserLogin/signup|create an account]].&#039;,&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details. If you&#039;&lt;br /&gt;
				.. &#039; cannot edit this ${PAGETYPE} and you wish to make a change, you can&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]], [[Special:Userlogin|log in]], or&#039;&lt;br /&gt;
				.. &#039; [[Special:UserLogin/signup|create an account]].&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		extendedconfirmed = {&lt;br /&gt;
			default = &#039;Extended confirmed protection prevents edits from all unregistered editors&#039;&lt;br /&gt;
				.. &#039; and registered users with fewer than 30 days tenure and 500 edits.&#039;&lt;br /&gt;
				.. &#039; The [[Wikipedia:Protection policy#extended|policy on community use]]&#039;&lt;br /&gt;
				.. &#039; specifies that extended confirmed protection can be applied to combat&#039;&lt;br /&gt;
				.. &#039; disruption, if semi-protection has proven to be ineffective.&#039;&lt;br /&gt;
				.. &#039; Extended confirmed protection may also be applied to enforce&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Arbitration Committee|arbitration sanctions]].&#039;&lt;br /&gt;
				.. &#039; Please discuss any changes on the ${TALKPAGE}; you may&#039;&lt;br /&gt;
				.. &#039; ${EDITREQUEST} to ask for uncontroversial changes supported by&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Consensus|consensus]].&#039;&lt;br /&gt;
		},&lt;br /&gt;
		default = {&lt;br /&gt;
			subject = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; Please discuss any changes on the ${TALKPAGE}; you&#039;&lt;br /&gt;
				.. &#039; may ${EDITREQUEST} to ask an&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Administrators|administrator]] to make an edit if it&#039;&lt;br /&gt;
				.. &#039; is [[Help:Minor edit#When to mark an edit as a minor edit&#039;&lt;br /&gt;
				.. &#039;|uncontroversial]] or supported by [[Wikipedia:Consensus&#039;&lt;br /&gt;
				.. &#039;|consensus]]. You may also [[Wikipedia:Requests for&#039;&lt;br /&gt;
				.. &#039; page protection#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request]] that this page be unprotected.&#039;,&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; You may [[Wikipedia:Requests for page&#039;&lt;br /&gt;
				.. &#039; protection#Current requests for edits to a protected page|request an&#039;&lt;br /&gt;
				.. &#039; edit]] to this page, or [[Wikipedia:Requests for&#039;&lt;br /&gt;
				.. &#039; page protection#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|ask]] for it to be unprotected.&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = {&lt;br /&gt;
			subject = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; The page may still be edited but cannot be moved&#039;&lt;br /&gt;
				.. &#039; until unprotected. Please discuss any suggested moves on the&#039;&lt;br /&gt;
				.. &#039; ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection|request]] that the page be&#039;&lt;br /&gt;
				.. &#039; unprotected.&#039;,&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; The page may still be edited but cannot be moved&#039;&lt;br /&gt;
				.. &#039; until unprotected. Please discuss any suggested moves at&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requested moves]]. You can also&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection|request]] that the page be&#039;&lt;br /&gt;
				.. &#039; unprotected.&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		default = {&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; Edits to this ${PAGETYPE} by new and unregistered users&#039;&lt;br /&gt;
				.. &#039; will not be visible to readers until they are accepted by&#039;&lt;br /&gt;
				.. &#039; a reviewer. To avoid the need for your edits to be&#039;&lt;br /&gt;
				.. &#039; reviewed, you may&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]], [[Special:Userlogin|log in]], or&#039;&lt;br /&gt;
				.. &#039; [[Special:UserLogin/signup|create an account]].&#039;&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = {&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; The page may still be edited but new versions of the file&#039;&lt;br /&gt;
				.. &#039; cannot be uploaded until it is unprotected. You can&#039;&lt;br /&gt;
				.. &#039; request that a new version be uploaded by using a&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Edit requests|protected edit request]], or you&#039;&lt;br /&gt;
				.. &#039; can  [[Wikipedia:Requests for page protection|request]]&#039;&lt;br /&gt;
				.. &#039; that the file be unprotected.&#039;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection levels&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which&lt;br /&gt;
-- produces a short label for different protection levels. It is sorted by&lt;br /&gt;
-- protection action and protection level, and is checked in the following&lt;br /&gt;
-- order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
-- 3. &amp;quot;edit&amp;quot; protection action, default protection level&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
protectionLevels = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;protected&#039;,&lt;br /&gt;
		templateeditor = &#039;template-protected&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;extended-confirmed-protected&#039;,&lt;br /&gt;
		autoconfirmed = &#039;semi-protected&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;move-protected&#039;&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;upload-protected&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Images&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table lists different padlock images for each protection action and&lt;br /&gt;
-- protection level. It is used if an image is not specified in any of the&lt;br /&gt;
-- banner data tables, and if the page does not satisfy the conditions for using&lt;br /&gt;
-- the [&#039;image-filename-indef&#039;] image. It is checked in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
images = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;Full-protection-shackle.svg&#039;,&lt;br /&gt;
		templateeditor = &#039;Template-protection-shackle.svg&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;Extended-protection-shackle.svg&#039;,&lt;br /&gt;
		autoconfirmed = &#039;Semi-protection-shackle.svg&#039;&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;Move-protection-shackle.svg&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		default = &#039;Pending-protection-shackle.svg&#039;&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;Upload-protection-shackle.svg&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- Pages with a reason specified in this table will show the special &amp;quot;indef&amp;quot;&lt;br /&gt;
-- padlock, defined in the &#039;image-filename-indef&#039; message, if no expiry is set.&lt;br /&gt;
indefImageReasons = {&lt;br /&gt;
	template = true&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Image links&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table provides the data for the ${IMAGELINK} parameter, which gets&lt;br /&gt;
-- the image link for small padlock icons based on the page&#039;s protection action&lt;br /&gt;
-- and protection level. It is checked in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
-- 3. &amp;quot;edit&amp;quot; protection action, default protection level&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
imageLinks = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;Wikipedia:Protection policy#full&#039;,&lt;br /&gt;
		templateeditor = &#039;Wikipedia:Protection policy#template&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;Wikipedia:Protection policy#extended&#039;,&lt;br /&gt;
		autoconfirmed = &#039;Wikipedia:Protection policy#semi&#039;&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;Wikipedia:Protection policy#move&#039;&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		default = &#039;Wikipedia:Protection policy#pending&#039;&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;Wikipedia:Protection policy#upload&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Padlock indicator names&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table provides the &amp;quot;name&amp;quot; attribute for the &amp;lt;indicator&amp;gt; extension tag&lt;br /&gt;
-- with which small padlock icons are generated. All indicator tags on a page&lt;br /&gt;
-- are displayed in alphabetical order based on this attribute, and with&lt;br /&gt;
-- indicator tags with duplicate names, the last tag on the page wins.&lt;br /&gt;
-- The attribute is chosen based on the protection action; table keys must be a&lt;br /&gt;
-- protection action name or the string &amp;quot;default&amp;quot;.&lt;br /&gt;
padlockIndicatorNames = {&lt;br /&gt;
	autoreview = &#039;pp-autoreview&#039;,&lt;br /&gt;
	default = &#039;pp-default&#039;&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection categories&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- The protection categories are stored in the protectionCategories table.&lt;br /&gt;
-- Keys to this table are made up of the following strings:&lt;br /&gt;
--&lt;br /&gt;
-- 1. the expiry date&lt;br /&gt;
-- 2. the namespace&lt;br /&gt;
-- 3. the protection reason (e.g. &amp;quot;dispute&amp;quot; or &amp;quot;vandalism&amp;quot;)&lt;br /&gt;
-- 4. the protection level (e.g. &amp;quot;sysop&amp;quot; or &amp;quot;autoconfirmed&amp;quot;)&lt;br /&gt;
-- 5. the action (e.g. &amp;quot;edit&amp;quot; or &amp;quot;move&amp;quot;)&lt;br /&gt;
-- &lt;br /&gt;
-- When the module looks up a category in the table, first it will will check to&lt;br /&gt;
-- see a key exists that corresponds to all five parameters. For example, a&lt;br /&gt;
-- user page semi-protected from vandalism for two weeks would have the key&lt;br /&gt;
-- &amp;quot;temp-user-vandalism-autoconfirmed-edit&amp;quot;. If no match is found, the module&lt;br /&gt;
-- changes the first part of the key to &amp;quot;all&amp;quot; and checks the table again. It&lt;br /&gt;
-- keeps checking increasingly generic key combinations until it finds the&lt;br /&gt;
-- field, or until it reaches the key &amp;quot;all-all-all-all-all&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- The module uses a binary matrix to determine the order in which to search.&lt;br /&gt;
-- This is best demonstrated by a table. In this table, the &amp;quot;0&amp;quot; values&lt;br /&gt;
-- represent &amp;quot;all&amp;quot;, and the &amp;quot;1&amp;quot; values represent the original data (e.g.&lt;br /&gt;
-- &amp;quot;indef&amp;quot; or &amp;quot;file&amp;quot; or &amp;quot;vandalism&amp;quot;).&lt;br /&gt;
--&lt;br /&gt;
--        expiry    namespace reason   level     action&lt;br /&gt;
-- order&lt;br /&gt;
-- 1      1         1         1        1         1&lt;br /&gt;
-- 2      0         1         1        1         1&lt;br /&gt;
-- 3      1         0         1        1         1&lt;br /&gt;
-- 4      0         0         1        1         1&lt;br /&gt;
-- 5      1         1         0        1         1&lt;br /&gt;
-- 6      0         1         0        1         1&lt;br /&gt;
-- 7      1         0         0        1         1&lt;br /&gt;
-- 8      0         0         0        1         1&lt;br /&gt;
-- 9      1         1         1        0         1&lt;br /&gt;
-- 10     0         1         1        0         1&lt;br /&gt;
-- 11     1         0         1        0         1&lt;br /&gt;
-- 12     0         0         1        0         1&lt;br /&gt;
-- 13     1         1         0        0         1&lt;br /&gt;
-- 14     0         1         0        0         1&lt;br /&gt;
-- 15     1         0         0        0         1&lt;br /&gt;
-- 16     0         0         0        0         1&lt;br /&gt;
-- 17     1         1         1        1         0&lt;br /&gt;
-- 18     0         1         1        1         0&lt;br /&gt;
-- 19     1         0         1        1         0&lt;br /&gt;
-- 20     0         0         1        1         0&lt;br /&gt;
-- 21     1         1         0        1         0&lt;br /&gt;
-- 22     0         1         0        1         0&lt;br /&gt;
-- 23     1         0         0        1         0&lt;br /&gt;
-- 24     0         0         0        1         0&lt;br /&gt;
-- 25     1         1         1        0         0&lt;br /&gt;
-- 26     0         1         1        0         0&lt;br /&gt;
-- 27     1         0         1        0         0&lt;br /&gt;
-- 28     0         0         1        0         0&lt;br /&gt;
-- 29     1         1         0        0         0&lt;br /&gt;
-- 30     0         1         0        0         0&lt;br /&gt;
-- 31     1         0         0        0         0&lt;br /&gt;
-- 32     0         0         0        0         0&lt;br /&gt;
--&lt;br /&gt;
-- In this scheme the action has the highest priority, as it is the last&lt;br /&gt;
-- to change, and the expiry has the least priority, as it changes the most.&lt;br /&gt;
-- The priorities of the expiry, the protection level and the action are&lt;br /&gt;
-- fixed, but the priorities of the reason and the namespace can be swapped&lt;br /&gt;
-- through the use of the cfg.bannerDataNamespaceHasPriority table.&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
-- If the reason specified to the template is listed in this table,&lt;br /&gt;
-- namespace data will take priority over reason data in the protectionCategories&lt;br /&gt;
-- table.&lt;br /&gt;
reasonsWithNamespacePriority = {&lt;br /&gt;
	vandalism = true,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- The string to use as a namespace key for the protectionCategories table for each&lt;br /&gt;
-- namespace number.&lt;br /&gt;
categoryNamespaceKeys = {&lt;br /&gt;
	[  2] = &#039;user&#039;,&lt;br /&gt;
	[  3] = &#039;user&#039;,&lt;br /&gt;
	[  4] = &#039;project&#039;,&lt;br /&gt;
	[  6] = &#039;file&#039;,&lt;br /&gt;
	[  8] = &#039;mediawiki&#039;,&lt;br /&gt;
	[ 10] = &#039;template&#039;,&lt;br /&gt;
	[ 12] = &#039;project&#039;,&lt;br /&gt;
	[ 14] = &#039;category&#039;,&lt;br /&gt;
	[100] = &#039;portal&#039;,&lt;br /&gt;
	[828] = &#039;module&#039;,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
protectionCategories = {&lt;br /&gt;
	[&#039;all|all|all|all|all&#039;]                     = &#039;Wikipedia fully protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|office|all|all&#039;]                  = &#039;Wikipedia Office-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|reset|all|all&#039;]                   = &#039;Wikipedia Office-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|dmca|all|all&#039;]                    = &#039;Wikipedia Office-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|mainpage|all|all&#039;]                = &#039;Wikipedia fully protected main page files&#039;,&lt;br /&gt;
	[&#039;all|all|all|extendedconfirmed|all&#039;]       = &#039;Wikipedia extended-confirmed-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|ecp|extendedconfirmed|all&#039;]       = &#039;Wikipedia extended-confirmed-protected pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|all|edit&#039;]               = &#039;Wikipedia fully protected templates&#039;,&lt;br /&gt;
	[&#039;all|all|all|autoconfirmed|edit&#039;]          = &#039;Wikipedia semi-protected pages&#039;,&lt;br /&gt;
	[&#039;indef|all|all|autoconfirmed|edit&#039;]        = &#039;Wikipedia indefinitely semi-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|blp|autoconfirmed|edit&#039;]          = &#039;Wikipedia indefinitely semi-protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;temp|all|blp|autoconfirmed|edit&#039;]         = &#039;Wikipedia temporarily semi-protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;all|all|dispute|autoconfirmed|edit&#039;]      = &#039;Wikipedia pages semi-protected due to dispute&#039;,&lt;br /&gt;
	[&#039;all|all|sock|autoconfirmed|edit&#039;]         = &#039;Wikipedia pages semi-protected from banned users&#039;,&lt;br /&gt;
	[&#039;all|all|vandalism|autoconfirmed|edit&#039;]    = &#039;Wikipedia pages semi-protected against vandalism&#039;,&lt;br /&gt;
	[&#039;all|category|all|autoconfirmed|edit&#039;]     = &#039;Wikipedia semi-protected categories&#039;,&lt;br /&gt;
	[&#039;all|file|all|autoconfirmed|edit&#039;]         = &#039;Wikipedia semi-protected files&#039;,&lt;br /&gt;
	[&#039;all|portal|all|autoconfirmed|edit&#039;]       = &#039;Wikipedia semi-protected portals&#039;,&lt;br /&gt;
	[&#039;all|project|all|autoconfirmed|edit&#039;]      = &#039;Wikipedia semi-protected project pages&#039;,&lt;br /&gt;
	[&#039;all|talk|all|autoconfirmed|edit&#039;]         = &#039;Wikipedia semi-protected talk pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|autoconfirmed|edit&#039;]     = &#039;Wikipedia semi-protected templates&#039;,&lt;br /&gt;
	[&#039;all|user|all|autoconfirmed|edit&#039;]         = &#039;Wikipedia semi-protected user and user talk pages&#039;,&lt;br /&gt;
	[&#039;all|all|all|templateeditor|move&#039;]         = &#039;Wikipedia template-protected pages other than templates and modules&#039;,&lt;br /&gt;
	[&#039;all|all|all|templateeditor|edit&#039;]         = &#039;Wikipedia template-protected pages other than templates and modules&#039;,&lt;br /&gt;
	[&#039;all|template|all|templateeditor|edit&#039;]    = &#039;Wikipedia template-protected templates&#039;,&lt;br /&gt;
	[&#039;all|template|all|templateeditor|move&#039;]    = &#039;Wikipedia template-protected templates&#039;, -- move-protected templates&lt;br /&gt;
	[&#039;all|all|blp|sysop|edit&#039;]                  = &#039;Wikipedia indefinitely protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;temp|all|blp|sysop|edit&#039;]                 = &#039;Wikipedia temporarily protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;all|all|dispute|sysop|edit&#039;]              = &#039;Wikipedia pages protected due to dispute&#039;,&lt;br /&gt;
	[&#039;all|all|sock|sysop|edit&#039;]                 = &#039;Wikipedia pages protected from banned users&#039;,&lt;br /&gt;
	[&#039;all|all|vandalism|sysop|edit&#039;]            = &#039;Wikipedia pages protected against vandalism&#039;,&lt;br /&gt;
	[&#039;all|category|all|sysop|edit&#039;]             = &#039;Wikipedia fully protected categories&#039;,&lt;br /&gt;
	[&#039;all|file|all|sysop|edit&#039;]                 = &#039;Wikipedia fully protected files&#039;,&lt;br /&gt;
	[&#039;all|project|all|sysop|edit&#039;]              = &#039;Wikipedia fully protected project pages&#039;,&lt;br /&gt;
	[&#039;all|talk|all|sysop|edit&#039;]                 = &#039;Wikipedia fully protected talk pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|extendedconfirmed|edit&#039;] = &#039;Wikipedia extended-confirmed-protected templates&#039;,&lt;br /&gt;
	[&#039;all|template|all|sysop|edit&#039;]             = &#039;Wikipedia fully protected templates&#039;,&lt;br /&gt;
	[&#039;all|user|all|sysop|edit&#039;]                 = &#039;Wikipedia fully protected user and user talk pages&#039;,&lt;br /&gt;
	[&#039;all|module|all|all|edit&#039;]                 = &#039;Wikipedia fully protected modules&#039;,&lt;br /&gt;
	[&#039;all|module|all|templateeditor|edit&#039;]      = &#039;Wikipedia template-protected modules&#039;,&lt;br /&gt;
	[&#039;all|module|all|extendedconfirmed|edit&#039;]   = &#039;Wikipedia extended-confirmed-protected modules&#039;,&lt;br /&gt;
	[&#039;all|module|all|autoconfirmed|edit&#039;]       = &#039;Wikipedia semi-protected modules&#039;,&lt;br /&gt;
	[&#039;all|all|all|sysop|move&#039;]                  = &#039;Wikipedia move-protected pages&#039;,&lt;br /&gt;
	[&#039;indef|all|all|sysop|move&#039;]                = &#039;Wikipedia indefinitely move-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|dispute|sysop|move&#039;]              = &#039;Wikipedia pages move-protected due to dispute&#039;,&lt;br /&gt;
	[&#039;all|all|vandalism|sysop|move&#039;]            = &#039;Wikipedia pages move-protected due to vandalism&#039;,&lt;br /&gt;
	[&#039;all|portal|all|sysop|move&#039;]               = &#039;Wikipedia move-protected portals&#039;,&lt;br /&gt;
	[&#039;all|project|all|sysop|move&#039;]              = &#039;Wikipedia move-protected project pages&#039;,&lt;br /&gt;
	[&#039;all|talk|all|sysop|move&#039;]                 = &#039;Wikipedia move-protected talk pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|sysop|move&#039;]             = &#039;Wikipedia move-protected templates&#039;,&lt;br /&gt;
	[&#039;all|user|all|sysop|move&#039;]                 = &#039;Wikipedia move-protected user and user talk pages&#039;,&lt;br /&gt;
	[&#039;all|all|all|autoconfirmed|autoreview&#039;]    = &#039;Wikipedia pending changes protected pages&#039;,&lt;br /&gt;
	[&#039;all|file|all|all|upload&#039;]                 = &#039;Wikipedia upload-protected files&#039;,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Expiry category config&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table configures the expiry category behaviour for each protection&lt;br /&gt;
-- action.&lt;br /&gt;
-- * If set to true, setting that action will always categorise the page if&lt;br /&gt;
--   an expiry parameter is not set.&lt;br /&gt;
-- * If set to false, setting that action will never categorise the page.&lt;br /&gt;
-- * If set to nil, the module will categorise the page if:&lt;br /&gt;
--   1) an expiry parameter is not set, and&lt;br /&gt;
--   2) a reason is provided, and&lt;br /&gt;
--   3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck&lt;br /&gt;
--      table.&lt;br /&gt;
&lt;br /&gt;
expiryCheckActions = {&lt;br /&gt;
	edit = nil,&lt;br /&gt;
	move = false,&lt;br /&gt;
	autoreview = true,&lt;br /&gt;
	upload = false&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
reasonsWithoutExpiryCheck = {&lt;br /&gt;
	blp = true,&lt;br /&gt;
	template = true,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Pagetypes&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table produces the page types available with the ${PAGETYPE} parameter.&lt;br /&gt;
-- Keys are namespace numbers, or the string &amp;quot;default&amp;quot; for the default value.&lt;br /&gt;
pagetypes = {&lt;br /&gt;
	[0] = &#039;article&#039;,&lt;br /&gt;
	[6] = &#039;file&#039;,&lt;br /&gt;
	[10] = &#039;template&#039;,&lt;br /&gt;
	[14] = &#039;category&#039;,&lt;br /&gt;
	[828] = &#039;module&#039;,&lt;br /&gt;
	default = &#039;page&#039;&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Strings marking indefinite protection&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table contains values passed to the expiry parameter that mean the page&lt;br /&gt;
-- is protected indefinitely.&lt;br /&gt;
indefStrings = {&lt;br /&gt;
	[&#039;indef&#039;] = true,&lt;br /&gt;
	[&#039;indefinite&#039;] = true,&lt;br /&gt;
	[&#039;indefinitely&#039;] = true,&lt;br /&gt;
	[&#039;infinite&#039;] = true,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Group hierarchy&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table maps each group to all groups that have a superset of the original&lt;br /&gt;
-- group&#039;s page editing permissions.&lt;br /&gt;
hierarchy = {&lt;br /&gt;
	sysop = {},&lt;br /&gt;
	reviewer = {&#039;sysop&#039;},&lt;br /&gt;
	filemover = {&#039;sysop&#039;},&lt;br /&gt;
	templateeditor = {&#039;sysop&#039;},&lt;br /&gt;
	extendedconfirmed = {&#039;sysop&#039;},&lt;br /&gt;
	autoconfirmed = {&#039;reviewer&#039;, &#039;filemover&#039;, &#039;templateeditor&#039;, &#039;extendedconfirmed&#039;},&lt;br /&gt;
	user = {&#039;autoconfirmed&#039;},&lt;br /&gt;
	[&#039;*&#039;] = {&#039;user&#039;}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Wrapper templates and their default arguments&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table contains wrapper templates used with the module, and their&lt;br /&gt;
-- default arguments. Templates specified in this table should contain the&lt;br /&gt;
-- following invocation, and no other template content:&lt;br /&gt;
--&lt;br /&gt;
-- {{#invoke:Protection banner|main}}&lt;br /&gt;
--&lt;br /&gt;
-- If other content is desired, it can be added between&lt;br /&gt;
-- &amp;lt;noinclude&amp;gt;...&amp;lt;/noinclude&amp;gt; tags.&lt;br /&gt;
--&lt;br /&gt;
-- When a user calls one of these wrapper templates, they will use the&lt;br /&gt;
-- default arguments automatically. However, users can override any of the&lt;br /&gt;
-- arguments.&lt;br /&gt;
wrappers = {&lt;br /&gt;
	[&#039;Template:Pp&#039;]                         = {},&lt;br /&gt;
	[&#039;Template:Protection padlock&#039;]         = {},&lt;br /&gt;
	[&#039;Template:Pp-extended&#039;]                = {&#039;ecp&#039;},&lt;br /&gt;
	[&#039;Template:Pp-blp&#039;]                     = {&#039;blp&#039;},&lt;br /&gt;
	-- we don&#039;t need Template:Pp-create&lt;br /&gt;
	[&#039;Template:Pp-dispute&#039;]                 = {&#039;dispute&#039;},&lt;br /&gt;
	[&#039;Template:Pp-main-page&#039;]               = {&#039;mainpage&#039;},&lt;br /&gt;
	[&#039;Template:Pp-move&#039;]                    = {action = &#039;move&#039;, catonly = &#039;yes&#039;},&lt;br /&gt;
	[&#039;Template:Pp-move-dispute&#039;]            = {&#039;dispute&#039;, action = &#039;move&#039;, catonly = &#039;yes&#039;},&lt;br /&gt;
	-- we don&#039;t need Template:Pp-move-indef&lt;br /&gt;
	[&#039;Template:Pp-move-vandalism&#039;]          = {&#039;vandalism&#039;, action = &#039;move&#039;, catonly = &#039;yes&#039;},&lt;br /&gt;
	[&#039;Template:Pp-office&#039;]                  = {&#039;office&#039;},&lt;br /&gt;
	[&#039;Template:Pp-office-dmca&#039;]             = {&#039;dmca&#039;},&lt;br /&gt;
	[&#039;Template:Pp-pc&#039;]                      = {action = &#039;autoreview&#039;, small = true},&lt;br /&gt;
	[&#039;Template:Pp-pc1&#039;]                     = {action = &#039;autoreview&#039;, small = true},&lt;br /&gt;
	[&#039;Template:Pp-reset&#039;]                   = {&#039;reset&#039;},&lt;br /&gt;
	[&#039;Template:Pp-semi-indef&#039;]              = {small = true},&lt;br /&gt;
	[&#039;Template:Pp-sock&#039;]                    = {&#039;sock&#039;},&lt;br /&gt;
	[&#039;Template:Pp-template&#039;]                = {&#039;template&#039;, small = true},&lt;br /&gt;
	[&#039;Template:Pp-upload&#039;]                  = {action = &#039;upload&#039;},&lt;br /&gt;
	[&#039;Template:Pp-usertalk&#039;]                = {&#039;usertalk&#039;},&lt;br /&gt;
	[&#039;Template:Pp-vandalism&#039;]               = {&#039;vandalism&#039;},&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- &lt;br /&gt;
--                                 MESSAGES&lt;br /&gt;
-- &lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
msg = {&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Intro blurb and intro fragment&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages specify what is produced by the ${INTROBLURB} and&lt;br /&gt;
-- ${INTROFRAGMENT} parameters. If the protection is temporary they use the&lt;br /&gt;
-- intro-blurb-expiry or intro-fragment-expiry, and if not they use&lt;br /&gt;
-- intro-blurb-noexpiry or intro-fragment-noexpiry.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;intro-blurb-expiry&#039;] = &#039;${PROTECTIONBLURB} until ${EXPIRY}.&#039;,&lt;br /&gt;
[&#039;intro-blurb-noexpiry&#039;] = &#039;${PROTECTIONBLURB}.&#039;,&lt;br /&gt;
[&#039;intro-fragment-expiry&#039;] = &#039;${PROTECTIONBLURB} until ${EXPIRY},&#039;,&lt;br /&gt;
[&#039;intro-fragment-noexpiry&#039;] = &#039;${PROTECTIONBLURB}&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Tooltip blurb&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages specify what is produced by the ${TOOLTIPBLURB} parameter.&lt;br /&gt;
-- If the protection is temporary the tooltip-blurb-expiry message is used, and&lt;br /&gt;
-- if not the tooltip-blurb-noexpiry message is used.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;tooltip-blurb-expiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.&#039;,&lt;br /&gt;
[&#039;tooltip-blurb-noexpiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL}.&#039;,&lt;br /&gt;
[&#039;tooltip-fragment-expiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},&#039;,&lt;br /&gt;
[&#039;tooltip-fragment-noexpiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL}&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Special explanation blurb&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- An explanation blurb for pages that cannot be unprotected, e.g. for pages&lt;br /&gt;
-- in the MediaWiki namespace.&lt;br /&gt;
-- It is possible to use banner parameters in this message.&lt;br /&gt;
[&#039;explanation-blurb-nounprotect&#039;] = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
	.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
	.. &#039; Please discuss any changes on the ${TALKPAGE}; you&#039;&lt;br /&gt;
	.. &#039; may ${EDITREQUEST} to ask an&#039;&lt;br /&gt;
	.. &#039; [[Wikipedia:Administrators|administrator]] to make an edit if it&#039;&lt;br /&gt;
	.. &#039; is [[Help:Minor edit#When to mark an edit as a minor edit&#039;&lt;br /&gt;
	.. &#039;|uncontroversial]] or supported by [[Wikipedia:Consensus&#039;&lt;br /&gt;
	.. &#039;|consensus]].&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection log display values&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages determine the display values for the protection log link&lt;br /&gt;
-- or the pending changes log link produced by the ${PROTECTIONLOG} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;protection-log-display&#039;] = &#039;protection log&#039;,&lt;br /&gt;
[&#039;pc-log-display&#039;] = &#039;pending changes log&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Current version display values&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages determine the display values for the page history link&lt;br /&gt;
-- or the move log link produced by the ${CURRENTVERSION} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;current-version-move-display&#039;] = &#039;current title&#039;,&lt;br /&gt;
[&#039;current-version-edit-display&#039;] = &#039;current version&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Talk page&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This message determines the display value of the talk page link produced&lt;br /&gt;
-- with the ${TALKPAGE} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in this message.&lt;br /&gt;
[&#039;talk-page-link-display&#039;] = &#039;talk page&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Edit requests&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This message determines the display value of the edit request link produced&lt;br /&gt;
-- with the ${EDITREQUEST} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in this message.&lt;br /&gt;
[&#039;edit-request-display&#039;] = &#039;submit an edit request&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Expiry date format&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This is the format for the blurb expiry date. It should be valid input for&lt;br /&gt;
-- the first parameter of the #time parser function.&lt;br /&gt;
[&#039;expiry-date-format&#039;] = &#039;F j, Y &amp;quot;at&amp;quot; H:i e&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Tracking categories&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages determine which tracking categories the module outputs.&lt;br /&gt;
[&#039;tracking-category-incorrect&#039;] = &#039;Wikipedia pages with incorrect protection templates&#039;,&lt;br /&gt;
[&#039;tracking-category-template&#039;] = &#039;Wikipedia template-protected pages other than templates and modules&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Images&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These are images that are not defined by their protection action and protection level.&lt;br /&gt;
[&#039;image-filename-indef&#039;] = &#039;Full-protection-shackle.svg&#039;,&lt;br /&gt;
[&#039;image-filename-default&#039;] = &#039;Transparent.gif&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- End messages&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- End configuration&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Protection_banner&amp;diff=163</id>
		<title>Module:Protection banner</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Protection_banner&amp;diff=163"/>
		<updated>2026-04-14T17:34:54Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements {{pp-meta}} and its daughter templates such as&lt;br /&gt;
-- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}.&lt;br /&gt;
&lt;br /&gt;
-- Initialise necessary modules.&lt;br /&gt;
require(&#039;strict&#039;)&lt;br /&gt;
local makeFileLink = require(&#039;Module:File link&#039;)._main&lt;br /&gt;
local effectiveProtectionLevel = require(&#039;Module:Effective protection level&#039;)._main&lt;br /&gt;
local effectiveProtectionExpiry = require(&#039;Module:Effective protection expiry&#039;)._main&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
&lt;br /&gt;
-- Lazily initialise modules and objects we don&#039;t always need.&lt;br /&gt;
local getArgs, makeMessageBox, lang&lt;br /&gt;
&lt;br /&gt;
-- Set constants.&lt;br /&gt;
local CONFIG_MODULE = &#039;Module:Protection banner/config&#039;&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function makeCategoryLink(cat, sort)&lt;br /&gt;
	if cat then&lt;br /&gt;
		return string.format(&lt;br /&gt;
			&#039;[[%s:%s|%s]]&#039;,&lt;br /&gt;
			mw.site.namespaces[14].name,&lt;br /&gt;
			cat,&lt;br /&gt;
			sort&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Validation function for the expiry and the protection date&lt;br /&gt;
local function validateDate(dateString, dateType)&lt;br /&gt;
	if not lang then&lt;br /&gt;
		lang = mw.language.getContentLanguage()&lt;br /&gt;
	end&lt;br /&gt;
	local success, result = pcall(lang.formatDate, lang, &#039;U&#039;, dateString)&lt;br /&gt;
	if success then&lt;br /&gt;
		result = tonumber(result)&lt;br /&gt;
		if result then&lt;br /&gt;
			return result&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	error(string.format(&lt;br /&gt;
		&#039;invalid %s: %s&#039;,&lt;br /&gt;
		dateType,&lt;br /&gt;
		tostring(dateString)&lt;br /&gt;
	), 4)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeFullUrl(page, query, display)&lt;br /&gt;
	return string.format(&lt;br /&gt;
		&#039;[%s %s]&#039;,&lt;br /&gt;
		tostring(mw.uri.fullUrl(page, query)),&lt;br /&gt;
		display&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Given a directed graph formatted as node -&amp;gt; table of direct successors,&lt;br /&gt;
-- get a table of all nodes reachable from a given node (though always&lt;br /&gt;
-- including the given node).&lt;br /&gt;
local function getReachableNodes(graph, start)&lt;br /&gt;
	local toWalk, retval = {[start] = true}, {}&lt;br /&gt;
	while true do&lt;br /&gt;
		-- Can&#039;t use pairs() since we&#039;re adding and removing things as we&#039;re iterating&lt;br /&gt;
		local k = next(toWalk) -- This always gets the &amp;quot;first&amp;quot; key&lt;br /&gt;
		if k == nil then&lt;br /&gt;
			return retval&lt;br /&gt;
		end&lt;br /&gt;
		toWalk[k] = nil&lt;br /&gt;
		retval[k] = true&lt;br /&gt;
		for _,v in ipairs(graph[k]) do&lt;br /&gt;
			if not retval[v] then&lt;br /&gt;
				toWalk[v] = true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection class&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local Protection = {}&lt;br /&gt;
Protection.__index = Protection&lt;br /&gt;
&lt;br /&gt;
Protection.supportedActions = {&lt;br /&gt;
	edit = true,&lt;br /&gt;
	move = true,&lt;br /&gt;
	autoreview = true,&lt;br /&gt;
	upload = true&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Protection.bannerConfigFields = {&lt;br /&gt;
	&#039;text&#039;,&lt;br /&gt;
	&#039;explanation&#039;,&lt;br /&gt;
	&#039;tooltip&#039;,&lt;br /&gt;
	&#039;alt&#039;,&lt;br /&gt;
	&#039;link&#039;,&lt;br /&gt;
	&#039;image&#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Protection.new(args, cfg, title)&lt;br /&gt;
	local obj = {}&lt;br /&gt;
	obj._cfg = cfg&lt;br /&gt;
	obj.title = title or mw.title.getCurrentTitle()&lt;br /&gt;
&lt;br /&gt;
	-- Set action&lt;br /&gt;
	if not args.action then&lt;br /&gt;
		obj.action = &#039;edit&#039;&lt;br /&gt;
	elseif Protection.supportedActions[args.action] then&lt;br /&gt;
		obj.action = args.action&lt;br /&gt;
	else&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&#039;invalid action: %s&#039;,&lt;br /&gt;
			tostring(args.action)&lt;br /&gt;
		), 3)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set level&lt;br /&gt;
	obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title)&lt;br /&gt;
	if not obj.level or (obj.action == &#039;move&#039; and obj.level == &#039;autoconfirmed&#039;) then&lt;br /&gt;
		-- Users need to be autoconfirmed to move pages anyway, so treat&lt;br /&gt;
		-- semi-move-protected pages as unprotected.&lt;br /&gt;
		obj.level = &#039;*&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set expiry&lt;br /&gt;
	local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title)&lt;br /&gt;
	if effectiveExpiry == &#039;infinity&#039; then&lt;br /&gt;
		obj.expiry = &#039;indef&#039;&lt;br /&gt;
	elseif effectiveExpiry ~= &#039;unknown&#039; then&lt;br /&gt;
		obj.expiry = validateDate(effectiveExpiry, &#039;expiry date&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set reason&lt;br /&gt;
	if args[1] then&lt;br /&gt;
		obj.reason = mw.ustring.lower(args[1])&lt;br /&gt;
		if obj.reason:find(&#039;|&#039;) then&lt;br /&gt;
			error(&#039;reasons cannot contain the pipe character (&amp;quot;|&amp;quot;)&#039;, 3)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set protection date&lt;br /&gt;
	if args.date then&lt;br /&gt;
		obj.protectionDate = validateDate(args.date, &#039;protection date&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Set banner config&lt;br /&gt;
	do&lt;br /&gt;
		obj.bannerConfig = {}&lt;br /&gt;
		local configTables = {}&lt;br /&gt;
		if cfg.banners[obj.action] then&lt;br /&gt;
			configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason]&lt;br /&gt;
		end&lt;br /&gt;
		if cfg.defaultBanners[obj.action] then&lt;br /&gt;
			configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level]&lt;br /&gt;
			configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default&lt;br /&gt;
		end&lt;br /&gt;
		configTables[#configTables + 1] = cfg.masterBanner&lt;br /&gt;
		for i, field in ipairs(Protection.bannerConfigFields) do&lt;br /&gt;
			for j, t in ipairs(configTables) do&lt;br /&gt;
				if t[field] then&lt;br /&gt;
					obj.bannerConfig[field] = t[field]&lt;br /&gt;
					break&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return setmetatable(obj, Protection)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Protection:isUserScript()&lt;br /&gt;
	-- Whether the page is a user JavaScript or CSS page.&lt;br /&gt;
	local title = self.title&lt;br /&gt;
	return title.namespace == 2 and (&lt;br /&gt;
		title.contentModel == &#039;javascript&#039; or title.contentModel == &#039;css&#039;&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Protection:isProtected()&lt;br /&gt;
	return self.level ~= &#039;*&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Protection:shouldShowLock()&lt;br /&gt;
	-- Whether we should output a banner/padlock&lt;br /&gt;
	return self:isProtected() and not self:isUserScript()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Whether this page needs a protection category.&lt;br /&gt;
Protection.shouldHaveProtectionCategory = Protection.shouldShowLock&lt;br /&gt;
&lt;br /&gt;
function Protection:isTemporary()&lt;br /&gt;
	return type(self.expiry) == &#039;number&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Protection:makeProtectionCategory()&lt;br /&gt;
	if not self:shouldHaveProtectionCategory() then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local cfg = self._cfg&lt;br /&gt;
	local title = self.title&lt;br /&gt;
	&lt;br /&gt;
	-- Get the expiry key fragment.&lt;br /&gt;
	local expiryFragment&lt;br /&gt;
	if self.expiry == &#039;indef&#039; then&lt;br /&gt;
		expiryFragment = self.expiry&lt;br /&gt;
	elseif type(self.expiry) == &#039;number&#039; then&lt;br /&gt;
		expiryFragment = &#039;temp&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get the namespace key fragment.&lt;br /&gt;
	local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace]&lt;br /&gt;
	if not namespaceFragment and title.namespace % 2 == 1 then&lt;br /&gt;
			namespaceFragment = &#039;talk&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Define the order that key fragments are tested in. This is done with an&lt;br /&gt;
	-- array of tables containing the value to be tested, along with its&lt;br /&gt;
	-- position in the cfg.protectionCategories table.&lt;br /&gt;
	local order = {&lt;br /&gt;
		{val = expiryFragment,    keypos = 1},&lt;br /&gt;
		{val = namespaceFragment, keypos = 2},&lt;br /&gt;
		{val = self.reason,       keypos = 3},&lt;br /&gt;
		{val = self.level,        keypos = 4},&lt;br /&gt;
		{val = self.action,       keypos = 5}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	-- The old protection templates used an ad-hoc protection category system,&lt;br /&gt;
	-- with some templates prioritising namespaces in their categories, and&lt;br /&gt;
	-- others prioritising the protection reason. To emulate this in this module&lt;br /&gt;
	-- we use the config table cfg.reasonsWithNamespacePriority to set the&lt;br /&gt;
	-- reasons for which namespaces have priority over protection reason.&lt;br /&gt;
	-- If we are dealing with one of those reasons, move the namespace table to&lt;br /&gt;
	-- the end of the order table, i.e. give it highest priority. If not, the&lt;br /&gt;
	-- reason should have highest priority, so move that to the end of the table&lt;br /&gt;
	-- instead.&lt;br /&gt;
	--]]&lt;br /&gt;
	table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3))&lt;br /&gt;
 &lt;br /&gt;
	--[[&lt;br /&gt;
	-- Define the attempt order. Inactive subtables (subtables with nil &amp;quot;value&amp;quot;&lt;br /&gt;
	-- fields) are moved to the end, where they will later be given the key&lt;br /&gt;
	-- &amp;quot;all&amp;quot;. This is to cut down on the number of table lookups in&lt;br /&gt;
	-- cfg.protectionCategories, which grows exponentially with the number of&lt;br /&gt;
	-- non-nil keys. We keep track of the number of active subtables with the&lt;br /&gt;
	-- noActive parameter.&lt;br /&gt;
	--]]&lt;br /&gt;
	local noActive, attemptOrder&lt;br /&gt;
	do&lt;br /&gt;
		local active, inactive = {}, {}&lt;br /&gt;
		for i, t in ipairs(order) do&lt;br /&gt;
			if t.val then&lt;br /&gt;
				active[#active + 1] = t&lt;br /&gt;
			else&lt;br /&gt;
				inactive[#inactive + 1] = t&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		noActive = #active&lt;br /&gt;
		attemptOrder = active&lt;br /&gt;
		for i, t in ipairs(inactive) do&lt;br /&gt;
			attemptOrder[#attemptOrder + 1] = t&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
	--[[&lt;br /&gt;
	-- Check increasingly generic key combinations until we find a match. If a&lt;br /&gt;
	-- specific category exists for the combination of key fragments we are&lt;br /&gt;
	-- given, that match will be found first. If not, we keep trying different&lt;br /&gt;
	-- key fragment combinations until we match using the key&lt;br /&gt;
	-- &amp;quot;all-all-all-all-all&amp;quot;.&lt;br /&gt;
	--&lt;br /&gt;
	-- To generate the keys, we index the key subtables using a binary matrix&lt;br /&gt;
	-- with indexes i and j. j is only calculated up to the number of active&lt;br /&gt;
	-- subtables. For example, if there were three active subtables, the matrix&lt;br /&gt;
	-- would look like this, with 0 corresponding to the key fragment &amp;quot;all&amp;quot;, and&lt;br /&gt;
	-- 1 corresponding to other key fragments.&lt;br /&gt;
	-- &lt;br /&gt;
	--   j 1  2  3&lt;br /&gt;
	-- i  &lt;br /&gt;
	-- 1   1  1  1&lt;br /&gt;
	-- 2   0  1  1&lt;br /&gt;
	-- 3   1  0  1&lt;br /&gt;
	-- 4   0  0  1&lt;br /&gt;
	-- 5   1  1  0&lt;br /&gt;
	-- 6   0  1  0&lt;br /&gt;
	-- 7   1  0  0&lt;br /&gt;
	-- 8   0  0  0&lt;br /&gt;
	-- &lt;br /&gt;
	-- Values of j higher than the number of active subtables are set&lt;br /&gt;
	-- to the string &amp;quot;all&amp;quot;.&lt;br /&gt;
	--&lt;br /&gt;
	-- A key for cfg.protectionCategories is constructed for each value of i.&lt;br /&gt;
	-- The position of the value in the key is determined by the keypos field in&lt;br /&gt;
	-- each subtable.&lt;br /&gt;
	--]]&lt;br /&gt;
	local cats = cfg.protectionCategories&lt;br /&gt;
	for i = 1, 2^noActive do&lt;br /&gt;
		local key = {}&lt;br /&gt;
		for j, t in ipairs(attemptOrder) do&lt;br /&gt;
			if j &amp;gt; noActive then&lt;br /&gt;
				key[t.keypos] = &#039;all&#039;&lt;br /&gt;
			else&lt;br /&gt;
				local quotient = i / 2 ^ (j - 1)&lt;br /&gt;
				quotient = math.ceil(quotient)&lt;br /&gt;
				if quotient % 2 == 1 then&lt;br /&gt;
					key[t.keypos] = t.val&lt;br /&gt;
				else&lt;br /&gt;
					key[t.keypos] = &#039;all&#039;&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		key = table.concat(key, &#039;|&#039;)&lt;br /&gt;
		local attempt = cats[key]&lt;br /&gt;
		if attempt then&lt;br /&gt;
			return makeCategoryLink(attempt, title.text)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Protection:isIncorrect()&lt;br /&gt;
	if not self:shouldHaveProtectionCategory() then&lt;br /&gt;
		return true&lt;br /&gt;
	end&lt;br /&gt;
	if type(self.expiry) ~= &#039;number&#039; then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	local expiry = os.date(&#039;*t&#039;, self.expiry)&lt;br /&gt;
	-- Avoid checking today.day or os.time(), unless close. https://phabricator.wikimedia.org/T416616&lt;br /&gt;
	local today = os.date(&#039;*t&#039;)&lt;br /&gt;
	return (expiry.year &amp;lt; today.year)&lt;br /&gt;
		or (expiry.year == today.year and expiry.month &amp;lt; today.month)&lt;br /&gt;
		or (expiry.year == today.year and expiry.month == today.month and expiry.day &amp;lt; today.day)&lt;br /&gt;
		or (expiry.year == today.year and expiry.month == today.month and expiry.day == today.day and self.expiry &amp;lt; os.time())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Protection:isTemplateProtectedNonTemplate()&lt;br /&gt;
	local action, namespace = self.action, self.title.namespace&lt;br /&gt;
	return self.level == &#039;templateeditor&#039;&lt;br /&gt;
		and (&lt;br /&gt;
			(action ~= &#039;edit&#039; and action ~= &#039;move&#039;)&lt;br /&gt;
			or (namespace ~= 10 and namespace ~= 828)&lt;br /&gt;
		)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Protection:makeCategoryLinks()&lt;br /&gt;
	local msg = self._cfg.msg&lt;br /&gt;
	local ret = {self:makeProtectionCategory()}&lt;br /&gt;
	if self:isIncorrect() then&lt;br /&gt;
		ret[#ret + 1] = makeCategoryLink(&lt;br /&gt;
			msg[&#039;tracking-category-incorrect&#039;],&lt;br /&gt;
			self.title.text&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	if self:isTemplateProtectedNonTemplate() then&lt;br /&gt;
		ret[#ret + 1] = makeCategoryLink(&lt;br /&gt;
			msg[&#039;tracking-category-template&#039;],&lt;br /&gt;
			self.title.text&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(ret)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Blurb class&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local Blurb = {}&lt;br /&gt;
Blurb.__index = Blurb&lt;br /&gt;
&lt;br /&gt;
Blurb.bannerTextFields = {&lt;br /&gt;
	text = true,&lt;br /&gt;
	explanation = true,&lt;br /&gt;
	tooltip = true,&lt;br /&gt;
	alt = true,&lt;br /&gt;
	link = true&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Blurb.new(protectionObj, args, cfg)&lt;br /&gt;
	return setmetatable({&lt;br /&gt;
		_cfg = cfg,&lt;br /&gt;
		_protectionObj = protectionObj,&lt;br /&gt;
		_args = args&lt;br /&gt;
	}, Blurb)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Private methods --&lt;br /&gt;
&lt;br /&gt;
function Blurb:_formatDate(num)&lt;br /&gt;
	-- Formats a Unix timestamp into dd Month, YYYY format.&lt;br /&gt;
	lang = lang or mw.language.getContentLanguage()&lt;br /&gt;
	local success, date = pcall(&lt;br /&gt;
		lang.formatDate,&lt;br /&gt;
		lang,&lt;br /&gt;
		self._cfg.msg[&#039;expiry-date-format&#039;] or &#039;j F Y&#039;,&lt;br /&gt;
		&#039;@&#039; .. tostring(num)&lt;br /&gt;
	)&lt;br /&gt;
	if success then&lt;br /&gt;
		return date&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_getExpandedMessage(msgKey)&lt;br /&gt;
	return self:_substituteParameters(self._cfg.msg[msgKey])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_substituteParameters(msg)&lt;br /&gt;
	if not self._params then&lt;br /&gt;
		local parameterFuncs = {}&lt;br /&gt;
&lt;br /&gt;
		parameterFuncs.CURRENTVERSION     = self._makeCurrentVersionParameter&lt;br /&gt;
		parameterFuncs.EDITREQUEST        = self._makeEditRequestParameter&lt;br /&gt;
		parameterFuncs.EXPIRY             = self._makeExpiryParameter&lt;br /&gt;
		parameterFuncs.EXPLANATIONBLURB   = self._makeExplanationBlurbParameter&lt;br /&gt;
		parameterFuncs.IMAGELINK          = self._makeImageLinkParameter&lt;br /&gt;
		parameterFuncs.INTROBLURB         = self._makeIntroBlurbParameter&lt;br /&gt;
		parameterFuncs.INTROFRAGMENT      = self._makeIntroFragmentParameter&lt;br /&gt;
		parameterFuncs.PAGETYPE           = self._makePagetypeParameter&lt;br /&gt;
		parameterFuncs.PROTECTIONBLURB    = self._makeProtectionBlurbParameter&lt;br /&gt;
		parameterFuncs.PROTECTIONDATE     = self._makeProtectionDateParameter&lt;br /&gt;
		parameterFuncs.PROTECTIONLEVEL    = self._makeProtectionLevelParameter&lt;br /&gt;
		parameterFuncs.PROTECTIONLOG      = self._makeProtectionLogParameter&lt;br /&gt;
		parameterFuncs.TALKPAGE           = self._makeTalkPageParameter&lt;br /&gt;
		parameterFuncs.TOOLTIPBLURB       = self._makeTooltipBlurbParameter&lt;br /&gt;
		parameterFuncs.TOOLTIPFRAGMENT    = self._makeTooltipFragmentParameter&lt;br /&gt;
		parameterFuncs.VANDAL             = self._makeVandalTemplateParameter&lt;br /&gt;
		&lt;br /&gt;
		self._params = setmetatable({}, {&lt;br /&gt;
			__index = function (t, k)&lt;br /&gt;
				local param&lt;br /&gt;
				if parameterFuncs[k] then&lt;br /&gt;
					param = parameterFuncs[k](self)&lt;br /&gt;
				end&lt;br /&gt;
				param = param or &#039;&#039;&lt;br /&gt;
				t[k] = param&lt;br /&gt;
				return param&lt;br /&gt;
			end&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	msg = msg:gsub(&#039;${(%u+)}&#039;, self._params)&lt;br /&gt;
	return msg&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeCurrentVersionParameter()&lt;br /&gt;
	-- A link to the page history or the move log, depending on the kind of&lt;br /&gt;
	-- protection.&lt;br /&gt;
	local pagename = self._protectionObj.title.prefixedText&lt;br /&gt;
	if self._protectionObj.action == &#039;move&#039; then&lt;br /&gt;
		-- We need the move log link.&lt;br /&gt;
		return makeFullUrl(&lt;br /&gt;
			&#039;Special:Log&#039;,&lt;br /&gt;
			{type = &#039;move&#039;, page = pagename},&lt;br /&gt;
			self:_getExpandedMessage(&#039;current-version-move-display&#039;)&lt;br /&gt;
		)&lt;br /&gt;
	else&lt;br /&gt;
		-- We need the history link.&lt;br /&gt;
		return makeFullUrl(&lt;br /&gt;
			pagename,&lt;br /&gt;
			{action = &#039;history&#039;},&lt;br /&gt;
			self:_getExpandedMessage(&#039;current-version-edit-display&#039;)&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeEditRequestParameter()&lt;br /&gt;
	local mEditRequest = require(&#039;Module:Submit an edit request&#039;)&lt;br /&gt;
	local action = self._protectionObj.action&lt;br /&gt;
	local level = self._protectionObj.level&lt;br /&gt;
	&lt;br /&gt;
	-- Get the edit request type.&lt;br /&gt;
	local requestType&lt;br /&gt;
	if action == &#039;edit&#039; then&lt;br /&gt;
		if level == &#039;autoconfirmed&#039; then&lt;br /&gt;
			requestType = &#039;semi&#039;&lt;br /&gt;
		elseif level == &#039;extendedconfirmed&#039; then&lt;br /&gt;
			requestType = &#039;extended&#039;&lt;br /&gt;
		elseif level == &#039;templateeditor&#039; then&lt;br /&gt;
			requestType = &#039;template&#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	requestType = requestType or &#039;full&#039;&lt;br /&gt;
	&lt;br /&gt;
	-- Get the display value.&lt;br /&gt;
	local display = self:_getExpandedMessage(&#039;edit-request-display&#039;)&lt;br /&gt;
&lt;br /&gt;
	return mEditRequest._link{type = requestType, display = display}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeExpiryParameter()&lt;br /&gt;
	local expiry = self._protectionObj.expiry&lt;br /&gt;
	if type(expiry) == &#039;number&#039; then&lt;br /&gt;
		return self:_formatDate(expiry)&lt;br /&gt;
	else&lt;br /&gt;
		return expiry&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeExplanationBlurbParameter()&lt;br /&gt;
	-- Cover special cases first.&lt;br /&gt;
	if self._protectionObj.title.namespace == 8 then&lt;br /&gt;
		-- MediaWiki namespace&lt;br /&gt;
		return self:_getExpandedMessage(&#039;explanation-blurb-nounprotect&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get explanation blurb table keys&lt;br /&gt;
	local action = self._protectionObj.action&lt;br /&gt;
	local level = self._protectionObj.level&lt;br /&gt;
	local talkKey = self._protectionObj.title.isTalkPage and &#039;talk&#039; or &#039;subject&#039;&lt;br /&gt;
&lt;br /&gt;
	-- Find the message in the explanation blurb table and substitute any&lt;br /&gt;
	-- parameters.&lt;br /&gt;
	local explanations = self._cfg.explanationBlurbs&lt;br /&gt;
	local msg&lt;br /&gt;
	if explanations[action][level] and explanations[action][level][talkKey] then&lt;br /&gt;
		msg = explanations[action][level][talkKey]&lt;br /&gt;
	elseif explanations[action][level] and explanations[action][level].default then&lt;br /&gt;
		msg = explanations[action][level].default&lt;br /&gt;
	elseif explanations[action].default and explanations[action].default[talkKey] then&lt;br /&gt;
		msg = explanations[action].default[talkKey]&lt;br /&gt;
	elseif explanations[action].default and explanations[action].default.default then&lt;br /&gt;
		msg = explanations[action].default.default&lt;br /&gt;
	else&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&#039;could not find explanation blurb for action &amp;quot;%s&amp;quot;, level &amp;quot;%s&amp;quot; and talk key &amp;quot;%s&amp;quot;&#039;,&lt;br /&gt;
			action,&lt;br /&gt;
			level,&lt;br /&gt;
			talkKey&lt;br /&gt;
		), 8)&lt;br /&gt;
	end&lt;br /&gt;
	return self:_substituteParameters(msg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeImageLinkParameter()&lt;br /&gt;
	local imageLinks = self._cfg.imageLinks&lt;br /&gt;
	local action = self._protectionObj.action&lt;br /&gt;
	local level = self._protectionObj.level&lt;br /&gt;
	local msg&lt;br /&gt;
	if imageLinks[action][level] then&lt;br /&gt;
		msg = imageLinks[action][level]&lt;br /&gt;
	elseif imageLinks[action].default then&lt;br /&gt;
		msg = imageLinks[action].default&lt;br /&gt;
	else&lt;br /&gt;
		msg = imageLinks.edit.default&lt;br /&gt;
	end&lt;br /&gt;
	return self:_substituteParameters(msg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeIntroBlurbParameter()&lt;br /&gt;
	if self._protectionObj:isTemporary() then&lt;br /&gt;
		return self:_getExpandedMessage(&#039;intro-blurb-expiry&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		return self:_getExpandedMessage(&#039;intro-blurb-noexpiry&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeIntroFragmentParameter()&lt;br /&gt;
	if self._protectionObj:isTemporary() then&lt;br /&gt;
		return self:_getExpandedMessage(&#039;intro-fragment-expiry&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		return self:_getExpandedMessage(&#039;intro-fragment-noexpiry&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makePagetypeParameter()&lt;br /&gt;
	local pagetypes = self._cfg.pagetypes&lt;br /&gt;
	return pagetypes[self._protectionObj.title.namespace]&lt;br /&gt;
		or pagetypes.default&lt;br /&gt;
		or error(&#039;no default pagetype defined&#039;, 8)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeProtectionBlurbParameter()&lt;br /&gt;
	local protectionBlurbs = self._cfg.protectionBlurbs&lt;br /&gt;
	local action = self._protectionObj.action&lt;br /&gt;
	local level = self._protectionObj.level&lt;br /&gt;
	local msg&lt;br /&gt;
	if protectionBlurbs[action][level] then&lt;br /&gt;
		msg = protectionBlurbs[action][level]&lt;br /&gt;
	elseif protectionBlurbs[action].default then&lt;br /&gt;
		msg = protectionBlurbs[action].default&lt;br /&gt;
	elseif protectionBlurbs.edit.default then&lt;br /&gt;
		msg = protectionBlurbs.edit.default&lt;br /&gt;
	else&lt;br /&gt;
		error(&#039;no protection blurb defined for protectionBlurbs.edit.default&#039;, 8)&lt;br /&gt;
	end&lt;br /&gt;
	return self:_substituteParameters(msg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeProtectionDateParameter()&lt;br /&gt;
	local protectionDate = self._protectionObj.protectionDate&lt;br /&gt;
	if type(protectionDate) == &#039;number&#039; then&lt;br /&gt;
		return self:_formatDate(protectionDate)&lt;br /&gt;
	else&lt;br /&gt;
		return protectionDate&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeProtectionLevelParameter()&lt;br /&gt;
	local protectionLevels = self._cfg.protectionLevels&lt;br /&gt;
	local action = self._protectionObj.action&lt;br /&gt;
	local level = self._protectionObj.level&lt;br /&gt;
	local msg&lt;br /&gt;
	if protectionLevels[action][level] then&lt;br /&gt;
		msg = protectionLevels[action][level]&lt;br /&gt;
	elseif protectionLevels[action].default then&lt;br /&gt;
		msg = protectionLevels[action].default&lt;br /&gt;
	elseif protectionLevels.edit.default then&lt;br /&gt;
		msg = protectionLevels.edit.default&lt;br /&gt;
	else&lt;br /&gt;
		error(&#039;no protection level defined for protectionLevels.edit.default&#039;, 8)&lt;br /&gt;
	end&lt;br /&gt;
	return self:_substituteParameters(msg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeProtectionLogParameter()&lt;br /&gt;
	local pagename = self._protectionObj.title.prefixedText&lt;br /&gt;
	if self._protectionObj.action == &#039;autoreview&#039; then&lt;br /&gt;
		-- We need the pending changes log.&lt;br /&gt;
		return makeFullUrl(&lt;br /&gt;
			&#039;Special:Log&#039;,&lt;br /&gt;
			{type = &#039;stable&#039;, page = pagename},&lt;br /&gt;
			self:_getExpandedMessage(&#039;pc-log-display&#039;)&lt;br /&gt;
		)&lt;br /&gt;
	else&lt;br /&gt;
		-- We need the protection log.&lt;br /&gt;
		return makeFullUrl(&lt;br /&gt;
			&#039;Special:Log&#039;,&lt;br /&gt;
			{type = &#039;protect&#039;, page = pagename},&lt;br /&gt;
			self:_getExpandedMessage(&#039;protection-log-display&#039;)&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeTalkPageParameter()&lt;br /&gt;
	return string.format(&lt;br /&gt;
		&#039;[[%s:%s#%s|%s]]&#039;,&lt;br /&gt;
		mw.site.namespaces[self._protectionObj.title.namespace].talk.name,&lt;br /&gt;
		self._protectionObj.title.text,&lt;br /&gt;
		self._args.section or &#039;top&#039;,&lt;br /&gt;
		self:_getExpandedMessage(&#039;talk-page-link-display&#039;)&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeTooltipBlurbParameter()&lt;br /&gt;
	if self._protectionObj:isTemporary() then&lt;br /&gt;
		return self:_getExpandedMessage(&#039;tooltip-blurb-expiry&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		return self:_getExpandedMessage(&#039;tooltip-blurb-noexpiry&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeTooltipFragmentParameter()&lt;br /&gt;
	if self._protectionObj:isTemporary() then&lt;br /&gt;
		return self:_getExpandedMessage(&#039;tooltip-fragment-expiry&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		return self:_getExpandedMessage(&#039;tooltip-fragment-noexpiry&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Blurb:_makeVandalTemplateParameter()&lt;br /&gt;
	return mw.getCurrentFrame():expandTemplate{&lt;br /&gt;
		title=&amp;quot;vandal-m&amp;quot;,&lt;br /&gt;
		args={self._args.user or self._protectionObj.title.baseText}&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Public methods --&lt;br /&gt;
&lt;br /&gt;
function Blurb:makeBannerText(key)&lt;br /&gt;
	-- Validate input.&lt;br /&gt;
	if not key or not Blurb.bannerTextFields[key] then&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&#039;&amp;quot;%s&amp;quot; is not a valid banner config field&#039;,&lt;br /&gt;
			tostring(key)&lt;br /&gt;
		), 2)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Generate the text.&lt;br /&gt;
	local msg = self._protectionObj.bannerConfig[key]&lt;br /&gt;
	if type(msg) == &#039;string&#039; then&lt;br /&gt;
		return self:_substituteParameters(msg)&lt;br /&gt;
	elseif type(msg) == &#039;function&#039; then&lt;br /&gt;
		msg = msg(self._protectionObj, self._args)&lt;br /&gt;
		if type(msg) ~= &#039;string&#039; then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&#039;bad output from banner config function with key &amp;quot;%s&amp;quot;&#039;&lt;br /&gt;
					.. &#039; (expected string, got %s)&#039;,&lt;br /&gt;
				tostring(key),&lt;br /&gt;
				type(msg)&lt;br /&gt;
			), 4)&lt;br /&gt;
		end&lt;br /&gt;
		return self:_substituteParameters(msg)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- BannerTemplate class&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local BannerTemplate = {}&lt;br /&gt;
BannerTemplate.__index = BannerTemplate&lt;br /&gt;
&lt;br /&gt;
function BannerTemplate.new(protectionObj, cfg)&lt;br /&gt;
	local obj = {}&lt;br /&gt;
	obj._cfg = cfg&lt;br /&gt;
&lt;br /&gt;
	-- Set the image filename.&lt;br /&gt;
	local imageFilename = protectionObj.bannerConfig.image&lt;br /&gt;
	if imageFilename then&lt;br /&gt;
		obj._imageFilename = imageFilename&lt;br /&gt;
	else&lt;br /&gt;
		-- If an image filename isn&#039;t specified explicitly in the banner config,&lt;br /&gt;
		-- generate it from the protection status and the namespace.&lt;br /&gt;
		local action = protectionObj.action&lt;br /&gt;
		local level = protectionObj.level&lt;br /&gt;
		local namespace = protectionObj.title.namespace&lt;br /&gt;
		local reason = protectionObj.reason&lt;br /&gt;
		&lt;br /&gt;
		-- Deal with special cases first.&lt;br /&gt;
		if (&lt;br /&gt;
			namespace == 10&lt;br /&gt;
			or namespace == 828&lt;br /&gt;
			or reason and obj._cfg.indefImageReasons[reason]&lt;br /&gt;
			)&lt;br /&gt;
			and action == &#039;edit&#039;&lt;br /&gt;
			and level == &#039;sysop&#039;&lt;br /&gt;
			and not protectionObj:isTemporary()&lt;br /&gt;
		then&lt;br /&gt;
			-- Fully protected modules and templates get the special red &amp;quot;indef&amp;quot;&lt;br /&gt;
			-- padlock.&lt;br /&gt;
			obj._imageFilename = obj._cfg.msg[&#039;image-filename-indef&#039;]&lt;br /&gt;
		else&lt;br /&gt;
			-- Deal with regular protection types.&lt;br /&gt;
			local images = obj._cfg.images&lt;br /&gt;
			if images[action] then&lt;br /&gt;
				if images[action][level] then&lt;br /&gt;
					obj._imageFilename = images[action][level]&lt;br /&gt;
				elseif images[action].default then&lt;br /&gt;
					obj._imageFilename = images[action].default&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return setmetatable(obj, BannerTemplate)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function BannerTemplate:renderImage()&lt;br /&gt;
	local filename = self._imageFilename&lt;br /&gt;
		or self._cfg.msg[&#039;image-filename-default&#039;]&lt;br /&gt;
		or &#039;Transparent.gif&#039;&lt;br /&gt;
	return makeFileLink{&lt;br /&gt;
		file = filename,&lt;br /&gt;
		size = (self.imageWidth or 20) .. &#039;px&#039;,&lt;br /&gt;
		alt = self._imageAlt,&lt;br /&gt;
		link = self._imageLink,&lt;br /&gt;
		caption = self.imageCaption&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Banner class&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local Banner = setmetatable({}, BannerTemplate)&lt;br /&gt;
Banner.__index = Banner&lt;br /&gt;
&lt;br /&gt;
function Banner.new(protectionObj, blurbObj, cfg)&lt;br /&gt;
	local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn&#039;t need the blurb.&lt;br /&gt;
	obj.imageWidth = 40&lt;br /&gt;
	obj.imageCaption = blurbObj:makeBannerText(&#039;alt&#039;) -- Large banners use the alt text for the tooltip.&lt;br /&gt;
	obj._reasonText = blurbObj:makeBannerText(&#039;text&#039;)&lt;br /&gt;
	obj._explanationText = blurbObj:makeBannerText(&#039;explanation&#039;)&lt;br /&gt;
	obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing.&lt;br /&gt;
	return setmetatable(obj, Banner)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Banner:__tostring()&lt;br /&gt;
	-- Renders the banner.&lt;br /&gt;
	makeMessageBox = makeMessageBox or require(&#039;Module:Message box&#039;).main&lt;br /&gt;
	local reasonText = self._reasonText or error(&#039;no reason text set&#039;, 2)&lt;br /&gt;
	local explanationText = self._explanationText&lt;br /&gt;
	local mbargs = {&lt;br /&gt;
		page = self._page,&lt;br /&gt;
		type = &#039;protection&#039;,&lt;br /&gt;
		image = self:renderImage(),&lt;br /&gt;
		text = string.format(&lt;br /&gt;
			&amp;quot;&#039;&#039;&#039;%s&#039;&#039;&#039;%s&amp;quot;,&lt;br /&gt;
			reasonText,&lt;br /&gt;
			explanationText and &#039;&amp;lt;br /&amp;gt;&#039; .. explanationText or &#039;&#039;&lt;br /&gt;
		)&lt;br /&gt;
	}&lt;br /&gt;
	return makeMessageBox(&#039;mbox&#039;, mbargs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Padlock class&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local Padlock = setmetatable({}, BannerTemplate)&lt;br /&gt;
Padlock.__index = Padlock&lt;br /&gt;
&lt;br /&gt;
function Padlock.new(protectionObj, blurbObj, cfg)&lt;br /&gt;
	local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn&#039;t need the blurb.&lt;br /&gt;
	obj.imageWidth = 20&lt;br /&gt;
	obj.imageCaption = blurbObj:makeBannerText(&#039;tooltip&#039;)&lt;br /&gt;
	obj._imageAlt = blurbObj:makeBannerText(&#039;alt&#039;)&lt;br /&gt;
	obj._imageLink = blurbObj:makeBannerText(&#039;link&#039;)&lt;br /&gt;
	obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action]&lt;br /&gt;
		or cfg.padlockIndicatorNames.default&lt;br /&gt;
		or &#039;pp-default&#039;&lt;br /&gt;
	return setmetatable(obj, Padlock)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Padlock:__tostring()&lt;br /&gt;
	local frame = mw.getCurrentFrame()&lt;br /&gt;
	-- The nowiki tag helps prevent whitespace at the top of articles.&lt;br /&gt;
	return frame:extensionTag{name = &#039;nowiki&#039;} .. frame:extensionTag{&lt;br /&gt;
		name = &#039;indicator&#039;,&lt;br /&gt;
		args = {name = self._indicatorName},&lt;br /&gt;
		content = self:renderImage()&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Exports&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._exportClasses()&lt;br /&gt;
	-- This is used for testing purposes.&lt;br /&gt;
	return {&lt;br /&gt;
		Protection = Protection,&lt;br /&gt;
		Blurb = Blurb,&lt;br /&gt;
		BannerTemplate = BannerTemplate,&lt;br /&gt;
		Banner = Banner,&lt;br /&gt;
		Padlock = Padlock,&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args, cfg, title)&lt;br /&gt;
	args = args or {}&lt;br /&gt;
	cfg = cfg or require(CONFIG_MODULE)&lt;br /&gt;
&lt;br /&gt;
	local protectionObj = Protection.new(args, cfg, title)&lt;br /&gt;
&lt;br /&gt;
	local ret = {}&lt;br /&gt;
&lt;br /&gt;
	-- If a page&#039;s edit protection is equally or more restrictive than its&lt;br /&gt;
	-- protection from some other action, then don&#039;t bother displaying anything&lt;br /&gt;
	-- for the other action (except categories).&lt;br /&gt;
	if not yesno(args.catonly) and (protectionObj.action == &#039;edit&#039; or&lt;br /&gt;
		args.demolevel or&lt;br /&gt;
		not getReachableNodes(&lt;br /&gt;
			cfg.hierarchy,&lt;br /&gt;
			protectionObj.level&lt;br /&gt;
		)[effectiveProtectionLevel(&#039;edit&#039;, protectionObj.title)])&lt;br /&gt;
	then&lt;br /&gt;
		-- Initialise the blurb object&lt;br /&gt;
		local blurbObj = Blurb.new(protectionObj, args, cfg)&lt;br /&gt;
	&lt;br /&gt;
		-- Render the banner&lt;br /&gt;
		if protectionObj:shouldShowLock() then&lt;br /&gt;
			ret[#ret + 1] = tostring(&lt;br /&gt;
				(yesno(args.small) and Padlock or Banner)&lt;br /&gt;
				.new(protectionObj, blurbObj, cfg)&lt;br /&gt;
			)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Render the categories&lt;br /&gt;
	if yesno(args.category) ~= false then&lt;br /&gt;
		ret[#ret + 1] = protectionObj:makeCategoryLinks()&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- For arbitration enforcement, flagging [[WP:PIA]] pages to enable [[Special:AbuseFilter/1339]] to flag edits to them&lt;br /&gt;
	if protectionObj.level == &amp;quot;extendedconfirmed&amp;quot; then&lt;br /&gt;
		if require(&amp;quot;Module:TableTools&amp;quot;).inArray(protectionObj.title.talkPageTitle.categories, &amp;quot;Wikipedia pages subject to the extended confirmed restriction related to the Arab-Israeli conflict&amp;quot;) then&lt;br /&gt;
			ret[#ret + 1] = &amp;quot;&amp;lt;p class=&#039;PIA-flag&#039; style=&#039;display:none; visibility:hidden;&#039; title=&#039;This page is subject to the extended confirmed restriction related to the Arab-Israeli conflict.&#039;&amp;gt;&amp;lt;/p&amp;gt;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return table.concat(ret)	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame, cfg)&lt;br /&gt;
	cfg = cfg or require(CONFIG_MODULE)&lt;br /&gt;
&lt;br /&gt;
	-- Find default args, if any.&lt;br /&gt;
	local parent = frame.getParent and frame:getParent()&lt;br /&gt;
	local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub(&#039;/sandbox$&#039;, &#039;&#039;)]&lt;br /&gt;
&lt;br /&gt;
	-- Find user args, and use the parent frame if we are being called from a&lt;br /&gt;
	-- wrapper template.&lt;br /&gt;
	getArgs = getArgs or require(&#039;Module:Arguments&#039;).getArgs&lt;br /&gt;
	local userArgs = getArgs(frame, {&lt;br /&gt;
		parentOnly = defaultArgs,&lt;br /&gt;
		frameOnly = not defaultArgs&lt;br /&gt;
	})&lt;br /&gt;
&lt;br /&gt;
	-- Build the args table. User-specified args overwrite default args.&lt;br /&gt;
	local args = {}&lt;br /&gt;
	for k, v in pairs(defaultArgs or {}) do&lt;br /&gt;
		args[k] = v&lt;br /&gt;
	end&lt;br /&gt;
	for k, v in pairs(userArgs) do&lt;br /&gt;
		args[k] = v&lt;br /&gt;
	end&lt;br /&gt;
	return p._main(args, cfg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:File_link&amp;diff=161</id>
		<title>Module:File link</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:File_link&amp;diff=161"/>
		<updated>2026-04-14T17:34:54Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module provides a library for formatting file wikilinks.&lt;br /&gt;
&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
local checkType = require(&#039;libraryUtil&#039;).checkType&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	checkType(&#039;_main&#039;, 1, args, &#039;table&#039;)&lt;br /&gt;
&lt;br /&gt;
	-- This is basically libraryUtil.checkTypeForNamedArg, but we are rolling our&lt;br /&gt;
	-- own function to get the right error level.&lt;br /&gt;
	local function checkArg(key, val, level)&lt;br /&gt;
		if type(val) ~= &#039;string&#039; then&lt;br /&gt;
			error(string.format(&lt;br /&gt;
				&amp;quot;type error in &#039;%s&#039; parameter of &#039;_main&#039; (expected string, got %s)&amp;quot;,&lt;br /&gt;
				key, type(val)&lt;br /&gt;
			), level)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local ret = {}&lt;br /&gt;
&lt;br /&gt;
	-- Adds a positional parameter to the buffer.&lt;br /&gt;
	local function addPositional(key)&lt;br /&gt;
		local val = args[key]&lt;br /&gt;
		if not val then&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		checkArg(key, val, 4)&lt;br /&gt;
		ret[#ret + 1] = val&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Adds a named parameter to the buffer. We assume that the parameter name&lt;br /&gt;
	-- is the same as the argument key.&lt;br /&gt;
	local function addNamed(key)&lt;br /&gt;
		local val = args[key]&lt;br /&gt;
		if not val then&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		checkArg(key, val, 4)&lt;br /&gt;
		ret[#ret + 1] = key .. &#039;=&#039; .. val&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Filename&lt;br /&gt;
	checkArg(&#039;file&#039;, args.file, 3)&lt;br /&gt;
	ret[#ret + 1] = &#039;File:&#039; .. args.file&lt;br /&gt;
&lt;br /&gt;
	-- Format&lt;br /&gt;
	if args.format then&lt;br /&gt;
		checkArg(&#039;format&#039;, args.format)&lt;br /&gt;
		if args.formatfile then&lt;br /&gt;
			checkArg(&#039;formatfile&#039;, args.formatfile)&lt;br /&gt;
			ret[#ret + 1] = args.format .. &#039;=&#039; .. args.formatfile&lt;br /&gt;
		else&lt;br /&gt;
			ret[#ret + 1] = args.format&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Border&lt;br /&gt;
	if yesno(args.border) then&lt;br /&gt;
		ret[#ret + 1] = &#039;border&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	addPositional(&#039;location&#039;)&lt;br /&gt;
	addPositional(&#039;alignment&#039;)&lt;br /&gt;
	addPositional(&#039;size&#039;)&lt;br /&gt;
	addNamed(&#039;upright&#039;)&lt;br /&gt;
	addNamed(&#039;link&#039;)&lt;br /&gt;
	addNamed(&#039;alt&#039;)&lt;br /&gt;
	addNamed(&#039;page&#039;)&lt;br /&gt;
	addNamed(&#039;class&#039;)&lt;br /&gt;
	addNamed(&#039;lang&#039;)&lt;br /&gt;
	addNamed(&#039;start&#039;)&lt;br /&gt;
	addNamed(&#039;end&#039;)&lt;br /&gt;
	addNamed(&#039;thumbtime&#039;)&lt;br /&gt;
	addPositional(&#039;caption&#039;)&lt;br /&gt;
&lt;br /&gt;
	return string.format(&#039;[[%s]]&#039;, table.concat(ret, &#039;|&#039;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local origArgs = require(&#039;Module:Arguments&#039;).getArgs(frame, {&lt;br /&gt;
		wrappers = &#039;Template:File link&#039;&lt;br /&gt;
	})&lt;br /&gt;
	if not origArgs.file then&lt;br /&gt;
		error(&amp;quot;&#039;file&#039; parameter missing from [[Template:File link]]&amp;quot;, 0)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Copy the arguments that were passed to a new table to avoid looking up&lt;br /&gt;
	-- every possible parameter in the frame object.&lt;br /&gt;
	local args = {}&lt;br /&gt;
	for k, v in pairs(origArgs) do&lt;br /&gt;
		-- Make _BLANK a special argument to add a blank parameter. For use in&lt;br /&gt;
		-- conditional templates etc. it is useful for blank arguments to be&lt;br /&gt;
		-- ignored, but we still need a way to specify them so that we can do&lt;br /&gt;
		-- things like [[File:Example.png|link=]].&lt;br /&gt;
		if v == &#039;_BLANK&#039; then&lt;br /&gt;
			v = &#039;&#039;&lt;br /&gt;
		end&lt;br /&gt;
		args[k] = v&lt;br /&gt;
	end&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Effective_protection_level&amp;diff=159</id>
		<title>Module:Effective protection level</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Effective_protection_level&amp;diff=159"/>
		<updated>2026-04-14T17:34:53Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
-- Returns the permission required to perform a given action on a given title.&lt;br /&gt;
-- If no title is specified, the title of the page being displayed is used.&lt;br /&gt;
function p._main(action, pagename)&lt;br /&gt;
	local title&lt;br /&gt;
	if type(pagename) == &#039;table&#039; and pagename.prefixedText then&lt;br /&gt;
		title = pagename&lt;br /&gt;
	elseif pagename then&lt;br /&gt;
		title = mw.title.new(pagename)&lt;br /&gt;
	else&lt;br /&gt;
		title = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
	pagename = title.prefixedText&lt;br /&gt;
	if action == &#039;autoreview&#039; then&lt;br /&gt;
		local level = mw.ext.FlaggedRevs.getStabilitySettings(title)&lt;br /&gt;
		level = level and level.autoreview&lt;br /&gt;
		if level == &#039;review&#039; then&lt;br /&gt;
			return &#039;reviewer&#039;&lt;br /&gt;
		elseif level ~= &#039;&#039; then&lt;br /&gt;
			return level&lt;br /&gt;
		else&lt;br /&gt;
			return nil -- not &#039;*&#039;. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not &#039;&#039;, as that would mean PC-protected but nobody can review&lt;br /&gt;
		end&lt;br /&gt;
	elseif action ~= &#039;edit&#039; and action ~= &#039;move&#039; and action ~= &#039;create&#039; and action ~= &#039;upload&#039; and action ~= &#039;undelete&#039; then&lt;br /&gt;
		error( &#039;First parameter must be one of edit, move, create, upload, undelete, autoreview&#039;, 2 )&lt;br /&gt;
	end&lt;br /&gt;
	if title.namespace == 8 then -- MediaWiki namespace&lt;br /&gt;
		if title.text:sub(-3) == &#039;.js&#039; or title.text:sub(-4) == &#039;.css&#039; or title.contentModel == &#039;javascript&#039; or title.contentModel == &#039;css&#039; then -- site JS or CSS page&lt;br /&gt;
			return &#039;interfaceadmin&#039;&lt;br /&gt;
		elseif title.baseText == &amp;quot;Gadgets-definition&amp;quot; then&lt;br /&gt;
			return &#039;interfaceadmin&#039;&lt;br /&gt;
		else -- any non-JS/CSS MediaWiki page&lt;br /&gt;
			return &#039;sysop&#039;&lt;br /&gt;
		end&lt;br /&gt;
	elseif title.namespace == 2 and title.isSubpage then&lt;br /&gt;
		if title.contentModel == &#039;javascript&#039; or title.contentModel == &#039;css&#039; then -- user JS or CSS page&lt;br /&gt;
			return &#039;interfaceadmin&#039;&lt;br /&gt;
		elseif title.contentModel == &#039;json&#039; then -- user JSON page&lt;br /&gt;
			return &#039;sysop&#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if action == &#039;undelete&#039; then&lt;br /&gt;
		return &#039;sysop&#039;&lt;br /&gt;
	end&lt;br /&gt;
	local level = title.protectionLevels[action] and title.protectionLevels[action][1]&lt;br /&gt;
	if level == &#039;sysop&#039; or level == &#039;editprotected&#039; then&lt;br /&gt;
		return &#039;sysop&#039;&lt;br /&gt;
	elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page&lt;br /&gt;
		return &#039;sysop&#039;&lt;br /&gt;
	elseif level == &#039;templateeditor&#039; then&lt;br /&gt;
		return &#039;templateeditor&#039;&lt;br /&gt;
	elseif action == &#039;move&#039; then&lt;br /&gt;
		local blacklistentry = mw.ext.TitleBlacklist.test(&#039;edit&#039;, pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move.&lt;br /&gt;
		if blacklistentry and not blacklistentry.params.autoconfirmed then&lt;br /&gt;
			return &#039;templateeditor&#039;&lt;br /&gt;
		elseif title.namespace == 6 then&lt;br /&gt;
			return &#039;filemover&#039;&lt;br /&gt;
		elseif level == &#039;extendedconfirmed&#039; then&lt;br /&gt;
			return &#039;extendedconfirmed&#039;&lt;br /&gt;
		else&lt;br /&gt;
			return &#039;autoconfirmed&#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)&lt;br /&gt;
	if blacklistentry then&lt;br /&gt;
		if not blacklistentry.params.autoconfirmed then&lt;br /&gt;
			return &#039;templateeditor&#039;&lt;br /&gt;
		elseif level == &#039;extendedconfirmed&#039; then&lt;br /&gt;
			return &#039;extendedconfirmed&#039;&lt;br /&gt;
		else&lt;br /&gt;
			return &#039;autoconfirmed&#039;&lt;br /&gt;
		end&lt;br /&gt;
	elseif level == &#039;editsemiprotected&#039; then -- create-semiprotected pages return this for some reason&lt;br /&gt;
		return &#039;autoconfirmed&#039;&lt;br /&gt;
	elseif level then&lt;br /&gt;
		return level&lt;br /&gt;
	elseif action == &#039;upload&#039; then&lt;br /&gt;
		return &#039;autoconfirmed&#039;&lt;br /&gt;
	elseif action == &#039;create&#039; and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts&lt;br /&gt;
		if title.namespace == 0 then&lt;br /&gt;
			return &#039;autoconfirmed&#039; -- Per [[WP:ACPERM]], you need to be autoconfirmed to create pages in mainspace&lt;br /&gt;
		end&lt;br /&gt;
		return &#039;user&#039;&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;*&#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
setmetatable(p, { __index = function(t, k)&lt;br /&gt;
	return function(frame)&lt;br /&gt;
		return t._main(k, frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
end })&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Module:Effective_protection_expiry&amp;diff=157</id>
		<title>Module:Effective protection expiry</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Module:Effective_protection_expiry&amp;diff=157"/>
		<updated>2026-04-14T17:34:52Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known.&lt;br /&gt;
-- If no title is specified, the title of the page being displayed is used.&lt;br /&gt;
function p._main(action, pagename)&lt;br /&gt;
	local title&lt;br /&gt;
	if type(pagename) == &#039;table&#039; and pagename.prefixedText then&lt;br /&gt;
		title = pagename&lt;br /&gt;
	elseif pagename then&lt;br /&gt;
		title = mw.title.new(pagename)&lt;br /&gt;
	else&lt;br /&gt;
		title = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
	pagename = title.prefixedText&lt;br /&gt;
	if action == &#039;autoreview&#039; then&lt;br /&gt;
		local stabilitySettings = mw.ext.FlaggedRevs.getStabilitySettings(title)&lt;br /&gt;
		return stabilitySettings and stabilitySettings.expiry or &#039;unknown&#039;&lt;br /&gt;
	elseif action ~= &#039;edit&#039; and action ~= &#039;move&#039; and action ~= &#039;create&#039; and action ~= &#039;upload&#039; then&lt;br /&gt;
		error( &#039;First parameter must be one of edit, move, create, upload, autoreview&#039;, 2 )&lt;br /&gt;
	end&lt;br /&gt;
	local rawExpiry = mw.getCurrentFrame():callParserFunction(&#039;PROTECTIONEXPIRY&#039;, action, pagename)&lt;br /&gt;
	if rawExpiry == &#039;infinity&#039; then&lt;br /&gt;
		return &#039;infinity&#039;&lt;br /&gt;
	elseif rawExpiry == &#039;&#039; then&lt;br /&gt;
		return &#039;unknown&#039;&lt;br /&gt;
	else&lt;br /&gt;
		local year, month, day, hour, minute, second = rawExpiry:match(&lt;br /&gt;
			&#039;^(%d%d%d%d)(%d%d)(%d%d)(%d%d)(%d%d)(%d%d)$&#039;&lt;br /&gt;
		)&lt;br /&gt;
		if year then&lt;br /&gt;
			return string.format(&lt;br /&gt;
				&#039;%s-%s-%sT%s:%s:%s&#039;,&lt;br /&gt;
				year, month, day, hour, minute, second&lt;br /&gt;
			)&lt;br /&gt;
		else&lt;br /&gt;
			error(&#039;internal error in Module:Effective protection expiry; malformed expiry timestamp&#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
setmetatable(p, { __index = function(t, k)&lt;br /&gt;
	return function(frame)&lt;br /&gt;
		return t._main(k, frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
end })&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
	<entry>
		<id>https://primaryhealthcare.in/index.php?title=Template:Reflist/styles.css&amp;diff=155</id>
		<title>Template:Reflist/styles.css</title>
		<link rel="alternate" type="text/html" href="https://primaryhealthcare.in/index.php?title=Template:Reflist/styles.css&amp;diff=155"/>
		<updated>2026-04-14T17:34:51Z</updated>

		<summary type="html">&lt;p&gt;Akshay: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp|small=yes}} */&lt;br /&gt;
/* columns-2 and columns-3 are legacy for &amp;quot;2 or more&amp;quot; column view from when the&lt;br /&gt;
 * template was implemented with column-count.&lt;br /&gt;
 */&lt;br /&gt;
.reflist-columns-2 {&lt;br /&gt;
	column-width: 30em;&lt;br /&gt;
}&lt;br /&gt;
.reflist-columns-3 {&lt;br /&gt;
	column-width: 25em;&lt;br /&gt;
}&lt;br /&gt;
/* Match Vector 2022 after [[gerrit:1185300]]. */&lt;br /&gt;
body.skin-vector-2022 .reflist-columns-2 {&lt;br /&gt;
	column-width: 27em;&lt;br /&gt;
}&lt;br /&gt;
body.skin-vector-2022 .reflist-columns-3 {&lt;br /&gt;
	column-width: 22.5em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* These should probably be moved to MediaWiki:Common.css to work with &amp;lt;references&amp;gt; as well. */&lt;br /&gt;
.references[data-mw-group=upper-alpha] {&lt;br /&gt;
	list-style-type: upper-alpha;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.references[data-mw-group=upper-roman] {&lt;br /&gt;
	list-style-type: upper-roman;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.references[data-mw-group=lower-alpha] {&lt;br /&gt;
	list-style-type: lower-alpha;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.references[data-mw-group=lower-greek] {&lt;br /&gt;
	list-style-type: lower-greek;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.references[data-mw-group=lower-roman] {&lt;br /&gt;
	list-style-type: lower-roman;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Liststyle param. */&lt;br /&gt;
div.reflist-liststyle-upper-alpha .references {&lt;br /&gt;
	list-style-type: upper-alpha;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
div.reflist-liststyle-upper-roman .references {&lt;br /&gt;
	list-style-type: upper-roman;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
div.reflist-liststyle-lower-alpha .references {&lt;br /&gt;
	list-style-type: lower-alpha;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
div.reflist-liststyle-lower-greek .references {&lt;br /&gt;
	list-style-type: lower-greek;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
div.reflist-liststyle-lower-roman .references {&lt;br /&gt;
	list-style-type: lower-roman;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
</feed>