<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.avatarverse.net/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.avatarverse.net/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="http://wiki.avatarverse.net/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-11-24T10:39:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://wiki.avatarverse.net/index.php?title=MediaWiki:Common.js&amp;diff=2632&amp;oldid=prev</id>
		<title>A2TL: Fix timeline text encoding and deploy the managed character-lifetime browser</title>
		<link rel="alternate" type="text/html" href="http://wiki.avatarverse.net/index.php?title=MediaWiki:Common.js&amp;diff=2632&amp;oldid=prev"/>
		<updated>2026-11-17T12:41:08Z</updated>

		<summary type="html">&lt;p&gt;Fix timeline text encoding and deploy the managed character-lifetime browser&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:41, 17 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/* Any JavaScript here will be loaded for all users on every page load. */&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/* Any JavaScript here will be loaded for all users on every page load. */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/* Avatarverse timeline browser. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Installed by an interface administrator &lt;/del&gt;in&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;// BEGIN AV TIMELINE (managed by A2TL)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/* Avatarverse timeline browser. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Maintained through the A2TL wiki MCP &lt;/ins&gt;in&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * MediaWiki:Common.js. No external dependencies, account access or writes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * MediaWiki:Common.js. No external dependencies, account access or writes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Only runs on the two timeline explorer pages. Calendar constants match Time.java.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Only runs on the two timeline explorer pages. Calendar constants match Time.java.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    // Some legacy records retain real-world heading labels in DateText. Those&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    // Some legacy records retain real-world heading labels in DateText. Those&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    // are provenance, not in-world dates; keep the stored value, show AG instead.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    // are provenance, not in-world dates; keep the stored value, show AG instead.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if (!/\bAG\b/.test(date)) date=start===end?start+&#039; AG&#039;:start+&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;â€“&lt;/del&gt;&#039;+end+&#039; AG&#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if (!/\bAG\b/.test(date)) date=start===end?start+&#039; AG&#039;:start+&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u2013&lt;/ins&gt;&#039;+end+&#039; AG&#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return { id:row.EventID, start:start, end:end, date:date,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return { id:row.EventID, start:start, end:end, date:date,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      title:plain(row.Title), prose:plain(row.Description) || plain(row.Title),&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      title:plain(row.Title), prose:plain(row.Description) || plain(row.Title),&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;hikari&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;caldera city&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;ember island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;takemi&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;takemaru&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;furushiki&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;noriko village&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;kayamoto island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;hiseki&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;crescent island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;imagawa&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;hikari&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;caldera city&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;ember island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;takemi&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;takemaru&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;furushiki&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;noriko village&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;kayamoto island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;hiseki&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;crescent island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;imagawa&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;northern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;southern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;western air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;eastern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;air temple island&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;floating sands&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;whale tail island&amp;#039;:&amp;#039;Air Nation&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;northern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;southern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;western air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;eastern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;air temple island&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;floating sands&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;whale tail island&amp;#039;:&amp;#039;Air Nation&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &#039;agna &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;qelâ€™a&lt;/del&gt;&#039;:&#039;Northern Water Tribe&#039;,&#039;nunatak&#039;:&#039;Northern Water Tribe&#039;,&#039;ikiaq&#039;:&#039;Northern Water Tribe&#039;,&#039;anana &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tunâ€™ila&lt;/del&gt;&#039;:&#039;Southern Water Tribe&#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &#039;agna &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;qel\u2019a&lt;/ins&gt;&#039;:&#039;Northern Water Tribe&#039;,&#039;nunatak&#039;:&#039;Northern Water Tribe&#039;,&#039;ikiaq&#039;:&#039;Northern Water Tribe&#039;,&#039;anana &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tun\u2019ila&lt;/ins&gt;&#039;:&#039;Southern Water Tribe&#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;masked village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;hanging village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;banyan grove&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;radish lotus village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;bao grove&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;masked village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;hanging village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;banyan grove&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;radish lotus village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;bao grove&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &#039;ninuno&#039;:&#039;Sun Warriors&#039;,&#039;la &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bayÄn&lt;/del&gt;&#039;:&#039;Sun Warriors&#039;,&#039;hortezuca&#039;:&#039;Sun Warriors&#039;,&#039;bianqui&#039;:&#039;Sun Warriors&#039;,&#039;rakanet&#039;:&#039;Sun Warriors&#039;,&#039;arangoy&#039;:&#039;Sun Warriors&#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &#039;ninuno&#039;:&#039;Sun Warriors&#039;,&#039;la &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bay\u0101n&lt;/ins&gt;&#039;:&#039;Sun Warriors&#039;,&#039;hortezuca&#039;:&#039;Sun Warriors&#039;,&#039;bianqui&#039;:&#039;Sun Warriors&#039;,&#039;rakanet&#039;:&#039;Sun Warriors&#039;,&#039;arangoy&#039;:&#039;Sun Warriors&#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;misty palms oasis&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;si wong desert&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;itgel&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;kherdu arena&amp;#039;:&amp;#039;Sand Tribes&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &amp;#039;misty palms oasis&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;si wong desert&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;itgel&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;kherdu arena&amp;#039;:&amp;#039;Sand Tribes&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    };&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    };&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l88&quot;&gt;Line 88:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 89:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  function ageLabel(row, age, currentYear) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  function ageLabel(row, age, currentYear) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var low = Math.max(0,row.start-(currentYear-age)-1), high = Math.min(age,Math.max(0,row.end-(currentYear-age-1)));&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var low = Math.max(0,row.start-(currentYear-age)-1), high = Math.min(age,Math.max(0,row.end-(currentYear-age-1)));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return high&amp;lt;=1?&#039;Around your birth&#039;:low===high?&#039;About age &#039;+low:&#039;About age &#039;+low+&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;â€“&lt;/del&gt;&#039;+high;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return high&amp;lt;=1?&#039;Around your birth&#039;:low===high?&#039;About age &#039;+low:&#039;About age &#039;+low+&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u2013&lt;/ins&gt;&#039;+high;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  async function collect(request) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  async function collect(request) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l111&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 112:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var lifetime=page===&amp;#039;Timeline/Character_lifetime&amp;#039;, currentYear=worldYear(Date.now());&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var lifetime=page===&amp;#039;Timeline/Character_lifetime&amp;#039;, currentYear=worldYear(Date.now());&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var fallback=document.getElementById(&amp;#039;av-timeline-fallback&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var fallback=document.getElementById(&amp;#039;av-timeline-fallback&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var loading=document.createElement(&#039;p&#039;);loading.setAttribute(&#039;role&#039;,&#039;status&#039;);loading.textContent=&#039;Loading &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;historyâ€¦&lt;/del&gt;&#039;;root.appendChild(loading);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var loading=document.createElement(&#039;p&#039;);loading.setAttribute(&#039;role&#039;,&#039;status&#039;);loading.textContent=&#039;Loading &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;history\u2026&lt;/ins&gt;&#039;;root.appendChild(loading);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var endpoint=new URL(mw.util.wikiScript(&amp;#039;api&amp;#039;),location.origin);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    var endpoint=new URL(mw.util.wikiScript(&amp;#039;api&amp;#039;),location.origin);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    collect(async function (offset) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    collect(async function (offset) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l134&quot;&gt;Line 134:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 135:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      root.replaceChildren();&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      root.replaceChildren();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      function el(tag,text,parent) {var node=document.createElement(tag);if(text)node.textContent=text;if(parent)parent.appendChild(node);return node;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      function el(tag,text,parent) {var node=document.createElement(tag);if(text)node.textContent=text;if(parent)parent.appendChild(node);return node;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      var form=el(&#039;form&#039;,null,root);form.setAttribute(&#039;aria-label&#039;,lifetime?&#039;Your &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;characterâ€™s &lt;/del&gt;lifetime&#039;:&#039;Explore history&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      var form=el(&#039;form&#039;,null,root);form.setAttribute(&#039;aria-label&#039;,lifetime?&#039;Your &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;character\u2019s &lt;/ins&gt;lifetime&#039;:&#039;Explore history&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      form.style.cssText=&amp;#039;display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;border:1px solid var(--border-color-base,#777);border-radius:.6rem;margin-block:1rem&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      form.style.cssText=&amp;#039;display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;border:1px solid var(--border-color-base,#777);border-radius:.6rem;margin-block:1rem&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      function field(label,key,type) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      function field(label,key,type) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        var box=el(&amp;#039;label&amp;#039;,label,form);box.style.cssText=&amp;#039;display:flex;flex-direction:column;gap:.35rem;min-width:10rem;flex:1&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        var box=el(&amp;#039;label&amp;#039;,label,form);box.style.cssText=&amp;#039;display:flex;flex-direction:column;gap:.35rem;min-width:10rem;flex:1&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        var input=el(type===&amp;#039;select&amp;#039;?&amp;#039;select&amp;#039;:&amp;#039;input&amp;#039;,null,box);input.id=&amp;#039;av-timeline-&amp;#039;+key;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        var input=el(type===&amp;#039;select&amp;#039;?&amp;#039;select&amp;#039;:&amp;#039;input&amp;#039;,null,box);input.id=&amp;#039;av-timeline-&amp;#039;+key;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;       input.setAttribute(&#039;aria-label&#039;,label);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        if(type!==&amp;#039;select&amp;#039;)input.type=type;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        if(type!==&amp;#039;select&amp;#039;)input.type=type;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        input.style.cssText=&amp;#039;font:inherit;padding:.55rem;border:1px solid #888;border-radius:.3rem;background:var(--color-surface-1,#fff);color:var(--color-base,#222);max-width:100%&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        input.style.cssText=&amp;#039;font:inherit;padding:.55rem;border:1px solid #888;border-radius:.3rem;background:var(--color-surface-1,#fff);color:var(--color-base,#222);max-width:100%&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l182&quot;&gt;Line 182:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 184:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        var matched;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        var matched;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        try{matched=select(rows,state,currentYear);}catch(error){summary.textContent=error.message;results.replaceChildren();more.hidden=true;return;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        try{matched=select(rows,state,currentYear);}catch(error){summary.textContent=error.message;results.replaceChildren();more.hidden=true;return;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        summary.textContent=(lifetime?&#039;Current year: &#039;+currentYear+&#039; AG. Approximate birth year: &#039;+(currentYear-Number(state.age)-1)+&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;â€“&lt;/del&gt;&#039;+(currentYear-Number(state.age))+&#039; AG. &#039;:&#039;&#039;)+matched.length+&#039; events match; showing &#039;+Math.min(shown,matched.length)+&#039;.&#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        summary.textContent=(lifetime?&#039;Current year: &#039;+currentYear+&#039; AG. Approximate birth year: &#039;+(currentYear-Number(state.age)-1)+&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u2013&lt;/ins&gt;&#039;+(currentYear-Number(state.age))+&#039; AG. &#039;:&#039;&#039;)+matched.length+&#039; events match; showing &#039;+Math.min(shown,matched.length)+&#039;.&#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        help.textContent=&amp;#039;Worldwide events stay included alongside relevant national and hometown history. Ages are approximate because birthdays and many event dates are unknown. &amp;#039;+(state.publicOnly?&amp;#039;Private and later-revealed information is excluded.&amp;#039;:&amp;#039;Some results contain private or later-revealed information; these are not automatic character knowledge.&amp;#039;)+&amp;#039; These are backstory possibilities, not events your character necessarily witnessed.&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        help.textContent=&amp;#039;Worldwide events stay included alongside relevant national and hometown history. Ages are approximate because birthdays and many event dates are unknown. &amp;#039;+(state.publicOnly?&amp;#039;Private and later-revealed information is excluded.&amp;#039;:&amp;#039;Some results contain private or later-revealed information; these are not automatic character knowledge.&amp;#039;)+&amp;#039; These are backstory possibilities, not events your character necessarily witnessed.&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        if(!state.majorOnly)help.textContent+=&amp;#039; Smaller gatherings and announced plans are also included.&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        if(!state.majorOnly)help.textContent+=&amp;#039; Smaller gatherings and announced plans are also included.&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l190&quot;&gt;Line 190:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 192:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        matched.slice(0,shown).forEach(function(r){&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        matched.slice(0,shown).forEach(function(r){&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var card=el(&amp;#039;div&amp;#039;,null,results);card.className=&amp;#039;av-timeline-result&amp;#039;;card.style.cssText=&amp;#039;border-inline-start:3px solid var(--color-progressive,#648dd8);padding:.6rem 1rem;margin-block:1rem&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var card=el(&amp;#039;div&amp;#039;,null,results);card.className=&amp;#039;av-timeline-result&amp;#039;;card.style.cssText=&amp;#039;border-inline-start:3px solid var(--color-progressive,#648dd8);padding:.6rem 1rem;margin-block:1rem&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var date=el(&#039;p&#039;,r.date+(lifetime?&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Â· &lt;/del&gt;&#039;+ageLabel(r,Number(state.age),currentYear):&#039;&#039;),card);date.style.cssText=&#039;font-weight:600;margin-block:.15rem .5rem&#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var date=el(&#039;p&#039;,r.date+(lifetime?&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u00b7 &lt;/ins&gt;&#039;+ageLabel(r,Number(state.age),currentYear):&#039;&#039;),card);date.style.cssText=&#039;font-weight:600;margin-block:.15rem .5rem&#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          el(&amp;#039;p&amp;#039;,r.prose,card).style.marginBlock=&amp;#039;.4rem&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          el(&amp;#039;p&amp;#039;,r.prose,card).style.marginBlock=&amp;#039;.4rem&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if(r.visibility!==&amp;#039;public&amp;#039;)el(&amp;#039;p&amp;#039;,r.visibility===&amp;#039;secret-at-time&amp;#039;?&amp;#039;Private at the time; do not assume your character knew this.&amp;#039;:r.visibility===&amp;#039;later-revealed&amp;#039;?&amp;#039;Revealed later; the public disclosure date is not established here.&amp;#039;:&amp;#039;Public knowledge has not been established for this account.&amp;#039;,card);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if(r.visibility!==&amp;#039;public&amp;#039;)el(&amp;#039;p&amp;#039;,r.visibility===&amp;#039;secret-at-time&amp;#039;?&amp;#039;Private at the time; do not assume your character knew this.&amp;#039;:r.visibility===&amp;#039;later-revealed&amp;#039;?&amp;#039;Revealed later; the public disclosure date is not established here.&amp;#039;:&amp;#039;Public knowledge has not been established for this account.&amp;#039;,card);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var context=[r.scope===&#039;global&#039;?&#039;Worldwide&#039;:r.polities.join(&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Â· &lt;/del&gt;&#039;),r.towns.join(&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Â· &lt;/del&gt;&#039;),r.arcs.join(&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Â· &lt;/del&gt;&#039;)].filter(Boolean).join(&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;â€” &lt;/del&gt;&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var context=[r.scope===&#039;global&#039;?&#039;Worldwide&#039;:r.polities.join(&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u00b7 &lt;/ins&gt;&#039;),r.towns.join(&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u00b7 &lt;/ins&gt;&#039;),r.arcs.join(&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u00b7 &lt;/ins&gt;&#039;)].filter(Boolean).join(&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\u2014 &lt;/ins&gt;&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if(context)el(&amp;#039;small&amp;#039;,context,card);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if(context)el(&amp;#039;small&amp;#039;,context,card);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var line=el(&amp;#039;div&amp;#039;,null,card), link=el(&amp;#039;a&amp;#039;,&amp;#039;Source record&amp;#039;,line);link.href=mw.util.getUrl(r.page);link.setAttribute(&amp;#039;aria-label&amp;#039;,&amp;#039;Source record for &amp;#039;+r.title);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          var line=el(&amp;#039;div&amp;#039;,null,card), link=el(&amp;#039;a&amp;#039;,&amp;#039;Source record&amp;#039;,line);link.href=mw.util.getUrl(r.page);link.setAttribute(&amp;#039;aria-label&amp;#039;,&amp;#039;Source record for &amp;#039;+r.title);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l203&quot;&gt;Line 203:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 205:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  return {worldYear:worldYear,normalise:normalise,nationMatch:nationMatch,hometownNations:hometownNations,select:select,ageLabel:ageLabel,collect:collect,mount:mount};&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  return {worldYear:worldYear,normalise:normalise,nationMatch:nationMatch,hometownNations:hometownNations,select:select,ageLabel:ageLabel,collect:collect,mount:mount};&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}));&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;// END AV TIMELINE (managed by A2TL)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff:1.41:old-2631:rev-2632:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>A2TL</name></author>
	</entry>
	<entry>
		<id>http://wiki.avatarverse.net/index.php?title=MediaWiki:Common.js&amp;diff=2631&amp;oldid=prev</id>
		<title>Aztl: Created page with &quot;/* Any JavaScript here will be loaded for all users on every page load. */ /* Avatarverse timeline browser. Installed by an interface administrator in  * MediaWiki:Common.js. No external dependencies, account access or writes.  * Only runs on the two timeline explorer pages. Calendar constants match Time.java.  */ (function (factory) {  &#039;use strict&#039;;  var model = factory();  if (typeof window !== &#039;undefined&#039; &amp;&amp; typeof mw !== &#039;undefined&#039;) mw.loader.using(&#039;mediawiki.util&#039;)...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.avatarverse.net/index.php?title=MediaWiki:Common.js&amp;diff=2631&amp;oldid=prev"/>
		<updated>2026-11-17T12:29:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;span class=&quot;autocomment&quot;&gt;Any JavaScript here will be loaded for all users on every page load.: &lt;/span&gt; &lt;span class=&quot;autocomment&quot;&gt;Avatarverse timeline browser. Installed by an interface administrator in  * MediaWiki:Common.js. No external dependencies, account access or writes.  * Only runs on the two timeline explorer pages. Calendar constants match Time.java.: &lt;/span&gt; (function (factory) {  &amp;#039;use strict&amp;#039;;  var model = factory();  if (typeof window !== &amp;#039;undefined&amp;#039; &amp;amp;&amp;amp; typeof mw !== &amp;#039;undefined&amp;#039;) mw.loader.using(&amp;#039;mediawiki.util&amp;#039;)...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Any JavaScript here will be loaded for all users on every page load. */&lt;br /&gt;
/* Avatarverse timeline browser. Installed by an interface administrator in&lt;br /&gt;
 * MediaWiki:Common.js. No external dependencies, account access or writes.&lt;br /&gt;
 * Only runs on the two timeline explorer pages. Calendar constants match Time.java.&lt;br /&gt;
 */&lt;br /&gt;
(function (factory) {&lt;br /&gt;
 &amp;#039;use strict&amp;#039;;&lt;br /&gt;
 var model = factory();&lt;br /&gt;
 if (typeof window !== &amp;#039;undefined&amp;#039; &amp;amp;&amp;amp; typeof mw !== &amp;#039;undefined&amp;#039;) mw.loader.using(&amp;#039;mediawiki.util&amp;#039;).then(function () {mw.hook(&amp;#039;wikipage.content&amp;#039;).add(function () { model.mount(); });});&lt;br /&gt;
 else if (typeof module === &amp;#039;object&amp;#039; &amp;amp;&amp;amp; module.exports) module.exports = model;&lt;br /&gt;
}(function () {&lt;br /&gt;
 &amp;#039;use strict&amp;#039;;&lt;br /&gt;
 var EPOCH = 1711339200000, YEAR_MS = 4838400000;&lt;br /&gt;
 var PAGE_SIZE = 20;&lt;br /&gt;
 function worldYear(now) { return 164 + Math.floor((now - EPOCH) / YEAR_MS); }&lt;br /&gt;
 function list(value) { return String(value || &amp;#039;&amp;#039;).split(&amp;#039;;&amp;#039;).map(function (s) { return s.trim(); }).filter(Boolean); }&lt;br /&gt;
 function plain(value) {&lt;br /&gt;
   return String(value || &amp;#039;&amp;#039;).replace(/\[\[([^\]|]+)\|([^\]]+)\]\]/g, &amp;#039;$2&amp;#039;).replace(/\[\[([^\]]+)\]\]/g, &amp;#039;$1&amp;#039;).replace(/&amp;#039;{2,3}/g, &amp;#039;&amp;#039;);&lt;br /&gt;
 }&lt;br /&gt;
 function normalise(row) {&lt;br /&gt;
   var start = Number(row.YearStart), end = Number(row.YearEnd || row.YearStart);&lt;br /&gt;
   if (!row.EventID || !Number.isInteger(start) || !Number.isInteger(end) || end &amp;lt; start) throw new Error(&amp;#039;Invalid timeline record.&amp;#039;);&lt;br /&gt;
   var date=plain(row.DateText);&lt;br /&gt;
   // Some legacy records retain real-world heading labels in DateText. Those&lt;br /&gt;
   // are provenance, not in-world dates; keep the stored value, show AG instead.&lt;br /&gt;
   if (!/\bAG\b/.test(date)) date=start===end?start+&amp;#039; AG&amp;#039;:start+&amp;#039;â€“&amp;#039;+end+&amp;#039; AG&amp;#039;;&lt;br /&gt;
   return { id:row.EventID, start:start, end:end, date:date,&lt;br /&gt;
     title:plain(row.Title), prose:plain(row.Description) || plain(row.Title),&lt;br /&gt;
     polities:list(row.Polities), towns:list(row.Locations), arcs:list(row.Arcs), tags:list(row.Subtags),&lt;br /&gt;
     scope:row.Scope, visibility:row.Visibility, status:row.Status, type:row.PrimaryType,&lt;br /&gt;
     major:/\bBackstory importance: major\./.test(row.EditorialNotes || &amp;#039;&amp;#039;),&lt;br /&gt;
     unverified:/\bBackstory importance: unverified\./.test(row.EditorialNotes || &amp;#039;&amp;#039;),&lt;br /&gt;
     page:row.Page || row._pageName || &amp;#039;Timeline/Data/&amp;#039;+start, index:Number(row.SourceIndex) || 0 };&lt;br /&gt;
 }&lt;br /&gt;
 function nationMatch(polities, nation) {&lt;br /&gt;
   if (!nation) return true;&lt;br /&gt;
   if (polities.indexOf(nation)&amp;gt;=0) return true;&lt;br /&gt;
   // An undivided Water Tribe record concerns both poles. A record explicitly&lt;br /&gt;
   // assigned to only one pole does not automatically concern the other.&lt;br /&gt;
   return /^(Northern|Southern) Water Tribe$/.test(nation) &amp;amp;&amp;amp; polities.indexOf(&amp;#039;Water Tribe&amp;#039;)&amp;gt;=0&lt;br /&gt;
     &amp;amp;&amp;amp; !polities.some(function (p) { return /^(Northern|Southern) Water Tribe$/.test(p); });&lt;br /&gt;
 }&lt;br /&gt;
 function hometownNations(town, year) {&lt;br /&gt;
   town=String(town || &amp;#039;&amp;#039;).trim().toLocaleLowerCase();&lt;br /&gt;
   if (town===&amp;#039;republic city&amp;#039;) {&lt;br /&gt;
     if (year&amp;gt;=168 || year&amp;lt;110) return [&amp;#039;Earth Kingdom&amp;#039;];&lt;br /&gt;
     if (year===121 || year===122) return [&amp;#039;United Republic of Nations&amp;#039;,&amp;#039;Fire Nation&amp;#039;];&lt;br /&gt;
     if (year===134 || year===135) return [&amp;#039;United Republic of Nations&amp;#039;,&amp;#039;Sun Warriors&amp;#039;];&lt;br /&gt;
     return [&amp;#039;United Republic of Nations&amp;#039;];&lt;br /&gt;
   }&lt;br /&gt;
   if (town===&amp;#039;nuuna&amp;#039; &amp;amp;&amp;amp; year&amp;gt;=176) return [&amp;#039;Air Nation&amp;#039;,&amp;#039;Fire Nation&amp;#039;];&lt;br /&gt;
   var homes={&lt;br /&gt;
     &amp;#039;ba sing se&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;omashu&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;gaoling&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;zaofu&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;senlin&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;bei da feng&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;zeizhou&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;kyoshi island&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&amp;#039;yu dao&amp;#039;:&amp;#039;Earth Kingdom&amp;#039;,&lt;br /&gt;
     &amp;#039;hikari&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;caldera city&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;ember island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;takemi&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;takemaru&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;furushiki&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;noriko village&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;kayamoto island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;hiseki&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;crescent island&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&amp;#039;imagawa&amp;#039;:&amp;#039;Fire Nation&amp;#039;,&lt;br /&gt;
     &amp;#039;northern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;southern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;western air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;eastern air temple&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;air temple island&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;floating sands&amp;#039;:&amp;#039;Air Nation&amp;#039;,&amp;#039;whale tail island&amp;#039;:&amp;#039;Air Nation&amp;#039;,&lt;br /&gt;
     &amp;#039;agna qelâ€™a&amp;#039;:&amp;#039;Northern Water Tribe&amp;#039;,&amp;#039;nunatak&amp;#039;:&amp;#039;Northern Water Tribe&amp;#039;,&amp;#039;ikiaq&amp;#039;:&amp;#039;Northern Water Tribe&amp;#039;,&amp;#039;anana tunâ€™ila&amp;#039;:&amp;#039;Southern Water Tribe&amp;#039;,&lt;br /&gt;
     &amp;#039;masked village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;hanging village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;banyan grove&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;radish lotus village&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&amp;#039;bao grove&amp;#039;:&amp;#039;Foggy Swamp Tribe&amp;#039;,&lt;br /&gt;
     &amp;#039;ninuno&amp;#039;:&amp;#039;Sun Warriors&amp;#039;,&amp;#039;la bayÄn&amp;#039;:&amp;#039;Sun Warriors&amp;#039;,&amp;#039;hortezuca&amp;#039;:&amp;#039;Sun Warriors&amp;#039;,&amp;#039;bianqui&amp;#039;:&amp;#039;Sun Warriors&amp;#039;,&amp;#039;rakanet&amp;#039;:&amp;#039;Sun Warriors&amp;#039;,&amp;#039;arangoy&amp;#039;:&amp;#039;Sun Warriors&amp;#039;,&lt;br /&gt;
     &amp;#039;misty palms oasis&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;si wong desert&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;itgel&amp;#039;:&amp;#039;Sand Tribes&amp;#039;,&amp;#039;kherdu arena&amp;#039;:&amp;#039;Sand Tribes&amp;#039;&lt;br /&gt;
   };&lt;br /&gt;
   return homes[town]?[homes[town]]:[];&lt;br /&gt;
 }&lt;br /&gt;
 function select(rows, state, currentYear) {&lt;br /&gt;
   var age = Number(state.age);&lt;br /&gt;
   if (state.mode===&amp;#039;lifetime&amp;#039; &amp;amp;&amp;amp; (!Number.isInteger(age) || age&amp;lt;0 || age&amp;gt;130 || state.age===&amp;#039;&amp;#039;)) throw new Error(&amp;#039;Enter a whole-number age from 0 to 130.&amp;#039;);&lt;br /&gt;
   var from = state.mode===&amp;#039;lifetime&amp;#039;?currentYear-age-1:Number(state.from);&lt;br /&gt;
   var to = state.mode===&amp;#039;lifetime&amp;#039;?currentYear:Number(state.to);&lt;br /&gt;
   if (!Number.isInteger(from) || !Number.isInteger(to) || from&amp;gt;to) throw new Error(&amp;#039;The first year must be no later than the last year.&amp;#039;);&lt;br /&gt;
   var query = (state.search || &amp;#039;&amp;#039;).trim().toLocaleLowerCase();&lt;br /&gt;
   var hometown = rows.flatMap(function(r){return r.towns;}).find(function(t){return t.toLocaleLowerCase()===(state.town || &amp;#039;&amp;#039;).trim().toLocaleLowerCase();}) || (state.town || &amp;#039;&amp;#039;).trim();&lt;br /&gt;
   return rows.filter(function (r) {&lt;br /&gt;
     if (r.unverified || r.start&amp;gt;Math.min(to,currentYear) || r.end&amp;lt;from) return false;&lt;br /&gt;
     if (state.publicOnly &amp;amp;&amp;amp; r.visibility!==&amp;#039;public&amp;#039;) return false;&lt;br /&gt;
     if (state.majorOnly &amp;amp;&amp;amp; !r.major) return false;&lt;br /&gt;
     if (state.arc &amp;amp;&amp;amp; r.arcs.indexOf(state.arc)&amp;lt;0) return false;&lt;br /&gt;
     if (state.type &amp;amp;&amp;amp; state.type!==r.type) return false;&lt;br /&gt;
     if (state.nation || state.town) {&lt;br /&gt;
       var global = r.scope===&amp;#039;global&amp;#039;;&lt;br /&gt;
       var town = !!hometown &amp;amp;&amp;amp; r.towns.indexOf(hometown)&amp;gt;=0;&lt;br /&gt;
       var national = r.scope!==&amp;#039;local&amp;#039; &amp;amp;&amp;amp; (state.nation?nationMatch(r.polities,state.nation):!state.town);&lt;br /&gt;
       var historical = r.scope!==&amp;#039;local&amp;#039; &amp;amp;&amp;amp; hometownNations(hometown,r.start).some(function (p) { return nationMatch(r.polities,p); });&lt;br /&gt;
       var nearby = !state.town &amp;amp;&amp;amp; state.nation &amp;amp;&amp;amp; nationMatch(r.polities,state.nation);&lt;br /&gt;
       if (!global &amp;amp;&amp;amp; !town &amp;amp;&amp;amp; !national &amp;amp;&amp;amp; !historical &amp;amp;&amp;amp; !nearby) return false;&lt;br /&gt;
     }&lt;br /&gt;
     return !query || [r.title,r.prose,r.date,r.polities.join(&amp;#039; &amp;#039;),r.towns.join(&amp;#039; &amp;#039;),r.arcs.join(&amp;#039; &amp;#039;),r.tags.join(&amp;#039; &amp;#039;)].join(&amp;#039; &amp;#039;).toLocaleLowerCase().indexOf(query)&amp;gt;=0;&lt;br /&gt;
   }).sort(function (a,b) { return a.start-b.start || a.index-b.index || a.id.localeCompare(b.id); });&lt;br /&gt;
 }&lt;br /&gt;
 function ageLabel(row, age, currentYear) {&lt;br /&gt;
   var low = Math.max(0,row.start-(currentYear-age)-1), high = Math.min(age,Math.max(0,row.end-(currentYear-age-1)));&lt;br /&gt;
   return high&amp;lt;=1?&amp;#039;Around your birth&amp;#039;:low===high?&amp;#039;About age &amp;#039;+low:&amp;#039;About age &amp;#039;+low+&amp;#039;â€“&amp;#039;+high;&lt;br /&gt;
 }&lt;br /&gt;
 async function collect(request) {&lt;br /&gt;
   var rows=[], seen=new Set();&lt;br /&gt;
   for (var offset=0;;offset+=500) {&lt;br /&gt;
     var data=await request(offset);&lt;br /&gt;
     if (!data || !Array.isArray(data.cargoquery)) throw new Error(&amp;#039;Timeline data could not be read.&amp;#039;);&lt;br /&gt;
     for (var entry of data.cargoquery) {&lt;br /&gt;
       var row=normalise(entry.title);&lt;br /&gt;
       if(seen.has(row.id)) throw new Error(&amp;#039;Duplicate timeline records; loading stopped.&amp;#039;);&lt;br /&gt;
       seen.add(row.id);rows.push(row);&lt;br /&gt;
     }&lt;br /&gt;
     if(data.cargoquery.length&amp;lt;500) return rows;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 function mount() {&lt;br /&gt;
   var page = mw.config.get(&amp;#039;wgPageName&amp;#039;);&lt;br /&gt;
   if (page!==&amp;#039;Timeline/Character_lifetime&amp;#039; &amp;amp;&amp;amp; page!==&amp;#039;Timeline/Cargo_draft&amp;#039; &amp;amp;&amp;amp; page!==&amp;#039;Timeline/Cargo draft&amp;#039;) return;&lt;br /&gt;
   var root=document.getElementById(&amp;#039;av-timeline-explorer&amp;#039;);&lt;br /&gt;
   if (!root || root.dataset.mounted) return;&lt;br /&gt;
   root.dataset.mounted=&amp;#039;true&amp;#039;;&lt;br /&gt;
   var lifetime=page===&amp;#039;Timeline/Character_lifetime&amp;#039;, currentYear=worldYear(Date.now());&lt;br /&gt;
   var fallback=document.getElementById(&amp;#039;av-timeline-fallback&amp;#039;);&lt;br /&gt;
   var loading=document.createElement(&amp;#039;p&amp;#039;);loading.setAttribute(&amp;#039;role&amp;#039;,&amp;#039;status&amp;#039;);loading.textContent=&amp;#039;Loading historyâ€¦&amp;#039;;root.appendChild(loading);&lt;br /&gt;
   var endpoint=new URL(mw.util.wikiScript(&amp;#039;api&amp;#039;),location.origin);&lt;br /&gt;
   collect(async function (offset) {&lt;br /&gt;
     var url=new URL(endpoint);&lt;br /&gt;
     Object.entries({action:&amp;#039;cargoquery&amp;#039;,format:&amp;#039;json&amp;#039;,formatversion:&amp;#039;2&amp;#039;,tables:&amp;#039;TimelineEvents&amp;#039;,&lt;br /&gt;
       fields:&amp;#039;EventID,YearStart,YearEnd,DateText,Title,Description,PrimaryType,Subtags,Arcs,Polities,Locations,Scope,Visibility,Status,EditorialNotes,SourceIndex&amp;#039;,&lt;br /&gt;
       order_by:&amp;#039;EventID&amp;#039;,limit:&amp;#039;500&amp;#039;,offset:String(offset)}).forEach(function (pair) {url.searchParams.set(pair[0],pair[1]);});&lt;br /&gt;
     // Public data needs no account or bot session. Do not log API diagnostics.&lt;br /&gt;
     var response=await fetch(url,{credentials:&amp;#039;omit&amp;#039;,signal:AbortSignal.timeout(30000)});&lt;br /&gt;
     if(!response.ok) throw new Error(&amp;#039;Timeline data is temporarily unavailable.&amp;#039;);&lt;br /&gt;
     var result=await response.json();return {cargoquery:result.cargoquery};&lt;br /&gt;
   }).then(function (rows) {build(rows);}).catch(function () {&lt;br /&gt;
     loading.textContent=&amp;#039;The interactive view could not load. Use the searchable table below, or try again later.&amp;#039;;&lt;br /&gt;
   });&lt;br /&gt;
   function build(rows) {&lt;br /&gt;
     var state={mode:lifetime?&amp;#039;lifetime&amp;#039;:&amp;#039;all&amp;#039;,age:&amp;#039;20&amp;#039;,from:&amp;#039;100&amp;#039;,to:String(currentYear),nation:&amp;#039;&amp;#039;,town:&amp;#039;&amp;#039;,majorOnly:lifetime,publicOnly:true,search:&amp;#039;&amp;#039;,arc:&amp;#039;&amp;#039;,type:&amp;#039;&amp;#039;};&lt;br /&gt;
     var params=new URLSearchParams(location.search);&lt;br /&gt;
     [&amp;#039;age&amp;#039;,&amp;#039;nation&amp;#039;,&amp;#039;town&amp;#039;,&amp;#039;search&amp;#039;,&amp;#039;from&amp;#039;,&amp;#039;to&amp;#039;,&amp;#039;arc&amp;#039;,&amp;#039;type&amp;#039;].forEach(function (key) {if(params.has(key))state[key]=params.get(key);});&lt;br /&gt;
     if(params.has(&amp;#039;major&amp;#039;))state.majorOnly=params.get(&amp;#039;major&amp;#039;)!==&amp;#039;0&amp;#039;;&lt;br /&gt;
     if(params.has(&amp;#039;public&amp;#039;))state.publicOnly=params.get(&amp;#039;public&amp;#039;)!==&amp;#039;0&amp;#039;;&lt;br /&gt;
     var shown=PAGE_SIZE;&lt;br /&gt;
     root.replaceChildren();&lt;br /&gt;
     function el(tag,text,parent) {var node=document.createElement(tag);if(text)node.textContent=text;if(parent)parent.appendChild(node);return node;}&lt;br /&gt;
     var form=el(&amp;#039;form&amp;#039;,null,root);form.setAttribute(&amp;#039;aria-label&amp;#039;,lifetime?&amp;#039;Your characterâ€™s lifetime&amp;#039;:&amp;#039;Explore history&amp;#039;);&lt;br /&gt;
     form.style.cssText=&amp;#039;display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;border:1px solid var(--border-color-base,#777);border-radius:.6rem;margin-block:1rem&amp;#039;;&lt;br /&gt;
     function field(label,key,type) {&lt;br /&gt;
       var box=el(&amp;#039;label&amp;#039;,label,form);box.style.cssText=&amp;#039;display:flex;flex-direction:column;gap:.35rem;min-width:10rem;flex:1&amp;#039;;&lt;br /&gt;
       var input=el(type===&amp;#039;select&amp;#039;?&amp;#039;select&amp;#039;:&amp;#039;input&amp;#039;,null,box);input.id=&amp;#039;av-timeline-&amp;#039;+key;&lt;br /&gt;
       if(type!==&amp;#039;select&amp;#039;)input.type=type;&lt;br /&gt;
       input.style.cssText=&amp;#039;font:inherit;padding:.55rem;border:1px solid #888;border-radius:.3rem;background:var(--color-surface-1,#fff);color:var(--color-base,#222);max-width:100%&amp;#039;;&lt;br /&gt;
       input.value=state[key];input.addEventListener(&amp;#039;input&amp;#039;,function () {state[key]=input.value;shown=PAGE_SIZE;render();});return input;&lt;br /&gt;
     }&lt;br /&gt;
     if(lifetime){var age=field(&amp;#039;Character age&amp;#039;,&amp;#039;age&amp;#039;,&amp;#039;number&amp;#039;);age.min=&amp;#039;0&amp;#039;;age.max=&amp;#039;130&amp;#039;;age.step=&amp;#039;1&amp;#039;;age.required=true;}&lt;br /&gt;
     else {field(&amp;#039;From year AG&amp;#039;,&amp;#039;from&amp;#039;,&amp;#039;number&amp;#039;);field(&amp;#039;Through year AG&amp;#039;,&amp;#039;to&amp;#039;,&amp;#039;number&amp;#039;);}&lt;br /&gt;
     var nation=field(&amp;#039;Home nation / tribe (optional)&amp;#039;,&amp;#039;nation&amp;#039;,&amp;#039;select&amp;#039;);&lt;br /&gt;
     option(nation,&amp;#039;&amp;#039;,&amp;#039;Anywhere&amp;#039;);&lt;br /&gt;
     Array.from(new Set(rows.flatMap(function(r){return r.polities;}))).sort().forEach(function(p){option(nation,p,p);});nation.value=state.nation;&lt;br /&gt;
     var town=field(&amp;#039;Home town / place (optional)&amp;#039;,&amp;#039;town&amp;#039;,&amp;#039;text&amp;#039;);town.setAttribute(&amp;#039;list&amp;#039;,&amp;#039;av-timeline-towns&amp;#039;);&lt;br /&gt;
     var towns=el(&amp;#039;datalist&amp;#039;,null,form);towns.id=&amp;#039;av-timeline-towns&amp;#039;;&lt;br /&gt;
     Array.from(new Set(rows.flatMap(function(r){return r.towns;}))).sort().forEach(function(p){option(towns,p,p);});&lt;br /&gt;
     var major=checkbox(&amp;#039;Major events only&amp;#039;,&amp;#039;majorOnly&amp;#039;,form);&lt;br /&gt;
     checkbox(&amp;#039;Public knowledge only&amp;#039;,&amp;#039;publicOnly&amp;#039;,form);&lt;br /&gt;
     var advanced=el(&amp;#039;details&amp;#039;,null,root);el(&amp;#039;summary&amp;#039;,&amp;#039;Search and more filters&amp;#039;,advanced);&lt;br /&gt;
     var advancedBox=el(&amp;#039;div&amp;#039;,null,advanced);advancedBox.style.cssText=&amp;#039;display:flex;flex-wrap:wrap;gap:1rem;margin-block:1rem&amp;#039;;&lt;br /&gt;
     // Reuse the same field builder, then move each label into the disclosure.&lt;br /&gt;
     var search=field(&amp;#039;Search people, events or places&amp;#039;,&amp;#039;search&amp;#039;,&amp;#039;search&amp;#039;);advancedBox.appendChild(search.parentElement);&lt;br /&gt;
     var arc=field(&amp;#039;Storyline&amp;#039;,&amp;#039;arc&amp;#039;,&amp;#039;select&amp;#039;);option(arc,&amp;#039;&amp;#039;,&amp;#039;All storylines&amp;#039;);&lt;br /&gt;
     Array.from(new Set(rows.flatMap(function(r){return r.arcs;}))).sort().forEach(function(p){option(arc,p,p);});arc.value=state.arc;advancedBox.appendChild(arc.parentElement);&lt;br /&gt;
     var type=field(&amp;#039;Event category&amp;#039;,&amp;#039;type&amp;#039;,&amp;#039;select&amp;#039;);option(type,&amp;#039;&amp;#039;,&amp;#039;All categories&amp;#039;);&lt;br /&gt;
     var types={GOV:&amp;#039;Government&amp;#039;,DIP:&amp;#039;Diplomacy&amp;#039;,TERR:&amp;#039;Borders and territory&amp;#039;,CONFLICT:&amp;#039;Conflict&amp;#039;,LAW:&amp;#039;Law and crime&amp;#039;,CULT:&amp;#039;Culture&amp;#039;,SPIRIT:&amp;#039;Spiritual affairs&amp;#039;,TECH:&amp;#039;Technology&amp;#039;,ENV:&amp;#039;Environment&amp;#039;,SOC:&amp;#039;Society&amp;#039;,PERS:&amp;#039;Personal history&amp;#039;,UNCLASSIFIED:&amp;#039;Other&amp;#039;};&lt;br /&gt;
     Object.entries(types).forEach(function(p){option(type,p[0],p[1]);});type.value=state.type;advancedBox.appendChild(type.parentElement);&lt;br /&gt;
     var reset=el(&amp;#039;button&amp;#039;,&amp;#039;Reset filters&amp;#039;,advancedBox);reset.type=&amp;#039;button&amp;#039;;reset.addEventListener(&amp;#039;click&amp;#039;,function(){location.href=mw.util.getUrl(page);});&lt;br /&gt;
     var share=el(&amp;#039;button&amp;#039;,&amp;#039;Copy link to this view&amp;#039;,advancedBox);share.type=&amp;#039;button&amp;#039;;&lt;br /&gt;
     share.addEventListener(&amp;#039;click&amp;#039;,async function(){&lt;br /&gt;
       var url=new URL(location.href);url.search=&amp;#039;&amp;#039;;&lt;br /&gt;
       [&amp;#039;age&amp;#039;,&amp;#039;nation&amp;#039;,&amp;#039;town&amp;#039;,&amp;#039;search&amp;#039;,&amp;#039;from&amp;#039;,&amp;#039;to&amp;#039;,&amp;#039;arc&amp;#039;,&amp;#039;type&amp;#039;].forEach(function(k){if(state[k])url.searchParams.set(k,state[k]);});&lt;br /&gt;
       url.searchParams.set(&amp;#039;major&amp;#039;,state.majorOnly?&amp;#039;1&amp;#039;:&amp;#039;0&amp;#039;);url.searchParams.set(&amp;#039;public&amp;#039;,state.publicOnly?&amp;#039;1&amp;#039;:&amp;#039;0&amp;#039;);&lt;br /&gt;
       try{await navigator.clipboard.writeText(url.href);share.textContent=&amp;#039;Link copied&amp;#039;;}catch(e){share.textContent=&amp;#039;Select and copy this link&amp;#039;;var link=el(&amp;#039;input&amp;#039;,null,advancedBox);link.value=url.href;link.readOnly=true;link.select();}&lt;br /&gt;
     });&lt;br /&gt;
     form.addEventListener(&amp;#039;submit&amp;#039;,function(e){e.preventDefault();render();});&lt;br /&gt;
     var summary=el(&amp;#039;p&amp;#039;,null,root);summary.setAttribute(&amp;#039;role&amp;#039;,&amp;#039;status&amp;#039;);summary.setAttribute(&amp;#039;aria-live&amp;#039;,&amp;#039;polite&amp;#039;);&lt;br /&gt;
     var help=el(&amp;#039;p&amp;#039;,null,root);help.style.cssText=&amp;#039;font-size:.9em;opacity:.85&amp;#039;;&lt;br /&gt;
     var results=el(&amp;#039;div&amp;#039;,null,root);results.id=&amp;#039;av-timeline-results&amp;#039;;&lt;br /&gt;
     var more=el(&amp;#039;button&amp;#039;,&amp;#039;Show 20 more events&amp;#039;,root);more.type=&amp;#039;button&amp;#039;;more.addEventListener(&amp;#039;click&amp;#039;,function(){shown+=PAGE_SIZE;render();});&lt;br /&gt;
     if(fallback)fallback.hidden=true;&lt;br /&gt;
     render();&lt;br /&gt;
     function option(select,value,label){var o=el(&amp;#039;option&amp;#039;,label,select);o.value=value;}&lt;br /&gt;
     function checkbox(label,key,parent){var box=el(&amp;#039;label&amp;#039;,null,parent);box.style.cssText=&amp;#039;align-self:end;padding-block:.6rem&amp;#039;;var input=el(&amp;#039;input&amp;#039;,null,box);input.type=&amp;#039;checkbox&amp;#039;;input.checked=state[key];box.appendChild(document.createTextNode(&amp;#039; &amp;#039;+label));input.addEventListener(&amp;#039;change&amp;#039;,function(){state[key]=input.checked;shown=PAGE_SIZE;render();});return input;}&lt;br /&gt;
     function render(){&lt;br /&gt;
       var matched;&lt;br /&gt;
       try{matched=select(rows,state,currentYear);}catch(error){summary.textContent=error.message;results.replaceChildren();more.hidden=true;return;}&lt;br /&gt;
       summary.textContent=(lifetime?&amp;#039;Current year: &amp;#039;+currentYear+&amp;#039; AG. Approximate birth year: &amp;#039;+(currentYear-Number(state.age)-1)+&amp;#039;â€“&amp;#039;+(currentYear-Number(state.age))+&amp;#039; AG. &amp;#039;:&amp;#039;&amp;#039;)+matched.length+&amp;#039; events match; showing &amp;#039;+Math.min(shown,matched.length)+&amp;#039;.&amp;#039;;&lt;br /&gt;
       help.textContent=&amp;#039;Worldwide events stay included alongside relevant national and hometown history. Ages are approximate because birthdays and many event dates are unknown. &amp;#039;+(state.publicOnly?&amp;#039;Private and later-revealed information is excluded.&amp;#039;:&amp;#039;Some results contain private or later-revealed information; these are not automatic character knowledge.&amp;#039;)+&amp;#039; These are backstory possibilities, not events your character necessarily witnessed.&amp;#039;;&lt;br /&gt;
       if(!state.majorOnly)help.textContent+=&amp;#039; Smaller gatherings and announced plans are also included.&amp;#039;;&lt;br /&gt;
       if(lifetime&amp;amp;&amp;amp;currentYear-Number(state.age)-1&amp;lt;100)help.textContent+=&amp;#039; This archive begins in 100 AG; earlier history is not covered here.&amp;#039;;&lt;br /&gt;
       results.replaceChildren();&lt;br /&gt;
       if(!matched.length){el(&amp;#039;p&amp;#039;,&amp;#039;No matching events. Try clearing the town or nation, broadening the search, or including smaller events.&amp;#039;,results);}&lt;br /&gt;
       matched.slice(0,shown).forEach(function(r){&lt;br /&gt;
         var card=el(&amp;#039;div&amp;#039;,null,results);card.className=&amp;#039;av-timeline-result&amp;#039;;card.style.cssText=&amp;#039;border-inline-start:3px solid var(--color-progressive,#648dd8);padding:.6rem 1rem;margin-block:1rem&amp;#039;;&lt;br /&gt;
         var date=el(&amp;#039;p&amp;#039;,r.date+(lifetime?&amp;#039; Â· &amp;#039;+ageLabel(r,Number(state.age),currentYear):&amp;#039;&amp;#039;),card);date.style.cssText=&amp;#039;font-weight:600;margin-block:.15rem .5rem&amp;#039;;&lt;br /&gt;
         el(&amp;#039;p&amp;#039;,r.prose,card).style.marginBlock=&amp;#039;.4rem&amp;#039;;&lt;br /&gt;
         if(r.visibility!==&amp;#039;public&amp;#039;)el(&amp;#039;p&amp;#039;,r.visibility===&amp;#039;secret-at-time&amp;#039;?&amp;#039;Private at the time; do not assume your character knew this.&amp;#039;:r.visibility===&amp;#039;later-revealed&amp;#039;?&amp;#039;Revealed later; the public disclosure date is not established here.&amp;#039;:&amp;#039;Public knowledge has not been established for this account.&amp;#039;,card);&lt;br /&gt;
         var context=[r.scope===&amp;#039;global&amp;#039;?&amp;#039;Worldwide&amp;#039;:r.polities.join(&amp;#039; Â· &amp;#039;),r.towns.join(&amp;#039; Â· &amp;#039;),r.arcs.join(&amp;#039; Â· &amp;#039;)].filter(Boolean).join(&amp;#039; â€” &amp;#039;);&lt;br /&gt;
         if(context)el(&amp;#039;small&amp;#039;,context,card);&lt;br /&gt;
         var line=el(&amp;#039;div&amp;#039;,null,card), link=el(&amp;#039;a&amp;#039;,&amp;#039;Source record&amp;#039;,line);link.href=mw.util.getUrl(r.page);link.setAttribute(&amp;#039;aria-label&amp;#039;,&amp;#039;Source record for &amp;#039;+r.title);&lt;br /&gt;
       });&lt;br /&gt;
       more.hidden=shown&amp;gt;=matched.length;&lt;br /&gt;
     }&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 return {worldYear:worldYear,normalise:normalise,nationMatch:nationMatch,hometownNations:hometownNations,select:select,ageLabel:ageLabel,collect:collect,mount:mount};&lt;br /&gt;
}));&lt;/div&gt;</summary>
		<author><name>Aztl</name></author>
	</entry>
</feed>