<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vwpartswiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WestyMan1971</id>
	<title>Vintage Volkswagen Parts &amp; Tech Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://vwpartswiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WestyMan1971"/>
	<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Special:Contributions/WestyMan1971"/>
	<updated>2026-10-08T23:44:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22928</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22928"/>
		<updated>2025-07-24T15:58:53Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen_Logo_1995.png&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = May 28, 1937&lt;br /&gt;
| location = [[Wolfsburg]], Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = &lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = &lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22927</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22927"/>
		<updated>2025-07-24T15:58:27Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen_Logo_1995.png&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = May 28, 1937&lt;br /&gt;
| location = [[Wolfsburg]], Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = &lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=File:Volkswagen_Logo_1995.png&amp;diff=22926</id>
		<title>File:Volkswagen Logo 1995.png</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=File:Volkswagen_Logo_1995.png&amp;diff=22926"/>
		<updated>2025-07-24T15:58:10Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22925</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22925"/>
		<updated>2025-07-24T15:52:19Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = May 28, 1937&lt;br /&gt;
| location = [[Wolfsburg]], Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = &lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Template:Comma_separated_entries&amp;diff=22924</id>
		<title>Template:Comma separated entries</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Template:Comma_separated_entries&amp;diff=22924"/>
		<updated>2025-07-24T15:52:03Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&amp;lt;includeonly&amp;gt;safesubst:&amp;lt;/includeonly&amp;gt;#invoke:Separated entries|comma}}&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>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22922</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22922"/>
		<updated>2025-07-24T15:51:14Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = May 28, 1937&lt;br /&gt;
| location = [[Wolfsburg]]&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = &lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22921</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22921"/>
		<updated>2025-07-24T15:50:14Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = May 28, 1937&lt;br /&gt;
| location = [[Wolfsburg|Wolfsburg, Germany]]&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22920</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22920"/>
		<updated>2025-07-24T15:49:17Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = May 28, 1937&lt;br /&gt;
| location = [[Wolfsburg, Germany]]&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22919</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22919"/>
		<updated>2025-07-24T15:48:36Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = May 28, 1937&lt;br /&gt;
| location = [[Wolfsburg]], Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22918</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22918"/>
		<updated>2025-07-24T15:48:05Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = Vehicle manufacturer&lt;br /&gt;
| foundation = {{Start date and age|df=y|1937|05|28}}&lt;br /&gt;
| location = [[Wolfsburg]], Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22905</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22905"/>
		<updated>2025-07-24T15:27:41Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = [[Division (business)|Division]]&lt;br /&gt;
