<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AMedical_cases_data%2Fdoc</id>
	<title>Module:Medical cases data/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AMedical_cases_data%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Medical_cases_data/doc&amp;action=history"/>
	<updated>2026-04-21T15:50:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Medical_cases_data/doc&amp;diff=143958&amp;oldid=prev</id>
		<title>imported&gt;Mxn: /* Configuration */</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Medical_cases_data/doc&amp;diff=143958&amp;oldid=prev"/>
		<updated>2020-08-09T18:24:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|alpha}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
This module inserts charts and maps of medical cases related to a pandemic, broken down by subregions.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;caseTable&amp;lt;/code&amp;gt; ==&lt;br /&gt;
Inserts a table of cases and deaths by region.&lt;br /&gt;
&lt;br /&gt;
Usage: {{mlx|{{BASEPAGENAME}}|&amp;#039;&amp;#039;caseTable&amp;#039;&amp;#039;|config{{=}}&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Demo|module|demo_module={{BASEPAGENAME}}|demo_module_func=caseTable|config=San Francisco Bay Area}}&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;map&amp;lt;/code&amp;gt; ==&lt;br /&gt;
Inserts an interactive map of cases and deaths by region.&lt;br /&gt;
&lt;br /&gt;
Usage: {{mlx|{{BASEPAGENAME}}|&amp;#039;&amp;#039;map&amp;#039;&amp;#039;|config{{=}}&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;|frameWidth{{=}}&amp;#039;&amp;#039;Frame width in pixels&amp;#039;&amp;#039;|frameHeight{{=}}&amp;#039;&amp;#039;Frame height in pixels&amp;#039;&amp;#039;|caption{{=}}&amp;#039;&amp;#039;Caption as wikitext&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Demo|module|demo_module={{BASEPAGENAME}}|demo_module_func=map|config=San Francisco Bay Area|frameHeight=300}}&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
[https://w.wiki/Z7E Run this Wikidata Query Service query] to obtain a list of localized outbreaks to add to the &amp;lt;code&amp;gt;regions&amp;lt;/code&amp;gt; property in the table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
return {&lt;br /&gt;
	caption = &amp;quot;Cases by county&amp;quot;, -- Table or map caption as wikitext&lt;br /&gt;
	outbreakItem = &amp;quot;Q94050008&amp;quot;, -- QID of the Wikidata item representing the &lt;br /&gt;
	regionTerm = &amp;quot;Counties&amp;quot;, -- Term for each region, used as the first column&amp;#039;s header&lt;br /&gt;
	regionNamePattern = &amp;quot;(.+) County&amp;quot;, -- Naming pattern for regions, applied to each region&amp;#039;s item&amp;#039;s label to display a short name in first column; see [[mw:Extension:Scribunto/Lua reference manual#Patterns]]&lt;br /&gt;
	populationDate = &amp;quot;2020-01-01&amp;quot;, -- Date of the population figures used to calculate per-capita infection rates&lt;br /&gt;
	regions = {&lt;br /&gt;
		-- Add a table for each region&amp;#039;s outbreak&lt;br /&gt;
		{&lt;br /&gt;
			-- QID of the outbreak&lt;br /&gt;
			entity = &amp;quot;Q94259368&amp;quot;,&lt;br /&gt;
			-- If there is tabular data for the outbreak, specify any column names that differ from the defaults&lt;br /&gt;
			columns = {cases = &amp;quot;AC_CumulCases&amp;quot;, deaths = &amp;quot;AC_CumulDeaths&amp;quot;},&lt;br /&gt;
			-- Optional footnote for the region as wikitext&lt;br /&gt;
			note = &amp;quot;Including cases in the City of Berkeley, which are reported by the Berkeley Public Health Division.&amp;quot;,&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	columnNotes = {&lt;br /&gt;
		cases = &amp;quot;Cumulative cases reported by each county&amp;#039;s health department.&amp;quot;, -- (Optional) Footnote for the &amp;quot;Cases&amp;quot; column as wikitext&lt;br /&gt;
		recoveries = &amp;quot;Counties differ in what they consider to be a recovery.&amp;quot;, -- (Optional) Footnote for the &amp;quot;Recoveries&amp;quot; column as wikitext&lt;br /&gt;
		deaths = &amp;quot;Includes suspected cases.&amp;quot;, -- (Optional) Footnote for the &amp;quot;Deaths&amp;quot; column as wikitext&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Available configurations ==&lt;br /&gt;
{{Special:PrefixIndex/Module:Medical cases data/}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Mxn</name></author>
	</entry>
</feed>