| foundation = {{Start date and age|df=y|1937|05|28}}&lt;br /&gt;
| location = [[Wolfsburg]], Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = [https://www.vw.com/en.html vw.com]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22904</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22904"/>
		<updated>2025-07-24T15:25:36Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = [[Division (business)|Division]]&lt;br /&gt;
| foundation = {{Start date and age|df=y|1937|05|28}}&lt;br /&gt;
| location = [[Wolfsburg]], Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = {https://www.vw.com/en.html|vw.com}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22903</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22903"/>
		<updated>2025-07-24T15:23:39Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = [[Division (business)|Division]]&lt;br /&gt;
| foundation = {{Start date and age|df=y|1937|05|28}}&lt;br /&gt;
| location_city = [[Wolfsburg]]&lt;br /&gt;
| location_country = Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = {https://www.vw.com/en.html|vw.com}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Template:Infobox_company/styles.css&amp;diff=22902</id>
		<title>Template:Infobox company/styles.css</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Template:Infobox_company/styles.css&amp;diff=22902"/>
		<updated>2025-07-24T14:59:05Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp-template|small=yes}} */&lt;br /&gt;
.ib-company .infobox-label {&lt;br /&gt;
	padding-right: 0.5em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ib-company .infobox-data,&lt;br /&gt;
.ib-company .infobox-below {&lt;br /&gt;
	line-height: 1.35em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* always light background for logos */&lt;br /&gt;
.ib-company-logo img {&lt;br /&gt;
	background-color: #f8f9fa;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ib-company-locality,&lt;br /&gt;
.ib-company-country {&lt;br /&gt;
	display: inline;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Module:WikidataIB&amp;diff=22900</id>
		<title>Module:WikidataIB</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Module:WikidataIB&amp;diff=22900"/>
		<updated>2025-07-24T14:58:01Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- Version: 2023-07-10&lt;br /&gt;
-- Module to implement use of a blacklist and whitelist for infobox fields&lt;br /&gt;
-- Can take a named parameter |qid which is the Wikidata ID for the article&lt;br /&gt;
-- if not supplied, it will use the Wikidata ID associated with the current page.&lt;br /&gt;
-- Fields in blacklist are never to be displayed, i.e. module must return nil in all circumstances&lt;br /&gt;
-- Fields in whitelist return local value if it exists or the Wikidata value otherwise&lt;br /&gt;
-- The name of the field that this function is called from is passed in named parameter |name&lt;br /&gt;
-- The name is compulsory when blacklist or whitelist is used,&lt;br /&gt;
-- so the module returns nil if it is not supplied.&lt;br /&gt;
-- blacklist is passed in named parameter |suppressfields (or |spf)&lt;br /&gt;
-- whitelist is passed in named parameter |fetchwikidata (or |fwd)&lt;br /&gt;
&lt;br /&gt;
require(&amp;quot;strict&amp;quot;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local cdate -- initialise as nil and only load _complex_date function if needed&lt;br /&gt;
-- Module:Complex date is loaded lazily and has the following dependencies:&lt;br /&gt;
-- Module:Calendar&lt;br /&gt;
-- Module:ISOdate&lt;br /&gt;
-- Module:DateI18n&lt;br /&gt;
-- Module:I18n/complex date&lt;br /&gt;
-- Module:Ordinal&lt;br /&gt;
-- Module:I18n/ordinal&lt;br /&gt;
-- Module:Yesno&lt;br /&gt;
-- Module:Formatnum&lt;br /&gt;
-- Module:Linguistic&lt;br /&gt;
--&lt;br /&gt;
-- The following, taken from https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times,&lt;br /&gt;
-- is needed to use Module:Complex date which seemingly requires date precision as a string.&lt;br /&gt;
-- It would work better if only the authors of the mediawiki page could spell &#039;millennium&#039;.&lt;br /&gt;
local dp = {&lt;br /&gt;
	[6] = &amp;quot;millennium&amp;quot;,&lt;br /&gt;
	[7] = &amp;quot;century&amp;quot;,&lt;br /&gt;
	[8] = &amp;quot;decade&amp;quot;,&lt;br /&gt;
	[9] = &amp;quot;year&amp;quot;,&lt;br /&gt;
	[10] = &amp;quot;month&amp;quot;,&lt;br /&gt;
	[11] = &amp;quot;day&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local i18n =&lt;br /&gt;
{&lt;br /&gt;
	[&amp;quot;errors&amp;quot;] =&lt;br /&gt;
	{&lt;br /&gt;
		[&amp;quot;property-not-found&amp;quot;] = &amp;quot;Property not found.&amp;quot;,&lt;br /&gt;
		[&amp;quot;No property supplied&amp;quot;] = &amp;quot;No property supplied&amp;quot;,&lt;br /&gt;
		[&amp;quot;entity-not-found&amp;quot;] = &amp;quot;Wikidata entity not found.&amp;quot;,&lt;br /&gt;
		[&amp;quot;unknown-claim-type&amp;quot;] = &amp;quot;Unknown claim type.&amp;quot;,&lt;br /&gt;
		[&amp;quot;unknown-entity-type&amp;quot;] = &amp;quot;Unknown entity type.&amp;quot;,&lt;br /&gt;
		[&amp;quot;qualifier-not-found&amp;quot;] = &amp;quot;Qualifier not found.&amp;quot;,&lt;br /&gt;
		[&amp;quot;site-not-found&amp;quot;] = &amp;quot;Wikimedia project not found.&amp;quot;,&lt;br /&gt;
		[&amp;quot;labels-not-found&amp;quot;] = &amp;quot;No labels found.&amp;quot;,&lt;br /&gt;
		[&amp;quot;descriptions-not-found&amp;quot;] = &amp;quot;No descriptions found.&amp;quot;,&lt;br /&gt;
		[&amp;quot;aliases-not-found&amp;quot;] = &amp;quot;No aliases found.&amp;quot;,&lt;br /&gt;
		[&amp;quot;unknown-datetime-format&amp;quot;] = &amp;quot;Unknown datetime format.&amp;quot;,&lt;br /&gt;
		[&amp;quot;local-article-not-found&amp;quot;] = &amp;quot;Article is available on Wikidata, but not on Wikipedia&amp;quot;,&lt;br /&gt;
		[&amp;quot;dab-page&amp;quot;] = &amp;quot; (dab)&amp;quot;,&lt;br /&gt;
	},&lt;br /&gt;
	[&amp;quot;months&amp;quot;] =&lt;br /&gt;
	{&lt;br /&gt;
		&amp;quot;January&amp;quot;, &amp;quot;February&amp;quot;, &amp;quot;March&amp;quot;, &amp;quot;April&amp;quot;, &amp;quot;May&amp;quot;, &amp;quot;June&amp;quot;,&lt;br /&gt;
		&amp;quot;July&amp;quot;, &amp;quot;August&amp;quot;, &amp;quot;September&amp;quot;, &amp;quot;October&amp;quot;, &amp;quot;November&amp;quot;, &amp;quot;December&amp;quot;&lt;br /&gt;
	},&lt;br /&gt;
	[&amp;quot;century&amp;quot;] = &amp;quot;century&amp;quot;,&lt;br /&gt;
	[&amp;quot;BC&amp;quot;] = &amp;quot;BC&amp;quot;,&lt;br /&gt;
	[&amp;quot;BCE&amp;quot;] = &amp;quot;BCE&amp;quot;,&lt;br /&gt;
	[&amp;quot;ordinal&amp;quot;] =&lt;br /&gt;
	{&lt;br /&gt;
		[1] = &amp;quot;st&amp;quot;,&lt;br /&gt;
		[2] = &amp;quot;nd&amp;quot;,&lt;br /&gt;
		[3] = &amp;quot;rd&amp;quot;,&lt;br /&gt;
		[&amp;quot;default&amp;quot;] = &amp;quot;th&amp;quot;&lt;br /&gt;
	},&lt;br /&gt;
	[&amp;quot;filespace&amp;quot;] = &amp;quot;File&amp;quot;,&lt;br /&gt;
	[&amp;quot;Unknown&amp;quot;] = &amp;quot;Unknown&amp;quot;,&lt;br /&gt;
	[&amp;quot;NaN&amp;quot;] = &amp;quot;Not a number&amp;quot;,&lt;br /&gt;
	-- set the following to the name of a tracking category,&lt;br /&gt;
	-- e.g. &amp;quot;[[Category:Articles with missing Wikidata information]]&amp;quot;, or &amp;quot;&amp;quot; to disable:&lt;br /&gt;
	[&amp;quot;missinginfocat&amp;quot;] = &amp;quot;[[Category:Articles with missing Wikidata information]]&amp;quot;,&lt;br /&gt;
	[&amp;quot;editonwikidata&amp;quot;] = &amp;quot;Edit this on Wikidata&amp;quot;,&lt;br /&gt;
	[&amp;quot;latestdatequalifier&amp;quot;] = function (date) return &amp;quot;before &amp;quot; .. date end,&lt;br /&gt;
	-- some languages, e.g. Bosnian use a period as a suffix after each number in a date&lt;br /&gt;
	[&amp;quot;datenumbersuffix&amp;quot;] = &amp;quot;&amp;quot;,&lt;br /&gt;
	[&amp;quot;list separator&amp;quot;] = &amp;quot;, &amp;quot;,&lt;br /&gt;
	[&amp;quot;multipliers&amp;quot;] = {&lt;br /&gt;
		[0]  = &amp;quot;&amp;quot;,&lt;br /&gt;
		[3]  = &amp;quot; thousand&amp;quot;,&lt;br /&gt;
		[6]  = &amp;quot; million&amp;quot;,&lt;br /&gt;
		[9]  = &amp;quot; billion&amp;quot;,&lt;br /&gt;
		[12] = &amp;quot; trillion&amp;quot;,&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
-- This allows an internationisation module to override the above table&lt;br /&gt;
if &#039;en&#039; ~= mw.getContentLanguage():getCode() then&lt;br /&gt;
	require(&amp;quot;Module:i18n&amp;quot;).loadI18n(&amp;quot;Module:WikidataIB/i18n&amp;quot;, i18n)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- This piece of html implements a collapsible container. Check the classes exist on your wiki.&lt;br /&gt;
local collapsediv = &#039;&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;width:100%; overflow:auto;&amp;quot; data-expandtext=&amp;quot;{{int:show}}&amp;quot; data-collapsetext=&amp;quot;{{int:hide}}&amp;quot;&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
-- Some items should not be linked.&lt;br /&gt;
-- Each wiki can create a list of those in Module:WikidataIB/nolinks&lt;br /&gt;
-- It should return a table called itemsindex, containing true for each item not to be linked&lt;br /&gt;
local donotlink = {}&lt;br /&gt;
local nolinks_exists, nolinks = pcall(mw.loadData, &amp;quot;Module:WikidataIB/nolinks&amp;quot;)&lt;br /&gt;
if nolinks_exists then&lt;br /&gt;
	donotlink = nolinks.itemsindex&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- To satisfy Wikipedia:Manual of Style/Titles, certain types of items are italicised, and others are quoted.&lt;br /&gt;
-- The submodule [[Module:WikidataIB/titleformats]] lists the entity-ids used in &#039;instance of&#039; (P31),&lt;br /&gt;
-- which allows this module to identify the values that should be formatted.&lt;br /&gt;
-- WikidataIB/titleformats exports a table p.formats, which is indexed by entity-id, and contains the value &amp;quot; or &#039;&#039;&lt;br /&gt;
local formats = {}&lt;br /&gt;
local titleformats_exists, titleformats = pcall(mw.loadData, &amp;quot;Module:WikidataIB/titleformats&amp;quot;)&lt;br /&gt;
if titleformats_exists then&lt;br /&gt;
	formats = titleformats.formats&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Private functions&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
--&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- makeOrdinal needs to be internationalised along with the above:&lt;br /&gt;
-- takes cardinal number as a numeric and returns the ordinal as a string&lt;br /&gt;
-- we need three exceptions in English for 1st, 2nd, 3rd, 21st, .. 31st, etc.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local makeOrdinal = function(cardinal)&lt;br /&gt;
	local ordsuffix = i18n.ordinal.default&lt;br /&gt;
	if cardinal % 10 == 1 then&lt;br /&gt;
		ordsuffix = i18n.ordinal[1]&lt;br /&gt;
	elseif cardinal % 10 == 2 then&lt;br /&gt;
		ordsuffix = i18n.ordinal[2]&lt;br /&gt;
	elseif cardinal % 10 == 3 then&lt;br /&gt;
		ordsuffix = i18n.ordinal[3]&lt;br /&gt;
	end&lt;br /&gt;
	-- In English, 1, 21, 31, etc. use &#039;st&#039;, but 11, 111, etc. use &#039;th&#039;&lt;br /&gt;
	-- similarly for 12 and 13, etc.&lt;br /&gt;
	if (cardinal % 100 == 11) or (cardinal % 100 == 12) or (cardinal % 100 == 13) then&lt;br /&gt;
		ordsuffix = i18n.ordinal.default&lt;br /&gt;
	end&lt;br /&gt;
	return tostring(cardinal) .. ordsuffix&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- findLang takes a &amp;quot;langcode&amp;quot; parameter if supplied and valid&lt;br /&gt;
-- otherwise it tries to create it from the user&#039;s set language ({{int:lang}})&lt;br /&gt;
-- failing that it uses the wiki&#039;s content language.&lt;br /&gt;
-- It returns a language object&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local findLang = function(langcode)&lt;br /&gt;
	local langobj&lt;br /&gt;
	langcode = mw.text.trim(langcode or &amp;quot;&amp;quot;)&lt;br /&gt;
	if mw.language.isKnownLanguageTag(langcode) then&lt;br /&gt;
		langobj = mw.language.new( langcode )&lt;br /&gt;
	else&lt;br /&gt;
		langcode = mw.getCurrentFrame():callParserFunction(&#039;int&#039;, {&#039;lang&#039;})&lt;br /&gt;
		if mw.language.isKnownLanguageTag(langcode) then&lt;br /&gt;
			langobj = mw.language.new( langcode )&lt;br /&gt;
		else&lt;br /&gt;
			langobj = mw.language.getContentLanguage()&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return langobj&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- _getItemLangCode takes a qid parameter (using the current page&#039;s qid if blank)&lt;br /&gt;
-- If the item for that qid has property country (P17) it looks at the first preferred value&lt;br /&gt;
-- If the country has an official language (P37), it looks at the first preferred value&lt;br /&gt;
-- If that official language has a language code (P424), it returns the first preferred value&lt;br /&gt;
-- Otherwise it returns nothing.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local _getItemLangCode = function(qid)&lt;br /&gt;
	qid = mw.text.trim(qid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then return end&lt;br /&gt;
	local prop17 = mw.wikibase.getBestStatements(qid, &amp;quot;P17&amp;quot;)[1]&lt;br /&gt;
	if not prop17 or prop17.mainsnak.snaktype ~= &amp;quot;value&amp;quot; then return end&lt;br /&gt;
	local qid17 = prop17.mainsnak.datavalue.value.id&lt;br /&gt;
	local prop37 = mw.wikibase.getBestStatements(qid17, &amp;quot;P37&amp;quot;)[1]&lt;br /&gt;
	if not prop37 or prop37.mainsnak.snaktype ~= &amp;quot;value&amp;quot; then return end&lt;br /&gt;
	local qid37 = prop37.mainsnak.datavalue.value.id&lt;br /&gt;
	local prop424 = mw.wikibase.getBestStatements(qid37, &amp;quot;P424&amp;quot;)[1]&lt;br /&gt;
	if not prop424 or prop424.mainsnak.snaktype ~= &amp;quot;value&amp;quot; then return end&lt;br /&gt;
	return prop424.mainsnak.datavalue.value&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- roundto takes a number (x)&lt;br /&gt;
-- and returns it rounded to (sf) significant figures&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local roundto = function(x, sf)&lt;br /&gt;
	if x == 0 then return 0 end&lt;br /&gt;
	local s = 1&lt;br /&gt;
	if x &amp;lt; 0 then&lt;br /&gt;
		x = -x&lt;br /&gt;
		s = -1&lt;br /&gt;
	end&lt;br /&gt;
	if sf &amp;lt; 1 then sf = 1 end&lt;br /&gt;
	local p = 10 ^ (math.floor(math.log10(x)) - sf + 1)&lt;br /&gt;
	x = math.floor(x / p + 0.5) * p * s&lt;br /&gt;
	-- if it&#039;s integral, cast to an integer:&lt;br /&gt;
	if x == math.floor(x) then x = math.floor(x) end&lt;br /&gt;
	return x&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- decimalToDMS takes a decimal degrees (x) with precision (p)&lt;br /&gt;
-- and returns degrees/minutes/seconds according to the precision&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local decimalToDMS = function(x, p)&lt;br /&gt;
	-- if p is not supplied, use a precision around 0.1 seconds&lt;br /&gt;
	if not tonumber(p) then p = 1e-4 end&lt;br /&gt;
	local d = math.floor(x)&lt;br /&gt;
	local ms = (x - d) * 60&lt;br /&gt;
	if p &amp;gt; 0.5 then -- precision is &amp;gt; 1/2 a degree&lt;br /&gt;
		if ms &amp;gt; 30 then d = d + 1 end&lt;br /&gt;
		ms = 0&lt;br /&gt;
	end&lt;br /&gt;
	local m = math.floor(ms)&lt;br /&gt;
	local s = (ms - m) * 60&lt;br /&gt;
	if p &amp;gt; 0.008 then -- precision is &amp;gt; 1/2 a minute&lt;br /&gt;
		if s &amp;gt; 30 then m = m +1 end&lt;br /&gt;
		s = 0&lt;br /&gt;
	elseif p &amp;gt; 0.00014 then -- precision is &amp;gt; 1/2 a second&lt;br /&gt;
		s = math.floor(s + 0.5)&lt;br /&gt;
	elseif p &amp;gt; 0.000014 then -- precision is &amp;gt; 1/20 second&lt;br /&gt;
		s = math.floor(10 * s + 0.5) / 10&lt;br /&gt;
	elseif p &amp;gt; 0.0000014 then -- precision is &amp;gt; 1/200 second&lt;br /&gt;
		s = math.floor(100 * s + 0.5) / 100&lt;br /&gt;
	else -- cap it at 3 dec places for now&lt;br /&gt;
		s = math.floor(1000 * s + 0.5) / 1000&lt;br /&gt;
	end&lt;br /&gt;
	return d, m, s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- decimalPrecision takes a decimal (x) with precision (p)&lt;br /&gt;
-- and returns x rounded approximately to the given precision&lt;br /&gt;
-- precision should be between 1 and 1e-6, preferably a power of 10.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local decimalPrecision = function(x, p)&lt;br /&gt;
	local s = 1&lt;br /&gt;
	if x &amp;lt; 0 then&lt;br /&gt;
		x = -x&lt;br /&gt;
		s = -1&lt;br /&gt;
	end&lt;br /&gt;
	-- if p is not supplied, pick an arbitrary precision&lt;br /&gt;
	if not tonumber(p) then p = 1e-4&lt;br /&gt;
	elseif p &amp;gt; 1 then p = 1&lt;br /&gt;
	elseif p &amp;lt; 1e-6 then p = 1e-6&lt;br /&gt;
	else p = 10 ^ math.floor(math.log10(p))&lt;br /&gt;
	end&lt;br /&gt;
	x = math.floor(x / p + 0.5) * p * s&lt;br /&gt;
	-- if it&#039;s integral, cast to an integer:&lt;br /&gt;
	if  x == math.floor(x) then x = math.floor(x) end&lt;br /&gt;
	-- if it&#039;s less than 1e-4, it will be in exponent form, so return a string with 6dp&lt;br /&gt;
	-- 9e-5 becomes 0.000090&lt;br /&gt;
	if math.abs(x) &amp;lt; 1e-4 then x = string.format(&amp;quot;%f&amp;quot;, x) end&lt;br /&gt;
	return x&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- formatDate takes a datetime of the usual format from mw.wikibase.entity:formatPropertyValues&lt;br /&gt;
-- like &amp;quot;1 August 30 BCE&amp;quot; as parameter 1&lt;br /&gt;
-- and formats it according to the df (date format) and bc parameters&lt;br /&gt;
-- df = [&amp;quot;dmy&amp;quot; / &amp;quot;mdy&amp;quot; / &amp;quot;y&amp;quot;] default will be &amp;quot;dmy&amp;quot;&lt;br /&gt;
-- bc = [&amp;quot;BC&amp;quot; / &amp;quot;BCE&amp;quot;] default will be &amp;quot;BCE&amp;quot;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local format_Date = function(datetime, dateformat, bc)&lt;br /&gt;
	local datetime = datetime or &amp;quot;1 August 30 BCE&amp;quot; -- in case of nil value&lt;br /&gt;
	-- chop off multiple vales and/or any hours, mins, etc.&lt;br /&gt;
	-- keep anything before punctuation - we just want a single date:&lt;br /&gt;
	local dateval = string.match( datetime, &amp;quot;[%w ]+&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	local dateformat = string.lower(dateformat or &amp;quot;dmy&amp;quot;) -- default to dmy&lt;br /&gt;
&lt;br /&gt;
	local bc = string.upper(bc or &amp;quot;&amp;quot;) -- can&#039;t use nil for bc&lt;br /&gt;
	-- we only want to accept two possibilities: BC or default to BCE&lt;br /&gt;
	if bc == &amp;quot;BC&amp;quot; then&lt;br /&gt;
		bc = &amp;quot;&amp;amp;nbsp;&amp;quot; .. i18n[&amp;quot;BC&amp;quot;] -- prepend a non-breaking space.&lt;br /&gt;
	else&lt;br /&gt;
		bc = &amp;quot;&amp;amp;nbsp;&amp;quot; .. i18n[&amp;quot;BCE&amp;quot;]&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local postchrist = true -- start by assuming no BCE&lt;br /&gt;
	local dateparts = {}&lt;br /&gt;
	for word in string.gmatch(dateval, &amp;quot;%w+&amp;quot;) do&lt;br /&gt;
		if word == &amp;quot;BCE&amp;quot; or word == &amp;quot;BC&amp;quot; then -- *** internationalise later ***&lt;br /&gt;
			postchrist = false&lt;br /&gt;
		else&lt;br /&gt;
			-- we&#039;ll keep the parts that are not &#039;BCE&#039; in a table&lt;br /&gt;
			dateparts[#dateparts + 1] = word&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if postchrist then bc = &amp;quot;&amp;quot; end -- set AD dates to no suffix *** internationalise later ***&lt;br /&gt;
&lt;br /&gt;
	local sep = &amp;quot;&amp;amp;nbsp;&amp;quot; -- separator is nbsp&lt;br /&gt;
	local fdate = table.concat(dateparts, sep) -- set formatted date to same order as input&lt;br /&gt;
&lt;br /&gt;
	-- if we have day month year, check dateformat&lt;br /&gt;
	if #dateparts == 3 then&lt;br /&gt;
		if dateformat == &amp;quot;y&amp;quot; then&lt;br /&gt;
			fdate = dateparts[3]&lt;br /&gt;
		elseif dateformat == &amp;quot;mdy&amp;quot; then&lt;br /&gt;
			fdate = dateparts[2] .. sep .. dateparts[1] .. &amp;quot;,&amp;quot; .. sep .. dateparts[3]&lt;br /&gt;
		end&lt;br /&gt;
	elseif #dateparts == 2 and dateformat == &amp;quot;y&amp;quot; then&lt;br /&gt;
		fdate = dateparts[2]&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return fdate .. bc&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- dateFormat is the handler for properties that are of type &amp;quot;time&amp;quot;&lt;br /&gt;
-- It takes timestamp, precision (6 to 11 per mediawiki), dateformat (y/dmy/mdy), BC format (BC/BCE),&lt;br /&gt;
-- a plaindate switch (yes/no/adj) to en/disable &amp;quot;sourcing circumstances&amp;quot;/use adjectival form,&lt;br /&gt;
-- any qualifiers for the property, the language, and any adjective to use like &#039;before&#039;.&lt;br /&gt;
-- It passes the date through the &amp;quot;complex date&amp;quot; function&lt;br /&gt;
-- and returns a string with the internatonalised date formatted according to preferences.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: findLang(); cdate(); dp[]&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local dateFormat = function(timestamp, dprec, df, bcf, pd, qualifiers, lang, adj, model)&lt;br /&gt;
	-- output formatting according to preferences (y/dmy/mdy/ymd)&lt;br /&gt;
	df = (df or &amp;quot;&amp;quot;):lower()&lt;br /&gt;
	-- if ymd is required, return the part of the timestamp in YYYY-MM-DD form&lt;br /&gt;
	-- but apply Year zero#Astronomers fix: 1 BC = 0000; 2 BC = -0001; etc.&lt;br /&gt;
	if df == &amp;quot;ymd&amp;quot; then&lt;br /&gt;
		if timestamp:sub(1,1) == &amp;quot;+&amp;quot; then&lt;br /&gt;
			return timestamp:sub(2,11)&lt;br /&gt;
		else&lt;br /&gt;
			local yr = tonumber(timestamp:sub(2,5)) - 1&lt;br /&gt;
			yr = (&amp;quot;000&amp;quot; .. yr):sub(-4)&lt;br /&gt;
			if yr ~= &amp;quot;0000&amp;quot; then yr = &amp;quot;-&amp;quot; .. yr end&lt;br /&gt;
			return yr .. timestamp:sub(6,11)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- A year can be stored like this: &amp;quot;+1872-00-00T00:00:00Z&amp;quot;,&lt;br /&gt;
	-- which is processed here as if it were the day before &amp;quot;+1872-01-01T00:00:00Z&amp;quot;,&lt;br /&gt;
	-- and that&#039;s the last day of 1871, so the year is wrong.&lt;br /&gt;
	-- So fix the month 0, day 0 timestamp to become 1 January instead:&lt;br /&gt;
	timestamp = timestamp:gsub(&amp;quot;%-00%-00T&amp;quot;, &amp;quot;-01-01T&amp;quot;)&lt;br /&gt;
	-- just in case date precision is missing&lt;br /&gt;
	dprec = dprec or 11&lt;br /&gt;
	-- override more precise dates if required dateformat is year alone:&lt;br /&gt;
	if df == &amp;quot;y&amp;quot; and dprec &amp;gt; 9 then dprec = 9 end&lt;br /&gt;
	-- complex date only deals with precisions from 6 to 11, so clip range&lt;br /&gt;
	dprec = dprec&amp;gt;11 and 11 or dprec&lt;br /&gt;
	dprec = dprec&amp;lt;6 and 6 or dprec&lt;br /&gt;
	-- BC format is &amp;quot;BC&amp;quot; or &amp;quot;BCE&amp;quot;&lt;br /&gt;
	bcf = (bcf or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	-- plaindate only needs the first letter (y/n/a)&lt;br /&gt;
	pd = (pd or &amp;quot;&amp;quot;):sub(1,1):lower()&lt;br /&gt;
	if pd == &amp;quot;&amp;quot; or pd == &amp;quot;n&amp;quot; or pd == &amp;quot;f&amp;quot; or pd == &amp;quot;0&amp;quot; then pd = false end&lt;br /&gt;
	-- in case language isn&#039;t passed&lt;br /&gt;
	lang = lang or findLang().code&lt;br /&gt;
	-- set adj as empty if nil&lt;br /&gt;
	adj = adj or &amp;quot;&amp;quot;&lt;br /&gt;
	-- extract the day, month, year from the timestamp&lt;br /&gt;
	local bc = timestamp:sub(1, 1)==&amp;quot;-&amp;quot; and &amp;quot;BC&amp;quot; or &amp;quot;&amp;quot;&lt;br /&gt;
	local year, month, day = timestamp:match(&amp;quot;[+-](%d*)-(%d*)-(%d*)T&amp;quot;)&lt;br /&gt;
	local iso = tonumber(year) -- if year is missing, let it throw an error&lt;br /&gt;
	-- this will adjust the date format to be compatible with cdate&lt;br /&gt;
	-- possible formats are Y, YY, YYY0, YYYY, YYYY-MM, YYYY-MM-DD&lt;br /&gt;
	if dprec == 6 then iso = math.floor( (iso - 1) / 1000 ) + 1 end&lt;br /&gt;
	if dprec == 7 then iso = math.floor( (iso - 1) / 100 ) + 1 end&lt;br /&gt;
	if dprec == 8 then iso = math.floor( iso / 10 ) .. &amp;quot;0&amp;quot; end&lt;br /&gt;
	if dprec == 10 then iso = year .. &amp;quot;-&amp;quot; .. month end&lt;br /&gt;
	if dprec == 11 then iso = year .. &amp;quot;-&amp;quot; .. month .. &amp;quot;-&amp;quot; .. day end&lt;br /&gt;
	-- add &amp;quot;circa&amp;quot; (Q5727902) from &amp;quot;sourcing circumstances&amp;quot; (P1480)&lt;br /&gt;
	local sc = not pd and qualifiers and qualifiers.P1480&lt;br /&gt;
	if sc then&lt;br /&gt;
		for k1, v1 in pairs(sc) do&lt;br /&gt;
			if v1.datavalue and v1.datavalue.value.id == &amp;quot;Q5727902&amp;quot; then&lt;br /&gt;
				adj = &amp;quot;circa&amp;quot;&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- deal with Julian dates:&lt;br /&gt;
	-- no point in saying that dates before 1582 are Julian - they are by default&lt;br /&gt;
	-- doesn&#039;t make sense for dates less precise than year&lt;br /&gt;
	-- we can suppress it by setting |plaindate, e.g. for use in constructing categories.&lt;br /&gt;
	local calendarmodel = &amp;quot;&amp;quot;&lt;br /&gt;
	if tonumber(year) &amp;gt; 1582&lt;br /&gt;
		and dprec &amp;gt; 8&lt;br /&gt;
		and not pd&lt;br /&gt;
		and model == &amp;quot;http://www.wikidata.org/entity/Q1985786&amp;quot; then&lt;br /&gt;
		calendarmodel = &amp;quot;julian&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	if not cdate then&lt;br /&gt;
		cdate = require(&amp;quot;Module:Complex date&amp;quot;)._complex_date&lt;br /&gt;
	end&lt;br /&gt;
	local fdate = cdate(calendarmodel, adj, tostring(iso), dp[dprec], bc, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, lang, 1)&lt;br /&gt;
	-- this may have QuickStatements info appended to it in a div, so remove that&lt;br /&gt;
	fdate = fdate:gsub(&#039; &amp;lt;div style=&amp;quot;display: none;&amp;quot;&amp;gt;[^&amp;lt;]*&amp;lt;/div&amp;gt;&#039;, &#039;&#039;)&lt;br /&gt;
	-- it may also be returned wrapped in a microformat, so remove that&lt;br /&gt;
	fdate = fdate:gsub(&amp;quot;&amp;lt;[^&amp;gt;]*&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	-- there may be leading zeros that we should remove&lt;br /&gt;
	fdate = fdate:gsub(&amp;quot;^0*&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	-- if a plain date is required, then remove any links (like BC linked)&lt;br /&gt;
	if pd then&lt;br /&gt;
		fdate = fdate:gsub(&amp;quot;%[%[.*|&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;]]&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	-- if &#039;circa&#039;, use the abbreviated form *** internationalise later ***&lt;br /&gt;
	fdate = fdate:gsub(&#039;circa &#039;, &#039;&amp;lt;abbr title=&amp;quot;circa&amp;quot;&amp;gt;c.&amp;lt;/abbr&amp;gt;&amp;amp;nbsp;&#039;)&lt;br /&gt;
	-- deal with BC/BCE&lt;br /&gt;
	if bcf == &amp;quot;BCE&amp;quot; then&lt;br /&gt;
		fdate = fdate:gsub(&#039;BC&#039;, &#039;BCE&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	-- deal with mdy format&lt;br /&gt;
	if df == &amp;quot;mdy&amp;quot; then&lt;br /&gt;
		fdate = fdate:gsub(&amp;quot;(%d+) (%w+) (%d+)&amp;quot;, &amp;quot;%2 %1, %3&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	-- deal with adjectival form *** internationalise later ***&lt;br /&gt;
	if pd == &amp;quot;a&amp;quot; then&lt;br /&gt;
		fdate = fdate:gsub(&#039; century&#039;, &#039;-century&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return fdate&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- parseParam takes a (string) parameter, e.g. from the list of frame arguments,&lt;br /&gt;
-- and makes &amp;quot;false&amp;quot;, &amp;quot;no&amp;quot;, and &amp;quot;0&amp;quot; into the (boolean) false&lt;br /&gt;
-- it makes the empty string and nil into the (boolean) value passed as default&lt;br /&gt;
-- allowing the parameter to be true or false by default.&lt;br /&gt;
-- It returns a boolean.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local parseParam = function(param, default)&lt;br /&gt;
	if type(param) == &amp;quot;boolean&amp;quot; then param = tostring(param) end&lt;br /&gt;
	if param and param ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		param = param:lower()&lt;br /&gt;
		if (param == &amp;quot;false&amp;quot;) or (param:sub(1,1) == &amp;quot;n&amp;quot;) or (param == &amp;quot;0&amp;quot;) then&lt;br /&gt;
			return false&lt;br /&gt;
		else&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return default&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- _getSitelink takes the qid of a Wikidata entity passed as |qid=&lt;br /&gt;
-- It takes an optional parameter |wiki= to determine which wiki is to be checked for a sitelink&lt;br /&gt;
-- If the parameter is blank, then it uses the local wiki.&lt;br /&gt;
-- If there is a sitelink to an article available, it returns the plain text link to the article&lt;br /&gt;
-- If there is no sitelink, it returns nil.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local _getSitelink = function(qid, wiki)&lt;br /&gt;
	qid = (qid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then return nil end&lt;br /&gt;
	wiki = wiki or &amp;quot;&amp;quot;&lt;br /&gt;
	local sitelink&lt;br /&gt;
	if wiki == &amp;quot;&amp;quot; then&lt;br /&gt;
		sitelink = mw.wikibase.getSitelink(qid)&lt;br /&gt;
	else&lt;br /&gt;
		sitelink = mw.wikibase.getSitelink(qid, wiki)&lt;br /&gt;
	end&lt;br /&gt;
	return sitelink&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- _getCommonslink takes an optional qid of a Wikidata entity passed as |qid=&lt;br /&gt;
-- It returns one of the following in order of preference:&lt;br /&gt;
-- 	the Commons sitelink of the Wikidata entity - but not if onlycat=true and it&#039;s not a category;&lt;br /&gt;
-- 	the Commons sitelink of the topic&#039;s main category of the Wikidata entity;&lt;br /&gt;
-- 	the Commons category of the Wikidata entity - unless fallback=false.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _getSitelink(); parseParam()&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local _getCommonslink = function(qid, onlycat, fallback)&lt;br /&gt;
	qid = (qid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then return nil end&lt;br /&gt;
	onlycat = parseParam(onlycat, false)&lt;br /&gt;
	if fallback == &amp;quot;&amp;quot; then fallback = nil end&lt;br /&gt;
	local sitelink = _getSitelink(qid, &amp;quot;commonswiki&amp;quot;)&lt;br /&gt;
	if onlycat and sitelink and sitelink:sub(1,9) ~= &amp;quot;Category:&amp;quot; then sitelink = nil end&lt;br /&gt;
	if not sitelink then&lt;br /&gt;
		-- check for topic&#039;s main category&lt;br /&gt;
		local prop910 = mw.wikibase.getBestStatements(qid, &amp;quot;P910&amp;quot;)[1]&lt;br /&gt;
		if prop910 then&lt;br /&gt;
			local tmcid = prop910.mainsnak.datavalue and prop910.mainsnak.datavalue.value.id&lt;br /&gt;
			sitelink = _getSitelink(tmcid, &amp;quot;commonswiki&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
		if not sitelink then&lt;br /&gt;
			-- check for list&#039;s main category&lt;br /&gt;
			local prop1754 = mw.wikibase.getBestStatements(qid, &amp;quot;P1754&amp;quot;)[1]&lt;br /&gt;
			if prop1754 then&lt;br /&gt;
				local tmcid = prop1754.mainsnak.datavalue and prop1754.mainsnak.datavalue.value.id&lt;br /&gt;
				sitelink = _getSitelink(tmcid, &amp;quot;commonswiki&amp;quot;)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not sitelink and fallback then&lt;br /&gt;
		-- check for Commons category (string value)&lt;br /&gt;
		local prop373 = mw.wikibase.getBestStatements(qid, &amp;quot;P373&amp;quot;)[1]&lt;br /&gt;
		if prop373 then&lt;br /&gt;
			sitelink = prop373.mainsnak.datavalue and prop373.mainsnak.datavalue.value&lt;br /&gt;
			if sitelink then sitelink = &amp;quot;Category:&amp;quot; .. sitelink end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return sitelink&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- The label in a Wikidata item is subject to vulnerabilities&lt;br /&gt;
-- that an attacker might try to exploit.&lt;br /&gt;
-- It needs to be &#039;sanitised&#039; by removing any wikitext before use.&lt;br /&gt;
-- If it doesn&#039;t exist, return the id for the item&lt;br /&gt;
-- a second (boolean) value is also returned, value is true when the label exists&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local labelOrId = function(id, lang)&lt;br /&gt;
	if lang == &amp;quot;default&amp;quot; then lang = findLang().code end&lt;br /&gt;
	local label&lt;br /&gt;
	if lang then&lt;br /&gt;
		label = mw.wikibase.getLabelByLang(id, lang)&lt;br /&gt;
	else&lt;br /&gt;
		label = mw.wikibase.getLabel(id)&lt;br /&gt;
	end&lt;br /&gt;
	if label then&lt;br /&gt;
		return mw.text.nowiki(label), true&lt;br /&gt;
	else&lt;br /&gt;
		return id, false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- linkedItem takes an entity-id and returns a string, linked if possible.&lt;br /&gt;
-- This is the handler for &amp;quot;wikibase-item&amp;quot;. Preferences:&lt;br /&gt;
-- 1. Display linked disambiguated sitelink if it exists&lt;br /&gt;
-- 2. Display linked label if it is a redirect&lt;br /&gt;
-- 3. TBA: Display an inter-language link for the label if it exists other than in default language&lt;br /&gt;
-- 4. Display unlinked label if it exists&lt;br /&gt;
-- 5. Display entity-id for now to indicate a label could be provided&lt;br /&gt;
-- dtxt is text to be used instead of label, or nil.&lt;br /&gt;
-- shortname is boolean switch to use P1813 (short name) instead of label if true.&lt;br /&gt;
-- lang is the current language code.&lt;br /&gt;
-- uselbl is boolean switch to force display of the label instead of the sitelink (default: false)&lt;br /&gt;
-- linkredir is boolean switch to allow linking to a redirect (default: false)&lt;br /&gt;
-- formatvalue is boolean switch to allow formatting as italics or quoted (default: false)&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: labelOrId(); donotlink[]&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local linkedItem = function(id, args)&lt;br /&gt;
	local lprefix = (args.lp or args.lprefix or args.linkprefix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;) -- toughen against nil values passed&lt;br /&gt;
	local lpostfix = (args.lpostfix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	local prefix = (args.prefix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	local postfix = (args.postfix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	local dtxt = args.dtxt&lt;br /&gt;
	local shortname = args.shortname or args.sn&lt;br /&gt;
	local lang = args.lang or &amp;quot;en&amp;quot; -- fallback to default if missing&lt;br /&gt;
	local uselbl = args.uselabel or args.uselbl&lt;br /&gt;
	uselbl = parseParam(uselbl, false)&lt;br /&gt;
	local linkredir = args.linkredir&lt;br /&gt;
	linkredir = parseParam(linkredir, false)&lt;br /&gt;
	local formatvalue = args.formatvalue or args.fv&lt;br /&gt;
	formatvalue = parseParam(formatvalue, false)&lt;br /&gt;
	-- see if item might need italics or quotes&lt;br /&gt;
	local fmt = &amp;quot;&amp;quot;&lt;br /&gt;
	if next(formats) and formatvalue then&lt;br /&gt;
		for k, v in ipairs( mw.wikibase.getBestStatements(id, &amp;quot;P31&amp;quot;) ) do&lt;br /&gt;
			if v.mainsnak.datavalue and formats[v.mainsnak.datavalue.value.id] then&lt;br /&gt;
				fmt = formats[v.mainsnak.datavalue.value.id]&lt;br /&gt;
				break -- pick the first match&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local disp&lt;br /&gt;
	local sitelink = mw.wikibase.getSitelink(id)&lt;br /&gt;
	local label, islabel&lt;br /&gt;
	if dtxt then&lt;br /&gt;
		label, islabel = dtxt, true&lt;br /&gt;
	elseif shortname then&lt;br /&gt;
		-- see if there is a shortname in our language, and set label to it&lt;br /&gt;
		for k, v in ipairs( mw.wikibase.getBestStatements(id, &amp;quot;P1813&amp;quot;) ) do&lt;br /&gt;
			if v.mainsnak.datavalue.value.language == lang then&lt;br /&gt;
				label, islabel = v.mainsnak.datavalue.value.text, true&lt;br /&gt;
				break&lt;br /&gt;
			end -- test for language match&lt;br /&gt;
		end -- loop through values of short name&lt;br /&gt;
		-- if we have no label set, then there was no shortname available&lt;br /&gt;
		if not islabel then&lt;br /&gt;
			label, islabel = labelOrId(id)&lt;br /&gt;
			shortname = false&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		label, islabel = labelOrId(id)&lt;br /&gt;
	end&lt;br /&gt;
	if mw.site.siteName ~= &amp;quot;Wikimedia Commons&amp;quot; then&lt;br /&gt;
		if sitelink then&lt;br /&gt;
			if not (dtxt or shortname) then&lt;br /&gt;
				-- if sitelink and label are the same except for case, no need to process further&lt;br /&gt;
				if sitelink:lower() ~= label:lower() then&lt;br /&gt;
					-- strip any namespace or dab from the sitelink&lt;br /&gt;
					local pos = sitelink:find(&amp;quot;:&amp;quot;) or 0&lt;br /&gt;
					local slink = sitelink&lt;br /&gt;
					if pos &amp;gt; 0 then&lt;br /&gt;
						local pfx = sitelink:sub(1,pos-1)&lt;br /&gt;
						if mw.site.namespaces[pfx] then -- that prefix is a valid namespace, so remove it&lt;br /&gt;
							slink = sitelink:sub(pos+1)&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					-- remove stuff after commas or inside parentheses - ie. dabs&lt;br /&gt;
					slink = slink:gsub(&amp;quot;%s%(.+%)$&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;,.+$&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
					-- if uselbl is false, use sitelink instead of label&lt;br /&gt;
					if not uselbl then&lt;br /&gt;
						--  use slink as display, preserving label case - find(&amp;quot;^%u&amp;quot;) is true for 1st char uppercase&lt;br /&gt;
						if label:find(&amp;quot;^%u&amp;quot;) then&lt;br /&gt;
							label = slink:gsub(&amp;quot;^(%l)&amp;quot;, string.upper)&lt;br /&gt;
						else&lt;br /&gt;
							label = slink:gsub(&amp;quot;^(%u)&amp;quot;, string.lower)&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if donotlink[label] then&lt;br /&gt;
				disp = prefix .. fmt .. label .. fmt .. postfix&lt;br /&gt;
			else&lt;br /&gt;
				disp = &amp;quot;[[&amp;quot; .. lprefix .. sitelink .. lpostfix .. &amp;quot;|&amp;quot; .. prefix .. fmt .. label .. fmt .. postfix .. &amp;quot;]]&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		elseif islabel then&lt;br /&gt;
			-- no sitelink, label exists, so check if a redirect with that title exists, if linkredir is true&lt;br /&gt;
			-- display plain label by default&lt;br /&gt;
			disp = prefix .. fmt .. label .. fmt .. postfix&lt;br /&gt;
			if linkredir then&lt;br /&gt;
				local artitle = mw.title.new(label, 0) -- only nil if label has invalid chars&lt;br /&gt;
				if not donotlink[label] and artitle and artitle.redirectTarget then&lt;br /&gt;
					-- there&#039;s a redirect with the same title as the label, so let&#039;s link to that&lt;br /&gt;
					disp = &amp;quot;[[&amp;quot;.. lprefix .. label .. lpostfix .. &amp;quot;|&amp;quot; .. prefix .. fmt .. label .. fmt .. postfix .. &amp;quot;]]&amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
			end -- test if article title exists as redirect on current Wiki&lt;br /&gt;
		else&lt;br /&gt;
			-- no sitelink and no label, so return whatever was returned from labelOrId for now&lt;br /&gt;
			-- add tracking category [[Category:Articles with missing Wikidata information]]&lt;br /&gt;
			-- for enwiki, just return the tracking category&lt;br /&gt;
			if mw.wikibase.getGlobalSiteId() == &amp;quot;enwiki&amp;quot; then&lt;br /&gt;
				disp = i18n.missinginfocat&lt;br /&gt;
			else&lt;br /&gt;
				disp = prefix .. label .. postfix .. i18n.missinginfocat&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		local ccat = mw.wikibase.getBestStatements(id, &amp;quot;P373&amp;quot;)[1]&lt;br /&gt;
		if ccat and ccat.mainsnak.datavalue then&lt;br /&gt;
			ccat = ccat.mainsnak.datavalue.value&lt;br /&gt;
			disp = &amp;quot;[[&amp;quot; .. lprefix .. &amp;quot;Category:&amp;quot; .. ccat .. lpostfix .. &amp;quot;|&amp;quot; .. prefix .. label .. postfix .. &amp;quot;]]&amp;quot;&lt;br /&gt;
		elseif sitelink then&lt;br /&gt;
			-- this asumes that if a sitelink exists, then a label also exists&lt;br /&gt;
			disp = &amp;quot;[[&amp;quot; .. lprefix .. sitelink .. lpostfix .. &amp;quot;|&amp;quot; .. prefix .. label .. postfix .. &amp;quot;]]&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			-- no sitelink and no Commons cat, so return label from labelOrId for now&lt;br /&gt;
			disp = prefix .. label .. postfix&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return disp&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- sourced takes a table representing a statement that may or may not have references&lt;br /&gt;
-- it looks for a reference sourced to something not containing the word &amp;quot;wikipedia&amp;quot;&lt;br /&gt;
-- it returns a boolean = true if it finds a sourced reference.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local sourced = function(claim)&lt;br /&gt;
	if claim.references then&lt;br /&gt;
		for kr, vr in pairs(claim.references) do&lt;br /&gt;
			local ref = mw.wikibase.renderSnaks(vr.snaks)&lt;br /&gt;
			if not ref:find(&amp;quot;Wiki&amp;quot;) then&lt;br /&gt;
				return 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;
-------------------------------------------------------------------------------&lt;br /&gt;
-- setRanks takes a flag (parameter passed) that requests the values to return&lt;br /&gt;
-- &amp;quot;b[est]&amp;quot; returns preferred if available, otherwise normal&lt;br /&gt;
-- &amp;quot;p[referred]&amp;quot; returns preferred&lt;br /&gt;
-- &amp;quot;n[ormal]&amp;quot; returns normal&lt;br /&gt;
-- &amp;quot;d[eprecated]&amp;quot; returns deprecated&lt;br /&gt;
-- multiple values are allowed, e.g. &amp;quot;preferred normal&amp;quot; (which is the default)&lt;br /&gt;
-- &amp;quot;best&amp;quot; will override the other flags, and set p and n&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local setRanks = function(rank)&lt;br /&gt;
	rank = (rank or &amp;quot;&amp;quot;):lower()&lt;br /&gt;
	-- if nothing passed, return preferred and normal&lt;br /&gt;
	-- if rank == &amp;quot;&amp;quot; then rank = &amp;quot;p n&amp;quot; end&lt;br /&gt;
	local ranks = {}&lt;br /&gt;
	for w in string.gmatch(rank, &amp;quot;%a+&amp;quot;) do&lt;br /&gt;
		w = w:sub(1,1)&lt;br /&gt;
		if w == &amp;quot;b&amp;quot; or w == &amp;quot;p&amp;quot; or w == &amp;quot;n&amp;quot; or w == &amp;quot;d&amp;quot; then&lt;br /&gt;
			ranks[w] = true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- check if &amp;quot;best&amp;quot; is requested or no ranks requested; and if so, set preferred and normal&lt;br /&gt;
	if ranks.b or not next(ranks) then&lt;br /&gt;
		ranks.p = true&lt;br /&gt;
		ranks.n = true&lt;br /&gt;
	end&lt;br /&gt;
	return ranks&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- parseInput processes the Q-id , the blacklist and the whitelist&lt;br /&gt;
-- if an input parameter is supplied, it returns that and ends the call.&lt;br /&gt;
-- it returns (1) either the qid or nil indicating whether or not the call should continue&lt;br /&gt;
-- and (2) a table containing all of the statements for the propertyID and relevant Qid&lt;br /&gt;
-- if &amp;quot;best&amp;quot; ranks are requested, it returns those instead of all non-deprecated ranks&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local parseInput = function(frame, input_parm, property_id)&lt;br /&gt;
	-- There may be a local parameter supplied, if it&#039;s blank, set it to nil&lt;br /&gt;
	input_parm = mw.text.trim(input_parm or &amp;quot;&amp;quot;)&lt;br /&gt;
	if input_parm == &amp;quot;&amp;quot; then input_parm = nil end&lt;br /&gt;
&lt;br /&gt;
	-- return nil if Wikidata is not available&lt;br /&gt;
	if not mw.wikibase then return false, input_parm end&lt;br /&gt;
&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
&lt;br /&gt;
	-- can take a named parameter |qid which is the Wikidata ID for the article.&lt;br /&gt;
	-- if it&#039;s not supplied, use the id for the current page&lt;br /&gt;
	local qid = args.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	-- if there&#039;s no Wikidata item for the current page return nil&lt;br /&gt;
	if not qid then return false, input_parm end&lt;br /&gt;
&lt;br /&gt;
	-- The blacklist is passed in named parameter |suppressfields&lt;br /&gt;
	local blacklist = args.suppressfields or args.spf or &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	-- The whitelist is passed in named parameter |fetchwikidata&lt;br /&gt;
	local whitelist = args.fetchwikidata or args.fwd or &amp;quot;&amp;quot;&lt;br /&gt;
	if whitelist == &amp;quot;&amp;quot; then whitelist = &amp;quot;NONE&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	-- The name of the field that this function is called from is passed in named parameter |name&lt;br /&gt;
	local fieldname = args.name or &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	if blacklist ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		-- The name is compulsory when blacklist is used, so return nil if it is not supplied&lt;br /&gt;
		if fieldname == &amp;quot;&amp;quot; then return false, nil end&lt;br /&gt;
		-- If this field is on the blacklist, then return nil&lt;br /&gt;
		if blacklist:find(fieldname) then return false, nil end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- If we got this far then we&#039;re not on the blacklist&lt;br /&gt;
	-- The blacklist overrides any locally supplied parameter as well&lt;br /&gt;
	-- If a non-blank input parameter was supplied return it&lt;br /&gt;
	if input_parm then return false, input_parm end&lt;br /&gt;
&lt;br /&gt;
	-- We can filter out non-valid properties&lt;br /&gt;
	if property_id:sub(1,1):upper() ~=&amp;quot;P&amp;quot; or property_id == &amp;quot;P0&amp;quot; then return false, nil end&lt;br /&gt;
&lt;br /&gt;
	-- Otherwise see if this field is on the whitelist:&lt;br /&gt;
	-- needs a bit more logic because find will return its second value = 0 if fieldname is &amp;quot;&amp;quot;&lt;br /&gt;
	-- but nil if fieldname not found on whitelist&lt;br /&gt;
	local _, found = whitelist:find(fieldname)&lt;br /&gt;
	found = ((found or 0) &amp;gt; 0)&lt;br /&gt;
	if whitelist ~= &#039;ALL&#039; and (whitelist:upper() == &amp;quot;NONE&amp;quot; or not found) then&lt;br /&gt;
		return false, nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- See what&#039;s on Wikidata (the call always returns a table, but it may be empty):&lt;br /&gt;
	local props = {}&lt;br /&gt;
	if args.reqranks.b then&lt;br /&gt;
		props = mw.wikibase.getBestStatements(qid, property_id)&lt;br /&gt;
	else&lt;br /&gt;
		props = mw.wikibase.getAllStatements(qid, property_id)&lt;br /&gt;
	end&lt;br /&gt;
	if props[1] then&lt;br /&gt;
		return qid, props&lt;br /&gt;
	end&lt;br /&gt;
	-- no property on Wikidata&lt;br /&gt;
	return false, nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- createicon assembles the &amp;quot;Edit at Wikidata&amp;quot; pen icon.&lt;br /&gt;
-- It returns a wikitext string inside a span class=&amp;quot;penicon&amp;quot;&lt;br /&gt;
-- if entityID is nil or empty, the ID associated with current page is used&lt;br /&gt;
-- langcode and propertyID may be nil or empty&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: i18n[];&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local createicon = function(langcode, entityID, propertyID)&lt;br /&gt;
	langcode = langcode or &amp;quot;&amp;quot;&lt;br /&gt;
	if not entityID or entityID == &amp;quot;&amp;quot; then entityID= mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	propertyID = propertyID or &amp;quot;&amp;quot;&lt;br /&gt;
	local icon = &amp;quot;&amp;amp;nbsp;&amp;lt;span class=&#039;penicon autoconfirmed-show&#039;&amp;gt;[[&amp;quot;&lt;br /&gt;
	-- &amp;quot;&amp;amp;nbsp;&amp;lt;span data-bridge-edit-flow=&#039;overwrite&#039; class=&#039;penicon&#039;&amp;gt;[[&amp;quot; -&amp;gt; enable Wikidata Bridge&lt;br /&gt;
	.. i18n[&amp;quot;filespace&amp;quot;]&lt;br /&gt;
	.. &amp;quot;:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=&amp;quot;&lt;br /&gt;
	.. i18n[&amp;quot;editonwikidata&amp;quot;]&lt;br /&gt;
	.. &amp;quot;|link=https://www.wikidata.org/wiki/&amp;quot; .. entityID&lt;br /&gt;
	if langcode ~= &amp;quot;&amp;quot; then icon = icon .. &amp;quot;?uselang=&amp;quot; .. langcode end&lt;br /&gt;
	if propertyID ~= &amp;quot;&amp;quot; then icon = icon .. &amp;quot;#&amp;quot; .. propertyID end&lt;br /&gt;
	icon = icon .. &amp;quot;|&amp;quot; .. i18n[&amp;quot;editonwikidata&amp;quot;] .. &amp;quot;]]&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
	return icon&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- assembleoutput takes the sequence table containing the property values&lt;br /&gt;
-- and formats it according to switches given. It returns a string or nil.&lt;br /&gt;
-- It uses the entityID (and optionally propertyID) to create a link in the pen icon.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local assembleoutput = function(out, args, entityID, propertyID)&lt;br /&gt;
&lt;br /&gt;
	-- sorted is a boolean passed to enable sorting of the values returned&lt;br /&gt;
	-- if nothing or an empty string is passed set it false&lt;br /&gt;
	-- if &amp;quot;false&amp;quot; or &amp;quot;no&amp;quot; or &amp;quot;0&amp;quot; is passed set it false&lt;br /&gt;
	local sorted = parseParam(args.sorted, false)&lt;br /&gt;
&lt;br /&gt;
	-- noicon is a boolean passed to suppress the trailing &amp;quot;edit at Wikidata&amp;quot; icon&lt;br /&gt;
	-- for use when the value is processed further by the infobox&lt;br /&gt;
	-- if nothing or an empty string is passed set it false&lt;br /&gt;
	-- if &amp;quot;false&amp;quot; or &amp;quot;no&amp;quot; or &amp;quot;0&amp;quot; is passed set it false&lt;br /&gt;
	local noic = parseParam(args.noicon, false)&lt;br /&gt;
&lt;br /&gt;
	-- list is the name of a template that a list of multiple values is passed through&lt;br /&gt;
	-- examples include &amp;quot;hlist&amp;quot; and &amp;quot;ubl&amp;quot;&lt;br /&gt;
	-- setting it to &amp;quot;prose&amp;quot; produces something like &amp;quot;1, 2, 3, and 4&amp;quot;&lt;br /&gt;
	local list = args.list or &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	-- sep is a string that is used to separate multiple returned values&lt;br /&gt;
	-- if nothing or an empty string is passed set it to the default&lt;br /&gt;
	-- any double-quotes &amp;quot; are stripped out, so that spaces may be passed&lt;br /&gt;
	-- e.g. |sep=&amp;quot; - &amp;quot;&lt;br /&gt;
	local sepdefault = i18n[&amp;quot;list separator&amp;quot;]&lt;br /&gt;
	local separator = args.sep or &amp;quot;&amp;quot;&lt;br /&gt;
	separator = string.gsub(separator, &#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	if separator == &amp;quot;&amp;quot; then&lt;br /&gt;
		separator = sepdefault&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- collapse is a number that determines the maximum number of returned values&lt;br /&gt;
	-- before the output is collapsed.&lt;br /&gt;
	-- Zero or not a number result in no collapsing (default becomes 0).&lt;br /&gt;
	local collapse = tonumber(args.collapse) or 0&lt;br /&gt;
&lt;br /&gt;
	-- replacetext (rt) is a string that is returned instead of any non-empty Wikidata value&lt;br /&gt;
	-- this is useful for tracking and debugging&lt;br /&gt;
	local replacetext = mw.text.trim(args.rt or args.replacetext or &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	-- if there&#039;s anything to return, then return a list&lt;br /&gt;
	-- comma-separated by default, but may be specified by the sep parameter&lt;br /&gt;
	-- optionally specify a hlist or ubl or a prose list, etc.&lt;br /&gt;
	local strout&lt;br /&gt;
	if #out &amp;gt; 0 then&lt;br /&gt;
		if sorted then table.sort(out) end&lt;br /&gt;
		-- if there&#039;s something to display and a pen icon is wanted, add it the end of the last value&lt;br /&gt;
		local hasdisplay = false&lt;br /&gt;
		for i, v in ipairs(out) do&lt;br /&gt;
			if v ~= i18n.missinginfocat then&lt;br /&gt;
				hasdisplay = true&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if not noic and hasdisplay then&lt;br /&gt;
			out[#out] = out[#out] .. createicon(args.langobj.code, entityID, propertyID)&lt;br /&gt;
		end&lt;br /&gt;
		if list == &amp;quot;&amp;quot; then&lt;br /&gt;
			strout = table.concat(out, separator)&lt;br /&gt;
		elseif list:lower() == &amp;quot;prose&amp;quot; then&lt;br /&gt;
			strout = mw.text.listToText( out )&lt;br /&gt;
		else&lt;br /&gt;
			strout = mw.getCurrentFrame():expandTemplate{title = list, args = out}&lt;br /&gt;
		end&lt;br /&gt;
		if collapse &amp;gt;0 and #out &amp;gt; collapse then&lt;br /&gt;
			strout = collapsediv .. strout .. &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		strout = nil -- no items had valid reference&lt;br /&gt;
	end&lt;br /&gt;
	if replacetext ~= &amp;quot;&amp;quot; and strout then strout = replacetext end&lt;br /&gt;
	return strout&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- rendersnak takes a table (propval) containing the information stored on one property value&lt;br /&gt;
-- and returns the value as a string and its language if monolingual text.&lt;br /&gt;
-- It handles data of type:&lt;br /&gt;
--		wikibase-item&lt;br /&gt;
--		time&lt;br /&gt;
--		string, url, commonsMedia, external-id&lt;br /&gt;
--		quantity&lt;br /&gt;
--		globe-coordinate&lt;br /&gt;
--		monolingualtext&lt;br /&gt;
-- It also requires linked, the link/pre/postfixes, uabbr, and the arguments passed from frame.&lt;br /&gt;
-- The optional filter parameter allows quantities to be be filtered by unit Qid.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam(); labelOrId(); i18n[]; dateFormat();&lt;br /&gt;
-- roundto(); decimalPrecision(); decimalToDMS(); linkedItem();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local rendersnak = function(propval, args, linked, lpre, lpost, pre, post, uabbr, filter)&lt;br /&gt;
	lpre = lpre or &amp;quot;&amp;quot;&lt;br /&gt;
	lpost = lpost or &amp;quot;&amp;quot;&lt;br /&gt;
	pre = pre or &amp;quot;&amp;quot;&lt;br /&gt;
	post = post or &amp;quot;&amp;quot;&lt;br /&gt;
	args.lang = args.lang or findLang().code&lt;br /&gt;
	-- allow values to display a fixed text instead of label&lt;br /&gt;
	local dtxt = args.displaytext or args.dt&lt;br /&gt;
	if dtxt == &amp;quot;&amp;quot; then dtxt = nil end&lt;br /&gt;
	-- switch to use display of short name (P1813) instead of label&lt;br /&gt;
	local shortname = args.shortname or args.sn&lt;br /&gt;
	shortname = parseParam(shortname, false)&lt;br /&gt;
	local snak = propval.mainsnak or propval&lt;br /&gt;
	local dtype = snak.datatype&lt;br /&gt;
	local dv = snak.datavalue&lt;br /&gt;
	dv = dv and dv.value&lt;br /&gt;
	-- value and monolingual text language code returned&lt;br /&gt;
	local val, mlt&lt;br /&gt;
	if propval.rank and not args.reqranks[propval.rank:sub(1, 1)] then&lt;br /&gt;
		-- val is nil: value has a rank that isn&#039;t requested&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	elseif snak.snaktype == &amp;quot;somevalue&amp;quot; then -- value is unknown&lt;br /&gt;
		val = i18n[&amp;quot;Unknown&amp;quot;]&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	elseif snak.snaktype == &amp;quot;novalue&amp;quot; then -- value is none&lt;br /&gt;
		-- val = &amp;quot;No value&amp;quot; -- don&#039;t return anything&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	elseif dtype == &amp;quot;wikibase-item&amp;quot; then -- data type is a wikibase item:&lt;br /&gt;
		-- it&#039;s wiki-linked value, so output as link if enabled and possible&lt;br /&gt;
		local qnumber = dv.id&lt;br /&gt;
		if linked then&lt;br /&gt;
			val = linkedItem(qnumber, args)&lt;br /&gt;
		else -- no link wanted so check for display-text, otherwise test for lang code&lt;br /&gt;
			local label, islabel&lt;br /&gt;
			if dtxt then&lt;br /&gt;
				label = dtxt&lt;br /&gt;
			else&lt;br /&gt;
				label, islabel = labelOrId(qnumber)&lt;br /&gt;
				local langlabel = mw.wikibase.getLabelByLang(qnumber, args.lang)&lt;br /&gt;
				if langlabel then&lt;br /&gt;
					label = mw.text.nowiki( langlabel )&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			val = pre .. label .. post&lt;br /&gt;
		end -- test for link required&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	elseif dtype == &amp;quot;time&amp;quot; then -- data type is time:&lt;br /&gt;
		-- time is in timestamp format&lt;br /&gt;
		-- date precision is integer per mediawiki&lt;br /&gt;
		-- output formatting according to preferences (y/dmy/mdy)&lt;br /&gt;
		-- BC format as BC or BCE&lt;br /&gt;
		-- plaindate is passed to disable looking for &amp;quot;sourcing cirumstances&amp;quot;&lt;br /&gt;
		-- or to set the adjectival form&lt;br /&gt;
		-- qualifiers (if any) is a nested table or nil&lt;br /&gt;
		-- lang is given, or user language, or site language&lt;br /&gt;
		--&lt;br /&gt;
		-- Here we can check whether args.df has a value&lt;br /&gt;
		-- If not, use code from Module:Sandbox/RexxS/Getdateformat to set it from templates like {{Use mdy dates}}&lt;br /&gt;
		val = dateFormat(dv.time, dv.precision, args.df, args.bc, args.pd, propval.qualifiers, args.lang, &amp;quot;&amp;quot;, dv.calendarmodel)&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	-- data types which are strings:&lt;br /&gt;
	elseif dtype == &amp;quot;commonsMedia&amp;quot; or dtype == &amp;quot;external-id&amp;quot; or dtype == &amp;quot;string&amp;quot; or dtype == &amp;quot;url&amp;quot; then&lt;br /&gt;
		-- commonsMedia or external-id or string or url&lt;br /&gt;
		-- all have mainsnak.datavalue.value as string&lt;br /&gt;
		if (lpre == &amp;quot;&amp;quot; or lpre == &amp;quot;:&amp;quot;) and lpost == &amp;quot;&amp;quot; then&lt;br /&gt;
			-- don&#039;t link if no linkpre/postfix or linkprefix is just &amp;quot;:&amp;quot;&lt;br /&gt;
			val = pre .. dv .. post&lt;br /&gt;
		elseif dtype == &amp;quot;external-id&amp;quot; then&lt;br /&gt;
			val = &amp;quot;[&amp;quot; .. lpre .. dv .. lpost .. &amp;quot; &amp;quot; .. pre .. dv .. post .. &amp;quot;]&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			val = &amp;quot;[[&amp;quot; .. lpre .. dv .. lpost .. &amp;quot;|&amp;quot; .. pre .. dv .. post .. &amp;quot;]]&amp;quot;&lt;br /&gt;
		end -- check for link requested (i.e. either linkprefix or linkpostfix exists)&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	-- data types which are quantities:&lt;br /&gt;
	elseif dtype == &amp;quot;quantity&amp;quot; then&lt;br /&gt;
		-- quantities have mainsnak.datavalue.value.amount and mainsnak.datavalue.value.unit&lt;br /&gt;
		-- the unit is of the form http://www.wikidata.org/entity/Q829073&lt;br /&gt;
		--&lt;br /&gt;
		-- implement a switch to turn on/off numerical formatting later&lt;br /&gt;
		local fnum = true&lt;br /&gt;
		--&lt;br /&gt;
		-- a switch to turn on/off conversions - only for en-wiki&lt;br /&gt;
		local conv = parseParam(args.conv or args.convert, false)&lt;br /&gt;
		-- if we have conversions, we won&#039;t have formatted numbers or scales&lt;br /&gt;
		if conv then&lt;br /&gt;
			uabbr = true&lt;br /&gt;
			fnum = false&lt;br /&gt;
			args.scale = &amp;quot;0&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		--&lt;br /&gt;
		-- a switch to turn on/off showing units, default is true&lt;br /&gt;
		local showunits = parseParam(args.su or args.showunits, true)&lt;br /&gt;
		--&lt;br /&gt;
		-- convert amount to a number&lt;br /&gt;
		local amount = tonumber(dv.amount) or i18n[&amp;quot;NaN&amp;quot;]&lt;br /&gt;
		--&lt;br /&gt;
		-- scale factor for millions, billions, etc.&lt;br /&gt;
		local sc = tostring(args.scale or &amp;quot;&amp;quot;):sub(1,1):lower()&lt;br /&gt;
		local scale&lt;br /&gt;
		if sc == &amp;quot;a&amp;quot; then&lt;br /&gt;
			-- automatic scaling&lt;br /&gt;
			if amount &amp;gt; 1e15 then&lt;br /&gt;
				scale = 12&lt;br /&gt;
			elseif amount &amp;gt; 1e12 then&lt;br /&gt;
				scale = 9&lt;br /&gt;
			elseif amount &amp;gt; 1e9 then&lt;br /&gt;
				scale = 6&lt;br /&gt;
			elseif amount &amp;gt; 1e6 then&lt;br /&gt;
				scale = 3&lt;br /&gt;
			else&lt;br /&gt;
				scale = 0&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			scale = tonumber(args.scale) or 0&lt;br /&gt;
			if scale &amp;lt; 0 or scale &amp;gt; 12 then scale = 0 end&lt;br /&gt;
			scale = math.floor(scale/3) * 3&lt;br /&gt;
		end&lt;br /&gt;
		local factor = 10^scale&lt;br /&gt;
		amount = amount / factor&lt;br /&gt;
		-- ranges:&lt;br /&gt;
		local range = &amp;quot;&amp;quot;&lt;br /&gt;
		-- check if upper and/or lower bounds are given and significant&lt;br /&gt;
		local upb = tonumber(dv.upperBound)&lt;br /&gt;
		local lowb = tonumber(dv.lowerBound)&lt;br /&gt;
		if upb and lowb then&lt;br /&gt;
			-- differences rounded to 2 sig fig:&lt;br /&gt;
			local posdif = roundto(upb - amount, 2) / factor&lt;br /&gt;
			local negdif = roundto(amount - lowb, 2) / factor&lt;br /&gt;
			upb, lowb = amount + posdif, amount - negdif&lt;br /&gt;
			-- round scaled numbers to integers or 4 sig fig&lt;br /&gt;
			if (scale &amp;gt; 0 or sc == &amp;quot;a&amp;quot;) then&lt;br /&gt;
				if amount &amp;lt; 1e4 then&lt;br /&gt;
					amount = roundto(amount, 4)&lt;br /&gt;
				else&lt;br /&gt;
					amount = math.floor(amount + 0.5)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if fnum then amount = args.langobj:formatNum( amount ) end&lt;br /&gt;
			if posdif ~= negdif then&lt;br /&gt;
				-- non-symmetrical&lt;br /&gt;
				range = &amp;quot; +&amp;quot; .. posdif .. &amp;quot; -&amp;quot; .. negdif&lt;br /&gt;
			elseif posdif ~= 0 then&lt;br /&gt;
				-- symmetrical and non-zero&lt;br /&gt;
				range = &amp;quot; ±&amp;quot; .. posdif&lt;br /&gt;
			else&lt;br /&gt;
				-- otherwise range is zero, so leave it as &amp;quot;&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			-- round scaled numbers to integers or 4 sig fig&lt;br /&gt;
			if (scale &amp;gt; 0 or sc == &amp;quot;a&amp;quot;) then&lt;br /&gt;
				if amount &amp;lt; 1e4 then&lt;br /&gt;
					amount = roundto(amount, 4)&lt;br /&gt;
				else&lt;br /&gt;
					amount = math.floor(amount + 0.5)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if fnum then amount = args.langobj:formatNum( amount ) end&lt;br /&gt;
		end&lt;br /&gt;
		-- unit names and symbols:&lt;br /&gt;
		-- extract the qid in the form &#039;Qnnn&#039; from the value.unit url&lt;br /&gt;
		-- and then fetch the label from that - or symbol if unitabbr is true&lt;br /&gt;
		local unit = &amp;quot;&amp;quot;&lt;br /&gt;
		local usep = &amp;quot;&amp;quot;&lt;br /&gt;
		local usym = &amp;quot;&amp;quot;&lt;br /&gt;
		local unitqid = string.match( dv.unit, &amp;quot;(Q%d+)&amp;quot; )&lt;br /&gt;
		if filter and unitqid ~= filter then return nil end&lt;br /&gt;
		if unitqid and showunits then&lt;br /&gt;
			local uname = mw.wikibase.getLabelByLang(unitqid, args.lang) or &amp;quot;&amp;quot;&lt;br /&gt;
			if uname ~= &amp;quot;&amp;quot; then usep, unit = &amp;quot; &amp;quot;, uname end&lt;br /&gt;
			if uabbr then&lt;br /&gt;
				-- see if there&#039;s a unit symbol (P5061)&lt;br /&gt;
				local unitsymbols = mw.wikibase.getBestStatements(unitqid, &amp;quot;P5061&amp;quot;)&lt;br /&gt;
				-- construct fallback table, add local lang and multiple languages&lt;br /&gt;
				local fbtbl = mw.language.getFallbacksFor( args.lang )&lt;br /&gt;
				table.insert( fbtbl, 1, args.lang )&lt;br /&gt;
				table.insert( fbtbl, 1, &amp;quot;mul&amp;quot; )&lt;br /&gt;
				local found = false&lt;br /&gt;
				for idx1, us in ipairs(unitsymbols) do&lt;br /&gt;
					for idx2, fblang in ipairs(fbtbl) do&lt;br /&gt;
						if us.mainsnak.datavalue.value.language == fblang then&lt;br /&gt;
							usym = us.mainsnak.datavalue.value.text&lt;br /&gt;
							found = true&lt;br /&gt;
							break&lt;br /&gt;
						end&lt;br /&gt;
					if found then break end&lt;br /&gt;
					end -- loop through fallback table&lt;br /&gt;
				end -- loop through values of P5061&lt;br /&gt;
				if found then usep, unit = &amp;quot;&amp;amp;nbsp;&amp;quot;, usym end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		-- format display:&lt;br /&gt;
		if conv then&lt;br /&gt;
			if range == &amp;quot;&amp;quot; then&lt;br /&gt;
				val = mw.getCurrentFrame():expandTemplate{title = &amp;quot;cvt&amp;quot;, args = {amount, unit}}&lt;br /&gt;
			else&lt;br /&gt;
				val = mw.getCurrentFrame():expandTemplate{title = &amp;quot;cvt&amp;quot;, args = {lowb, &amp;quot;to&amp;quot;, upb, unit}}&lt;br /&gt;
			end&lt;br /&gt;
		elseif unit == &amp;quot;$&amp;quot; or unit == &amp;quot;£&amp;quot; then&lt;br /&gt;
			val = unit .. amount .. range .. i18n.multipliers[scale]&lt;br /&gt;
		else&lt;br /&gt;
			val = amount .. range .. i18n.multipliers[scale] .. usep .. unit&lt;br /&gt;
		end&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	-- datatypes which are global coordinates:&lt;br /&gt;
	elseif dtype == &amp;quot;globe-coordinate&amp;quot; then&lt;br /&gt;
		-- &#039;display&#039; parameter defaults to &amp;quot;inline, title&amp;quot; *** unused for now ***&lt;br /&gt;
		-- local disp = args.display or &amp;quot;&amp;quot;&lt;br /&gt;
		-- if disp == &amp;quot;&amp;quot; then disp = &amp;quot;inline, title&amp;quot; end&lt;br /&gt;
		--&lt;br /&gt;
		-- format parameter switches from deg/min/sec to decimal degrees&lt;br /&gt;
		-- default is deg/min/sec -- decimal degrees needs |format = dec&lt;br /&gt;
		local form = (args.format or &amp;quot;&amp;quot;):lower():sub(1,3)&lt;br /&gt;
		if form ~= &amp;quot;dec&amp;quot; then form = &amp;quot;dms&amp;quot; end -- not needed for now&lt;br /&gt;
		--&lt;br /&gt;
		-- show parameter allows just the latitude, or just the longitude, or both&lt;br /&gt;
		-- to be returned as a signed decimal, ignoring the format parameter.&lt;br /&gt;
		local show = (args.show or &amp;quot;&amp;quot;):lower()&lt;br /&gt;
		if show ~= &amp;quot;longlat&amp;quot; then show = show:sub(1,3) end&lt;br /&gt;
		--&lt;br /&gt;
		local lat, long, prec = dv.latitude, dv.longitude, dv.precision&lt;br /&gt;
		if show == &amp;quot;lat&amp;quot; then&lt;br /&gt;
			val = decimalPrecision(lat, prec)&lt;br /&gt;
		elseif show == &amp;quot;lon&amp;quot; then&lt;br /&gt;
			val = decimalPrecision(long, prec)&lt;br /&gt;
		elseif show == &amp;quot;longlat&amp;quot; then&lt;br /&gt;
			val = decimalPrecision(long, prec) .. &amp;quot;, &amp;quot; .. decimalPrecision(lat, prec)&lt;br /&gt;
		else&lt;br /&gt;
			local ns = &amp;quot;N&amp;quot;&lt;br /&gt;
			local ew = &amp;quot;E&amp;quot;&lt;br /&gt;
			if lat &amp;lt; 0 then&lt;br /&gt;
				ns = &amp;quot;S&amp;quot;&lt;br /&gt;
				lat = - lat&lt;br /&gt;
			end&lt;br /&gt;
			if long &amp;lt; 0 then&lt;br /&gt;
				ew = &amp;quot;W&amp;quot;&lt;br /&gt;
				long = - long&lt;br /&gt;
			end&lt;br /&gt;
			if form == &amp;quot;dec&amp;quot; then&lt;br /&gt;
				lat = decimalPrecision(lat, prec)&lt;br /&gt;
				long = decimalPrecision(long, prec)&lt;br /&gt;
				val = lat .. &amp;quot;°&amp;quot; .. ns .. &amp;quot; &amp;quot; .. long ..  &amp;quot;°&amp;quot; .. ew&lt;br /&gt;
			else&lt;br /&gt;
				local latdeg, latmin, latsec = decimalToDMS(lat, prec)&lt;br /&gt;
				local longdeg, longmin, longsec = decimalToDMS(long, prec)&lt;br /&gt;
&lt;br /&gt;
				if latsec == 0 and longsec == 0 then&lt;br /&gt;
					if latmin == 0 and longmin == 0 then&lt;br /&gt;
						val = latdeg .. &amp;quot;°&amp;quot; .. ns .. &amp;quot; &amp;quot; .. longdeg ..  &amp;quot;°&amp;quot; .. ew&lt;br /&gt;
					else&lt;br /&gt;
						val = latdeg .. &amp;quot;°&amp;quot; .. latmin .. &amp;quot;′&amp;quot; .. ns .. &amp;quot; &amp;quot;&lt;br /&gt;
						val = val .. longdeg .. &amp;quot;°&amp;quot;.. longmin .. &amp;quot;′&amp;quot; .. ew&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					val = latdeg .. &amp;quot;°&amp;quot; .. latmin .. &amp;quot;′&amp;quot; .. latsec .. &amp;quot;″&amp;quot; .. ns .. &amp;quot; &amp;quot;&lt;br /&gt;
					val = val .. longdeg .. &amp;quot;°&amp;quot; .. longmin .. &amp;quot;′&amp;quot; .. longsec .. &amp;quot;″&amp;quot; .. ew&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	elseif dtype == &amp;quot;monolingualtext&amp;quot; then -- data type is Monolingual text:&lt;br /&gt;
		-- has mainsnak.datavalue.value as a table containing language/text pairs&lt;br /&gt;
		-- collect all the values in &#039;out&#039; and languages in &#039;mlt&#039; and process them later&lt;br /&gt;
		val = pre .. dv.text .. post&lt;br /&gt;
		mlt = dv.language&lt;br /&gt;
		------------------------------------&lt;br /&gt;
	else&lt;br /&gt;
		-- some other data type so write a specific handler&lt;br /&gt;
		val = &amp;quot;unknown data type: &amp;quot; .. dtype&lt;br /&gt;
	end -- of datatype/unknown value/sourced check&lt;br /&gt;
	return val, mlt&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- propertyvalueandquals takes a property object, the arguments passed from frame,&lt;br /&gt;
-- and a qualifier propertyID.&lt;br /&gt;
-- It returns a sequence (table) of values representing the values of that property&lt;br /&gt;
-- and qualifiers that match the qualifierID if supplied.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam(); sourced(); labelOrId(); i18n.latestdatequalifier(); format_Date();&lt;br /&gt;
-- makeOrdinal(); roundto(); decimalPrecision(); decimalToDMS(); assembleoutput();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local function propertyvalueandquals(objproperty, args, qualID)&lt;br /&gt;
	-- needs this style of declaration because it&#039;s re-entrant&lt;br /&gt;
&lt;br /&gt;
	-- onlysourced is a boolean passed to return only values sourced to other than Wikipedia&lt;br /&gt;
	-- if nothing or an empty string is passed set it true&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
&lt;br /&gt;
	-- linked is a a boolean that enables the link to a local page via sitelink&lt;br /&gt;
	-- if nothing or an empty string is passed set it true&lt;br /&gt;
	local linked = parseParam(args.linked, true)&lt;br /&gt;
&lt;br /&gt;
	-- prefix is a string that may be nil, empty (&amp;quot;&amp;quot;), or a string of characters&lt;br /&gt;
	-- this is prefixed to each value&lt;br /&gt;
	-- useful when when multiple values are returned&lt;br /&gt;
	-- any double-quotes &amp;quot; are stripped out, so that spaces may be passed&lt;br /&gt;
	local prefix = (args.prefix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
	-- postfix is a string that may be nil, empty (&amp;quot;&amp;quot;), or a string of characters&lt;br /&gt;
	-- this is postfixed to each value&lt;br /&gt;
	-- useful when when multiple values are returned&lt;br /&gt;
	-- any double-quotes &amp;quot; are stripped out, so that spaces may be passed&lt;br /&gt;
	local postfix = (args.postfix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
	-- linkprefix is a string that may be nil, empty (&amp;quot;&amp;quot;), or a string of characters&lt;br /&gt;
	-- this creates a link and is then prefixed to each value&lt;br /&gt;
	-- useful when when multiple values are returned and indirect links are needed&lt;br /&gt;
	-- any double-quotes &amp;quot; are stripped out, so that spaces may be passed&lt;br /&gt;
	local lprefix = (args.linkprefix or args.lp or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
	-- linkpostfix is a string that may be nil, empty (&amp;quot;&amp;quot;), or a string of characters&lt;br /&gt;
	-- this is postfixed to each value when linking is enabled with lprefix&lt;br /&gt;
	-- useful when when multiple values are returned&lt;br /&gt;
	-- any double-quotes &amp;quot; are stripped out, so that spaces may be passed&lt;br /&gt;
	local lpostfix = (args.linkpostfix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
	-- wdlinks is a boolean passed to enable links to Wikidata when no article exists&lt;br /&gt;
	-- if nothing or an empty string is passed set it false&lt;br /&gt;
	local wdl = parseParam(args.wdlinks or args.wdl, false)&lt;br /&gt;
&lt;br /&gt;
	-- unitabbr is a boolean passed to enable unit abbreviations for common units&lt;br /&gt;
	-- if nothing or an empty string is passed set it false&lt;br /&gt;
	local uabbr = parseParam(args.unitabbr or args.uabbr, false)&lt;br /&gt;
&lt;br /&gt;
	-- qualsonly is a boolean passed to return just the qualifiers&lt;br /&gt;
	-- if nothing or an empty string is passed set it false&lt;br /&gt;
	local qualsonly = parseParam(args.qualsonly or args.qo, false)&lt;br /&gt;
&lt;br /&gt;
	-- maxvals is a string that may be nil, empty (&amp;quot;&amp;quot;), or a number&lt;br /&gt;
	-- this determines how many items may be returned when multiple values are available&lt;br /&gt;
	-- setting it = 1 is useful where the returned string is used within another call, e.g. image&lt;br /&gt;
	local maxvals = tonumber(args.maxvals) or 0&lt;br /&gt;
&lt;br /&gt;
	-- pd (plain date) is a string: yes/true/1 | no/false/0 | adj&lt;br /&gt;
	-- to disable/enable &amp;quot;sourcing cirumstances&amp;quot; or use adjectival form for the plain date&lt;br /&gt;
	local pd = args.plaindate or args.pd or &amp;quot;no&amp;quot;&lt;br /&gt;
	args.pd = pd&lt;br /&gt;
&lt;br /&gt;
	-- allow qualifiers to have a different date format; default to year unless qualsonly is set&lt;br /&gt;
	args.qdf = args.qdf or args.qualifierdateformat or args.df or (not qualsonly and &amp;quot;y&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	local lang = args.lang or findLang().code&lt;br /&gt;
&lt;br /&gt;
    -- qualID is a string list of wanted qualifiers or &amp;quot;ALL&amp;quot;&lt;br /&gt;
    qualID = qualID or &amp;quot;&amp;quot;&lt;br /&gt;
    -- capitalise list of wanted qualifiers and substitute &amp;quot;DATES&amp;quot;&lt;br /&gt;
    qualID = qualID:upper():gsub(&amp;quot;DATES&amp;quot;, &amp;quot;P580, P582&amp;quot;)&lt;br /&gt;
    local allflag = (qualID == &amp;quot;ALL&amp;quot;)&lt;br /&gt;
    -- create table of wanted qualifiers as key&lt;br /&gt;
    local qwanted = {}&lt;br /&gt;
    -- create sequence of wanted qualifiers&lt;br /&gt;
    local qorder = {}&lt;br /&gt;
    for q in mw.text.gsplit(qualID, &amp;quot;%p&amp;quot;) do -- split at punctuation and iterate&lt;br /&gt;
        local qtrim = mw.text.trim(q)&lt;br /&gt;
        if qtrim ~= &amp;quot;&amp;quot; then&lt;br /&gt;
            qwanted[mw.text.trim(q)] = true&lt;br /&gt;
            qorder[#qorder+1] = qtrim&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    -- qsep is the output separator for rendering qualifier list&lt;br /&gt;
    local qsep = (args.qsep or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
    -- qargs are the arguments to supply to assembleoutput()&lt;br /&gt;
    local qargs = {&lt;br /&gt;
        [&amp;quot;osd&amp;quot;]         = &amp;quot;false&amp;quot;,&lt;br /&gt;
        [&amp;quot;linked&amp;quot;]      = tostring(linked),&lt;br /&gt;
        [&amp;quot;prefix&amp;quot;]      = args.qprefix,&lt;br /&gt;
        [&amp;quot;postfix&amp;quot;]     = args.qpostfix,&lt;br /&gt;
        [&amp;quot;linkprefix&amp;quot;]  = args.qlinkprefix or args.qlp,&lt;br /&gt;
        [&amp;quot;linkpostfix&amp;quot;] = args.qlinkpostfix,&lt;br /&gt;
        [&amp;quot;wdl&amp;quot;]         = &amp;quot;false&amp;quot;,&lt;br /&gt;
        [&amp;quot;unitabbr&amp;quot;]    = tostring(uabbr),&lt;br /&gt;
        [&amp;quot;maxvals&amp;quot;]     = 0,&lt;br /&gt;
        [&amp;quot;sorted&amp;quot;]      = tostring(args.qsorted),&lt;br /&gt;
        [&amp;quot;noicon&amp;quot;]      = &amp;quot;true&amp;quot;,&lt;br /&gt;
        [&amp;quot;list&amp;quot;]        = args.qlist,&lt;br /&gt;
        [&amp;quot;sep&amp;quot;]         = qsep,&lt;br /&gt;
        [&amp;quot;langobj&amp;quot;]     = args.langobj,&lt;br /&gt;
        [&amp;quot;lang&amp;quot;]        = args.langobj.code,&lt;br /&gt;
        [&amp;quot;df&amp;quot;]          = args.qdf,&lt;br /&gt;
        [&amp;quot;sn&amp;quot;]          = parseParam(args.qsn or args.qshortname, false),&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
	-- all proper values of a Wikidata property will be the same type as the first&lt;br /&gt;
	-- qualifiers don&#039;t have a mainsnak, properties do&lt;br /&gt;
	local datatype = objproperty[1].datatype or objproperty[1].mainsnak.datatype&lt;br /&gt;
&lt;br /&gt;
	-- out[] holds the a list of returned values for this property&lt;br /&gt;
	-- mlt[] holds the language code if the datatype is monolingual text&lt;br /&gt;
	local out = {}&lt;br /&gt;
	local mlt = {}&lt;br /&gt;
&lt;br /&gt;
	for k, v in ipairs(objproperty) do&lt;br /&gt;
		local hasvalue = true&lt;br /&gt;
		if (onlysrc and not sourced(v)) then&lt;br /&gt;
			-- no value: it isn&#039;t sourced when onlysourced=true&lt;br /&gt;
			hasvalue = false&lt;br /&gt;
		else&lt;br /&gt;
			local val, lcode = rendersnak(v, args, linked, lprefix, lpostfix, prefix, postfix, uabbr)&lt;br /&gt;
			if not val then&lt;br /&gt;
				hasvalue = false -- rank doesn&#039;t match&lt;br /&gt;
			elseif qualsonly and qualID then&lt;br /&gt;
				-- suppress value returned: only qualifiers are requested&lt;br /&gt;
			else&lt;br /&gt;
				out[#out+1], mlt[#out+1] = val, lcode&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- See if qualifiers are to be returned:&lt;br /&gt;
		local snak = v.mainsnak or v&lt;br /&gt;
		if hasvalue and v.qualifiers and qualID ~= &amp;quot;&amp;quot; and snak.snaktype~=&amp;quot;novalue&amp;quot; then&lt;br /&gt;
            -- collect all wanted qualifier values returned in qlist, indexed by propertyID&lt;br /&gt;
			local qlist = {}&lt;br /&gt;
			local timestart, timeend = &amp;quot;&amp;quot;, &amp;quot;&amp;quot;&lt;br /&gt;
            -- loop through qualifiers&lt;br /&gt;
            for k1, v1 in pairs(v.qualifiers) do&lt;br /&gt;
                if allflag or qwanted[k1] then&lt;br /&gt;
                    if k1 == &amp;quot;P1326&amp;quot; then&lt;br /&gt;
                        local ts = v1[1].datavalue.value.time&lt;br /&gt;
                        local dp = v1[1].datavalue.value.precision&lt;br /&gt;
                        qlist[k1] = dateFormat(ts, dp, args.qdf, args.bc, pd, &amp;quot;&amp;quot;, lang, &amp;quot;before&amp;quot;)&lt;br /&gt;
                    elseif k1 == &amp;quot;P1319&amp;quot; then&lt;br /&gt;
                        local ts = v1[1].datavalue.value.time&lt;br /&gt;
                        local dp = v1[1].datavalue.value.precision&lt;br /&gt;
                        qlist[k1] = dateFormat(ts, dp, args.qdf, args.bc, pd, &amp;quot;&amp;quot;, lang, &amp;quot;after&amp;quot;)&lt;br /&gt;
                    elseif k1 == &amp;quot;P580&amp;quot; then&lt;br /&gt;
                        timestart = propertyvalueandquals(v1, qargs)[1] or &amp;quot;&amp;quot; -- treat only one start time as valid&lt;br /&gt;
                    elseif k1 == &amp;quot;P582&amp;quot; then&lt;br /&gt;
                        timeend = propertyvalueandquals(v1, qargs)[1] or &amp;quot;&amp;quot; -- treat only one end time as valid&lt;br /&gt;
                    else&lt;br /&gt;
                        local q = assembleoutput(propertyvalueandquals(v1, qargs), qargs)&lt;br /&gt;
                        -- we already deal with circa via &#039;sourcing circumstances&#039; if the datatype was time&lt;br /&gt;
                        -- circa may be either linked or unlinked *** internationalise later ***&lt;br /&gt;
                        if datatype ~= &amp;quot;time&amp;quot; or q ~= &amp;quot;circa&amp;quot; and not (type(q) == &amp;quot;string&amp;quot; and q:find(&amp;quot;circa]]&amp;quot;)) then&lt;br /&gt;
                            qlist[k1] = q&lt;br /&gt;
                        end&lt;br /&gt;
                    end&lt;br /&gt;
                end -- of test for wanted&lt;br /&gt;
            end -- of loop through qualifiers&lt;br /&gt;
            -- set date separator&lt;br /&gt;
			local t = timestart .. timeend&lt;br /&gt;
			-- *** internationalise date separators later ***&lt;br /&gt;
			local dsep = &amp;quot;&amp;amp;ndash;&amp;quot;&lt;br /&gt;
			if t:find(&amp;quot;%s&amp;quot;) or t:find(&amp;quot;&amp;amp;nbsp;&amp;quot;) then dsep = &amp;quot; &amp;amp;ndash; &amp;quot; end&lt;br /&gt;
            -- set the order for the list of qualifiers returned; start time and end time go last&lt;br /&gt;
			if next(qlist) then&lt;br /&gt;
                local qlistout = {}&lt;br /&gt;
                if allflag then&lt;br /&gt;
                    for k2, v2 in pairs(qlist) do&lt;br /&gt;
                        qlistout[#qlistout+1] = v2&lt;br /&gt;
                    end&lt;br /&gt;
                else&lt;br /&gt;
                    for i2, v2 in ipairs(qorder) do&lt;br /&gt;
                        qlistout[#qlistout+1] = qlist[v2]&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
                if t ~= &amp;quot;&amp;quot; then&lt;br /&gt;
                    qlistout[#qlistout+1] = timestart .. dsep .. timeend&lt;br /&gt;
                end&lt;br /&gt;
				local qstr = assembleoutput(qlistout, qargs)&lt;br /&gt;
				if qualsonly then&lt;br /&gt;
					out[#out+1] = qstr&lt;br /&gt;
				else&lt;br /&gt;
					out[#out] = out[#out] .. &amp;quot; (&amp;quot; .. qstr .. &amp;quot;)&amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
			elseif t ~= &amp;quot;&amp;quot; then&lt;br /&gt;
				if qualsonly then&lt;br /&gt;
					if timestart == &amp;quot;&amp;quot; then&lt;br /&gt;
						out[#out+1] = timeend&lt;br /&gt;
					elseif timeend == &amp;quot;&amp;quot; then&lt;br /&gt;
						out[#out+1] = timestart&lt;br /&gt;
					else&lt;br /&gt;
						out[#out+1] = timestart .. dsep .. timeend&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					out[#out] = out[#out] .. &amp;quot; (&amp;quot; .. timestart .. dsep .. timeend .. &amp;quot;)&amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end -- of test for qualifiers wanted&lt;br /&gt;
&lt;br /&gt;
		if maxvals &amp;gt; 0 and #out &amp;gt;= maxvals then break end&lt;br /&gt;
	end -- of for each value loop&lt;br /&gt;
&lt;br /&gt;
	-- we need to pick one value to return if the datatype was &amp;quot;monolingualtext&amp;quot;&lt;br /&gt;
	-- if there&#039;s only one value, use that&lt;br /&gt;
	-- otherwise look through the fallback languages for a match&lt;br /&gt;
	if datatype == &amp;quot;monolingualtext&amp;quot; and #out &amp;gt;1 then&lt;br /&gt;
		lang = mw.text.split( lang, &#039;-&#039;, true )[1]&lt;br /&gt;
		local fbtbl = mw.language.getFallbacksFor( lang )&lt;br /&gt;
		table.insert( fbtbl, 1, lang )&lt;br /&gt;
		local bestval = &amp;quot;&amp;quot;&lt;br /&gt;
		local found = false&lt;br /&gt;
		for idx1, lang1 in ipairs(fbtbl) do&lt;br /&gt;
			for idx2, lang2 in ipairs(mlt) do&lt;br /&gt;
				if (lang1 == lang2) and not found then&lt;br /&gt;
					bestval = out[idx2]&lt;br /&gt;
					found = true&lt;br /&gt;
					break&lt;br /&gt;
				end&lt;br /&gt;
			end -- loop through values of property&lt;br /&gt;
		end -- loop through fallback languages&lt;br /&gt;
		if found then&lt;br /&gt;
			-- replace output table with a table containing the best value&lt;br /&gt;
			out = { bestval }&lt;br /&gt;
		else&lt;br /&gt;
			-- more than one value and none of them on the list of fallback languages&lt;br /&gt;
			-- sod it, just give them the first one&lt;br /&gt;
			out = { out[1] }&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Common code for p.getValueByQual and p.getValueByLang&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced; assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local _getvaluebyqual = function(frame, qualID, checkvalue)&lt;br /&gt;
&lt;br /&gt;
	-- The property ID that will have a qualifier is the first unnamed parameter&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	if propertyID == &amp;quot;&amp;quot; then return &amp;quot;no property supplied&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	if qualID == &amp;quot;&amp;quot; then return &amp;quot;no qualifier supplied&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	-- onlysourced is a boolean passed to return property values&lt;br /&gt;
	-- only when property values are sourced to something other than Wikipedia&lt;br /&gt;
	-- if nothing or an empty string is passed set it true&lt;br /&gt;
	-- if &amp;quot;false&amp;quot; or &amp;quot;no&amp;quot; or 0 is passed set it false&lt;br /&gt;
	local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true)&lt;br /&gt;
&lt;br /&gt;
	-- set the requested ranks flags&lt;br /&gt;
	frame.args.reqranks = setRanks(frame.args.rank)&lt;br /&gt;
&lt;br /&gt;
	-- set a language object and code in the frame.args table&lt;br /&gt;
	frame.args.langobj = findLang(frame.args.lang)&lt;br /&gt;
	frame.args.lang = frame.args.langobj.code&lt;br /&gt;
&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
&lt;br /&gt;
	-- check for locally supplied parameter in second unnamed parameter&lt;br /&gt;
	-- success means no local parameter and the property exists&lt;br /&gt;
	local qid, props = parseInput(frame, args[2], propertyID)&lt;br /&gt;
&lt;br /&gt;
	local linked = parseParam(args.linked, true)&lt;br /&gt;
	local lpre = (args.linkprefix or args.lp or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	local lpost = (args.linkpostfix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	local pre = (args.prefix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	local post = (args.postfix or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	local uabbr = parseParam(args.unitabbr or args.uabbr, false)&lt;br /&gt;
	local filter = (args.unit or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	local maxvals = tonumber(args.maxvals) or 0&lt;br /&gt;
	if filter == &amp;quot;&amp;quot; then filter = nil end&lt;br /&gt;
&lt;br /&gt;
	if qid then&lt;br /&gt;
		local out = {}&lt;br /&gt;
		-- Scan through the values of the property&lt;br /&gt;
		-- we want something like property is &amp;quot;pronunciation audio (P443)&amp;quot; in propertyID&lt;br /&gt;
		-- with a qualifier like &amp;quot;language of work or name (P407)&amp;quot; in qualID&lt;br /&gt;
		-- whose value has the required ID, like &amp;quot;British English (Q7979)&amp;quot;, in qval&lt;br /&gt;
		for k1, v1 in ipairs(props) do&lt;br /&gt;
			if v1.mainsnak.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
				-- check if it has the right qualifier&lt;br /&gt;
				local v1q = v1.qualifiers&lt;br /&gt;
				if v1q and v1q[qualID] then&lt;br /&gt;
					if onlysrc == false or sourced(v1) then&lt;br /&gt;
						-- if we&#039;ve got this far, we have a (sourced) claim with qualifiers&lt;br /&gt;
						-- so see if matches the required value&lt;br /&gt;
						-- We&#039;ll only deal with wikibase-items and strings for now&lt;br /&gt;
						if v1q[qualID][1].datatype == &amp;quot;wikibase-item&amp;quot; then&lt;br /&gt;
							if checkvalue(v1q[qualID][1].datavalue.value.id) then&lt;br /&gt;
								out[#out + 1] = rendersnak(v1, args, linked, lpre, lpost, pre, post, uabbr, filter)&lt;br /&gt;
							end&lt;br /&gt;
						elseif v1q[qualID][1].datatype == &amp;quot;string&amp;quot; then&lt;br /&gt;
							if checkvalue(v1q[qualID][1].datavalue.value) then&lt;br /&gt;
								out[#out + 1] = rendersnak(v1, args, linked, lpre, lpost, pre, post, uabbr, filter)&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
					end -- of check for sourced&lt;br /&gt;
				end -- of check for matching required value and has qualifiers&lt;br /&gt;
			else&lt;br /&gt;
				return nil&lt;br /&gt;
			end -- of check for string&lt;br /&gt;
			if maxvals &amp;gt; 0 and #out &amp;gt;= maxvals then break end&lt;br /&gt;
		end -- of loop through values of propertyID&lt;br /&gt;
		return assembleoutput(out, frame.args, qid, propertyID)&lt;br /&gt;
	else&lt;br /&gt;
		return props -- either local parameter or nothing&lt;br /&gt;
	end -- of test for success&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- _location takes Q-id and follows P276 (location)&lt;br /&gt;
-- or P131 (located in the administrative territorial entity) or P706 (located on terrain feature)&lt;br /&gt;
-- from the initial item to higher level territories/locations until it reaches the highest.&lt;br /&gt;
-- An optional boolean, &#039;first&#039;, determines whether the first item is returned (default: false).&lt;br /&gt;
-- An optional boolean &#039;skip&#039; toggles the display to skip to the last item (default: false).&lt;br /&gt;
-- It returns a table containing the locations - linked where possible, except for the highest.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: findLang(); labelOrId(); linkedItem&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local _location = function(qid, first, skip)&lt;br /&gt;
	first = parseParam(first, false)&lt;br /&gt;
	skip = parseParam(skip, false)&lt;br /&gt;
	local locs = {&amp;quot;P276&amp;quot;, &amp;quot;P131&amp;quot;, &amp;quot;P706&amp;quot;}&lt;br /&gt;
	local out = {}&lt;br /&gt;
	local langcode = findLang():getCode()&lt;br /&gt;
	local finished = false&lt;br /&gt;
	local count = 0&lt;br /&gt;
	local prevqid = &amp;quot;Q0&amp;quot;&lt;br /&gt;
	repeat&lt;br /&gt;
		local prop&lt;br /&gt;
		for i1, v1 in ipairs(locs) do&lt;br /&gt;
			local proptbl = mw.wikibase.getBestStatements(qid, v1)&lt;br /&gt;
			if #proptbl &amp;gt; 1 then&lt;br /&gt;
				-- there is more than one higher location&lt;br /&gt;
				local prevP131, prevP131id&lt;br /&gt;
				if prevqid ~= &amp;quot;Q0&amp;quot; then&lt;br /&gt;
					prevP131 = mw.wikibase.getBestStatements(prevqid, &amp;quot;P131&amp;quot;)[1]&lt;br /&gt;
					prevP131id = prevP131&lt;br /&gt;
					and prevP131.mainsnak.datavalue&lt;br /&gt;
					and prevP131.mainsnak.datavalue.value.id&lt;br /&gt;
				end&lt;br /&gt;
				for i2, v2 in ipairs(proptbl) do&lt;br /&gt;
					local parttbl = v2.qualifiers and v2.qualifiers.P518&lt;br /&gt;
					if parttbl then&lt;br /&gt;
						-- this higher location has qualifier &#039;applies to part&#039; (P518)&lt;br /&gt;
						for i3, v3 in ipairs(parttbl) do&lt;br /&gt;
							if v3.snaktype == &amp;quot;value&amp;quot; and v3.datavalue.value.id == prevqid then&lt;br /&gt;
								-- it has a value equal to the previous location&lt;br /&gt;
								prop = proptbl[i2]&lt;br /&gt;
								break&lt;br /&gt;
							end -- of test for matching last location&lt;br /&gt;
						end -- of loop through values of &#039;applies to part&#039;&lt;br /&gt;
					else&lt;br /&gt;
						-- there&#039;s no qualifier &#039;applies to part&#039; (P518)&lt;br /&gt;
						-- so check if the previous location had a P131 that matches this alternate&lt;br /&gt;
						if qid == prevP131id then&lt;br /&gt;
								prop = proptbl[i2]&lt;br /&gt;
								break&lt;br /&gt;
						end -- of test for matching previous P131&lt;br /&gt;
					end&lt;br /&gt;
				end -- of loop through parent locations&lt;br /&gt;
				-- fallback to second value if match not found&lt;br /&gt;
				prop = prop or proptbl[2]&lt;br /&gt;
			elseif #proptbl &amp;gt; 0 then&lt;br /&gt;
				prop = proptbl[1]&lt;br /&gt;
			end&lt;br /&gt;
			if prop then break end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- check if it&#039;s an instance of (P31) a country (Q6256) or sovereign state (Q3624078)&lt;br /&gt;
		-- and terminate the chain if it is&lt;br /&gt;
		local inst = mw.wikibase.getAllStatements(qid, &amp;quot;P31&amp;quot;)&lt;br /&gt;
		if #inst &amp;gt; 0 then&lt;br /&gt;
			for k, v in ipairs(inst) do&lt;br /&gt;
				local instid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id&lt;br /&gt;
				-- stop if it&#039;s a country (or a country within the United Kingdom if skip is true)&lt;br /&gt;
				if instid == &amp;quot;Q6256&amp;quot; or instid == &amp;quot;Q3624078&amp;quot; or (skip and instid == &amp;quot;Q3336843&amp;quot;) then&lt;br /&gt;
					prop = nil -- this will ensure this is treated as top-level location&lt;br /&gt;
					break&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- get the name of this location and update qid to point to the parent location&lt;br /&gt;
		if prop and prop.mainsnak.datavalue then&lt;br /&gt;
			if not skip or count == 0 then&lt;br /&gt;
				local args = { lprefix = &amp;quot;:&amp;quot; }&lt;br /&gt;
				out[#out+1] = linkedItem(qid, args) -- get a linked value if we can&lt;br /&gt;
			end&lt;br /&gt;
			qid, prevqid = prop.mainsnak.datavalue.value.id, qid&lt;br /&gt;
		else&lt;br /&gt;
			-- This is top-level location, so get short name except when this is the first item&lt;br /&gt;
			-- Use full label if there&#039;s no short name or this is the first item&lt;br /&gt;
			local prop1813 = mw.wikibase.getAllStatements(qid, &amp;quot;P1813&amp;quot;)&lt;br /&gt;
			-- if there&#039;s a short name and this isn&#039;t the only item&lt;br /&gt;
			if prop1813[1] and (#out &amp;gt; 0)then&lt;br /&gt;
				local shortname&lt;br /&gt;
				-- short name is monolingual text, so look for match to the local language&lt;br /&gt;
				-- choose the shortest &#039;short name&#039; in that language&lt;br /&gt;
				for k, v in pairs(prop1813) do&lt;br /&gt;
					if v.mainsnak.datavalue.value.language == langcode then&lt;br /&gt;
						local name = v.mainsnak.datavalue.value.text&lt;br /&gt;
						if (not shortname) or (#name &amp;lt; #shortname) then&lt;br /&gt;
							shortname = name&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				-- add the shortname if one is found, fallback to the label&lt;br /&gt;
				-- but skip it if it&#039;s &amp;quot;USA&amp;quot;&lt;br /&gt;
				if shortname ~= &amp;quot;USA&amp;quot; then&lt;br /&gt;
					out[#out+1] = shortname or labelOrId(qid)&lt;br /&gt;
				else&lt;br /&gt;
					if skip then out[#out+1] = &amp;quot;US&amp;quot; end&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				-- no shortname, so just add the label&lt;br /&gt;
				local loc = labelOrId(qid)&lt;br /&gt;
				-- exceptions go here:&lt;br /&gt;
				if loc == &amp;quot;United States of America&amp;quot; then&lt;br /&gt;
					out[#out+1] = &amp;quot;United States&amp;quot;&lt;br /&gt;
				else&lt;br /&gt;
					out[#out+1] = loc&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			finished = true&lt;br /&gt;
		end&lt;br /&gt;
		count = count + 1&lt;br /&gt;
	until finished or count &amp;gt;= 10 -- limit to 10 levels to avoid infinite loops&lt;br /&gt;
&lt;br /&gt;
	-- remove the first location if not required&lt;br /&gt;
	if not first then table.remove(out, 1) end&lt;br /&gt;
&lt;br /&gt;
	-- we might have duplicate text for consecutive locations, so remove them&lt;br /&gt;
	if #out &amp;gt; 2 then&lt;br /&gt;
		local plain = {}&lt;br /&gt;
		for i, v in ipairs(out) do&lt;br /&gt;
			-- strip any links&lt;br /&gt;
			plain[i] = v:gsub(&amp;quot;^%[%[[^|]*|&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;]]$&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
		local idx = 2&lt;br /&gt;
		repeat&lt;br /&gt;
			if plain[idx] == plain[idx-1] then&lt;br /&gt;
				-- duplicate found&lt;br /&gt;
				local removeidx = 0&lt;br /&gt;
				if (plain[idx] ~= out[idx]) and (plain[idx-1] == out[idx-1]) then&lt;br /&gt;
					-- only second one is linked, so drop the first&lt;br /&gt;
					removeidx = idx - 1&lt;br /&gt;
				elseif (plain[idx] == out[idx]) and (plain[idx-1] ~= out[idx-1]) then&lt;br /&gt;
					-- only first one is linked, so drop the second&lt;br /&gt;
					removeidx = idx&lt;br /&gt;
				else&lt;br /&gt;
					-- pick one&lt;br /&gt;
					removeidx = idx - (os.time()%2)&lt;br /&gt;
				end&lt;br /&gt;
				table.remove(out, removeidx)&lt;br /&gt;
				table.remove(plain, removeidx)&lt;br /&gt;
			else&lt;br /&gt;
				idx = idx +1&lt;br /&gt;
			end&lt;br /&gt;
		until idx &amp;gt;= #out&lt;br /&gt;
	end&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- _getsumofparts scans the property &#039;has part&#039; (P527) for values matching a list.&lt;br /&gt;
-- The list (args.vlist) consists of a string of Qids separated by spaces or any usual punctuation.&lt;br /&gt;
-- If the matched values have a qualifer &#039;quantity&#039; (P1114), those quantites are summed.&lt;br /&gt;
-- The sum is returned as a number (i.e. 0 if none)&lt;br /&gt;
-- a table of arguments is supplied implementing the usual parameters.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: setRanks; parseParam; parseInput; sourced; assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local _getsumofparts = function(args)&lt;br /&gt;
	local vallist = (args.vlist or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if vallist == &amp;quot;&amp;quot; then return end&lt;br /&gt;
	args.reqranks = setRanks(args.rank)&lt;br /&gt;
	local f = {}&lt;br /&gt;
	f.args = args&lt;br /&gt;
	local qid, props = parseInput(f, &amp;quot;&amp;quot;, &amp;quot;P527&amp;quot;)&lt;br /&gt;
	if not qid then return 0 end&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
	local sum = 0&lt;br /&gt;
	for k1, v1 in ipairs(props) do&lt;br /&gt;
		if (onlysrc == false or sourced(v1))&lt;br /&gt;
			and v1.mainsnak.snaktype == &amp;quot;value&amp;quot;&lt;br /&gt;
			and v1.mainsnak.datavalue.type == &amp;quot;wikibase-entityid&amp;quot;&lt;br /&gt;
			and vallist:match( v1.mainsnak.datavalue.value.id )&lt;br /&gt;
			and v1.qualifiers&lt;br /&gt;
			then&lt;br /&gt;
			local quals = v1.qualifiers[&amp;quot;P1114&amp;quot;]&lt;br /&gt;
			if quals then&lt;br /&gt;
				for k2, v2 in ipairs(quals) do&lt;br /&gt;
					sum = sum + v2.datavalue.value.amount&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return sum&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Public functions&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- _getValue makes the functionality of getValue available to other modules&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: setRanks; parseInput; propertyvalueandquals; assembleoutput; parseParam; sourced;&lt;br /&gt;
-- labelOrId; i18n.latestdatequalifier; format_Date; makeOrdinal; roundto; decimalPrecision; decimalToDMS;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p._getValue = function(args)&lt;br /&gt;
	-- parameter sets for commonly used groups of parameters&lt;br /&gt;
	local paraset = tonumber(args.ps or args.parameterset or 0)&lt;br /&gt;
	if paraset == 1 then&lt;br /&gt;
		-- a common setting&lt;br /&gt;
		args.rank = &amp;quot;best&amp;quot;&lt;br /&gt;
		args.fetchwikidata = &amp;quot;ALL&amp;quot;&lt;br /&gt;
		args.onlysourced = &amp;quot;no&amp;quot;&lt;br /&gt;
		args.noicon = &amp;quot;true&amp;quot;&lt;br /&gt;
	elseif paraset == 2 then&lt;br /&gt;
		-- equivalent to raw&lt;br /&gt;
		args.rank = &amp;quot;best&amp;quot;&lt;br /&gt;
		args.fetchwikidata = &amp;quot;ALL&amp;quot;&lt;br /&gt;
		args.onlysourced = &amp;quot;no&amp;quot;&lt;br /&gt;
		args.noicon = &amp;quot;true&amp;quot;&lt;br /&gt;
		args.linked = &amp;quot;no&amp;quot;&lt;br /&gt;
		args.pd = &amp;quot;true&amp;quot;&lt;br /&gt;
	elseif paraset == 3 then&lt;br /&gt;
		-- third set goes here&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- implement eid parameter&lt;br /&gt;
	local eid = args.eid&lt;br /&gt;
	if eid == &amp;quot;&amp;quot; then&lt;br /&gt;
		return nil&lt;br /&gt;
	elseif eid then&lt;br /&gt;
		args.qid = eid&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local propertyID = mw.text.trim(args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	args.reqranks = setRanks(args.rank)&lt;br /&gt;
&lt;br /&gt;
	-- replacetext (rt) is a string that is returned instead of any non-empty Wikidata value&lt;br /&gt;
	-- this is useful for tracking and debugging, so we set fetchwikidata=ALL to fill the whitelist&lt;br /&gt;
	local replacetext = mw.text.trim(args.rt or args.replacetext or &amp;quot;&amp;quot;)&lt;br /&gt;
	if replacetext ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		args.fetchwikidata = &amp;quot;ALL&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local f = {}&lt;br /&gt;
	f.args = args&lt;br /&gt;
	local entityid, props = parseInput(f, f.args[2], propertyID)&lt;br /&gt;
&lt;br /&gt;
	if not entityid then&lt;br /&gt;
		return props -- either the input parameter or nothing&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- qual is a string containing the property ID of the qualifier(s) to be returned&lt;br /&gt;
	-- if qual == &amp;quot;ALL&amp;quot; then all qualifiers returned&lt;br /&gt;
	-- if qual == &amp;quot;DATES&amp;quot; then qualifiers P580 (start time) and P582 (end time) returned&lt;br /&gt;
	-- if nothing or an empty string is passed set it nil -&amp;gt; no qualifiers returned&lt;br /&gt;
	local qualID = mw.text.trim(args.qual or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qualID == &amp;quot;&amp;quot; then qualID = nil end&lt;br /&gt;
&lt;br /&gt;
	-- set a language object and code in the args table&lt;br /&gt;
	args.langobj = findLang(args.lang)&lt;br /&gt;
	args.lang = args.langobj.code&lt;br /&gt;
&lt;br /&gt;
	-- table &#039;out&#039; stores the return value(s):&lt;br /&gt;
	local out = propertyvalueandquals(props, args, qualID)&lt;br /&gt;
&lt;br /&gt;
	-- format the table of values and return it as a string:&lt;br /&gt;
	return assembleoutput(out, args, entityid, propertyID)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getValue is used to get the value(s) of a property&lt;br /&gt;
-- The property ID is passed as the first unnamed parameter and is required.&lt;br /&gt;
-- A locally supplied parameter may optionaly be supplied as the second unnamed parameter.&lt;br /&gt;
-- The function will now also return qualifiers if parameter qual is supplied&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _getValue; setRanks; parseInput; propertyvalueandquals; assembleoutput; parseParam; sourced;&lt;br /&gt;
-- labelOrId; i18n.latestdatequalifier; format_Date; makeOrdinal; roundto; decimalPrecision; decimalToDMS;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getValue = function(frame)&lt;br /&gt;
	local args= frame.args&lt;br /&gt;
	if not args[1] then&lt;br /&gt;
		args = frame:getParent().args&lt;br /&gt;
		if not args[1] then return i18n.errors[&amp;quot;No property supplied&amp;quot;] end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return p._getValue(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getPreferredValue is used to get a value,&lt;br /&gt;
-- (or a comma separated list of them if multiple values exist).&lt;br /&gt;
-- If preferred ranks are set, it will return those values, otherwise values with normal ranks&lt;br /&gt;
-- now redundant to getValue with |rank=best&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: p.getValue; setRanks; parseInput; propertyvalueandquals; assembleoutput;&lt;br /&gt;
-- parseParam; sourced; labelOrId; i18n.latestdatequalifier; format_Date;&lt;br /&gt;
-- makeOrdinal; roundto; decimalPrecision; decimalToDMS;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getPreferredValue = function(frame)&lt;br /&gt;
	frame.args.rank = &amp;quot;best&amp;quot;&lt;br /&gt;
	return p.getValue(frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getCoords is used to get coordinates for display in an infobox&lt;br /&gt;
-- whitelist and blacklist are implemented&lt;br /&gt;
-- optional &#039;display&#039; parameter is allowed, defaults to nil - was &amp;quot;inline, title&amp;quot;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: setRanks(); parseInput(); decimalPrecision();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getCoords = function(frame)&lt;br /&gt;
	local propertyID = &amp;quot;P625&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	-- if there is a &#039;display&#039; parameter supplied, use it&lt;br /&gt;
	-- otherwise default to nothing&lt;br /&gt;
	local disp = frame.args.display or &amp;quot;&amp;quot;&lt;br /&gt;
	if disp == &amp;quot;&amp;quot; then&lt;br /&gt;
		disp = nil -- default to not supplying display parameter, was &amp;quot;inline, title&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- there may be a format parameter to switch from deg/min/sec to decimal degrees&lt;br /&gt;
	-- default is deg/min/sec&lt;br /&gt;
	-- decimal degrees needs |format = dec&lt;br /&gt;
	local form = (frame.args.format or &amp;quot;&amp;quot;):lower():sub(1,3)&lt;br /&gt;
	if form ~= &amp;quot;dec&amp;quot; then&lt;br /&gt;
		form = &amp;quot;dms&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- just deal with best values&lt;br /&gt;
	frame.args.reqranks = setRanks(&amp;quot;best&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	local qid, props = parseInput(frame, frame.args[1], propertyID)&lt;br /&gt;
	if not qid then&lt;br /&gt;
		return props -- either local parameter or nothing&lt;br /&gt;
	else&lt;br /&gt;
		local dv = props[1].mainsnak.datavalue.value&lt;br /&gt;
		local lat, long, prec = dv.latitude, dv.longitude, dv.precision&lt;br /&gt;
		lat = decimalPrecision(lat, prec)&lt;br /&gt;
		long = decimalPrecision(long, prec)&lt;br /&gt;
		local lat_long = { lat, long }&lt;br /&gt;
		lat_long[&amp;quot;display&amp;quot;] = disp&lt;br /&gt;
		lat_long[&amp;quot;format&amp;quot;] = form&lt;br /&gt;
		-- invoke template Coord with the values stored in the table&lt;br /&gt;
		return frame:expandTemplate{title = &#039;coord&#039;, args = lat_long}&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getQualifierValue is used to get a formatted value of a qualifier&lt;br /&gt;
--&lt;br /&gt;
-- The call needs:	a property (the unnamed parameter or 1=)&lt;br /&gt;
-- 					a target value for that property (pval=)&lt;br /&gt;
--					a qualifier for that target value (qual=)&lt;br /&gt;
-- The usual whitelisting and blacklisting of the property is implemented&lt;br /&gt;
-- The boolean onlysourced= parameter can be set to return nothing&lt;br /&gt;
-- when the property is unsourced (or only sourced to Wikipedia)&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam(); setRanks(); parseInput(); sourced();&lt;br /&gt;
-- propertyvalueandquals(); assembleoutput();&lt;br /&gt;
-- labelOrId(); i18n.latestdatequalifier(); format_Date();&lt;br /&gt;
-- findLang(); makeOrdinal(); roundto(); decimalPrecision(); decimalToDMS();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getQualifierValue = function(frame)&lt;br /&gt;
&lt;br /&gt;
	-- The property ID that will have a qualifier is the first unnamed parameter&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	-- The value of the property we want to match whose qualifier value is to be returned&lt;br /&gt;
	-- is passed in named parameter |pval=&lt;br /&gt;
	local propvalue = frame.args.pval&lt;br /&gt;
&lt;br /&gt;
	-- The property ID of the qualifier&lt;br /&gt;
	-- whose value is to be returned is passed in named parameter |qual=&lt;br /&gt;
	local qualifierID = frame.args.qual&lt;br /&gt;
&lt;br /&gt;
	-- A filter can be set like this: filter=P642==Q22674854&lt;br /&gt;
	local filter, fprop, fval&lt;br /&gt;
	local ftable = mw.text.split(frame.args.filter or &amp;quot;&amp;quot;, &amp;quot;==&amp;quot;)&lt;br /&gt;
	if ftable[2] then&lt;br /&gt;
		fprop = mw.text.trim(ftable[1])&lt;br /&gt;
		fval = mw.text.trim(ftable[2])&lt;br /&gt;
		filter = true&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- onlysourced is a boolean passed to return qualifiers&lt;br /&gt;
	-- only when property values are sourced to something other than Wikipedia&lt;br /&gt;
	-- if nothing or an empty string is passed set it true&lt;br /&gt;
	-- if &amp;quot;false&amp;quot; or &amp;quot;no&amp;quot; or 0 is passed set it false&lt;br /&gt;
	local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true)&lt;br /&gt;
&lt;br /&gt;
	-- set a language object and language code in the frame.args table&lt;br /&gt;
	frame.args.langobj = findLang(frame.args.lang)&lt;br /&gt;
	frame.args.lang = frame.args.langobj.code&lt;br /&gt;
&lt;br /&gt;
	-- set the requested ranks flags&lt;br /&gt;
	frame.args.reqranks = setRanks(frame.args.rank)&lt;br /&gt;
&lt;br /&gt;
	-- check for locally supplied parameter in second unnamed parameter&lt;br /&gt;
	-- success means no local parameter and the property exists&lt;br /&gt;
	local qid, props = parseInput(frame, frame.args[2], propertyID)&lt;br /&gt;
	if qid then&lt;br /&gt;
		local out = {}&lt;br /&gt;
		-- Scan through the values of the property&lt;br /&gt;
		-- we want something like property is P793, significant event (in propertyID)&lt;br /&gt;
		-- whose value is something like Q385378, construction (in propvalue)&lt;br /&gt;
		-- then we can return the value(s) of a qualifier such as P580, start time (in qualifierID)&lt;br /&gt;
		for k1, v1 in pairs(props) do&lt;br /&gt;
			if v1.mainsnak.snaktype == &amp;quot;value&amp;quot; and v1.mainsnak.datavalue.type == &amp;quot;wikibase-entityid&amp;quot; then&lt;br /&gt;
				-- It&#039;s a wiki-linked value, so check if it&#039;s the target (in propvalue) and if it has qualifiers&lt;br /&gt;
				if v1.mainsnak.datavalue.value.id == propvalue and v1.qualifiers then&lt;br /&gt;
					if onlysrc == false or sourced(v1) then&lt;br /&gt;
						-- if we&#039;ve got this far, we have a (sourced) claim with qualifiers&lt;br /&gt;
						-- which matches the target, so apply the filter and find the value(s) of the qualifier we want&lt;br /&gt;
						if not filter or (v1.qualifiers[fprop] and v1.qualifiers[fprop][1].datavalue.value.id == fval) then&lt;br /&gt;
							local quals = v1.qualifiers[qualifierID]&lt;br /&gt;
							if quals then&lt;br /&gt;
								-- can&#039;t reference qualifer, so set onlysourced = &amp;quot;no&amp;quot; (args are strings, not boolean)&lt;br /&gt;
								local qargs = frame.args&lt;br /&gt;
								qargs.onlysourced = &amp;quot;no&amp;quot;&lt;br /&gt;
								local vals = propertyvalueandquals(quals, qargs, qid)&lt;br /&gt;
								for k, v in ipairs(vals) do&lt;br /&gt;
									out[#out + 1] = v&lt;br /&gt;
								end&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
					end -- of check for sourced&lt;br /&gt;
				end -- of check for matching required value and has qualifiers&lt;br /&gt;
			end -- of check for wikibase entity&lt;br /&gt;
		end -- of loop through values of propertyID&lt;br /&gt;
		return assembleoutput(out, frame.args, qid, propertyID)&lt;br /&gt;
	else&lt;br /&gt;
		return props -- either local parameter or nothing&lt;br /&gt;
	end -- of test for success&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getSumOfParts scans the property &#039;has part&#039; (P527) for values matching a list.&lt;br /&gt;
-- The list is passed in parameter vlist.&lt;br /&gt;
-- It consists of a string of Qids separated by spaces or any usual punctuation.&lt;br /&gt;
-- If the matched values have a qualifier &#039;quantity&#039; (P1114), those quantities are summed.&lt;br /&gt;
-- The sum is returned as a number or nothing if zero.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _getsumofparts;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getSumOfParts = function(frame)&lt;br /&gt;
	local sum = _getsumofparts(frame.args)&lt;br /&gt;
	if sum == 0 then return end&lt;br /&gt;
	return sum&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getValueByQual gets the value of a property which has a qualifier with a given entity value&lt;br /&gt;
-- The call needs:&lt;br /&gt;
--					a property ID (the unnamed parameter or 1=Pxxx)&lt;br /&gt;
--					the ID of a qualifier for that property (qualID=Pyyy)&lt;br /&gt;
--					either the Wikibase-entity ID of a value for that qualifier (qvalue=Qzzz)&lt;br /&gt;
--					or a string value for that qualifier (qvalue=abc123)&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _getvaluebyqual; parseParam; setRanks; parseInput; sourced;&lt;br /&gt;
-- assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getValueByQual = function(frame)&lt;br /&gt;
	local qualID = frame.args.qualID&lt;br /&gt;
	-- The Q-id of the value for the qualifier we want to match is in named parameter |qvalue=&lt;br /&gt;
	local qval = frame.args.qvalue or &amp;quot;&amp;quot;&lt;br /&gt;
	if qval == &amp;quot;&amp;quot; then return &amp;quot;no qualifier value supplied&amp;quot; end&lt;br /&gt;
	local function checkQID(id)&lt;br /&gt;
		return id == qval&lt;br /&gt;
	end&lt;br /&gt;
	return _getvaluebyqual(frame, qualID, checkQID)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getValueByLang gets the value of a property which has a qualifier P407&lt;br /&gt;
-- (&amp;quot;language of work or name&amp;quot;) whose value has the given language code&lt;br /&gt;
-- The call needs:&lt;br /&gt;
--					a property ID (the unnamed parameter or 1=Pxxx)&lt;br /&gt;
--					the MediaWiki language code to match the language (lang=xx[-yy])&lt;br /&gt;
--					(if no code is supplied, it uses the default language)&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _getvaluebyqual; parseParam; setRanks; parseInput; sourced; assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getValueByLang = function(frame)&lt;br /&gt;
	-- The language code for the qualifier we want to match is in named parameter |lang=&lt;br /&gt;
	local langcode = findLang(frame.args.lang).code&lt;br /&gt;
	local function checkLanguage(id)&lt;br /&gt;
		-- id should represent a language like &amp;quot;British English (Q7979)&amp;quot;&lt;br /&gt;
		-- it should have string property &amp;quot;Wikimedia language code (P424)&amp;quot;&lt;br /&gt;
		-- qlcode will be a table:&lt;br /&gt;
		local qlcode = mw.wikibase.getBestStatements(id, &amp;quot;P424&amp;quot;)&lt;br /&gt;
		if (#qlcode &amp;gt; 0) and (qlcode[1].mainsnak.datavalue.value == langcode) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return _getvaluebyqual(frame, &amp;quot;P407&amp;quot;, checkLanguage)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getValueByRefSource gets the value of a property which has a reference &amp;quot;stated in&amp;quot; (P248)&lt;br /&gt;
-- whose value has the given entity-ID.&lt;br /&gt;
-- The call needs:&lt;br /&gt;
--					a property ID (the unnamed parameter or 1=Pxxx)&lt;br /&gt;
--					the entity ID of a value to match where the reference is stated in (match=Qzzz)&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getValueByRefSource = function(frame)&lt;br /&gt;
	-- The property ID that we want to check is the first unnamed parameter&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if propertyID == &amp;quot;&amp;quot; then return &amp;quot;no property supplied&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	-- The Q-id of the value we want to match is in named parameter |qvalue=&lt;br /&gt;
	local qval = (frame.args.match or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qval == &amp;quot;&amp;quot; then qval = &amp;quot;Q21540096&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	local unit = (frame.args.unit or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if unit == &amp;quot;&amp;quot; then unit = &amp;quot;Q4917&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true)&lt;br /&gt;
&lt;br /&gt;
	-- set the requested ranks flags&lt;br /&gt;
	frame.args.reqranks = setRanks(frame.args.rank)&lt;br /&gt;
&lt;br /&gt;
	-- set a language object and code in the frame.args table&lt;br /&gt;
	frame.args.langobj = findLang(frame.args.lang)&lt;br /&gt;
	frame.args.lang = frame.args.langobj.code&lt;br /&gt;
&lt;br /&gt;
	local linked = parseParam(frame.args.linked, true)&lt;br /&gt;
&lt;br /&gt;
	local uabbr = parseParam(frame.args.uabbr or frame.args.unitabbr, false)&lt;br /&gt;
&lt;br /&gt;
	-- qid not nil means no local parameter and the property exists&lt;br /&gt;
	local qid, props = parseInput(frame, frame.args[2], propertyID)&lt;br /&gt;
&lt;br /&gt;
	if qid then&lt;br /&gt;
		local out = {}&lt;br /&gt;
		local mlt= {}&lt;br /&gt;
		for k1, v1 in ipairs(props) do&lt;br /&gt;
			if onlysrc == false or sourced(v1) then&lt;br /&gt;
				if v1.references then&lt;br /&gt;
					for k2, v2 in ipairs(v1.references) do&lt;br /&gt;
						if v2.snaks.P248 then&lt;br /&gt;
							for k3, v3 in ipairs(v2.snaks.P248) do&lt;br /&gt;
								if v3.datavalue.value.id == qval then&lt;br /&gt;
									out[#out+1], mlt[#out+1] = rendersnak(v1, frame.args, linked, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, uabbr, unit)&lt;br /&gt;
									if not mlt[#out] then&lt;br /&gt;
										-- we only need one match per property value&lt;br /&gt;
										-- unless datatype was monolingual text&lt;br /&gt;
										break&lt;br /&gt;
									end&lt;br /&gt;
								end -- of test for match&lt;br /&gt;
							end -- of loop through values &amp;quot;stated in&amp;quot;&lt;br /&gt;
						end -- of test that &amp;quot;stated in&amp;quot; exists&lt;br /&gt;
					end -- of loop through references&lt;br /&gt;
				end -- of test that references exist&lt;br /&gt;
			end -- of test for sourced&lt;br /&gt;
		end -- of loop through values of propertyID&lt;br /&gt;
		if #mlt &amp;gt; 0 then&lt;br /&gt;
			local langcode = frame.args.lang&lt;br /&gt;
			langcode = mw.text.split( langcode, &#039;-&#039;, true )[1]&lt;br /&gt;
			local fbtbl = mw.language.getFallbacksFor( langcode )&lt;br /&gt;
			table.insert( fbtbl, 1, langcode )&lt;br /&gt;
			local bestval = &amp;quot;&amp;quot;&lt;br /&gt;
			local found = false&lt;br /&gt;
			for idx1, lang1 in ipairs(fbtbl) do&lt;br /&gt;
				for idx2, lang2 in ipairs(mlt) do&lt;br /&gt;
					if (lang1 == lang2) and not found then&lt;br /&gt;
						bestval = out[idx2]&lt;br /&gt;
						found = true&lt;br /&gt;
						break&lt;br /&gt;
					end&lt;br /&gt;
				end -- loop through values of property&lt;br /&gt;
			end -- loop through fallback languages&lt;br /&gt;
			if found then&lt;br /&gt;
				-- replace output table with a table containing the best value&lt;br /&gt;
				out = { bestval }&lt;br /&gt;
			else&lt;br /&gt;
				-- more than one value and none of them on the list of fallback languages&lt;br /&gt;
				-- sod it, just give them the first one&lt;br /&gt;
				out = { out[1] }&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return assembleoutput(out, frame.args, qid, propertyID)&lt;br /&gt;
	else&lt;br /&gt;
		return props -- no property or local parameter supplied&lt;br /&gt;
	end -- of test for success&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getPropertyIDs takes most of the usual parameters.&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented.&lt;br /&gt;
-- It returns the Entity-IDs (Qids) of the values of a property if it is a Wikibase-Entity.&lt;br /&gt;
-- Otherwise it returns nothing.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p._getPropertyIDs = function(args)&lt;br /&gt;
	args.reqranks = setRanks(args.rank)&lt;br /&gt;
	args.langobj = findLang(args.lang)&lt;br /&gt;
	args.lang = args.langobj.code&lt;br /&gt;
	-- change default for noicon to true&lt;br /&gt;
	args.noicon = tostring(parseParam(args.noicon or &amp;quot;&amp;quot;, true))&lt;br /&gt;
	local f = {}&lt;br /&gt;
	f.args = args&lt;br /&gt;
	local pid = mw.text.trim(args[1] or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
&lt;br /&gt;
	-- get the qid and table of claims for the property, or nothing and the local value passed&lt;br /&gt;
	local qid, props = parseInput(f, args[2], pid)&lt;br /&gt;
	if not qid then return props end&lt;br /&gt;
	if not props[1] then return nil end&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
	local maxvals = tonumber(args.maxvals) or 0&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for i, v in ipairs(props) do&lt;br /&gt;
		local snak = v.mainsnak&lt;br /&gt;
		if ( snak.datatype == &amp;quot;wikibase-item&amp;quot; )&lt;br /&gt;
			and ( v.rank and args.reqranks[v.rank:sub(1, 1)] )&lt;br /&gt;
			and ( snak.snaktype == &amp;quot;value&amp;quot; )&lt;br /&gt;
			and ( sourced(v) or not onlysrc )&lt;br /&gt;
			then&lt;br /&gt;
			out[#out+1] = snak.datavalue.value.id&lt;br /&gt;
		end&lt;br /&gt;
		if maxvals &amp;gt; 0 and #out &amp;gt;= maxvals then break end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return assembleoutput(out, args, qid, pid)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getPropertyIDs = function(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	return p._getPropertyIDs(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getQualifierIDs takes most of the usual parameters.&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented.&lt;br /&gt;
-- It takes a property-id as the first unnamed parameter, and an optional parameter qlist&lt;br /&gt;
-- which is a list of qualifier property-ids to search for (default is &amp;quot;ALL&amp;quot;)&lt;br /&gt;
-- It returns the Entity-IDs (Qids) of the values of a property if it is a Wikibase-Entity.&lt;br /&gt;
-- Otherwise it returns nothing.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getQualifierIDs = function(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	args.reqranks = setRanks(args.rank)&lt;br /&gt;
	args.langobj = findLang(args.lang)&lt;br /&gt;
	args.lang = args.langobj.code&lt;br /&gt;
	-- change default for noicon to true&lt;br /&gt;
	args.noicon = tostring(parseParam(args.noicon or &amp;quot;&amp;quot;, true))&lt;br /&gt;
	local f = {}&lt;br /&gt;
	f.args = args&lt;br /&gt;
	local pid = mw.text.trim(args[1] or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
&lt;br /&gt;
	-- get the qid and table of claims for the property, or nothing and the local value passed&lt;br /&gt;
	local qid, props = parseInput(f, args[2], pid)&lt;br /&gt;
	if not qid then return props end&lt;br /&gt;
	if not props[1] then return nil end&lt;br /&gt;
	-- get the other parameters&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
	local maxvals = tonumber(args.maxvals) or 0&lt;br /&gt;
	local qlist = args.qlist or &amp;quot;&amp;quot;&lt;br /&gt;
	if qlist == &amp;quot;&amp;quot; then qlist = &amp;quot;ALL&amp;quot; end&lt;br /&gt;
	qlist = qlist:gsub(&amp;quot;[%p%s]+&amp;quot;, &amp;quot; &amp;quot;) .. &amp;quot; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for i, v in ipairs(props) do&lt;br /&gt;
		local snak = v.mainsnak&lt;br /&gt;
		if ( v.rank and args.reqranks[v.rank:sub(1, 1)] )&lt;br /&gt;
			and ( snak.snaktype == &amp;quot;value&amp;quot; )&lt;br /&gt;
			and ( sourced(v) or not onlysrc )&lt;br /&gt;
			then&lt;br /&gt;
			if v.qualifiers then&lt;br /&gt;
				for k1, v1 in pairs(v.qualifiers) do&lt;br /&gt;
					if qlist == &amp;quot;ALL &amp;quot; or qlist:match(k1 .. &amp;quot; &amp;quot;) then&lt;br /&gt;
						for i2, v2 in ipairs(v1) do&lt;br /&gt;
							if v2.datatype == &amp;quot;wikibase-item&amp;quot; and v2.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
								out[#out+1] = v2.datavalue.value.id&lt;br /&gt;
							end -- of test that id exists&lt;br /&gt;
						end -- of loop through qualifier values&lt;br /&gt;
					end -- of test for kq in qlist&lt;br /&gt;
				end -- of loop through qualifiers&lt;br /&gt;
			end -- of test for qualifiers&lt;br /&gt;
		end -- of test for rank value, sourced, and value exists&lt;br /&gt;
		if maxvals &amp;gt; 0 and #out &amp;gt;= maxvals then break end&lt;br /&gt;
	end -- of loop through property values&lt;br /&gt;
&lt;br /&gt;
	return assembleoutput(out, args, qid, pid)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getPropOfProp takes two propertyIDs: prop1 and prop2 (as well as the usual parameters)&lt;br /&gt;
-- If the value(s) of prop1 are of type &amp;quot;wikibase-item&amp;quot; then it returns the value(s) of prop2&lt;br /&gt;
-- of each of those wikibase-items.&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p._getPropOfProp = function(args)&lt;br /&gt;
	-- parameter sets for commonly used groups of parameters&lt;br /&gt;
	local paraset = tonumber(args.ps or args.parameterset or 0)&lt;br /&gt;
	if paraset == 1 then&lt;br /&gt;
		-- a common setting&lt;br /&gt;
		args.rank = &amp;quot;best&amp;quot;&lt;br /&gt;
		args.fetchwikidata = &amp;quot;ALL&amp;quot;&lt;br /&gt;
		args.onlysourced = &amp;quot;no&amp;quot;&lt;br /&gt;
		args.noicon = &amp;quot;true&amp;quot;&lt;br /&gt;
	elseif paraset == 2 then&lt;br /&gt;
		-- equivalent to raw&lt;br /&gt;
		args.rank = &amp;quot;best&amp;quot;&lt;br /&gt;
		args.fetchwikidata = &amp;quot;ALL&amp;quot;&lt;br /&gt;
		args.onlysourced = &amp;quot;no&amp;quot;&lt;br /&gt;
		args.noicon = &amp;quot;true&amp;quot;&lt;br /&gt;
		args.linked = &amp;quot;no&amp;quot;&lt;br /&gt;
		args.pd = &amp;quot;true&amp;quot;&lt;br /&gt;
	elseif paraset == 3 then&lt;br /&gt;
		-- third set goes here&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	args.reqranks = setRanks(args.rank)&lt;br /&gt;
	args.langobj = findLang(args.lang)&lt;br /&gt;
	args.lang = args.langobj.code&lt;br /&gt;
	local pid1 = args.prop1 or args.pid1 or &amp;quot;&amp;quot;&lt;br /&gt;
	local pid2 = args.prop2 or args.pid2 or &amp;quot;&amp;quot;&lt;br /&gt;
	if pid1 == &amp;quot;&amp;quot; or pid2 == &amp;quot;&amp;quot; then return nil end&lt;br /&gt;
&lt;br /&gt;
	local f = {}&lt;br /&gt;
	f.args = args&lt;br /&gt;
	local qid1, statements1 = parseInput(f, args[1], pid1)&lt;br /&gt;
	-- parseInput nulls empty args[1] and returns args[1] if nothing on Wikidata&lt;br /&gt;
	if not qid1 then return statements1 end&lt;br /&gt;
	-- otherwise it returns the qid and a table for the statement&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
	local maxvals = tonumber(args.maxvals) or 0&lt;br /&gt;
	local qualID = mw.text.trim(args.qual or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qualID == &amp;quot;&amp;quot; then qualID = nil end&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k, v in ipairs(statements1) do&lt;br /&gt;
		if not onlysrc or sourced(v) then&lt;br /&gt;
			local snak = v.mainsnak&lt;br /&gt;
			if snak.datatype == &amp;quot;wikibase-item&amp;quot; and snak.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
				local qid2 = snak.datavalue.value.id&lt;br /&gt;
				local statements2 = {}&lt;br /&gt;
				if args.reqranks.b then&lt;br /&gt;
					statements2 = mw.wikibase.getBestStatements(qid2, pid2)&lt;br /&gt;
				else&lt;br /&gt;
					statements2 = mw.wikibase.getAllStatements(qid2, pid2)&lt;br /&gt;
				end&lt;br /&gt;
				if statements2[1] then&lt;br /&gt;
					local out2 = propertyvalueandquals(statements2, args, qualID)&lt;br /&gt;
					out[#out+1] = assembleoutput(out2, args, qid2, pid2)&lt;br /&gt;
				end&lt;br /&gt;
			end -- of test for valid property1 value&lt;br /&gt;
		end -- of test for sourced&lt;br /&gt;
		if maxvals &amp;gt; 0 and #out &amp;gt;= maxvals then break end&lt;br /&gt;
	end -- of loop through values of property1&lt;br /&gt;
	return assembleoutput(out, args, qid1, pid1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getPropOfProp = function(frame)&lt;br /&gt;
	local args= frame.args&lt;br /&gt;
	if not args.prop1 and not args.pid1 then&lt;br /&gt;
		args = frame:getParent().args&lt;br /&gt;
		if not args.prop1 and not args.pid1 then return i18n.errors[&amp;quot;No property supplied&amp;quot;] end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return p._getPropOfProp(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getAwardCat takes most of the usual parameters. If the item has values of P166 (award received),&lt;br /&gt;
-- then it examines each of those awards for P2517 (category for recipients of this award).&lt;br /&gt;
-- If it exists, it returns the corresponding category,&lt;br /&gt;
-- with the item&#039;s P734 (family name) as sort key, or no sort key if there is no family name.&lt;br /&gt;
-- The sort key may be overridden by the parameter |sortkey (alias |sk).&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getAwardCat = function(frame)&lt;br /&gt;
	frame.args.reqranks = setRanks(frame.args.rank)&lt;br /&gt;
	frame.args.langobj = findLang(frame.args.lang)&lt;br /&gt;
	frame.args.lang = frame.args.langobj.code&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	args.sep = &amp;quot; &amp;quot;&lt;br /&gt;
	local pid1 = args.prop1 or &amp;quot;P166&amp;quot;&lt;br /&gt;
	local pid2 = args.prop2 or &amp;quot;P2517&amp;quot;&lt;br /&gt;
	if pid1 == &amp;quot;&amp;quot; or pid2 == &amp;quot;&amp;quot; then return nil end&lt;br /&gt;
	-- locally supplied value:&lt;br /&gt;
	local localval = mw.text.trim(args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local qid1, statements1 = parseInput(frame, localval, pid1)&lt;br /&gt;
	if not qid1 then return localval end&lt;br /&gt;
	-- linkprefix (strip quotes)&lt;br /&gt;
	local lp = (args.linkprefix or args.lp or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	-- sort key (strip quotes, hyphens and periods):&lt;br /&gt;
	local sk = (args.sortkey or args.sk or &amp;quot;&amp;quot;):gsub(&#039;[&amp;quot;-.]&#039;, &#039;&#039;)&lt;br /&gt;
	-- family name:&lt;br /&gt;
	local famname = &amp;quot;&amp;quot;&lt;br /&gt;
	if sk == &amp;quot;&amp;quot; then&lt;br /&gt;
		local p734 = mw.wikibase.getBestStatements(qid1, &amp;quot;P734&amp;quot;)[1]&lt;br /&gt;
		local p734id = p734 and p734.mainsnak.snaktype == &amp;quot;value&amp;quot; and p734.mainsnak.datavalue.value.id or &amp;quot;&amp;quot;&lt;br /&gt;
		famname = mw.wikibase.getSitelink(p734id) or &amp;quot;&amp;quot;&lt;br /&gt;
		-- strip namespace and disambigation&lt;br /&gt;
		local pos = famname:find(&amp;quot;:&amp;quot;) or 0&lt;br /&gt;
		famname = famname:sub(pos+1):gsub(&amp;quot;%s%(.+%)$&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		if famname == &amp;quot;&amp;quot; then&lt;br /&gt;
			local lbl = mw.wikibase.getLabel(p734id)&lt;br /&gt;
			famname = lbl and mw.text.nowiki(lbl) or &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
	local maxvals = tonumber(args.maxvals) or 0&lt;br /&gt;
	local qualID = mw.text.trim(args.qual or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qualID == &amp;quot;&amp;quot; then qualID = nil end&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k, v in ipairs(statements1) do&lt;br /&gt;
		if not onlysrc or sourced(v) then&lt;br /&gt;
			local snak = v.mainsnak&lt;br /&gt;
			if snak.datatype == &amp;quot;wikibase-item&amp;quot; and snak.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
				local qid2 = snak.datavalue.value.id&lt;br /&gt;
				local statements2 = {}&lt;br /&gt;
				if args.reqranks.b then&lt;br /&gt;
					statements2 = mw.wikibase.getBestStatements(qid2, pid2)&lt;br /&gt;
				else&lt;br /&gt;
					statements2 = mw.wikibase.getAllStatements(qid2, pid2)&lt;br /&gt;
				end&lt;br /&gt;
				if statements2[1] and statements2[1].mainsnak.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
					local qid3 = statements2[1].mainsnak.datavalue.value.id&lt;br /&gt;
					local sitelink = mw.wikibase.getSitelink(qid3)&lt;br /&gt;
					-- if there&#039;s no local sitelink, create the sitelink from English label&lt;br /&gt;
					if not sitelink then&lt;br /&gt;
						local lbl = mw.wikibase.getLabelByLang(qid3, &amp;quot;en&amp;quot;)&lt;br /&gt;
						if lbl then&lt;br /&gt;
							if lbl:sub(1,9) == &amp;quot;Category:&amp;quot; then&lt;br /&gt;
								sitelink = mw.text.nowiki(lbl)&lt;br /&gt;
							else&lt;br /&gt;
								sitelink = &amp;quot;Category:&amp;quot; .. mw.text.nowiki(lbl)&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					if sitelink then&lt;br /&gt;
						if sk ~= &amp;quot;&amp;quot; then&lt;br /&gt;
							out[#out+1] = &amp;quot;[[&amp;quot; .. lp .. sitelink .. &amp;quot;|&amp;quot; .. sk .. &amp;quot;]]&amp;quot;&lt;br /&gt;
						elseif famname ~= &amp;quot;&amp;quot; then&lt;br /&gt;
							out[#out+1] = &amp;quot;[[&amp;quot; .. lp .. sitelink .. &amp;quot;|&amp;quot; .. famname .. &amp;quot;]]&amp;quot;&lt;br /&gt;
						else&lt;br /&gt;
							out[#out+1] = &amp;quot;[[&amp;quot; .. lp .. sitelink .. &amp;quot;]]&amp;quot;&lt;br /&gt;
						end -- of check for sort keys&lt;br /&gt;
					end -- of test for sitelink&lt;br /&gt;
				end -- of test for category&lt;br /&gt;
			end -- of test for wikibase item has a value&lt;br /&gt;
		end -- of test for sourced&lt;br /&gt;
		if maxvals &amp;gt; 0 and #out &amp;gt;= maxvals then break end&lt;br /&gt;
	end -- of loop through values of property1&lt;br /&gt;
	return assembleoutput(out, args, qid1, pid1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getIntersectCat takes most of the usual parameters.&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented&lt;br /&gt;
-- It takes two properties, |prop1 and |prop2 (e.g. occupation and country of citizenship)&lt;br /&gt;
-- Each property&#039;s value is a wiki-base entity&lt;br /&gt;
-- For each value of the first parameter (ranks implemented) it fetches the value&#039;s main category&lt;br /&gt;
-- and then each value of the second parameter (possibly substituting a simpler description)&lt;br /&gt;
-- then it returns all of the categories representing the intersection of those properties,&lt;br /&gt;
-- (e.g. Category:Actors from Canada). A joining term may be supplied (e.g. |join=from).&lt;br /&gt;
-- The item&#039;s P734 (family name) is the sort key, or no sort key if there is no family name.&lt;br /&gt;
-- The sort key may be overridden by the parameter |sortkey (alias |sk).&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getIntersectCat = function(frame)&lt;br /&gt;
	frame.args.reqranks = setRanks(frame.args.rank)&lt;br /&gt;
	frame.args.langobj = findLang(frame.args.lang)&lt;br /&gt;
	frame.args.lang = frame.args.langobj.code&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	args.sep = &amp;quot; &amp;quot;&lt;br /&gt;
	args.linked = &amp;quot;no&amp;quot;&lt;br /&gt;
	local pid1 = args.prop1 or &amp;quot;P106&amp;quot;&lt;br /&gt;
	local pid2 = args.prop2 or &amp;quot;P27&amp;quot;&lt;br /&gt;
	if pid1 == &amp;quot;&amp;quot; or pid2 == &amp;quot;&amp;quot; then return nil end&lt;br /&gt;
	local qid, statements1 = parseInput(frame, &amp;quot;&amp;quot;, pid1)&lt;br /&gt;
	if not qid then return nil end&lt;br /&gt;
	local qid, statements2 = parseInput(frame, &amp;quot;&amp;quot;, pid2)&lt;br /&gt;
	if not qid then return nil end&lt;br /&gt;
	-- topics like countries may have different names in categories from their label in Wikidata&lt;br /&gt;
	local subs_exists, subs = pcall(mw.loadData, &amp;quot;Module:WikidataIB/subs&amp;quot;)&lt;br /&gt;
	local join = args.join or &amp;quot;&amp;quot;&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
	local maxvals = tonumber(args.maxvals) or 0&lt;br /&gt;
	-- linkprefix (strip quotes)&lt;br /&gt;
	local lp = (args.linkprefix or args.lp or &amp;quot;&amp;quot;):gsub(&#039;&amp;quot;&#039;, &#039;&#039;)&lt;br /&gt;
	-- sort key (strip quotes, hyphens and periods):&lt;br /&gt;
	local sk = (args.sortkey or args.sk or &amp;quot;&amp;quot;):gsub(&#039;[&amp;quot;-.]&#039;, &#039;&#039;)&lt;br /&gt;
	-- family name:&lt;br /&gt;
	local famname = &amp;quot;&amp;quot;&lt;br /&gt;
	if sk == &amp;quot;&amp;quot; then&lt;br /&gt;
		local p734 = mw.wikibase.getBestStatements(qid, &amp;quot;P734&amp;quot;)[1]&lt;br /&gt;
		local p734id = p734 and p734.mainsnak.snaktype == &amp;quot;value&amp;quot; and p734.mainsnak.datavalue.value.id or &amp;quot;&amp;quot;&lt;br /&gt;
		famname = mw.wikibase.getSitelink(p734id) or &amp;quot;&amp;quot;&lt;br /&gt;
		-- strip namespace and disambigation&lt;br /&gt;
		local pos = famname:find(&amp;quot;:&amp;quot;) or 0&lt;br /&gt;
		famname = famname:sub(pos+1):gsub(&amp;quot;%s%(.+%)$&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		if famname == &amp;quot;&amp;quot; then&lt;br /&gt;
			local lbl = mw.wikibase.getLabel(p734id)&lt;br /&gt;
			famname = lbl and mw.text.nowiki(lbl) or &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local cat1 = {}&lt;br /&gt;
	for k, v in ipairs(statements1) do&lt;br /&gt;
		if not onlysrc or sourced(v) then&lt;br /&gt;
			-- get the ID representing the value of the property&lt;br /&gt;
			local pvalID = (v.mainsnak.snaktype == &amp;quot;value&amp;quot;) and v.mainsnak.datavalue.value.id&lt;br /&gt;
			if pvalID then&lt;br /&gt;
				-- get the topic&#039;s main category (P910) for that entity&lt;br /&gt;
				local p910 = mw.wikibase.getBestStatements(pvalID, &amp;quot;P910&amp;quot;)[1]&lt;br /&gt;
				if p910 and p910.mainsnak.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
					local tmcID = p910.mainsnak.datavalue.value.id&lt;br /&gt;
					-- use sitelink or the English label for the cat&lt;br /&gt;
					local cat = mw.wikibase.getSitelink(tmcID)&lt;br /&gt;
					if not cat then&lt;br /&gt;
						local lbl = mw.wikibase.getLabelByLang(tmcID, &amp;quot;en&amp;quot;)&lt;br /&gt;
						if lbl then&lt;br /&gt;
							if lbl:sub(1,9) == &amp;quot;Category:&amp;quot; then&lt;br /&gt;
								cat = mw.text.nowiki(lbl)&lt;br /&gt;
							else&lt;br /&gt;
								cat = &amp;quot;Category:&amp;quot; .. mw.text.nowiki(lbl)&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					cat1[#cat1+1] = cat&lt;br /&gt;
				end -- of test for topic&#039;s main category exists&lt;br /&gt;
			end -- of test for property has vaild value&lt;br /&gt;
		end -- of test for sourced&lt;br /&gt;
		if maxvals &amp;gt; 0 and #cat1 &amp;gt;= maxvals then break end&lt;br /&gt;
	end&lt;br /&gt;
	local cat2 = {}&lt;br /&gt;
	for k, v in ipairs(statements2) do&lt;br /&gt;
		if not onlysrc or sourced(v) then&lt;br /&gt;
			local cat = rendersnak(v, args)&lt;br /&gt;
			if subs[cat] then cat = subs[cat] end&lt;br /&gt;
			cat2[#cat2+1] = cat&lt;br /&gt;
		end&lt;br /&gt;
		if maxvals &amp;gt; 0 and #cat2 &amp;gt;= maxvals then break end&lt;br /&gt;
	end&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k1, v1 in ipairs(cat1) do&lt;br /&gt;
		for k2, v2 in ipairs(cat2) do&lt;br /&gt;
			if sk ~= &amp;quot;&amp;quot; then&lt;br /&gt;
				out[#out+1] = &amp;quot;[[&amp;quot; .. lp .. v1 .. &amp;quot; &amp;quot; .. join .. &amp;quot; &amp;quot; .. v2 .. &amp;quot;|&amp;quot; .. sk .. &amp;quot;]]&amp;quot;&lt;br /&gt;
			elseif famname ~= &amp;quot;&amp;quot; then&lt;br /&gt;
				out[#out+1] = &amp;quot;[[&amp;quot; .. lp .. v1 .. &amp;quot; &amp;quot; .. join .. &amp;quot; &amp;quot; .. v2 .. &amp;quot;|&amp;quot; .. famname .. &amp;quot;]]&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				out[#out+1] = &amp;quot;[[&amp;quot; .. lp .. v1 .. &amp;quot; &amp;quot; .. join .. &amp;quot; &amp;quot; .. v2 .. &amp;quot;]]&amp;quot;&lt;br /&gt;
			end -- of check for sort keys&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	args.noicon = &amp;quot;true&amp;quot;&lt;br /&gt;
	return assembleoutput(out, args, qid, pid1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- qualsToTable takes most of the usual parameters.&lt;br /&gt;
-- The usual whitelisting, blacklisting, onlysourced, etc. are implemented.&lt;br /&gt;
-- A qid may be given, and the first unnamed parameter is the property ID, which is of type wikibase item.&lt;br /&gt;
-- It takes a list of qualifier property IDs as |quals=&lt;br /&gt;
-- For a given qid and property, it creates the rows of an html table,&lt;br /&gt;
-- each row being a value of the property (optionally only if the property matches the value in |pval= )&lt;br /&gt;
-- each cell being the first value of the qualifier corresponding to the list in |quals&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; setRanks; parseInput; sourced;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.qualsToTable = function(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
&lt;br /&gt;
	local quals = args.quals or &amp;quot;&amp;quot;&lt;br /&gt;
	if quals == &amp;quot;&amp;quot; then return &amp;quot;&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	args.reqranks = setRanks(args.rank)&lt;br /&gt;
&lt;br /&gt;
	local propertyID = mw.text.trim(args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local f = {}&lt;br /&gt;
	f.args = args&lt;br /&gt;
	local entityid, props = parseInput(f, &amp;quot;&amp;quot;, propertyID)&lt;br /&gt;
	if not entityid then return &amp;quot;&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	args.langobj = findLang(args.lang)&lt;br /&gt;
	args.lang = args.langobj.code&lt;br /&gt;
&lt;br /&gt;
	local pval = args.pval or &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	local qplist = mw.text.split(quals, &amp;quot;%p&amp;quot;) -- split at punctuation and make a sequential table&lt;br /&gt;
	for i, v in ipairs(qplist) do&lt;br /&gt;
		qplist[i] = mw.text.trim(v):upper() -- remove whitespace and capitalise&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local col1 = args.firstcol or &amp;quot;&amp;quot;&lt;br /&gt;
	if col1 ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		col1 = col1 .. &amp;quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local emptycell = args.emptycell or &amp;quot;&amp;amp;nbsp;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	-- construct a 2-D array of qualifier values in qvals&lt;br /&gt;
	local qvals = {}&lt;br /&gt;
	for i, v in ipairs(props) do&lt;br /&gt;
		local skip = false&lt;br /&gt;
		if pval ~= &amp;quot;&amp;quot; then&lt;br /&gt;
			local pid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id&lt;br /&gt;
			if pid ~= pval then skip = true end&lt;br /&gt;
		end&lt;br /&gt;
		if not skip then&lt;br /&gt;
			local qval = {}&lt;br /&gt;
			local vqualifiers = v.qualifiers or {}&lt;br /&gt;
			-- go through list of wanted qualifier properties&lt;br /&gt;
			for i1, v1 in ipairs(qplist) do&lt;br /&gt;
				-- check for that property ID in the statement&#039;s qualifiers&lt;br /&gt;
				local qv, qtype&lt;br /&gt;
				if vqualifiers[v1] then&lt;br /&gt;
					qtype = vqualifiers[v1][1].datatype&lt;br /&gt;
					if qtype == &amp;quot;time&amp;quot; then&lt;br /&gt;
						if vqualifiers[v1][1].snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
							qv = mw.wikibase.renderSnak(vqualifiers[v1][1])&lt;br /&gt;
							qv = frame:expandTemplate{title=&amp;quot;dts&amp;quot;, args={qv}}&lt;br /&gt;
						else&lt;br /&gt;
							qv = &amp;quot;?&amp;quot;&lt;br /&gt;
						end&lt;br /&gt;
					elseif qtype == &amp;quot;url&amp;quot; then&lt;br /&gt;
						if vqualifiers[v1][1].snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
							qv = mw.wikibase.renderSnak(vqualifiers[v1][1])&lt;br /&gt;
							local display = mw.ustring.match( mw.uri.decode(qv, &amp;quot;WIKI&amp;quot;), &amp;quot;([%w ]+)$&amp;quot; )&lt;br /&gt;
							if display then&lt;br /&gt;
								qv = &amp;quot;[&amp;quot; .. qv .. &amp;quot; &amp;quot; .. display .. &amp;quot;]&amp;quot;&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
					else&lt;br /&gt;
						qv = mw.wikibase.formatValue(vqualifiers[v1][1])&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				-- record either the value or a placeholder&lt;br /&gt;
				qval[i1] = qv or emptycell&lt;br /&gt;
			end -- of loop through list of qualifiers&lt;br /&gt;
			-- add the list of qualifier values as a &amp;quot;row&amp;quot; in the main list&lt;br /&gt;
			qvals[#qvals+1] = qval&lt;br /&gt;
		end&lt;br /&gt;
	end -- of for each value loop&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for i, v in ipairs(qvals) do&lt;br /&gt;
		out[i] = &amp;quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;quot; .. col1 .. table.concat(qvals[i], &amp;quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;quot;) .. &amp;quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(out, &amp;quot;\n&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getGlobe takes an optional qid of a Wikidata entity passed as |qid=&lt;br /&gt;
-- otherwise it uses the linked item for the current page.&lt;br /&gt;
-- If returns the Qid of the globe used in P625 (coordinate location),&lt;br /&gt;
-- or nil if there isn&#039;t one.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getGlobe = function(frame)&lt;br /&gt;
	local qid = frame.args.qid or frame.args[1] or &amp;quot;&amp;quot;&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	local coords = mw.wikibase.getBestStatements(qid, &amp;quot;P625&amp;quot;)[1]&lt;br /&gt;
	local globeid&lt;br /&gt;
	if coords and coords.mainsnak.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
		globeid = coords.mainsnak.datavalue.value.globe:match(&amp;quot;(Q%d+)&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	return globeid&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getCommonsLink takes an optional qid of a Wikidata entity passed as |qid=&lt;br /&gt;
-- It returns one of the following in order of preference:&lt;br /&gt;
-- the Commons sitelink of the linked Wikidata item;&lt;br /&gt;
-- the Commons sitelink of the topic&#039;s main category of the linked Wikidata item;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _getCommonslink(); _getSitelink(); parseParam()&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getCommonsLink = function(frame)&lt;br /&gt;
	local oc = frame.args.onlycat or frame.args.onlycategories&lt;br /&gt;
	local fb = parseParam(frame.args.fallback or frame.args.fb, true)&lt;br /&gt;
	return _getCommonslink(frame.args.qid, oc, fb)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getSitelink takes the qid of a Wikidata entity passed as |qid=&lt;br /&gt;
-- It takes an optional parameter |wiki= to determine which wiki is to be checked for a sitelink&lt;br /&gt;
-- If the parameter is blank, then it uses the local wiki.&lt;br /&gt;
-- If there is a sitelink to an article available, it returns the plain text link to the article&lt;br /&gt;
-- If there is no sitelink, it returns nil.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getSiteLink = function(frame)&lt;br /&gt;
	return _getSitelink(frame.args.qid, frame.args.wiki or mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getLink has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid=&lt;br /&gt;
-- If there is a sitelink to an article on the local Wiki, it returns a link to the article&lt;br /&gt;
-- with the Wikidata label as the displayed text.&lt;br /&gt;
-- If there is no sitelink, it returns the label as plain text.&lt;br /&gt;
-- If there is no label in the local language, it displays the qid instead.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getLink = function(frame)&lt;br /&gt;
	local itemID = mw.text.trim(frame.args[1] or frame.args.qid or &amp;quot;&amp;quot;)&lt;br /&gt;
	if itemID == &amp;quot;&amp;quot; then return end&lt;br /&gt;
	local sitelink = mw.wikibase.getSitelink(itemID)&lt;br /&gt;
	local label = labelOrId(itemID)&lt;br /&gt;
	if sitelink then&lt;br /&gt;
		return &amp;quot;[[:&amp;quot; .. sitelink .. &amp;quot;|&amp;quot; .. label .. &amp;quot;]]&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		return label&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getLabel has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid=&lt;br /&gt;
-- It returns the Wikidata label for the local language as plain text.&lt;br /&gt;
-- If there is no label in the local language, it displays the qid instead.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getLabel = function(frame)&lt;br /&gt;
	local itemID = mw.text.trim(frame.args[1] or frame.args.qid or &amp;quot;&amp;quot;)&lt;br /&gt;
	if itemID == &amp;quot;&amp;quot; then return end&lt;br /&gt;
	local lang = frame.args.lang or &amp;quot;&amp;quot;&lt;br /&gt;
	if lang == &amp;quot;&amp;quot; then lang = nil end&lt;br /&gt;
	local label = labelOrId(itemID, lang)&lt;br /&gt;
	return label&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- label has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid=&lt;br /&gt;
-- if no qid is supplied, it uses the qid associated with the current page.&lt;br /&gt;
-- It returns the Wikidata label for the local language as plain text.&lt;br /&gt;
-- If there is no label in the local language, it returns nil.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.label = function(frame)&lt;br /&gt;
	local qid = mw.text.trim(frame.args[1] or frame.args.qid or &amp;quot;&amp;quot;)&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then return end&lt;br /&gt;
	local lang = frame.args.lang or &amp;quot;&amp;quot;&lt;br /&gt;
	if lang == &amp;quot;&amp;quot; then lang = nil end&lt;br /&gt;
	local label, success = labelOrId(qid, lang)&lt;br /&gt;
	if success then return label end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getAT (Article Title)&lt;br /&gt;
-- has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid=&lt;br /&gt;
-- If there is a sitelink to an article on the local Wiki, it returns the sitelink as plain text.&lt;br /&gt;
-- If there is no sitelink or qid supplied, it returns nothing.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getAT = function(frame)&lt;br /&gt;
	local itemID = mw.text.trim(frame.args[1] or frame.args.qid or &amp;quot;&amp;quot;)&lt;br /&gt;
	if itemID == &amp;quot;&amp;quot; then return end&lt;br /&gt;
	return mw.wikibase.getSitelink(itemID)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getDescription has the qid of a Wikidata entity passed as |qid=&lt;br /&gt;
-- (it defaults to the associated qid of the current article if omitted)&lt;br /&gt;
-- and a local parameter passed as the first unnamed parameter.&lt;br /&gt;
-- Any local parameter passed (other than &amp;quot;Wikidata&amp;quot; or &amp;quot;none&amp;quot;) becomes the return value.&lt;br /&gt;
-- It returns the article description for the Wikidata entity if the local parameter is &amp;quot;Wikidata&amp;quot;.&lt;br /&gt;
-- Nothing is returned if the description doesn&#039;t exist or &amp;quot;none&amp;quot; is passed as the local parameter.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getDescription = function(frame)&lt;br /&gt;
	local desc = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local itemID = mw.text.trim(frame.args.qid or &amp;quot;&amp;quot;)&lt;br /&gt;
	if itemID == &amp;quot;&amp;quot; then itemID = nil end&lt;br /&gt;
	if desc:lower() == &#039;wikidata&#039; then&lt;br /&gt;
		return mw.wikibase.getDescription(itemID)&lt;br /&gt;
	elseif desc:lower() == &#039;none&#039; then&lt;br /&gt;
		return nil&lt;br /&gt;
	else&lt;br /&gt;
		return desc&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getAliases has the qid of a Wikidata entity passed as |qid=&lt;br /&gt;
-- (it defaults to the associated qid of the current article if omitted)&lt;br /&gt;
-- and a local parameter passed as the first unnamed parameter.&lt;br /&gt;
-- It implements blacklisting and whitelisting with a field name of &amp;quot;alias&amp;quot; by default.&lt;br /&gt;
-- Any local parameter passed becomes the return value.&lt;br /&gt;
-- Otherwise it returns the aliases for the Wikidata entity with the usual list options.&lt;br /&gt;
-- Nothing is returned if the aliases do not exist.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: findLang(); assembleoutput()&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getAliases = function(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
&lt;br /&gt;
	local fieldname = args.name or &amp;quot;&amp;quot;&lt;br /&gt;
	if fieldname == &amp;quot;&amp;quot; then fieldname = &amp;quot;alias&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	local blacklist = args.suppressfields or args.spf or &amp;quot;&amp;quot;&lt;br /&gt;
	if blacklist:find(fieldname) then return nil end&lt;br /&gt;
&lt;br /&gt;
	local localval = mw.text.trim(args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	if localval ~= &amp;quot;&amp;quot; then return localval end&lt;br /&gt;
&lt;br /&gt;
	local whitelist = args.fetchwikidata or args.fwd or &amp;quot;&amp;quot;&lt;br /&gt;
	if whitelist == &amp;quot;&amp;quot; then whitelist = &amp;quot;NONE&amp;quot; end&lt;br /&gt;
	if not (whitelist == &#039;ALL&#039; or whitelist:find(fieldname)) then return nil end&lt;br /&gt;
&lt;br /&gt;
	local qid = args.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid or not mw.wikibase.entityExists(qid) then return nil end&lt;br /&gt;
&lt;br /&gt;
	local aliases = mw.wikibase.getEntity(qid).aliases&lt;br /&gt;
	if not aliases then return nil end&lt;br /&gt;
&lt;br /&gt;
	args.langobj = findLang(args.lang)&lt;br /&gt;
	local langcode = args.langobj.code&lt;br /&gt;
	args.lang = langcode&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k1, v1 in pairs(aliases) do&lt;br /&gt;
		if v1[1].language == langcode then&lt;br /&gt;
			for k1, v2 in ipairs(v1) do&lt;br /&gt;
				out[#out+1] = v2.value&lt;br /&gt;
			end&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return assembleoutput(out, args, qid)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- pageId returns the page id (entity ID, Qnnn) of the current page&lt;br /&gt;
-- returns nothing if the page is not connected to Wikidata&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.pageId = function(frame)&lt;br /&gt;
	return mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- formatDate is a wrapper to export the private function format_Date&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: format_Date();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.formatDate = function(frame)&lt;br /&gt;
	return format_Date(frame.args[1], frame.args.df, frame.args.bc)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- location is a wrapper to export the private function _location&lt;br /&gt;
-- it takes the entity-id as qid or the first unnamed parameter&lt;br /&gt;
-- optional boolean parameter first toggles the display of the first item&lt;br /&gt;
-- optional boolean parameter skip toggles the display to skip to the last item&lt;br /&gt;
-- parameter debug=&amp;lt;y/n&amp;gt; (default &#039;n&#039;) adds error msg if not a location&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _location();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.location = function(frame)&lt;br /&gt;
	local debug = (frame.args.debug or &amp;quot;&amp;quot;):sub(1, 1):lower()&lt;br /&gt;
	if debug == &amp;quot;&amp;quot; then debug = &amp;quot;n&amp;quot; end&lt;br /&gt;
	local qid = mw.text.trim(frame.args.qid or frame.args[1] or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid=mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then&lt;br /&gt;
		if debug ~= &amp;quot;n&amp;quot; then&lt;br /&gt;
			return i18n.errors[&amp;quot;entity-not-found&amp;quot;]&lt;br /&gt;
		else&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local first = mw.text.trim(frame.args.first or &amp;quot;&amp;quot;)&lt;br /&gt;
	local skip = mw.text.trim(frame.args.skip or &amp;quot;&amp;quot;)&lt;br /&gt;
	return table.concat( _location(qid, first, skip), &amp;quot;, &amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- checkBlacklist implements a test to check whether a named field is allowed&lt;br /&gt;
-- returns true if the field is not blacklisted (i.e. allowed)&lt;br /&gt;
-- returns false if the field is blacklisted (i.e. disallowed)&lt;br /&gt;
-- {{#if:{{#invoke:WikidataIB |checkBlacklist |name=Joe |suppressfields=Dave; Joe; Fred}} | not blacklisted | blacklisted}}&lt;br /&gt;
-- displays &amp;quot;blacklisted&amp;quot;&lt;br /&gt;
-- {{#if:{{#invoke:WikidataIB |checkBlacklist |name=Jim |suppressfields=Dave; Joe; Fred}} | not blacklisted | blacklisted}}&lt;br /&gt;
-- displays &amp;quot;not blacklisted&amp;quot;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.checkBlacklist = function(frame)&lt;br /&gt;
	local blacklist = frame.args.suppressfields or frame.args.spf or &amp;quot;&amp;quot;&lt;br /&gt;
	local fieldname = frame.args.name or &amp;quot;&amp;quot;&lt;br /&gt;
	if blacklist ~= &amp;quot;&amp;quot; and fieldname ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		if blacklist:find(fieldname) then&lt;br /&gt;
			return false&lt;br /&gt;
		else&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- one of the fields is missing: let&#039;s call that &amp;quot;not on the list&amp;quot;&lt;br /&gt;
		return true&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- emptyor returns nil if its first unnamed argument is just punctuation, whitespace or html tags&lt;br /&gt;
-- otherwise it returns the argument unchanged (including leading/trailing space).&lt;br /&gt;
-- If the argument may contain &amp;quot;=&amp;quot;, then it must be called explicitly:&lt;br /&gt;
-- |1=arg&lt;br /&gt;
-- (In that case, leading and trailing spaces are trimmed)&lt;br /&gt;
-- It finds use in infoboxes where it can replace tests like:&lt;br /&gt;
-- {{#if: {{#invoke:WikidatIB |getvalue |P99 |fwd=ALL}} | &amp;lt;span class=&amp;quot;xxx&amp;quot;&amp;gt;{{#invoke:WikidatIB |getvalue |P99 |fwd=ALL}}&amp;lt;/span&amp;gt; | }}&lt;br /&gt;
-- with a form that uses just a single call to Wikidata:&lt;br /&gt;
-- {{#invoke |WikidataIB |emptyor |1= &amp;lt;span class=&amp;quot;xxx&amp;quot;&amp;gt;{{#invoke:WikidataIB |getvalue |P99 |fwd=ALL}}&amp;lt;/span&amp;gt; }}&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.emptyor = function(frame)&lt;br /&gt;
	local s = frame.args[1] or &amp;quot;&amp;quot;&lt;br /&gt;
	if s == &amp;quot;&amp;quot; then return nil end&lt;br /&gt;
	local sx = s:gsub(&amp;quot;%s&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;&amp;lt;[^&amp;gt;]*&amp;gt;&amp;quot;, &amp;quot;&amp;quot;):gsub(&amp;quot;%p&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	if sx == &amp;quot;&amp;quot; then&lt;br /&gt;
		return nil&lt;br /&gt;
	else&lt;br /&gt;
		return s&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- labelorid is a public function to expose the output of labelOrId()&lt;br /&gt;
-- Pass the Q-number as |qid= or as an unnamed parameter.&lt;br /&gt;
-- It returns the Wikidata label for that entity or the qid if no label exists.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: labelOrId&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.labelorid = function(frame)&lt;br /&gt;
	return (labelOrId(frame.args.qid or frame.args[1]))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getLang returns the MediaWiki language code of the current content.&lt;br /&gt;
-- If optional parameter |style=full, it returns the language name.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getLang = function(frame)&lt;br /&gt;
	local style = (frame.args.style or &amp;quot;&amp;quot;):lower()&lt;br /&gt;
	local langcode = mw.language.getContentLanguage().code&lt;br /&gt;
	if style == &amp;quot;full&amp;quot; then&lt;br /&gt;
		return mw.language.fetchLanguageName( langcode )&lt;br /&gt;
	end&lt;br /&gt;
	return langcode&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getItemLangCode takes a qid parameter (using the current page&#039;s qid if blank)&lt;br /&gt;
-- If the item for that qid has property country (P17) it looks at the first preferred value&lt;br /&gt;
-- If the country has an official language (P37), it looks at the first preferred value&lt;br /&gt;
-- If that official language has a language code (P424), it returns the first preferred value&lt;br /&gt;
-- Otherwise it returns nothing.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: _getItemLangCode()&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getItemLangCode = function(frame)&lt;br /&gt;
	return _getItemLangCode(frame.args.qid or frame.args[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- findLanguage exports the local findLang() function&lt;br /&gt;
-- It takes an optional language code and returns, in order of preference:&lt;br /&gt;
-- the code if a known language;&lt;br /&gt;
-- the user&#039;s language, if set;&lt;br /&gt;
-- the server&#039;s content language.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: findLang&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.findLanguage = function(frame)&lt;br /&gt;
	return findLang(frame.args.lang or frame.args[1]).code&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getQid returns the qid, if supplied&lt;br /&gt;
-- failing that, the Wikidata entity ID of the &amp;quot;category&#039;s main topic (P301)&amp;quot;, if it exists&lt;br /&gt;
-- failing that, the Wikidata entity ID associated with the current page, if it exists&lt;br /&gt;
-- otherwise, nothing&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getQid = function(frame)&lt;br /&gt;
	local qid = (frame.args.qid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	-- check if a qid was passed; if so, return it:&lt;br /&gt;
	if qid ~= &amp;quot;&amp;quot; then return qid end&lt;br /&gt;
	-- check if there&#039;s a &amp;quot;category&#039;s main topic (P301)&amp;quot;:&lt;br /&gt;
	qid = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if qid then&lt;br /&gt;
		local prop301 = mw.wikibase.getBestStatements(qid, &amp;quot;P301&amp;quot;)&lt;br /&gt;
		if prop301[1] then&lt;br /&gt;
			local mctid = prop301[1].mainsnak.datavalue.value.id&lt;br /&gt;
			if mctid then return mctid end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- otherwise return the page qid (if any)&lt;br /&gt;
	return qid&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- followQid takes four optional parameters: qid, props, list and all.&lt;br /&gt;
-- If qid is not given, it uses the qid for the connected page&lt;br /&gt;
-- or returns nil if there isn&#039;t one.&lt;br /&gt;
-- props is a list of properties, separated by punctuation.&lt;br /&gt;
-- If props is given, the Wikidata item for the qid is examined for each property in turn.&lt;br /&gt;
-- If that property contains a value that is another Wikibase-item, that item&#039;s qid is returned,&lt;br /&gt;
-- and the search terminates, unless |all=y when all of the qids are returned, separated by spaces.&lt;br /&gt;
-- If |list= is set to a template, the qids are passed as arguments to the template.&lt;br /&gt;
-- If props is not given, the qid is returned.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam()&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p._followQid = function(args)&lt;br /&gt;
	local qid = (args.qid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	local all = parseParam(args.all, false)&lt;br /&gt;
	local list = args.list or &amp;quot;&amp;quot;&lt;br /&gt;
	if list == &amp;quot;&amp;quot; then list = nil end&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then&lt;br /&gt;
		qid = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	end&lt;br /&gt;
	if not qid then return nil end&lt;br /&gt;
	local out = {}&lt;br /&gt;
	local props = (args.props or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if props ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		for p in mw.text.gsplit(props, &amp;quot;%p&amp;quot;) do -- split at punctuation and iterate&lt;br /&gt;
			p = mw.text.trim(p)&lt;br /&gt;
			for i, v in ipairs( mw.wikibase.getBestStatements(qid, p) ) do&lt;br /&gt;
				local linkedid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id&lt;br /&gt;
				if linkedid then&lt;br /&gt;
					if all then&lt;br /&gt;
						out[#out+1] = linkedid&lt;br /&gt;
					else&lt;br /&gt;
						return linkedid&lt;br /&gt;
					end -- test for all or just the first one found&lt;br /&gt;
				end -- test for value exists for that property&lt;br /&gt;
			end -- loop through values of property to follow&lt;br /&gt;
		end -- loop through list of properties to follow&lt;br /&gt;
	end&lt;br /&gt;
	if #out &amp;gt; 0 then&lt;br /&gt;
		local ret = &amp;quot;&amp;quot;&lt;br /&gt;
		if list then&lt;br /&gt;
			ret = mw.getCurrentFrame():expandTemplate{title = list, args = out}&lt;br /&gt;
		else&lt;br /&gt;
			ret = table.concat(out, &amp;quot; &amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	else&lt;br /&gt;
		return qid&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.followQid = function(frame)&lt;br /&gt;
	return p._followQid(frame.args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- globalSiteID returns the globalSiteID for the current wiki&lt;br /&gt;
-- e.g. returns &amp;quot;enwiki&amp;quot; for the English Wikipedia, &amp;quot;enwikisource&amp;quot; for English Wikisource, etc.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.globalSiteID = function(frame)&lt;br /&gt;
	return mw.wikibase.getGlobalSiteId()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- siteID returns the root of the globalSiteID&lt;br /&gt;
-- e.g. &amp;quot;en&amp;quot; for &amp;quot;enwiki&amp;quot;, &amp;quot;enwikisource&amp;quot;, etc.&lt;br /&gt;
-- treats &amp;quot;en-gb&amp;quot; as &amp;quot;en&amp;quot;, etc.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.siteID = function(frame)&lt;br /&gt;
	local txtlang = frame:callParserFunction(&#039;int&#039;, {&#039;lang&#039;}) or &amp;quot;&amp;quot;&lt;br /&gt;
	-- This deals with specific exceptions: be-tarask -&amp;gt; be-x-old&lt;br /&gt;
	if txtlang == &amp;quot;be-tarask&amp;quot; then&lt;br /&gt;
		return &amp;quot;be_x_old&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	local pos = txtlang:find(&amp;quot;-&amp;quot;)&lt;br /&gt;
	local ret = &amp;quot;&amp;quot;&lt;br /&gt;
	if pos then&lt;br /&gt;
		ret = txtlang:sub(1, pos-1)&lt;br /&gt;
	else&lt;br /&gt;
		ret = txtlang&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- projID returns the code used to link to the reader&#039;s language&#039;s project&lt;br /&gt;
-- e.g &amp;quot;en&amp;quot; for [[:en:WikidataIB]]&lt;br /&gt;
-- treats &amp;quot;en-gb&amp;quot; as &amp;quot;en&amp;quot;, etc.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.projID = function(frame)&lt;br /&gt;
	local txtlang = frame:callParserFunction(&#039;int&#039;, {&#039;lang&#039;}) or &amp;quot;&amp;quot;&lt;br /&gt;
	-- This deals with specific exceptions: be-tarask -&amp;gt; be-x-old&lt;br /&gt;
	if txtlang == &amp;quot;be-tarask&amp;quot; then&lt;br /&gt;
		return &amp;quot;be-x-old&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	local pos = txtlang:find(&amp;quot;-&amp;quot;)&lt;br /&gt;
	local ret = &amp;quot;&amp;quot;&lt;br /&gt;
	if pos then&lt;br /&gt;
		ret = txtlang:sub(1, pos-1)&lt;br /&gt;
	else&lt;br /&gt;
		ret = txtlang&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- formatNumber formats a number according to the the supplied language code (&amp;quot;|lang=&amp;quot;)&lt;br /&gt;
-- or the default language if not supplied.&lt;br /&gt;
-- The number is the first unnamed parameter or &amp;quot;|num=&amp;quot;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: findLang()&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.formatNumber = function(frame)&lt;br /&gt;
	local lang&lt;br /&gt;
	local num = tonumber(frame.args[1] or frame.args.num) or 0&lt;br /&gt;
	lang = findLang(frame.args.lang)&lt;br /&gt;
	return lang:formatNum( num )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- examine dumps the property (the unnamed parameter or pid)&lt;br /&gt;
-- from the item given by the parameter &#039;qid&#039; (or the other unnamed parameter)&lt;br /&gt;
-- or from the item corresponding to the current page if qid is not supplied.&lt;br /&gt;
-- e.g. {{#invoke:WikidataIB |examine |pid=P26 |qid=Q42}}&lt;br /&gt;
-- or {{#invoke:WikidataIB |examine |P26 |Q42}} or any combination of these&lt;br /&gt;
-- or {{#invoke:WikidataIB |examine |P26}} for the current page.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.examine = function( frame )&lt;br /&gt;
	local args&lt;br /&gt;
	if frame.args[1] or frame.args.pid or frame.args.qid then&lt;br /&gt;
		args = frame.args&lt;br /&gt;
	else&lt;br /&gt;
		args = frame:getParent().args&lt;br /&gt;
	end&lt;br /&gt;
	local par = {}&lt;br /&gt;
	local pid = (args.pid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	local qid = (args.qid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	par[1] = mw.text.trim( args[1] or &amp;quot;&amp;quot; ):upper()&lt;br /&gt;
	par[2] = mw.text.trim( args[2] or &amp;quot;&amp;quot; ):upper()&lt;br /&gt;
	table.sort(par)&lt;br /&gt;
	if par[2]:sub(1,1) == &amp;quot;P&amp;quot; then par[1], par[2] = par[2], par[1] end&lt;br /&gt;
	if pid == &amp;quot;&amp;quot; then pid = par[1] end&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = par[2] end&lt;br /&gt;
	local q1 = qid:sub(1,1)&lt;br /&gt;
	if pid:sub(1,1) ~= &amp;quot;P&amp;quot; then return &amp;quot;No property supplied&amp;quot; end&lt;br /&gt;
	if q1 ~= &amp;quot;Q&amp;quot; and q1 ~= &amp;quot;M&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then return &amp;quot;No item for this page&amp;quot; end&lt;br /&gt;
	return &amp;quot;&amp;lt;pre&amp;gt;&amp;quot; .. mw.dumpObject( mw.wikibase.getAllStatements( qid, pid ) ) .. &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- checkvalue looks for &#039;val&#039; as a wikibase-item value of a property (the unnamed parameter or pid)&lt;br /&gt;
-- from the item given by the parameter &#039;qid&#039;&lt;br /&gt;
-- or from the Wikidata item associated with the current page if qid is not supplied.&lt;br /&gt;
-- It only checks ranks that are requested (preferred and normal by default)&lt;br /&gt;
-- If property is not supplied, then P31 (instance of) is assumed.&lt;br /&gt;
-- It returns val if found or nothing if not found.&lt;br /&gt;
-- e.g. {{#invoke:WikidataIB |checkvalue |val=Q5 |pid=P31 |qid=Q42}}&lt;br /&gt;
-- or {{#invoke:WikidataIB |checkvalue |val=Q5 |P31 |qid=Q42}}&lt;br /&gt;
-- or {{#invoke:WikidataIB |checkvalue |val=Q5 |qid=Q42}}&lt;br /&gt;
-- or {{#invoke:WikidataIB |checkvalue |val=Q5 |P31}} for the current page.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.checkvalue = function( frame )&lt;br /&gt;
	local args&lt;br /&gt;
	if frame.args.val then&lt;br /&gt;
		args = frame.args&lt;br /&gt;
	else&lt;br /&gt;
		args = frame:getParent().args&lt;br /&gt;
	end&lt;br /&gt;
	local val = args.val&lt;br /&gt;
	if not val then return nil end&lt;br /&gt;
	local pid = mw.text.trim(args.pid or args[1] or &amp;quot;P31&amp;quot;):upper()&lt;br /&gt;
	local qid = (args.qid or &amp;quot;&amp;quot;):upper()&lt;br /&gt;
	if pid:sub(1,1) ~= &amp;quot;P&amp;quot; then return nil end&lt;br /&gt;
	if qid:sub(1,1) ~= &amp;quot;Q&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then return nil end&lt;br /&gt;
	local ranks = setRanks(args.rank)&lt;br /&gt;
	local stats = {}&lt;br /&gt;
	if ranks.b then&lt;br /&gt;
		stats = mw.wikibase.getBestStatements(qid, pid)&lt;br /&gt;
	else&lt;br /&gt;
		stats = mw.wikibase.getAllStatements( qid, pid )&lt;br /&gt;
	end&lt;br /&gt;
	if not stats[1] then return nil end&lt;br /&gt;
	if stats[1].mainsnak.datatype == &amp;quot;wikibase-item&amp;quot; then&lt;br /&gt;
		for k, v in pairs( stats ) do&lt;br /&gt;
			local ms = v.mainsnak&lt;br /&gt;
			if ranks[v.rank:sub(1,1)] and ms.snaktype == &amp;quot;value&amp;quot; and ms.datavalue.value.id == val then&lt;br /&gt;
				return val&lt;br /&gt;
			end&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;
-------------------------------------------------------------------------------&lt;br /&gt;
-- url2 takes a parameter url= that is a proper url and formats it for use in an infobox.&lt;br /&gt;
-- If no parameter is supplied, it returns nothing.&lt;br /&gt;
-- This is the equivalent of Template:URL&lt;br /&gt;
-- but it keeps the &amp;quot;edit at Wikidata&amp;quot; pen icon out of the microformat.&lt;br /&gt;
-- Usually it will take its url parameter directly from a Wikidata call:&lt;br /&gt;
-- e.g. {{#invoke:WikidataIB |url2 |url={{wdib |P856 |qid=Q23317 |fwd=ALL |osd=no}} }}&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.url2 = function(frame)&lt;br /&gt;
	local txt = frame.args.url or &amp;quot;&amp;quot;&lt;br /&gt;
	if txt == &amp;quot;&amp;quot; then return nil end&lt;br /&gt;
	-- extract any icon&lt;br /&gt;
	local url, icon = txt:match(&amp;quot;(.+)&amp;amp;nbsp;(.+)&amp;quot;)&lt;br /&gt;
	-- make sure there&#039;s at least a space at the end&lt;br /&gt;
	url = (url or txt) .. &amp;quot; &amp;quot;&lt;br /&gt;
	icon = icon or &amp;quot;&amp;quot;&lt;br /&gt;
	-- extract any protocol like https://&lt;br /&gt;
	local prot = url:match(&amp;quot;(https*://).+[ \&amp;quot;\&#039;]&amp;quot;)&lt;br /&gt;
	-- extract address&lt;br /&gt;
	local addr = &amp;quot;&amp;quot;&lt;br /&gt;
	if prot then&lt;br /&gt;
		addr = url:match(&amp;quot;https*://(.+)[ \&amp;quot;\&#039;]&amp;quot;) or &amp;quot; &amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		prot = &amp;quot;//&amp;quot;&lt;br /&gt;
		addr = url:match(&amp;quot;[^%p%s]+%.(.+)[ \&amp;quot;\&#039;]&amp;quot;) or &amp;quot; &amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	-- strip trailing / from end of domain-only url and add &amp;lt;wbr/&amp;gt; before . and /&lt;br /&gt;
	local disp, n = addr:gsub( &amp;quot;^([^/]+)/$&amp;quot;, &amp;quot;%1&amp;quot; ):gsub(&amp;quot;%/&amp;quot;, &amp;quot;&amp;lt;wbr/&amp;gt;/&amp;quot;):gsub(&amp;quot;%.&amp;quot;, &amp;quot;&amp;lt;wbr/&amp;gt;.&amp;quot;)&lt;br /&gt;
	return &#039;&amp;lt;span class=&amp;quot;url&amp;quot;&amp;gt;[&#039; .. prot .. addr .. &amp;quot; &amp;quot; .. disp .. &amp;quot;]&amp;lt;/span&amp;gt;&amp;amp;nbsp;&amp;quot; .. icon&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getWebsite fetches the Official website (P856) and formats it for use in an infobox.&lt;br /&gt;
-- This is similar to Template:Official website but with a url displayed,&lt;br /&gt;
-- and it adds the &amp;quot;edit at Wikidata&amp;quot; pen icon beyond the microformat if enabled.&lt;br /&gt;
-- A local value will override the Wikidata value. &amp;quot;NONE&amp;quot; returns nothing.&lt;br /&gt;
-- e.g. {{#invoke:WikidataIB |getWebsite |qid= |noicon= |lang= |url= }}&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: findLang(); parseParam();&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getWebsite = function(frame)&lt;br /&gt;
	local url = frame.args.url or &amp;quot;&amp;quot;&lt;br /&gt;
	if url:upper() == &amp;quot;NONE&amp;quot; then return nil end&lt;br /&gt;
	local urls = {}&lt;br /&gt;
	local quals = {}&lt;br /&gt;
	local qid = frame.args.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	if url and url ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		urls[1] = url&lt;br /&gt;
	else&lt;br /&gt;
		if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
		if not qid then return nil end&lt;br /&gt;
&lt;br /&gt;
		local prop856 = mw.wikibase.getBestStatements(qid, &amp;quot;P856&amp;quot;)&lt;br /&gt;
		for k, v in pairs(prop856) do&lt;br /&gt;
			if v.mainsnak.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
				urls[#urls+1] = v.mainsnak.datavalue.value&lt;br /&gt;
				if v.qualifiers and v.qualifiers[&amp;quot;P1065&amp;quot;] then&lt;br /&gt;
					 -- just take the first archive url (P1065)&lt;br /&gt;
					local au = v.qualifiers[&amp;quot;P1065&amp;quot;][1]&lt;br /&gt;
					if au.snaktype == &amp;quot;value&amp;quot; then&lt;br /&gt;
						quals[#urls] = au.datavalue.value&lt;br /&gt;
					end -- test for archive url having a value&lt;br /&gt;
				end -- test for qualifers&lt;br /&gt;
			end -- test for website having a value&lt;br /&gt;
		end -- loop through website(s)&lt;br /&gt;
	end&lt;br /&gt;
	if #urls == 0 then return nil end&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for i, u in ipairs(urls) do&lt;br /&gt;
		local link = quals[i] or u&lt;br /&gt;
		local prot, addr = u:match(&amp;quot;(http[s]*://)(.+)&amp;quot;)&lt;br /&gt;
		addr = addr or u&lt;br /&gt;
		local disp, n = addr:gsub(&amp;quot;%.&amp;quot;, &amp;quot;&amp;lt;wbr/&amp;gt;%.&amp;quot;)&lt;br /&gt;
		out[#out+1] = &#039;&amp;lt;span class=&amp;quot;url&amp;quot;&amp;gt;[&#039; .. link .. &amp;quot; &amp;quot; .. disp .. &amp;quot;]&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local langcode = findLang(frame.args.lang).code&lt;br /&gt;
	local noicon = parseParam(frame.args.noicon, false)&lt;br /&gt;
	if url == &amp;quot;&amp;quot; and not noicon then&lt;br /&gt;
		out[#out] = out[#out] .. createicon(langcode, qid, &amp;quot;P856&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local ret = &amp;quot;&amp;quot;&lt;br /&gt;
	if #out &amp;gt; 1 then&lt;br /&gt;
		ret = mw.getCurrentFrame():expandTemplate{title = &amp;quot;ubl&amp;quot;, args = out}&lt;br /&gt;
	else&lt;br /&gt;
		ret = out[1]&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getAllLabels fetches the set of labels and formats it for display as wikitext.&lt;br /&gt;
-- It takes a parameter &#039;qid&#039; for arbitrary access, otherwise it uses the current page.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getAllLabels = function(frame)&lt;br /&gt;
	local args = frame.args or frame:getParent().args or {}&lt;br /&gt;
&lt;br /&gt;
	local qid = args.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid or not mw.wikibase.entityExists(qid) then return i18n[&amp;quot;entity-not-found&amp;quot;] end&lt;br /&gt;
&lt;br /&gt;
	local labels = mw.wikibase.getEntity(qid).labels&lt;br /&gt;
	if not labels then return i18n[&amp;quot;labels-not-found&amp;quot;] end&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k, v in pairs(labels) do&lt;br /&gt;
		out[#out+1] = v.value .. &amp;quot; (&amp;quot; .. v.language .. &amp;quot;)&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat(out, &amp;quot;; &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getAllDescriptions fetches the set of descriptions and formats it for display as wikitext.&lt;br /&gt;
-- It takes a parameter &#039;qid&#039; for arbitrary access, otherwise it uses the current page.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getAllDescriptions = function(frame)&lt;br /&gt;
	local args = frame.args or frame:getParent().args or {}&lt;br /&gt;
&lt;br /&gt;
	local qid = args.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid or not mw.wikibase.entityExists(qid) then return i18n[&amp;quot;entity-not-found&amp;quot;] end&lt;br /&gt;
&lt;br /&gt;
	local descriptions = mw.wikibase.getEntity(qid).descriptions&lt;br /&gt;
	if not descriptions then return i18n[&amp;quot;descriptions-not-found&amp;quot;] end&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k, v in pairs(descriptions) do&lt;br /&gt;
		out[#out+1] = v.value .. &amp;quot; (&amp;quot; .. v.language .. &amp;quot;)&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat(out, &amp;quot;; &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getAllAliases fetches the set of aliases and formats it for display as wikitext.&lt;br /&gt;
-- It takes a parameter &#039;qid&#039; for arbitrary access, otherwise it uses the current page.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.getAllAliases = function(frame)&lt;br /&gt;
	local args = frame.args or frame:getParent().args or {}&lt;br /&gt;
&lt;br /&gt;
	local qid = args.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid or not mw.wikibase.entityExists(qid) then return i18n[&amp;quot;entity-not-found&amp;quot;] end&lt;br /&gt;
&lt;br /&gt;
	local aliases = mw.wikibase.getEntity(qid).aliases&lt;br /&gt;
	if not aliases then return i18n[&amp;quot;aliases-not-found&amp;quot;] end&lt;br /&gt;
&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k1, v1 in pairs(aliases) do&lt;br /&gt;
		local lang = v1[1].language&lt;br /&gt;
		local val = {}&lt;br /&gt;
		for k1, v2 in ipairs(v1) do&lt;br /&gt;
			val[#val+1] = v2.value&lt;br /&gt;
		end&lt;br /&gt;
		out[#out+1] = table.concat(val, &amp;quot;, &amp;quot;) .. &amp;quot; (&amp;quot; .. lang .. &amp;quot;)&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat(out, &amp;quot;; &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- showNoLinks displays the article titles that should not be linked.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
p.showNoLinks = function(frame)&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k, v in pairs(donotlink) do&lt;br /&gt;
		out[#out+1] = k&lt;br /&gt;
	end&lt;br /&gt;
	table.sort( out )&lt;br /&gt;
	return table.concat(out, &amp;quot;; &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- checkValidity checks whether the first unnamed parameter represents a valid entity-id,&lt;br /&gt;
-- that is, something like Q1235 or P123.&lt;br /&gt;
-- It returns the strings &amp;quot;true&amp;quot; or &amp;quot;false&amp;quot;.&lt;br /&gt;
-- Change false to nil to return &amp;quot;true&amp;quot; or &amp;quot;&amp;quot; (easier to test with #if:).&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: none&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
function p.checkValidity(frame)&lt;br /&gt;
	local id = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	if mw.wikibase.isValidEntityId(id) then&lt;br /&gt;
		return true&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getEntityFromTitle returns the Entity-ID (Q-number) for a given title.&lt;br /&gt;
-- Modification of Module:ResolveEntityId&lt;br /&gt;
-- The title is the first unnamed parameter.&lt;br /&gt;
-- The site parameter determines the site/language for the title. Defaults to current wiki.&lt;br /&gt;
-- The showdab parameter determines whether dab pages should return the Q-number or nil. Defaults to true.&lt;br /&gt;
-- Returns the Q-number or nil if it does not exist.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
function p.getEntityFromTitle(frame)&lt;br /&gt;
	local args=frame.args&lt;br /&gt;
	if not args[1] then args=frame:getParent().args end&lt;br /&gt;
	if not args[1] then return nil end&lt;br /&gt;
	local title = mw.text.trim(args[1])&lt;br /&gt;
	local site = args.site or &amp;quot;&amp;quot;&lt;br /&gt;
	local showdab = parseParam(args.showdab, true)&lt;br /&gt;
	local qid = mw.wikibase.getEntityIdForTitle(title, site)&lt;br /&gt;
	if qid then&lt;br /&gt;
		local prop31 = mw.wikibase.getBestStatements(qid, &amp;quot;P31&amp;quot;)[1]&lt;br /&gt;
		if not showdab and prop31 and prop31.mainsnak.datavalue.value.id == &amp;quot;Q4167410&amp;quot; then&lt;br /&gt;
			return nil&lt;br /&gt;
		else&lt;br /&gt;
			return qid&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- getDatePrecision returns the number representing the precision of the first best date value&lt;br /&gt;
-- for the given property.&lt;br /&gt;
-- It takes the qid and property ID&lt;br /&gt;
-- The meanings are given at https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times&lt;br /&gt;
-- 0 = 1 billion years .. 6 = millennium, 7 = century, 8 = decade, 9 = year, 10 = month, 11 = day&lt;br /&gt;
-- Returns 0 (or the second unnamed parameter) if the Wikidata does not exist.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- Dependencies: parseParam; sourced;&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
function p.getDatePrecision(frame)&lt;br /&gt;
	local args=frame.args&lt;br /&gt;
	if not args[1] then args=frame:getParent().args end&lt;br /&gt;
	local default = tonumber(args[2] or args.default) or 0&lt;br /&gt;
	local prop = mw.text.trim(args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	if prop == &amp;quot;&amp;quot; then return default end&lt;br /&gt;
	local qid = args.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then qid = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if not qid then return default end&lt;br /&gt;
	local onlysrc = parseParam(args.onlysourced or args.osd, true)&lt;br /&gt;
	local stat = mw.wikibase.getBestStatements(qid, prop)&lt;br /&gt;
	for i, v in ipairs(stat) do&lt;br /&gt;
		local prec = (onlysrc == false or sourced(v))&lt;br /&gt;
			and v.mainsnak.datavalue&lt;br /&gt;
			and v.mainsnak.datavalue.value&lt;br /&gt;
			and v.mainsnak.datavalue.value.precision&lt;br /&gt;
		if prec then return prec end&lt;br /&gt;
	end&lt;br /&gt;
	return default&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
-- List of exported functions&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
--[[&lt;br /&gt;
_getValue&lt;br /&gt;
getValue&lt;br /&gt;
getPreferredValue&lt;br /&gt;
getCoords&lt;br /&gt;
getQualifierValue&lt;br /&gt;
getSumOfParts&lt;br /&gt;
getValueByQual&lt;br /&gt;
getValueByLang&lt;br /&gt;
getValueByRefSource&lt;br /&gt;
getPropertyIDs&lt;br /&gt;
getQualifierIDs&lt;br /&gt;
getPropOfProp&lt;br /&gt;
getAwardCat&lt;br /&gt;
getIntersectCat&lt;br /&gt;
getGlobe&lt;br /&gt;
getCommonsLink&lt;br /&gt;
getSiteLink&lt;br /&gt;
getLink&lt;br /&gt;
getLabel&lt;br /&gt;
label&lt;br /&gt;
getAT&lt;br /&gt;
getDescription&lt;br /&gt;
getAliases&lt;br /&gt;
pageId&lt;br /&gt;
formatDate&lt;br /&gt;
location&lt;br /&gt;
checkBlacklist&lt;br /&gt;
emptyor&lt;br /&gt;
labelorid&lt;br /&gt;
getLang&lt;br /&gt;
getItemLangCode&lt;br /&gt;
findLanguage&lt;br /&gt;
getQID&lt;br /&gt;
followQid&lt;br /&gt;
globalSiteID&lt;br /&gt;
siteID&lt;br /&gt;
projID&lt;br /&gt;
formatNumber&lt;br /&gt;
examine&lt;br /&gt;
checkvalue&lt;br /&gt;
url2&lt;br /&gt;
getWebsite&lt;br /&gt;
getAllLabels&lt;br /&gt;
getAllDescriptions&lt;br /&gt;
getAllAliases&lt;br /&gt;
showNoLinks&lt;br /&gt;
checkValidity&lt;br /&gt;
getEntityFromTitle&lt;br /&gt;
getDatePrecision&lt;br /&gt;
--]]&lt;br /&gt;
-------------------------------------------------------------------------------&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Template:Infobox_company&amp;diff=22898</id>
		<title>Template:Infobox company</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Template:Infobox_company&amp;diff=22898"/>
		<updated>2025-07-24T14:56:06Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: 1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox&lt;br /&gt;
| bodyclass = ib-company vcard&lt;br /&gt;
| templatestyles = Infobox company/styles.css&lt;br /&gt;
&lt;br /&gt;
| child = {{lc:{{{embed}}}}}&lt;br /&gt;
| decat = yes&lt;br /&gt;
&lt;br /&gt;
| titleclass = fn org&lt;br /&gt;
| titlestyle = font-size: 125%;&lt;br /&gt;
| title = {{#ifeq:{{lc:{{{embed}}}}} | yes | &#039;&#039;&#039;Company&#039;&#039;&#039; | {{#if:{{{name|}}} | {{{name}}} | {{#if:{{{company_name|}}}|{{{company_name}}}|&amp;lt;includeonly&amp;gt;{{PAGENAMEBASE}}&amp;lt;/includeonly&amp;gt;}} }} }}&lt;br /&gt;
&lt;br /&gt;
| imageclass = ib-company-logo logo&lt;br /&gt;
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{#ifeq:{{lc:{{{embed}}}}} | yes | {{{logo|{{{company_logo|}}}}}} |{{#invoke:WikidataIB |getValue |rank=best |P154 |name=logo |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=no |noicon=yes |maxvals=1 |{{{logo|{{{company_logo|}}}}}} }} }} |size={{{logo_size|}}} |sizedefault=frameless |upright={{{logo_upright|1}}} |alt={{{logo_alt|{{{alt|}}}}}} |class= {{{logo_class|}}} }}&lt;br /&gt;
| caption = {{{logo_caption|}}}&lt;br /&gt;
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|}}} }}&lt;br /&gt;
| caption2 = {{{image_caption|}}}&lt;br /&gt;
&lt;br /&gt;
| label1  = {{longitem|[[Trade name]]}}&lt;br /&gt;
|  data1  = {{{trade_name|{{{trading_name|}}}}}}&lt;br /&gt;
&lt;br /&gt;
| label2  = {{longitem|Native name}}&lt;br /&gt;
|  data2  = {{#if:{{{native_name|}}} | {{#if:{{{native_name_lang|}}} | {{lang|{{{native_name_lang}}}|{{{native_name}}} }} | {{{native_name}}} }} }}&lt;br /&gt;
&lt;br /&gt;
| label3  = {{longitem|[[Romanization|Romanized]] name}}&lt;br /&gt;
|  data3  = {{{romanized_name|}}}&lt;br /&gt;
&lt;br /&gt;
| label4  = Formerly&lt;br /&gt;
| class4  = nickname&lt;br /&gt;
|  data4  = {{{former_names|{{{former_name|}}}}}}&lt;br /&gt;
&lt;br /&gt;
| label5  = Company type&lt;br /&gt;
| class5  = category&lt;br /&gt;
|  data5  = {{{type|{{{company_type|}}}}}}&lt;br /&gt;
&lt;br /&gt;
| label6  = {{longitem|[[Ticker symbol|Traded as]]}}&lt;br /&gt;
|  data6  = {{{traded_as|}}}&lt;br /&gt;
&lt;br /&gt;
| label7  = [[International Securities Identification Number|ISIN]]&lt;br /&gt;
|  data7  = {{#invoke:WikidataIB |getValue |rank=best |P946 |name=ISIN |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{ISIN|}}} }}&lt;br /&gt;
&lt;br /&gt;
| label8  = Industry&lt;br /&gt;
| class8  = category&lt;br /&gt;
|  data8  = {{#invoke:WikidataIB |getValue |rank=best |P452 |name=industry |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{industry|}}} }}&lt;br /&gt;
&lt;br /&gt;
| label9  = Genre&lt;br /&gt;
| class9  = category&lt;br /&gt;
|  data9  = {{{genre|}}}&lt;br /&gt;
&lt;br /&gt;
| label10 = Predecessor{{#if:{{{predecessors|}}}|s}}&lt;br /&gt;
|  data10 = {{#invoke:WikidataIB |getValue |rank=best |P155 |name=predecessor |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{predecessors|{{{predecessor|}}}}}} }}&lt;br /&gt;
&lt;br /&gt;
| label11 = Incorporated&lt;br /&gt;
|  data11 = {{#invoke:WikidataIB |getValue |rank=best |P1001 |name=incorporated |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{incorporated|{{{incorporation|}}}}}} }}&lt;br /&gt;
&lt;br /&gt;
| label12 = Founded&lt;br /&gt;
|  data12 = {{#invoke:WikidataIB |getValue |rank=best |P571 |name=founded |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{founded|{{{foundation|}}}}}} }}&lt;br /&gt;
&lt;br /&gt;
| label13 = Founder{{#if:{{{founders|}}}|s}}&lt;br /&gt;
| class13 = agent&lt;br /&gt;
|  data13 = {{#invoke:WikidataIB |getValue |rank=best |P112 |name=founder |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{founders|{{{founder|}}}}}} }}&lt;br /&gt;
&lt;br /&gt;
| label14 = Defunct&lt;br /&gt;
|  data14 = {{#invoke:WikidataIB |getValue |rank=best |P576 |name=defunct |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{defunct|{{{dissolved|}}}}}} }}&lt;br /&gt;
&lt;br /&gt;
| label15 = Fate&lt;br /&gt;
|  data15 = {{{fate|}}}&lt;br /&gt;
&lt;br /&gt;
| label16 = Successor{{#if:{{{successors|}}}|s}}&lt;br /&gt;
|  data16 = {{#invoke:WikidataIB |getValue |rank=best |P156 |name=successor |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes |{{{successors|{{{successor|}}}}}} }}&lt;br /&gt;
&lt;br /&gt;
| label17 = Headquarters&lt;br /&gt;
| class17 = {{#if:{{{hq_location|{{{location|}}}}}} | label | adr}}&lt;br /&gt;
|  data17 = {{#if:{{{hq_location|{{{location|}}}}}}{{{hq_location_city|{{{location_city|}}}}}}{{{hq_location_country|{{{location_country|}}}}}}&lt;br /&gt;
            | {{Comma separated entries&lt;br /&gt;
                | 1 = {{{hq_location|{{{location|}}}}}}&lt;br /&gt;
                | 2 = {{#if:{{{hq_location_city|}}}{{{location_city|}}} |&amp;lt;div class=&amp;quot;ib-company-locality locality&amp;quot;&amp;gt;{{#if:{{{hq_location_city|}}}{{{location_city|}}} | {{{hq_location_city|{{{location_city|}}}}}} | }}&amp;lt;/div&amp;gt;}}&lt;br /&gt;
                | 3 = {{#if:{{{hq_location_country|}}}{{{location_country|}}} |&amp;lt;div class=&amp;quot;ib-company-country country-name&amp;quot;&amp;gt;{{#if:{{{hq_location_country|}}}{{{location_country|}}} | {{{hq_location_country|{{{location_country|}}}}}} | }}&amp;lt;/div&amp;gt;}}&lt;br /&gt;
              }}&lt;br /&gt;
            | {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}{{#invoke:WikidataIB |getValue |rank=best |P17 |name=hq_location_country |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}&lt;br /&gt;
              | {{Comma separated entries&lt;br /&gt;
                | 1 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P159 |name=hq_location_city |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }} |&amp;lt;div class=&amp;quot;ib-company-locality locality&amp;quot;&amp;gt;{{#invoke:WikidataIB |getValue |rank=best |P159 |name=headquarters location |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}&amp;lt;/div&amp;gt;}}&lt;br /&gt;
                | 2 = {{#if:{{#invoke:WikidataIB |getValue |rank=best |P17 |name=countrry |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }} |&amp;lt;div class=&amp;quot;ib-company-country country-name&amp;quot;&amp;gt;{{#invoke:WikidataIB |getValue |rank=best |P17 |name=hq_location_country |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 }}&amp;lt;/div&amp;gt;}}&lt;br /&gt;
                }}&lt;br /&gt;
              }}&lt;br /&gt;
            }}&lt;br /&gt;
&lt;br /&gt;
| label19 = {{longitem|Number of locations}}&lt;br /&gt;
|  data19 = {{#if:{{{num_locations|{{{locations|}}}}}} | {{{num_locations|{{{locations|}}}}}}{{#if:{{{num_locations_year|}}} | &amp;amp;nbsp;({{{num_locations_year}}}) }} }}&lt;br /&gt;
&lt;br /&gt;
| label20 = {{longitem|Area{{#if:{{{areas_served|}}}|s}} served}}&lt;br /&gt;
|  data20 = {{{areas_served|{{{area_served|}}}}}}&lt;br /&gt;
&lt;br /&gt;
| label21 = {{longitem|Key people}}&lt;br /&gt;
| class21 = agent&lt;br /&gt;
|  data21 = {{{key_people|}}}&lt;br /&gt;
&lt;br /&gt;
| label22 = Products&lt;br /&gt;
|  data22 = {{{products|}}}&lt;br /&gt;
&lt;br /&gt;
| label23 = {{longitem|Production output}}&lt;br /&gt;
|  data23 = {{#if:{{{production|}}} | {{{production|}}}{{#if:{{{production_year|}}} | &amp;amp;nbsp;({{{production_year}}}) }} }}&lt;br /&gt;
&lt;br /&gt;
| label24 = Brands&lt;br /&gt;
|  data24 = {{{brands|}}}&lt;br /&gt;
&lt;br /&gt;
| label25 = Services&lt;br /&gt;
| class25 = category&lt;br /&gt;
|  data25 = {{{services|}}}&lt;br /&gt;
&lt;br /&gt;
| label26 = Revenue&lt;br /&gt;
|  data26 = {{#invoke:WikidataIB |getValue |rank=best |P2139 |name=revenue |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{revenue|}}}{{#if:{{{revenue_year|}}} | &amp;amp;nbsp;({{{revenue_year}}}) }} }}&lt;br /&gt;
&lt;br /&gt;
| label27 = {{longitem|[[Earnings before interest and taxes|Operating income]]}}&lt;br /&gt;
|  data27 = {{#invoke:WikidataIB |getValue |rank=best |P3362 |name=operating_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{operating_income|}}}{{#if:{{{income_year|}}} | &amp;amp;nbsp;({{{income_year}}}) }} }}&lt;br /&gt;
&lt;br /&gt;
| label28 = {{longitem|[[Net income]]}}&lt;br /&gt;
|  data28 = {{#invoke:WikidataIB |getValue |rank=best |P2295 |name=net_income |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{net_income|{{{profit|}}}}}}{{#if:{{{net_income_year|{{{profit_year|}}}}}} | &amp;amp;nbsp;({{{net_income_year|{{{profit_year|}}}}}}) }} }}&lt;br /&gt;
&lt;br /&gt;
| label29 = [[Assets under management|AUM]]&lt;br /&gt;
|  data29 = {{{aum|}}}&lt;br /&gt;
&lt;br /&gt;
| label30 = {{nowrap|[[Asset|Total assets]]}}&lt;br /&gt;
|  data30 = {{#invoke:WikidataIB |getValue |rank=best |P2403 |name=assets |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{assets|}}}{{#if:{{{assets_year|}}} | &amp;amp;nbsp;({{{assets_year}}}) }} }}&lt;br /&gt;
&lt;br /&gt;
| label31 = {{nowrap|[[Equity (finance)|Total equity]]}}&lt;br /&gt;
|  data31 = {{#if:{{{equity|}}} | {{{equity}}}{{#if:{{{equity_year|}}} | &amp;amp;nbsp;({{{equity_year}}})}} }}&lt;br /&gt;
&lt;br /&gt;
| label32 = Owner{{#if:{{{owners|}}}|s}}&lt;br /&gt;
|  data32 = {{{owners|{{{owner|}}}}}}&lt;br /&gt;
&lt;br /&gt;
| label33 = Members&lt;br /&gt;
|  data33 = {{#if:{{{members|}}} | {{{members}}}{{#if:{{{members_year|}}} | &amp;amp;nbsp;({{{members_year}}})}} }}&lt;br /&gt;
&lt;br /&gt;
| label34 = {{longitem|Number of employees}}&lt;br /&gt;
|  data34 = {{#invoke:WikidataIB |getValue |rank=best |P1128 |name=num_employees |qual=P585 |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |maxvals=1 |{{{num_employees|}}}{{#if:{{{num_employees_year|}}} | &amp;amp;nbsp;({{{num_employees_year}}}) }} }}&lt;br /&gt;
&lt;br /&gt;
| label35 = [[Parent company|Parent]]&lt;br /&gt;
|  data35 = {{#ifeq:{{{owners|}}}{{{owner|}}}{{{parent|}}} || {{#invoke:WikidataIB |getValue |rank=best |P749 |name=parent |qid={{{qid|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced=yes |noicon={{{noicon|no}}} |sep=&amp;quot;&amp;lt;br /&amp;gt;&amp;quot; |sorted=yes }} | {{{parent|}}} }}&lt;br /&gt;
&lt;br /&gt;
| label36 = [[Division (business)|Divisions]]&lt;br /&gt;
|  data36 = {{{divisions|}}}&lt;br /&gt;
&lt;br /&gt;
| label37 = [[Subsidiary|Subsidiaries]]&lt;br /&gt;
|  data37 = {{{subsid|}}}&lt;br /&gt;
&lt;br /&gt;
|  data39 = {{{module|}}}&lt;br /&gt;
&lt;br /&gt;
| label40 = [[Basel III|Capital ratio]]&lt;br /&gt;
|  data40 = {{{ratio|}}}&lt;br /&gt;
&lt;br /&gt;
| label41 = Rating&lt;br /&gt;
|  data41 = {{{rating|}}}&lt;br /&gt;
&lt;br /&gt;
| label42 = Website&lt;br /&gt;
|  data42 = {{#if:{{{website|{{{homepage|}}}}}} |{{{website|{{{homepage|}}}}}} |{{#invoke:WikidataIB |url2 |url={{#invoke:WikidataIB |getValue |rank=best |P856 |name=website |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=yes |maxvals=1}} }} }}&lt;br /&gt;
&lt;br /&gt;
| below = {{#if:{{{footnotes|}}} | &#039;&#039;&#039;Footnotes{{\}}references&#039;&#039;&#039;{{break}}{{{footnotes}}} }}&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;!-- Tracking categories:&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{main other|{{#if:{{{trading_name|}}}|[[Category:Pages using infobox company using trading name]]&lt;br /&gt;
}}{{#ifeq:{{{logo|{{{company_logo|{{wikidata|property|raw|P154}}}}}}}}|{{{logo|{{{company_logo|}}}}}}||[[Category:Pages using infobox company with a logo from wikidata]]&lt;br /&gt;
}}{{#if:{{{image|}}}|{{#ifeq:{{#invoke:string|replace|{{{image|}}}| |_}}|{{#invoke:string|replace|{{{logo|{{{company_logo|{{wikidata|property|raw|P154}}}}}}}}| |_}}|[[Category:Pages using infobox company with a duplicate image]]|}}|}}&lt;br /&gt;
}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#invoke:Check for clobbered parameters|check|nested=1|template=Infobox company|cat={{main other|Category:Pages using infobox company with conflicting parameters}}|name; company_name|logo; company_logo|logo_alt; alt|trade_name; trading_name|former_names; former_name|type; company_type|predecessors; predecessor|successors; successor|foundation; founded|founders; founder|defunct; dissolved|hq_location; location|hq_location_city; location_city|hq_location_country; location_country|num_locations; locations|areas_served; area_served|net_income; profit|net_income_year; profit_year|owners; owner |homepage; website&lt;br /&gt;
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox company with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox company]] with unknown parameter &amp;quot;_VALUE_&amp;quot; | ignoreblank=y | alt | area_served | areas_served | assets | assets_year | aum | brands | company_logo | company_name | company_type | defunct | dissolved | divisions | embed | equity | equity_year | fate | footnotes | former_name | former_names | foundation | founded | founder | founders | genre | homepage | hq_location | hq_location_city | hq_location_country | incorporated | image | image_alt | image_caption | image_size | image_upright | income_year | industry | ISIN | key_people | location | location_city | location_country | locations | logo | logo_alt | logo_caption | logo_class | logo_size | logo_upright | members | members_year | module | name | native_name | native_name_lang | net_income | net_income_year | num_employees | num_employees_year | num_locations | num_locations_year | operating_income | owner | owners | parent | predecessor | predecessors | production | production_year | products | profit | profit_year | rating | ratio | revenue | revenue_year | romanized_name | services | subsid | successor | successors | traded_as | trade_name | trading_name | type | website| qid | fetchwikidata | suppressfields | noicon | nocat | demo | categories }}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22896</id>
		<title>Volkswagen</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Volkswagen&amp;diff=22896"/>
		<updated>2025-07-24T14:53:16Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox company&lt;br /&gt;
| name = Volkswagen&lt;br /&gt;
| logo = Volkswagen logo 2019.svg&lt;br /&gt;
| logo_size = 150&lt;br /&gt;
| fate = &lt;br /&gt;
| type = [[Division (business)|Division]]&lt;br /&gt;
| foundation = {{Start date and age|df=y|1937|05|28}}&lt;br /&gt;
| location_city = [[Wolfsburg]]&lt;br /&gt;
| location_country = Germany&lt;br /&gt;
| founder = [[German Labour Front]]&lt;br /&gt;
| area_served = Worldwide&lt;br /&gt;
| key_people = Thomas Schäfer (CEO, Volkswagen Passenger Cars)&lt;br /&gt;
| industry = [[Automotive industry|Automotive]]&lt;br /&gt;
| revenue = &lt;br /&gt;
| revenue_year = &lt;br /&gt;
| profit = &lt;br /&gt;
| profit_year = &lt;br /&gt;
| num_employees = &lt;br /&gt;
| num_employees_year = &lt;br /&gt;
| parent = [[Volkswagen Group]]&lt;br /&gt;
| subsid = &lt;br /&gt;
| homepage = {{URL|https://www.vw.com/en.html|vw.com}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Volkswagen is an automaker.&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=Type_1&amp;diff=22895</id>
		<title>Type 1</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=Type_1&amp;diff=22895"/>
		<updated>2025-07-24T14:32:00Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: /* The KdF Wagen and a new factory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox automobile&lt;br /&gt;
| name = Beetle&lt;br /&gt;
| image = 1949 VW Typ 11 Exportmodell.jpg&lt;br /&gt;
| caption = 1949 Beetle Type 11 (Export Model)&lt;br /&gt;
| manufacturer = [[Volkswagen]]&lt;br /&gt;
| aka = {{plainlist|&lt;br /&gt;
* Beetle&lt;br /&gt;
* Bug&lt;br /&gt;
* [[Super Beetle]]&lt;br /&gt;
* [[1200]]/[[1300]]/[[1302]]/[[1303]]/[[1500]]&lt;br /&gt;
* Käfer&lt;br /&gt;
* Carocha&lt;br /&gt;
* Coccinelle&lt;br /&gt;
* Fusca&lt;br /&gt;
* Vocho}}&lt;br /&gt;
| designer = [[Ferdinand Porsche]]&lt;br /&gt;
| production = 1938–2003: 21,529,464 built&lt;br /&gt;
| variants = {{plainlist|&lt;br /&gt;
* [[1200]]&lt;br /&gt;
* [[1300]]&lt;br /&gt;
* [[1302]]/[[1303]]}}&lt;br /&gt;
| derivatives = {{plainlist|&lt;br /&gt;
* [[Karmann Ghia]] (Type 14)&lt;br /&gt;
* [[Type 181|VW Thing / Trekker]] (Type 181/182)&lt;br /&gt;
* [[Kübelwagen]] (Type 82)&lt;br /&gt;
* [[Kommandeurswagen]] (Type 87)&lt;br /&gt;
* [[Schwimmwagen]] (Types 128 and 166)&lt;br /&gt;
* [[Transporter]] (Type 2)&lt;br /&gt;
* [[Type 3|1500/1600]] (Type 3)&lt;br /&gt;
* [[Type 4|411/412]] (Type 4)&lt;br /&gt;
* [[Brasília|Brasília / Igala]] (Type 321)&lt;br /&gt;
* [[Meyers Manx]]&lt;br /&gt;
* [[Fiberfab Avenger GT]]&lt;br /&gt;
* [[Porsche 356]]}}&lt;br /&gt;
| engine = {{plainlist|&lt;br /&gt;
* 1100 cc [[Type 1 engine|Type 1 H4]] (1938-1953)&lt;br /&gt;
* 1200 cc [[Type 1 engine|Type 1 H4]] (1954-1965)&lt;br /&gt;
* 1300 cc [[Type 1 engine|Type 1 H4]] (1966)&lt;br /&gt;
* 1500 cc [[Type 1 engine|Type 1 H4]] (1967-1970)&lt;br /&gt;
* 1600 cc Single-port [[Type 1 engine|Type 1 H4]] (1970 option)&lt;br /&gt;
* 1600 cc Dual-port [[Type 1 engine|Type 1 H4]] (1971-2003)}}&lt;br /&gt;
| transmission = {{plainlist|&lt;br /&gt;
*4-speed [[manual transmission|manual]] transaxle&lt;br /&gt;
*4-speed [[Semi-automatic transmission|semi-automatic]]; &#039;&#039;[[Saxomat]]&#039;&#039; (from 1961)&lt;br /&gt;
*3-speed [[Semi-automatic transmission|semi-automatic]]; &#039;&#039;[[Autostick]]&#039;&#039; (1967–1976)}}&lt;br /&gt;
| wheelbase = {{convert|2400|mm|in|1|abbr=on}}&lt;br /&gt;
}}&lt;br /&gt;
The &#039;&#039;&#039;Type 1&#039;&#039;&#039;—also known as the &#039;&#039;&#039;Beetle&#039;&#039;&#039;, is an economy car that was manufactured and marketed by Volkswagen (VW) from 1938 until 2003.&lt;br /&gt;
&lt;br /&gt;
It was designed by [[Ferdinand Porsche]] and features an air cooled rear-engine, two door coupe or cabriolet body-on-chassis design.&lt;br /&gt;
&lt;br /&gt;
= History =&lt;br /&gt;
=== Josef Ganz&#039;s &amp;quot;Maikäfer&amp;quot; and the Standard Superior ===&lt;br /&gt;
[[File:Maikaefer CentralGarage-1.jpg|thumb|left|Josef Ganz&#039;s Maikäfer prototype as it is today.]]&lt;br /&gt;
The idea of a &amp;quot;people&#039;s car&amp;quot; can traced as far back as 1923, when a young Jewish Hungarian engineering student named [[Josef Ganz]] began sketching concepts for a &amp;quot;car for the masses.&amp;quot; Ganz&#039;s design featured a mid-mounted engine, independent  suspension and a streamlined body.&lt;br /&gt;
&lt;br /&gt;
Being a student, Ganz did not have the funding to produce a prototype of his design, but instead began submitting articles on automotive design for various publications. Shortly after completing his studies in 1927, Ganz was hired as editor-in-chief of Klein-Motor-Sport (later renamed Motor-Kritik), where he continued to write articles promoting progressive design and the creation of a car for the average citizen.&lt;br /&gt;
&lt;br /&gt;
In 1929, Josef Ganz contacted motorcycle manufacturers [[Zündapp]], Ardie and DKW with assistance to build a prototype of his concept. The first prototype, the Ardie-Ganz, was built at Ardie in 1930 and a second one was completed at Adler in 1931, which was nicknamed the Maikäfer (‘May-Beetle&#039;).&lt;br /&gt;
&lt;br /&gt;
Production of the first car based on Josef Ganz&#039;s designs and patents began in 1933. The Standard Superior, built by Standard Fahrzeugfabrik, featured a body-on-tubular chassis, 2-stroke air cooled mid-engine, and independent suspension with rear swing-axles. This car was advertised as the German &amp;quot;Volkswagen,&amp;quot; or &amp;quot;people&#039;s car,&amp;quot; pre-dating the incorporation of [[Volkswagenwerk GmbH]] in 1937. Superior production ceased in 1935.&lt;br /&gt;
&lt;br /&gt;
Due to the antisemitic policies of the Nazi Party, Ganz&#039;s influence on the development of the Beetle was largely forgotten and has often been left out of official Volkswagen history. His contribution is still widely debated to this day.&lt;br /&gt;
&lt;br /&gt;
=== Ferdinand Porsche&#039;s prototypes ===&lt;br /&gt;
[[File:Zundapp.jpg|thumb|left|Porsche Type 12]]&lt;br /&gt;
In 1931, Zündapp requested Austrian engineer [[Ferdinand Porsche]] design and build a prototype for an &amp;quot;everyman&#039;s automobile.&amp;quot; This led to the development of three prototypes (two saloons and one coupe) known as the [[Porsche Type 12]]. These prototypes features a U-channel center beam chassis, leaf spring suspension, worm-gear steering and hydraulic drum brakes. The drivetrain consisted of a Zündapp-built five-cylinder radial engine (as opposed to Porsche&#039;s preferred [[flat-four engine]]) and a combined gearbox differential transmission joined by a  wet single disc clutch. The Type 12 laid the basic design foundation for what would eventually become the Beetle.&lt;br /&gt;
&lt;br /&gt;
In 1932, Porsche was contacted by [[NSU Motorenwerke]] to design and build a prototype automobile. NSU wished to return to manufacturing cars after a period of exclusively building motorcycles. While Zündapp has requested use of their radial engine, NSU placed no such restrictions and gave Porsche full control of development. This resulted in the construction of three prototypes, with two different body styles, called the [[Type 32]]. These prototypes featured the rear air-cooled flat-four engine, central tube frame, front axle, rear swing axle and torsion bar suspension that would become quite familiar to Volkswagen owners in the subsequent decades.&lt;br /&gt;
&lt;br /&gt;
=== Adolf Hitler ===&lt;br /&gt;
In 1924, a young Adolf Hitler spent nine months in Landsberg Prison as a result of his Nazi Party&#039;s failed coup the year prior. While serving his sentence, Hitler read several books about Henry Ford&#039;s development of mass production techniques. Hitler showed great interest in automobiles, despite never having learned to drive. The future chancellor came to admire Ford and made it among his political ambitions to bring affordable transportation to the people of Germany in the same manner which Ford had done in the United States.&lt;br /&gt;
&lt;br /&gt;
Upon Hitler&#039;s rise to power in 1933, the German auto industry was limited to luxury models, which few Germans could afford. Only one German out of 50 owned a car. The newly appointed chancellor began to form plans to utilize state resources to develop an affordable automobile. At the 1933 Berlin Auto Show, he viewed a presentation of the Standard Superior by Josef Ganz. Hitler was quite impressed with the revolutionary design and low price of the Superior. Ganz, however, was arrested by the Gestapo shortly thereafter on falsified charges of blackmailing the German automotive industry. Ganz was eventually released and quickly fled Germany.&lt;br /&gt;
&lt;br /&gt;
In May 1934, at a meeting at Berlin&#039;s Kaiserhof Hotel, Hitler outlined his request for a basic vehicle that could transport two adults and three children at 100 km/h while not using more than 7 litres of fuel per 100 km. The engine had to be powerful enough for sustained cruising on Germany&#039;s Autobahn, which was under construction at the time. Parts needed to be widely available and quickly and affordably exchanged. The engine had to be air-cooled to avoid radiators freezing during the winter months. It&#039;s platform must be easily adapted to a variety of uses, including military applications. This &amp;quot;People&#039;s Car&amp;quot; was to be made available to citizens of Germany through a stamp booklet savings plan, for under 1000 Reichsmarks. (At the time, the average weekly income was around 32 Reichsmarks.)&lt;br /&gt;
&lt;br /&gt;
By June 1934, Hitler had assigned the task of development to Ferdinand Porsche. A design team was quickly assembled which included future Porsche designers Erwin Komenda and Karl Rabe. By October 1935, two prototypes known as, a sedan (V1) and convertible (V2), were complete and ready for testing. By 1936, three more prototypes (V3) were finished. These cars were designated [[Type 60]] and built by hand in Porsche&#039;s [[Stuttgart]] workshop.&lt;br /&gt;
&lt;br /&gt;
Hitler was impressed with the V3 prototype at the Berlin Auto Show and immediately ordered that it enter production. The Reichsverband der Deutsche Automobilindustrie, a special interest group representing German automakers, immediately pushed back against further development, seeing the low cost of the car as a threat to their business. This in turn caused Hitler to declare the project a wholly state-run enterprise of the national labor union, Deutsche Arbeitsfront.&lt;br /&gt;
&lt;br /&gt;
A further thirty development models, known as V30, were produced for Porsche by Daimler-Benz. These vehicles underwent demanding tests through a variety of terrain and environmental conditions. Overall, these cars were subjected to a combined 1.8 million miles over the course of 1937. Though lacking a rear window, all V30s shared the distinctive round shape and the air-cooled, rear-mounted engine of final production models.&lt;br /&gt;
&lt;br /&gt;
The final design added a split rear windshield. In 1938, 44 pre-production models known as the [[VW38]] were built by hand in Stuttgart. The  very first convertible model from this batch (chassis 38/31) was presented to Hitler as a gift. Fifty more cars followed in 1939 ([[VW39]]), and though still hand-built, some parts utilized the new stamping dies built for production.&lt;br /&gt;
&lt;br /&gt;
=== The KdF Wagen and a new factory ===&lt;br /&gt;
[[File:Cornerstone ceremony 1938.jpg|right|thumb|Laying the cornerstone on May 26, 1938]]&lt;br /&gt;
By 1937, it was decided that a new factory was needed for production of the &amp;quot;people&#039;s car.&amp;quot; Land was seized in Northern Germany, along the banks of the Mitteland Canal in the village of Fallersleben. Construction of the new factory began in February 1938.&lt;br /&gt;
&lt;br /&gt;
On May 26, 1938, a cornerstone-laying ceremony was held at the site of the new factory with typical Nazi-party fanfare and propaganda photo-ops. In the speech given by Adolf Hitler, he announced the new automobile to be built on the site will be named &amp;quot;Kraft-durch-Freude-Wagen&amp;quot; (&amp;quot;Strength Through Joy Car,&amp;quot; abbreviated to KdF-Wagen) after the leisure organization operated by Deutsche Arbeitsfront. He also outlined his plan for construction of a grand factory city known as &amp;quot;Stadt des KdF-Wagens bei Fallersleben&amp;quot; (&amp;quot;City of the Strength Through Joy car at Fallersleben&amp;quot;) to be built on the southern side of the canal.&lt;br /&gt;
&lt;br /&gt;
Production of the KdF Wagen was scheduled to begin in the Autumn of 1939. Nazi propaganda claimed the new factory was expected to produce 500,000 vehicles per year, all for the benefit of the German people. However, only about 200 vehicles were produced prior to the outbreak of war. Most of these early production vehicles were given to Nazi Party officials and few, if any, citizens received their car through the stamp-booklet savings plan.&lt;br /&gt;
&lt;br /&gt;
=== Wartime production ===&lt;br /&gt;
On September 1, 1939, Nazi Germany invaded Poland. Two days later, France and Britain declared war on Germany, signaling the start of World War II.&lt;br /&gt;
&lt;br /&gt;
Almost immediately, the factory at KdF-Stadt shifted to wartime production. The primary vehicles produced during this time were the Porsche-designed Type 82 [[Kübelwagen]] and Type 166 [[Schwimmwagen]]. A handful of light vehicles based on the KdF-Wagen were constructed, such as the Type 82E [[Kommandeurswagen]]. The manufacturing resources of the factory were also used to produce other military equipment including stoves, aircraft parts and assemblies for the V1 flying bomb. A very limited number of civilian KdF-Wagens were built during the war, which were primarily handed to high-ranking Nazi Party members.&lt;br /&gt;
&lt;br /&gt;
Production at KdF-Stadt was halted in 1944 after the factory sustained significant damage due to Allied bombing. Much of the critical equipment was moved into bunkers, with expectation that production would resume after hostilities ceased.&lt;br /&gt;
&lt;br /&gt;
Due to gasoline shortages in the late stages of the war, a small number of vehicles were converted to utilize wood-burning gas generators. These became known as &amp;quot;[[Holzbrenner]]&amp;quot; Beetles.&lt;br /&gt;
&lt;br /&gt;
In early 1945, the tide of war had turned. American troops were advancing deeper into Germany and over two thirds of the factory lay in ruin. Some workers, many of whom were foreign forced laborers, began destroying as much as they could of what was left.&lt;br /&gt;
&lt;br /&gt;
=== Allied occupation ===&lt;br /&gt;
&lt;br /&gt;
KdF-Stadt was captured by US troops on April 11, 1945. Over 7,700 forced laborers were liberated from the factory. On May 25, 1945, the city was renamed Wolfsburg, after the nearby Wolfsburg Castle. The Americans occupied Wolfsburg until June 1945, at which time it became part of the British Occupation Zone.&lt;br /&gt;
&lt;br /&gt;
The British intended to dismantle the factory and ship all useable assets to Britain under the Morgenthau Plan. However, no British automaker was interested in the factory. Sir William Rootes, head of the British Rootes Group, told Hirst the project would fail within two years, is quoted as saying the car &amp;quot;is quite unattractive to the average motorcar buyer, is too ugly and too noisy. If you think you&#039;re going to build cars in this place, you&#039;re a bloody fool.&amp;quot;&lt;br /&gt;
[[File:1000th Volkswagen.jpeg|thumb|right|The 1000th Volkswagen rolls off the line in 1946.]]&lt;br /&gt;
Responsibility for the city and the factory then fell to a division of the Royal Electrical and Mechanical Engineers commanded by Major [[Ivan Hirst]]. At the time, the bombed-out factory was being utilized as a repair shop for Allied military and transport vehicles. Hirst soon discovered that much of the original tooling and parts remained undamaged. His team assembled a few complete vehicles from existing parts and saw the potential in the quirky little car. Realizing that occupation forces required a cheap and reliable form of transportation during Germany&#039;s reconstruction, Hirst saw an opportunity. The car was presented to the British Military, who promptly placed an order for 20,000 vehicles. Two weeks later, the order was doubled to 40,000.&lt;br /&gt;
&lt;br /&gt;
Hirst quickly grew the workforce from the remaining 450 post-war workers to over 6,500 employees. At this time, the car reverted to it&#039;s original name, &amp;quot;Volkswagen&amp;quot; (People&#039;s Car) and the model was designated the &amp;quot;Type 1.&amp;quot; The first production Type 1 rolled off the assembly line on December 27, 1945. By March 1946, the Wolfsburg plant was producing 1,000 cars per month, painted army green for the British military. Early production numbers were limited by rationing and a shortage of raw materials, such as steel, batteries, textiles, and glass. Early Beetle roof sections were fashioned out of two pieces of steel, due to larger sheets being unavailable. Hirst convinced the British government to allocate the necessary materials, as the operation of the factory stimulated economic growth and increased employment during post-war reconstruction. &lt;br /&gt;
&lt;br /&gt;
1947 signaled a transition into building a civilian version of the Type 1. For the first time, chrome bumpers, hubcaps and body trim were fitted. Engine displacement was increased to 1131cc and had an output of 25hp. Models destined for export markets were designated and marketed as the Type 11. Civilian output reached 9,000 units in 1947, which increased to almost 20,000 in 1948.&lt;br /&gt;
&lt;br /&gt;
In March 1948, the British offered the company to Ford, free of charge. Henry Ford II and Ford chairman Ernest Breech travelled to West Germany to tour the factory. When Ford asked Breech for his opinion, Breech said, &amp;quot;Mr. Ford, I don&#039;t think what we&#039;re being offered here is worth a damn!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Returning Volkswagen to German control ===&lt;br /&gt;
&lt;br /&gt;
After the British-led restart of production and failing to find a buyer for the company, Hirst began to look for a successor to return day-to-day operations back to the Germans. Former Opel director [[Heinrich Nordhoff]] was offered a position as manager. Despite being highly critical of the Volkswagen&#039;s unconventional engineering in the past, Nordhoff had few other opportunities. Though he was never a member of the Nazi Party, he had been barred from work in the American sector due to his position at the Opel factory building German military vehicles. Nordhoff accepted and took control of the Wolfsburg plant on January 1, 1948.&lt;br /&gt;
&lt;br /&gt;
Under Nordhoff&#039;s leadership, the British Military Government slowly took a backseat to operations. On October 8, 1949, ownership of Volkswagenwerk GmbH was transferred to the newly-formed West German government.&lt;br /&gt;
&lt;br /&gt;
=== Expansion and export ===&lt;br /&gt;
&lt;br /&gt;
Upon joining Volkswagen, Heinrich Nordhoff brought years of managerial, technical, and mass production experience to the young company. Nordhoff settled on a &amp;quot;one model&amp;quot; plan, where the product would retain a similar outward appearance, with minor changes made to improve performance and efficiency. Right away, he saw the need to expand the market. Though under British control, a strong export market had been created in a handful of European countries, Nordhoff realized that in order to survive, Volkswagen would have to break into the American market. At the time, The United States had the strongest post-war economy and most stable currency in the world.&lt;br /&gt;
&lt;br /&gt;
Norhoff recruited [[Ben Pon]], a highly successful Dutch importer, to introduce the Volkswagen to the American market. Pon traveled to New York in 1949, bringing a Beetle along, to try and convince European Car dealers to sell the car. After a month of attempts, Pon was ultimately unsuccessful. He ended up selling the Beetle for just $800 in order to pay for his expenses. While a few VWs had been brought back to the United States by returning GIs, Norhoff was determined to break into the market. He traveled to the US himself later in 1949, but was no more successful, again selling only one car.&lt;br /&gt;
&lt;br /&gt;
In 1950, Max Hoffman took interest in Volkswagen. Hoffman was an established and successful American importer of European autos. Hoffman established a small American sales network which managed to sell 330 VWs in the first year. Many of the dealers who purchased Volkswagens did so in hope to establish a good report with Hoffman. They wished to acquire more exotic models from Jaguar or Porsche, and used the VW as their bargaining chip. By the end of 1953, 2,173 were registered in the United States. By comparison, VW exported over 70,000 cars in 1953 alone. Hoffman was quite disappointed with these figures and ended his relationship with VW by 1954.&lt;br /&gt;
&lt;br /&gt;
In 1952, six Beetles, a bare Type 1 chassis and six [[Type 2 Transporters]] were showcased at the Canadian National Exhibition. Reactions to the strange little car were mixed. Some were excited about a new, economical vehicle coming to market, but others were opposed to buying a German product only 7 years removed from World War II. The one thing that everyone could a agree on, is that it was &amp;quot;different.&amp;quot; Despite this reaction, Volkswagen of Canada was established in a Toronto farmhouse later that year. VWoC sold 8 cars in their first year of operation. In 1953, VWoC president Werner Jansen and a small crew took a Beetle and a Transporter on a promotional trip. Interest in the vehicles grew as a result, and soon after an extensive dealer network was established across Canada.&lt;br /&gt;
&lt;br /&gt;
= Major changes by year =&lt;br /&gt;
==== 1938 ====&lt;br /&gt;
*44 hand-built VW38 pre-production models built. First split rear windshield.&lt;br /&gt;
&lt;br /&gt;
==== 1939 ====&lt;br /&gt;
*50 hand-built VW39 pre-production models built.&lt;br /&gt;
*First use of stamping dies in production.&lt;br /&gt;
*First production KdF-Wagens built, approximately 200, before factory shifts to wartime production.&lt;br /&gt;
&lt;br /&gt;
==== 1940-1942 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1940 to December 31, 1942&amp;lt;br&amp;gt;Chassis numbers 1-00,001 - 1-014,383&amp;lt;br&amp;gt;Engine numbers 1-00,001 - 1,017,113&#039;&#039;&lt;br /&gt;
*Limited production of KdF-Wagen. Estimated 840 built through 1944.&lt;br /&gt;
*Engine displacement 985cc producing 22bhp at 5.8:1 compression ratio.&lt;br /&gt;
&lt;br /&gt;
==== 1943-1944 ====&lt;br /&gt;
&#039;&#039;Production date January 1, 1943 to December 31, 1944&amp;lt;br&amp;gt;Chassis Numbers 1-032,302 - 1-051,999&amp;lt;br&amp;gt;Engine numbers 1-017,114 - 1-077,683&#039;&#039;&lt;br /&gt;
*Engine displacement increased to 1131cc producing 25bhp at 5.8:1 compression ratio.&lt;br /&gt;
&lt;br /&gt;
==== 1945 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1945 to December 31, 1945&amp;lt;br&amp;gt;Chassis numbers 1-052,000 - 1-053,814&amp;lt;br&amp;gt;Engine numbers 1-077,683 - 1-079,093&#039;&#039;&lt;br /&gt;
*Renamed Volkswagen Type 1, production restarted under British control.&lt;br /&gt;
&lt;br /&gt;
==== 1946 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1946 to December 31, 1946&amp;lt;br&amp;gt;Chassis numbers 1-053,815 - 1-063,796&amp;lt;br&amp;gt;Engine numbers 1-079,094 - 1-090,732&#039;&#039;&lt;br /&gt;
*Pushrod tubes get compressible ends, replacing springs.&lt;br /&gt;
*Fuel tank raised.&lt;br /&gt;
*Grease nipple added on brake cables.&lt;br /&gt;
*Tires increase in size from 4.5x16 to 5.0x16.&lt;br /&gt;
&lt;br /&gt;
==== 1947 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1947 to December 31, 1947&amp;lt;br&amp;gt;Chassis numbers 1-063,797 - 1-072,743&amp;lt;br&amp;gt;Engine numbers 1-090,733 - 1-100,788&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Reinforced rear hub bearings.&lt;br /&gt;
*New lockable spare wheel bracket.&lt;br /&gt;
*Manually operated summer/winter setting added to fan housing (flap which closes off half of air intake).&lt;br /&gt;
*Chassis number added to tunnel between shifter and handbrake lever.&lt;br /&gt;
&lt;br /&gt;
==== 1948 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1948 to December 31, 1948&amp;lt;br&amp;gt;Chassis numbers 072,744 - 091,921&amp;lt;br&amp;gt;Engine numbers 100,789 - 122,649&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*First year of &amp;quot;Pope&#039;s nose&amp;quot; license plate light.&lt;br /&gt;
*Steering column grooved longitudinally for steering lock.&lt;br /&gt;
*Update brake drums.&lt;br /&gt;
&lt;br /&gt;
==== 1949 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1949 to December 31, 1949&amp;lt;br&amp;gt;Chassis numbers 091,922 - 138,554&amp;lt;br&amp;gt;Engine numbers 122,650 - 169,913&#039;&#039;&lt;br /&gt;
*Solex carburetor becomes standard.&lt;br /&gt;
*Domed air filter cover.&lt;br /&gt;
*Intake manifold support.&lt;br /&gt;
*Front torsion bars transposed - 5 in lower tube, 4 in upper tube.&lt;br /&gt;
*Case hardened exhaust valve stems introduced.&lt;br /&gt;
*&amp;quot;Elektron&amp;quot; alloy gearbox casing replaces magnesium.&lt;br /&gt;
*Fusebox relocated to inside left hand front wing.&lt;br /&gt;
*Pressing for number plate on engine lid removed.&lt;br /&gt;
*Fuel tank shape changed, gauge strainer not fitted.&lt;br /&gt;
*Fuel filler cap gets VW emblem.&lt;br /&gt;
*Cylinders have higher phosphor content.&lt;br /&gt;
*Starting crank hole removed.&lt;br /&gt;
*Dash redesign.&lt;br /&gt;
*Brown rubber front floor mats over the rubber floorpan covering.&lt;br /&gt;
*Brake cables get Mipolam sheath.&lt;br /&gt;
*Accelerator pedal roller increased in size.&lt;br /&gt;
*Boge or Hemscheidt shock absorbers available.&lt;br /&gt;
*Pull cable bonnet (hood) release, no lock on handle.&lt;br /&gt;
*License plate indentation on rear deck lid removed.&lt;br /&gt;
&lt;br /&gt;
==== 1950 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1950 to December 31, 1950&amp;lt;br&amp;gt;Chassis numbers 138,655 - 220,133&amp;lt;br&amp;gt;Engine numbers 169,913 - 265,999&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Small emblem hubcap replaced big emblem.&lt;br /&gt;
*5 torsion leaves in each tube.&lt;br /&gt;
*Gaskets added between cylinders and heads.&lt;br /&gt;
*Bosch headlights become standard.&lt;br /&gt;
*Tailpipe increased from 31 to 32mm.&lt;br /&gt;
*Intake manifold now made of lightweight alloy.&lt;br /&gt;
*Small cut-outs in tops of door windows.&lt;br /&gt;
*Hydraulic brakes on export models.&lt;br /&gt;
*Automatic engine cooling control by thermostatically controlled throttle ring.&lt;br /&gt;
*Brake master cylinder reduced from 22.2mm to 19.5mm.&lt;br /&gt;
*Rear brake cylinders reduced from 19.05mm to 15.9mm.&lt;br /&gt;
*Optional cloth sunroof inroduced.&lt;br /&gt;
*Hole for external crank handle discontinued on Cabriolet late in the model year.&lt;br /&gt;
*Noise mufflers added to heating ducts.&lt;br /&gt;
*Heat riser added to intake manifold.&lt;br /&gt;
*Wrist pin offset to reduce piston slap.&lt;br /&gt;
*Stronger alloys for exhaust valves and inserts.&lt;br /&gt;
&lt;br /&gt;
==== 1951 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1951 to December 31, 1951&amp;lt;br&amp;gt;Chassis numbers 220,134 - 313,829&amp;lt;br&amp;gt;Engine numbers 265,000 - 379,470&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Chrome trim added to windshield seal.&lt;br /&gt;
*Wolfsburg crest added above front hood handle.&lt;br /&gt;
*Vent flaps (also known as crotch coolers) added to front quarter panels on export models.&lt;br /&gt;
*Dual action shocks replace rear lever shocks.&lt;br /&gt;
*Glove box door added to cabriolet models.&lt;br /&gt;
*Single valve springs replace double springs.&lt;br /&gt;
&lt;br /&gt;
==== 1952 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1952 to December 31, 1952&amp;lt;br&amp;gt;Chassis numbers 318,830 - 428,156&amp;lt;br&amp;gt;Engine numbers 379,472 - 519,258&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Crankshaft end play adjusted by 3 shims.&lt;br /&gt;
*Tire size change from 5.00x16 to 5.6x15.&lt;br /&gt;
*Torsion bar leaves increase from 5 to 6 for improved suspension travel.&lt;br /&gt;
*New instrument panel layout from October 1952.&lt;br /&gt;
*26PCI carburetor in late 1952.&lt;br /&gt;
*2nd, 3rd and 4th gears fully synchronized, replacing old &amp;quot;crash box&amp;quot; transmission.&lt;br /&gt;
*Window regulater reduced from 10 ½ to 3 ½ turns.&lt;br /&gt;
*Glass vent windows replace body panel &amp;quot;crotch cooler&amp;quot; vents.&lt;br /&gt;
*Heater control changed from pull knob to rotary knob.&lt;br /&gt;
*T-style decklid handle introduced.&lt;br /&gt;
*Dual brake/taillights replace single unit.&lt;br /&gt;
*Turn indicator switch moved to steering column from dashboard.&lt;br /&gt;
*Interior light moved to left side B pillar.&lt;br /&gt;
*All models now feature glove box lid.&lt;br /&gt;
*Larger reinforced bumpers.&lt;br /&gt;
*Self parking wipers.&lt;br /&gt;
*Crank starter hole discontinued on all models.&lt;br /&gt;
*Widened body side trim.&lt;br /&gt;
*Redesigned &amp;quot;Pope&#039;s nose&amp;quot; license plate light.&lt;br /&gt;
&lt;br /&gt;
==== 1953 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1953 to December 31, 1953&amp;lt;br&amp;gt;Chassis numbers 428,157 - 575,414&amp;lt;br&amp;gt;Engine numbers 519,259 - 695,281&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Split rear window becomes one-piece oval on March 10, 1953.&lt;br /&gt;
*Fuel filler neck widened from 40 to 80mm.&lt;br /&gt;
*Lock button added to vent window latch.&lt;br /&gt;
*Chrome plated ash tray handle.&lt;br /&gt;
*Adjustable door striker plates.&lt;br /&gt;
*Change to 3rd and 4th gear ratios.&lt;br /&gt;
*Valve clearance changed to .004&amp;quot;&lt;br /&gt;
*Carburetor and distributor with both vacuum and mechanical advance late in model year.&lt;br /&gt;
*Generator output increased to 160 watts.&lt;br /&gt;
*Break-in period for new engine dropped.&lt;br /&gt;
*Torsion bar leaves increased from 6 to 8 in each tube.&lt;br /&gt;
&lt;br /&gt;
==== 1954 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1954 to December 31, 1954&amp;lt;br&amp;gt;Chassis numbers 575,415 - 781,884&amp;lt;br&amp;gt;Engine numbers 695,283 - 945,525&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Engine displacement increased to 1192cc outputting 36hp at 6.1:1 compression ratio.&lt;br /&gt;
*Larger intake valves.&lt;br /&gt;
*Cylinder heads redesigned to improve cooling.&lt;br /&gt;
*28PCI carburetor becomes standard.&lt;br /&gt;
*Starter switch incorporated into ignition switch.&lt;br /&gt;
*Three way interior light upgrade.&lt;br /&gt;
*Engine compression ratio becomes 6.6:1 late in model year.&lt;br /&gt;
*Air cleaner upgraded to oil-bath type.&lt;br /&gt;
*Seat upholstery fabric quality improved.&lt;br /&gt;
*Rubber retaining strap added to rear seat to prevent flipping forward while braking.&lt;br /&gt;
&lt;br /&gt;
==== 1955 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1955 to December 31, 1955&amp;lt;br&amp;gt;Chassis numbers 781,885 - 1,060,929&amp;lt;br&amp;gt;Engine numbers 945,527 - 1,277,347&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Flashing blinkers replace semaphores on USA models.&lt;br /&gt;
*Top window in tail light housing eliminated.&lt;br /&gt;
*Gear lever moved forward.&lt;br /&gt;
*Dished steering wheel.&lt;br /&gt;
&lt;br /&gt;
==== 1956 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1956 to December 31, 1956&amp;lt;br&amp;gt;Chassis numbers 1,060,930 - 1,394,119&amp;lt;br&amp;gt;Engine numbers 1,277,347 - 1,678,209&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Sunroof reduced in size and changed from cloth fabric to plastic fabric.&lt;br /&gt;
*Tail light housing raised 2 inches and becomes single lens.&lt;br /&gt;
*Curved gear shift handle.&lt;br /&gt;
*Bumper over-riders added.&lt;br /&gt;
*Dual tail pipes added, chrome on export models and black enamel on standard models.&lt;br /&gt;
*Steering wheel spoke moved lower, off-center.&lt;br /&gt;
*Heater knob moved forward.&lt;br /&gt;
*Fuel tank capacity increased.&lt;br /&gt;
*Luggage compartment size increased.&lt;br /&gt;
*Larger oil pump mounting shaft.&lt;br /&gt;
*Fuel filter tap removed.&lt;br /&gt;
*Copper plated fulcrum plates in universals.&lt;br /&gt;
*More powerful starter motor.&lt;br /&gt;
*Tubeless tires now standard equipment.&lt;br /&gt;
*Front floor heater outlets moved rearward late in model year.&lt;br /&gt;
*Front seat backs now adjustable.&lt;br /&gt;
&lt;br /&gt;
==== 1957 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1957 to December 31, 1957&amp;lt;br&amp;gt;Chassis numbers 1,394,120 - 1,774,680&amp;lt;br&amp;gt;Engine numbers 1,678,210 - 2,158,321&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Optional sunroof size reduced again.&lt;br /&gt;
*Larger engine oil galleries.&lt;br /&gt;
*Ring and Pinion ratio changed.&lt;br /&gt;
*New brake pedal design increases leverage.&lt;br /&gt;
*Adjustable striker plates in door frames.&lt;br /&gt;
&lt;br /&gt;
==== 1958 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1958 to December 31, 1958&amp;lt;br&amp;gt;Chassis numbers 1,774,681 - 2,226,206&amp;lt;br&amp;gt;Engine numbers 2,156,322 - 2,721,313&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Larger windshield.&lt;br /&gt;
*Oval rear window replaced with larger glass.&lt;br /&gt;
*Reinforcement added to frame head.&lt;br /&gt;
*Redesigned instrument panel.&lt;br /&gt;
*Radio grill moved to the left.&lt;br /&gt;
*Front turn indicators moved to top of fenders.&lt;br /&gt;
*Decklid redesigned.&lt;br /&gt;
*Flat accelerator pedal replaces roller type.&lt;br /&gt;
*Horizontal air inlets added to convertible models.&lt;br /&gt;
*New style dished steering wheel.&lt;br /&gt;
*Brake drum and shoe friction surfaces wider.&lt;br /&gt;
*Upgraded clutch with stronger springs.&lt;br /&gt;
*3rd and 4th gear ratios changed.&lt;br /&gt;
&lt;br /&gt;
==== 1959 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1959 to December 31, 1959&amp;lt;br&amp;gt;Chassis numbers 2,226,207 - 2,801,613&amp;lt;br&amp;gt;Engine numbers 2,721,314 - 3,424,453&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Front suspension control arm bushings changed to needle rollers.&lt;br /&gt;
*Chassis reinforced.&lt;br /&gt;
*Sway bar added.&lt;br /&gt;
*Improved fan belt.&lt;br /&gt;
*Upgraded clutch springs.&lt;br /&gt;
&lt;br /&gt;
==== 1960 ====&lt;br /&gt;
&#039;&#039;Production dates January 1, 1960 to July 31, 1960&amp;lt;br&amp;gt;Chassis numbers 2,801,614 - 3,192,506&amp;lt;br&amp;gt;Engine numbers 3,424,454 - 3,912,903&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Recessed steering wheel for increased safety.&lt;br /&gt;
*Damper added to steering linkage.&lt;br /&gt;
*Steering box switches to worm-and-peg from worm and roller.&lt;br /&gt;
*Generator output increases from 160 to 180 watts.&lt;br /&gt;
*Outside door handles switched to push button type.&lt;br /&gt;
*Padded sun visor.&lt;br /&gt;
*Seat back contour changed.&lt;br /&gt;
*Wolfsburg crest on front hood reduced color.&lt;br /&gt;
*Last year for semaphores in Europe, Canada, Australia.&lt;br /&gt;
&lt;br /&gt;
==== 1961 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1960 to July 31, 1961&amp;lt;br&amp;gt;Chassis numbers 3,192,507 - 4,010,994&amp;lt;br&amp;gt;Engine numbers 3,912,904 - 3,924,022 &amp;amp; 5,000,001 - 5,958,947&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;NEW MODEL YEAR DESIGNATIONS&#039;&#039;&#039;&lt;br /&gt;
* Engine upgraded to 1200cc producing 40bhp at 7:1 compression ratio.&lt;br /&gt;
* Fuel pump relocated to right side of distributor.&lt;br /&gt;
* Generator stand now separate part from engine block.&lt;br /&gt;
* Lifter and pushrods no longer one-piece units.&lt;br /&gt;
* Cylinder head redesign with angled valves.&lt;br /&gt;
* 28 PICT carburetor with automatic choke and pre-heat.&lt;br /&gt;
* All forward gears fully synchronized.&lt;br /&gt;
* New vacuum advance distributor.&lt;br /&gt;
* Positive crankcase ventilation.&lt;br /&gt;
* New fuel tank with flatter top.&lt;br /&gt;
* 28 blade cooling fan.&lt;br /&gt;
* Sealed tie rod ends.&lt;br /&gt;
* Sissy bar added.&lt;br /&gt;
* Non-repeat starter switch.&lt;br /&gt;
* Wider front brake friction surfaces.&lt;br /&gt;
* Transparent brake fluid reservoir.&lt;br /&gt;
* Pump type windshield washer.&lt;br /&gt;
* Push-on wiring connectors.&lt;br /&gt;
* Enlarged heater pipes.&lt;br /&gt;
* Sun visor and grab handle for passenger.&lt;br /&gt;
&lt;br /&gt;
==== 1962 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1961 to July 31, 1962&amp;lt;br&amp;gt; Chassis numbers 4,010,995 - 4,846,835&amp;lt;br&amp;gt;Engine numbers 3,924,023 - 3,924,914 &amp;amp; 5,958,948 - 6,935,203&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Fuel gauge added, reserve switch discontinued.&lt;br /&gt;
* Larger tail lights with plastic lenses.&lt;br /&gt;
* Spring loaded front hood.&lt;br /&gt;
* Sliding added to heater outlets.&lt;br /&gt;
* Progressive valve springs.&lt;br /&gt;
* Seat belt anchor points added.&lt;br /&gt;
* Stronger clutch springs.&lt;br /&gt;
* Worm and roller steering.&lt;br /&gt;
* Pneumatic windshield washer using spare tire for air pressure.&lt;br /&gt;
* Last year of semaphores on domestic models.&lt;br /&gt;
&lt;br /&gt;
==== 1963 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1962 to July 31, 1963&amp;lt;br&amp;gt;Chassis numbers 4,846,836 - 5,677,118&amp;lt;br&amp;gt;Engine numbers 3,942,915 - 3,959,303 &amp;amp; 6,935,204 - 7,893,118&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Fresh air heating introduced.&lt;br /&gt;
* Redesigned fan housing, muffler and heat exchangers.&lt;br /&gt;
* Leatherette vinyl headliner.&lt;br /&gt;
* Folding handle for sunroof.&lt;br /&gt;
* Nylon window guides.&lt;br /&gt;
* Foam sandwich insulated floor mats.&lt;br /&gt;
* Front hood Wolfsburg crest discontinued.&lt;br /&gt;
&lt;br /&gt;
==== 1964 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1963 to July 31, 1964&amp;lt;br&amp;gt;Chassis numbers 5,677,119 - 6,502,399&amp;lt;br&amp;gt;Engine numbers 3,959,304 - 3,972,440 &amp;amp; 7,893,119 - 8,796,622&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Metal sunroof.&lt;br /&gt;
* Dual thumb bar horn button.&lt;br /&gt;
* Distributor vacuum pipe altered to inverted ‘V&#039; bend.&lt;br /&gt;
* Larger front turn signals.&lt;br /&gt;
* Larger license plate light.&lt;br /&gt;
* Basketweave vinyl seat upholstery.&lt;br /&gt;
* 28PICT/1 carburetor introduced late in model year.&lt;br /&gt;
&lt;br /&gt;
==== 1965 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1964 to July 31, 1965&amp;lt;br&amp;gt;Chassis numbers 115,000,001 - 115,999,000&amp;lt;br&amp;gt;Engine numbers 3,972,441 - 4,050,000 &amp;amp; 8,796,623 - 9,800,000&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Chassis numbering system changed to reflect type designation and body style.&lt;br /&gt;
* Redesigned brake master cylinder and wheel cylinders.&lt;br /&gt;
* New cooling air control with flaps under fan.&lt;br /&gt;
* Improved heater.&lt;br /&gt;
* Lever style heater controls on center tunnel.&lt;br /&gt;
* Slightly curve added to enlarged windshield.&lt;br /&gt;
* Larger door windows, rear window and quarter windows.&lt;br /&gt;
* Slimmer A &amp;amp; B pillars.&lt;br /&gt;
* Window vent lock relocated to bottom.&lt;br /&gt;
* Upgraded wiper motor.&lt;br /&gt;
* Longer wiper blades.&lt;br /&gt;
* Front seats redesigned to increase rear passenger leg room.&lt;br /&gt;
* Fold-flat rear seat.&lt;br /&gt;
* Push-button decklid latch.&lt;br /&gt;
* Swiveling sun visors.&lt;br /&gt;
* Rear view mirror dome light assembly for convertible models.&lt;br /&gt;
&lt;br /&gt;
==== 1966 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1965 to July 31, 1966&amp;lt;br&amp;gt;Chassis numbers 116,000,001 - 116,1021,300&amp;lt;br&amp;gt; Engine numbers D 0,000,001 - D 0,095,049 (1200cc 40HP)&amp;lt;br&amp;gt;E 0,000,001 - E 0,006,000 (1300cc 37bhp Non-USA - M240 low compression)&amp;lt;br&amp;gt;&lt;br /&gt;
F 0,000,001 - F 0,940,716 (1300cc 50HP)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* New engine numbering system with prefix determining engine type.&lt;br /&gt;
* 1300cc engine introduced.&lt;br /&gt;
* &amp;quot;1300&amp;quot; badge on decklid.&lt;br /&gt;
* 30PICT/1 carburetor introduced.&lt;br /&gt;
* Cam bearing added to engine.&lt;br /&gt;
* Emergency blinker switch added.&lt;br /&gt;
* Slotted steel wheels and flatter hub caps.&lt;br /&gt;
* Rear view mirror enlarged.&lt;br /&gt;
* Headlight dimmer incorporated into turn signal lever.&lt;br /&gt;
* Defroster outlet added to center of dash.&lt;br /&gt;
* Semi circle horn ring.&lt;br /&gt;
* Upgraded front suspension. Ball joints replace king pins, improved torsion bars and shock absorbers.&lt;br /&gt;
* Needle wheel bearings.&lt;br /&gt;
* Round door handle pushbutton.&lt;br /&gt;
* Front seatback locks introduced.&lt;br /&gt;
&lt;br /&gt;
==== 1967 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1966 to July 31, 1967&amp;lt;br&amp;gt;Chassis numbers 117,000,001 - 117,999,000&amp;lt;br&amp;gt;Engine numbers D 0,095,050 - D 0,234,014 (1200cc 40HP)&amp;lt;br&amp;gt;E 0,006,001 - E 0,014,000 (1300cc 37bhp Non-USA - M240 low compression)&amp;lt;br&amp;gt;F 0,940,717 - F 1,237,506 (1300cc 50HP)&amp;lt;br&amp;gt;L 0,000,001 - L 0,019,335 (1500cc 40bhp Non-USA - M240 low compression)&amp;lt;br&amp;gt;H 0,204,001 - H 0,874,199 (1500cc 53HP)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* 1500cc engine introduced into Type 1 models.&lt;br /&gt;
* &amp;quot;Volkswagen&amp;quot; badge on engine lid.&lt;br /&gt;
* 12 volt electrical system.&lt;br /&gt;
* Generator output increased from 180 to 360 watts.&lt;br /&gt;
* Voltage regulator moved from to under rear seat.&lt;br /&gt;
* Wider rear swing axles (1350mm).&lt;br /&gt;
* Clutch diameter increased to 200mm on 1300 &amp;amp; 1500 models.&lt;br /&gt;
* 130 tooth ring gear (flywheel) replaces 109 tooth.&lt;br /&gt;
* Dual circuit brake system on drum brake models.&lt;br /&gt;
* Single circuit front disc brakes introduced on some export 1500 models(non-USA).&lt;br /&gt;
* Inside door handles recessed.&lt;br /&gt;
* Two speed wipers.&lt;br /&gt;
* Reverse lights introduced on USA models.&lt;br /&gt;
* Vertical headlights replace sloped glass.&lt;br /&gt;
* Sealed beam headlights on USA models.&lt;br /&gt;
* Decklid redesigned for vertical mounted license plate&lt;br /&gt;
* Parking light incorporated into front turn indicators.&lt;br /&gt;
* Lock buttons added to doors.&lt;br /&gt;
* Driver side armrest on door.&lt;br /&gt;
* Slimmer chrome trim on outside.&lt;br /&gt;
* Driver&#039;s outside mirror becomes standard equipment.&lt;br /&gt;
* Rear anti-sway bar fitted.&lt;br /&gt;
&lt;br /&gt;
==== 1968 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1967 to July 31, 1968&amp;lt;br&amp;gt;Chassis numbers 118,000,001 - 118,1016,100&amp;lt;br&amp;gt;Engine numbers D 0,234,014 - D 0,382,979 (1200cc 40HP)&amp;lt;br&amp;gt;E 0,014,001 - E 0,015,981 (1300cc 37bhp Non-USA - M240 low compression)&amp;lt;br&amp;gt;F 1,237,507 - F 1,296,298 (1300cc 50HP)&amp;lt;br&amp;gt;L 0,019,337 - L 0,021,115 (1500cc 50HP Non-USA - M240 low compression)&amp;lt;br&amp;gt;H 0,874,200 - H 1,003,255 (1500cc 53HP Non-USA)&amp;lt;br&amp;gt;H 5,000,001 - H 5,414,585 (1500cc 53HP USA/Canada - M157 emission control)&lt;br /&gt;
&lt;br /&gt;
* Optional semi-automatic &amp;quot;auto-stick&amp;quot; transmission.&lt;br /&gt;
* Double joint IRS rear suspension optional.&lt;br /&gt;
* New pressed steel bumpers without upper &amp;quot;towel bar&amp;quot;.&lt;br /&gt;
* Flatter hubcaps.&lt;br /&gt;
* Padded dash on some export models.&lt;br /&gt;
* Large black knob added to vent window opener.&lt;br /&gt;
* Straight shift lever.&lt;br /&gt;
* Four bolt wheels replace 5 stud patten.&lt;br /&gt;
* Larger front brakes on drum brake models.&lt;br /&gt;
* Larger rear brakes.&lt;br /&gt;
* Solex 30PICT/2 carburetor.&lt;br /&gt;
* Fuel filler moved outside behind right front fender.&lt;br /&gt;
* Brake fluid reservoir moved to left side of front luggage area.&lt;br /&gt;
* New electrical fuel gauge incorporated into speedometer.&lt;br /&gt;
* Oil warning light now red.&lt;br /&gt;
* Flattened exterior door handle with single finger squeeze trigger.&lt;br /&gt;
* Larger ‘flat bottom&#039; tail lights.&lt;br /&gt;
* Head restraints incorporated into front seat backs on some export models.&lt;br /&gt;
* Collapsible steering column.&lt;br /&gt;
* Exhaust emission control on USA models.&lt;br /&gt;
* Front hood release moved into glove compartment.&lt;br /&gt;
* Fuel door release moved inside late in model year.&lt;br /&gt;
&lt;br /&gt;
==== 1969 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1968 to July 31, 1969&amp;lt;br&amp;gt;Chassis numbers 119,000,001 - 119,1200,000&amp;lt;br&amp;gt;Engine numbers D 0,382,980 - D 0,525,049 (1200cc 40HP)&amp;lt;br&amp;gt;E 0,015,982 - E 0,020,021 (1300cc 37bhp Non-USA - M240 low compression&amp;lt;br&amp;gt;F 1,462,599 - F 1,778,163 (1300cc 50HP)&amp;lt;br&amp;gt;L 0,021,115 - L 0,024,106 (1500cc 40bhp Non-USA - M240 low compression)&amp;lt;br&amp;gt;H 1,003,256 - H 1,124,668 (1500cc 53HP Non-USA)&amp;lt;br&amp;gt;H 5,414,586 - H 5,900,000 (1500cc 53HP USA/Canada - M157 emission control)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Double joint IRS rear suspension becomes standard on all USA models.&lt;br /&gt;
* Dual front circuit disc brakes (USA models retain drum brakes).&lt;br /&gt;
* Identifying marks added to speedometer warning lights.&lt;br /&gt;
* Day/night rear view mirror standard on USA models.&lt;br /&gt;
* Steering lock incorporated into ignition lock.&lt;br /&gt;
* Floor heater vents moved slightly rearward.&lt;br /&gt;
* Optional rear window defogger.&lt;br /&gt;
* Odometer 1/10th mile indicator added late in model year.&lt;br /&gt;
&lt;br /&gt;
==== 1970 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1969 to July 31, 1970&amp;lt;br&amp;gt;Chassis numbers 110,2000,001 - 110,3100,000&amp;lt;br&amp;gt;Engine numbers D 0,525,050 - D 0,674,999 (1200cc 40HP)&amp;lt;br&amp;gt;E 0,020,022 - E 0,022,000 (1300cc 37bhp Non-USA - M240 low compression)&amp;lt;br&amp;gt;F 1,778,164 - F 2,200,000 (1300cc 50HP)&amp;lt;br&amp;gt;L 0,024,107 - L 0,026,500 (1500cc 50HP Non-USA - M240 low compression)&amp;lt;br&amp;gt;H 1,124,699 - H 1,350,000 (1500cc 53HP Non-USA)&amp;lt;br&amp;gt;B 6,000,001 - B 6,600,000 (1600cc Single Port 57HP USA/Canada - M157 emission control)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* USA models get 1600cc single port engine.&lt;br /&gt;
* USA models get larger turn signals with side reflectors.&lt;br /&gt;
* Two columns of air intake slots added to decklid.&lt;br /&gt;
* Second oil pressure relief valve added to flywheel end of engine.&lt;br /&gt;
* Solex 30PICT/3 carburetor on 1600 models.&lt;br /&gt;
* Diaphragm clutch springs on 1600 models.&lt;br /&gt;
* USA head restraints reduced in size.&lt;br /&gt;
* Glove box lock added.&lt;br /&gt;
* Door open buzzer added to USA models.&lt;br /&gt;
* Warm air outlet control knobs discontinued.&lt;br /&gt;
* Reduced noise 3rd and 4th gears with finer teeth added late in model year.&lt;br /&gt;
&lt;br /&gt;
==== 1971 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1970 to July 31, 1971&amp;lt;br&amp;gt;Chassis numbers 111,2000,001 - 111,3200,000&amp;lt;br&amp;gt;Engine numbers D 0,675,000 - D 0,835,006 (1200cc 40HP)&amp;lt;br&amp;gt;AC 0,000,001 - AC 0,003,239 (1300cc 50HP Non-USA - M240 low octane)&amp;lt;br&amp;gt;AB 0,000,001 - AB 0,141,591 (1300cc 44bhp Non-USA)&amp;lt;br&amp;gt;AF 0,000,001 - AF 0,000,444 (1600cc 46bhp Non-USA - M240 low octane)&amp;lt;br&amp;gt;AD 0,000,001 - AD 0,360,022 (1600cc 50bhp Non-USA)&amp;lt;br&amp;gt;AE 0,000,001 - AE 0,558,000 (1600cc 60HP USA-only)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Dual intake ports on 1600 engine.&lt;br /&gt;
* Three part induction manifold.&lt;br /&gt;
* Solex 34PICT/3 carburetor.&lt;br /&gt;
* Combination vacuum/centrifugal distributor.&lt;br /&gt;
* Activated charcoal filter to recycle fuel fumes.&lt;br /&gt;
* Enlarged oil cooler mounted ‘doghouse&#039; style and vented to atmosphere - improved #3 cylinder cooling.&lt;br /&gt;
* Wider cooling fan increases airflow.&lt;br /&gt;
* Redesigned clutch throw-out assembly with ball release bearing.&lt;br /&gt;
* Headlights automatically turn off and side lights remain on when ignition is switched off.&lt;br /&gt;
* Half-moon vents added behind rear window for improved cabin ventilation.&lt;br /&gt;
* Super Beetle with McPherson strut (coilover) front suspension introduced into model lineup.&lt;br /&gt;
* Bigger front brakes (drum brake models).&lt;br /&gt;
* Increased capacity oil pump.&lt;br /&gt;
* Redesigned 4-rivet camshaft retainer.&lt;br /&gt;
* Wiring for VW computer analysis system added late in model year.&lt;br /&gt;
* Larger &amp;quot;tombstone&amp;quot; taillights.&lt;br /&gt;
* In Australia, 1300s are standard Beetles, 1600s are Super Beetles.&lt;br /&gt;
* In the US, both Super Beetle and Standard Beetle models are offered with 1600 engines.&lt;br /&gt;
&lt;br /&gt;
==== 1972 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1971 to July 31, 1972&amp;lt;br&amp;gt;Chassis numbers 112,2000,- 112,3200,000&amp;lt;br&amp;gt;Engine numbers D 0,835,007 - D 1,000,000 (1200cc 40HP)&amp;lt;br&amp;gt;AC 0,003,240 - AC 0,006,700 (1300cc 50HP Non-USA - M240 low octane)&amp;lt;br&amp;gt;AB 0,350,001 - AB 0,699,001 (1300cc 44bhp Non-USA)&amp;lt;br&amp;gt;AF 0,000,445 - AF 0,000,801 (1600cc 46bhp Non-USA - M240 low octane)&amp;lt;br&amp;gt;AE 0,558,001 - AE 0,917,263 (1600cc 48HP USA-only - reduced compression)&amp;lt;br&amp;gt;AD 0,360,023 - AD 0,598,001 (1600cc 50bhp Non-USA)&amp;lt;br&amp;gt;AH 0,000,001 - AH 0,005,900 (1600cc 46HP USA-only)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Two additional columns of air vents on decklid, 4 total.&lt;br /&gt;
* Additional emission controls on smog models.&lt;br /&gt;
* Redesigned steering column with collapsible wheel hub.&lt;br /&gt;
* Double vacuum distributor with 5 degree ATDC retard at idle.&lt;br /&gt;
* EGR (exhaust gas recirculation) added.&lt;br /&gt;
* Redesigned muffler.&lt;br /&gt;
* Modified 3rd and 4th synchro rings for noise reduction.&lt;br /&gt;
* Hinged parcel shelf to cover rear luggage well.&lt;br /&gt;
* Restyled speedometer.&lt;br /&gt;
* Automatic electronic brake system warning light test upon engine start.&lt;br /&gt;
* Washer controls added to steering column.&lt;br /&gt;
* Wheels change from 5.6x15 to 6.0x15 late in model year.&lt;br /&gt;
&lt;br /&gt;
==== 1973 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1972 to July 31, 1973&amp;lt;br&amp;gt;Chassis numbers 113,2000,001 - 113,3200,000 (Standard Beetle)&amp;lt;br&amp;gt;133,2000,001 - 133,3200,000 (Super Beetle)&amp;lt;br&amp;gt;Engine numbers D 1,000,001 - D 1,115,873 (1200cc 40HP)&amp;lt;br&amp;gt;AC 0,006,701 - AC 0,008,195 (1300cc 50HP Non-USA - M240 low octane)&amp;lt;br&amp;gt;AB 0,699,002 - AB 0,990,000 (1300cc 44bhp Non-USA)&amp;lt;br&amp;gt;AF 0,000,802 - AF 0,036,768 (1600cc 46bhp Non-USA - M240 low octane)&amp;lt;br&amp;gt;AE 0,917,264 - AE 1,000,000 (1600cc 48HP USA-only - reduced compression) &#039;&#039;&#039;to 1 Oct 72&#039;&#039;&#039;&amp;lt;br&amp;gt;AK 0,000,001 - AK 0,239,364 (1600cc 46HP USA-only) &#039;&#039;&#039;from 1 Oct 72&#039;&#039;&#039;&amp;lt;br&amp;gt;AH 0,005,901 - AH 0,114,418 (1600cc 46HP USA-only)&amp;lt;br&amp;gt;AD 0,598,002 - AD 0,990,000 (1600cc 50bhp Non-USA)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Reduced horsepower in US models.&lt;br /&gt;
* 600 watt alternator replaces generator mid model year.&lt;br /&gt;
* Improved intake pre-heating for faster cold weather starts.&lt;br /&gt;
* Engine case near #3 cylinder/flywheel is reinforced to prevent cracking.&lt;br /&gt;
* Softer transmission mounting.&lt;br /&gt;
* Softer clutch with Porsche style pressure plate.&lt;br /&gt;
* Oil drain plug removed from oil strainer cover plate.&lt;br /&gt;
* Redesigned fuel pump (with automatic cut-off valve) to acommodate alternator.&lt;br /&gt;
* Paper air filter.&lt;br /&gt;
* Sealed front and rear wheel bearings.&lt;br /&gt;
* Larger curved windshield and smaller hood.&lt;br /&gt;
* Black finish on windshield wiper arms.&lt;br /&gt;
* Redesigned dash in super beetle.&lt;br /&gt;
* Redesigned fresh air system.&lt;br /&gt;
* New interior light assembly.&lt;br /&gt;
* Reinforcement added to bumpers.&lt;br /&gt;
* Large round &amp;quot;Elephant Foot&amp;quot; tail lights.&lt;br /&gt;
* &amp;quot;Sports Bug&amp;quot; trim package available.&lt;br /&gt;
* New front seats adjustable to 77 different positions.&lt;br /&gt;
* Inertia seat belts introduced.&lt;br /&gt;
* Exterior door handles get two finger indents on trigger.&lt;br /&gt;
&lt;br /&gt;
==== 1974 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1973 to July 31, 1974&amp;lt;br&amp;gt;Chassis numbers 114,2000,001 - 114,2999,000 (Standard Beetle)&amp;lt;br&amp;gt;134,2000,001 - 134,2999,000 (Super Beetle)&amp;lt;br&amp;gt;Engine numbers D 1,115,874 - D 1,284,228 (1200cc 40HP)&amp;lt;br&amp;gt;AR 0,000,001 - AR 0,121,271 (1300cc 44bhp Non-USA)&amp;lt;br&amp;gt;AH 0,114,419 - AH 0,500,000 (1600cc 46HP USA-only) &amp;lt;ref&amp;gt;AH engine numbers for 1974 are number rounded up.&amp;lt;/ref&amp;gt;&amp;lt;br&amp;gt;AS 0,000,001 - AS 0,171,566 (1600cc 50bhp Non-USA)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Self restoring energy absorbing bumpers introduced.&lt;br /&gt;
* Quieter muffler.&lt;br /&gt;
* New cylinder head alloy for better heat dissipation.&lt;br /&gt;
* Softer steering wheel material to improve safety.&lt;br /&gt;
* Smaller front headrests improve field of vision to the rear.&lt;br /&gt;
* Additional computer analysis sensor reads ignition timing and TDC.&lt;br /&gt;
* Seat belt ignition interlock prevents starting without seat belt fastened.&lt;br /&gt;
* Seat belt and brake warning light combined.&lt;br /&gt;
* Super beetle and convertible have slight negative king pin offset.&lt;br /&gt;
* Square glove box latch on Super Beetle.&lt;br /&gt;
* Warning light for hand brake.&lt;br /&gt;
* Park position introduced on automatic stick shift transmission.&lt;br /&gt;
* Alternator with internal regulator late in model year.&lt;br /&gt;
* Distributor with vacuum and centrifugal advance.&lt;br /&gt;
&lt;br /&gt;
==== 1975 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1974 to July 31, 1975&amp;lt;br&amp;gt;Chassis numbers 115,2000,001 - 115,2600,000 (Standard Beetle)&amp;lt;br&amp;gt;135,2000,001 - 135,2600,000 (Super Beetle)&amp;lt;br&amp;gt;Engine numbers D 1,284,227 - D 1,347,142 (1200cc 40HP)&amp;lt;br&amp;gt;AR 0,121,272 - 0,150,000 (1300cc 44bhp Non-USA)&amp;lt;br&amp;gt;AS 0,171,567 - AS 0,269,030 (1600cc 50bhp Non-USA)&amp;lt;br&amp;gt;AJ 0,000,001 - AJ 0,012,405 (1600cc 48HP USA/Japan Fuel Injected)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bosch L-Jetronic Fuel Injection introduced.&lt;br /&gt;
* Engine case gets new alloy (AS21) to improve heat dissipation.&lt;br /&gt;
* Increased horsepower from 46HP to 48HP on 1600cc models.&lt;br /&gt;
* Hole for mechanical fuel pump removed.&lt;br /&gt;
* &amp;quot;Fuel Injection&amp;quot; badge added to decklid.&lt;br /&gt;
* Larger exhaust valve stems improve cooling.&lt;br /&gt;
* Lower clutch pedal pressure.&lt;br /&gt;
* Upgraded cabin heat exchangers.&lt;br /&gt;
* Installation of battery ground strap with diagnosis contact for more accurate computer analysis readings.&lt;br /&gt;
* Odometer triggers red &amp;quot;EGR&amp;quot; light to notify of service intervals.&lt;br /&gt;
* Single tailpipe.&lt;br /&gt;
* Catalytic converter and reduced size fuel filler neck introduced on California models, requiring lead free petrol.&lt;br /&gt;
* Maintenance intervals extended to 15,000 miles.&lt;br /&gt;
* Last year of Super Beetle sedan in US.&lt;br /&gt;
&lt;br /&gt;
==== 1976 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1975 to July 31, 1976&amp;lt;br&amp;gt;Chassis numbers 116,2000,001 - 116,2200,000 (Standard Beetle)&amp;lt;br&amp;gt;156,2000,001 - 156,2200,000 (Cabriolet)&amp;lt;br&amp;gt;Engine numbers D 1,347,143 - D 1,393,631 (1200cc 40HP)&amp;lt;br&amp;gt;AS 0,269,031 - AS 0,401,299 (1600cc 50bhp Non-USA)&amp;lt;br&amp;gt;AJ 0,012,406 - AJ 0,095,935 (1600cc 48HP USA/Japan Fuel Injected)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Metallic paint, full carpets, sports-type steering wheel and rear window defogger optional.&lt;br /&gt;
* New front seats with improved back adjustment.&lt;br /&gt;
* All trim chrome plated.&lt;br /&gt;
* Two speed fresh-air blower on all models.&lt;br /&gt;
* Automatic stick shift transmission discontinued.&lt;br /&gt;
* Speedometer with both MPH and KPH scales late in model year.&lt;br /&gt;
&lt;br /&gt;
==== 1977 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1976 to July 31, 1977&amp;lt;br&amp;gt;Chassis numbers 117,2000,001 - 117,2200,000 (Standard Beetle)&amp;lt;br&amp;gt;157,2000,001 - 157,2200,000 (Cabriolet)&amp;lt;br&amp;gt;Engine numbers D 1,393,632 - D 1,415,740 (1200cc 40HP)&amp;lt;br&amp;gt;AS 0,401,300 - AS 0,528,948 (1600cc 50bhp Non-USA)&amp;lt;br&amp;gt;AJ 0,095,936 - AJ 0,119,687 (1600cc 48HP Fuel Injected)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Redesigned front seat backrests with separate headrests.&lt;br /&gt;
* Redesigned door panels.&lt;br /&gt;
* Plush velour upholstery replaces houndstooth check.&lt;br /&gt;
* New pedals.&lt;br /&gt;
* Plastic headlight rims replace chromed units.&lt;br /&gt;
* Electric rear window defogger introduced for Cabriolet models.&lt;br /&gt;
* Last year of Standard Beetle in the USA.&lt;br /&gt;
* &amp;quot;Champagne Edition&amp;quot; trim package introduced on Cabriolet models.&lt;br /&gt;
&lt;br /&gt;
==== 1978 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1977 to May 31, 1978&amp;lt;br&amp;gt;Chassis numbers 118,2000,001 - 118,2100,001 (Standard Beetle) &amp;lt;ref&amp;gt;These numbers are up to January 18, 1978, when German production of the Beetle ceased.&amp;lt;/ref&amp;gt;&amp;lt;br&amp;gt;158,2000,001 - 158,2100,000 (Cabriolet) &amp;lt;ref&amp;gt;These numbers are up to January 18, 1978, when German production of the Beetle ceased.&amp;lt;/ref&amp;gt;&amp;lt;br&amp;gt;Engine numbers D 1,415,741 - D 1,431,112 (1200cc 40HP)&amp;lt;br&amp;gt;AS 526,949 - AS 610,029 (1600cc 50bhp Non-USA)&amp;lt;br&amp;gt;AJ 0,119,688 - AJ 0,132,850 (1600cc 48HP Fuel Injected)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;Champagne Edition II&amp;quot; trim package introduced on Cabriolet models.&lt;br /&gt;
&lt;br /&gt;
==== 1979 ====&lt;br /&gt;
&#039;&#039;Production dates August 1, 1978 to July 31, 1979&amp;lt;br&amp;gt;Chassis numbers 119,2100,001 - 119,2150,000 (Standard Beetle)&amp;lt;br&amp;gt;159,2000,001 - 159,2036,062 (Cabriolet)&amp;lt;br&amp;gt;&lt;br /&gt;
Engine numbers D 1,431,113 - D 1,432,179 (1200cc 40HP)&amp;lt;br&amp;gt;AS 0,610,030 - AS 0,691,913 (1600cc 50bhp Non-USA)&amp;lt;br&amp;gt;AJ 132,851 - AJ 143,096 (1600cc 48HP Fuel Injected)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Intermittent wiper control added.&lt;br /&gt;
* &amp;quot;Epilogue&amp;quot; edition trim package released.&lt;br /&gt;
* Last year of Cabriolet in the US.&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
* [[Type 2]]&lt;br /&gt;
* [[Type 3]]&lt;br /&gt;
* [[Type 4]]&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= External Links =&lt;br /&gt;
[https://www.vw.com/en/newsroom/lifestyle-and-heritage/an-ode-to-the-bug.html An Ode to the Bug: A History of the Volkswagen Beetle]&lt;br /&gt;
&lt;br /&gt;
{{Type 1}}&lt;br /&gt;
&lt;br /&gt;
[[index.php?title=Category:Type 1]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1972_Type_181_owner%27s_manual&amp;diff=22894</id>
		<title>1972 Type 181 owner&#039;s manual</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1972_Type_181_owner%27s_manual&amp;diff=22894"/>
		<updated>2025-07-19T21:30:20Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1972-volkswagen-type-181-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1972-volkswagen-type-181-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1972-volkswagen-type-181-owners-manual-english/1972%20Volkswagen%20Type%20181%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Rig...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1972-volkswagen-type-181-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1972-volkswagen-type-181-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1972-volkswagen-type-181-owners-manual-english/1972%20Volkswagen%20Type%20181%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Type 181 owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1962_Beetle_owner%27s_manual_(English)&amp;diff=22893</id>
		<title>1962 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1962_Beetle_owner%27s_manual_(English)&amp;diff=22893"/>
		<updated>2025-07-19T20:27:53Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1962 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1962-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1962-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1962-volkswagen-beetle-owners-manual-english/1962%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1962_Beetle_owner%27s_manual_(English)&amp;diff=22892</id>
		<title>1962 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1962_Beetle_owner%27s_manual_(English)&amp;diff=22892"/>
		<updated>2025-07-19T20:27:32Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1962-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1962-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1962-volkswagen-beetle-owners-manual-english/1962%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1962_Beetle_owner%27s_manual_(English)&amp;diff=22891</id>
		<title>1962 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1962_Beetle_owner%27s_manual_(English)&amp;diff=22891"/>
		<updated>2025-07-19T20:27:10Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1962-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1962-volkswagen-beetle-owners-manual-english/1962%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right clic...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1962-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1962-volkswagen-beetle-owners-manual-english/1962%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1974_Super_Beetle_owner%27s_manual_(German)&amp;diff=22890</id>
		<title>1974 Super Beetle owner&#039;s manual (German)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1974_Super_Beetle_owner%27s_manual_(German)&amp;diff=22890"/>
		<updated>2025-07-19T20:13:44Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1974-super-beetle-owners-manual-german/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1974-super-beetle-owners-manual-german/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1974-super-beetle-owners-manual-german/1974%20Super%20Beetle%20Owners%20Manual%20-%20German.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&amp;#039;&amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1974-super-beetle-owners-manual-german/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1974-super-beetle-owners-manual-german/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1974-super-beetle-owners-manual-german/1974%20Super%20Beetle%20Owners%20Manual%20-%20German.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1972_Beetle_owner%27s_manual_(English)&amp;diff=22889</id>
		<title>1972 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1972_Beetle_owner%27s_manual_(English)&amp;diff=22889"/>
		<updated>2025-07-19T19:50:38Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1972 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1972-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1972-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1972-volkswagen-beetle-owners-manual-english/1972%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1972_Beetle_owner%27s_manual_(English)&amp;diff=22888</id>
		<title>1972 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1972_Beetle_owner%27s_manual_(English)&amp;diff=22888"/>
		<updated>2025-07-19T19:50:17Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1972-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1972-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1972-volkswagen-beetle-owners-manual-english/1972%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1972-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1972-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1972-volkswagen-beetle-owners-manual-english/1972%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(French)&amp;diff=22887</id>
		<title>1968 Beetle owner&#039;s manual (French)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(French)&amp;diff=22887"/>
		<updated>2025-07-19T19:35:45Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1968 Beetle owner&amp;#039;s manual (French)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1968-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1968-volkswagen-beetle-owners-manual-french/1968%20Volkswagen%20Beetle%20Owners%20Manual%20-%20French.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(Portuguese)&amp;diff=22886</id>
		<title>1971 Beetle owner&#039;s manual (Portuguese)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(Portuguese)&amp;diff=22886"/>
		<updated>2025-07-19T19:35:33Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1971 Beetle owner&amp;#039;s manual (Portuguese)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-beetle-owners-manual-portuguese/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1971-volkswagen-beetle-owners-manual-portuguese/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1971-volkswagen-beetle-owners-manual-portuguese/1971%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20Portuguese.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(Portuguese)&amp;diff=22885</id>
		<title>1971 Beetle owner&#039;s manual (Portuguese)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(Portuguese)&amp;diff=22885"/>
		<updated>2025-07-19T19:35:07Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-beetle-owners-manual-portuguese/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1971-volkswagen-beetle-owners-manual-portuguese/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1971-volkswagen-beetle-owners-manual-portuguese/1971%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20Portuguese.pdf DOWNLOAD THIS MANUAL]...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-beetle-owners-manual-portuguese/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1971-volkswagen-beetle-owners-manual-portuguese/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1971-volkswagen-beetle-owners-manual-portuguese/1971%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20Portuguese.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(French)&amp;diff=22884</id>
		<title>1968 Beetle owner&#039;s manual (French)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(French)&amp;diff=22884"/>
		<updated>2025-07-19T19:32:58Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1968-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1968-volkswagen-beetle-owners-manual-french/1968%20Volkswagen%20Beetle%20Owners%20Manual%20-%20French.pdf DOWNLOAD THIS MANUAL] (Right click and s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1968-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1968-volkswagen-beetle-owners-manual-french/1968%20Volkswagen%20Beetle%20Owners%20Manual%20-%20French.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(French)&amp;diff=22883</id>
		<title>1967 Beetle owner&#039;s manual (French)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(French)&amp;diff=22883"/>
		<updated>2025-07-19T17:37:48Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1967 Beetle owner&amp;#039;s manual (French)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1967-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1967-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1967-volkswagen-beetle-owners-manual-french/1967%20Volkswagen%20Beetle%20Owners%20Manual%20-%20French.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(French)&amp;diff=22882</id>
		<title>1967 Beetle owner&#039;s manual (French)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(French)&amp;diff=22882"/>
		<updated>2025-07-19T17:36:37Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1967-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1967-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1967-volkswagen-beetle-owners-manual-french/1967%20Volkswagen%20Beetle%20Owners%20Manual%20-%20French.pdf DOWNLOAD THIS MANUAL] (Right click and s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1967-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1967-volkswagen-beetle-owners-manual-french/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1967-volkswagen-beetle-owners-manual-french/1967%20Volkswagen%20Beetle%20Owners%20Manual%20-%20French.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(English)&amp;diff=22881</id>
		<title>1968 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(English)&amp;diff=22881"/>
		<updated>2025-07-19T17:25:25Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1968 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1968-volkswagen-beetle-owners-manual-english/1968%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(English)&amp;diff=22880</id>
		<title>1968 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1968_Beetle_owner%27s_manual_(English)&amp;diff=22880"/>
		<updated>2025-07-19T17:25:00Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1968-volkswagen-beetle-owners-manual-english/1968%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1968-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1968-volkswagen-beetle-owners-manual-english/1968%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Super_Beetle_owner%27s_manual_(Spanish)&amp;diff=22879</id>
		<title>1971 Super Beetle owner&#039;s manual (Spanish)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Super_Beetle_owner%27s_manual_(Spanish)&amp;diff=22879"/>
		<updated>2025-07-19T17:23:38Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1971 Super Beetle owner&amp;#039;s manual (Spanish)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1971-volkswagen-super-beetle-owners-manual-spanish/1971%20Volkswagen%20Super%20Beetle%20Owners%20Manual%20-%20Spanish.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(Spanish)&amp;diff=22878</id>
		<title>1971 Beetle owner&#039;s manual (Spanish)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(Spanish)&amp;diff=22878"/>
		<updated>2025-07-19T17:22:58Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: WestyMan1971 moved page 1971 Beetle owner&amp;#039;s manual (Spanish) to 1971 Super Beetle owner&amp;#039;s manual (Spanish): Misspelled title&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[1971 Super Beetle owner&#039;s manual (Spanish)]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Super_Beetle_owner%27s_manual_(Spanish)&amp;diff=22877</id>
		<title>1971 Super Beetle owner&#039;s manual (Spanish)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Super_Beetle_owner%27s_manual_(Spanish)&amp;diff=22877"/>
		<updated>2025-07-19T17:22:58Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: WestyMan1971 moved page 1971 Beetle owner&amp;#039;s manual (Spanish) to 1971 Super Beetle owner&amp;#039;s manual (Spanish): Misspelled title&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1971-volkswagen-super-beetle-owners-manual-spanish/1971%20Volkswagen%20Super%20Beetle%20Owners%20Manual%20-%20Spanish.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Super_Beetle_owner%27s_manual_(Spanish)&amp;diff=22876</id>
		<title>1971 Super Beetle owner&#039;s manual (Spanish)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Super_Beetle_owner%27s_manual_(Spanish)&amp;diff=22876"/>
		<updated>2025-07-19T17:22:31Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1971-volkswagen-super-beetle-owners-manual-spanish/1971%20Volkswagen%20Super%20Beetle%20Owners%20Manual%20-%20Spanish.pdf DOWNLOAD T...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1971-volkswagen-super-beetle-owners-manual-spanish/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1971-volkswagen-super-beetle-owners-manual-spanish/1971%20Volkswagen%20Super%20Beetle%20Owners%20Manual%20-%20Spanish.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1965_Beetle_owner%27s_manual_(English)&amp;diff=22875</id>
		<title>1965 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1965_Beetle_owner%27s_manual_(English)&amp;diff=22875"/>
		<updated>2025-07-19T16:31:43Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1965 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1965-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1965-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1965-volkswagen-beetle-owners-manual-english/1965%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1965_Beetle_owner%27s_manual_(English)&amp;diff=22874</id>
		<title>1965 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1965_Beetle_owner%27s_manual_(English)&amp;diff=22874"/>
		<updated>2025-07-19T16:31:19Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1965-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1965-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1965-volkswagen-beetle-owners-manual-english/1965%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1965-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1965-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1965-volkswagen-beetle-owners-manual-english/1965%20Volkswagen%20Beetle%20Owners%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(English)&amp;diff=22873</id>
		<title>1971 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(English)&amp;diff=22873"/>
		<updated>2025-07-19T15:58:14Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1971 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1971-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1971-volkswagen-beetle-owners-manual-english/1971%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(English)&amp;diff=22872</id>
		<title>1971 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1971_Beetle_owner%27s_manual_(English)&amp;diff=22872"/>
		<updated>2025-07-19T15:57:47Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1971-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1971-volkswagen-beetle-owners-manual-english/1971%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right clic...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1971-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1971-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1971-volkswagen-beetle-owners-manual-english/1971%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1970_Beetle_owner%27s_manual_(English)&amp;diff=22871</id>
		<title>1970 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1970_Beetle_owner%27s_manual_(English)&amp;diff=22871"/>
		<updated>2025-07-19T15:56:40Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1970 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1970-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1970-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1970-volkswagen-beetle-owners-manual-english/1970%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1970_Beetle_owner%27s_manual_(English)&amp;diff=22870</id>
		<title>1970 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1970_Beetle_owner%27s_manual_(English)&amp;diff=22870"/>
		<updated>2025-07-19T15:56:07Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1970-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1970-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1970-volkswagen-beetle-owners-manual-english/1970%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right clic...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1970-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1970-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1970-volkswagen-beetle-owners-manual-english/1970%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(English)&amp;diff=22869</id>
		<title>1969 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(English)&amp;diff=22869"/>
		<updated>2025-07-19T15:52:09Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1969 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1969-volkswagen-beetle-owners-manual-usa-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1969-volkswagen-beetle-owners-manual-usa-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1969-volkswagen-beetle-owners-manual-usa-english/1969%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20USA%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(English)&amp;diff=22868</id>
		<title>1969 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(English)&amp;diff=22868"/>
		<updated>2025-07-19T15:51:42Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1969-volkswagen-beetle-owners-manual-usa-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1969-volkswagen-beetle-owners-manual-usa-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1969-volkswagen-beetle-owners-manual-usa-english/1969%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20USA%20English.pdf DOWNLOAD THIS M...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1969-volkswagen-beetle-owners-manual-usa-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1969-volkswagen-beetle-owners-manual-usa-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1969-volkswagen-beetle-owners-manual-usa-english/1969%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20USA%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(Italian)&amp;diff=22867</id>
		<title>1969 Beetle owner&#039;s manual (Italian)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(Italian)&amp;diff=22867"/>
		<updated>2025-07-19T15:50:16Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1969 Beetle owner&amp;#039;s manual (Italian)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1969-volkswagen-beetle-owners-manual-italian/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1969-volkswagen-beetle-owners-manual-italian/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1969-volkswagen-beetle-owners-manual-italian/1969%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20Italian.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(Italian)&amp;diff=22866</id>
		<title>1969 Beetle owner&#039;s manual (Italian)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1969_Beetle_owner%27s_manual_(Italian)&amp;diff=22866"/>
		<updated>2025-07-19T15:49:43Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1969-volkswagen-beetle-owners-manual-italian/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1969-volkswagen-beetle-owners-manual-italian/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1969-volkswagen-beetle-owners-manual-italian/1969%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20Italian.pdf DOWNLOAD THIS MANUAL] (Right clic...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1969-volkswagen-beetle-owners-manual-italian/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1969-volkswagen-beetle-owners-manual-italian/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1969-volkswagen-beetle-owners-manual-italian/1969%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20Italian.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(English)&amp;diff=22865</id>
		<title>1967 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(English)&amp;diff=22865"/>
		<updated>2025-07-19T15:47:48Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1967 Beetle owner&amp;#039;s manual (English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1967-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1967-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1967-volkswagen-beetle-owners-manual-english/1967%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(English)&amp;diff=22864</id>
		<title>1967 Beetle owner&#039;s manual (English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1967_Beetle_owner%27s_manual_(English)&amp;diff=22864"/>
		<updated>2025-07-19T15:47:07Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Created page with &amp;quot;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1967-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/details/1967-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;[https://archive.org/download/1967-volkswagen-beetle-owners-manual-english/1967%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right clic...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1967-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1967-volkswagen-beetle-owners-manual-english/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1967-volkswagen-beetle-owners-manual-english/1967%20Volkswagen%20Beetle%20Owner%27s%20Manual%20-%20English.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Beetle owner&#039;s manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
	<entry>
		<id>https://vwpartswiki.com/index.php?title=1952_-_1957_Volkswagen_Passenger_Cars_Workshop_Manual_(USA_-English)&amp;diff=22863</id>
		<title>1952 - 1957 Volkswagen Passenger Cars Workshop Manual (USA -English)</title>
		<link rel="alternate" type="text/html" href="https://vwpartswiki.com/index.php?title=1952_-_1957_Volkswagen_Passenger_Cars_Workshop_Manual_(USA_-English)&amp;diff=22863"/>
		<updated>2025-07-19T15:43:50Z</updated>

		<summary type="html">&lt;p&gt;WestyMan1971: Protected &amp;quot;1952 - 1957 Volkswagen Passenger Cars Workshop Manual (USA -English)&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;iframe key=&amp;quot;archive&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; level=&amp;quot;www&amp;quot; path=&amp;quot;details/1952-57-volkswagen-passenger-cars-workshop-manual/mode/2up?view=theater&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/details/1952-57-volkswagen-passenger-cars-workshop-manual/mode/2up?view=theater&amp;amp;ui=embed&amp;amp;wrapper=false VIEW THIS MANUAL FULLSCREEN]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://archive.org/download/1952-57-volkswagen-passenger-cars-workshop-manual/1952-57%20Volkswagen%20Passenger%20Cars%20Workshop%20Manual.pdf DOWNLOAD THIS MANUAL] (Right click and select &amp;quot;save as&amp;quot;)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:Classicarchive logo.png|150px|left]]&#039;&#039;&#039;Manuals are from the collection of [https://www.theclassicarchive.net The  classiCARchive]. To submit a manual, please visit them [https://www.theclassicarchive.net HERE].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Type 1 service manuals]]&lt;/div&gt;</summary>
		<author><name>WestyMan1971</name></author>
	</entry>
</feed>